{"type": "func", "start": 4296917136, "end": 4296917297, "name": "CustomizeObjectSettingsPopup::onClose", "pseudocode": "// \n// CustomizeObjectSettingsPopup::onClose from 0x1001dc090 to 0x1001dc131 (161 bytes)\n// \n// 1 xrefs:\n// > <???> @ 0x100ade210\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 12:26:26 +0000\n// \n\n__int64 __fastcall CustomizeObjectSettingsPopup::onClose(__int64 a1, __int64 a2)\n{\n  char v2; // r15\n  __int64 v3; // rax\n  __int64 v4; // rax\n  __int64 result; // rax\n  __int64 v6; // rax\n  __int64 v7; // rax\n\n  if ( *(_QWORD *)(a1 + 1016) )\n  {\n    v2 = *(_BYTE *)(a1 + 1024);\n    v3 = cocos2d::CCDirector::sharedDirector(a1, a2);\n    v4 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v3 + 160LL))(v3);\n    cocos2d::CCTouchDispatcher::unregisterForcePrio(v4, a1);\n    result = SetupTriggerPopup::onClose(a1, a2);\n    if ( v2 == 1 )\n      return CustomizeObjectLayer::recreateLayer(*(_QWORD *)(a1 + 1016), a2);\n  }\n  else\n  {\n    v6 = cocos2d::CCDirector::sharedDirector(a1, a2);\n    v7 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v6 + 160LL))(v6);\n    cocos2d::CCTouchDispatcher::unregisterForcePrio(v7, a1);\n    return SetupTriggerPopup::onClose(a1, a2);\n  }\n  return result;\n}", "assembly": "; \n; CustomizeObjectSettingsPopup::onClose from 0x1001dc090 to 0x1001dc131 (161 bytes)\n; \n; 1 xrefs:\n; > <???> @ 0x100ade210\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 12:26:26 +0000\n; \npush    rbp                                                            ; +0x0, 0x1001dc090\nmov     rbp, rsp                                                       ; +0x1, 0x1001dc091\npush    r15                                                            ; +0x4, 0x1001dc094\npush    r14                                                            ; +0x6, 0x1001dc096\npush    rbx                                                            ; +0x8, 0x1001dc098\npush    rax                                                            ; +0x9, 0x1001dc099\nmov     r14, rsi                                                       ; +0xa, 0x1001dc09a\nmov     rbx, rdi                                                       ; +0xd, 0x1001dc09d\ncmp     qword ptr [rdi+3F8h], 0                                        ; +0x10, 0x1001dc0a0\njz      short loc_1001DC0F5                                            ; +0x18, 0x1001dc0a8\nmovzx   r15d, byte ptr [rbx+400h]                                      ; +0x1a, 0x1001dc0aa\ncall    cocos2d__CCDirector__sharedDirector                            ; +0x22, 0x1001dc0b2\nmov     rcx, [rax]                                                     ; +0x27, 0x1001dc0b7\nmov     rdi, rax                                                       ; +0x2a, 0x1001dc0ba\ncall    qword ptr [rcx+0A0h]                                           ; +0x2d, 0x1001dc0bd\nmov     rdi, rax                                                       ; +0x33, 0x1001dc0c3\nmov     rsi, rbx                                                       ; +0x36, 0x1001dc0c6\ncall    cocos2d__CCTouchDispatcher__unregisterForcePrio                ; +0x39, 0x1001dc0c9\nmov     rdi, rbx                                                       ; +0x3e, 0x1001dc0ce\nmov     rsi, r14                                                       ; +0x41, 0x1001dc0d1\ncall    SetupTriggerPopup__onClose                                     ; +0x44, 0x1001dc0d4\ncmp     r15b, 1                                                        ; +0x49, 0x1001dc0d9\njnz     short loc_1001DC126                                            ; +0x4d, 0x1001dc0dd\nmov     rdi, [rbx+3F8h]                                                ; +0x4f, 0x1001dc0df\nadd     rsp, 8                                                         ; +0x56, 0x1001dc0e6\npop     rbx                                                            ; +0x5a, 0x1001dc0ea\npop     r14                                                            ; +0x5b, 0x1001dc0eb\npop     r15                                                            ; +0x5d, 0x1001dc0ed\npop     rbp                                                            ; +0x5f, 0x1001dc0ef\njmp     CustomizeObjectLayer__recreateLayer                            ; +0x60, 0x1001dc0f0\ncall    cocos2d__CCDirector__sharedDirector                            ; +0x65, 0x1001dc0f5\nmov     rcx, [rax]                                                     ; +0x6a, 0x1001dc0fa\nmov     rdi, rax                                                       ; +0x6d, 0x1001dc0fd\ncall    qword ptr [rcx+0A0h]                                           ; +0x70, 0x1001dc100\nmov     rdi, rax                                                       ; +0x76, 0x1001dc106\nmov     rsi, rbx                                                       ; +0x79, 0x1001dc109\ncall    cocos2d__CCTouchDispatcher__unregisterForcePrio                ; +0x7c, 0x1001dc10c\nmov     rdi, rbx                                                       ; +0x81, 0x1001dc111\nmov     rsi, r14                                                       ; +0x84, 0x1001dc114\nadd     rsp, 8                                                         ; +0x87, 0x1001dc117\npop     rbx                                                            ; +0x8b, 0x1001dc11b\npop     r14                                                            ; +0x8c, 0x1001dc11c\npop     r15                                                            ; +0x8e, 0x1001dc11e\npop     rbp                                                            ; +0x90, 0x1001dc120\njmp     SetupTriggerPopup__onClose                                     ; +0x91, 0x1001dc121\nadd     rsp, 8                                                         ; +0x96, 0x1001dc126\npop     rbx                                                            ; +0x9a, 0x1001dc12a\npop     r14                                                            ; +0x9b, 0x1001dc12b\npop     r15                                                            ; +0x9d, 0x1001dc12d\npop     rbp                                                            ; +0x9f, 0x1001dc12f\nretn                                                                   ; +0xa0, 0x1001dc130", "xrefs": ["<???> @ 0x100ade210"], "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"}