{"type": "func", "start": 4296266944, "end": 4296267040, "name": "GJBaseGameLayer::sortAllGroupsX", "pseudocode": "// \n// GJBaseGameLayer::sortAllGroupsX from 0x10013d4c0 to 0x10013d520 (96 bytes)\n// \n// 1 xrefs:\n// > LevelEditorLayer::recreateGroups @ 0x1000f1084\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; // r15\n  cocos2d::CCArray *v2; // rax\n\n  for ( i = 1; i != 10000; ++i )\n  {\n    v2 = a1->m_groups.__begin_[i];\n    if ( v2 )\n      qsort(v2->data->arr, v2->data->num, 8u, (int (__cdecl *)(const void *, const void *))sub_10010DED0);\n  }\n}", "assembly": "; \n; GJBaseGameLayer::sortAllGroupsX from 0x10013d4c0 to 0x10013d520 (96 bytes)\n; \n; 1 xrefs:\n; > LevelEditorLayer::recreateGroups @ 0x1000f1084\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\npush    rbp                                                            ; +0x0, 0x10013d4c0\nmov     rbp, rsp                                                       ; +0x1, 0x10013d4c1\npush    r15                                                            ; +0x4, 0x10013d4c4\npush    r14                                                            ; +0x6, 0x10013d4c6\npush    rbx                                                            ; +0x8, 0x10013d4c8\npush    rax                                                            ; +0x9, 0x10013d4c9\nmov     rbx, rdi                                                       ; +0xa, 0x10013d4ca\nmov     r15d, 1                                                        ; +0xd, 0x10013d4cd\nlea     r14, sub_10010DED0                                             ; +0x13, 0x10013d4d3\njmp     short loc_10013D4EC                                            ; +0x1a, 0x10013d4da\nalign 20h                                                              ; +0x1c, 0x10013d4dc\ninc     r15                                                            ; +0x20, 0x10013d4e0\ncmp     r15, 2710h                                                     ; +0x23, 0x10013d4e3\njz      short loc_10013D515                                            ; +0x2a, 0x10013d4ea\nmov     rax, [rbx+0E00h]                                               ; +0x2c, 0x10013d4ec\nmov     rax, [rax+r15*8]                                               ; +0x33, 0x10013d4f3\ntest    rax, rax                                                       ; +0x37, 0x10013d4f7\njz      short loc_10013D4E0                                            ; +0x3a, 0x10013d4fa\nmov     rax, [rax+38h]                                                 ; +0x3c, 0x10013d4fc\nmov     rdi, [rax+10h]; __base                                         ; +0x40, 0x10013d500\nmov     esi, [rax]; __nel                                              ; +0x44, 0x10013d504\nmov     edx, 8; __width                                                ; +0x46, 0x10013d506\nmov     rcx, r14; __compar                                             ; +0x4b, 0x10013d50b\ncall    _qsort                                                         ; +0x4e, 0x10013d50e\njmp     short loc_10013D4E0                                            ; +0x53, 0x10013d513\nadd     rsp, 8                                                         ; +0x55, 0x10013d515\npop     rbx                                                            ; +0x59, 0x10013d519\npop     r14                                                            ; +0x5a, 0x10013d51a\npop     r15                                                            ; +0x5c, 0x10013d51c\npop     rbp                                                            ; +0x5e, 0x10013d51e\nretn                                                                   ; +0x5f, 0x10013d51f", "xrefs": ["LevelEditorLayer::recreateGroups @ 0x1000f1084"], "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"}