{"type": "func", "start": 4296131568, "end": 4296131832, "name": "GJBaseGameLayer::assignNewStickyGroups", "pseudocode": "// \n// GJBaseGameLayer::assignNewStickyGroups from 0x10011c3f0 to 0x10011c4f8 (264 bytes)\n// \n// 2 xrefs:\n// > LevelEditorLayer::duplicateKeyframeAnimation @ 0x1000c84bf\n// > EditorUI::pasteObjects @ 0x1005b7a0b\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:36 +0000\n// \n\n__int64 __fastcall GJBaseGameLayer::assignNewStickyGroups(__int64 a1, __int64 a2)\n{\n  __int64 result; // rax\n  __int64 v3; // r15\n  unsigned int v4; // r12d\n  __int64 v5; // r13\n  __int64 v6; // rbx\n  __int64 i; // r14\n  __int64 v8; // rbx\n\n  if ( a2 )\n  {\n    result = sub_1007FEF90(a2);\n    if ( (_DWORD)result )\n    {\n      v3 = 0;\n      v4 = 0;\n      do\n      {\n        v5 = sub_1007FEFE0(a2, v4);\n        if ( *(int *)(v5 + 872) > 0 )\n        {\n          if ( !v3 )\n            v3 = cocos2d::CCDictionary::create(a2, v4);\n          v6 = cocos2d::CCDictionary::objectForKey_1(v3);\n          if ( !v6 )\n          {\n            v6 = sub_1007FE900(v3);\n            cocos2d::CCDictionary::setObject_1(v3, v6, *(int *)(v5 + 872));\n          }\n          sub_1007FEBF0(v6, v5);\n        }\n        ++v4;\n        result = sub_1007FEF90(a2);\n      }\n      while ( v4 < (unsigned int)result );\n      if ( v3 )\n      {\n        for ( i = *(_QWORD *)(v3 + 56); i; result = GJBaseGameLayer::groupStickyObjects(a1, v8) )\n        {\n          v8 = *(_QWORD *)(i + 264);\n          i = *(_QWORD *)(i + 288);\n          GJBaseGameLayer::ungroupStickyObjects(a1, v8);\n        }\n      }\n    }\n  }\n  return result;\n}", "assembly": "; \n; GJBaseGameLayer::assignNewStickyGroups from 0x10011c3f0 to 0x10011c4f8 (264 bytes)\n; \n; 2 xrefs:\n; > LevelEditorLayer::duplicateKeyframeAnimation @ 0x1000c84bf\n; > EditorUI::pasteObjects @ 0x1005b7a0b\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:36 +0000\n; \ntest    rsi, rsi                                                       ; +0x0, 0x10011c3f0\njz      locret_10011C4F7                                               ; +0x3, 0x10011c3f3\npush    rbp                                                            ; +0x9, 0x10011c3f9\nmov     rbp, rsp                                                       ; +0xa, 0x10011c3fa\npush    r15                                                            ; +0xd, 0x10011c3fd\npush    r14                                                            ; +0xf, 0x10011c3ff\npush    r13                                                            ; +0x11, 0x10011c401\npush    r12                                                            ; +0x13, 0x10011c403\npush    rbx                                                            ; +0x15, 0x10011c405\npush    rax                                                            ; +0x16, 0x10011c406\nmov     r14, rsi                                                       ; +0x17, 0x10011c407\nmov     rbx, rdi                                                       ; +0x1a, 0x10011c40a\nmov     rdi, rsi                                                       ; +0x1d, 0x10011c40d\ncall    sub_1007FEF90                                                  ; +0x20, 0x10011c410\ntest    eax, eax                                                       ; +0x25, 0x10011c415\njz      loc_10011C4E9                                                  ; +0x27, 0x10011c417\nmov     [rbp-30h], rbx                                                 ; +0x2d, 0x10011c41d\nxor     r15d, r15d                                                     ; +0x31, 0x10011c421\nxor     r12d, r12d                                                     ; +0x34, 0x10011c424\njmp     short loc_10011C44B                                            ; +0x37, 0x10011c427\nalign 10h                                                              ; +0x39, 0x10011c429\nmov     rdi, rbx                                                       ; +0x40, 0x10011c430\nmov     rsi, r13                                                       ; +0x43, 0x10011c433\ncall    sub_1007FEBF0                                                  ; +0x46, 0x10011c436\ninc     r12d                                                           ; +0x4b, 0x10011c43b\nmov     rdi, r14                                                       ; +0x4e, 0x10011c43e\ncall    sub_1007FEF90                                                  ; +0x51, 0x10011c441\ncmp     r12d, eax                                                      ; +0x56, 0x10011c446\njnb     short loc_10011C4A6                                            ; +0x59, 0x10011c449\nmov     rdi, r14                                                       ; +0x5b, 0x10011c44b\nmov     esi, r12d                                                      ; +0x5e, 0x10011c44e\ncall    sub_1007FEFE0                                                  ; +0x61, 0x10011c451\nmov     r13, rax                                                       ; +0x66, 0x10011c456\nmov     eax, [rax+368h]                                                ; +0x69, 0x10011c459\ntest    eax, eax                                                       ; +0x6f, 0x10011c45f\njle     short loc_10011C43B                                            ; +0x71, 0x10011c461\ntest    r15, r15                                                       ; +0x73, 0x10011c463\njnz     short loc_10011C477                                            ; +0x76, 0x10011c466\ncall    cocos2d__CCDictionary__create                                  ; +0x78, 0x10011c468\nmov     r15, rax                                                       ; +0x7d, 0x10011c46d\nmov     eax, [r13+368h]                                                ; +0x80, 0x10011c470\nmovsxd  rsi, eax                                                       ; +0x87, 0x10011c477\nmov     rdi, r15                                                       ; +0x8a, 0x10011c47a\ncall    cocos2d__CCDictionary__objectForKey_1                          ; +0x8d, 0x10011c47d\nmov     rbx, rax                                                       ; +0x92, 0x10011c482\ntest    rax, rax                                                       ; +0x95, 0x10011c485\njnz     short loc_10011C430                                            ; +0x98, 0x10011c488\ncall    sub_1007FE900                                                  ; +0x9a, 0x10011c48a\nmov     rbx, rax                                                       ; +0x9f, 0x10011c48f\nmovsxd  rdx, dword ptr [r13+368h]                                      ; +0xa2, 0x10011c492\nmov     rdi, r15                                                       ; +0xa9, 0x10011c499\nmov     rsi, rax                                                       ; +0xac, 0x10011c49c\ncall    cocos2d__CCDictionary__setObject_1                             ; +0xaf, 0x10011c49f\njmp     short loc_10011C430                                            ; +0xb4, 0x10011c4a4\ntest    r15, r15                                                       ; +0xb6, 0x10011c4a6\nmov     r12, [rbp-30h]                                                 ; +0xb9, 0x10011c4a9\njz      short loc_10011C4E9                                            ; +0xbd, 0x10011c4ad\nmov     r14, [r15+38h]                                                 ; +0xbf, 0x10011c4af\ntest    r14, r14                                                       ; +0xc3, 0x10011c4b3\njz      short loc_10011C4E9                                            ; +0xc6, 0x10011c4b6\nnop     dword ptr [rax+rax+00000000h]                                  ; +0xc8, 0x10011c4b8\nmov     rbx, [r14+108h]                                                ; +0xd0, 0x10011c4c0\nmov     r14, [r14+120h]                                                ; +0xd7, 0x10011c4c7\nmov     rdi, r12                                                       ; +0xde, 0x10011c4ce\nmov     rsi, rbx                                                       ; +0xe1, 0x10011c4d1\ncall    GJBaseGameLayer__ungroupStickyObjects                          ; +0xe4, 0x10011c4d4\nmov     rdi, r12                                                       ; +0xe9, 0x10011c4d9\nmov     rsi, rbx                                                       ; +0xec, 0x10011c4dc\ncall    GJBaseGameLayer__groupStickyObjects                            ; +0xef, 0x10011c4df\ntest    r14, r14                                                       ; +0xf4, 0x10011c4e4\njnz     short loc_10011C4C0                                            ; +0xf7, 0x10011c4e7\nadd     rsp, 8                                                         ; +0xf9, 0x10011c4e9\npop     rbx                                                            ; +0xfd, 0x10011c4ed\npop     r12                                                            ; +0xfe, 0x10011c4ee\npop     r13                                                            ; +0x100, 0x10011c4f0\npop     r14                                                            ; +0x102, 0x10011c4f2\npop     r15                                                            ; +0x104, 0x10011c4f4\npop     rbp                                                            ; +0x106, 0x10011c4f6\nretn                                                                   ; +0x107, 0x10011c4f7", "xrefs": ["LevelEditorLayer::duplicateKeyframeAnimation @ 0x1000c84bf", "EditorUI::pasteObjects @ 0x1005b7a0b"], "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"}