// // GJBaseGameLayer::lockExistingFirstParents from 0x9c99a8 to 0x9c9c4c (676 bytes) // // 2 xrefs: // > EditorUI::pasteObjects @ 0xbd9678 // > @ 0xe3b90 // // This function is hookable on this platform (idp: arm, 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 12:58:35 +0000 // __int64 __fastcall GJBaseGameLayer::lockExistingFirstParents(GJBaseGameLayer *this) { char *v2; // x24 __int64 v3; // x0 _QWORD *v4; // x20 _QWORD *v5; // x21 cocos2d::CCArray *v6; // x0 unsigned __int64 v7; // x28 int v8; // w20 unsigned __int64 v9; // x23 __int64 v10; // x22 unsigned __int64 v11; // x4 __int64 v12; // x27 __int64 *v13; // x0 unsigned __int64 v14; // x1 unsigned __int64 v15; // x1 float v16; // s2 float v17; // s0 _BOOL8 v18; // x1 __int64 v19; // x3 unsigned __int64 v20; // x1 unsigned __int64 v21; // x22 _QWORD *v22; // x0 unsigned __int64 v24; // x2 unsigned __int64 v25; // x3 _QWORD *v26; // [xsp+68h] [xbp+68h] int v27; // [xsp+7Ch] [xbp+7Ch] BYREF void *v28[3]; // [xsp+80h] [xbp+80h] BYREF v2 = (char *)this + 3712; if ( *((_QWORD *)this + 467) ) sub_998DD4((_QWORD *)this + 464); v3 = *((_QWORD *)this + 461); if ( v3 ) { v4 = *(_QWORD **)(v3 + 56); if ( v4 ) { v5 = (_QWORD *)v4[36]; v26 = (_QWORD *)((char *)this + 3728); while ( 1 ) { v6 = (cocos2d::CCArray *)v4[33]; if ( v6 ) { if ( (unsigned int)cocos2d::CCArray::count(v6) ) break; } LABEL_26: if ( !v5 ) return _stack_chk_guard; LABEL_27: v4 = v5; v5 = (_QWORD *)v5[36]; } v7 = *((_QWORD *)this + 465); v27 = v4[32]; v8 = v27; if ( v7 ) { v9 = v7 - 1; v10 = (v7 - 1) & v7; v11 = v27 & (v7 - 1); if ( v10 ) v11 = v27 % v7; v12 = 8 * v11; v13 = *(__int64 **)(*((_QWORD *)this + 464) + 8 * v11); if ( v13 ) { while ( 1 ) { v13 = (__int64 *)*v13; if ( !v13 ) break; v14 = v13[1]; v15 = v10 ? v14 % v7 : v9 & v14; if ( v11 != v15 ) break; if ( v27 == *((_DWORD *)v13 + 4) ) { if ( v5 ) goto LABEL_27; return _stack_chk_guard; } } } std::__hash_table,std::equal_to,std::allocator>::__construct_node_hash( (__int64)v2, v27, &v27, (__int64)v28); v16 = *((float *)this + 936); v17 = (float)(unsigned __int64)(*((_QWORD *)this + 467) + 1LL); if ( (float)((float)v7 * v16) >= v17 ) goto LABEL_23; v18 = 1; v19 = 2 * v7; if ( v7 > 2 ) v18 = v10 != 0; } else { std::__hash_table,std::equal_to,std::allocator>::__construct_node_hash( (__int64)v2, v27, &v27, (__int64)v28); v18 = 1; v16 = *((float *)this + 936); v19 = 0; v17 = (float)(unsigned __int64)(*((_QWORD *)this + 467) + 1LL); } v20 = v18 + v19; v21 = vcvtps_u32_f32(v17 / v16); if ( v21 >= v20 ) v20 = v21; std::__hash_table,std::equal_to,std::allocator>::rehash((unsigned __int64)v2, v20); v7 = *((_QWORD *)this + 465); v9 = v7 - 1; if ( ((v7 - 1) & v7) != 0 ) { v12 = 8 * (v8 % v7); v22 = *(_QWORD **)(*((_QWORD *)this + 464) + v12); if ( v22 ) goto LABEL_24; goto LABEL_34; } v12 = 8 * (v8 & v9); LABEL_23: v22 = *(_QWORD **)(*((_QWORD *)this + 464) + v12); if ( v22 ) { LABEL_24: *(_QWORD *)v28[0] = *v22; *v22 = v28[0]; LABEL_25: ++*((_QWORD *)this + 467); goto LABEL_26; } LABEL_34: *(_QWORD *)v28[0] = *v26; *v26 = v28[0]; *(_QWORD *)(*((_QWORD *)this + 464) + v12) = v26; if ( *(_QWORD *)v28[0] ) { v24 = *(_QWORD *)(*(_QWORD *)v28[0] + 8LL); if ( (v9 & v7) != 0 ) v25 = v24 % v7; else v25 = v9 & v24; *(void **)(*((_QWORD *)this + 464) + 8 * v25) = v28[0]; } goto LABEL_25; } } return _stack_chk_guard; }
GD Web Decomp Icon

GD Web Decomp

Raw Source