{"type": "func", "start": 5373266560, "end": 5373266831, "name": "SetupSmartTemplateLayer::create", "pseudocode": "// \n// SetupSmartTemplateLayer::create from 0x140458a80 to 0x140458b8f (271 bytes)\n// \n// 5 xrefs:\n// > LevelBrowserLayer::onNew @ 0x1402cdd00\n// > LevelBrowserLayer::cellPerformedAction @ 0x1402cfd8d\n// > LevelListLayer::cellPerformedAction @ 0x140307049\n// > BrowseSmartTemplateLayer::onBack @ 0x14045b410\n// > <???> @ 0x1406daa84\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\nSetupSmartTemplateLayer *SetupSmartTemplateLayer::create(GJSmartTemplate *a1)\n{\n  SetupSmartTemplateLayer *v2; // rdi\n\n  v2 = (SetupSmartTemplateLayer *)operator new(0x2A0u);\n  FLAlertLayer::FLAlertLayer(v2);\n  v2->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable = (SetupSmartTemplateLayer_vtbl *)&SetupSmartTemplateLayer::`vftable';\n  v2->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCTouchDelegate::__vftable = (cocos2d::CCTouchDelegate_vtbl *)&SetupSmartTemplateLayer::`vftable';\n  v2->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCAccelerometerDelegate::__vftable = (cocos2d::CCAccelerometerDelegate_vtbl *)&SetupSmartTemplateLayer::`vftable';\n  v2->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCKeypadDelegate::__vftable = (cocos2d::CCKeypadDelegate_vtbl *)&SetupSmartTemplateLayer::`vftable';\n  v2->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCKeyboardDelegate::__vftable = (cocos2d::CCKeyboardDelegate_vtbl *)&SetupSmartTemplateLayer::`vftable';\n  v2->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCMouseDelegate::__vftable = (cocos2d::CCMouseDelegate_vtbl *)&SetupSmartTemplateLayer::`vftable';\n  v2->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCRGBAProtocol::__vftable = (cocos2d::CCRGBAProtocol_vtbl *)&SetupSmartTemplateLayer::`vftable';\n  v2->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCBlendProtocol::__vftable = (cocos2d::CCBlendProtocol_vtbl *)&SetupSmartTemplateLayer::`vftable';\n  v2->TextInputDelegate::__vftable = (TextInputDelegate_vtbl *)&SetupSmartTemplateLayer::`vftable';\n  v2->FLAlertLayerProtocol::__vftable = (FLAlertLayerProtocol_vtbl *)&SetupSmartTemplateLayer::`vftable';\n  v2->m_smartTemplate = nullptr;\n  v2->m_nameInput = nullptr;\n  v2->m_unk298 = nullptr;\n  if ( SetupSmartTemplateLayer::init(v2, a1) )\n  {\n    cocos2d::CCObject::autorelease(v2);\n    return v2;\n  }\n  else\n  {\n    ((void (__fastcall *)(SetupSmartTemplateLayer *, __int64))v2->~SetupSmartTemplateLayer)(v2, 1);\n    return nullptr;\n  }\n}", "assembly": "; \n; SetupSmartTemplateLayer::create from 0x140458a80 to 0x140458b8f (271 bytes)\n; \n; 5 xrefs:\n; > LevelBrowserLayer::onNew @ 0x1402cdd00\n; > LevelBrowserLayer::cellPerformedAction @ 0x1402cfd8d\n; > LevelListLayer::cellPerformedAction @ 0x140307049\n; > BrowseSmartTemplateLayer::onBack @ 0x14045b410\n; > <???> @ 0x1406daa84\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, 0x140458a80\npush    rdi                                                            ; +0x5, 0x140458a85\nsub     rsp, 20h                                                       ; +0x6, 0x140458a86\nmov     rbx, rcx                                                       ; +0xa, 0x140458a8a\nmov     ecx, 2A0h; Size                                                ; +0xd, 0x140458a8d\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x12, 0x140458a92\nmov     rdi, rax                                                       ; +0x17, 0x140458a97\nmov     [rsp+28h+arg_8], rax                                           ; +0x1a, 0x140458a9a\nmov     rcx, rax                                                       ; +0x1f, 0x140458a9f\ncall    FLAlertLayer__FLAlertLayer                                     ; +0x22, 0x140458aa2\nlea     rax, ??_7SetupSmartTemplateLayer@@6B@; const SetupSmartTemplateLayer::`vftable' ; +0x27, 0x140458aa7\nmov     [rdi], rax                                                     ; +0x2e, 0x140458aae\nlea     rax, ??_7SetupSmartTemplateLayer@@6B@_0; const SetupSmartTemplateLayer::`vftable' ; +0x31, 0x140458ab1\nmov     [rdi+140h], rax                                                ; +0x38, 0x140458ab8\nlea     rax, ??_7SetupSmartTemplateLayer@@6B@_1; const SetupSmartTemplateLayer::`vftable' ; +0x3f, 0x140458abf\nmov     [rdi+148h], rax                                                ; +0x46, 0x140458ac6\nlea     rax, ??_7SetupSmartTemplateLayer@@6B@_2; const SetupSmartTemplateLayer::`vftable' ; +0x4d, 0x140458acd\nmov     [rdi+150h], rax                                                ; +0x54, 0x140458ad4\nlea     rax, ??_7SetupSmartTemplateLayer@@6B@_3; const SetupSmartTemplateLayer::`vftable' ; +0x5b, 0x140458adb\nmov     [rdi+158h], rax                                                ; +0x62, 0x140458ae2\nlea     rax, ??_7SetupSmartTemplateLayer@@6B@_4; const SetupSmartTemplateLayer::`vftable' ; +0x69, 0x140458ae9\nmov     [rdi+160h], rax                                                ; +0x70, 0x140458af0\nlea     rax, ??_7SetupSmartTemplateLayer@@6B@_5; const SetupSmartTemplateLayer::`vftable' ; +0x77, 0x140458af7\nmov     [rdi+198h], rax                                                ; +0x7e, 0x140458afe\nlea     rax, ??_7SetupSmartTemplateLayer@@6B@_6; const SetupSmartTemplateLayer::`vftable' ; +0x85, 0x140458b05\nmov     [rdi+1B0h], rax                                                ; +0x8c, 0x140458b0c\nlea     rax, ??_7SetupSmartTemplateLayer@@6B@_7; const SetupSmartTemplateLayer::`vftable' ; +0x93, 0x140458b13\nmov     [rdi+278h], rax                                                ; +0x9a, 0x140458b1a\nlea     rax, ??_7SetupSmartTemplateLayer@@6B@_8; const SetupSmartTemplateLayer::`vftable' ; +0xa1, 0x140458b21\nmov     [rdi+280h], rax                                                ; +0xa8, 0x140458b28\nmov     qword ptr [rdi+288h], 0                                        ; +0xaf, 0x140458b2f\nmov     qword ptr [rdi+290h], 0                                        ; +0xba, 0x140458b3a\nmov     qword ptr [rdi+298h], 0                                        ; +0xc5, 0x140458b45\nmov     rdx, rbx                                                       ; +0xd0, 0x140458b50\nmov     rcx, rdi                                                       ; +0xd3, 0x140458b53\ncall    SetupSmartTemplateLayer__init                                  ; +0xd6, 0x140458b56\nmov     rcx, rdi                                                       ; +0xdb, 0x140458b5b\ntest    al, al                                                         ; +0xde, 0x140458b5e\njz      short loc_140458B76                                            ; +0xe0, 0x140458b60\ncall    cs:?autorelease@CCObject@cocos2d@@QEAAPEAV12@XZ; cocos2d::CCObject::autorelease(void) ; +0xe2, 0x140458b62\nmov     rax, rdi                                                       ; +0xe8, 0x140458b68\nmov     rbx, [rsp+28h+arg_0]                                           ; +0xeb, 0x140458b6b\nadd     rsp, 20h                                                       ; +0xf0, 0x140458b70\npop     rdi                                                            ; +0xf4, 0x140458b74\nretn                                                                   ; +0xf5, 0x140458b75\nmov     r8, [rdi]                                                      ; +0xf6, 0x140458b76\nmov     edx, 1                                                         ; +0xf9, 0x140458b79\ncall    qword ptr [r8+8]                                               ; +0xfe, 0x140458b7e\nxor     eax, eax                                                       ; +0x102, 0x140458b82\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x104, 0x140458b84\nadd     rsp, 20h                                                       ; +0x109, 0x140458b89\npop     rdi                                                            ; +0x10d, 0x140458b8d\nretn                                                                   ; +0x10e, 0x140458b8e", "xrefs": ["LevelBrowserLayer::onNew @ 0x1402cdd00", "LevelBrowserLayer::cellPerformedAction @ 0x1402cfd8d", "LevelListLayer::cellPerformedAction @ 0x140307049", "BrowseSmartTemplateLayer::onBack @ 0x14045b410", "<???> @ 0x1406daa84"], "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"}