public function _obfuscate_YQ( $z, $adcount = 1 )
{ //49-147
if ( $adcount < 1 )
{ //51-53
$adcount = 1;
} //53-51
if ( !_obfuscate_MGYpc2l6CjY( $z['zonetype'], array( "cpm", "vp", "wz", "txt" ) ) )
{ //55-57
$filename = $z['plantype']."-".$z['zonetype']."-".$z['width']."x".$z['height'];
} //57-55
else
{ //59-61
$filename = $z['plantype']."-".$z['zonetype'];
} //61-59
$cache = _obfuscate_Z2V0Y2FjaGU( $filename, "a" );
if ( !$cache )
{ //64-68
require_once( APP_DIR."/client/makecache.php" );
$dbo = _obfuscate_Z2M( );
$cache = _obfuscate_bWFrZWFkcw( $dbo, $z['zonetype'], $z['plantype'], $z['width'], $z['height'] );
} //68-64
list( $rows, $prioritysum ) = $cache;
if ( _obfuscate_d2VxFno( $rows ) == 0 )
{ //71-73
return false;
} //73-71
$maxindex = _obfuscate_eyAfXcF( $rows );
$remaining_rows = _obfuscate_eyAfXcF( $rows );
do
{ //77-145
while ( 1 <= $prioritysum && 0 < $remaining_rows )
{ //79-137
do
{ //81-128
$low = 0;
$high = 0;
$ranweight = 1 < $prioritysum ? _obfuscate_dC5qN2R1Mg( 0, $prioritysum - 1 ) : 0;
$i = 0;
for ( ; $i < $maxindex; ++$i )
{ //87-127
if ( !_obfuscate_IgN4HCIGeQY( $rows[$i] ) )
{ //89-91
continue;
} //91-89
$low = $high;
$high += $rows[$i]['priority'];
if ( !( $ranweight < $high ) && !( $low <= $ranweight ) )
{ //95-97
continue;
} //97-95
$zysuccess = true;
if ( $zysuccess == true && _obfuscate_ZXg( $rows[$i] ) )
{ //100-102
$zysuccess = false;
} //102-100
if ( $zysuccess == true && $rows[$i]['checkplan'] != "true" && !_obfuscate_Y2s( $rows[$i] ) )
{ //104-106
$zysuccess = false;
} //106-104
if ( $zysuccess == true && $z['viewtype'] == "1" )
{ //108-114
$viewadsid = _obfuscate_ZG1lcWpjaA( ",", $z['viewadsid'] );
if ( !_obfuscate_MGYpc2l6CjY( $rows[$i]['adsid'], $viewadsid ) )
{ //111-113
$zysuccess = false;
} //113-111
} //114-108
if ( $zysuccess == true && $rows[$i]['audit'] == "y" && !_obfuscate_MGYpc2l6CjY( $rows[$i]['planid'], ( array )$z['auditplanid'] ) )
{ //116-118
$zysuccess = false;
} //118-116
if ( !( $zysuccess == false ) )
{ //120-122
break;
} //122-120
$adspriority = $rows[$i]['priority'];
$rows[$i] = "";
--$remaining_rows;
$prioritysum -= $adspriority;
} //127-87
} //128-81
if ( !( $z['zonetype'] == "txt" ) )     //*** 第129行 ***
{ //130-132
break;
} //132-130
else
{ //133-136
$row[] = $rows[$i];
} //136-133
} //137-79
while ( !( _obfuscate_d2VxFno( $row ) == $adcount ) );
return $row;
while ( 0 );
return $rows[$i];
} //145-77
} //147-49