{"type": "func", "start": 4295976864, "end": 4295977192, "name": "GJBaseGameLayer::sortStickyGroups", "pseudocode": "// \n// GJBaseGameLayer::sortStickyGroups from 0x1000f67a0 to 0x1000f68e8 (328 bytes)\n// \n// 2 xrefs:\n// > LevelEditorLayer::init @ 0x1000aae89\n// > GJBaseGameLayer::updateSpecialGroupData @ 0x1000f36d1\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:21:15 +0000\n// \n\n__int64 __fastcall GJBaseGameLayer::sortStickyGroups(__int64 a1, __int64 a2)\n{\n  __int64 v2; // r14\n  __int64 result; // rax\n  unsigned int v4; // r15d\n  __int64 v5; // rax\n  __int64 v6; // r12\n  __int64 v7; // rax\n  __int64 v8; // r13\n  __int64 v9; // r12\n  __int64 v10; // rax\n  __int64 v11; // r14\n  unsigned int v12; // r15d\n\n  v2 = cocos2d::CCDictionary::create(a1, a2);\n  result = sub_1007FEF90(*(_QWORD *)(a1 + 3280));\n  if ( (_DWORD)result )\n  {\n    v4 = 0;\n    do\n    {\n      v5 = sub_1007FEFE0(*(_QWORD *)(a1 + 3280), v4);\n      if ( *(int *)(v5 + 872) > 0LL )\n      {\n        v6 = v5;\n        v7 = cocos2d::CCDictionary::objectForKey_1(v2);\n        if ( !v7 )\n        {\n          v8 = sub_1007FE900(v2);\n          cocos2d::CCDictionary::setObject_1(v2, v8, *(int *)(v6 + 872));\n          v7 = v8;\n        }\n        sub_1007FEBF0(v7, v6);\n      }\n      ++v4;\n      result = sub_1007FEF90(*(_QWORD *)(a1 + 3280));\n    }\n    while ( v4 < (unsigned int)result );\n  }\n  *(_DWORD *)(a1 + 3888) = 0;\n  if ( v2 )\n  {\n    v9 = *(_QWORD *)(v2 + 56);\n    while ( v9 )\n    {\n      v10 = v9;\n      v9 = *(_QWORD *)(v9 + 288);\n      ++*(_DWORD *)(a1 + 3888);\n      v11 = *(_QWORD *)(v10 + 264);\n      if ( (unsigned int)sub_1007FEF90(v11) )\n      {\n        v12 = 0;\n        do\n          *(_DWORD *)(sub_1007FEFE0(v11, v12++) + 872) = *(_DWORD *)(a1 + 3888);\n        while ( v12 < (unsigned int)sub_1007FEF90(v11) );\n      }\n      result = cocos2d::CCDictionary::setObject_1(*(_QWORD *)(a1 + 3880), v11, *(unsigned int *)(a1 + 3888));\n    }\n  }\n  return result;\n}", "assembly": "; \n; GJBaseGameLayer::sortStickyGroups from 0x1000f67a0 to 0x1000f68e8 (328 bytes)\n; \n; 2 xrefs:\n; > LevelEditorLayer::init @ 0x1000aae89\n; > GJBaseGameLayer::updateSpecialGroupData @ 0x1000f36d1\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:21:15 +0000\n; \npush    rbp                                                            ; +0x0, 0x1000f67a0\nmov     rbp, rsp                                                       ; +0x1, 0x1000f67a1\npush    r15                                                            ; +0x4, 0x1000f67a4\npush    r14                                                            ; +0x6, 0x1000f67a6\npush    r13                                                            ; +0x8, 0x1000f67a8\npush    r12                                                            ; +0xa, 0x1000f67aa\npush    rbx                                                            ; +0xc, 0x1000f67ac\npush    rax                                                            ; +0xd, 0x1000f67ad\nmov     rbx, rdi                                                       ; +0xe, 0x1000f67ae\ncall    cocos2d__CCDictionary__create                                  ; +0x11, 0x1000f67b1\nmov     r14, rax                                                       ; +0x16, 0x1000f67b6\nmov     rdi, [rbx+0CD0h]                                               ; +0x19, 0x1000f67b9\ncall    sub_1007FEF90                                                  ; +0x20, 0x1000f67c0\ntest    eax, eax                                                       ; +0x25, 0x1000f67c5\njz      short loc_1000F683A                                            ; +0x27, 0x1000f67c7\nxor     r15d, r15d                                                     ; +0x29, 0x1000f67c9\njmp     short loc_1000F67EF                                            ; +0x2c, 0x1000f67cc\nalign 10h                                                              ; +0x2e, 0x1000f67ce\nmov     rdi, rax                                                       ; +0x30, 0x1000f67d0\nmov     rsi, r12                                                       ; +0x33, 0x1000f67d3\ncall    sub_1007FEBF0                                                  ; +0x36, 0x1000f67d6\ninc     r15d                                                           ; +0x3b, 0x1000f67db\nmov     rdi, [rbx+0CD0h]                                               ; +0x3e, 0x1000f67de\ncall    sub_1007FEF90                                                  ; +0x45, 0x1000f67e5\ncmp     r15d, eax                                                      ; +0x4a, 0x1000f67ea\njnb     short loc_1000F683A                                            ; +0x4d, 0x1000f67ed\nmov     rdi, [rbx+0CD0h]                                               ; +0x4f, 0x1000f67ef\nmov     esi, r15d                                                      ; +0x56, 0x1000f67f6\ncall    sub_1007FEFE0                                                  ; +0x59, 0x1000f67f9\nmovsxd  rsi, dword ptr [rax+368h]                                      ; +0x5e, 0x1000f67fe\ntest    rsi, rsi                                                       ; +0x65, 0x1000f6805\njle     short loc_1000F67DB                                            ; +0x68, 0x1000f6808\nmov     r12, rax                                                       ; +0x6a, 0x1000f680a\nmov     rdi, r14                                                       ; +0x6d, 0x1000f680d\ncall    cocos2d__CCDictionary__objectForKey_1                          ; +0x70, 0x1000f6810\ntest    rax, rax                                                       ; +0x75, 0x1000f6815\njnz     short loc_1000F67D0                                            ; +0x78, 0x1000f6818\ncall    sub_1007FE900                                                  ; +0x7a, 0x1000f681a\nmov     r13, rax                                                       ; +0x7f, 0x1000f681f\nmovsxd  rdx, dword ptr [r12+368h]                                      ; +0x82, 0x1000f6822\nmov     rdi, r14                                                       ; +0x8a, 0x1000f682a\nmov     rsi, rax                                                       ; +0x8d, 0x1000f682d\ncall    cocos2d__CCDictionary__setObject_1                             ; +0x90, 0x1000f6830\nmov     rax, r13                                                       ; +0x95, 0x1000f6835\njmp     short loc_1000F67D0                                            ; +0x98, 0x1000f6838\nmov     dword ptr [rbx+0F30h], 0                                       ; +0x9a, 0x1000f683a\ntest    r14, r14                                                       ; +0xa4, 0x1000f6844\njz      loc_1000F68D9                                                  ; +0xa7, 0x1000f6847\nmov     r12, [r14+38h]                                                 ; +0xad, 0x1000f684d\njmp     short loc_1000F6875                                            ; +0xb1, 0x1000f6851\nalign 20h                                                              ; +0xb3, 0x1000f6853\nmov     rdi, [rbx+0F28h]                                               ; +0xc0, 0x1000f6860\nmov     edx, [rbx+0F30h]                                               ; +0xc7, 0x1000f6867\nmov     rsi, r14                                                       ; +0xcd, 0x1000f686d\ncall    cocos2d__CCDictionary__setObject_1                             ; +0xd0, 0x1000f6870\ntest    r12, r12                                                       ; +0xd5, 0x1000f6875\njz      short loc_1000F68D9                                            ; +0xd8, 0x1000f6878\nmov     rax, r12                                                       ; +0xda, 0x1000f687a\nmov     r12, [r12+120h]                                                ; +0xdd, 0x1000f687d\ninc     dword ptr [rbx+0F30h]                                          ; +0xe5, 0x1000f6885\nmov     r14, [rax+108h]                                                ; +0xeb, 0x1000f688b\nmov     rdi, r14                                                       ; +0xf2, 0x1000f6892\ncall    sub_1007FEF90                                                  ; +0xf5, 0x1000f6895\ntest    eax, eax                                                       ; +0xfa, 0x1000f689a\njz      short loc_1000F6860                                            ; +0xfc, 0x1000f689c\nxor     r15d, r15d                                                     ; +0xfe, 0x1000f689e\nnop     word ptr [rax+rax+00000000h]                                   ; +0x101, 0x1000f68a1\nmov     rdi, r14                                                       ; +0x110, 0x1000f68b0\nmov     esi, r15d                                                      ; +0x113, 0x1000f68b3\ncall    sub_1007FEFE0                                                  ; +0x116, 0x1000f68b6\nmov     ecx, [rbx+0F30h]                                               ; +0x11b, 0x1000f68bb\nmov     [rax+368h], ecx                                                ; +0x121, 0x1000f68c1\ninc     r15d                                                           ; +0x127, 0x1000f68c7\nmov     rdi, r14                                                       ; +0x12a, 0x1000f68ca\ncall    sub_1007FEF90                                                  ; +0x12d, 0x1000f68cd\ncmp     r15d, eax                                                      ; +0x132, 0x1000f68d2\njb      short loc_1000F68B0                                            ; +0x135, 0x1000f68d5\njmp     short loc_1000F6860                                            ; +0x137, 0x1000f68d7\nadd     rsp, 8                                                         ; +0x139, 0x1000f68d9\npop     rbx                                                            ; +0x13d, 0x1000f68dd\npop     r12                                                            ; +0x13e, 0x1000f68de\npop     r13                                                            ; +0x140, 0x1000f68e0\npop     r14                                                            ; +0x142, 0x1000f68e2\npop     r15                                                            ; +0x144, 0x1000f68e4\npop     rbp                                                            ; +0x146, 0x1000f68e6\nretn                                                                   ; +0x147, 0x1000f68e7", "xrefs": ["LevelEditorLayer::init @ 0x1000aae89", "GJBaseGameLayer::updateSpecialGroupData @ 0x1000f36d1"], "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"}