{"type": "func", "start": 5373368192, "end": 5373368505, "name": "SetupArtSwitchPopup::create", "pseudocode": "// \n// SetupArtSwitchPopup::create from 0x140471780 to 0x1404718b9 (313 bytes)\n// \n// 2 xrefs:\n// > EditorUI::editObject @ 0x14011dbc1\n// > <???> @ 0x1406db318\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\n// Hidden C++ exception states: #wind=1\nSetupArtSwitchPopup *SetupArtSwitchPopup::create(ArtTriggerGameObject *a1, cocos2d::CCArray *a2, int a3)\n{\n  SetupArtSwitchPopup *v6; // r14\n\n  v6 = (SetupArtSwitchPopup *)operator new(0x3C0u);\n  SetupTriggerPopup::SetupTriggerPopup(v6);\n  v6->SetupTriggerPopup::FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable = (SetupArtSwitchPopup_vtbl *)&SetupArtSwitchPopup::`vftable';\n  v6->SetupTriggerPopup::FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCTouchDelegate::__vftable = (cocos2d::CCTouchDelegate_vtbl *)&SetupArtSwitchPopup::`vftable';\n  v6->SetupTriggerPopup::FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCAccelerometerDelegate::__vftable = (cocos2d::CCAccelerometerDelegate_vtbl *)&SetupArtSwitchPopup::`vftable';\n  v6->SetupTriggerPopup::FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCKeypadDelegate::__vftable = (cocos2d::CCKeypadDelegate_vtbl *)&SetupArtSwitchPopup::`vftable';\n  v6->SetupTriggerPopup::FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCKeyboardDelegate::__vftable = (cocos2d::CCKeyboardDelegate_vtbl *)&SetupArtSwitchPopup::`vftable';\n  v6->SetupTriggerPopup::FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCMouseDelegate::__vftable = (cocos2d::CCMouseDelegate_vtbl *)&SetupArtSwitchPopup::`vftable';\n  v6->SetupTriggerPopup::FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCRGBAProtocol::__vftable = (cocos2d::CCRGBAProtocol_vtbl *)&SetupArtSwitchPopup::`vftable';\n  v6->SetupTriggerPopup::FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCBlendProtocol::__vftable = (cocos2d::CCBlendProtocol_vtbl *)&SetupArtSwitchPopup::`vftable';\n  v6->SetupTriggerPopup::TextInputDelegate::__vftable = (TextInputDelegate_vtbl *)&SetupArtSwitchPopup::`vftable';\n  v6->SetupTriggerPopup::ConfigureValuePopupDelegate::__vftable = (ConfigureValuePopupDelegate_vtbl *)&SetupArtSwitchPopup::`vftable';\n  v6->SetupTriggerPopup::SliderDelegate::__vftable = (SliderDelegate_vtbl *)&SetupArtSwitchPopup::`vftable';\n  v6->SelectArtDelegate::__vftable = (SelectArtDelegate_vtbl *)&SetupArtSwitchPopup::`vftable';\n  v6->m_artType = Background;\n  v6->m_artSprite = nullptr;\n  if ( SetupArtSwitchPopup::init(v6, a1, a2, a3) )\n  {\n    cocos2d::CCObject::autorelease(v6);\n    return v6;\n  }\n  else\n  {\n    ((void (__fastcall *)(SetupArtSwitchPopup *, __int64))v6->~SetupArtSwitchPopup)(v6, 1);\n    return nullptr;\n  }\n}", "assembly": "; \n; SetupArtSwitchPopup::create from 0x140471780 to 0x1404718b9 (313 bytes)\n; \n; 2 xrefs:\n; > EditorUI::editObject @ 0x14011dbc1\n; > <???> @ 0x1406db318\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_0], rbx                                               ; +0x0, 0x140471780\nmov     [rsp+arg_8], rsi                                               ; +0x5, 0x140471785\nmov     [rsp+arg_10], rdi                                              ; +0xa, 0x14047178a\npush    r14                                                            ; +0xf, 0x14047178f\nsub     rsp, 20h                                                       ; +0x11, 0x140471791\nmov     ebx, r8d                                                       ; +0x15, 0x140471795\nmov     rdi, rdx                                                       ; +0x18, 0x140471798\nmov     rsi, rcx                                                       ; +0x1b, 0x14047179b\nmov     ecx, 3C0h; Size                                                ; +0x1e, 0x14047179e\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x23, 0x1404717a3\nmov     r14, rax                                                       ; +0x28, 0x1404717a8\nmov     [rsp+28h+arg_18], rax                                          ; +0x2b, 0x1404717ab\nmov     rcx, rax                                                       ; +0x30, 0x1404717b0\ncall    SetupTriggerPopup__SetupTriggerPopup                           ; +0x33, 0x1404717b3\nlea     rax, ??_7SetupArtSwitchPopup@@6B@; const SetupArtSwitchPopup::`vftable' ; +0x38, 0x1404717b8\nmov     [r14], rax                                                     ; +0x3f, 0x1404717bf\nlea     rax, ??_7SetupArtSwitchPopup@@6B@_0; const SetupArtSwitchPopup::`vftable' ; +0x42, 0x1404717c2\nmov     [r14+140h], rax                                                ; +0x49, 0x1404717c9\nlea     rax, ??_7SetupArtSwitchPopup@@6B@_1; const SetupArtSwitchPopup::`vftable' ; +0x50, 0x1404717d0\nmov     [r14+148h], rax                                                ; +0x57, 0x1404717d7\nlea     rax, ??_7SetupArtSwitchPopup@@6B@_2; const SetupArtSwitchPopup::`vftable' ; +0x5e, 0x1404717de\nmov     [r14+150h], rax                                                ; +0x65, 0x1404717e5\nlea     rax, ??_7SetupArtSwitchPopup@@6B@_3; const SetupArtSwitchPopup::`vftable' ; +0x6c, 0x1404717ec\nmov     [r14+158h], rax                                                ; +0x73, 0x1404717f3\nlea     rax, ??_7SetupArtSwitchPopup@@6B@_4; const SetupArtSwitchPopup::`vftable' ; +0x7a, 0x1404717fa\nmov     [r14+160h], rax                                                ; +0x81, 0x140471801\nlea     rax, ??_7SetupArtSwitchPopup@@6B@_5; const SetupArtSwitchPopup::`vftable' ; +0x88, 0x140471808\nmov     [r14+198h], rax                                                ; +0x8f, 0x14047180f\nlea     rax, ??_7SetupArtSwitchPopup@@6B@_6; const SetupArtSwitchPopup::`vftable' ; +0x96, 0x140471816\nmov     [r14+1B0h], rax                                                ; +0x9d, 0x14047181d\nlea     rax, ??_7SetupArtSwitchPopup@@6B@_7; const SetupArtSwitchPopup::`vftable' ; +0xa4, 0x140471824\nmov     [r14+278h], rax                                                ; +0xab, 0x14047182b\nlea     rax, ??_7SetupArtSwitchPopup@@6B@_8; const SetupArtSwitchPopup::`vftable' ; +0xb2, 0x140471832\nmov     [r14+280h], rax                                                ; +0xb9, 0x140471839\nlea     rax, ??_7SetupArtSwitchPopup@@6B@_9; const SetupArtSwitchPopup::`vftable' ; +0xc0, 0x140471840\nmov     [r14+288h], rax                                                ; +0xc7, 0x140471847\nlea     rax, ??_7SetupArtSwitchPopup@@6B@_10; const SetupArtSwitchPopup::`vftable' ; +0xce, 0x14047184e\nmov     [r14+3A8h], rax                                                ; +0xd5, 0x140471855\nmov     dword ptr [r14+3B0h], 0                                        ; +0xdc, 0x14047185c\nmov     qword ptr [r14+3B8h], 0                                        ; +0xe7, 0x140471867\nmov     r9d, ebx                                                       ; +0xf2, 0x140471872\nmov     r8, rdi                                                        ; +0xf5, 0x140471875\nmov     rdx, rsi                                                       ; +0xf8, 0x140471878\nmov     rcx, r14                                                       ; +0xfb, 0x14047187b\ncall    SetupArtSwitchPopup__init                                      ; +0xfe, 0x14047187e\nmov     rcx, r14                                                       ; +0x103, 0x140471883\ntest    al, al                                                         ; +0x106, 0x140471886\njz      short loc_140471895                                            ; +0x108, 0x140471888\ncall    cs:?autorelease@CCObject@cocos2d@@QEAAPEAV12@XZ; cocos2d::CCObject::autorelease(void) ; +0x10a, 0x14047188a\nmov     rax, r14                                                       ; +0x110, 0x140471890\njmp     short loc_1404718A3                                            ; +0x113, 0x140471893\nmov     r8, [r14]                                                      ; +0x115, 0x140471895\nmov     edx, 1                                                         ; +0x118, 0x140471898\ncall    qword ptr [r8+8]                                               ; +0x11d, 0x14047189d\nxor     eax, eax                                                       ; +0x121, 0x1404718a1\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x123, 0x1404718a3\nmov     rsi, [rsp+28h+arg_8]                                           ; +0x128, 0x1404718a8\nmov     rdi, [rsp+28h+arg_10]                                          ; +0x12d, 0x1404718ad\nadd     rsp, 20h                                                       ; +0x132, 0x1404718b2\npop     r14                                                            ; +0x136, 0x1404718b6\nretn                                                                   ; +0x138, 0x1404718b8", "xrefs": ["EditorUI::editObject @ 0x14011dbc1", "<???> @ 0x1406db318"], "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"}