// // GJBaseGameLayer::sortGroups from 0x10027a3dc to 0x10027a520 (324 bytes) // // 1 xrefs: // > GJBaseGameLayer::updateSpecialGroupData @ 0x10027a218 // // 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 11:01:52 +0000 // __int64 __fastcall GJBaseGameLayer::sortGroups(__int64 a1) { __int64 v2; // x8 char v3; // w20 __int64 v4; // x8 unsigned int *v5; // x9 __int64 v6; // x8 __int64 *v7; // x21 unsigned __int64 v8; // x22 __int64 v9; // x8 int v10; // w9 __int64 **i; // x22 __int64 Group; // x21 __int64 v14; // [xsp+8h] [xbp-68h] BYREF __int128 v15; // [xsp+10h] [xbp-60h] BYREF __int128 v16; // [xsp+20h] [xbp-50h] int v17; // [xsp+30h] [xbp-40h] v15 = 0u; v16 = 0u; v17 = 1065353216; v2 = *(_QWORD *)(a1 + 3272); if ( v2 ) v3 = *(_BYTE *)(v2 + 454); else v3 = 0; v4 = *(_QWORD *)(a1 + 3280); if ( v4 ) { v5 = *(unsigned int **)(v4 + 56); v6 = *v5; if ( (_DWORD)v6 ) { v7 = *((__int64 **)v5 + 2); v8 = (unsigned __int64)&v7[v6 - 1]; do { v9 = *v7; if ( !*v7 ) break; v10 = *(_DWORD *)(v9 + 1028); if ( v10 == 3607 ) { if ( (*(_BYTE *)(a1 + 12236) & 1) == 0 ) { v14 = *v7; sub_100011A50(a1 + 12520, &v14); } } else if ( v10 == 1268 && (v3 & 1) == 0 ) { LODWORD(v14) = *(_DWORD *)(v9 + 1464); sub_10001CC04((unsigned __int64)&v15, (int *)&v14, &v14); } ++v7; } while ( (unsigned __int64)v7 <= v8 ); } } if ( (v3 & 1) != 0 ) { GJBaseGameLayer::sortAllGroupsX(a1); } else { for ( i = (__int64 **)v16; i; i = (__int64 **)*i ) { Group = GJBaseGameLayer::getGroup(a1, *((unsigned int *)i + 4)); if ( (unsigned int)sub_1002E757C(Group) >= 2 ) qsort( *(void **)(*(_QWORD *)(Group + 56) + 16LL), **(unsigned int **)(Group + 56), 8u, (int (__cdecl *)(const void *, const void *))sub_100273FD0); } } return sub_1000184EC((__int64)&v15); }
GD Web Decomp Icon

GD Web Decomp

Raw Source