{"type": "func", "start": 5372040240, "end": 5372040430, "name": "GJBaseGameLayer::ungroupStickyObjects", "pseudocode": "// \n// GJBaseGameLayer::ungroupStickyObjects from 0x14032d430 to 0x14032d4ee (190 bytes)\n// \n// 7 xrefs:\n// > EditorUI::onUngroupSticky @ 0x1401b5001\n// > EditorUI::handleEditorAction @ 0x1401c38c2\n// > GJBaseGameLayer::groupStickyObjects @ 0x14032d424\n// > GJBaseGameLayer::assignNewStickyGroups @ 0x14032d5d0\n// > <???> @ 0x1408b62c4\n// > <???> @ 0x1408b62d4\n// > <???> @ 0x14091f3dc\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\nunsigned int __fastcall GJBaseGameLayer::ungroupStickyObjects(__int64 a1, cocos2d::CCArray *a2)\n{\n  unsigned int v3; // edi\n  unsigned int result; // eax\n  int *v6; // rbx\n  cocos2d::CCArray *v7; // rax\n  cocos2d::CCArray *v8; // rsi\n\n  v3 = 0;\n  result = cocos2d::CCArray::count(a2);\n  if ( result )\n  {\n    do\n    {\n      v6 = (int *)cocos2d::CCArray::objectAtIndex(a2, v3);\n      v7 = cocos2d::CCDictionary::objectForKey(*(cocos2d::CCDictionary **)(a1 + 4256), v6[220]);\n      v8 = v7;\n      if ( v7 )\n      {\n        cocos2d::CCArray::removeObject(v7, (struct cocos2d::CCObject *)v6, 1);\n        if ( !cocos2d::CCArray::count(v8) )\n          cocos2d::CCDictionary::removeObjectForKey(*(cocos2d::CCDictionary **)(a1 + 4256), v6[220]);\n      }\n      v6[220] = 0;\n      ++v3;\n      result = cocos2d::CCArray::count(a2);\n    }\n    while ( v3 < result );\n  }\n  return result;\n}", "assembly": "; \n; GJBaseGameLayer::ungroupStickyObjects from 0x14032d430 to 0x14032d4ee (190 bytes)\n; \n; 7 xrefs:\n; > EditorUI::onUngroupSticky @ 0x1401b5001\n; > EditorUI::handleEditorAction @ 0x1401c38c2\n; > GJBaseGameLayer::groupStickyObjects @ 0x14032d424\n; > GJBaseGameLayer::assignNewStickyGroups @ 0x14032d5d0\n; > <???> @ 0x1408b62c4\n; > <???> @ 0x1408b62d4\n; > <???> @ 0x14091f3dc\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_10], rbp                                              ; +0x0, 0x14032d430\npush    rdi                                                            ; +0x5, 0x14032d435\npush    r14                                                            ; +0x6, 0x14032d436\npush    r15                                                            ; +0x8, 0x14032d438\nsub     rsp, 20h                                                       ; +0xa, 0x14032d43a\nmov     r14, rcx                                                       ; +0xe, 0x14032d43e\nxor     r15d, r15d                                                     ; +0x11, 0x14032d441\nmov     rcx, rdx                                                       ; +0x14, 0x14032d444\nmov     edi, r15d                                                      ; +0x17, 0x14032d447\nmov     rbp, rdx                                                       ; +0x1a, 0x14032d44a\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x1d, 0x14032d44d\ntest    eax, eax                                                       ; +0x23, 0x14032d453\njz      loc_14032D4DF                                                  ; +0x25, 0x14032d455\nmov     [rsp+38h+arg_0], rbx                                           ; +0x2b, 0x14032d45b\nmov     [rsp+38h+arg_8], rsi                                           ; +0x30, 0x14032d460\nmov     edx, edi                                                       ; +0x35, 0x14032d465\nmov     rcx, rbp                                                       ; +0x37, 0x14032d467\ncall    cs:?objectAtIndex@CCArray@cocos2d@@QEAAPEAVCCObject@2@I@Z; cocos2d::CCArray::objectAtIndex(uint) ; +0x3a, 0x14032d46a\nmov     rcx, [r14+10A0h]                                               ; +0x40, 0x14032d470\nmov     rbx, rax                                                       ; +0x47, 0x14032d477\nmovsxd  rdx, dword ptr [rax+370h]                                      ; +0x4a, 0x14032d47a\ncall    cs:?objectForKey@CCDictionary@cocos2d@@QEAAPEAVCCObject@2@_J@Z; cocos2d::CCDictionary::objectForKey(__int64) ; +0x51, 0x14032d481\nmov     rsi, rax                                                       ; +0x57, 0x14032d487\ntest    rax, rax                                                       ; +0x5a, 0x14032d48a\njz      short loc_14032D4BF                                            ; +0x5d, 0x14032d48d\nmov     r8b, 1                                                         ; +0x5f, 0x14032d48f\nmov     rdx, rbx                                                       ; +0x62, 0x14032d492\nmov     rcx, rax                                                       ; +0x65, 0x14032d495\ncall    cs:?removeObject@CCArray@cocos2d@@QEAAXPEAVCCObject@2@_N@Z; cocos2d::CCArray::removeObject(cocos2d::CCObject *,bool) ; +0x68, 0x14032d498\nmov     rcx, rsi                                                       ; +0x6e, 0x14032d49e\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x71, 0x14032d4a1\ntest    eax, eax                                                       ; +0x77, 0x14032d4a7\njnz     short loc_14032D4BF                                            ; +0x79, 0x14032d4a9\nmovsxd  rdx, dword ptr [rbx+370h]                                      ; +0x7b, 0x14032d4ab\nmov     rcx, [r14+10A0h]                                               ; +0x82, 0x14032d4b2\ncall    cs:?removeObjectForKey@CCDictionary@cocos2d@@QEAAX_J@Z; cocos2d::CCDictionary::removeObjectForKey(__int64) ; +0x89, 0x14032d4b9\nmov     rcx, rbp                                                       ; +0x8f, 0x14032d4bf\nmov     [rbx+370h], r15d                                               ; +0x92, 0x14032d4c2\ninc     edi                                                            ; +0x99, 0x14032d4c9\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x9b, 0x14032d4cb\ncmp     edi, eax                                                       ; +0xa1, 0x14032d4d1\njb      short loc_14032D465                                            ; +0xa3, 0x14032d4d3\nmov     rsi, [rsp+38h+arg_8]                                           ; +0xa5, 0x14032d4d5\nmov     rbx, [rsp+38h+arg_0]                                           ; +0xaa, 0x14032d4da\nmov     rbp, [rsp+38h+arg_10]                                          ; +0xaf, 0x14032d4df\nadd     rsp, 20h                                                       ; +0xb4, 0x14032d4e4\npop     r15                                                            ; +0xb8, 0x14032d4e8\npop     r14                                                            ; +0xba, 0x14032d4ea\npop     rdi                                                            ; +0xbc, 0x14032d4ec\nretn                                                                   ; +0xbd, 0x14032d4ed", "xrefs": ["EditorUI::onUngroupSticky @ 0x1401b5001", "EditorUI::handleEditorAction @ 0x1401c38c2", "GJBaseGameLayer::groupStickyObjects @ 0x14032d424", "GJBaseGameLayer::assignNewStickyGroups @ 0x14032d5d0", "<???> @ 0x1408b62c4", "<???> @ 0x1408b62d4", "<???> @ 0x14091f3dc"], "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"}