{"type": "func", "start": 5370956928, "end": 5370957118, "name": "GJBaseGameLayer::ungroupStickyObjects", "pseudocode": "// \n// GJBaseGameLayer::ungroupStickyObjects from 0x140224c80 to 0x140224d3e (190 bytes)\n// \n// 6 xrefs:\n// > EditorUI::onUngroupSticky @ 0x140112948\n// > GJBaseGameLayer::groupStickyObjects @ 0x140224c72\n// > GJBaseGameLayer::assignNewStickyGroups @ 0x140224e20\n// > <???> @ 0x14068011c\n// > <???> @ 0x14068012c\n// > <???> @ 0x1406cd788\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 GJBaseGameLayer::ungroupStickyObjects(GJBaseGameLayer *a1, cocos2d::CCArray *a2)\n{\n  unsigned int i; // edi\n  struct cocos2d::CCObject *v5; // rbx\n  cocos2d::CCArray *v6; // rax\n  cocos2d::CCArray *v7; // rsi\n\n  for ( i = 0; i < cocos2d::CCArray::count(a2); ++i )\n  {\n    v5 = cocos2d::CCArray::objectAtIndex(a2, i);\n    v6 = (cocos2d::CCArray *)cocos2d::CCDictionary::objectForKey(a1->m_linkedGroupDict, v5[15].m_unknown2);\n    v7 = v6;\n    if ( v6 )\n    {\n      cocos2d::CCArray::removeObject(v6, v5, 1);\n      if ( !cocos2d::CCArray::count(v7) )\n        cocos2d::CCDictionary::removeObjectForKey(a1->m_linkedGroupDict, v5[15].m_unknown2);\n    }\n    v5[15].m_unknown2 = 0;\n  }\n}", "assembly": "; \n; GJBaseGameLayer::ungroupStickyObjects from 0x140224c80 to 0x140224d3e (190 bytes)\n; \n; 6 xrefs:\n; > EditorUI::onUngroupSticky @ 0x140112948\n; > GJBaseGameLayer::groupStickyObjects @ 0x140224c72\n; > GJBaseGameLayer::assignNewStickyGroups @ 0x140224e20\n; > <???> @ 0x14068011c\n; > <???> @ 0x14068012c\n; > <???> @ 0x1406cd788\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\nmov     [rsp+arg_10], rbp                                              ; +0x0, 0x140224c80\npush    rdi                                                            ; +0x5, 0x140224c85\npush    r14                                                            ; +0x6, 0x140224c86\npush    r15                                                            ; +0x8, 0x140224c88\nsub     rsp, 20h                                                       ; +0xa, 0x140224c8a\nmov     r14, rcx                                                       ; +0xe, 0x140224c8e\nxor     r15d, r15d                                                     ; +0x11, 0x140224c91\nmov     rcx, rdx                                                       ; +0x14, 0x140224c94\nmov     edi, r15d                                                      ; +0x17, 0x140224c97\nmov     rbp, rdx                                                       ; +0x1a, 0x140224c9a\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x1d, 0x140224c9d\ntest    eax, eax                                                       ; +0x23, 0x140224ca3\njz      loc_140224D2F                                                  ; +0x25, 0x140224ca5\nmov     [rsp+38h+arg_0], rbx                                           ; +0x2b, 0x140224cab\nmov     [rsp+38h+arg_8], rsi                                           ; +0x30, 0x140224cb0\nmov     edx, edi                                                       ; +0x35, 0x140224cb5\nmov     rcx, rbp                                                       ; +0x37, 0x140224cb7\ncall    cs:?objectAtIndex@CCArray@cocos2d@@QEAAPEAVCCObject@2@I@Z; cocos2d::CCArray::objectAtIndex(uint) ; +0x3a, 0x140224cba\nmov     rcx, [r14+0FC0h]                                               ; +0x40, 0x140224cc0\nmov     rbx, rax                                                       ; +0x47, 0x140224cc7\nmovsxd  rdx, dword ptr [rax+370h]                                      ; +0x4a, 0x140224cca\ncall    cs:?objectForKey@CCDictionary@cocos2d@@QEAAPEAVCCObject@2@_J@Z; cocos2d::CCDictionary::objectForKey(__int64) ; +0x51, 0x140224cd1\nmov     rsi, rax                                                       ; +0x57, 0x140224cd7\ntest    rax, rax                                                       ; +0x5a, 0x140224cda\njz      short loc_140224D0F                                            ; +0x5d, 0x140224cdd\nmov     r8b, 1                                                         ; +0x5f, 0x140224cdf\nmov     rdx, rbx                                                       ; +0x62, 0x140224ce2\nmov     rcx, rax                                                       ; +0x65, 0x140224ce5\ncall    cs:?removeObject@CCArray@cocos2d@@QEAAXPEAVCCObject@2@_N@Z; cocos2d::CCArray::removeObject(cocos2d::CCObject *,bool) ; +0x68, 0x140224ce8\nmov     rcx, rsi                                                       ; +0x6e, 0x140224cee\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x71, 0x140224cf1\ntest    eax, eax                                                       ; +0x77, 0x140224cf7\njnz     short loc_140224D0F                                            ; +0x79, 0x140224cf9\nmovsxd  rdx, dword ptr [rbx+370h]                                      ; +0x7b, 0x140224cfb\nmov     rcx, [r14+0FC0h]                                               ; +0x82, 0x140224d02\ncall    cs:?removeObjectForKey@CCDictionary@cocos2d@@QEAAX_J@Z; cocos2d::CCDictionary::removeObjectForKey(__int64) ; +0x89, 0x140224d09\nmov     rcx, rbp                                                       ; +0x8f, 0x140224d0f\nmov     [rbx+370h], r15d                                               ; +0x92, 0x140224d12\ninc     edi                                                            ; +0x99, 0x140224d19\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x9b, 0x140224d1b\ncmp     edi, eax                                                       ; +0xa1, 0x140224d21\njb      short loc_140224CB5                                            ; +0xa3, 0x140224d23\nmov     rsi, [rsp+38h+arg_8]                                           ; +0xa5, 0x140224d25\nmov     rbx, [rsp+38h+arg_0]                                           ; +0xaa, 0x140224d2a\nmov     rbp, [rsp+38h+arg_10]                                          ; +0xaf, 0x140224d2f\nadd     rsp, 20h                                                       ; +0xb4, 0x140224d34\npop     r15                                                            ; +0xb8, 0x140224d38\npop     r14                                                            ; +0xba, 0x140224d3a\npop     rdi                                                            ; +0xbc, 0x140224d3c\nretn                                                                   ; +0xbd, 0x140224d3d", "xrefs": ["EditorUI::onUngroupSticky @ 0x140112948", "GJBaseGameLayer::groupStickyObjects @ 0x140224c72", "GJBaseGameLayer::assignNewStickyGroups @ 0x140224e20", "<???> @ 0x14068011c", "<???> @ 0x14068012c", "<???> @ 0x1406cd788"], "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"}