{"type": "func", "start": 4297009124, "end": 4297009228, "name": "GJBaseGameLayer::sortAllGroupsX", "pseudocode": "// \n// GJBaseGameLayer::sortAllGroupsX from 0x1001f27e4 to 0x1001f284c (104 bytes)\n// \n// 2 xrefs:\n// > GJBaseGameLayer::sortGroups @ 0x1001dfe70\n// > LevelEditorLayer::recreateGroups @ 0x100361ecc\n// \n// This function is hookable on this platform!\n// \n// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings\n// \n\nvoid __fastcall GJBaseGameLayer::sortAllGroupsX(GJBaseGameLayer *a1)\n{\n  __int64 i; // x21\n  cocos2d::CCArray *v3; // x8\n\n  for ( i = 1; i != 10000; ++i )\n  {\n    v3 = a1->m_groups.__begin_[i];\n    if ( v3 )\n      qsort(v3->data->arr, v3->data->num, 8u, (int (__cdecl *)(const void *, const void *))sub_1001D9B84);\n  }\n}", "assembly": "; \n; GJBaseGameLayer::sortAllGroupsX from 0x1001f27e4 to 0x1001f284c (104 bytes)\n; \n; 2 xrefs:\n; > GJBaseGameLayer::sortGroups @ 0x1001dfe70\n; > LevelEditorLayer::recreateGroups @ 0x100361ecc\n; \n; This function is hookable on this platform!\n; \n; Using BromaIDA 8.0.0 @ https:;github.com/Stazzical/BromaIDA\n; Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https:;github.com/geode-sdk/bindings\n; \n\nSTP             X22, X21, [SP,#-0x10+var_20]!                          ; +0x0, 0x1001f27e4\nSTP             X20, X19, [SP,#0x20+var_10]                            ; +0x4, 0x1001f27e8\nSTP             X29, X30, [SP,#0x20+var_s0]                            ; +0x8, 0x1001f27ec\nADD             X29, SP, #0x20                                         ; +0xc, 0x1001f27f0\nMOV             X19, X0                                                ; +0x10, 0x1001f27f4\nMOV             W21, #8                                                ; +0x14, 0x1001f27f8\nMOV             W22, #0x13880                                          ; +0x18, 0x1001f27fc\nADRL            X20, sub_1001D9B84                                     ; +0x20, 0x1001f2804\nLDR             X8, [X19,#0xE28]                                       ; +0x28, 0x1001f280c\nLDR             X8, [X8,X21]                                           ; +0x2c, 0x1001f2810\nCBZ             X8, loc_1001F2830                                      ; +0x30, 0x1001f2814\nLDR             X8, [X8,#0x38]                                         ; +0x34, 0x1001f2818\nLDR             X0, [X8,#0x10]; __base                                 ; +0x38, 0x1001f281c\nLDR             W1, [X8]; __nel                                        ; +0x3c, 0x1001f2820\nMOV             W2, #8; __width                                        ; +0x40, 0x1001f2824\nMOV             X3, X20; __compar                                      ; +0x44, 0x1001f2828\nBL              _qsort                                                 ; +0x48, 0x1001f282c\nADD             X21, X21, #8                                           ; +0x4c, 0x1001f2830\nCMP             X21, X22                                               ; +0x50, 0x1001f2834\nB.NE            loc_1001F280C                                          ; +0x54, 0x1001f2838\nLDP             X29, X30, [SP,#0x20+var_s0]                            ; +0x58, 0x1001f283c\nLDP             X20, X19, [SP,#0x20+var_10]                            ; +0x5c, 0x1001f2840\nLDP             X22, X21, [SP+0x20+var_20],#0x30                       ; +0x60, 0x1001f2844\nRET                                                                    ; +0x64, 0x1001f2848", "xrefs": ["GJBaseGameLayer::sortGroups @ 0x1001dfe70", "LevelEditorLayer::recreateGroups @ 0x100361ecc"], "is_objc": false, "is_arm32": false, "is_arm64": false, "bida_info": "8.0.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings"}