{"type": "func", "start": 4296269920, "end": 4296270184, "name": "GJBaseGameLayer::assignNewStickyGroups", "pseudocode": "// \n// GJBaseGameLayer::assignNewStickyGroups from 0x10013e060 to 0x10013e168 (264 bytes)\n// \n// 2 xrefs:\n// > EditorUI::pasteObjects @ 0x10003b9a7\n// > LevelEditorLayer::duplicateKeyframeAnimation @ 0x1000f44ff\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::assignNewStickyGroups(GJBaseGameLayer *a1, cocos2d::CCArray *a2)\n{\n  cocos2d::CCDictionary *v3; // r15\n  unsigned int v4; // r12d\n  __int64 v5; // r13\n  int v6; // eax\n  __int64 v7; // rsi\n  cocos2d::CCObject *v8; // rbx\n  cocos2d::CCDictElement *m_pElements; // r14\n  cocos2d::CCArray *m_pObject; // rbx\n\n  if ( a2 && (unsigned int)sub_100720070(a2) )\n  {\n    v3 = nullptr;\n    v4 = 0;\n    do\n    {\n      v5 = sub_1007200C0(a2, v4);\n      v6 = *(_DWORD *)(v5 + 872);\n      if ( v6 > 0 )\n      {\n        if ( !v3 )\n        {\n          v3 = cocos2d::CCDictionary::create();\n          v6 = *(_DWORD *)(v5 + 872);\n        }\n        v7 = v6;\n        v8 = cocos2d::CCDictionary::objectForKey(v3, v6);\n        if ( !v8 )\n        {\n          v8 = (cocos2d::CCObject *)sub_10071F9E0(v3, v7);\n          cocos2d::CCDictionary::setObject(v3, v8, *(int *)(v5 + 872));\n        }\n        sub_10071FCD0(v8, v5);\n      }\n      ++v4;\n    }\n    while ( v4 < (unsigned int)sub_100720070(a2) );\n    if ( v3 )\n    {\n      m_pElements = v3->m_pElements;\n      while ( m_pElements )\n      {\n        m_pObject = (cocos2d::CCArray *)m_pElements->m_pObject;\n        m_pElements = (cocos2d::CCDictElement *)m_pElements->hh.next;\n        GJBaseGameLayer::ungroupStickyObjects(a1, m_pObject);\n        GJBaseGameLayer::groupStickyObjects(a1, m_pObject);\n      }\n    }\n  }\n}", "assembly": "; \n; GJBaseGameLayer::assignNewStickyGroups from 0x10013e060 to 0x10013e168 (264 bytes)\n; \n; 2 xrefs:\n; > EditorUI::pasteObjects @ 0x10003b9a7\n; > LevelEditorLayer::duplicateKeyframeAnimation @ 0x1000f44ff\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\ntest    rsi, rsi                                                       ; +0x0, 0x10013e060\njz      locret_10013E167                                               ; +0x3, 0x10013e063\npush    rbp                                                            ; +0x9, 0x10013e069\nmov     rbp, rsp                                                       ; +0xa, 0x10013e06a\npush    r15                                                            ; +0xd, 0x10013e06d\npush    r14                                                            ; +0xf, 0x10013e06f\npush    r13                                                            ; +0x11, 0x10013e071\npush    r12                                                            ; +0x13, 0x10013e073\npush    rbx                                                            ; +0x15, 0x10013e075\npush    rax                                                            ; +0x16, 0x10013e076\nmov     r14, rsi                                                       ; +0x17, 0x10013e077\nmov     rbx, rdi                                                       ; +0x1a, 0x10013e07a\nmov     rdi, rsi                                                       ; +0x1d, 0x10013e07d\ncall    sub_100720070                                                  ; +0x20, 0x10013e080\ntest    eax, eax                                                       ; +0x25, 0x10013e085\njz      loc_10013E159                                                  ; +0x27, 0x10013e087\nmov     [rbp-30h], rbx                                                 ; +0x2d, 0x10013e08d\nxor     r15d, r15d                                                     ; +0x31, 0x10013e091\nxor     r12d, r12d                                                     ; +0x34, 0x10013e094\njmp     short loc_10013E0BB                                            ; +0x37, 0x10013e097\nalign 20h                                                              ; +0x39, 0x10013e099\nmov     rdi, rbx                                                       ; +0x40, 0x10013e0a0\nmov     rsi, r13                                                       ; +0x43, 0x10013e0a3\ncall    sub_10071FCD0                                                  ; +0x46, 0x10013e0a6\ninc     r12d                                                           ; +0x4b, 0x10013e0ab\nmov     rdi, r14                                                       ; +0x4e, 0x10013e0ae\ncall    sub_100720070                                                  ; +0x51, 0x10013e0b1\ncmp     r12d, eax                                                      ; +0x56, 0x10013e0b6\njnb     short loc_10013E116                                            ; +0x59, 0x10013e0b9\nmov     rdi, r14                                                       ; +0x5b, 0x10013e0bb\nmov     esi, r12d                                                      ; +0x5e, 0x10013e0be\ncall    sub_1007200C0                                                  ; +0x61, 0x10013e0c1\nmov     r13, rax                                                       ; +0x66, 0x10013e0c6\nmov     eax, [rax+368h]                                                ; +0x69, 0x10013e0c9\ntest    eax, eax                                                       ; +0x6f, 0x10013e0cf\njle     short loc_10013E0AB                                            ; +0x71, 0x10013e0d1\ntest    r15, r15                                                       ; +0x73, 0x10013e0d3\njnz     short loc_10013E0E7                                            ; +0x76, 0x10013e0d6\ncall    cocos2d__CCDictionary__create                                  ; +0x78, 0x10013e0d8\nmov     r15, rax                                                       ; +0x7d, 0x10013e0dd\nmov     eax, [r13+368h]                                                ; +0x80, 0x10013e0e0\nmovsxd  rsi, eax                                                       ; +0x87, 0x10013e0e7\nmov     rdi, r15                                                       ; +0x8a, 0x10013e0ea\ncall    cocos2d__CCDictionary__objectForKey                            ; +0x8d, 0x10013e0ed\nmov     rbx, rax                                                       ; +0x92, 0x10013e0f2\ntest    rax, rax                                                       ; +0x95, 0x10013e0f5\njnz     short loc_10013E0A0                                            ; +0x98, 0x10013e0f8\ncall    sub_10071F9E0                                                  ; +0x9a, 0x10013e0fa\nmov     rbx, rax                                                       ; +0x9f, 0x10013e0ff\nmovsxd  rdx, dword ptr [r13+368h]                                      ; +0xa2, 0x10013e102\nmov     rdi, r15                                                       ; +0xa9, 0x10013e109\nmov     rsi, rax                                                       ; +0xac, 0x10013e10c\ncall    cocos2d__CCDictionary__setObject                               ; +0xaf, 0x10013e10f\njmp     short loc_10013E0A0                                            ; +0xb4, 0x10013e114\ntest    r15, r15                                                       ; +0xb6, 0x10013e116\nmov     r12, [rbp-30h]                                                 ; +0xb9, 0x10013e119\njz      short loc_10013E159                                            ; +0xbd, 0x10013e11d\nmov     r14, [r15+38h]                                                 ; +0xbf, 0x10013e11f\ntest    r14, r14                                                       ; +0xc3, 0x10013e123\njz      short loc_10013E159                                            ; +0xc6, 0x10013e126\nnop     dword ptr [rax+rax+00000000h]                                  ; +0xc8, 0x10013e128\nmov     rbx, [r14+108h]                                                ; +0xd0, 0x10013e130\nmov     r14, [r14+120h]                                                ; +0xd7, 0x10013e137\nmov     rdi, r12                                                       ; +0xde, 0x10013e13e\nmov     rsi, rbx                                                       ; +0xe1, 0x10013e141\ncall    GJBaseGameLayer__ungroupStickyObjects                          ; +0xe4, 0x10013e144\nmov     rdi, r12                                                       ; +0xe9, 0x10013e149\nmov     rsi, rbx                                                       ; +0xec, 0x10013e14c\ncall    GJBaseGameLayer__groupStickyObjects                            ; +0xef, 0x10013e14f\ntest    r14, r14                                                       ; +0xf4, 0x10013e154\njnz     short loc_10013E130                                            ; +0xf7, 0x10013e157\nadd     rsp, 8                                                         ; +0xf9, 0x10013e159\npop     rbx                                                            ; +0xfd, 0x10013e15d\npop     r12                                                            ; +0xfe, 0x10013e15e\npop     r13                                                            ; +0x100, 0x10013e160\npop     r14                                                            ; +0x102, 0x10013e162\npop     r15                                                            ; +0x104, 0x10013e164\npop     rbp                                                            ; +0x106, 0x10013e166\nretn                                                                   ; +0x107, 0x10013e167", "xrefs": ["EditorUI::pasteObjects @ 0x10003b9a7", "LevelEditorLayer::duplicateKeyframeAnimation @ 0x1000f44ff"], "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"}