{"type": "func", "start": 4297646776, "end": 4297646880, "name": "GJBaseGameLayer::sortAllGroupsX", "pseudocode": "// \n// GJBaseGameLayer::sortAllGroupsX from 0x10028e2b8 to 0x10028e320 (104 bytes)\n// \n// 2 xrefs:\n// > GJBaseGameLayer::sortGroups @ 0x10027a4ac\n// > sub_100403764 @ 0x1004038f8\n// \n// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!\n// \n// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n// Generated at Fri, 27 Nov 2026 11:02:02 +0000\n// \n\nvoid __fastcall GJBaseGameLayer::sortAllGroupsX(__int64 a1)\n{\n  __int64 i; // x21\n  __int64 v3; // x8\n\n  for ( i = 8; i != 80000; i += 8 )\n  {\n    v3 = *(_QWORD *)(*(_QWORD *)(a1 + 3616) + i);\n    if ( v3 )\n      qsort(\n        *(void **)(*(_QWORD *)(v3 + 56) + 16LL),\n        **(unsigned int **)(v3 + 56),\n        8u,\n        (int (__cdecl *)(const void *, const void *))sub_100273FD0);\n  }\n}", "assembly": "; \n; GJBaseGameLayer::sortAllGroupsX from 0x10028e2b8 to 0x10028e320 (104 bytes)\n; \n; 2 xrefs:\n; > GJBaseGameLayer::sortGroups @ 0x10027a4ac\n; > sub_100403764 @ 0x1004038f8\n; \n; This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!\n; \n; Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n; Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n; Generated at Fri, 27 Nov 2026 11:02:02 +0000\n; \nSTP             X22, X21, [SP,#-0x10+var_20]!                          ; +0x0, 0x10028e2b8\nSTP             X20, X19, [SP,#0x20+var_10]                            ; +0x4, 0x10028e2bc\nSTP             X29, X30, [SP,#0x20+var_s0]                            ; +0x8, 0x10028e2c0\nADD             X29, SP, #0x20                                         ; +0xc, 0x10028e2c4\nMOV             X19, X0                                                ; +0x10, 0x10028e2c8\nMOV             W21, #8                                                ; +0x14, 0x10028e2cc\nMOV             W22, #0x13880                                          ; +0x18, 0x10028e2d0\nADRL            X20, sub_100273FD0                                     ; +0x20, 0x10028e2d8\nLDR             X8, [X19,#0xE20]                                       ; +0x28, 0x10028e2e0\nLDR             X8, [X8,X21]                                           ; +0x2c, 0x10028e2e4\nCBZ             X8, loc_10028E304                                      ; +0x30, 0x10028e2e8\nLDR             X8, [X8,#0x38]                                         ; +0x34, 0x10028e2ec\nLDR             X0, [X8,#0x10]; __base                                 ; +0x38, 0x10028e2f0\nLDR             W1, [X8]; __nel                                        ; +0x3c, 0x10028e2f4\nMOV             W2, #8; __width                                        ; +0x40, 0x10028e2f8\nMOV             X3, X20; __compar                                      ; +0x44, 0x10028e2fc\nBL              _qsort                                                 ; +0x48, 0x10028e300\nADD             X21, X21, #8                                           ; +0x4c, 0x10028e304\nCMP             X21, X22                                               ; +0x50, 0x10028e308\nB.NE            loc_10028E2E0                                          ; +0x54, 0x10028e30c\nLDP             X29, X30, [SP,#0x20+var_s0]                            ; +0x58, 0x10028e310\nLDP             X20, X19, [SP,#0x20+var_10]                            ; +0x5c, 0x10028e314\nLDP             X22, X21, [SP+0x20+var_20],#0x30                       ; +0x60, 0x10028e318\nRET                                                                    ; +0x64, 0x10028e31c", "xrefs": ["GJBaseGameLayer::sortGroups @ 0x10027a4ac", "sub_100403764 @ 0x1004038f8"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "arm", "bida_info": "8.3.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings"}