// // GJBaseGameLayer::lockExistingFirstParents from 0x5a8e64 to 0x5a9052 (494 bytes) // // 1 xrefs: // > EditorUI::pasteObjects @ 0x6f2df0 // // This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False! // // 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:53:23 +0000 // void __fastcall GJBaseGameLayer::lockExistingFirstParents(GJBaseGameLayer *this) { char *v1; // r8 int v3; // r3 _DWORD *v4; // r4 _DWORD *v5; // r7 cocos2d::CCArray *v6; // r0 unsigned int v7; // r6 unsigned int v8; // r4 unsigned int v9; // r11 int v10; // r9 _DWORD *v11; // r3 float v12; // s13 float v13; // s15 bool v14; // r11 unsigned int v15; // r11 unsigned int v16; // r1 void **v17; // r3 _DWORD *v18; // r3 unsigned int v19; // r0 int v20; // r1 unsigned int v21; // r0 int v22; // r1 unsigned int v23; // [sp+14h] [bp-18h] BYREF void *v24; // [sp+18h] [bp-14h] BYREF v1 = (char *)this + 2332; std::__hash_table,std::equal_to,std::allocator>::clear((_DWORD *)this + 583); v3 = *((_DWORD *)this + 580); if ( v3 ) { v4 = *(_DWORD **)(v3 + 52); if ( v4 ) v5 = (_DWORD *)v4[68]; else v5 = nullptr; while ( 1 ) { if ( !v4 ) return; v6 = (cocos2d::CCArray *)v4[65]; if ( v6 ) { if ( cocos2d::CCArray::count(v6) ) break; } LABEL_22: if ( v5 ) v18 = (_DWORD *)v5[68]; else v18 = nullptr; v4 = v5; v5 = v18; } v7 = v4[64]; v8 = *((_DWORD *)this + 584); v23 = v7; if ( v8 ) { v9 = v8 - 1; if ( ((v8 - 1) & v8) != 0 ) v10 = v7 % v8; else v10 = v7 & v9; v11 = *(_DWORD **)(*((_DWORD *)this + 583) + 4 * v10); if ( v11 ) { while ( 1 ) { v11 = (_DWORD *)*v11; if ( !v11 ) break; v19 = v11[1]; v20 = ((v8 - 1) & v8) != 0 ? v19 % v8 : v9 & v19; if ( v20 != v10 ) break; if ( v11[2] == v7 ) goto LABEL_22; } } } else { v10 = 0; } std::__hash_table,std::equal_to,std::allocator>::__construct_node_hash( (int)&v24, (int)v1, v7, &v23); v12 = *((float *)this + 587); v13 = (float)(unsigned int)(*((_DWORD *)this + 586) + 1); if ( v13 <= (float)((float)v8 * v12) ) { if ( v8 ) { LABEL_19: v17 = *(void ***)(*((_DWORD *)this + 583) + 4 * v10); if ( v17 ) { *(_DWORD *)v24 = *v17; *v17 = v24; } else { *(_DWORD *)v24 = *((_DWORD *)this + 585); *((_DWORD *)this + 585) = v24; *(_DWORD *)(*((_DWORD *)this + 583) + 4 * v10) = (char *)this + 2340; if ( *(_DWORD *)v24 ) { v21 = *(_DWORD *)(*(_DWORD *)v24 + 4); if ( ((v8 - 1) & v8) != 0 ) v22 = v21 % v8; else v22 = (v8 - 1) & v21; *(_DWORD *)(*((_DWORD *)this + 583) + 4 * v22) = v24; } } ++*((_DWORD *)this + 586); goto LABEL_22; } v14 = 0; } else { v14 = v8 > 2 && ((v8 - 1) & v8) == 0; } v15 = 2 * v8 + !v14; v16 = (unsigned int)ceilf(v13 / v12); if ( v16 < v15 ) v16 = v15; std::__hash_table,std::equal_to,std::allocator>::rehash((int)v1, v16); v8 = *((_DWORD *)this + 584); if ( ((v8 - 1) & v8) != 0 ) v10 = v7 % v8; else v10 = v7 & (v8 - 1); goto LABEL_19; } }
GD Web Decomp Icon

GD Web Decomp

Raw Source