//
// GJBaseGameLayer::visit from 0x140351210 to 0x14035258a (4986 bytes)
//
// 7 xrefs:
// > ??> @ 0x14076b640
// > ??> @ 0x14078b0b8
// > ??> @ 0x1407d5ca0
// > ??> @ 0x1408b8a24
// > ??> @ 0x1408b8b28
// > ??> @ 0x1409202e8
// > ??> @ 0x1409202f4
//
// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 11:30:47 +0000
//
void __fastcall GJBaseGameLayer::visit(__int64 a1)
{
float v2; // xmm1_4
__int64 v3; // rcx
__int64 v4; // rax
const struct cocos2d::CCPoint *v5; // rax
const struct cocos2d::CCPoint *v6; // rax
__int64 v7; // rdx
bool v8; // r14
__int64 v9; // rcx
float v10; // xmm6_4
float v11; // xmm6_4
__int64 v12; // rax
__int64 v13; // rbx
__int64 v14; // rax
float v15; // xmm0_4
__int64 v16; // rcx
__int64 v17; // rax
float v18; // xmm7_4
float v19; // xmm7_4
float v20; // xmm0_4
float v21; // xmm6_4
float v22; // xmm0_4
__int64 v23; // rcx
float v24; // xmm6_4
__int64 v25; // rax
__int64 v26; // rbx
__int64 v27; // rax
float v28; // xmm0_4
__int64 v29; // rcx
float v30; // xmm1_4
float v31; // xmm6_4
float v32; // xmm0_4
__int64 v33; // rcx
__int64 v34; // rax
float v35; // xmm6_4
float v36; // xmm7_4
__int64 v37; // rax
__int64 v38; // rbx
__int64 v39; // rax
float v40; // xmm6_4
float v41; // xmm0_4
__int64 v42; // rcx
float v43; // xmm0_4
__int64 v44; // rcx
float v45; // xmm0_4
__int64 v46; // rcx
__int64 v47; // rax
float v48; // xmm7_4
float v49; // xmm7_4
float v50; // xmm0_4
float v51; // xmm6_4
float v52; // xmm0_4
__int64 v53; // rcx
float v54; // xmm1_4
float v55; // xmm6_4
float v56; // xmm6_4
__int64 v57; // rax
__int64 v58; // rbx
__int64 v59; // rax
__int64 v60; // rcx
float v61; // xmm1_4
float v62; // xmm6_4
double v63; // xmm0_8
__int64 v64; // rcx
float v65; // xmm14_4
float v66; // xmm14_4
__int64 v67; // r14
__int64 v68; // r14
__int64 i; // r15
__int64 *v70; // r14
__int64 v71; // rbx
struct cocos2d::CCObject *MainObject; // r12
struct cocos2d::CCObject *v73; // r13
struct cocos2d::CCObject *v74; // rdi
struct cocos2d::CCObject *v75; // rax
bool v76; // zf
float v77; // xmm7_4
float v78; // xmm10_4
float v79; // xmm9_4
float v80; // xmm11_4
__int64 v81; // rax
__int64 v82; // rbx
__int64 v83; // rax
__int64 v84; // rbx
double v85; // xmm0_8
__int64 v86; // rbx
float v87; // xmm6_4
const struct cocos2d::CCPoint *v88; // rax
const struct cocos2d::CCPoint *v89; // rax
const struct cocos2d::CCPoint *v90; // rax
const struct cocos2d::CCPoint *v91; // rax
__int64 v92; // rax
__int64 v93; // rax
__int64 v94; // rax
__int64 v95; // rdi
__int64 v96; // rax
__int64 v97; // rbx
__int64 v98; // rax
__int64 v99; // r14
__int64 v100; // rax
unsigned int *v101; // rdi
__int64 v102; // rax
_QWORD *v103; // rdi
_QWORD *j; // r15
__int64 v105; // rbx
__int64 v106; // rax
__int64 v107; // r14
__int64 v108; // rax
unsigned int *v109; // rdi
__int64 v110; // rax
_QWORD *v111; // rdi
_QWORD *k; // r15
__int64 v113; // rbx
__int64 v114; // rax
__int64 v115; // r15
__int64 v116; // rax
unsigned int *v117; // rdi
__int64 v118; // rax
_QWORD *v119; // rdi
_QWORD *m; // r14
__int64 v121; // rbx
__int64 v122; // rax
__int64 *v123; // rdi
__int64 v124; // rbx
__int64 v125; // rax
__int64 v126; // rax
char v127; // di
__int64 v128; // rax
__int64 v129; // rax
float v130; // xmm2_4
bool v131; // bl
__int64 v132; // rcx
float v133; // xmm2_4
__int64 v134; // rax
__int64 v135; // r14
__int64 v136; // rax
unsigned int *v137; // rdi
__int64 v138; // rax
_QWORD *v139; // rdi
_QWORD *n; // r15
__int64 v141; // rbx
__int64 v142; // rax
__int64 v143; // r14
__int64 v144; // rax
unsigned int *v145; // rdi
__int64 v146; // rax
_QWORD *v147; // rdi
_QWORD *ii; // r15
__int64 v149; // rbx
__int64 v150; // rax
__int64 v151; // r15
__int64 v152; // rax
unsigned int *v153; // rdi
__int64 v154; // rax
_QWORD *v155; // rdi
_QWORD *jj; // r14
__int64 v157; // rbx
__int64 v158; // rax
float v159; // [rsp+20h] [rbp-E0h] BYREF
float v160; // [rsp+24h] [rbp-DCh]
float v161; // [rsp+28h] [rbp-D8h]
float v162; // [rsp+2Ch] [rbp-D4h]
_BYTE v163[8]; // [rsp+30h] [rbp-D0h] BYREF
_BYTE v164[8]; // [rsp+38h] [rbp-C8h] BYREF
_BYTE v165[8]; // [rsp+40h] [rbp-C0h] BYREF
_BYTE v166[8]; // [rsp+48h] [rbp-B8h] BYREF
_BYTE v167[16]; // [rsp+50h] [rbp-B0h] BYREF
struct cocos2d::CCObject *v168; // [rsp+60h] [rbp-A0h]
_BYTE v169[8]; // [rsp+68h] [rbp-98h] BYREF
_BYTE v170[8]; // [rsp+70h] [rbp-90h] BYREF
_BYTE v171[8]; // [rsp+78h] [rbp-88h] BYREF
_BYTE v172[8]; // [rsp+80h] [rbp-80h] BYREF
_BYTE v173[8]; // [rsp+88h] [rbp-78h] BYREF
_BYTE v174[8]; // [rsp+90h] [rbp-70h] BYREF
_BYTE v175[16]; // [rsp+98h] [rbp-68h] BYREF
_BYTE v176[8]; // [rsp+A8h] [rbp-58h] BYREF
_BYTE v177[8]; // [rsp+B0h] [rbp-50h] BYREF
_BYTE v178[8]; // [rsp+B8h] [rbp-48h] BYREF
_BYTE v179[8]; // [rsp+C0h] [rbp-40h] BYREF
_BYTE v180[8]; // [rsp+C8h] [rbp-38h] BYREF
_BYTE v181[8]; // [rsp+D0h] [rbp-30h] BYREF
_BYTE v182[8]; // [rsp+D8h] [rbp-28h] BYREF
_BYTE v183[8]; // [rsp+E0h] [rbp-20h] BYREF
_BYTE v184[8]; // [rsp+E8h] [rbp-18h] BYREF
_BYTE v185[8]; // [rsp+F0h] [rbp-10h] BYREF
_BYTE v186[8]; // [rsp+F8h] [rbp-8h] BYREF
_BYTE v187[8]; // [rsp+100h] [rbp+0h] BYREF
_BYTE v188[8]; // [rsp+108h] [rbp+8h] BYREF
_BYTE v189[16]; // [rsp+110h] [rbp+10h] BYREF
_BYTE v190[16]; // [rsp+120h] [rbp+20h] BYREF
bool v191; // [rsp+220h] [rbp+120h] BYREF
char v192; // [rsp+228h] [rbp+128h]
float v193; // [rsp+230h] [rbp+130h] BYREF
float v194; // [rsp+234h] [rbp+134h]
float v195; // [rsp+238h] [rbp+138h] BYREF
float v196; // [rsp+23Ch] [rbp+13Ch]
if ( *(float *)(a1 + 13028) < 1.0 )
{
cocos2d::CCNode::visit((cocos2d::CCNode *)a1);
return;
}
if ( !*(_QWORD *)(a1 + 3512) )
goto LABEL_8;
v2 = *(float *)(a1 + 1052);
if ( v2 == 0.0 || v2 == 1.0 )
goto LABEL_8;
if ( *(float *)(a1 + 13044) == 1.0 )
{
if ( v2 < 0.5 )
{
LABEL_8:
v192 = 0;
goto LABEL_9;
}
}
else if ( v2 > 0.5 )
{
goto LABEL_8;
}
v192 = 1;
GJBaseGameLayer::flipObjects(a1);
LABEL_9:
cocos2d::CCRect::CCRect((cocos2d::CCRect *)v167, (const struct cocos2d::CCRect *)&unk_14090AA78);
cocos2d::CCRect::CCRect((cocos2d::CCRect *)v189, (const struct cocos2d::CCRect *)&unk_14090AA78);
cocos2d::CCRect::CCRect((cocos2d::CCRect *)v190, (const struct cocos2d::CCRect *)&unk_14090AA78);
v4 = cocos2d::CCDirector::sharedDirector(v3);
cocos2d::CCDirector::getWinSize(v4, &v193);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v163, v193 * 0.5, v194 * 0.5);
v5 = (const struct cocos2d::CCPoint *)(*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 4320) + 200LL))(*(_QWORD *)(a1 + 4320));
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v169, v5);
v6 = (const struct cocos2d::CCPoint *)(*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 4344) + 200LL))(*(_QWORD *)(a1 + 4344));
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v176, v6);
v8 = !(*(unsigned __int8 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 4336) + 344LL))(*(_QWORD *)(a1 + 4336))
|| !*(_BYTE *)(*(_QWORD *)(a1 + 4336) + 457LL);
LOBYTE(v7) = 100;
v9 = *(_QWORD *)(*(_QWORD *)(a1 + 4336) + 408LL) + 320LL;
v191 = v8;
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v9 + 40LL))(v9, v7);
if ( *(float *)(a1 + 804) == 0.0 )
{
cocos2d::CCRect::operator=(v167, *(_QWORD *)(a1 + 4320) + 424LL);
cocos2d::CCRect::CCRect((cocos2d::CCRect *)&v159, (const struct cocos2d::CCRect *)v167);
if ( *(float *)((*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 4336) + 200LL))(*(_QWORD *)(a1 + 4336)) + 4) <= 0.0 )
v10 = 0.0;
else
v10 = *(float *)((*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 4336) + 200LL))(*(_QWORD *)(a1 + 4336)) + 4);
v11 = (float)(v10
- *(float *)((*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 4320) + 200LL))(*(_QWORD *)(a1 + 4320))
+ 4))
- 1.0;
if ( v8 )
v11 = (float)-*(float *)((*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 4320) + 200LL))(*(_QWORD *)(a1 + 4320))
+ 4)
- 1.0;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v195, 0.0, v11);
v13 = v12;
v14 = (*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 4320) + 200LL))(*(_QWORD *)(a1 + 4320));
cocos2d::CCPoint::operator+(v14, &v191, v13);
(*(void (__fastcall **)(_QWORD, bool *))(**(_QWORD **)(a1 + 4320) + 184LL))(*(_QWORD *)(a1 + 4320), &v191);
v15 = (*(float (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 4320) + 168LL))(*(_QWORD *)(a1 + 4320));
v16 = *(_QWORD *)(a1 + 4344);
v160 = v160 - (float)(v11 / v15);
if ( (*(unsigned __int8 (__fastcall **)(__int64))(*(_QWORD *)v16 + 344LL))(v16) )
{
v17 = (*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 4344) + 200LL))(*(_QWORD *)(a1 + 4344));
v18 = v194;
if ( v194 > *(float *)(v17 + 4) )
v18 = *(float *)((*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 4344) + 200LL))(*(_QWORD *)(a1 + 4344))
+ 4);
}
else
{
v18 = v194;
}
v19 = (float)(v18
- *(float *)((*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 4320) + 200LL))(*(_QWORD *)(a1 + 4320))
+ 4))
+ 1.0;
v20 = (*(float (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 4320) + 168LL))(*(_QWORD *)(a1 + 4320));
v21 = v162 - (float)(v19 / v20);
v22 = (*(float (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 4320) + 168LL))(*(_QWORD *)(a1 + 4320));
v23 = *(_QWORD *)(a1 + 4320);
v160 = v160 + v21;
v162 = v19 / v22;
v24 = -1.0 - *(float *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v23 + 200LL))(v23);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v195, v24, 0.0);
v26 = v25;
v27 = (*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 4320) + 200LL))(*(_QWORD *)(a1 + 4320));
cocos2d::CCPoint::operator+(v27, &v191, v26);
(*(void (__fastcall **)(_QWORD, bool *))(**(_QWORD **)(a1 + 4320) + 184LL))(*(_QWORD *)(a1 + 4320), &v191);
v28 = (*(float (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 4320) + 168LL))(*(_QWORD *)(a1 + 4320));
v29 = *(_QWORD *)(a1 + 4320);
v30 = v159 + (float)(v24 / v28);
v31 = v193 + 2.0;
v159 = v30;
v32 = (*(float (__fastcall **)(__int64))(*(_QWORD *)v29 + 168LL))(v29);
v33 = *(_QWORD *)(a1 + 4320);
v161 = v31 / v32;
(*(void (__fastcall **)(__int64, float *))(*(_QWORD *)v33 + 992LL))(v33, &v159);
}
else
{
cocos2d::CCPoint::operator-(v163, v164);
v34 = (*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 4336) + 200LL))(*(_QWORD *)(a1 + 4336));
v35 = (float)-*(float *)(a1 + 13052) * 0.5;
if ( *(float *)(v34 + 4) > v35 )
v35 = *(float *)((*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 4336) + 200LL))(*(_QWORD *)(a1 + 4336)) + 4);
v36 = *(float *)((*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 4320) + 200LL))(*(_QWORD *)(a1 + 4320)) + 4)
- v35;
if ( v8 )
v36 = (float)(*(float *)(a1 + 13052) * 0.5)
+ *(float *)((*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 4320) + 200LL))(*(_QWORD *)(a1 + 4320)) + 4);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v166, (float)-*(float *)(a1 + 13048) * 0.5, -v36);
v38 = v37;
v39 = (*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 4320) + 200LL))(*(_QWORD *)(a1 + 4320));
cocos2d::CCPoint::operator+(v39, &v195, v38);
(*(void (__fastcall **)(_QWORD, float *))(**(_QWORD **)(a1 + 4320) + 184LL))(*(_QWORD *)(a1 + 4320), &v195);
cocos2d::CCRect::operator=(v167, *(_QWORD *)(a1 + 4320) + 424LL);
cocos2d::CCRect::CCRect((cocos2d::CCRect *)&v159, (const struct cocos2d::CCRect *)v167);
v40 = *(float *)(a1 + 13048) * 0.5;
v41 = (*(float (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 4320) + 168LL))(*(_QWORD *)(a1 + 4320));
v42 = *(_QWORD *)(a1 + 4320);
v159 = v159 - (float)(v40 / v41);
v43 = (*(float (__fastcall **)(__int64))(*(_QWORD *)v42 + 168LL))(v42);
v44 = *(_QWORD *)(a1 + 4320);
v161 = v161 + (float)(*(float *)(a1 + 13048) / v43);
v45 = (*(float (__fastcall **)(__int64))(*(_QWORD *)v44 + 168LL))(v44);
v46 = *(_QWORD *)(a1 + 4344);
v160 = v160 + (float)(v36 / v45);
if ( (*(unsigned __int8 (__fastcall **)(__int64))(*(_QWORD *)v46 + 344LL))(v46) )
{
v47 = (*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 4344) + 200LL))(*(_QWORD *)(a1 + 4344));
v48 = (float)(*(float *)(a1 + 13052) * 0.5) + v194;
if ( v48 > *(float *)(v47 + 4) )
v48 = *(float *)((*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 4344) + 200LL))(*(_QWORD *)(a1 + 4344))
+ 4);
}
else
{
v48 = (float)(*(float *)(a1 + 13052) * 0.5) + v194;
}
v49 = (float)(v48
- *(float *)((*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 4320) + 200LL))(*(_QWORD *)(a1 + 4320))
+ 4))
+ 1.0;
v50 = (*(float (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 4320) + 168LL))(*(_QWORD *)(a1 + 4320));
v51 = v162 - (float)(v49 / v50);
v52 = (*(float (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 4320) + 168LL))(*(_QWORD *)(a1 + 4320));
v53 = *(_QWORD *)(a1 + 4320);
v54 = v160 + v51;
v55 = -*(float *)(a1 + 13048);
v160 = v54;
v162 = v49 / v52;
v56 = (float)((float)(v55 * 0.5) - 1.0)
- *(float *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v53 + 200LL))(v53);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v166, v56, 0.0);
v58 = v57;
v59 = (*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 4320) + 200LL))(*(_QWORD *)(a1 + 4320));
cocos2d::CCPoint::operator+(v59, &v195, v58);
(*(void (__fastcall **)(_QWORD, float *))(**(_QWORD **)(a1 + 4320) + 184LL))(*(_QWORD *)(a1 + 4320), &v195);
*(float *)&v63 = (*(float (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 4320) + 168LL))(*(_QWORD *)(a1 + 4320));
v60 = *(_QWORD *)(a1 + 4320);
v61 = v159 + (float)(v56 / *(float *)&v63);
v62 = v193 + *(float *)(a1 + 13048);
v159 = v61;
*(float *)&v63 = (*(float (__fastcall **)(__int64))(*(_QWORD *)v60 + 168LL))(v60);
v64 = *(_QWORD *)(a1 + 4320);
v161 = (float)(v62 + 1.0) / *(float *)&v63;
(*(void (__fastcall **)(__int64, float *))(*(_QWORD *)v64 + 992LL))(v64, &v159);
if ( dword_1408FE350 != *(_DWORD *)(a1 + 992) )
{
dword_1408FE350 = *(_DWORD *)(a1 + 992);
if ( v8 )
{
v65 = *(float *)(a1 + 13052) * 0.5;
}
else
{
LODWORD(v63) = *(_DWORD *)((*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 4336) + 200LL))(*(_QWORD *)(a1 + 4336))
+ 4);
v66 = -(float)(*(float *)(a1 + 13052) * 0.5);
if ( *(float *)&v63 > v66 )
v66 = *(float *)((*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 4336) + 200LL))(*(_QWORD *)(a1 + 4336))
+ 4);
v65 = -v66;
}
v67 = *(_QWORD *)(a1 + 12880);
if ( v67 )
{
v68 = *(_QWORD *)(v67 + 56);
if ( v68 )
{
for ( i = *(_QWORD *)(v68 + 288); ; i = *(_QWORD *)(i + 288) )
{
v70 = *(__int64 **)(v68 + 264);
if ( (*(__int64 (__fastcall **)(__int64 *))(*v70 + 504))(v70) )
{
v71 = v70[73];
MainObject = GJBaseGameLayer::tryGetMainObject(a1, *(_DWORD *)(v71 + 1868));
v73 = GJBaseGameLayer::tryGetMainObject(a1, *(_DWORD *)(v71 + 1872));
v74 = GJBaseGameLayer::tryGetMainObject(a1, *(_DWORD *)(v71 + 1876));
v75 = GJBaseGameLayer::tryGetMainObject(a1, *(_DWORD *)(v71 + 1880));
v76 = *((_BYTE *)v70 + 592) == 0;
v168 = v75;
if ( v76 )
LODWORD(v63) = 1065353216;
else
(*(void (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 4296) + 168LL))(*(_QWORD *)(a1 + 4296));
v77 = (float)(*(float *)(a1 + 13048) * 0.5) / *(float *)&v63;
if ( *((_BYTE *)v70 + 592) )
(*(void (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 4296) + 168LL))(*(_QWORD *)(a1 + 4296));
else
LODWORD(v63) = 1065353216;
v78 = v65 / *(float *)&v63;
if ( *((_BYTE *)v70 + 592) )
(*(void (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 4296) + 168LL))(*(_QWORD *)(a1 + 4296));
else
LODWORD(v63) = 1065353216;
v79 = (float)(*(float *)(a1 + 13052) * 0.5) / *(float *)&v63;
if ( *(_BYTE *)(v71 + 1884) )
{
if ( MainObject )
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v178, (const struct cocos2d::CCPoint *)&dword_14090AA70);
else
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v179, v77, v78);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v195, v88);
if ( v73 )
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v180, (const struct cocos2d::CCPoint *)&v195);
else
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v181, v195 + v77, 0.0);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v166, v89);
if ( v74 )
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v182, (const struct cocos2d::CCPoint *)&v195);
else
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v183, 0.0, v196 + v79);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v174, v90);
if ( v168 )
{
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v184, (const struct cocos2d::CCPoint *)&v195);
}
else
{
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v185, v77, v79);
cocos2d::CCPoint::operator+(&v195, v171, v92);
v91 = (const struct cocos2d::CCPoint *)v171;
}
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v173, v91);
v93 = (*(__int64 (__fastcall **)(__int64 *))(*v70 + 200))(v70);
cocos2d::CCPoint::operator-(v93, v172, &v195);
(*(void (__fastcall **)(__int64 *, _BYTE *))(*v70 + 184))(v70, v172);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v186, (const struct cocos2d::CCPoint *)v173);
v95 = v94;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v187, (const struct cocos2d::CCPoint *)v174);
v97 = v96;
v63 = cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v188, (const struct cocos2d::CCPoint *)v166);
cocos2d::CCLayerColor::addToVertices(v70, v98, v97, v95);
}
else
{
if ( v74 )
v80 = 0.0;
else
v80 = v77;
if ( v168 )
v77 = 0.0;
if ( v73 )
v78 = 0.0;
if ( MainObject )
v79 = 0.0;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v177, v80, v78);
v82 = v81;
v83 = (*(__int64 (__fastcall **)(__int64 *))(*v70 + 200))(v70);
cocos2d::CCPoint::operator-(v83, v170, v82);
(*(void (__fastcall **)(__int64 *, _BYTE *))(*v70 + 184))(v70, v170);
if ( (float)(v77 + v80) != 0.0 )
{
(*(void (__fastcall **)(__int64 *))(*v70 + 128))(v70);
v84 = *v70;
(*(void (__fastcall **)(__int64 *))(*v70 + 128))(v70);
(*(void (__fastcall **)(__int64 *))(v84 + 120))(v70);
}
*(float *)&v63 = v79 + v78;
if ( (float)(v79 + v78) != 0.0 )
{
v85 = (*(double (__fastcall **)(__int64 *))(*v70 + 144))(v70);
v86 = *v70;
v87 = *(float *)&v85 * v194;
v63 = (*(double (__fastcall **)(__int64 *))(*v70 + 144))(v70);
*(float *)&v63 = *(float *)&v63 * (float)((float)((float)(v87 + v78) + v79) / v87);
(*(void (__fastcall **)(__int64 *))(v86 + 136))(v70);
}
}
}
v68 = i;
if ( !i )
break;
}
}
}
}
v99 = *(_QWORD *)(a1 + 4272);
v100 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v99 + 480LL))(v99);
if ( v100 )
{
v101 = *(unsigned int **)(v100 + 56);
v102 = *v101;
if ( (_DWORD)v102 )
{
v103 = *((_QWORD **)v101 + 2);
for ( j = &v103[v102 - 1]; v103 <= j; ++v103 )
{
v105 = *v103;
if ( !*v103 )
break;
v106 = (*(__int64 (__fastcall **)(_QWORD))(*(_QWORD *)v105 + 200LL))(*v103);
cocos2d::CCPoint::operator+(v106, &v195, v164);
(*(void (__fastcall **)(__int64, float *))(*(_QWORD *)v105 + 184LL))(v105, &v195);
}
}
}
(*(void (__fastcall **)(__int64, _BYTE *))(*(_QWORD *)v99 + 184LL))(v99, v163);
(*(void (__fastcall **)(__int64))(*(_QWORD *)v99 + 352LL))(v99);
v107 = *(_QWORD *)(a1 + 4280);
v108 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v107 + 480LL))(v107);
if ( v108 )
{
v109 = *(unsigned int **)(v108 + 56);
v110 = *v109;
if ( (_DWORD)v110 )
{
v111 = *((_QWORD **)v109 + 2);
for ( k = &v111[v110 - 1]; v111 <= k; ++v111 )
{
v113 = *v111;
if ( !*v111 )
break;
v114 = (*(__int64 (__fastcall **)(_QWORD))(*(_QWORD *)v113 + 200LL))(*v111);
cocos2d::CCPoint::operator+(v114, &v195, v164);
(*(void (__fastcall **)(__int64, float *))(*(_QWORD *)v113 + 184LL))(v113, &v195);
}
}
}
(*(void (__fastcall **)(__int64, _BYTE *))(*(_QWORD *)v107 + 184LL))(v107, v163);
(*(void (__fastcall **)(__int64))(*(_QWORD *)v107 + 352LL))(v107);
v115 = *(_QWORD *)(a1 + 4288);
v116 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v115 + 480LL))(v115);
if ( v116 )
{
v117 = *(unsigned int **)(v116 + 56);
v118 = *v117;
if ( (_DWORD)v118 )
{
v119 = *((_QWORD **)v117 + 2);
for ( m = &v119[v118 - 1]; v119 <= m; ++v119 )
{
v121 = *v119;
if ( !*v119 )
break;
v122 = (*(__int64 (__fastcall **)(_QWORD))(*(_QWORD *)v121 + 200LL))(*v119);
cocos2d::CCPoint::operator+(v122, &v195, v164);
(*(void (__fastcall **)(__int64, float *))(*(_QWORD *)v121 + 184LL))(v121, &v195);
}
}
}
(*(void (__fastcall **)(__int64, _BYTE *))(*(_QWORD *)v115 + 184LL))(v115, v163);
(*(void (__fastcall **)(__int64))(*(_QWORD *)v115 + 352LL))(v115);
(*(void (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 13912) + 352LL))(*(_QWORD *)(a1 + 13912));
v123 = *(__int64 **)(a1 + 13912);
v124 = *v123;
v125 = (*(__int64 (__fastcall **)(__int64 *))(*v123 + 504))(v123);
cocos2d::CCNode::convertToNodeSpace(v125, &v195, &dword_14090AA70);
(*(void (__fastcall **)(__int64 *, __int64))(v124 + 184))(v123, v126);
v8 = v191;
}
v127 = 0;
cocos2d::CCRect::CCRect((cocos2d::CCRect *)v175);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v165);
v128 = *(_QWORD *)(a1 + 12896);
if ( v128 && *(_BYTE *)(v128 + 1126) && *(int *)(v128 + 1116) >= 1 )
{
v127 = 1;
cocos2d::CCRect::operator=(v175, *(_QWORD *)(a1 + 4320) + 424LL);
v129 = (*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 4320) + 200LL))(*(_QWORD *)(a1 + 4320));
cocos2d::CCPoint::operator=(v165, v129);
cocos2d::CCRect::CCRect((cocos2d::CCRect *)&v159, (const struct cocos2d::CCRect *)v175);
v130 = 100.0 / (*(float (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 4320) + 168LL))(*(_QWORD *)(a1 + 4320));
v131 = v8 || *(float *)(a1 + 804) == 0.0;
v132 = *(_QWORD *)(a1 + 4320);
v159 = v159 - v130;
v160 = v160 - v130;
v161 = v161 + (float)(v130 + v130);
v162 = v162 + (float)((float)(v131 + 1) * v130);
(*(void (__fastcall **)(__int64, float *))(*(_QWORD *)v132 + 992LL))(v132, &v159);
if ( v131 )
v133 = -100.0;
else
v133 = 0.0;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v195, -100.0, v133);
cocos2d::CCPoint::operator+(v165, &v191, v134);
(*(void (__fastcall **)(_QWORD, bool *))(**(_QWORD **)(a1 + 4320) + 184LL))(*(_QWORD *)(a1 + 4320), &v191);
}
if ( (*(unsigned __int8 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 13032) + 344LL))(*(_QWORD *)(a1 + 13032)) )
GJBaseGameLayer::visitWithColorFlash(a1);
else
cocos2d::CCNode::visit((cocos2d::CCNode *)a1);
if ( v127 )
{
(*(void (__fastcall **)(_QWORD, _BYTE *))(**(_QWORD **)(a1 + 4320) + 992LL))(*(_QWORD *)(a1 + 4320), v175);
(*(void (__fastcall **)(_QWORD, _BYTE *))(**(_QWORD **)(a1 + 4320) + 184LL))(*(_QWORD *)(a1 + 4320), v165);
}
if ( *(float *)(a1 + 804) != 0.0 )
{
v135 = *(_QWORD *)(a1 + 4272);
v136 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v135 + 480LL))(v135);
if ( v136 )
{
v137 = *(unsigned int **)(v136 + 56);
v138 = *v137;
if ( (_DWORD)v138 )
{
v139 = *((_QWORD **)v137 + 2);
for ( n = &v139[v138 - 1]; v139 <= n; ++v139 )
{
v141 = *v139;
if ( !*v139 )
break;
v142 = (*(__int64 (__fastcall **)(_QWORD))(*(_QWORD *)v141 + 200LL))(*v139);
cocos2d::CCPoint::operator+(v142, &v191, v163);
(*(void (__fastcall **)(__int64, bool *))(*(_QWORD *)v141 + 184LL))(v141, &v191);
}
}
}
(*(void (__fastcall **)(__int64))(*(_QWORD *)v135 + 352LL))(v135);
(*(void (__fastcall **)(__int64, int *))(*(_QWORD *)v135 + 184LL))(v135, &dword_14090AA70);
v143 = *(_QWORD *)(a1 + 4280);
v144 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v143 + 480LL))(v143);
if ( v144 )
{
v145 = *(unsigned int **)(v144 + 56);
v146 = *v145;
if ( (_DWORD)v146 )
{
v147 = *((_QWORD **)v145 + 2);
for ( ii = &v147[v146 - 1]; v147 <= ii; ++v147 )
{
v149 = *v147;
if ( !*v147 )
break;
v150 = (*(__int64 (__fastcall **)(_QWORD))(*(_QWORD *)v149 + 200LL))(*v147);
cocos2d::CCPoint::operator+(v150, &v191, v163);
(*(void (__fastcall **)(__int64, bool *))(*(_QWORD *)v149 + 184LL))(v149, &v191);
}
}
}
(*(void (__fastcall **)(__int64))(*(_QWORD *)v143 + 352LL))(v143);
(*(void (__fastcall **)(__int64, int *))(*(_QWORD *)v143 + 184LL))(v143, &dword_14090AA70);
v151 = *(_QWORD *)(a1 + 4288);
v152 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v151 + 480LL))(v151);
if ( v152 )
{
v153 = *(unsigned int **)(v152 + 56);
v154 = *v153;
if ( (_DWORD)v154 )
{
v155 = *((_QWORD **)v153 + 2);
for ( jj = &v155[v154 - 1]; v155 <= jj; ++v155 )
{
v157 = *v155;
if ( !*v155 )
break;
v158 = (*(__int64 (__fastcall **)(_QWORD))(*(_QWORD *)v157 + 200LL))(*v155);
cocos2d::CCPoint::operator+(v158, &v191, v163);
(*(void (__fastcall **)(__int64, bool *))(*(_QWORD *)v157 + 184LL))(v157, &v191);
}
}
}
(*(void (__fastcall **)(__int64))(*(_QWORD *)v151 + 352LL))(v151);
(*(void (__fastcall **)(__int64, int *))(*(_QWORD *)v151 + 184LL))(v151, &dword_14090AA70);
(*(void (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 13912) + 352LL))(*(_QWORD *)(a1 + 13912));
(*(void (__fastcall **)(_QWORD, int *))(**(_QWORD **)(a1 + 13912) + 184LL))(
*(_QWORD *)(a1 + 13912),
&dword_14090AA70);
}
(*(void (__fastcall **)(_QWORD, _BYTE *))(**(_QWORD **)(a1 + 4320) + 992LL))(*(_QWORD *)(a1 + 4320), v167);
(*(void (__fastcall **)(_QWORD, _BYTE *))(**(_QWORD **)(a1 + 4320) + 184LL))(*(_QWORD *)(a1 + 4320), v169);
if ( v192 )
GJBaseGameLayer::flipObjects(a1);
}