{"type": "func", "start": 4296124736, "end": 4296124832, "name": "GJBaseGameLayer::sortAllGroupsX", "pseudocode": "// \n// GJBaseGameLayer::sortAllGroupsX from 0x10011a940 to 0x10011a9a0 (96 bytes)\n// \n// 1 xrefs:\n// > LevelEditorLayer::recreateGroups @ 0x1000c47d4\n// \n// This function is hookable on this platform (idp: pc, 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 12:24:35 +0000\n// \n\nvoid __fastcall GJBaseGameLayer::sortAllGroupsX(__int64 a1)\n{\n  __int64 i; // r15\n  __int64 v2; // rax\n\n  for ( i = 1; i != 10000; ++i )\n  {\n    v2 = *(_QWORD *)(*(_QWORD *)(a1 + 3616) + 8 * i);\n    if ( v2 )\n      qsort(\n        *(void **)(*(_QWORD *)(v2 + 56) + 16LL),\n        **(unsigned int **)(v2 + 56),\n        8u,\n        (int (__cdecl *)(const void *, const void *))sub_1000E9F50);\n  }\n}", "assembly": "; \n; GJBaseGameLayer::sortAllGroupsX from 0x10011a940 to 0x10011a9a0 (96 bytes)\n; \n; 1 xrefs:\n; > LevelEditorLayer::recreateGroups @ 0x1000c47d4\n; \n; This function is hookable on this platform (idp: pc, 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 12:24:35 +0000\n; \npush    rbp                                                            ; +0x0, 0x10011a940\nmov     rbp, rsp                                                       ; +0x1, 0x10011a941\npush    r15                                                            ; +0x4, 0x10011a944\npush    r14                                                            ; +0x6, 0x10011a946\npush    rbx                                                            ; +0x8, 0x10011a948\npush    rax                                                            ; +0x9, 0x10011a949\nmov     rbx, rdi                                                       ; +0xa, 0x10011a94a\nmov     r15d, 1                                                        ; +0xd, 0x10011a94d\nlea     r14, sub_1000E9F50                                             ; +0x13, 0x10011a953\njmp     short loc_10011A96C                                            ; +0x1a, 0x10011a95a\nalign 20h                                                              ; +0x1c, 0x10011a95c\ninc     r15                                                            ; +0x20, 0x10011a960\ncmp     r15, 2710h                                                     ; +0x23, 0x10011a963\njz      short loc_10011A995                                            ; +0x2a, 0x10011a96a\nmov     rax, [rbx+0E20h]                                               ; +0x2c, 0x10011a96c\nmov     rax, [rax+r15*8]                                               ; +0x33, 0x10011a973\ntest    rax, rax                                                       ; +0x37, 0x10011a977\njz      short loc_10011A960                                            ; +0x3a, 0x10011a97a\nmov     rax, [rax+38h]                                                 ; +0x3c, 0x10011a97c\nmov     rdi, [rax+10h]; __base                                         ; +0x40, 0x10011a980\nmov     esi, [rax]; __nel                                              ; +0x44, 0x10011a984\nmov     edx, 8; __width                                                ; +0x46, 0x10011a986\nmov     rcx, r14; __compar                                             ; +0x4b, 0x10011a98b\ncall    _qsort                                                         ; +0x4e, 0x10011a98e\njmp     short loc_10011A960                                            ; +0x53, 0x10011a993\nadd     rsp, 8                                                         ; +0x55, 0x10011a995\npop     rbx                                                            ; +0x59, 0x10011a999\npop     r14                                                            ; +0x5a, 0x10011a99a\npop     r15                                                            ; +0x5c, 0x10011a99c\npop     rbp                                                            ; +0x5e, 0x10011a99e\nretn                                                                   ; +0x5f, 0x10011a99f", "xrefs": ["LevelEditorLayer::recreateGroups @ 0x1000c47d4"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "pc", "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"}