{"type": "func", "start": 4295334024, "end": 4295334188, "name": "CustomizeObjectSettingsPopup::onClose", "pseudocode": "// \n// CustomizeObjectSettingsPopup::onClose from 0x100059888 to 0x10005992c (164 bytes)\n// \n// 1 xrefs:\n// > <???> @ 0x1008be558\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 10:57:47 +0000\n// \n\n__int64 __fastcall CustomizeObjectSettingsPopup::onClose(__int64 a1, __int64 a2)\n{\n  int v4; // w21\n  __int64 v5; // x0\n  __int64 v6; // x0\n  __int64 result; // x0\n  __int64 v8; // x0\n  __int64 v9; // x0\n\n  if ( *(_QWORD *)(a1 + 1016) )\n  {\n    v4 = *(unsigned __int8 *)(a1 + 1024);\n    v5 = cocos2d::CCDirector::sharedDirector(a1);\n    v6 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v5 + 160LL))(v5);\n    cocos2d::CCTouchDispatcher::unregisterForcePrio(v6, a1);\n    result = SetupTriggerPopup::onClose(a1, a2);\n    if ( v4 == 1 )\n      return sub_100058C00(*(_QWORD *)(a1 + 1016));\n  }\n  else\n  {\n    v8 = cocos2d::CCDirector::sharedDirector(a1);\n    v9 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v8 + 160LL))(v8);\n    cocos2d::CCTouchDispatcher::unregisterForcePrio(v9, a1);\n    return SetupTriggerPopup::onClose(a1, a2);\n  }\n  return result;\n}", "assembly": "; \n; CustomizeObjectSettingsPopup::onClose from 0x100059888 to 0x10005992c (164 bytes)\n; \n; 1 xrefs:\n; > <???> @ 0x1008be558\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 10:57:47 +0000\n; \nSTP             X22, X21, [SP,#-0x10+var_20]!                          ; +0x0, 0x100059888\nSTP             X20, X19, [SP,#0x20+var_10]                            ; +0x4, 0x10005988c\nSTP             X29, X30, [SP,#0x20+var_s0]                            ; +0x8, 0x100059890\nADD             X29, SP, #0x20                                         ; +0xc, 0x100059894\nMOV             X20, X1                                                ; +0x10, 0x100059898\nMOV             X19, X0                                                ; +0x14, 0x10005989c\nLDR             X8, [X0,#0x3F8]                                        ; +0x18, 0x1000598a0\nCBZ             X8, loc_1000598EC                                      ; +0x1c, 0x1000598a4\nLDRB            W21, [X19,#0x400]                                      ; +0x20, 0x1000598a8\nBL              cocos2d__CCDirector__sharedDirector                    ; +0x24, 0x1000598ac\nLDR             X8, [X0]                                               ; +0x28, 0x1000598b0\nLDR             X8, [X8,#0xA0]                                         ; +0x2c, 0x1000598b4\nBLR             X8                                                     ; +0x30, 0x1000598b8\nMOV             X1, X19                                                ; +0x34, 0x1000598bc\nBL              cocos2d__CCTouchDispatcher__unregisterForcePrio        ; +0x38, 0x1000598c0\nMOV             X0, X19                                                ; +0x3c, 0x1000598c4\nMOV             X1, X20                                                ; +0x40, 0x1000598c8\nBL              SetupTriggerPopup__onClose                             ; +0x44, 0x1000598cc\nCMP             W21, #1                                                ; +0x48, 0x1000598d0\nB.NE            loc_10005991C                                          ; +0x4c, 0x1000598d4\nLDR             X0, [X19,#0x3F8]                                       ; +0x50, 0x1000598d8\nLDP             X29, X30, [SP,#0x20+var_s0]                            ; +0x54, 0x1000598dc\nLDP             X20, X19, [SP,#0x20+var_10]                            ; +0x58, 0x1000598e0\nLDP             X22, X21, [SP+0x20+var_20],#0x30                       ; +0x5c, 0x1000598e4\nB               sub_100058C00                                          ; +0x60, 0x1000598e8\nBL              cocos2d__CCDirector__sharedDirector                    ; +0x64, 0x1000598ec\nLDR             X8, [X0]                                               ; +0x68, 0x1000598f0\nLDR             X8, [X8,#0xA0]                                         ; +0x6c, 0x1000598f4\nBLR             X8                                                     ; +0x70, 0x1000598f8\nMOV             X1, X19                                                ; +0x74, 0x1000598fc\nBL              cocos2d__CCTouchDispatcher__unregisterForcePrio        ; +0x78, 0x100059900\nMOV             X0, X19                                                ; +0x7c, 0x100059904\nMOV             X1, X20                                                ; +0x80, 0x100059908\nLDP             X29, X30, [SP,#0x20+var_s0]                            ; +0x84, 0x10005990c\nLDP             X20, X19, [SP,#0x20+var_10]                            ; +0x88, 0x100059910\nLDP             X22, X21, [SP+0x20+var_20],#0x30                       ; +0x8c, 0x100059914\nB               SetupTriggerPopup__onClose                             ; +0x90, 0x100059918\nLDP             X29, X30, [SP,#0x20+var_s0]                            ; +0x94, 0x10005991c\nLDP             X20, X19, [SP,#0x20+var_10]                            ; +0x98, 0x100059920\nLDP             X22, X21, [SP+0x20+var_20],#0x30                       ; +0x9c, 0x100059924\nRET                                                                    ; +0xa0, 0x100059928", "xrefs": ["<???> @ 0x1008be558"], "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"}