{"type": "func", "start": 5372039952, "end": 5372040238, "name": "GJBaseGameLayer::groupStickyObjects", "pseudocode": "// \n// GJBaseGameLayer::groupStickyObjects from 0x14032d310 to 0x14032d42e (286 bytes)\n// \n// 4 xrefs:\n// > EditorUI::onGroupSticky @ 0x1401b4fb1\n// > EditorUI::handleEditorAction @ 0x1401c3876\n// > GJBaseGameLayer::assignNewStickyGroups @ 0x14032d5db\n// > <???> @ 0x14091f3d0\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 11:30:30 +0000\n// \n\nvoid __fastcall GJBaseGameLayer::groupStickyObjects(__int64 a1, cocos2d::CCArray *a2)\n{\n  unsigned int v4; // eax\n  unsigned int v5; // ebp\n  cocos2d::CCArray *v6; // r15\n  unsigned int v7; // ebx\n  unsigned int v8; // edi\n  struct cocos2d::CCObject *v9; // rax\n  int v10; // eax\n  struct cocos2d::CCObject *v11; // rax\n  int v12; // ecx\n\n  v4 = cocos2d::CCArray::count(a2);\n  v5 = 0;\n  v6 = cocos2d::CCArray::createWithCapacity(v4);\n  v7 = 0;\n  v8 = 0;\n  if ( cocos2d::CCArray::count(a2) )\n  {\n    do\n    {\n      v9 = cocos2d::CCArray::objectAtIndex(a2, v8);\n      if ( v7 )\n      {\n        v10 = *((_DWORD *)v9 + 220);\n        if ( v10 > 0 && v10 != v7 )\n        {\n          GJBaseGameLayer::ungroupStickyObjects(a1, a2);\n          goto LABEL_8;\n        }\n      }\n      else\n      {\n        v7 = *((_DWORD *)v9 + 220);\n      }\n      ++v8;\n    }\n    while ( v8 < cocos2d::CCArray::count(a2) );\n    if ( v7 )\n      goto LABEL_9;\n  }\nLABEL_8:\n  v7 = ++*(_DWORD *)(a1 + 4264);\nLABEL_9:\n  if ( cocos2d::CCArray::count(a2) )\n  {\n    do\n    {\n      v11 = cocos2d::CCArray::objectAtIndex(a2, v5);\n      v12 = *((_DWORD *)v11 + 259);\n      if ( v12 != 747 && v12 != 749 )\n      {\n        *((_DWORD *)v11 + 220) = v7;\n        cocos2d::CCArray::addObject(v6, v11);\n      }\n      ++v5;\n    }\n    while ( v5 < cocos2d::CCArray::count(a2) );\n  }\n  cocos2d::CCDictionary::setObject(*(cocos2d::CCDictionary **)(a1 + 4256), v6, v7);\n}", "assembly": "; \n; GJBaseGameLayer::groupStickyObjects from 0x14032d310 to 0x14032d42e (286 bytes)\n; \n; 4 xrefs:\n; > EditorUI::onGroupSticky @ 0x1401b4fb1\n; > EditorUI::handleEditorAction @ 0x1401c3876\n; > GJBaseGameLayer::assignNewStickyGroups @ 0x14032d5db\n; > <???> @ 0x14091f3d0\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 11:30:30 +0000\n; \nmov     [rsp+arg_0], rbx                                               ; +0x0, 0x14032d310\nmov     [rsp+arg_8], rbp                                               ; +0x5, 0x14032d315\nmov     [rsp+arg_10], rsi                                              ; +0xa, 0x14032d31a\npush    rdi                                                            ; +0xf, 0x14032d31f\npush    r14                                                            ; +0x10, 0x14032d320\npush    r15                                                            ; +0x12, 0x14032d322\nsub     rsp, 20h                                                       ; +0x14, 0x14032d324\nmov     r14, rcx                                                       ; +0x18, 0x14032d328\nmov     rsi, rdx                                                       ; +0x1b, 0x14032d32b\nmov     rcx, rdx                                                       ; +0x1e, 0x14032d32e\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x21, 0x14032d331\nmov     ecx, eax                                                       ; +0x27, 0x14032d337\ncall    cs:?createWithCapacity@CCArray@cocos2d@@SAPEAV12@I@Z; cocos2d::CCArray::createWithCapacity(uint) ; +0x29, 0x14032d339\nxor     ebp, ebp                                                       ; +0x2f, 0x14032d33f\nmov     rcx, rsi                                                       ; +0x31, 0x14032d341\nmov     r15, rax                                                       ; +0x34, 0x14032d344\nmov     ebx, ebp                                                       ; +0x37, 0x14032d347\nmov     edi, ebp                                                       ; +0x39, 0x14032d349\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x3b, 0x14032d34b\ntest    eax, eax                                                       ; +0x41, 0x14032d351\njz      short loc_14032D391                                            ; +0x43, 0x14032d353\nmov     edx, edi                                                       ; +0x45, 0x14032d355\nmov     rcx, rsi                                                       ; +0x47, 0x14032d357\ncall    cs:?objectAtIndex@CCArray@cocos2d@@QEAAPEAVCCObject@2@I@Z; cocos2d::CCArray::objectAtIndex(uint) ; +0x4a, 0x14032d35a\ntest    ebx, ebx                                                       ; +0x50, 0x14032d360\njnz     short loc_14032D36C                                            ; +0x52, 0x14032d362\nmov     ebx, [rax+370h]                                                ; +0x54, 0x14032d364\njmp     short loc_14032D37E                                            ; +0x5a, 0x14032d36a\nmov     eax, [rax+370h]                                                ; +0x5c, 0x14032d36c\ntest    eax, eax                                                       ; +0x62, 0x14032d372\njle     short loc_14032D37E                                            ; +0x64, 0x14032d374\ncmp     eax, ebx                                                       ; +0x66, 0x14032d376\njnz     loc_14032D41E                                                  ; +0x68, 0x14032d378\nmov     rcx, rsi                                                       ; +0x6e, 0x14032d37e\ninc     edi                                                            ; +0x71, 0x14032d381\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x73, 0x14032d383\ncmp     edi, eax                                                       ; +0x79, 0x14032d389\njb      short loc_14032D355                                            ; +0x7b, 0x14032d38b\ntest    ebx, ebx                                                       ; +0x7d, 0x14032d38d\njnz     short loc_14032D39F                                            ; +0x7f, 0x14032d38f\ninc     dword ptr [r14+10A8h]                                          ; +0x81, 0x14032d391\nmov     ebx, [r14+10A8h]                                               ; +0x88, 0x14032d398\nmov     rcx, rsi                                                       ; +0x8f, 0x14032d39f\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x92, 0x14032d3a2\ntest    eax, eax                                                       ; +0x98, 0x14032d3a8\njz      short loc_14032D3F2                                            ; +0x9a, 0x14032d3aa\nnop     dword ptr [rax+00h]                                            ; +0x9c, 0x14032d3ac\nmov     edx, ebp                                                       ; +0xa0, 0x14032d3b0\nmov     rcx, rsi                                                       ; +0xa2, 0x14032d3b2\ncall    cs:?objectAtIndex@CCArray@cocos2d@@QEAAPEAVCCObject@2@I@Z; cocos2d::CCArray::objectAtIndex(uint) ; +0xa5, 0x14032d3b5\nmov     ecx, [rax+40Ch]                                                ; +0xab, 0x14032d3bb\ncmp     ecx, 2EBh                                                      ; +0xb1, 0x14032d3c1\njz      short loc_14032D3E3                                            ; +0xb7, 0x14032d3c7\ncmp     ecx, 2EDh                                                      ; +0xb9, 0x14032d3c9\njz      short loc_14032D3E3                                            ; +0xbf, 0x14032d3cf\nmov     rdx, rax                                                       ; +0xc1, 0x14032d3d1\nmov     [rax+370h], ebx                                                ; +0xc4, 0x14032d3d4\nmov     rcx, r15                                                       ; +0xca, 0x14032d3da\ncall    cs:?addObject@CCArray@cocos2d@@QEAAXPEAVCCObject@2@@Z; cocos2d::CCArray::addObject(cocos2d::CCObject *) ; +0xcd, 0x14032d3dd\nmov     rcx, rsi                                                       ; +0xd3, 0x14032d3e3\ninc     ebp                                                            ; +0xd6, 0x14032d3e6\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0xd8, 0x14032d3e8\ncmp     ebp, eax                                                       ; +0xde, 0x14032d3ee\njb      short loc_14032D3B0                                            ; +0xe0, 0x14032d3f0\nmov     rcx, [r14+10A0h]                                               ; +0xe2, 0x14032d3f2\nmov     rdx, r15                                                       ; +0xe9, 0x14032d3f9\nmov     r8d, ebx                                                       ; +0xec, 0x14032d3fc\nmov     rbx, [rsp+38h+arg_0]                                           ; +0xef, 0x14032d3ff\nmov     rbp, [rsp+38h+arg_8]                                           ; +0xf4, 0x14032d404\nmov     rsi, [rsp+38h+arg_10]                                          ; +0xf9, 0x14032d409\nadd     rsp, 20h                                                       ; +0xfe, 0x14032d40e\npop     r15                                                            ; +0x102, 0x14032d412\npop     r14                                                            ; +0x104, 0x14032d414\npop     rdi                                                            ; +0x106, 0x14032d416\njmp     cs:?setObject@CCDictionary@cocos2d@@QEAAXPEAVCCObject@2@_J@Z; cocos2d::CCDictionary::setObject(cocos2d::CCObject *,__int64) ; +0x107, 0x14032d417\nmov     rdx, rsi                                                       ; +0x10e, 0x14032d41e\nmov     rcx, r14                                                       ; +0x111, 0x14032d421\ncall    GJBaseGameLayer__ungroupStickyObjects                          ; +0x114, 0x14032d424\njmp     loc_14032D391                                                  ; +0x119, 0x14032d429", "xrefs": ["EditorUI::onGroupSticky @ 0x1401b4fb1", "EditorUI::handleEditorAction @ 0x1401c3876", "GJBaseGameLayer::assignNewStickyGroups @ 0x14032d5db", "<???> @ 0x14091f3d0"], "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"}