// // GJBaseGameLayer::updateCollisionBlocks from 0x14031ff10 to 0x140320450 (1344 bytes) // // 5 xrefs: // > GJBaseGameLayer::loadUpToPosition @ 0x14033e976 // > GJBaseGameLayer::update @ 0x1403410bb // > @ 0x1408b55f4 // > @ 0x1408b564c // > @ 0x14091edc4 // // 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:22 +0000 // void __fastcall GJBaseGameLayer::updateCollisionBlocks(__int64 a1) { __int64 v2; // rax unsigned int *v3; // rax __int64 v4; // rcx _QWORD *v5; // r14 __int64 v6; // r14 bool v7; // zf int v8; // ecx int v9; // r13d int v10; // eax int v11; // r12d int v12; // r9d int v13; // r15d float v14; // xmm0_4 float v15; // xmm6_4 float v16; // xmm0_4 float v17; // xmm0_4 float v18; // xmm6_4 float v19; // xmm1_4 float v20; // xmm6_4 __int64 v21; // rcx float v22; // xmm0_4 float v23; // xmm0_4 float v24; // xmm6_4 float v25; // xmm0_4 float v26; // xmm6_4 float v27; // xmm0_4 float v28; // xmm0_4 float v29; // xmm6_4 float v30; // xmm0_4 float v31; // xmm6_4 __int64 v32; // rsi _QWORD *v33; // rcx unsigned __int64 v34; // rcx __int64 v35; // rbp __int64 j; // rbx __int64 v37; // r8 __int64 v38; // r9 __int64 v39; // r8 int v40; // [rsp+A0h] [rbp+8h] _QWORD *v41; // [rsp+A8h] [rbp+10h] _QWORD *i; // [rsp+B0h] [rbp+18h] if ( cocos2d::CCArray::count(*(cocos2d::CCArray **)(a1 + 3544)) ) { ++*(_DWORD *)(a1 + 3552); GJBaseGameLayer::updatePlayerCollisionBlocks((_QWORD *)a1); v2 = *(_QWORD *)(a1 + 3544); if ( v2 ) { v3 = *(unsigned int **)(v2 + 56); v4 = *v3; if ( (_DWORD)v4 ) { v5 = *((_QWORD **)v3 + 2); v41 = v5; for ( i = &v5[v4 - 1]; v5 <= i; v41 = v5 ) { v6 = *v5; if ( !v6 ) return; v7 = *(_BYTE *)(v6 + 654) == 0; *(_DWORD *)(v6 + 1852) = *(_DWORD *)(a1 + 3552); if ( v7 ) { if ( !*(_BYTE *)(v6 + 1353) ) { v8 = *(_DWORD *)(v6 + 632); v9 = 0; v10 = *(_DWORD *)(v6 + 636); v11 = v8 + 1; v12 = v10 + 1; if ( v8 - 1 >= 0 ) v9 = v8 - 1; v40 = v10 + 1; if ( v11 >= (unsigned __int64)(((__int64)(*(_QWORD *)(a1 + 14032) - *(_QWORD *)(a1 + 14024)) >> 3) - 1) ) v11 = ((__int64)(*(_QWORD *)(a1 + 14032) - *(_QWORD *)(a1 + 14024)) >> 3) - 1; v13 = 0; if ( v10 - 1 >= 0 ) v13 = v10 - 1; if ( *(_BYTE *)(v6 + 640) ) { if ( *(_BYTE *)(v6 + 872) ) (*(void (__fastcall **)(__int64))(*(_QWORD *)v6 + 1184LL))(v6); if ( cocos2d::CCRect::getMinX((cocos2d::CCRect *)(v6 + 856)) > 0.0 ) { if ( cocos2d::CCRect::getMinX((cocos2d::CCRect *)(v6 + 856)) < 10000000.0 ) { v15 = *(float *)(a1 + 14240); v14 = cocos2d::CCRect::getMinX((cocos2d::CCRect *)(v6 + 856)) * v15; } else { v14 = *(float *)(a1 + 14240) * 10000000.0; } } else { v14 = 0.0; } if ( (float)(v14 - 1.0) >= 0.0 ) { if ( cocos2d::CCRect::getMinX((cocos2d::CCRect *)(v6 + 856)) > 0.0 ) { if ( cocos2d::CCRect::getMinX((cocos2d::CCRect *)(v6 + 856)) < 10000000.0 ) { v18 = *(float *)(a1 + 14240); v17 = cocos2d::CCRect::getMinX((cocos2d::CCRect *)(v6 + 856)) * v18; } else { v17 = *(float *)(a1 + 14240) * 10000000.0; } } else { v17 = 0.0; } v16 = v17 - 1.0; } else { v16 = 0.0; } v9 = (int)v16; if ( cocos2d::CCRect::getMaxX((cocos2d::CCRect *)(v6 + 856)) > 0.0 ) { if ( cocos2d::CCRect::getMaxX((cocos2d::CCRect *)(v6 + 856)) < 10000000.0 ) { v20 = *(float *)(a1 + 14240); v19 = cocos2d::CCRect::getMaxX((cocos2d::CCRect *)(v6 + 856)) * v20; } else { v19 = *(float *)(a1 + 14240) * 10000000.0; } } else { v19 = 0.0; } v21 = ((__int64)(*(_QWORD *)(a1 + 14032) - *(_QWORD *)(a1 + 14024)) >> 3) - 1; if ( v21 < 0 ) v22 = (float)(v21 & 1 | (unsigned int)((unsigned __int64)v21 >> 1)) + (float)(v21 & 1 | (unsigned int)((unsigned __int64)v21 >> 1)); else v22 = (float)(int)v21; if ( v22 > (float)(v19 + 1.0) ) { if ( cocos2d::CCRect::getMaxX((cocos2d::CCRect *)(v6 + 856)) > 0.0 ) { if ( cocos2d::CCRect::getMaxX((cocos2d::CCRect *)(v6 + 856)) < 10000000.0 ) { v24 = *(float *)(a1 + 14240); v23 = cocos2d::CCRect::getMaxX((cocos2d::CCRect *)(v6 + 856)) * v24; } else { v23 = *(float *)(a1 + 14240) * 10000000.0; } } else { v23 = 0.0; } v22 = v23 + 1.0; } v11 = (int)v22; if ( cocos2d::CCRect::getMinY((cocos2d::CCRect *)(v6 + 856)) > 0.0 ) { if ( cocos2d::CCRect::getMinY((cocos2d::CCRect *)(v6 + 856)) < 10000000.0 ) { v26 = *(float *)(a1 + 14244); v25 = cocos2d::CCRect::getMinY((cocos2d::CCRect *)(v6 + 856)) * v26; } else { v25 = *(float *)(a1 + 14244) * 10000000.0; } } else { v25 = 0.0; } if ( (float)(v25 - 1.0) >= 0.0 ) { if ( cocos2d::CCRect::getMinY((cocos2d::CCRect *)(v6 + 856)) > 0.0 ) { if ( cocos2d::CCRect::getMinY((cocos2d::CCRect *)(v6 + 856)) < 10000000.0 ) { v29 = *(float *)(a1 + 14244); v28 = cocos2d::CCRect::getMinY((cocos2d::CCRect *)(v6 + 856)) * v29; } else { v28 = *(float *)(a1 + 14244) * 10000000.0; } } else { v28 = 0.0; } v27 = v28 - 1.0; } else { v27 = 0.0; } v13 = (int)v27; if ( cocos2d::CCRect::getMaxY((cocos2d::CCRect *)(v6 + 856)) > 0.0 ) { if ( cocos2d::CCRect::getMaxY((cocos2d::CCRect *)(v6 + 856)) < 10000000.0 ) { v31 = *(float *)(a1 + 14244); v30 = cocos2d::CCRect::getMaxY((cocos2d::CCRect *)(v6 + 856)) * v31; } else { v30 = *(float *)(a1 + 14244) * 10000000.0; } } else { v30 = 0.0; } v12 = (int)(float)(v30 + 1.0); v40 = v12; } v32 = v9; if ( v9 <= (__int64)v11 ) { do { v33 = *(_QWORD **)(*(_QWORD *)(a1 + 14024) + 8 * v32); if ( v33 ) { v34 = ((__int64)(v33[1] - *v33) >> 3) - 1; if ( v12 < v34 ) LODWORD(v34) = v12; } else { LODWORD(v34) = -1; } v35 = (int)v34; for ( j = v13; j <= v35; ++j ) { v37 = *(_QWORD *)(**(_QWORD **)(*(_QWORD *)(a1 + 14024) + 8 * v32) + 8 * j); if ( v37 ) GJBaseGameLayer::checkCollisionBlocks( a1, v6, v37, *(unsigned int *)(**(_QWORD **)(*(_QWORD *)(a1 + 14192) + 8 * v32) + 4 * j)); } v12 = v40; ++v32; } while ( v32 <= v11 ); } v38 = *(unsigned int *)(a1 + 14104); if ( (int)v38 <= 0 ) goto LABEL_80; v39 = a1 + 14080; goto LABEL_79; } v38 = *(unsigned int *)(a1 + 14136); if ( (int)v38 > 0 ) { v39 = a1 + 14112; LABEL_79: GJBaseGameLayer::checkCollisionBlocks(a1, v6, v39, v38); } } LABEL_80: v5 = v41 + 1; } } } } }