{"type": "func", "start": 5369854368, "end": 5369855396, "name": "EditorUI::createPrefab", "pseudocode": "// \n// EditorUI::createPrefab from 0x1401179a0 to 0x140117da4 (1028 bytes)\n// \n// 4 xrefs:\n// > SetupSmartBlockLayer::onCreateAll @ 0x14045834e\n// > BrowseSmartTemplateLayer::createPrefab @ 0x14045b097\n// > <???> @ 0x1406c92e8\n// > <???> @ 0x1406c92f4\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\nvoid __fastcall EditorUI::createPrefab(EditorUI *a1, __int64 a2, _QWORD *a3, int a4)\n{\n  cocos2d::CCDirector *v8; // rax\n  cocos2d::CCNode *m_objectLayer; // rbx\n  float m_gridSize; // xmm8_4\n  float *v11; // rax\n  float v12; // xmm6_4\n  float v13; // xmm7_4\n  float v14; // xmm0_4\n  __int64 v15; // rcx\n  __int64 i; // rbx\n  _QWORD *v17; // rax\n  SmartBlockType v18; // edi\n  float v19; // xmm0_4\n  float v20; // xmm0_4\n  int v21; // edx\n  SmartGameObject *Object; // r14\n  __int64 v23; // rax\n  __int64 PrefabWithID; // rax\n  __int64 *v25; // rax\n  cocos2d::CCArray *v26; // rbx\n  float v27; // [rsp+28h] [rbp-B9h] BYREF\n  float v28; // [rsp+2Ch] [rbp-B5h]\n  struct cocos2d::CCPoint v29; // [rsp+30h] [rbp-B1h] BYREF\n  cocos2d::CCPoint v30; // [rsp+38h] [rbp-A9h] BYREF\n  float v31; // [rsp+40h] [rbp-A1h]\n  float v32; // [rsp+44h] [rbp-9Dh]\n  cocos2d::CCPoint v33; // [rsp+48h] [rbp-99h] BYREF\n  cocos2d::CCPoint v34; // [rsp+50h] [rbp-91h] BYREF\n  _BYTE v35[32]; // [rsp+58h] [rbp-89h] BYREF\n  _BYTE v36[32]; // [rsp+78h] [rbp-69h] BYREF\n  _QWORD *v37; // [rsp+98h] [rbp-49h]\n\n  v37 = a3;\n  v8 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(a1);\n  cocos2d::CCDirector::getWinSize(v8);\n  m_objectLayer = a1->m_editorLayer->m_objectLayer;\n  cocos2d::CCPoint::CCPoint(&v30, v31 * 0.5, (float)(a1->m_toolbarHeight * 0.5) + (float)(v32 * 0.5));\n  cocos2d::CCNode::convertToNodeSpace(m_objectLayer, &v29);\n  v29.x = v29.x + (float)((float)(4 * *(_DWORD *)(a2 + 204)) * 30.0);\n  cocos2d::CCPoint::CCPoint(&v30, &v29);\n  m_gridSize = a1->m_editorLayer->m_drawGridLayer->m_gridSize;\n  v12 = v11[1] / m_gridSize;\n  v13 = (float)(floorf(*v11 / m_gridSize) + 0.5) * m_gridSize;\n  v14 = (float)(floorf(v12) + 0.5) * m_gridSize;\n  cocos2d::CCPoint::CCPoint(&v34, v13, v14);\n  EditorUI::getLimitedPosition(a1, (cocos2d::CCPoint)&v27);\n  cocos2d::CCPoint::operator=(&v29, &v27);\n  ++*(_DWORD *)(a2 + 204);\n  cocos2d::CCPoint::CCPoint(&v33, (const struct cocos2d::CCPoint *)&dword_1406C1AA8);\n  for ( i = 0; i < 9; ++i )\n  {\n    if ( a3[2] <= (unsigned __int64)i )\n      sub_14003BCC0(v15);\n    v17 = a3;\n    if ( a3[3] > 0xFu )\n      v17 = (_QWORD *)*a3;\n    v18 = *((char *)v17 + i);\n    if ( v18 != 48 )\n    {\n      GJSmartTemplate::offsetForType((SmartBlockType)&v27);\n      if ( i )\n      {\n        if ( ((i - 1) & 0xFFFFFFFFFFFFFFFAuLL) != 0 || i == 2 )\n        {\n          v19 = v28;\n        }\n        else\n        {\n          v19 = v28 + 30.0;\n          v28 = v28 + 30.0;\n        }\n        if ( i == 2 || (unsigned __int64)(i - 7) <= 1 )\n          v28 = v19 + -30.0;\n        if ( ((i - 3) & 0xFFFFFFFFFFFFFFF9uLL) != 0 )\n        {\n          v20 = v27;\n        }\n        else\n        {\n          v20 = v27 + -30.0;\n          v27 = v27 + -30.0;\n        }\n        if ( ((i - 4) & 0xFFFFFFFFFFFFFFF9uLL) == 0 )\n          v27 = v20 + 30.0;\n      }\n      else\n      {\n        cocos2d::CCPoint::operator=(&v33, &v27);\n      }\n      cocos2d::CCPoint::operator+(&v29, &v30);\n      switch ( v18 )\n      {\n        case NormalSlope1:\n        case NormalSlope2:\n        case NormalSlope3:\n        case NormalSlope4:\n          v21 = 2896;\n          break;\n        case WideSlope1:\n        case WideSlope2:\n        case WideSlope3:\n        case WideSlope4:\n        case WideSlope5:\n        case WideSlope6:\n        case WideSlope7:\n        case WideSlope8:\n        case WideSlope9:\n        case WideSlope10:\n        case WideSlope11:\n        case WideSlope12:\n        case WideSlope13:\n        case WideSlope14:\n        case WideSlope15:\n        case WideSlope16:\n          v21 = 2897;\n          break;\n        default:\n          v21 = 2895;\n          break;\n      }\n      Object = (SmartGameObject *)EditorUI::createObject(a1, v21, (cocos2d::CCPoint)&v30);\n      GJSmartTemplate::applyTransformationsForType(v18, Object);\n      if ( i )\n      {\n        Object->m_referenceOnly = 1;\n        SmartGameObject::updateSmartFrame(Object);\n      }\n    }\n  }\n  if ( a4 > 0 )\n  {\n    v23 = sub_14003BDB0((__int64)v35, (__int64)a3);\n    PrefabWithID = GJSmartTemplate::getPrefabWithID(a2, v23, (unsigned int)a4);\n    if ( PrefabWithID )\n    {\n      v25 = (__int64 *)sub_14003BDB0((__int64)v36, PrefabWithID + 88);\n      v26 = EditorUI::pasteObjects(a1, v25, nullptr, 0);\n      cocos2d::CCPoint::operator+(&v29, &v30);\n      EditorUI::repositionObjectsToCenter(a1, v26, (cocos2d::CCPoint)&v30, 0);\n      EditorUI::deleteSmartBlocksFromObjects(a1, v26);\n    }\n  }\n  sub_14003A830((__int64)a3);\n}", "assembly": "; \n; EditorUI::createPrefab from 0x1401179a0 to 0x140117da4 (1028 bytes)\n; \n; 4 xrefs:\n; > SetupSmartBlockLayer::onCreateAll @ 0x14045834e\n; > BrowseSmartTemplateLayer::createPrefab @ 0x14045b097\n; > <???> @ 0x1406c92e8\n; > <???> @ 0x1406c92f4\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, 0x1401179a0\npush    rbp                                                            ; +0x3, 0x1401179a3\npush    rbx                                                            ; +0x4, 0x1401179a4\npush    rsi                                                            ; +0x5, 0x1401179a5\npush    rdi                                                            ; +0x6, 0x1401179a6\npush    r12                                                            ; +0x7, 0x1401179a7\npush    r13                                                            ; +0x9, 0x1401179a9\npush    r14                                                            ; +0xb, 0x1401179ab\npush    r15                                                            ; +0xd, 0x1401179ad\nlea     rbp, [rax-5Fh]                                                 ; +0xf, 0x1401179af\nsub     rsp, 0F8h                                                      ; +0x13, 0x1401179b3\nmovaps  xmmword ptr [rax-58h], xmm6                                    ; +0x1a, 0x1401179ba\nmovaps  xmmword ptr [rax-68h], xmm7                                    ; +0x1e, 0x1401179be\nmovaps  xmmword ptr [rax-78h], xmm8                                    ; +0x22, 0x1401179c2\nmovaps  xmmword ptr [rax-88h], xmm9                                    ; +0x27, 0x1401179c7\nmovaps  xmmword ptr [rax-98h], xmm10                                   ; +0x2f, 0x1401179cf\nmov     rax, cs:__security_cookie                                      ; +0x37, 0x1401179d7\nxor     rax, rsp                                                       ; +0x3e, 0x1401179de\nmov     [rbp+57h+var_98], rax                                          ; +0x41, 0x1401179e1\nmov     r12d, r9d                                                      ; +0x45, 0x1401179e5\nmov     rsi, r8                                                        ; +0x48, 0x1401179e8\nmov     r13, rdx                                                       ; +0x4b, 0x1401179eb\nmov     r15, rcx                                                       ; +0x4e, 0x1401179ee\nmov     [rbp+57h+var_A0], r8                                           ; +0x51, 0x1401179f1\ncall    cs:?sharedDirector@CCDirector@cocos2d@@SAPEAV12@XZ; cocos2d::CCDirector::sharedDirector(void) ; +0x55, 0x1401179f5\nmov     rcx, rax                                                       ; +0x5b, 0x1401179fb\nlea     rdx, [rsp+130h+var_F8]                                         ; +0x5e, 0x1401179fe\ncall    cs:?getWinSize@CCDirector@cocos2d@@QEAA?AVCCSize@2@XZ; cocos2d::CCDirector::getWinSize(void) ; +0x63, 0x140117a03\nmov     rax, [r15+500h]                                                ; +0x69, 0x140117a09\nmov     rbx, [rax+0FE8h]                                               ; +0x70, 0x140117a10\nmovss   xmm2, dword ptr [r15+318h]                                     ; +0x77, 0x140117a17\nmovss   xmm9, cs:dword_140622B08                                       ; +0x80, 0x140117a20\nmulss   xmm2, xmm9                                                     ; +0x89, 0x140117a29\nmovss   xmm0, [rsp+130h+var_F4]                                        ; +0x8e, 0x140117a2e\nmulss   xmm0, xmm9                                                     ; +0x94, 0x140117a34\naddss   xmm2, xmm0                                                     ; +0x99, 0x140117a39\nmovss   xmm1, [rsp+130h+var_F8]                                        ; +0x9d, 0x140117a3d\nmulss   xmm1, xmm9                                                     ; +0xa3, 0x140117a43\nlea     rcx, [rsp+130h+var_100]                                        ; +0xa8, 0x140117a48\ncall    cs:??0CCPoint@cocos2d@@QEAA@MM@Z; cocos2d::CCPoint::CCPoint(float,float) ; +0xad, 0x140117a4d\nmov     r8, rax                                                        ; +0xb3, 0x140117a53\nlea     rdx, [rsp+130h+var_108]                                        ; +0xb6, 0x140117a56\nmov     rcx, rbx                                                       ; +0xbb, 0x140117a5b\ncall    cs:?convertToNodeSpace@CCNode@cocos2d@@QEAA?AVCCPoint@2@AEBV32@@Z; cocos2d::CCNode::convertToNodeSpace(cocos2d::CCPoint const &) ; +0xbe, 0x140117a5e\nmov     eax, [r13+0CCh]                                                ; +0xc4, 0x140117a64\nshl     eax, 2                                                         ; +0xcb, 0x140117a6b\nmovd    xmm1, eax                                                      ; +0xce, 0x140117a6e\ncvtdq2ps xmm1, xmm1                                                    ; +0xd2, 0x140117a72\nmovss   xmm10, cs:dword_140623164                                      ; +0xd5, 0x140117a75\nmulss   xmm1, xmm10                                                    ; +0xde, 0x140117a7e\nmovss   xmm0, dword ptr [rsp+130h+var_108]                             ; +0xe3, 0x140117a83\naddss   xmm0, xmm1                                                     ; +0xe9, 0x140117a89\nmovss   dword ptr [rsp+130h+var_108], xmm0                             ; +0xed, 0x140117a8d\nlea     rdx, [rsp+130h+var_108]                                        ; +0xf3, 0x140117a93\nlea     rcx, [rsp+130h+var_100]                                        ; +0xf8, 0x140117a98\ncall    cs:??0CCPoint@cocos2d@@QEAA@AEBV01@@Z; cocos2d::CCPoint::CCPoint(cocos2d::CCPoint const &) ; +0xfd, 0x140117a9d\nmov     rcx, [r15+500h]                                                ; +0x103, 0x140117aa3\nmov     rdx, [rcx+38C8h]                                               ; +0x10a, 0x140117aaa\nmovss   xmm8, dword ptr [rdx+27Ch]                                     ; +0x111, 0x140117ab1\nmovss   xmm0, dword ptr [rax]                                          ; +0x11a, 0x140117aba\ndivss   xmm0, xmm8; X                                                  ; +0x11e, 0x140117abe\nmovss   xmm6, dword ptr [rax+4]                                        ; +0x123, 0x140117ac3\ndivss   xmm6, xmm8                                                     ; +0x128, 0x140117ac8\ncall    floorf                                                         ; +0x12d, 0x140117acd\nmovaps  xmm7, xmm0                                                     ; +0x132, 0x140117ad2\naddss   xmm7, xmm9                                                     ; +0x135, 0x140117ad5\nmulss   xmm7, xmm8                                                     ; +0x13a, 0x140117ada\nmovaps  xmm0, xmm6; X                                                  ; +0x13f, 0x140117adf\ncall    floorf                                                         ; +0x142, 0x140117ae2\naddss   xmm0, xmm9                                                     ; +0x147, 0x140117ae7\nmulss   xmm0, xmm8                                                     ; +0x14c, 0x140117aec\nmovaps  xmm2, xmm0                                                     ; +0x151, 0x140117af1\nmovaps  xmm1, xmm7                                                     ; +0x154, 0x140117af4\nlea     rcx, [rsp+130h+var_E8]                                         ; +0x157, 0x140117af7\ncall    cs:??0CCPoint@cocos2d@@QEAA@MM@Z; cocos2d::CCPoint::CCPoint(float,float) ; +0x15c, 0x140117afc\nmov     r8, rax                                                        ; +0x162, 0x140117b02\nlea     rdx, [rsp+130h+var_110]                                        ; +0x165, 0x140117b05\nmov     rcx, r15                                                       ; +0x16a, 0x140117b0a\ncall    EditorUI__getLimitedPosition                                   ; +0x16d, 0x140117b0d\nlea     rdx, [rsp+130h+var_110]                                        ; +0x172, 0x140117b12\nlea     rcx, [rsp+130h+var_108]                                        ; +0x177, 0x140117b17\ncall    cs:??4CCPoint@cocos2d@@QEAAAEAV01@AEBV01@@Z; cocos2d::CCPoint::operator=(cocos2d::CCPoint const &) ; +0x17c, 0x140117b1c\ninc     dword ptr [r13+0CCh]                                           ; +0x182, 0x140117b22\nlea     rdx, dword_1406C1AA8                                           ; +0x189, 0x140117b29\nlea     rcx, [rsp+130h+var_F0]                                         ; +0x190, 0x140117b30\ncall    cs:??0CCPoint@cocos2d@@QEAA@AEBV01@@Z; cocos2d::CCPoint::CCPoint(cocos2d::CCPoint const &) ; +0x195, 0x140117b35\nxor     ebx, ebx                                                       ; +0x19b, 0x140117b3b\nlea     r14, cs:140000000h                                             ; +0x19d, 0x140117b3d\nmovss   xmm6, cs:dword_1406238D8                                       ; +0x1a4, 0x140117b44\nnop     dword ptr [rax+00h]                                            ; +0x1ac, 0x140117b4c\ncmp     [rsi+10h], rbx                                                 ; +0x1b0, 0x140117b50\njbe     loc_140117D70                                                  ; +0x1b4, 0x140117b54\nmov     rax, rsi                                                       ; +0x1ba, 0x140117b5a\ncmp     qword ptr [rsi+18h], 0Fh                                       ; +0x1bd, 0x140117b5d\njbe     short loc_140117B67                                            ; +0x1c2, 0x140117b62\nmov     rax, [rsi]                                                     ; +0x1c4, 0x140117b64\nmovsx   edi, byte ptr [rax+rbx]                                        ; +0x1c7, 0x140117b67\ncmp     edi, 30h ; '0'                                                 ; +0x1cb, 0x140117b6b\njz      loc_140117CA4                                                  ; +0x1ce, 0x140117b6e\nmov     edx, edi                                                       ; +0x1d4, 0x140117b74\nlea     rcx, [rsp+130h+var_110]                                        ; +0x1d6, 0x140117b76\ncall    GJSmartTemplate__offsetForType                                 ; +0x1db, 0x140117b7b\ntest    rbx, rbx                                                       ; +0x1e0, 0x140117b80\njnz     short loc_140117B9A                                            ; +0x1e3, 0x140117b83\nlea     rdx, [rsp+130h+var_110]                                        ; +0x1e5, 0x140117b85\nlea     rcx, [rsp+130h+var_F0]                                         ; +0x1ea, 0x140117b8a\ncall    cs:??4CCPoint@cocos2d@@QEAAAEAV01@AEBV01@@Z; cocos2d::CCPoint::operator=(cocos2d::CCPoint const &) ; +0x1ef, 0x140117b8f\njmp     loc_140117C26                                                  ; +0x1f5, 0x140117b95\nlea     rax, [rbx-1]                                                   ; +0x1fa, 0x140117b9a\ntest    rax, 0FFFFFFFFFFFFFFFAh                                        ; +0x1fe, 0x140117b9e\njnz     short loc_140117BBF                                            ; +0x204, 0x140117ba4\ncmp     rbx, 2                                                         ; +0x206, 0x140117ba6\njz      short loc_140117BBF                                            ; +0x20a, 0x140117baa\nmovss   xmm0, [rsp+130h+var_10C]                                       ; +0x20c, 0x140117bac\naddss   xmm0, xmm10                                                    ; +0x212, 0x140117bb2\nmovss   [rsp+130h+var_10C], xmm0                                       ; +0x217, 0x140117bb7\njmp     short loc_140117BC5                                            ; +0x21d, 0x140117bbd\nmovss   xmm0, [rsp+130h+var_10C]                                       ; +0x21f, 0x140117bbf\ncmp     rbx, 2                                                         ; +0x225, 0x140117bc5\njz      short loc_140117BD5                                            ; +0x229, 0x140117bc9\nlea     rax, [rbx-7]                                                   ; +0x22b, 0x140117bcb\ncmp     rax, 1                                                         ; +0x22f, 0x140117bcf\nja      short loc_140117BDF                                            ; +0x233, 0x140117bd3\naddss   xmm0, xmm6                                                     ; +0x235, 0x140117bd5\nmovss   [rsp+130h+var_10C], xmm0                                       ; +0x239, 0x140117bd9\nlea     rax, [rbx-3]                                                   ; +0x23f, 0x140117bdf\ntest    rax, 0FFFFFFFFFFFFFFF9h                                        ; +0x243, 0x140117be3\njnz     short loc_140117C03                                            ; +0x249, 0x140117be9\ncmp     rbx, 9                                                         ; +0x24b, 0x140117beb\njz      short loc_140117C03                                            ; +0x24f, 0x140117bef\nmovss   xmm0, [rsp+130h+var_110]                                       ; +0x251, 0x140117bf1\naddss   xmm0, xmm6                                                     ; +0x257, 0x140117bf7\nmovss   [rsp+130h+var_110], xmm0                                       ; +0x25b, 0x140117bfb\njmp     short loc_140117C09                                            ; +0x261, 0x140117c01\nmovss   xmm0, [rsp+130h+var_110]                                       ; +0x263, 0x140117c03\nlea     rax, [rbx-4]                                                   ; +0x269, 0x140117c09\ntest    rax, 0FFFFFFFFFFFFFFF9h                                        ; +0x26d, 0x140117c0d\njnz     short loc_140117C26                                            ; +0x273, 0x140117c13\ncmp     rbx, 0Ah                                                       ; +0x275, 0x140117c15\njz      short loc_140117C26                                            ; +0x279, 0x140117c19\naddss   xmm0, xmm10                                                    ; +0x27b, 0x140117c1b\nmovss   [rsp+130h+var_110], xmm0                                       ; +0x280, 0x140117c20\nlea     r8, [rsp+130h+var_110]                                         ; +0x286, 0x140117c26\nlea     rdx, [rsp+130h+var_100]                                        ; +0x28b, 0x140117c2b\nlea     rcx, [rsp+130h+var_108]                                        ; +0x290, 0x140117c30\ncall    cs:??HCCPoint@cocos2d@@QEBA?AV01@AEBV01@@Z; cocos2d::CCPoint::operator+(cocos2d::CCPoint const &) ; +0x295, 0x140117c35\nlea     eax, [rdi-31h]; switch 28 cases                                ; +0x29b, 0x140117c3b\ncmp     eax, 1Bh                                                       ; +0x29e, 0x140117c3e\nja      short def_140117C59; jumptable 0000000140117C59 default case, cases 49,58-64 ; +0x2a1, 0x140117c41\ncdqe                                                                   ; +0x2a3, 0x140117c43\nmovzx   eax, ds:(byte_140117D88 - 140000000h)[r14+rax]                 ; +0x2a5, 0x140117c45\nmov     ecx, ds:(jpt_140117C59 - 140000000h)[r14+rax*4]                ; +0x2ae, 0x140117c4e\nadd     rcx, r14                                                       ; +0x2b6, 0x140117c56\njmp     rcx; switch jump                                               ; +0x2b9, 0x140117c59\nmov     edx, 0B50h; jumptable 0000000140117C59 cases 50-53             ; +0x2bb, 0x140117c5b\njmp     short loc_140117C6E                                            ; +0x2c0, 0x140117c60\nmov     edx, 0B51h; jumptable 0000000140117C59 cases 54-57,65-76       ; +0x2c2, 0x140117c62\njmp     short loc_140117C6E                                            ; +0x2c7, 0x140117c67\nmov     edx, 0B4Fh; jumptable 0000000140117C59 default case, cases 49,58-64 ; +0x2c9, 0x140117c69\nlea     r8, [rsp+130h+var_100]                                         ; +0x2ce, 0x140117c6e\nmov     rcx, r15                                                       ; +0x2d3, 0x140117c73\ncall    EditorUI__createObject                                         ; +0x2d6, 0x140117c76\nmov     r14, rax                                                       ; +0x2db, 0x140117c7b\nmov     rdx, rax                                                       ; +0x2de, 0x140117c7e\nmov     ecx, edi                                                       ; +0x2e1, 0x140117c81\ncall    GJSmartTemplate__applyTransformationsForType                   ; +0x2e3, 0x140117c83\ntest    rbx, rbx                                                       ; +0x2e8, 0x140117c88\njz      short loc_140117C9D                                            ; +0x2eb, 0x140117c8b\nmov     byte ptr [r14+550h], 1                                         ; +0x2ed, 0x140117c8d\nmov     rcx, r14                                                       ; +0x2f5, 0x140117c95\ncall    SmartGameObject__updateSmartFrame                              ; +0x2f8, 0x140117c98\nlea     r14, cs:140000000h                                             ; +0x2fd, 0x140117c9d\ninc     rbx                                                            ; +0x304, 0x140117ca4\ncmp     rbx, 9                                                         ; +0x307, 0x140117ca7\njl      loc_140117B50                                                  ; +0x30b, 0x140117cab\ntest    r12d, r12d                                                     ; +0x311, 0x140117cb1\njle     short loc_140117D2B                                            ; +0x314, 0x140117cb4\nmov     rdx, rsi                                                       ; +0x316, 0x140117cb6\nlea     rcx, [rsp+130h+var_E0]                                         ; +0x319, 0x140117cb9\ncall    sub_14003BDB0                                                  ; +0x31e, 0x140117cbe\nmov     r8d, r12d                                                      ; +0x323, 0x140117cc3\nmov     rdx, rax                                                       ; +0x326, 0x140117cc6\nmov     rcx, r13                                                       ; +0x329, 0x140117cc9\ncall    GJSmartTemplate__getPrefabWithID                               ; +0x32c, 0x140117ccc\ntest    rax, rax                                                       ; +0x331, 0x140117cd1\njz      short loc_140117D2B                                            ; +0x334, 0x140117cd4\nlea     rdx, [rax+58h]                                                 ; +0x336, 0x140117cd6\nlea     rcx, [rbp+57h+var_C0]                                          ; +0x33a, 0x140117cda\ncall    sub_14003BDB0                                                  ; +0x33e, 0x140117cde\nxor     r9d, r9d                                                       ; +0x343, 0x140117ce3\nxor     r8d, r8d                                                       ; +0x346, 0x140117ce6\nmov     rdx, rax                                                       ; +0x349, 0x140117ce9\nmov     rcx, r15                                                       ; +0x34c, 0x140117cec\ncall    EditorUI__pasteObjects                                         ; +0x34f, 0x140117cef\nmov     rbx, rax                                                       ; +0x354, 0x140117cf4\nlea     r8, [rsp+130h+var_F0]                                          ; +0x357, 0x140117cf7\nlea     rdx, [rsp+130h+var_100]                                        ; +0x35c, 0x140117cfc\nlea     rcx, [rsp+130h+var_108]                                        ; +0x361, 0x140117d01\ncall    cs:??HCCPoint@cocos2d@@QEBA?AV01@AEBV01@@Z; cocos2d::CCPoint::operator+(cocos2d::CCPoint const &) ; +0x366, 0x140117d06\nxor     r9d, r9d                                                       ; +0x36c, 0x140117d0c\nlea     r8, [rsp+130h+var_100]                                         ; +0x36f, 0x140117d0f\nmov     rdx, rbx                                                       ; +0x374, 0x140117d14\nmov     rcx, r15                                                       ; +0x377, 0x140117d17\ncall    EditorUI__repositionObjectsToCenter                            ; +0x37a, 0x140117d1a\nmov     rdx, rbx                                                       ; +0x37f, 0x140117d1f\nmov     rcx, r15                                                       ; +0x382, 0x140117d22\ncall    EditorUI__deleteSmartBlocksFromObjects                         ; +0x385, 0x140117d25\nnop                                                                    ; +0x38a, 0x140117d2a\nmov     rcx, rsi                                                       ; +0x38b, 0x140117d2b\ncall    sub_14003A830                                                  ; +0x38e, 0x140117d2e\nmov     rcx, [rbp+57h+var_98]                                          ; +0x393, 0x140117d33\nxor     rcx, rsp; StackCookie                                          ; +0x397, 0x140117d37\ncall    __security_check_cookie                                        ; +0x39a, 0x140117d3a\nlea     r11, [rsp+130h+var_38]                                         ; +0x39f, 0x140117d3f\nmovaps  xmm6, xmmword ptr [r11-18h]                                    ; +0x3a7, 0x140117d47\nmovaps  xmm7, xmmword ptr [r11-28h]                                    ; +0x3ac, 0x140117d4c\nmovaps  xmm8, xmmword ptr [r11-38h]                                    ; +0x3b1, 0x140117d51\nmovaps  xmm9, xmmword ptr [r11-48h]                                    ; +0x3b6, 0x140117d56\nmovaps  xmm10, xmmword ptr [r11-58h]                                   ; +0x3bb, 0x140117d5b\nmov     rsp, r11                                                       ; +0x3c0, 0x140117d60\npop     r15                                                            ; +0x3c3, 0x140117d63\npop     r14                                                            ; +0x3c5, 0x140117d65\npop     r13                                                            ; +0x3c7, 0x140117d67\npop     r12                                                            ; +0x3c9, 0x140117d69\npop     rdi                                                            ; +0x3cb, 0x140117d6b\npop     rsi                                                            ; +0x3cc, 0x140117d6c\npop     rbx                                                            ; +0x3cd, 0x140117d6d\npop     rbp                                                            ; +0x3ce, 0x140117d6e\nretn                                                                   ; +0x3cf, 0x140117d6f\ncall    sub_14003BCC0                                                  ; +0x3d0, 0x140117d70\nalign 8                                                                ; +0x3d5, 0x140117d75\ndd offset def_140117C59 - 140000000h; jump table for switch statement  ; +0x3d8, 0x140117d78\ndb      0,     1,     1,     1; indirect table for switch statement    ; +0x3e8, 0x140117d88", "xrefs": ["SetupSmartBlockLayer::onCreateAll @ 0x14045834e", "BrowseSmartTemplateLayer::createPrefab @ 0x14045b097", "<???> @ 0x1406c92e8", "<???> @ 0x1406c92f4"], "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"}