//
// GJBaseGameLayer::visit from 0x86aca0 to 0x86bda4 (4356 bytes)
//
// 4 xrefs:
// > ??> @ 0xac0f8
// > ??> @ 0x1148800
// > ??> @ 0x1155070
// > ??> @ 0x11904f0
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
void GJBaseGameLayer::visit(GJBaseGameLayer *a1)
{
GJBaseGameLayer *v1; // x19
cocos2d::CCDirector *v2; // x0
const cocos2d::CCPoint *v3; // x0
const cocos2d::CCPoint *v4; // x0
bool v5; // w0
GJGroundLayer *m_groundLayer; // x20
float y; // s9
__int64 v8; // x0
float v9; // s0
float v10; // s9
cocos2d::CCSprite *m_background; // x20
void (__fastcall *setPosition)(cocos2d::CCSprite *__hidden, const cocos2d::CCPoint *); // x21
__int64 v13; // x23
float v14; // s10
float v15; // s0
cocos2d::CCSprite *v16; // x0
float m_cameraWidthOffset; // s11
float (__fastcall *getScale)(cocos2d::CCNode *__hidden); // x1
float v19; // s0
cocos2d::CCSprite *v20; // x0
float (__fastcall *v21)(cocos2d::CCNode *__hidden); // x1
float v22; // s0
GJGroundLayer *m_groundLayer2; // x0
bool (__fastcall *isVisible)(cocos2d::CCNode *__hidden); // x1
float v25; // s8
float v26; // s9
float v27; // s0
float v28; // s8
float v29; // s0
cocos2d::CCSprite *v30; // x0
float v31; // s11
const cocos2d::CCPoint *(__fastcall *getPosition)(cocos2d::CCNode *__hidden); // x1
float *v33; // x0
cocos2d::CCSprite *v34; // x20
float v35; // s10
void (__fastcall *v36)(cocos2d::CCSprite *__hidden, const cocos2d::CCPoint *); // x21
__int64 v37; // x23
float v38; // s0
cocos2d::CCSprite *v39; // x0
float (__fastcall *v40)(cocos2d::CCNode *__hidden); // x1
float v41; // s13
float v42; // s0
cocos2d::CCSprite *v43; // x0
void (__fastcall *setTextureRect)(cocos2d::CCSprite *__hidden, const cocos2d::CCRect *); // x2
float v45; // s12
cocos2d::CCDictionary *m_gradientLayers; // x0
cocos2d::CCDictElement *m_pElements; // x0
cocos2d::CCDictElement *i; // x23
cocos2d::CCLayerColor *m_pObject; // x20
__int64 v50; // x21
GameObject *MainObject; // x24
GameObject *v52; // x27
GameObject *v53; // x28
float v54; // s10
float v55; // s8
float v56; // s9
float v57; // s0
float v58; // s9
float v59; // s13
void (__fastcall *v60)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // x21
__int64 v61; // x24
float v62; // s10
void (__fastcall *setScaleY)(cocos2d::CCNode *__hidden, float); // x21
float v64; // s0
int j; // w20
cocos2d::CCNode *m_inShaderParent; // x28
__int64 v67; // x0
unsigned int *v68; // x0
__int64 *v69; // x25
__int64 *v70; // x26
__int64 v71; // x21
__int64 v72; // x0
void (__fastcall *v73)(__int64, cocos2d::CCRect *); // x24
__int64 v74; // x0
cocos2d::CCNode *m_uiTriggerUI; // x20
void (__fastcall *v76)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // x21
cocos2d::CCNode *v77; // x0
ShaderLayer *m_shaderLayer; // x0
int v79; // w20
float v80; // s0
float v81; // s1
float v82; // s0
cocos2d::CCSprite *v83; // x0
void (__fastcall *v84)(cocos2d::CCSprite *__hidden, const cocos2d::CCRect *); // x2
cocos2d::CCSprite *v85; // x21
float v86; // s1
void (__fastcall *v87)(cocos2d::CCSprite *__hidden, const cocos2d::CCPoint *); // x23
int v88; // w20
cocos2d::CCNode *m_aboveShaderParent; // x25
__int64 v90; // x0
unsigned int *v91; // x0
__int64 *v92; // x24
__int64 *v93; // x27
__int64 v94; // x21
__int64 v95; // x0
void (__fastcall *v96)(__int64, cocos2d::CCRect *); // x19
__int64 v97; // x0
float m_levelFlipping; // s1
void (__fastcall *v99)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // x21
__int64 v100; // x0
float v101; // s14
void (__fastcall *setScaleX)(cocos2d::CCNode *__hidden, float); // x21
float v103; // s0
float v104; // s8
float v105; // s0
float v106; // s8
cocos2d::CCSprite *v107; // x20
void (__fastcall *v108)(cocos2d::CCSprite *__hidden, const cocos2d::CCPoint *); // x21
__int64 v109; // x23
float v110; // s0
GJGroundLayer *v111; // x0
bool (__fastcall *v112)(cocos2d::CCNode *__hidden); // x1
float v113; // s8
float v114; // s8
float v115; // s0
float v116; // s9
float v117; // s0
cocos2d::CCSprite *v118; // x0
const cocos2d::CCPoint *(__fastcall *v119)(cocos2d::CCNode *__hidden); // x1
float *v120; // x0
cocos2d::CCSprite *v121; // x20
float v122; // s8
void (__fastcall *v123)(cocos2d::CCSprite *__hidden, const cocos2d::CCPoint *); // x21
__int64 v124; // x23
float v125; // s0
cocos2d::CCSprite *v126; // x0
float (__fastcall *v127)(cocos2d::CCNode *__hidden); // x1
float v128; // s0
cocos2d::CCSprite *v129; // x0
void (__fastcall *v130)(cocos2d::CCSprite *__hidden, const cocos2d::CCRect *); // x2
cocos2d::CCSprite *v131; // x0
void (__fastcall *v132)(cocos2d::CCSprite *__hidden, const cocos2d::CCRect *); // x2
__int64 v133; // x0
__int64 v134; // x0
int v135; // [xsp+A8h] [xbp+A8h]
int v136; // [xsp+ACh] [xbp+ACh]
GameObject *v137; // [xsp+F8h] [xbp+F8h]
GJBaseGameLayer *v138; // [xsp+F8h] [xbp+F8h]
float v139; // [xsp+100h] [xbp+100h]
float v140; // [xsp+104h] [xbp+104h]
cocos2d::CCPoint v141; // [xsp+108h] [xbp+108h] BYREF
cocos2d::CCPoint v142; // [xsp+110h] [xbp+110h] BYREF
cocos2d::CCPoint v143; // [xsp+118h] [xbp+118h] BYREF
__int64 v144; // [xsp+120h] [xbp+120h] BYREF
cocos2d::CCPoint v145; // [xsp+128h] [xbp+128h] BYREF
cocos2d::CCPoint v146; // [xsp+130h] [xbp+130h] BYREF
cocos2d::CCPoint v147; // [xsp+138h] [xbp+138h] BYREF
cocos2d::CCPoint v148; // [xsp+140h] [xbp+140h] BYREF
cocos2d::CCPoint v149; // [xsp+148h] [xbp+148h] BYREF
cocos2d::CCPoint v150; // [xsp+150h] [xbp+150h] BYREF
cocos2d::CCRect v151; // [xsp+158h] [xbp+158h] BYREF
cocos2d::CCRect v152; // [xsp+168h] [xbp+168h] BYREF
cocos2d::CCRect v153; // [xsp+178h] [xbp+178h] BYREF
cocos2d::CCRect v154; // [xsp+188h] [xbp+188h] BYREF
cocos2d::CCRect v155; // [xsp+198h] [xbp+198h] BYREF
cocos2d::CCPoint v156; // 0:kr08_8.8
cocos2d::CCPoint v157; // 0:s0.4,4:s1.4
cocos2d::CCPoint v158; // 0:s2.4,4:s3.4
cocos2d::CCPoint v159; // 0:s4.4,4:s5.4
v1 = a1;
if ( a1->m_loadingProgress < 1.0 )
{
cocos2d::CCNode::visit(a1);
return;
}
if ( !a1->m_player1 || !GJBaseGameLayer::isFlipping(a1) )
goto LABEL_4;
m_levelFlipping = v1->m_gameState.m_levelFlipping;
if ( v1->m_cameraFlip != 1.0 )
{
if ( m_levelFlipping <= 0.5 )
goto LABEL_74;
LABEL_4:
v135 = 0;
goto LABEL_5;
}
if ( m_levelFlipping < 0.5 )
goto LABEL_4;
LABEL_74:
v135 = 1;
GJBaseGameLayer::flipObjects(v1);
LABEL_5:
cocos2d::CCRect::CCRect(&v151, &stru_1242DC0);
cocos2d::CCRect::CCRect(&v152, &stru_1242DC0);
cocos2d::CCRect::CCRect(&v153, &stru_1242DC0);
v2 = cocos2d::CCDirector::sharedDirector();
cocos2d::CCDirector::getWinSize(v2);
cocos2d::CCPoint::CCPoint(&v141, v139 * 0.5, v140 * 0.5);
v3 = v1->m_background->getPosition(v1->m_background);
cocos2d::CCPoint::CCPoint(&v142, v3);
v4 = v1->m_groundLayer2->getPosition(v1->m_groundLayer2);
cocos2d::CCPoint::CCPoint(&v143, v4);
v5 = v1->m_groundLayer->isVisible(v1->m_groundLayer);
m_groundLayer = v1->m_groundLayer;
v136 = !v5 || !m_groundLayer->m_showGround2;
m_groundLayer->m_ground1Sprite->setOpacity(m_groundLayer->m_ground1Sprite, 100);
if ( v1->m_gameState.m_cameraAngle != 0.0 )
{
cocos2d::CCPoint::operator-(&v144, &v141);
y = v1->m_background->getPosition(v1->m_background)->y;
v8 = (__int64)v1->m_groundLayer->getPosition(v1->m_groundLayer);
v9 = v1->m_cameraHeightOffset * -0.5;
if ( *(float *)(v8 + 4) >= v9 )
v9 = v1->m_groundLayer->getPosition(v1->m_groundLayer)->y;
if ( v136 )
v10 = v1->m_background->getPosition(v1->m_background)->y + (float)(v1->m_cameraHeightOffset * 0.5);
else
v10 = y - v9;
m_background = v1->m_background;
setPosition = m_background->setPosition;
v13 = (__int64)m_background->getPosition(m_background);
cocos2d::CCPoint::CCPoint(&v154.origin, (float)-v1->m_cameraWidthOffset * 0.5, -v10);
cocos2d::CCPoint::operator+(&v155, v13, &v154);
setPosition(m_background, &v155.origin);
cocos2d::CCRect::operator=(&v151, &v1->m_background->m_obRect);
cocos2d::CCRect::CCRect(&v155, &v151);
v14 = v1->m_cameraWidthOffset * 0.5;
v15 = v1->m_background->getScale(v1->m_background);
v16 = v1->m_background;
m_cameraWidthOffset = v1->m_cameraWidthOffset;
getScale = v16->getScale;
v155.origin.x = v155.origin.x - (float)(v14 / v15);
v19 = getScale(v16);
v20 = v1->m_background;
v21 = v20->getScale;
v155.size.width = v155.size.width + (float)(m_cameraWidthOffset / v19);
v22 = v21(v20);
m_groundLayer2 = v1->m_groundLayer2;
isVisible = m_groundLayer2->isVisible;
v155.origin.y = v155.origin.y + (float)(v10 / v22);
if ( isVisible(m_groundLayer2) )
{
v133 = (__int64)v1->m_groundLayer2->getPosition(v1->m_groundLayer2);
v25 = v140 + (float)(v1->m_cameraHeightOffset * 0.5);
if ( *(float *)(v133 + 4) <= v25 )
v25 = v1->m_groundLayer2->getPosition(v1->m_groundLayer2)->y;
}
else
{
v25 = v140 + (float)(v1->m_cameraHeightOffset * 0.5);
}
v26 = (float)(v25 - v1->m_background->getPosition(v1->m_background)->y) + 1.0;
v27 = v1->m_background->getScale(v1->m_background);
v28 = v155.size.height - (float)(v26 / v27);
v29 = v1->m_background->getScale(v1->m_background);
v30 = v1->m_background;
v31 = -1.0 - (float)(v1->m_cameraWidthOffset * 0.5);
getPosition = v30->getPosition;
v155.origin.y = v155.origin.y + v28;
v155.size.height = v26 / v29;
v33 = (float *)getPosition(v30);
v34 = v1->m_background;
v35 = v31 - *v33;
v36 = v34->setPosition;
v37 = (__int64)v34->getPosition(v34);
cocos2d::CCPoint::CCPoint(&v150, v35, 0.0);
cocos2d::CCPoint::operator+(&v154, v37, &v150);
v36(v34, &v154.origin);
v38 = v1->m_background->getScale(v1->m_background);
v39 = v1->m_background;
v40 = v39->getScale;
v41 = (float)(v139 + v1->m_cameraWidthOffset) + 1.0;
v155.origin.x = v155.origin.x + (float)(v35 / v38);
v42 = v40(v39);
v43 = v1->m_background;
setTextureRect = v43->setTextureRect;
v155.size.width = v41 / v42;
setTextureRect(v43, &v155);
if ( v1->m_gameState.m_commandIndex != lastGradientUpdate )
{
lastGradientUpdate = v1->m_gameState.m_commandIndex;
if ( v136 )
{
v45 = v1->m_cameraHeightOffset * 0.5;
}
else
{
v134 = (__int64)v1->m_groundLayer->getPosition(v1->m_groundLayer);
v45 = v1->m_cameraHeightOffset * 0.5;
if ( *(float *)(v134 + 4) >= (float)-v45 )
v45 = -v1->m_groundLayer->getPosition(v1->m_groundLayer)->y;
}
m_gradientLayers = v1->m_gradientLayers;
if ( m_gradientLayers )
{
m_pElements = m_gradientLayers->m_pElements;
if ( m_pElements )
{
for ( i = (cocos2d::CCDictElement *)m_pElements->hh.next; ; i = (cocos2d::CCDictElement *)i->hh.next )
{
m_pObject = (cocos2d::CCLayerColor *)m_pElements->m_pObject;
if ( !m_pObject->getParent(m_pObject) )
goto LABEL_35;
v50 = *(_QWORD *)&m_pObject[1].m_unknown2;
MainObject = GJBaseGameLayer::tryGetMainObject(v1, *(_DWORD *)(v50 + 1832));
v137 = GJBaseGameLayer::tryGetMainObject(v1, *(_DWORD *)(v50 + 1836));
v52 = GJBaseGameLayer::tryGetMainObject(v1, *(_DWORD *)(v50 + 1840));
v53 = GJBaseGameLayer::tryGetMainObject(v1, *(_DWORD *)(v50 + 1844));
v54 = v1->m_cameraWidthOffset * 0.5;
if ( LOBYTE(m_pObject[1].m_uOrderOfArrival)
&& (v54 = v54 / v1->m_objectLayer->getScale(v1->m_objectLayer), LOBYTE(m_pObject[1].m_uOrderOfArrival)) )
{
v55 = v45 / v1->m_objectLayer->getScale(v1->m_objectLayer);
v56 = v1->m_cameraHeightOffset * 0.5;
if ( LOBYTE(m_pObject[1].m_uOrderOfArrival) )
v1->m_objectLayer->getScale(v1->m_objectLayer);
else
v57 = 1.0;
}
else
{
v55 = v45;
v56 = v1->m_cameraHeightOffset * 0.5;
v57 = 1.0;
}
v58 = v56 / v57;
if ( *(_BYTE *)(v50 + 1848) )
break;
v59 = 0.0;
if ( !v52 )
v59 = v54;
if ( v53 )
v54 = 0.0;
if ( v137 )
v55 = 0.0;
if ( MainObject )
v58 = 0.0;
v60 = m_pObject->setPosition;
v61 = (__int64)m_pObject->getPosition(m_pObject);
cocos2d::CCPoint::CCPoint(&v150, v59, v55);
cocos2d::CCPoint::operator-(&v154, v61, &v150);
v60(m_pObject, &v154.origin);
if ( (float)(v59 + v54) != 0.0 )
{
v101 = v139
* ((float (__fastcall *)(cocos2d::CCLayerColor *, float))m_pObject->getScaleX)(m_pObject, v59 + v54);
setScaleX = m_pObject->setScaleX;
v103 = m_pObject->getScaleX(m_pObject);
setScaleX(m_pObject, v103 * (float)((float)(v54 + (float)(v59 + v101)) / v101));
}
if ( (float)(v55 + v58) == 0.0 )
goto LABEL_35;
v62 = v140
* ((float (__fastcall *)(cocos2d::CCLayerColor *, float))m_pObject->getScaleY)(m_pObject, v55 + v58);
setScaleY = m_pObject->setScaleY;
v64 = m_pObject->getScaleY(m_pObject);
setScaleY(m_pObject, v64 * (float)((float)(v58 + (float)(v55 + v62)) / v62));
if ( !i )
goto LABEL_38;
LABEL_36:
m_pElements = i;
}
if ( MainObject )
cocos2d::CCPoint::CCPoint(&v145, &stru_1242DA8);
else
cocos2d::CCPoint::CCPoint(&v145, v54, v55);
if ( v137 )
{
cocos2d::CCPoint::CCPoint(&v146, &v145);
if ( v52 )
goto LABEL_79;
}
else
{
cocos2d::CCPoint::CCPoint(&v146, v54 + v145.x, 0.0);
if ( v52 )
{
LABEL_79:
cocos2d::CCPoint::CCPoint(&v147, &v145);
if ( v53 )
{
LABEL_80:
cocos2d::CCPoint::CCPoint(&v148, &v145);
LABEL_81:
v99 = m_pObject->setPosition;
v100 = (__int64)m_pObject->getPosition(m_pObject);
cocos2d::CCPoint::operator-(&v154, v100, &v145);
v99(m_pObject, &v154.origin);
cocos2d::CCPoint::CCPoint(&v149, &v146);
cocos2d::CCPoint::CCPoint(&v150, &v147);
cocos2d::CCPoint::CCPoint(&v154.origin, &v148);
cocos2d::CCLayerColor::addToVertices(m_pObject, v157, v158, v159);
LABEL_35:
if ( !i )
goto LABEL_38;
goto LABEL_36;
}
LABEL_87:
cocos2d::CCPoint::CCPoint(&v154.origin, v54, v58);
cocos2d::CCPoint::operator+(&v148, &v145, &v154);
goto LABEL_81;
}
}
cocos2d::CCPoint::CCPoint(&v147, 0.0, v58 + v145.y);
if ( v53 )
goto LABEL_80;
goto LABEL_87;
}
}
}
LABEL_38:
for ( j = 0; j != 3; ++j )
{
if ( j )
{
if ( j == 1 )
m_inShaderParent = v1->m_inShaderParent;
else
m_inShaderParent = v1->m_aboveShaderParent;
}
else
{
m_inShaderParent = v1->m_objectParent;
}
v67 = (__int64)m_inShaderParent->getChildren(m_inShaderParent);
if ( v67 )
{
v68 = *(unsigned int **)(v67 + 56);
if ( *v68 )
{
v69 = *((__int64 **)v68 + 2);
v70 = &v69[*v68 - 1];
while ( v70 >= v69 )
{
v71 = *v69;
if ( !*v69 )
break;
v72 = *v69++;
v73 = *(void (__fastcall **)(__int64, cocos2d::CCRect *))(*(_QWORD *)v71 + 184LL);
v74 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v71 + 192LL))(v72);
cocos2d::CCPoint::operator+(&v154, v74, &v144);
v73(v71, &v154);
}
}
}
m_inShaderParent->setPosition(m_inShaderParent, &v141);
m_inShaderParent->setRotation(m_inShaderParent, v1->m_gameState.m_cameraAngle);
}
v1->m_uiTriggerUI->setRotation(v1->m_uiTriggerUI, -v1->m_gameState.m_cameraAngle);
m_uiTriggerUI = v1->m_uiTriggerUI;
v76 = m_uiTriggerUI->setPosition;
v77 = m_uiTriggerUI->getParent(m_uiTriggerUI);
v156 = cocos2d::CCNode::convertToNodeSpace(v77, &stru_1242DA8);
((void (__fastcall *)(cocos2d::CCNode *, cocos2d::CCRect *, float, float))v76)(m_uiTriggerUI, &v154, v156.x, v156.y);
cocos2d::CCRect::CCRect(&v154);
cocos2d::CCPoint::CCPoint(&v148);
m_shaderLayer = v1->m_shaderLayer;
if ( m_shaderLayer )
goto LABEL_49;
LABEL_98:
v79 = 0;
goto LABEL_54;
}
v104 = 0.0;
cocos2d::CCRect::operator=(&v151, &v1->m_background->m_obRect);
cocos2d::CCRect::CCRect(&v155, &v151);
if ( v1->m_groundLayer->getPosition(v1->m_groundLayer)->y >= 0.0 )
v104 = v1->m_groundLayer->getPosition(v1->m_groundLayer)->y;
v105 = v1->m_background->getPosition(v1->m_background)->y;
if ( v136 )
v106 = -1.0
- *(float *)(((__int64 (__fastcall *)(cocos2d::CCSprite *, float))v1->m_background->getPosition)(
v1->m_background,
v105)
+ 4);
else
v106 = (float)(v104 - v105) - 1.0;
v107 = v1->m_background;
v108 = v107->setPosition;
v109 = (__int64)v107->getPosition(v107);
cocos2d::CCPoint::CCPoint(&v150, 0.0, v106);
cocos2d::CCPoint::operator+(&v154, v109, &v150);
v108(v107, &v154.origin);
v110 = v1->m_background->getScale(v1->m_background);
v111 = v1->m_groundLayer2;
v112 = v111->isVisible;
v155.origin.y = v155.origin.y - (float)(v106 / v110);
if ( v112(v111) )
{
v113 = v140;
if ( v1->m_groundLayer2->getPosition(v1->m_groundLayer2)->y <= v140 )
v113 = v1->m_groundLayer2->getPosition(v1->m_groundLayer2)->y;
}
else
{
v113 = v140;
}
v114 = (float)(v113 - v1->m_background->getPosition(v1->m_background)->y) + 1.0;
v115 = v1->m_background->getScale(v1->m_background);
v116 = v155.size.height - (float)(v114 / v115);
v117 = v1->m_background->getScale(v1->m_background);
v118 = v1->m_background;
v119 = v118->getPosition;
v155.origin.y = v155.origin.y + v116;
v155.size.height = v114 / v117;
v120 = (float *)v119(v118);
v121 = v1->m_background;
v122 = -1.0 - *v120;
v123 = v121->setPosition;
v124 = (__int64)v121->getPosition(v121);
cocos2d::CCPoint::CCPoint(&v150, v122, 0.0);
cocos2d::CCPoint::operator+(&v154, v124, &v150);
v123(v121, &v154.origin);
v125 = v1->m_background->getScale(v1->m_background);
v126 = v1->m_background;
v127 = v126->getScale;
v155.origin.x = v155.origin.x + (float)(v122 / v125);
v128 = v127(v126);
v129 = v1->m_background;
v130 = v129->setTextureRect;
v155.size.width = (float)(v139 + 2.0) / v128;
v130(v129, &v155);
cocos2d::CCRect::CCRect(&v154);
cocos2d::CCPoint::CCPoint(&v148);
m_shaderLayer = v1->m_shaderLayer;
if ( !m_shaderLayer )
goto LABEL_98;
LABEL_49:
v79 = 0;
if ( m_shaderLayer->m_state.m_usesShaders && m_shaderLayer->m_state.m_minBlendingLayer > 0 )
{
cocos2d::CCRect::operator=(&v154, &v1->m_background->m_obRect);
v80 = ((float (__fastcall *)(cocos2d::CCSprite *))v1->m_background->getPosition)(v1->m_background);
cocos2d::CCPoint::operator=(&v148, v80, v81);
cocos2d::CCRect::CCRect(&v155, &v154);
v82 = 100.0 / v1->m_background->getScale(v1->m_background);
if ( v136 || v1->m_gameState.m_cameraAngle == 0.0 )
{
v83 = v1->m_background;
v84 = v83->setTextureRect;
v155.origin.x = v155.origin.x - v82;
v155.size.width = v155.size.width + (float)(v82 * 2.0);
v155.size.height = v155.size.height + (float)(v82 * 2.0);
v155.origin.y = v155.origin.y - v82;
v84(v83, &v155);
v85 = v1->m_background;
v86 = -100.0;
v87 = v85->setPosition;
}
else
{
v131 = v1->m_background;
v132 = v131->setTextureRect;
v155.origin.y = v155.origin.y - v82;
v155.size.width = v155.size.width + (float)(v82 * 2.0);
v155.origin.x = v155.origin.x - v82;
v155.size.height = v82 + v155.size.height;
v132(v131, &v155);
v85 = v1->m_background;
v86 = 0.0;
v87 = v85->setPosition;
}
v79 = 1;
cocos2d::CCPoint::CCPoint(&v149, -100.0, v86);
cocos2d::CCPoint::operator+(&v150, &v148, &v149);
v87(v85, &v150);
}
LABEL_54:
if ( v1->m_flashNode->isVisible(v1->m_flashNode) )
{
GJBaseGameLayer::visitWithColorFlash(v1);
if ( !v79 )
goto LABEL_56;
LABEL_90:
v1->m_background->setTextureRect(v1->m_background, &v154);
v1->m_background->setPosition(v1->m_background, &v148);
goto LABEL_56;
}
cocos2d::CCNode::visit(v1);
if ( v79 )
goto LABEL_90;
LABEL_56:
if ( v1->m_gameState.m_cameraAngle != 0.0 )
{
v88 = 0;
v138 = v1;
do
{
if ( v88 )
{
if ( v88 == 1 )
m_aboveShaderParent = v138->m_inShaderParent;
else
m_aboveShaderParent = v138->m_aboveShaderParent;
}
else
{
m_aboveShaderParent = v138->m_objectParent;
}
v90 = (__int64)m_aboveShaderParent->getChildren(m_aboveShaderParent);
if ( v90 )
{
v91 = *(unsigned int **)(v90 + 56);
if ( *v91 )
{
v92 = *((__int64 **)v91 + 2);
v93 = &v92[*v91 - 1];
while ( v93 >= v92 )
{
v94 = *v92;
if ( !*v92 )
break;
v95 = *v92++;
v96 = *(void (__fastcall **)(__int64, cocos2d::CCRect *))(*(_QWORD *)v94 + 184LL);
v97 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v94 + 192LL))(v95);
cocos2d::CCPoint::operator+(&v155, v97, &v141);
v96(v94, &v155);
}
}
}
++v88;
m_aboveShaderParent->setRotation(m_aboveShaderParent, 0.0);
m_aboveShaderParent->setPosition(m_aboveShaderParent, &stru_1242DA8);
}
while ( v88 != 3 );
v1 = v138;
v138->m_uiTriggerUI->setRotation(v138->m_uiTriggerUI, 0.0);
v1->m_uiTriggerUI->setPosition(v1->m_uiTriggerUI, &stru_1242DA8);
}
v1->m_background->setTextureRect(v1->m_background, &v151);
v1->m_background->setPosition(v1->m_background, &v142);
if ( v135 )
GJBaseGameLayer::flipObjects(v1);
}