{"type": "func", "start": 4296123856, "end": 4296124184, "name": "GJBaseGameLayer::sortStickyGroups", "pseudocode": "// \n// GJBaseGameLayer::sortStickyGroups from 0x10011a5d0 to 0x10011a718 (328 bytes)\n// \n// 2 xrefs:\n// > LevelEditorLayer::init @ 0x1000dc079\n// > GJBaseGameLayer::updateSpecialGroupData @ 0x1001173e1\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::sortStickyGroups(GJBaseGameLayer *a1)\n{\n  cocos2d::CCDictionary *v1; // r14\n  unsigned int v2; // r15d\n  __int64 v3; // rax\n  intptr_t v4; // rsi\n  __int64 v5; // r12\n  cocos2d::CCObject *v6; // rax\n  cocos2d::CCObject *v7; // r13\n  cocos2d::CCDictElement *m_pElements; // r12\n  cocos2d::CCDictElement *v9; // rax\n  cocos2d::CCObject *m_pObject; // r14\n  unsigned int v11; // r15d\n\n  v1 = cocos2d::CCDictionary::create();\n  if ( (unsigned int)sub_100720070(a1->m_objects) )\n  {\n    v2 = 0;\n    do\n    {\n      v3 = sub_1007200C0(a1->m_objects, v2);\n      v4 = *(int *)(v3 + 872);\n      if ( v4 > 0 )\n      {\n        v5 = v3;\n        v6 = cocos2d::CCDictionary::objectForKey(v1, v4);\n        if ( !v6 )\n        {\n          v7 = (cocos2d::CCObject *)sub_10071F9E0(v1, v4);\n          cocos2d::CCDictionary::setObject(v1, v7, *(int *)(v5 + 872));\n          v6 = v7;\n        }\n        sub_10071FCD0(v6, v5);\n      }\n      ++v2;\n    }\n    while ( v2 < (unsigned int)sub_100720070(a1->m_objects) );\n  }\n  a1->m_lastUsedLinkedID = 0;\n  if ( v1 )\n  {\n    m_pElements = v1->m_pElements;\n    while ( m_pElements )\n    {\n      v9 = m_pElements;\n      m_pElements = (cocos2d::CCDictElement *)m_pElements->hh.next;\n      ++a1->m_lastUsedLinkedID;\n      m_pObject = v9->m_pObject;\n      if ( (unsigned int)sub_100720070(m_pObject) )\n      {\n        v11 = 0;\n        do\n          *(_DWORD *)(sub_1007200C0(m_pObject, v11++) + 872) = a1->m_lastUsedLinkedID;\n        while ( v11 < (unsigned int)sub_100720070(m_pObject) );\n      }\n      cocos2d::CCDictionary::setObject(a1->m_linkedGroupDict, m_pObject, (unsigned int)a1->m_lastUsedLinkedID);\n    }\n  }\n}", "assembly": "; \n; GJBaseGameLayer::sortStickyGroups from 0x10011a5d0 to 0x10011a718 (328 bytes)\n; \n; 2 xrefs:\n; > LevelEditorLayer::init @ 0x1000dc079\n; > GJBaseGameLayer::updateSpecialGroupData @ 0x1001173e1\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, 0x10011a5d0\nmov     rbp, rsp                                                       ; +0x1, 0x10011a5d1\npush    r15                                                            ; +0x4, 0x10011a5d4\npush    r14                                                            ; +0x6, 0x10011a5d6\npush    r13                                                            ; +0x8, 0x10011a5d8\npush    r12                                                            ; +0xa, 0x10011a5da\npush    rbx                                                            ; +0xc, 0x10011a5dc\npush    rax                                                            ; +0xd, 0x10011a5dd\nmov     rbx, rdi                                                       ; +0xe, 0x10011a5de\ncall    cocos2d__CCDictionary__create                                  ; +0x11, 0x10011a5e1\nmov     r14, rax                                                       ; +0x16, 0x10011a5e6\nmov     rdi, [rbx+0CB8h]                                               ; +0x19, 0x10011a5e9\ncall    sub_100720070                                                  ; +0x20, 0x10011a5f0\ntest    eax, eax                                                       ; +0x25, 0x10011a5f5\njz      short loc_10011A66A                                            ; +0x27, 0x10011a5f7\nxor     r15d, r15d                                                     ; +0x29, 0x10011a5f9\njmp     short loc_10011A61F                                            ; +0x2c, 0x10011a5fc\nalign 20h                                                              ; +0x2e, 0x10011a5fe\nmov     rdi, rax                                                       ; +0x30, 0x10011a600\nmov     rsi, r12                                                       ; +0x33, 0x10011a603\ncall    sub_10071FCD0                                                  ; +0x36, 0x10011a606\ninc     r15d                                                           ; +0x3b, 0x10011a60b\nmov     rdi, [rbx+0CB8h]                                               ; +0x3e, 0x10011a60e\ncall    sub_100720070                                                  ; +0x45, 0x10011a615\ncmp     r15d, eax                                                      ; +0x4a, 0x10011a61a\njnb     short loc_10011A66A                                            ; +0x4d, 0x10011a61d\nmov     rdi, [rbx+0CB8h]                                               ; +0x4f, 0x10011a61f\nmov     esi, r15d                                                      ; +0x56, 0x10011a626\ncall    sub_1007200C0                                                  ; +0x59, 0x10011a629\nmovsxd  rsi, dword ptr [rax+368h]                                      ; +0x5e, 0x10011a62e\ntest    rsi, rsi                                                       ; +0x65, 0x10011a635\njle     short loc_10011A60B                                            ; +0x68, 0x10011a638\nmov     r12, rax                                                       ; +0x6a, 0x10011a63a\nmov     rdi, r14                                                       ; +0x6d, 0x10011a63d\ncall    cocos2d__CCDictionary__objectForKey                            ; +0x70, 0x10011a640\ntest    rax, rax                                                       ; +0x75, 0x10011a645\njnz     short loc_10011A600                                            ; +0x78, 0x10011a648\ncall    sub_10071F9E0                                                  ; +0x7a, 0x10011a64a\nmov     r13, rax                                                       ; +0x7f, 0x10011a64f\nmovsxd  rdx, dword ptr [r12+368h]                                      ; +0x82, 0x10011a652\nmov     rdi, r14                                                       ; +0x8a, 0x10011a65a\nmov     rsi, rax                                                       ; +0x8d, 0x10011a65d\ncall    cocos2d__CCDictionary__setObject                               ; +0x90, 0x10011a660\nmov     rax, r13                                                       ; +0x95, 0x10011a665\njmp     short loc_10011A600                                            ; +0x98, 0x10011a668\nmov     dword ptr [rbx+0E98h], 0                                       ; +0x9a, 0x10011a66a\ntest    r14, r14                                                       ; +0xa4, 0x10011a674\njz      loc_10011A709                                                  ; +0xa7, 0x10011a677\nmov     r12, [r14+38h]                                                 ; +0xad, 0x10011a67d\njmp     short loc_10011A6A5                                            ; +0xb1, 0x10011a681\nalign 10h                                                              ; +0xb3, 0x10011a683\nmov     rdi, [rbx+0E90h]                                               ; +0xc0, 0x10011a690\nmov     edx, [rbx+0E98h]                                               ; +0xc7, 0x10011a697\nmov     rsi, r14                                                       ; +0xcd, 0x10011a69d\ncall    cocos2d__CCDictionary__setObject                               ; +0xd0, 0x10011a6a0\ntest    r12, r12                                                       ; +0xd5, 0x10011a6a5\njz      short loc_10011A709                                            ; +0xd8, 0x10011a6a8\nmov     rax, r12                                                       ; +0xda, 0x10011a6aa\nmov     r12, [r12+120h]                                                ; +0xdd, 0x10011a6ad\ninc     dword ptr [rbx+0E98h]                                          ; +0xe5, 0x10011a6b5\nmov     r14, [rax+108h]                                                ; +0xeb, 0x10011a6bb\nmov     rdi, r14                                                       ; +0xf2, 0x10011a6c2\ncall    sub_100720070                                                  ; +0xf5, 0x10011a6c5\ntest    eax, eax                                                       ; +0xfa, 0x10011a6ca\njz      short loc_10011A690                                            ; +0xfc, 0x10011a6cc\nxor     r15d, r15d                                                     ; +0xfe, 0x10011a6ce\nnop     word ptr [rax+rax+00000000h]                                   ; +0x101, 0x10011a6d1\nmov     rdi, r14                                                       ; +0x110, 0x10011a6e0\nmov     esi, r15d                                                      ; +0x113, 0x10011a6e3\ncall    sub_1007200C0                                                  ; +0x116, 0x10011a6e6\nmov     ecx, [rbx+0E98h]                                               ; +0x11b, 0x10011a6eb\nmov     [rax+368h], ecx                                                ; +0x121, 0x10011a6f1\ninc     r15d                                                           ; +0x127, 0x10011a6f7\nmov     rdi, r14                                                       ; +0x12a, 0x10011a6fa\ncall    sub_100720070                                                  ; +0x12d, 0x10011a6fd\ncmp     r15d, eax                                                      ; +0x132, 0x10011a702\njb      short loc_10011A6E0                                            ; +0x135, 0x10011a705\njmp     short loc_10011A690                                            ; +0x137, 0x10011a707\nadd     rsp, 8                                                         ; +0x139, 0x10011a709\npop     rbx                                                            ; +0x13d, 0x10011a70d\npop     r12                                                            ; +0x13e, 0x10011a70e\npop     r13                                                            ; +0x140, 0x10011a710\npop     r14                                                            ; +0x142, 0x10011a712\npop     r15                                                            ; +0x144, 0x10011a714\npop     rbp                                                            ; +0x146, 0x10011a716\nretn                                                                   ; +0x147, 0x10011a717", "xrefs": ["LevelEditorLayer::init @ 0x1000dc079", "GJBaseGameLayer::updateSpecialGroupData @ 0x1001173e1"], "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"}