{"type": "func", "start": 5373263136, "end": 5373264158, "name": "SetupSmartBlockLayer::onPasteTemplate", "pseudocode": "// \n// SetupSmartBlockLayer::onPasteTemplate from 0x140457d20 to 0x14045811e (1022 bytes)\n// \n// 2 xrefs:\n// > SetupSmartBlockLayer::init @ 0x14045705f\n// > <???> @ 0x1406daa18\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=9\nvoid SetupSmartBlockLayer::onPasteTemplate(SetupSmartBlockLayer *a1, cocos2d::CCObject *a2)\n{\n  __int64 v3; // rax\n  _BYTE *v4; // rbx\n  __int64 v5; // rcx\n  cocos2d::CCArray *v6; // rax\n  cocos2d::CCArray *v7; // rdi\n  __int64 v8; // rcx\n  cocos2d::CCDirector *v9; // rax\n  __int64 v10; // rax\n  cocos2d::CCNode *v11; // rbx\n  __int64 v12; // rax\n  EditorUI *v13; // rbx\n  float m_gridSize; // xmm8_4\n  float *v15; // rax\n  float v16; // xmm6_4\n  float v17; // xmm7_4\n  float v18; // xmm0_4\n  __int64 v19; // rax\n  EditorUI *v20; // rbx\n  cocos2d::CCPoint v21; // rax\n  __int64 v22; // rax\n  GJSmartTemplate *v23; // rbx\n  __int64 v24; // rcx\n  bool v25; // [rsp+38h] [rbp-59h]\n  void *v26; // [rsp+48h] [rbp-49h] BYREF\n  void *v27; // [rsp+50h] [rbp-41h]\n  void *v28; // [rsp+58h] [rbp-39h]\n  cocos2d::CCPoint v29; // [rsp+60h] [rbp-31h] BYREF\n  cocos2d::CCPoint v30; // [rsp+68h] [rbp-29h] BYREF\n  __int128 v31; // [rsp+70h] [rbp-21h] BYREF\n  __int64 v32; // [rsp+80h] [rbp-11h]\n  __int64 v33; // [rsp+88h] [rbp-9h]\n  __int128 *v34; // [rsp+108h] [rbp+77h] BYREF\n  void *v35; // [rsp+110h] [rbp+7Fh]\n\n  v3 = qword_1406C2ED8;\n  if ( !qword_1406C2ED8 )\n  {\n    v34 = (__int128 *)operator new(0x668u);\n    qword_1406C2ED8 = sub_14017AB00((__int64)v34);\n    (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2ED8 + 72LL))(qword_1406C2ED8);\n    v3 = qword_1406C2ED8;\n  }\n  if ( *(_QWORD *)(v3 + 528) )\n  {\n    v34 = &v31;\n    v31 = 0;\n    v32 = 0;\n    v33 = 15;\n    v4 = sub_14003AA10(0x1760u);\n    *(_QWORD *)&v31 = v4;\n    v32 = 5983;\n    v33 = 5983;\n    memcpy(v4, a12895236453195, 0x175Fu);\n    v4[5983] = 0;\n    v5 = qword_1406C2ED8;\n    if ( !qword_1406C2ED8 )\n    {\n      v35 = operator new(0x668u);\n      qword_1406C2ED8 = sub_14017AB00((__int64)v35);\n      (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2ED8 + 72LL))(qword_1406C2ED8);\n      v5 = qword_1406C2ED8;\n    }\n    v6 = EditorUI::pasteObjects(*(EditorUI **)(*(_QWORD *)(v5 + 528) + 14496LL), (__int64 *)&v31, nullptr, 0);\n    v7 = v6;\n    if ( v6 && cocos2d::CCArray::count(v6) )\n    {\n      v9 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v8);\n      cocos2d::CCDirector::getWinSize(v9);\n      v10 = qword_1406C2ED8;\n      if ( !qword_1406C2ED8 )\n      {\n        v26 = operator new(0x668u);\n        qword_1406C2ED8 = sub_14017AB00((__int64)v26);\n        (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2ED8 + 72LL))(qword_1406C2ED8);\n        v10 = qword_1406C2ED8;\n      }\n      v11 = *(cocos2d::CCNode **)(*(_QWORD *)(v10 + 528) + 4072LL);\n      cocos2d::CCPoint::CCPoint(*((float *)&v35 + 1) * 0.5, *(float *)&v35 * 0.5);\n      cocos2d::CCNode::convertToNodeSpace(v11, (const struct cocos2d::CCPoint *)&v34);\n      v12 = qword_1406C2ED8;\n      if ( !qword_1406C2ED8 )\n      {\n        v28 = operator new(0x668u);\n        qword_1406C2ED8 = sub_14017AB00((__int64)v28);\n        (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2ED8 + 72LL))(qword_1406C2ED8);\n        v12 = qword_1406C2ED8;\n      }\n      v13 = *(EditorUI **)(*(_QWORD *)(v12 + 528) + 14496LL);\n      cocos2d::CCPoint::CCPoint(&v29);\n      m_gridSize = v13->m_editorLayer->m_drawGridLayer->m_gridSize;\n      v16 = v15[1] / m_gridSize;\n      v17 = (float)(floorf(*v15 / m_gridSize) + 0.5) * m_gridSize;\n      v18 = (float)(floorf(v16) + 0.5) * m_gridSize;\n      cocos2d::CCPoint::CCPoint(v18, v17);\n      EditorUI::getLimitedPosition(v13, (cocos2d::CCPoint)&v26);\n      cocos2d::CCPoint::operator=(&v34, &v26);\n      v19 = qword_1406C2ED8;\n      if ( !qword_1406C2ED8 )\n      {\n        v27 = operator new(0x668u);\n        qword_1406C2ED8 = sub_14017AB00((__int64)v27);\n        (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2ED8 + 72LL))(qword_1406C2ED8);\n        v19 = qword_1406C2ED8;\n      }\n      v20 = *(EditorUI **)(*(_QWORD *)(v19 + 528) + 14496LL);\n      cocos2d::CCPoint::CCPoint(&v30);\n      EditorUI::repositionObjectsToCenter(v20, v7, v21, 0);\n      v22 = qword_1406C2EC0;\n      if ( !qword_1406C2EC0 )\n      {\n        v29 = (cocos2d::CCPoint)operator new(0x3D0u);\n        qword_1406C2EC0 = sub_140141280(*(_QWORD *)&v29);\n        (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2EC0 + 72LL))(qword_1406C2EC0);\n        v22 = qword_1406C2EC0;\n      }\n      v23 = *(GJSmartTemplate **)(v22 + 960);\n      if ( v23 )\n      {\n        v24 = qword_1406C2ED8;\n        if ( !qword_1406C2ED8 )\n        {\n          v29 = (cocos2d::CCPoint)operator new(0x668u);\n          qword_1406C2ED8 = sub_14017AB00(*(_QWORD *)&v29);\n          (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2ED8 + 72LL))(qword_1406C2ED8);\n          v24 = qword_1406C2ED8;\n        }\n        EditorUI::createSmartObjectsFromTemplate(\n          *(EditorUI **)(*(_QWORD *)(v24 + 528) + 14496LL),\n          v23,\n          v7,\n          0,\n          1,\n          1,\n          v25);\n      }\n    }\n  }\n  SetupSmartBlockLayer::onClose(a1, nullptr);\n}", "assembly": "; \n; SetupSmartBlockLayer::onPasteTemplate from 0x140457d20 to 0x14045811e (1022 bytes)\n; \n; 2 xrefs:\n; > SetupSmartBlockLayer::init @ 0x14045705f\n; > <???> @ 0x1406daa18\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     rax, rsp                                                       ; +0x0, 0x140457d20\nmov     [rax+8], rbx                                                   ; +0x3, 0x140457d23\npush    rbp                                                            ; +0x7, 0x140457d27\npush    rsi                                                            ; +0x8, 0x140457d28\npush    rdi                                                            ; +0x9, 0x140457d29\nlea     rbp, [rax-5Fh]                                                 ; +0xa, 0x140457d2a\nsub     rsp, 0D0h                                                      ; +0xe, 0x140457d2e\nmovaps  xmmword ptr [rax-28h], xmm6                                    ; +0x15, 0x140457d35\nmovaps  xmmword ptr [rax-38h], xmm7                                    ; +0x19, 0x140457d39\nmovaps  xmmword ptr [rax-48h], xmm8                                    ; +0x1d, 0x140457d3d\nmovaps  xmmword ptr [rax-58h], xmm9                                    ; +0x22, 0x140457d42\nmov     rsi, rcx                                                       ; +0x27, 0x140457d47\nmov     rax, cs:qword_1406C2ED8                                        ; +0x2a, 0x140457d4a\ntest    rax, rax                                                       ; +0x31, 0x140457d51\njnz     short loc_140457D84                                            ; +0x34, 0x140457d54\nmov     ecx, 668h; Size                                                ; +0x36, 0x140457d56\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x3b, 0x140457d5b\nmov     [rbp+57h+arg_10], rax                                          ; +0x40, 0x140457d60\nmov     rcx, rax                                                       ; +0x44, 0x140457d64\ncall    sub_14017AB00                                                  ; +0x47, 0x140457d67\nnop                                                                    ; +0x4c, 0x140457d6c\nmov     cs:qword_1406C2ED8, rax                                        ; +0x4d, 0x140457d6d\nmov     rdx, [rax]                                                     ; +0x54, 0x140457d74\nmov     rcx, rax                                                       ; +0x57, 0x140457d77\ncall    qword ptr [rdx+48h]                                            ; +0x5a, 0x140457d7a\nmov     rax, cs:qword_1406C2ED8                                        ; +0x5d, 0x140457d7d\ncmp     qword ptr [rax+210h], 0                                        ; +0x64, 0x140457d84\njz      loc_1404580EE                                                  ; +0x6c, 0x140457d8c\nlea     rax, [rbp+57h+var_78]                                          ; +0x72, 0x140457d92\nmov     [rbp+57h+arg_10], rax                                          ; +0x76, 0x140457d96\nxorps   xmm0, xmm0                                                     ; +0x7a, 0x140457d9a\nmovups  [rbp+57h+var_78], xmm0                                         ; +0x7d, 0x140457d9d\nmov     [rbp+57h+var_68], 0                                            ; +0x81, 0x140457da1\nmov     [rbp+57h+var_60], 0Fh                                          ; +0x89, 0x140457da9\nmov     ecx, 1760h                                                     ; +0x91, 0x140457db1\ncall    sub_14003AA10                                                  ; +0x96, 0x140457db6\nmov     rbx, rax                                                       ; +0x9b, 0x140457dbb\nmov     qword ptr [rbp+57h+var_78], rax                                ; +0x9e, 0x140457dbe\nmov     [rbp+57h+var_68], 175Fh                                        ; +0xa2, 0x140457dc2\nmov     [rbp+57h+var_60], 175Fh                                        ; +0xaa, 0x140457dca\nmov     r8d, 175Fh; Size                                               ; +0xb2, 0x140457dd2\nlea     rdx, a12895236453195; \"1,2895,2,3645,3,195,20,2,61,2,155,19,15\"... ; +0xb8, 0x140457dd8\nmov     rcx, rax; void *                                               ; +0xbf, 0x140457ddf\ncall    memcpy                                                         ; +0xc2, 0x140457de2\nmov     byte ptr [rbx+175Fh], 0                                        ; +0xc7, 0x140457de7\nmov     rcx, cs:qword_1406C2ED8                                        ; +0xce, 0x140457dee\ntest    rcx, rcx                                                       ; +0xd5, 0x140457df5\njnz     short loc_140457E28                                            ; +0xd8, 0x140457df8\nmov     ecx, 668h; Size                                                ; +0xda, 0x140457dfa\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0xdf, 0x140457dff\nmov     [rbp+57h+arg_18], rax                                          ; +0xe4, 0x140457e04\nmov     rcx, rax                                                       ; +0xe8, 0x140457e08\ncall    sub_14017AB00                                                  ; +0xeb, 0x140457e0b\nnop                                                                    ; +0xf0, 0x140457e10\nmov     cs:qword_1406C2ED8, rax                                        ; +0xf1, 0x140457e11\nmov     rdx, [rax]                                                     ; +0xf8, 0x140457e18\nmov     rcx, rax                                                       ; +0xfb, 0x140457e1b\ncall    qword ptr [rdx+48h]                                            ; +0xfe, 0x140457e1e\nmov     rcx, cs:qword_1406C2ED8                                        ; +0x101, 0x140457e21\nmov     rcx, [rcx+210h]                                                ; +0x108, 0x140457e28\nxor     r9d, r9d                                                       ; +0x10f, 0x140457e2f\nxor     r8d, r8d                                                       ; +0x112, 0x140457e32\nlea     rdx, [rbp+57h+var_78]                                          ; +0x115, 0x140457e35\nmov     rcx, [rcx+38A0h]                                               ; +0x119, 0x140457e39\ncall    EditorUI__pasteObjects                                         ; +0x120, 0x140457e40\nmov     rdi, rax                                                       ; +0x125, 0x140457e45\ntest    rax, rax                                                       ; +0x128, 0x140457e48\njz      loc_1404580EE                                                  ; +0x12b, 0x140457e4b\nmov     rcx, rax                                                       ; +0x131, 0x140457e51\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x134, 0x140457e54\ntest    eax, eax                                                       ; +0x13a, 0x140457e5a\njz      loc_1404580EE                                                  ; +0x13c, 0x140457e5c\ncall    cs:?sharedDirector@CCDirector@cocos2d@@SAPEAV12@XZ; cocos2d::CCDirector::sharedDirector(void) ; +0x142, 0x140457e62\nmov     rcx, rax                                                       ; +0x148, 0x140457e68\nlea     rdx, [rbp+57h+arg_18]                                          ; +0x14b, 0x140457e6b\ncall    cs:?getWinSize@CCDirector@cocos2d@@QEAA?AVCCSize@2@XZ; cocos2d::CCDirector::getWinSize(void) ; +0x14f, 0x140457e6f\nmov     rax, cs:qword_1406C2ED8                                        ; +0x155, 0x140457e75\ntest    rax, rax                                                       ; +0x15c, 0x140457e7c\njnz     short loc_140457EAF                                            ; +0x15f, 0x140457e7f\nmov     ecx, 668h; Size                                                ; +0x161, 0x140457e81\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x166, 0x140457e86\nmov     [rbp+57h+var_A0], rax                                          ; +0x16b, 0x140457e8b\nmov     rcx, rax                                                       ; +0x16f, 0x140457e8f\ncall    sub_14017AB00                                                  ; +0x172, 0x140457e92\nnop                                                                    ; +0x177, 0x140457e97\nmov     cs:qword_1406C2ED8, rax                                        ; +0x178, 0x140457e98\nmov     rdx, [rax]                                                     ; +0x17f, 0x140457e9f\nmov     rcx, rax                                                       ; +0x182, 0x140457ea2\ncall    qword ptr [rdx+48h]                                            ; +0x185, 0x140457ea5\nmov     rax, cs:qword_1406C2ED8                                        ; +0x188, 0x140457ea8\nmov     rax, [rax+210h]                                                ; +0x18f, 0x140457eaf\nmov     rbx, [rax+0FE8h]                                               ; +0x196, 0x140457eb6\nmov     rax, [rax+38A0h]                                               ; +0x19d, 0x140457ebd\nmovss   xmm2, dword ptr [rax+318h]                                     ; +0x1a4, 0x140457ec4\nmovss   xmm9, cs:dword_140622B08                                       ; +0x1ac, 0x140457ecc\nmulss   xmm2, xmm9                                                     ; +0x1b5, 0x140457ed5\nmovss   xmm0, dword ptr [rbp+57h+arg_18+4]                             ; +0x1ba, 0x140457eda\nmulss   xmm0, xmm9                                                     ; +0x1c2, 0x140457ee2\naddss   xmm2, xmm0                                                     ; +0x1c7, 0x140457ee7\nmovss   xmm1, dword ptr [rbp+57h+arg_18]                               ; +0x1cb, 0x140457eeb\nmulss   xmm1, xmm9                                                     ; +0x1d0, 0x140457ef0\nlea     rcx, [rbp+57h+var_98]                                          ; +0x1d5, 0x140457ef5\ncall    cs:??0CCPoint@cocos2d@@QEAA@MM@Z; cocos2d::CCPoint::CCPoint(float,float) ; +0x1d9, 0x140457ef9\nmov     r8, rax                                                        ; +0x1df, 0x140457eff\nlea     rdx, [rbp+57h+arg_10]                                          ; +0x1e2, 0x140457f02\nmov     rcx, rbx                                                       ; +0x1e6, 0x140457f06\ncall    cs:?convertToNodeSpace@CCNode@cocos2d@@QEAA?AVCCPoint@2@AEBV32@@Z; cocos2d::CCNode::convertToNodeSpace(cocos2d::CCPoint const &) ; +0x1e9, 0x140457f09\nmov     rax, cs:qword_1406C2ED8                                        ; +0x1ef, 0x140457f0f\ntest    rax, rax                                                       ; +0x1f6, 0x140457f16\njnz     short loc_140457F49                                            ; +0x1f9, 0x140457f19\nmov     ecx, 668h; Size                                                ; +0x1fb, 0x140457f1b\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x200, 0x140457f20\nmov     [rbp+57h+var_90], rax                                          ; +0x205, 0x140457f25\nmov     rcx, rax                                                       ; +0x209, 0x140457f29\ncall    sub_14017AB00                                                  ; +0x20c, 0x140457f2c\nnop                                                                    ; +0x211, 0x140457f31\nmov     cs:qword_1406C2ED8, rax                                        ; +0x212, 0x140457f32\nmov     rdx, [rax]                                                     ; +0x219, 0x140457f39\nmov     rcx, rax                                                       ; +0x21c, 0x140457f3c\ncall    qword ptr [rdx+48h]                                            ; +0x21f, 0x140457f3f\nmov     rax, cs:qword_1406C2ED8                                        ; +0x222, 0x140457f42\nmov     rax, [rax+210h]                                                ; +0x229, 0x140457f49\nmov     rbx, [rax+38A0h]                                               ; +0x230, 0x140457f50\nlea     rdx, [rbp+57h+arg_10]                                          ; +0x237, 0x140457f57\nlea     rcx, [rbp+57h+var_88]                                          ; +0x23b, 0x140457f5b\ncall    cs:??0CCPoint@cocos2d@@QEAA@AEBV01@@Z; cocos2d::CCPoint::CCPoint(cocos2d::CCPoint const &) ; +0x23f, 0x140457f5f\nmov     rcx, [rbx+500h]                                                ; +0x245, 0x140457f65\nmov     rdx, [rcx+38C8h]                                               ; +0x24c, 0x140457f6c\nmovss   xmm8, dword ptr [rdx+27Ch]                                     ; +0x253, 0x140457f73\nmovss   xmm0, dword ptr [rax]                                          ; +0x25c, 0x140457f7c\ndivss   xmm0, xmm8; X                                                  ; +0x260, 0x140457f80\nmovss   xmm6, dword ptr [rax+4]                                        ; +0x265, 0x140457f85\ndivss   xmm6, xmm8                                                     ; +0x26a, 0x140457f8a\ncall    floorf                                                         ; +0x26f, 0x140457f8f\nmovaps  xmm7, xmm0                                                     ; +0x274, 0x140457f94\naddss   xmm7, xmm9                                                     ; +0x277, 0x140457f97\nmulss   xmm7, xmm8                                                     ; +0x27c, 0x140457f9c\nmovaps  xmm0, xmm6; X                                                  ; +0x281, 0x140457fa1\ncall    floorf                                                         ; +0x284, 0x140457fa4\naddss   xmm0, xmm9                                                     ; +0x289, 0x140457fa9\nmulss   xmm0, xmm8                                                     ; +0x28e, 0x140457fae\nmovaps  xmm2, xmm0                                                     ; +0x293, 0x140457fb3\nmovaps  xmm1, xmm7                                                     ; +0x296, 0x140457fb6\nlea     rcx, [rbp+57h+var_90]                                          ; +0x299, 0x140457fb9\ncall    cs:??0CCPoint@cocos2d@@QEAA@MM@Z; cocos2d::CCPoint::CCPoint(float,float) ; +0x29d, 0x140457fbd\nmov     r8, rax                                                        ; +0x2a3, 0x140457fc3\nlea     rdx, [rbp+57h+var_A0]                                          ; +0x2a6, 0x140457fc6\nmov     rcx, rbx                                                       ; +0x2aa, 0x140457fca\ncall    EditorUI__getLimitedPosition                                   ; +0x2ad, 0x140457fcd\nlea     rdx, [rbp+57h+var_A0]                                          ; +0x2b2, 0x140457fd2\nlea     rcx, [rbp+57h+arg_10]                                          ; +0x2b6, 0x140457fd6\ncall    cs:??4CCPoint@cocos2d@@QEAAAEAV01@AEBV01@@Z; cocos2d::CCPoint::operator=(cocos2d::CCPoint const &) ; +0x2ba, 0x140457fda\nmov     rax, cs:qword_1406C2ED8                                        ; +0x2c0, 0x140457fe0\ntest    rax, rax                                                       ; +0x2c7, 0x140457fe7\njnz     short loc_14045801A                                            ; +0x2ca, 0x140457fea\nmov     ecx, 668h; Size                                                ; +0x2cc, 0x140457fec\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x2d1, 0x140457ff1\nmov     [rbp+57h+var_98], rax                                          ; +0x2d6, 0x140457ff6\nmov     rcx, rax                                                       ; +0x2da, 0x140457ffa\ncall    sub_14017AB00                                                  ; +0x2dd, 0x140457ffd\nnop                                                                    ; +0x2e2, 0x140458002\nmov     cs:qword_1406C2ED8, rax                                        ; +0x2e3, 0x140458003\nmov     rdx, [rax]                                                     ; +0x2ea, 0x14045800a\nmov     rcx, rax                                                       ; +0x2ed, 0x14045800d\ncall    qword ptr [rdx+48h]                                            ; +0x2f0, 0x140458010\nmov     rax, cs:qword_1406C2ED8                                        ; +0x2f3, 0x140458013\nmov     rax, [rax+210h]                                                ; +0x2fa, 0x14045801a\nmov     rbx, [rax+38A0h]                                               ; +0x301, 0x140458021\nlea     rdx, [rbp+57h+arg_10]                                          ; +0x308, 0x140458028\nlea     rcx, [rbp+57h+var_80]                                          ; +0x30c, 0x14045802c\ncall    cs:??0CCPoint@cocos2d@@QEAA@AEBV01@@Z; cocos2d::CCPoint::CCPoint(cocos2d::CCPoint const &) ; +0x310, 0x140458030\nmov     r8, rax                                                        ; +0x316, 0x140458036\nxor     r9d, r9d                                                       ; +0x319, 0x140458039\nmov     rdx, rdi                                                       ; +0x31c, 0x14045803c\nmov     rcx, rbx                                                       ; +0x31f, 0x14045803f\ncall    EditorUI__repositionObjectsToCenter                            ; +0x322, 0x140458042\nmov     rax, cs:qword_1406C2EC0                                        ; +0x327, 0x140458047\ntest    rax, rax                                                       ; +0x32e, 0x14045804e\njnz     short loc_140458081                                            ; +0x331, 0x140458051\nmov     ecx, 3D0h; Size                                                ; +0x333, 0x140458053\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x338, 0x140458058\nmov     [rbp+57h+var_88], rax                                          ; +0x33d, 0x14045805d\nmov     rcx, rax                                                       ; +0x341, 0x140458061\ncall    sub_140141280                                                  ; +0x344, 0x140458064\nnop                                                                    ; +0x349, 0x140458069\nmov     cs:qword_1406C2EC0, rax                                        ; +0x34a, 0x14045806a\nmov     rdx, [rax]                                                     ; +0x351, 0x140458071\nmov     rcx, rax                                                       ; +0x354, 0x140458074\ncall    qword ptr [rdx+48h]                                            ; +0x357, 0x140458077\nmov     rax, cs:qword_1406C2EC0                                        ; +0x35a, 0x14045807a\nmov     rbx, [rax+3C0h]                                                ; +0x361, 0x140458081\ntest    rbx, rbx                                                       ; +0x368, 0x140458088\njz      short loc_1404580EE                                            ; +0x36b, 0x14045808b\nmov     rcx, cs:qword_1406C2ED8                                        ; +0x36d, 0x14045808d\ntest    rcx, rcx                                                       ; +0x374, 0x140458094\njnz     short loc_1404580C8                                            ; +0x377, 0x140458097\nmov     ecx, 668h; Size                                                ; +0x379, 0x140458099\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x37e, 0x14045809e\nmov     [rbp+57h+var_88], rax                                          ; +0x383, 0x1404580a3\nmov     rcx, rax                                                       ; +0x387, 0x1404580a7\ncall    sub_14017AB00                                                  ; +0x38a, 0x1404580aa\nnop                                                                    ; +0x38f, 0x1404580af\nmov     cs:qword_1406C2ED8, rax                                        ; +0x390, 0x1404580b0\nmov     r8, [rax]                                                      ; +0x397, 0x1404580b7\nmov     rcx, rax                                                       ; +0x39a, 0x1404580ba\ncall    qword ptr [r8+48h]                                             ; +0x39d, 0x1404580bd\nmov     rcx, cs:qword_1406C2ED8                                        ; +0x3a1, 0x1404580c1\nmov     rcx, [rcx+210h]                                                ; +0x3a8, 0x1404580c8\nmov     [rsp+0E0h+var_B8], 1                                           ; +0x3af, 0x1404580cf\nmov     [rsp+0E0h+var_C0], 1                                           ; +0x3b4, 0x1404580d4\nxor     r9d, r9d                                                       ; +0x3b9, 0x1404580d9\nmov     r8, rdi                                                        ; +0x3bc, 0x1404580dc\nmov     rdx, rbx                                                       ; +0x3bf, 0x1404580df\nmov     rcx, [rcx+38A0h]                                               ; +0x3c2, 0x1404580e2\ncall    EditorUI__createSmartObjectsFromTemplate                       ; +0x3c9, 0x1404580e9\nxor     edx, edx                                                       ; +0x3ce, 0x1404580ee\nmov     rcx, rsi                                                       ; +0x3d0, 0x1404580f0\nlea     r11, [rsp+0E0h+var_10]                                         ; +0x3d3, 0x1404580f3\nmov     rbx, [r11+20h]                                                 ; +0x3db, 0x1404580fb\nmovaps  xmm6, xmmword ptr [r11-10h]                                    ; +0x3df, 0x1404580ff\nmovaps  xmm7, xmmword ptr [r11-20h]                                    ; +0x3e4, 0x140458104\nmovaps  xmm8, xmmword ptr [r11-30h]                                    ; +0x3e9, 0x140458109\nmovaps  xmm9, xmmword ptr [r11-40h]                                    ; +0x3ee, 0x14045810e\nmov     rsp, r11                                                       ; +0x3f3, 0x140458113\npop     rdi                                                            ; +0x3f6, 0x140458116\npop     rsi                                                            ; +0x3f7, 0x140458117\npop     rbp                                                            ; +0x3f8, 0x140458118\njmp     SetupSmartBlockLayer__onClose                                  ; +0x3f9, 0x140458119", "xrefs": ["SetupSmartBlockLayer::init @ 0x14045705f", "<???> @ 0x1406daa18"], "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"}