{"type": "func", "start": 5370028656, "end": 5370028991, "name": "CustomizeObjectLayer::onSettings", "pseudocode": "// \n// CustomizeObjectLayer::onSettings from 0x140142270 to 0x1401423bf (335 bytes)\n// \n// 2 xrefs:\n// > CustomizeObjectLayer::init @ 0x14013fc8f\n// > <???> @ 0x140917348\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:27:10 +0000\n// \n\n// Hidden C++ exception states: #wind=1\n__int64 __fastcall CustomizeObjectLayer::onSettings(__int64 a1)\n{\n  __int64 v2; // rbx\n  __int64 v3; // rdi\n  _QWORD *v4; // r14\n  __int64 (__fastcall *v5)(_QWORD *); // rdx\n\n  v2 = *(_QWORD *)(a1 + 696);\n  v3 = *(_QWORD *)(a1 + 688);\n  v4 = operator new(0x3F8u);\n  SetupTriggerPopup::SetupTriggerPopup((__int64)v4);\n  *v4 = &CustomizeObjectSettingsPopup::`vftable';\n  v4[40] = &CustomizeObjectSettingsPopup::`vftable';\n  v4[41] = &CustomizeObjectSettingsPopup::`vftable';\n  v4[42] = &CustomizeObjectSettingsPopup::`vftable';\n  v4[43] = &CustomizeObjectSettingsPopup::`vftable';\n  v4[44] = &CustomizeObjectSettingsPopup::`vftable';\n  v4[51] = &CustomizeObjectSettingsPopup::`vftable';\n  v4[54] = &CustomizeObjectSettingsPopup::`vftable';\n  v4[68] = &CustomizeObjectSettingsPopup::`vftable';\n  v4[83] = &CustomizeObjectSettingsPopup::`vftable';\n  v4[84] = &CustomizeObjectSettingsPopup::`vftable';\n  v4[125] = 0;\n  *((_BYTE *)v4 + 1008) = 0;\n  if ( (unsigned __int8)CustomizeObjectSettingsPopup::init(v4, v3, v2, a1) )\n  {\n    cocos2d::CCObject::autorelease((cocos2d::CCObject *)v4);\n  }\n  else\n  {\n    (*(void (__fastcall **)(_QWORD *, __int64))(*v4 + 8LL))(v4, 1);\n    v4 = nullptr;\n  }\n  v5 = *(__int64 (__fastcall **)(_QWORD *))(*v4 + 1064LL);\n  if ( (char *)v5 == (char *)SetupTriggerPopup::show )\n    return SetupTriggerPopup::show(v4);\n  else\n    return v5(v4);\n}", "assembly": "; \n; CustomizeObjectLayer::onSettings from 0x140142270 to 0x1401423bf (335 bytes)\n; \n; 2 xrefs:\n; > CustomizeObjectLayer::init @ 0x14013fc8f\n; > <???> @ 0x140917348\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:27:10 +0000\n; \nmov     [rsp+arg_8], rbx                                               ; +0x0, 0x140142270\nmov     [rsp+arg_10], rsi                                              ; +0x5, 0x140142275\nmov     [rsp+arg_18], rdi                                              ; +0xa, 0x14014227a\npush    r14                                                            ; +0xf, 0x14014227f\nsub     rsp, 20h                                                       ; +0x11, 0x140142281\nmov     rsi, rcx                                                       ; +0x15, 0x140142285\nmov     rbx, [rcx+2B8h]                                                ; +0x18, 0x140142288\nmov     rdi, [rcx+2B0h]                                                ; +0x1f, 0x14014228f\nmov     ecx, 3F8h; Size                                                ; +0x26, 0x140142296\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x2b, 0x14014229b\nmov     r14, rax                                                       ; +0x30, 0x1401422a0\nmov     [rsp+28h+arg_0], rax                                           ; +0x33, 0x1401422a3\nmov     rcx, rax                                                       ; +0x38, 0x1401422a8\ncall    SetupTriggerPopup__SetupTriggerPopup                           ; +0x3b, 0x1401422ab\nlea     rax, ??_7CustomizeObjectSettingsPopup@@6B@; const CustomizeObjectSettingsPopup::`vftable' ; +0x40, 0x1401422b0\nmov     [r14], rax                                                     ; +0x47, 0x1401422b7\nlea     rax, ??_7CustomizeObjectSettingsPopup@@6B@_0; const CustomizeObjectSettingsPopup::`vftable' ; +0x4a, 0x1401422ba\nmov     [r14+140h], rax                                                ; +0x51, 0x1401422c1\nlea     rax, ??_7CustomizeObjectSettingsPopup@@6B@_1; const CustomizeObjectSettingsPopup::`vftable' ; +0x58, 0x1401422c8\nmov     [r14+148h], rax                                                ; +0x5f, 0x1401422cf\nlea     rax, ??_7CustomizeObjectSettingsPopup@@6B@_2; const CustomizeObjectSettingsPopup::`vftable' ; +0x66, 0x1401422d6\nmov     [r14+150h], rax                                                ; +0x6d, 0x1401422dd\nlea     rax, ??_7CustomizeObjectSettingsPopup@@6B@_3; const CustomizeObjectSettingsPopup::`vftable' ; +0x74, 0x1401422e4\nmov     [r14+158h], rax                                                ; +0x7b, 0x1401422eb\nlea     rax, ??_7CustomizeObjectSettingsPopup@@6B@_4; const CustomizeObjectSettingsPopup::`vftable' ; +0x82, 0x1401422f2\nmov     [r14+160h], rax                                                ; +0x89, 0x1401422f9\nlea     rax, ??_7CustomizeObjectSettingsPopup@@6B@_5; const CustomizeObjectSettingsPopup::`vftable' ; +0x90, 0x140142300\nmov     [r14+198h], rax                                                ; +0x97, 0x140142307\nlea     rax, ??_7CustomizeObjectSettingsPopup@@6B@_6; const CustomizeObjectSettingsPopup::`vftable' ; +0x9e, 0x14014230e\nmov     [r14+1B0h], rax                                                ; +0xa5, 0x140142315\nlea     rax, ??_7CustomizeObjectSettingsPopup@@6B@_7; const CustomizeObjectSettingsPopup::`vftable' ; +0xac, 0x14014231c\nmov     [r14+220h], rax                                                ; +0xb3, 0x140142323\nlea     rax, ??_7CustomizeObjectSettingsPopup@@6B@_8; const CustomizeObjectSettingsPopup::`vftable' ; +0xba, 0x14014232a\nmov     [r14+298h], rax                                                ; +0xc1, 0x140142331\nlea     rax, ??_7CustomizeObjectSettingsPopup@@6B@_9; const CustomizeObjectSettingsPopup::`vftable' ; +0xc8, 0x140142338\nmov     [r14+2A0h], rax                                                ; +0xcf, 0x14014233f\nmov     qword ptr [r14+3E8h], 0                                        ; +0xd6, 0x140142346\nmov     byte ptr [r14+3F0h], 0                                         ; +0xe1, 0x140142351\nmov     r9, rsi                                                        ; +0xe9, 0x140142359\nmov     r8, rbx                                                        ; +0xec, 0x14014235c\nmov     rdx, rdi                                                       ; +0xef, 0x14014235f\nmov     rcx, r14                                                       ; +0xf2, 0x140142362\ncall    CustomizeObjectSettingsPopup__init                             ; +0xf5, 0x140142365\nmov     rcx, r14                                                       ; +0xfa, 0x14014236a\ntest    al, al                                                         ; +0xfd, 0x14014236d\njz      short loc_140142379                                            ; +0xff, 0x14014236f\ncall    cs:?autorelease@CCObject@cocos2d@@QEAAPEAV12@XZ; cocos2d::CCObject::autorelease(void) ; +0x101, 0x140142371\njmp     short loc_140142387                                            ; +0x107, 0x140142377\nmov     rax, [r14]                                                     ; +0x109, 0x140142379\nmov     edx, 1                                                         ; +0x10c, 0x14014237c\ncall    qword ptr [rax+8]                                              ; +0x111, 0x140142381\nxor     r14d, r14d                                                     ; +0x114, 0x140142384\nmov     rax, [r14]                                                     ; +0x117, 0x140142387\nmov     rdx, [rax+428h]                                                ; +0x11a, 0x14014238a\nlea     rax, SetupTriggerPopup__show; Merged with: SetupTriggerPopup::show, SetTextPopup::show ; +0x121, 0x140142391\nmov     rcx, r14                                                       ; +0x128, 0x140142398\ncmp     rdx, rax                                                       ; +0x12b, 0x14014239b\njnz     short loc_1401423A7                                            ; +0x12e, 0x14014239e\ncall    SetupTriggerPopup__show; Merged with: SetupTriggerPopup::show, SetTextPopup::show ; +0x130, 0x1401423a0\njmp     short loc_1401423A9                                            ; +0x135, 0x1401423a5\ncall    rdx                                                            ; +0x137, 0x1401423a7\nmov     rbx, [rsp+28h+arg_8]                                           ; +0x139, 0x1401423a9\nmov     rsi, [rsp+28h+arg_10]                                          ; +0x13e, 0x1401423ae\nmov     rdi, [rsp+28h+arg_18]                                          ; +0x143, 0x1401423b3\nadd     rsp, 20h                                                       ; +0x148, 0x1401423b8\npop     r14                                                            ; +0x14c, 0x1401423bc\nretn                                                                   ; +0x14e, 0x1401423be", "xrefs": ["CustomizeObjectLayer::init @ 0x14013fc8f", "<???> @ 0x140917348"], "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"}