{"type": "func", "start": 4297649860, "end": 4297650020, "name": "GJBaseGameLayer::ungroupStickyObjects", "pseudocode": "// \n// GJBaseGameLayer::ungroupStickyObjects from 0x10028eec4 to 0x10028ef64 (160 bytes)\n// \n// 3 xrefs:\n// > GJBaseGameLayer::groupStickyObjects @ 0x10028ee40\n// > GJBaseGameLayer::assignNewStickyGroups @ 0x10028f02c\n// > EditorUI::onUngroupSticky @ 0x100471718\n// \n// This function is hookable on this platform (idp: arm, 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:02:02 +0000\n// \n\n__int64 __fastcall GJBaseGameLayer::ungroupStickyObjects(__int64 a1, __int64 a2)\n{\n  __int64 result; // x0\n  __int64 v5; // x21\n  __int64 v6; // x22\n  __int64 v7; // x0\n  __int64 v8; // x23\n\n  result = sub_1002E757C(a2);\n  if ( (_DWORD)result )\n  {\n    v5 = 0;\n    do\n    {\n      v6 = sub_1002E75A0(a2, v5);\n      cocos2d::CCDictionary::objectForKey_1(*(_QWORD *)(a1 + 3880), *(int *)(v6 + 872));\n      if ( v7 )\n      {\n        v8 = v7;\n        sub_1002E765C(v7, v6, 1);\n        if ( !(unsigned int)sub_1002E757C(v8) )\n          cocos2d::CCDictionary::removeObjectForKey_1(*(_QWORD *)(a1 + 3880), *(int *)(v6 + 872));\n      }\n      *(_DWORD *)(v6 + 872) = 0;\n      v5 = (unsigned int)(v5 + 1);\n      result = sub_1002E757C(a2);\n    }\n    while ( (unsigned int)v5 < (unsigned int)result );\n  }\n  return result;\n}", "assembly": "; \n; GJBaseGameLayer::ungroupStickyObjects from 0x10028eec4 to 0x10028ef64 (160 bytes)\n; \n; 3 xrefs:\n; > GJBaseGameLayer::groupStickyObjects @ 0x10028ee40\n; > GJBaseGameLayer::assignNewStickyGroups @ 0x10028f02c\n; > EditorUI::onUngroupSticky @ 0x100471718\n; \n; This function is hookable on this platform (idp: arm, 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:02:02 +0000\n; \nSTP             X24, X23, [SP,#-0x10+var_30]!                          ; +0x0, 0x10028eec4\nSTP             X22, X21, [SP,#0x30+var_20]                            ; +0x4, 0x10028eec8\nSTP             X20, X19, [SP,#0x30+var_10]                            ; +0x8, 0x10028eecc\nSTP             X29, X30, [SP,#0x30+var_s0]                            ; +0xc, 0x10028eed0\nADD             X29, SP, #0x30                                         ; +0x10, 0x10028eed4\nMOV             X19, X1                                                ; +0x14, 0x10028eed8\nMOV             X20, X0                                                ; +0x18, 0x10028eedc\nMOV             X0, X1                                                 ; +0x1c, 0x10028eee0\nBL              sub_1002E757C                                          ; +0x20, 0x10028eee4\nCBZ             W0, loc_10028EF50                                      ; +0x24, 0x10028eee8\nMOV             W21, #0                                                ; +0x28, 0x10028eeec\nMOV             X0, X19                                                ; +0x2c, 0x10028eef0\nMOV             X1, X21                                                ; +0x30, 0x10028eef4\nBL              sub_1002E75A0                                          ; +0x34, 0x10028eef8\nMOV             X22, X0                                                ; +0x38, 0x10028eefc\nLDR             X0, [X20,#0xF28]                                       ; +0x3c, 0x10028ef00\nLDRSW           X1, [X22,#0x368]                                       ; +0x40, 0x10028ef04\nBL              cocos2d__CCDictionary__objectForKey_1                  ; +0x44, 0x10028ef08\nCBZ             X0, loc_10028EF38                                      ; +0x48, 0x10028ef0c\nMOV             X23, X0                                                ; +0x4c, 0x10028ef10\nMOV             X1, X22                                                ; +0x50, 0x10028ef14\nMOV             W2, #1                                                 ; +0x54, 0x10028ef18\nBL              sub_1002E765C                                          ; +0x58, 0x10028ef1c\nMOV             X0, X23                                                ; +0x5c, 0x10028ef20\nBL              sub_1002E757C                                          ; +0x60, 0x10028ef24\nCBNZ            W0, loc_10028EF38                                      ; +0x64, 0x10028ef28\nLDR             X0, [X20,#0xF28]                                       ; +0x68, 0x10028ef2c\nLDRSW           X1, [X22,#0x368]                                       ; +0x6c, 0x10028ef30\nBL              cocos2d__CCDictionary__removeObjectForKey_1            ; +0x70, 0x10028ef34\nSTR             WZR, [X22,#0x368]                                      ; +0x74, 0x10028ef38\nADD             W21, W21, #1                                           ; +0x78, 0x10028ef3c\nMOV             X0, X19                                                ; +0x7c, 0x10028ef40\nBL              sub_1002E757C                                          ; +0x80, 0x10028ef44\nCMP             W21, W0                                                ; +0x84, 0x10028ef48\nB.CC            loc_10028EEF0                                          ; +0x88, 0x10028ef4c\nLDP             X29, X30, [SP,#0x30+var_s0]                            ; +0x8c, 0x10028ef50\nLDP             X20, X19, [SP,#0x30+var_10]                            ; +0x90, 0x10028ef54\nLDP             X22, X21, [SP,#0x30+var_20]                            ; +0x94, 0x10028ef58\nLDP             X24, X23, [SP+0x30+var_30],#0x40                       ; +0x98, 0x10028ef5c\nRET                                                                    ; +0x9c, 0x10028ef60", "xrefs": ["GJBaseGameLayer::groupStickyObjects @ 0x10028ee40", "GJBaseGameLayer::assignNewStickyGroups @ 0x10028f02c", "EditorUI::onUngroupSticky @ 0x100471718"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "arm", "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"}