{"type": "func", "start": 5373257936, "end": 5373258253, "name": "SetupSmartBlockLayer::create", "pseudocode": "// \n// SetupSmartBlockLayer::create from 0x1404568d0 to 0x140456a0d (317 bytes)\n// \n// 2 xrefs:\n// > EditorUI::editObjectSpecial @ 0x14011e8f1\n// > <???> @ 0x1406da9a0\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\nSetupSmartBlockLayer *SetupSmartBlockLayer::create(SmartGameObject *a1, cocos2d::CCArray *a2)\n{\n  SetupSmartBlockLayer *v4; // rsi\n\n  v4 = (SetupSmartBlockLayer *)operator new(0x2A8u);\n  FLAlertLayer::FLAlertLayer(v4);\n  v4->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable = (SetupSmartBlockLayer_vtbl *)&SetupSmartBlockLayer::`vftable';\n  v4->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCTouchDelegate::__vftable = (cocos2d::CCTouchDelegate_vtbl *)&SetupSmartBlockLayer::`vftable';\n  v4->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCAccelerometerDelegate::__vftable = (cocos2d::CCAccelerometerDelegate_vtbl *)&SetupSmartBlockLayer::`vftable';\n  v4->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCKeypadDelegate::__vftable = (cocos2d::CCKeypadDelegate_vtbl *)&SetupSmartBlockLayer::`vftable';\n  v4->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCKeyboardDelegate::__vftable = (cocos2d::CCKeyboardDelegate_vtbl *)&SetupSmartBlockLayer::`vftable';\n  v4->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCMouseDelegate::__vftable = (cocos2d::CCMouseDelegate_vtbl *)&SetupSmartBlockLayer::`vftable';\n  v4->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCRGBAProtocol::__vftable = (cocos2d::CCRGBAProtocol_vtbl *)&SetupSmartBlockLayer::`vftable';\n  v4->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCBlendProtocol::__vftable = (cocos2d::CCBlendProtocol_vtbl *)&SetupSmartBlockLayer::`vftable';\n  v4->TextInputDelegate::__vftable = (TextInputDelegate_vtbl *)&SetupSmartBlockLayer::`vftable';\n  v4->SelectArtDelegate::__vftable = (SelectArtDelegate_vtbl *)&SetupSmartBlockLayer::`vftable';\n  *(_DWORD *)&v4->m_referenceOnly = 0;\n  *(_WORD *)&v4->m_useNearby = 0;\n  v4->m_ignoreCorners = 0;\n  v4->m_specialTemplate = -1;\n  v4->m_gameObject = nullptr;\n  v4->m_gameObjects = nullptr;\n  if ( SetupSmartBlockLayer::init(v4, a1, a2) )\n  {\n    cocos2d::CCObject::autorelease(v4);\n    return v4;\n  }\n  else\n  {\n    ((void (__fastcall *)(SetupSmartBlockLayer *, __int64))v4->~SetupSmartBlockLayer)(v4, 1);\n    return nullptr;\n  }\n}", "assembly": "; \n; SetupSmartBlockLayer::create from 0x1404568d0 to 0x140456a0d (317 bytes)\n; \n; 2 xrefs:\n; > EditorUI::editObjectSpecial @ 0x14011e8f1\n; > <???> @ 0x1406da9a0\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, 0x1404568d0\nmov     [rsp+arg_8], rsi                                               ; +0x5, 0x1404568d5\npush    rdi                                                            ; +0xa, 0x1404568da\nsub     rsp, 20h                                                       ; +0xb, 0x1404568db\nmov     rbx, rdx                                                       ; +0xf, 0x1404568df\nmov     rdi, rcx                                                       ; +0x12, 0x1404568e2\nmov     ecx, 2A8h; Size                                                ; +0x15, 0x1404568e5\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x1a, 0x1404568ea\nmov     rsi, rax                                                       ; +0x1f, 0x1404568ef\nmov     [rsp+28h+arg_10], rax                                          ; +0x22, 0x1404568f2\nmov     rcx, rax                                                       ; +0x27, 0x1404568f7\ncall    FLAlertLayer__FLAlertLayer                                     ; +0x2a, 0x1404568fa\nlea     rax, ??_7SetupSmartBlockLayer@@6B@; const SetupSmartBlockLayer::`vftable' ; +0x2f, 0x1404568ff\nmov     [rsi], rax                                                     ; +0x36, 0x140456906\nlea     rax, ??_7SetupSmartBlockLayer@@6B@_0; const SetupSmartBlockLayer::`vftable' ; +0x39, 0x140456909\nmov     [rsi+140h], rax                                                ; +0x40, 0x140456910\nlea     rax, ??_7SetupSmartBlockLayer@@6B@_1; const SetupSmartBlockLayer::`vftable' ; +0x47, 0x140456917\nmov     [rsi+148h], rax                                                ; +0x4e, 0x14045691e\nlea     rax, ??_7SetupSmartBlockLayer@@6B@_2; const SetupSmartBlockLayer::`vftable' ; +0x55, 0x140456925\nmov     [rsi+150h], rax                                                ; +0x5c, 0x14045692c\nlea     rax, ??_7SetupSmartBlockLayer@@6B@_3; const SetupSmartBlockLayer::`vftable' ; +0x63, 0x140456933\nmov     [rsi+158h], rax                                                ; +0x6a, 0x14045693a\nlea     rax, ??_7SetupSmartBlockLayer@@6B@_4; const SetupSmartBlockLayer::`vftable' ; +0x71, 0x140456941\nmov     [rsi+160h], rax                                                ; +0x78, 0x140456948\nlea     rax, ??_7SetupSmartBlockLayer@@6B@_5; const SetupSmartBlockLayer::`vftable' ; +0x7f, 0x14045694f\nmov     [rsi+198h], rax                                                ; +0x86, 0x140456956\nlea     rax, ??_7SetupSmartBlockLayer@@6B@_6; const SetupSmartBlockLayer::`vftable' ; +0x8d, 0x14045695d\nmov     [rsi+1B0h], rax                                                ; +0x94, 0x140456964\nlea     rax, ??_7SetupSmartBlockLayer@@6B@_7; const SetupSmartBlockLayer::`vftable' ; +0x9b, 0x14045696b\nmov     [rsi+278h], rax                                                ; +0xa2, 0x140456972\nlea     rax, ??_7SetupSmartBlockLayer@@6B@_8; const SetupSmartBlockLayer::`vftable' ; +0xa9, 0x140456979\nmov     [rsi+280h], rax                                                ; +0xb0, 0x140456980\nmov     dword ptr [rsi+288h], 0                                        ; +0xb7, 0x140456987\nmov     word ptr [rsi+28Ch], 0                                         ; +0xc1, 0x140456991\nmov     byte ptr [rsi+28Eh], 0                                         ; +0xca, 0x14045699a\nmov     dword ptr [rsi+290h], 0FFFFFFFFh                               ; +0xd1, 0x1404569a1\nmov     qword ptr [rsi+298h], 0                                        ; +0xdb, 0x1404569ab\nmov     qword ptr [rsi+2A0h], 0                                        ; +0xe6, 0x1404569b6\nmov     r8, rbx                                                        ; +0xf1, 0x1404569c1\nmov     rdx, rdi                                                       ; +0xf4, 0x1404569c4\nmov     rcx, rsi                                                       ; +0xf7, 0x1404569c7\ncall    SetupSmartBlockLayer__init                                     ; +0xfa, 0x1404569ca\nmov     rcx, rsi                                                       ; +0xff, 0x1404569cf\ntest    al, al                                                         ; +0x102, 0x1404569d2\njz      short loc_1404569EF                                            ; +0x104, 0x1404569d4\ncall    cs:?autorelease@CCObject@cocos2d@@QEAAPEAV12@XZ; cocos2d::CCObject::autorelease(void) ; +0x106, 0x1404569d6\nmov     rax, rsi                                                       ; +0x10c, 0x1404569dc\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x10f, 0x1404569df\nmov     rsi, [rsp+28h+arg_8]                                           ; +0x114, 0x1404569e4\nadd     rsp, 20h                                                       ; +0x119, 0x1404569e9\npop     rdi                                                            ; +0x11d, 0x1404569ed\nretn                                                                   ; +0x11e, 0x1404569ee\nmov     r8, [rsi]                                                      ; +0x11f, 0x1404569ef\nmov     edx, 1                                                         ; +0x122, 0x1404569f2\ncall    qword ptr [r8+8]                                               ; +0x127, 0x1404569f7\nxor     eax, eax                                                       ; +0x12b, 0x1404569fb\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x12d, 0x1404569fd\nmov     rsi, [rsp+28h+arg_8]                                           ; +0x132, 0x140456a02\nadd     rsp, 20h                                                       ; +0x137, 0x140456a07\npop     rdi                                                            ; +0x13b, 0x140456a0b\nretn                                                                   ; +0x13c, 0x140456a0c", "xrefs": ["EditorUI::editObjectSpecial @ 0x14011e8f1", "<???> @ 0x1406da9a0"], "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"}