// // sub_5D4268 from 0x5d4268 to 0x5d42d6 (110 bytes) // // 2 xrefs: // > cocos2d::CCMenu::alignItemsInColumnsWithArray @ 0x5d42f6 // > cocos2d::CCMenu::alignItemsInRowsWithArray @ 0x5d45c8 // // This function is hookable on this platform! // // Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings // int __fastcall sub_5D4268(int a1, int a2) { _DWORD *v3; // r2 int *v4; // r6 int *v5; // r5 int v6; // r3 int v7; // t1 int v8; // r2 _DWORD *v9; // r1 _DWORD *v10; // r3 _DWORD v12[2]; // [sp+0h] [bp-8h] BYREF v12[0] = a1; v12[1] = a2; *(_DWORD *)a1 = 0; *(_DWORD *)(a1 + 4) = 0; *(_DWORD *)(a1 + 8) = 0; if ( a2 ) { v3 = *(_DWORD **)(a2 + 52); if ( *v3 ) { v4 = (int *)v3[3]; v5 = &v4[*v3 - 1]; while ( v4 <= v5 ) { v7 = *v4++; v6 = v7; if ( !v7 ) break; v8 = *(_DWORD *)(v6 + 52); v9 = *(_DWORD **)(a1 + 8); v10 = *(_DWORD **)(a1 + 4); v12[0] = v8; if ( v10 == v9 ) { std::vector::_M_emplace_back_aux((const void **)a1, v12); } else { if ( v10 ) *v10 = v8; *(_DWORD *)(a1 + 4) = v10 + 1; } } } } return a1; }
GD Web Decomp Icon

GD Web Decomp

Raw Source