// // GJBaseGameLayer::checkCollisions from 0x14031aae0 to 0x14031bcd8 (4600 bytes) // // 4 xrefs: // > GJBaseGameLayer::update @ 0x14034117f // > GJBaseGameLayer::update @ 0x140341271 // > @ 0x14091ebfc // > @ 0x14091ec08 // // 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:20 +0000 // // Hidden C++ exception states: #wind=5 __int64 __fastcall GJBaseGameLayer::checkCollisions(__int64 a1, __int64 a2, float a3, char a4) { float v4; // xmm12_4 char v7; // r15 int v8; // r12d char v9; // al __int64 v10; // rax __int64 v11; // rax float v12; // xmm6_4 float v13; // xmm0_4 float v14; // xmm10_4 float v15; // xmm8_4 float v16; // xmm7_4 bool v17; // si bool v18; // r13 __int64 v19; // rax void (__fastcall *v20)(__int64, __int64); // rbx __int64 v21; // rax double v22; // xmm0_8 float *v23; // rax void (__fastcall *v24)(__int64, __int64); // rbx __int64 v25; // rax __int64 v26; // r8 float *v27; // rax void (__fastcall *v28)(__int64, __int64); // rbx __int64 v29; // rax float MaxPortalY; // xmm7_4 float MinPortalY; // xmm0_4 float v32; // xmm12_4 float v33; // xmm7_4 float v34; // xmm9_4 _BYTE *v35; // rsi char v36; // r15 double v37; // xmm1_8 double v38; // xmm1_8 float v39; // xmm6_4 char v40; // r12 float *v41; // rax void (__fastcall *v42)(__int64, __int64); // rbx __int64 v43; // rax __int64 v44; // r8 double v45; // xmm0_8 double v46; // xmm7_8 char v47; // si double v48; // xmm1_8 double v49; // xmm1_8 float v50; // xmm7_4 char v51; // r15 float v52; // xmm6_4 float *v53; // rax void (__fastcall *v54)(__int64, __int64); // rbx __int64 v55; // rax float v57; // xmm0_4 int v58; // ebx float v59; // xmm0_4 int v60; // r10d int v61; // r9d __int64 v62; // r11 __int64 v63; // rdx int v64; // r8d float v65; // esi int v66; // r10d int *v67; // rbx __int64 v68; // r13 __int64 v69; // r8 __int64 v70; // rdx __int64 v71; // rax __int64 v72; // rcx __int64 v73; // rdx int v74; // edx float v75; // r12d __int64 v76; // r15 _QWORD *v77; // rbx __int64 v78; // rsi int v79; // eax int v80; // edx __int64 v81; // r8 _QWORD *v82; // rcx int v83; // r9d bool v84; // r15 cocos2d::CCRect *v85; // r13 float MaxX; // xmm7_4 float MinX; // xmm8_4 float MaxY; // xmm9_4 float MinY; // xmm10_4 int v90; // ecx __int64 v91; // rbx float v92; // xmm6_4 const struct cocos2d::CCRect *v93; // rax cocos2d::CCRect *v94; // rax int v95; // eax int v96; // edx __int64 v97; // rax __int64 v98; // rbx __int64 v99; // rcx __int64 v100; // rax float v101; // xmm6_4 float v102; // xmm7_4 float v103; // xmm8_4 float v104; // xmm9_4 __int64 v105; // rdx int v106; // r12d __int64 v107; // r15 __int64 v108; // rbx float *v109; // rsi float *v110; // rax __int64 v111; // r8 int *v112; // [rsp+38h] [rbp-D0h] __int64 v113; // [rsp+38h] [rbp-D0h] __int64 v114; // [rsp+40h] [rbp-C8h] __int64 v115; // [rsp+48h] [rbp-C0h] __int64 v116; // [rsp+50h] [rbp-B8h] BYREF __int64 v117; // [rsp+60h] [rbp-A8h] BYREF float v118; // [rsp+6Ch] [rbp-9Ch] void *v119; // [rsp+158h] [rbp+50h] BYREF float v120; // [rsp+160h] [rbp+58h] BYREF float v121; // [rsp+164h] [rbp+5Ch] float v122; // [rsp+168h] [rbp+60h] char v123; // [rsp+170h] [rbp+68h] v123 = a4; v122 = a3; v4 = a3; v7 = *(_BYTE *)(a2 + 1376); *(_BYTE *)(a2 + 1376) = 0; *(_BYTE *)(a2 + 2120) = 0; v8 = 0; *(_QWORD *)(a2 + 2400) = 0; *(_QWORD *)(a2 + 2408) = 0; *(_QWORD *)(a2 + 2416) = 0; *(_QWORD *)(a2 + 2424) = 0; *(_BYTE *)(a2 + 2489) = *(_BYTE *)(a2 + 2488); *(_BYTE *)(a2 + 2488) = 0; v9 = *(_BYTE *)(a2 + 2580); *(_BYTE *)(a2 + 2880) = v9; if ( v9 && !*(_BYTE *)(a2 + 2913) && !*(_BYTE *)(a2 + 2914) && *(int *)(a2 + 2884) > 0 ) { *(_DWORD *)(a2 + 2884) = 0; *(_QWORD *)(a2 + 2888) = *(_QWORD *)(a2 + 2728); } if ( *(_BYTE *)(a2 + 1649) ) *(_QWORD *)(a2 + 1656) = 0; else *(_BYTE *)(a2 + 1649) = 1; sub_140066610((_QWORD *)(a2 + 1768)); v10 = *(_QWORD *)(a2 + 1656); if ( v10 ) { LODWORD(v119) = *(_DWORD *)(v10 + 924); *(_QWORD *)(*(_QWORD *)sub_1402A4E90(a2 + 1768, (__int64)&v117, (unsigned __int8 *)&v119) + 24LL) = *(_QWORD *)(a2 + 1656); } v11 = *(_QWORD *)(a2 + 1664); if ( v11 ) { LODWORD(v119) = *(_DWORD *)(v11 + 924); *(_QWORD *)(*(_QWORD *)sub_1402A4E90(a2 + 1768, (__int64)&v117, (unsigned __int8 *)&v119) + 24LL) = *(_QWORD *)(a2 + 1664); } v12 = 0.0; v13 = *(float *)(a2 + 2552); v14 = *(float *)(a2 + 2744); if ( v13 != 1.0 ) v12 = (float)((float)(1.0 - v13) * v14) * 0.5; v15 = v14 * 0.5; v16 = (float)((float)(v14 * 0.5) + 90.0) - v12; v17 = !*(_BYTE *)(a1 + 785) && (*(_BYTE *)(a2 + 2497) || *(_BYTE *)(a2 + 2498) || *(_BYTE *)(a2 + 2500) || *(_BYTE *)(a2 + 2508) || *(_BYTE *)(a2 + 2499) || *(_BYTE *)(a2 + 2502) || *(_BYTE *)(a1 + 1058)); LOBYTE(v120) = *(_BYTE *)(a2 + 3136); *(_BYTE *)(a2 + 3136) = 0; v18 = 0; if ( *(_BYTE *)(a1 + 12670) ) { if ( *(float *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a2 + 200LL))(a2) < -30.0 ) { *(_QWORD *)(a2 + 2816) = 0; v19 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a2 + 200LL))(a2); v20 = *(void (__fastcall **)(__int64, __int64))(*(_QWORD *)a2 + 184LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v119, -30.0, *(float *)(v19 + 4)); v20(a2, v21); } } else if ( *(_BYTE *)(a2 + 2506) ) { v18 = *(float *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a2 + 200LL))(a2) < -30.0; } if ( v16 <= *(float *)((*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a2 + 200LL))(a2) + 4) || v17 && (*(_BYTE *)(a2 + 2497) || *(_BYTE *)(a2 + 2498) || *(_BYTE *)(a2 + 2500) || *(_BYTE *)(a2 + 2508) || *(_BYTE *)(a2 + 2499) || *(_BYTE *)(a1 + 1058) || *(_BYTE *)(a2 + 2502)) ) { if ( *(float *)((*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a2 + 200LL))(a2) + 4) > (float)(v12 + *(float *)(a1 + 14248)) ) v18 = 1; } else if ( *(_BYTE *)(a2 + 2503) ) { v22 = *(double *)(a2 + 2056); if ( v22 != 0.0 && *(double *)(a2 + 2728) - v22 < 0.1000000014901161 ) { v23 = (float *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a2 + 200LL))(a2); v24 = *(void (__fastcall **)(__int64, __int64))(*(_QWORD *)a2 + 184LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v119, *v23, v16); v24(a2, v25); LOBYTE(v26) = 1; PlayerObject::hitGround(a2, 0, v26); PlayerObject::updateCollide(a2, 0, 0); *(_BYTE *)(a2 + 2580) = 0; return 0; } v18 = 1; } else if ( !*(_BYTE *)(a2 + 2596) ) { v27 = (float *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a2 + 200LL))(a2); v28 = *(void (__fastcall **)(__int64, __int64))(*(_QWORD *)a2 + 184LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v119, *v27, v16); v28(a2, v29); PlayerObject::hitGround(a2, 0, 0); PlayerObject::updateCollide(a2, 1, 0); } if ( !v17 || v7 ) goto LABEL_135; MaxPortalY = GJBaseGameLayer::getMaxPortalY(a1); MinPortalY = GJBaseGameLayer::getMinPortalY(a1); v32 = MaxPortalY - *(float *)(a1 + 1892); if ( *(_BYTE *)(a2 + 2497) && *(_BYTE *)(a2 + 2445) ) LOBYTE(v8) = 1; LOBYTE(v119) = v8; v33 = (float)(MaxPortalY - v15) + v12; v34 = (float)(v15 + MinPortalY) - v12; if ( *(float *)((*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a2 + 200LL))(a2) + 4) <= v33 ) { if ( v34 <= *(float *)((*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a2 + 200LL))(a2) + 4) ) goto LABEL_134; if ( *(_BYTE *)(a2 + 2489) && (float)(v34 - (float)(v14 * 0.5)) > *(float *)((*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a2 + 200LL))(a2) + 4) ) { v18 = 1; goto LABEL_134; } if ( *(_BYTE *)(a2 + 2497) || *(_BYTE *)(a2 + 2498) || *(_BYTE *)(a2 + 2500) || *(_BYTE *)(a2 + 2508) || *(_BYTE *)(a2 + 2499) || *(_BYTE *)(a2 + 2502) || *(int *)(a2 + 2948) > 0 || !*(_BYTE *)(a2 + 2503) ) { v50 = *(double *)(a2 + 2472); v47 = 0; if ( !*(_BYTE *)(a2 + 2503) && (!*(_BYTE *)(a2 + 2497) && !*(_BYTE *)(a2 + 2500) || !*(_BYTE *)(a2 + 2446)) ) { v47 = 0; if ( v32 != 0.0 ) { v51 = 1; v52 = 0.0; goto LABEL_110; } } } else { v47 = 1; v48 = *(double *)(a2 + 2056); if ( v48 == 0.0 || *(double *)(a2 + 2728) - v48 >= 0.2000000029802322 ) { v49 = *(double *)(a2 + 2016); if ( v49 == 0.0 || *(double *)(a2 + 2728) - v49 >= 0.2000000029802322 ) { v18 = 1; goto LABEL_134; } } v50 = *(double *)(a2 + 2472); } v51 = 0; v52 = 0.0; if ( v47 ) { LABEL_115: v53 = (float *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a2 + 200LL))(a2); v54 = *(void (__fastcall **)(__int64, __int64))(*(_QWORD *)a2 + 184LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v119, *v53, v52 + v34); v54(a2, v55); if ( v47 ) { *(_QWORD *)(a2 + 2472) = 0; *(_BYTE *)(a2 + 2580) = 0; *(_BYTE *)(a2 + 2505) = 0; } else if ( !*(_BYTE *)(a2 + 2497) && !*(_BYTE *)(a2 + 2508) || *(double *)(a2 + 2472) < 0.0 ) { PlayerObject::hitGround(a2, 0, *(unsigned __int8 *)(a2 + 2503)); } PlayerObject::updateCollide(a2, *(_BYTE *)(a2 + 2503) == 0, 0); if ( v51 && *(double *)(a2 + 2472) > v50 || *(_BYTE *)(a2 + 2503) && (_BYTE)v8 && v32 < 0.0 ) PlayerObject::setYVelocity(a2); goto LABEL_133; } LABEL_110: if ( (*(_BYTE *)(a2 + 2497) || *(_BYTE *)(a2 + 2500)) && *(_BYTE *)(a2 + 2446) && *(float *)(a1 + 424) != *(float *)(a1 + 428) ) { v52 = 1.0; } goto LABEL_115; } if ( !*(_BYTE *)(a2 + 2489) || *(float *)((*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a2 + 200LL))(a2) + 4) <= (float)(v15 + v33) ) { if ( *(_BYTE *)(a2 + 2497) || *(_BYTE *)(a2 + 2498) || *(_BYTE *)(a2 + 2500) || *(_BYTE *)(a2 + 2508) || *(_BYTE *)(a2 + 2499) || *(_BYTE *)(a2 + 2502) || *(int *)(a2 + 2948) > 0 ) { v35 = (_BYTE *)(a2 + 2503); } else { v35 = (_BYTE *)(a2 + 2503); if ( !*(_BYTE *)(a2 + 2503) ) { v36 = 1; v37 = *(double *)(a2 + 2056); if ( v37 == 0.0 || *(double *)(a2 + 2728) - v37 >= 0.2000000029802322 ) { v38 = *(double *)(a2 + 2016); if ( v38 == 0.0 || *(double *)(a2 + 2728) - v38 >= 0.2000000029802322 ) { v18 = 1; goto LABEL_134; } } v39 = *(double *)(a2 + 2472); v35 = (_BYTE *)(a2 + 2503); goto LABEL_71; } } v39 = *(double *)(a2 + 2472); v36 = 0; if ( *v35 ) { if ( !*(_BYTE *)(a2 + 2497) && (v35 = (_BYTE *)(a2 + 2503), !*(_BYTE *)(a2 + 2500)) || !*(_BYTE *)(a2 + 2446) ) { v36 = 0; if ( v32 != 0.0 ) { v40 = 1; goto LABEL_72; } } } LABEL_71: v40 = 0; LABEL_72: v41 = (float *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a2 + 200LL))(a2); v42 = *(void (__fastcall **)(__int64, __int64))(*(_QWORD *)a2 + 184LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v117, *v41, v33); v42(a2, v43); if ( v36 ) { *(_QWORD *)(a2 + 2472) = 0; *(_BYTE *)(a2 + 2580) = 0; *(_BYTE *)(a2 + 2505) = 0; } else if ( *(double *)(a2 + 2472) > 0.0 ) { LOBYTE(v44) = *(_BYTE *)(a2 + 2503) == 0; PlayerObject::hitGround(a2, 0, v44); } PlayerObject::updateCollide(a2, *v35 != 0, 0); if ( v40 && v39 > *(double *)(a2 + 2472) || !*v35 && (_BYTE)v119 && v32 > 0.0 ) { v45 = v39; v46 = (double)(int)v39; if ( v39 != v46 ) v45 = round((v45 - v46) * 1000.0) / 1000.0 + v46; *(double *)(a2 + 2472) = v45; } LABEL_133: *(_BYTE *)(a2 + 2489) = 0; goto LABEL_134; } v18 = 1; LABEL_134: v4 = v122; v8 = 0; LABEL_135: if ( LOBYTE(v120) && v18 ) { if ( v123 ) return 1; (*(void (__fastcall **)(__int64, __int64, _QWORD))(*(_QWORD *)a1 + 1144LL))(a1, a2, 0); return 1; } *(_BYTE *)(a2 + 3136) = v18; if ( *(float *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a2 + 200LL))(a2) > 0.0 ) { if ( *(float *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a2 + 200LL))(a2) < 10000000.0 ) v57 = *(float *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a2 + 200LL))(a2) * *(float *)(a1 + 14240); else v57 = *(float *)(a1 + 14240) * 10000000.0; } else { v57 = 0.0; } v58 = (int)v57; if ( *(float *)((*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a2 + 200LL))(a2) + 4) > 0.0 ) { if ( *(float *)((*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a2 + 200LL))(a2) + 4) < 10000000.0 ) v59 = *(float *)((*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a2 + 200LL))(a2) + 4) * *(float *)(a1 + 14244); else v59 = *(float *)(a1 + 14244) * 10000000.0; } else { v59 = 0.0; } v60 = (int)v59; v61 = 0; if ( v58 - 1 >= 0 ) v61 = v58 - 1; v62 = *(_QWORD *)(a1 + 14000); v63 = (*(_QWORD *)(a1 + 14008) - v62) >> 3; v64 = v58 + 1; if ( v58 + 1 >= (unsigned __int64)(v63 - 1) ) v64 = v63 - 1; v65 = 0.0; if ( v60 - 1 >= 0 ) LODWORD(v65) = v60 - 1; v120 = v65; v66 = v60 + 1; LODWORD(v119) = v66; v67 = (int *)(a1 + 12932); v112 = (int *)(a1 + 12932); *(_DWORD *)(a1 + 12932) = 0; *(_DWORD *)(a1 + 12968) = 0; if ( v62 != *(_QWORD *)(a1 + 14008) ) { v68 = v61; v117 = v64; v112 = (int *)(a1 + 12932); if ( v61 <= (__int64)v64 ) { v69 = SLODWORD(v65); v116 = SLODWORD(v65); v70 = 8LL * v61; v114 = v70; do { v71 = *(_QWORD *)(a1 + 14000); v72 = 8 * v68; v113 = 8 * v68; if ( *(_QWORD *)(v71 + v70) ) { v73 = (__int64)(*(_QWORD *)(*(_QWORD *)(v71 + 8 * v68) + 8LL) - **(_QWORD **)(v71 + 8 * v68)) >> 3; if ( v66 >= (unsigned __int64)(v73 - 1) ) v74 = v73 - 1; else v74 = v66; v72 = 8 * v68; } else { v74 = -1; v113 = 8 * v68; } v75 = v65; v76 = v69; v115 = v74; if ( v69 <= v74 ) { do { v77 = *(_QWORD **)(**(_QWORD **)(v72 + *(_QWORD *)(a1 + 14000)) + 8 * v76); if ( v77 ) { v78 = *(int *)(**(_QWORD **)(*(_QWORD *)(a1 + 14168) + 8 * v68) + 4 * v76); v79 = *(_DWORD *)(**(_QWORD **)(*(_QWORD *)(a1 + 14216) + 8 * v68) + 4 * ((unsigned __int64)SLODWORD(v75) >> 5)); if ( _bittest(&v79, LOBYTE(v75) & 0x1F) ) { sub_140355B30( *v77, *v77 + 8 * v78, *(int *)(**(_QWORD **)(*(_QWORD *)(a1 + 14168) + 8 * v68) + 4 * v76), sub_14030B120); v80 = 0; if ( (int)v78 > 0 ) { v81 = 0; do { *(_DWORD *)(*(_QWORD *)(v81 + *v77) + 628LL) = v80++; v81 += 8; } while ( v80 < (int)v78 ); } v82 = *(_QWORD **)(*(_QWORD *)(a1 + 14216) + 8 * v68); *(_DWORD *)(*v82 + 4 * ((unsigned __int64)SLODWORD(v75) >> 5)) &= ~(1 << (LOBYTE(v75) & 0x1F)); } GJBaseGameLayer::collisionCheckObjects(a1, a2, (_DWORD)v77, v78, LODWORD(v4)); } ++LODWORD(v75); ++v76; v72 = v113; } while ( v76 <= v115 ); v69 = v116; v66 = (int)v119; v65 = v120; } ++v68; v70 = v114 + 8; v114 += 8; } while ( v68 <= v117 ); v67 = (int *)(a1 + 12932); v112 = (int *)(a1 + 12932); v8 = 0; } } v83 = *(_DWORD *)(a1 + 14072); if ( v83 > 0 ) GJBaseGameLayer::collisionCheckObjects(a1, a2, a1 + 14048, v83, LODWORD(v4)); v84 = *(_QWORD *)(a2 + 1544) && *(_BYTE *)(a2 + 1632); v85 = (cocos2d::CCRect *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a2 + 1184LL))(a2); MaxX = cocos2d::CCRect::getMaxX(v85); MinX = cocos2d::CCRect::getMinX(v85); MaxY = cocos2d::CCRect::getMaxY(v85); MinY = cocos2d::CCRect::getMinY(v85); v90 = *v67; if ( *v67 > 0 ) { while ( 1 ) { v91 = *(_QWORD *)(*(_QWORD *)(a1 + 12944) + 8LL * (v90 - v8) - 8); if ( !*(_BYTE *)(v91 + 654) ) break; LABEL_204: ++v8; v90 = *v112; if ( v8 >= *v112 ) goto LABEL_205; } if ( *(_BYTE *)(v91 + 872) ) (*(void (__fastcall **)(__int64))(*(_QWORD *)v91 + 1184LL))(v91); if ( v84 && *(__int16 *)(v91 + 1176) > 0 ) { v92 = v4 * 5.0; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v120, (const struct cocos2d::CCPoint *)(v91 + 1232)); (*(void (__fastcall **)(__int64, void **))(*(_QWORD *)v91 + 1208LL))(v91, &v119); if ( *(float *)&v119 == v120 && *((float *)&v119 + 1) == v121 ) goto LABEL_198; if ( *(_BYTE *)(a2 + 2503) ) { if ( *((float *)&v119 + 1) <= v121 ) { LABEL_198: v84 = 1; goto LABEL_199; } } else if ( v121 <= *((float *)&v119 + 1) ) { goto LABEL_198; } v93 = (const struct cocos2d::CCRect *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v91 + 1184LL))(v91); cocos2d::CCRect::CCRect((cocos2d::CCRect *)&v117, v93); v118 = v118 + v92; if ( *(_BYTE *)(a2 + 2503) ) *((float *)&v117 + 1) = *((float *)&v117 + 1) - v92; v94 = (cocos2d::CCRect *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a2 + 1184LL))(a2); if ( !cocos2d::CCRect::intersectsRect(v94, (const struct cocos2d::CCRect *)&v117) ) goto LABEL_198; *(_QWORD *)(a2 + 1536) = v91; v84 = 0; } LABEL_199: if ( cocos2d::CCRect::getMinX((cocos2d::CCRect *)(v91 + 856)) <= MaxX && MinX <= cocos2d::CCRect::getMaxX((cocos2d::CCRect *)(v91 + 856)) && cocos2d::CCRect::getMinY((cocos2d::CCRect *)(v91 + 856)) <= MaxY && MinY <= cocos2d::CCRect::getMaxY((cocos2d::CCRect *)(v91 + 856)) ) { v95 = cocos2d::CCRect::CCRect((cocos2d::CCRect *)&v116, (const struct cocos2d::CCRect *)&unk_14090B430); PlayerObject::collidedWithObject(a2, v96, v91, v95, 0); v97 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a2 + 1184LL))(a2); cocos2d::CCRect::operator=(v85, v97); MaxX = cocos2d::CCRect::getMaxX(v85); MinX = cocos2d::CCRect::getMinX(v85); MaxY = cocos2d::CCRect::getMaxY(v85); MinY = cocos2d::CCRect::getMinY(v85); } goto LABEL_204; } LABEL_205: v98 = *(_QWORD *)(a1 + 3512); if ( *(_BYTE *)(v98 + 2504) && *(_BYTE *)(v98 + 2033) ) { v99 = qword_14090BFD0; if ( !qword_14090BFD0 ) { v119 = operator new(0x6E8u); qword_14090BFD0 = GameManager::GameManager((__int64)v119); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFD0 + 72LL))(qword_14090BFD0); v99 = qword_14090BFD0; } PlayLayer::removeCheckpoint(*(_QWORD *)(v99 + 560), 0); *(_BYTE *)(v98 + 2033) = 0; } v100 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a2 + 1184LL))(a2); cocos2d::CCRect::operator=(v85, v100); v101 = cocos2d::CCRect::getMaxX(v85); v102 = cocos2d::CCRect::getMinX(v85); v103 = cocos2d::CCRect::getMaxY(v85); v104 = cocos2d::CCRect::getMinY(v85); (*(void (__fastcall **)(__int64))(*(_QWORD *)a2 + 1416LL))(a2); if ( *(int *)(a1 + 12968) <= 0 ) { LABEL_228: PlayerObject::postCollision(a2, v105, *(unsigned __int8 *)(a1 + 14576)); return 0; } v106 = 0; v107 = 0; while ( 1 ) { v108 = *(_QWORD *)(v107 + *(_QWORD *)(a1 + 12976)); if ( *(_BYTE *)(v108 + 654) ) goto LABEL_227; if ( *(_BYTE *)(v108 + 872) ) (*(void (__fastcall **)(__int64))(*(_QWORD *)v108 + 1184LL))(v108); if ( *(float *)(v108 + 908) <= 0.0 ) break; if ( GJBaseGameLayer::playerCircleCollision(a1, a2, (float *)v108) ) goto LABEL_222; LABEL_227: ++v106; v107 += 8; if ( v106 >= *(_DWORD *)(a1 + 12968) ) goto LABEL_228; } if ( cocos2d::CCRect::getMinX((cocos2d::CCRect *)(v108 + 856)) > v101 || v102 > cocos2d::CCRect::getMaxX((cocos2d::CCRect *)(v108 + 856)) || cocos2d::CCRect::getMinY((cocos2d::CCRect *)(v108 + 856)) > v103 || v104 > cocos2d::CCRect::getMaxY((cocos2d::CCRect *)(v108 + 856)) ) { goto LABEL_227; } LABEL_222: if ( *(_BYTE *)(v108 + 744) && (!*(_BYTE *)(*(_QWORD *)(a1 + 3528) + 463LL) || *(float *)(v108 + 908) <= 0.0) ) { v109 = (float *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v108 + 1408LL))(v108); v110 = (float *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a2 + 1408LL))(a2); if ( !OBB2D::overlaps1Way((__int64)v109, v110) || !OBB2D::overlaps1Way(v111, v109) ) goto LABEL_227; } if ( !v123 ) (*(void (__fastcall **)(__int64, __int64, __int64))(*(_QWORD *)a1 + 1144LL))(a1, a2, v108); return 1; }