{"type": "func", "start": 5370508160, "end": 5370509112, "name": "EditorUI::createPrefab", "pseudocode": "// \n// EditorUI::createPrefab from 0x1401b7380 to 0x1401b7738 (952 bytes)\n// \n// 3 xrefs:\n// > SetupSmartBlockLayer::onCreateAll @ 0x1405edce1\n// > BrowseSmartTemplateLayer::createPrefab @ 0x1405f0ba7\n// > <???> @ 0x14091a240\n// \n// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\n// \n// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n// Generated at Fri, 27 Nov 2026 11:27:58 +0000\n// \n\n// Hidden C++ exception states: #wind=1\nvoid __fastcall EditorUI::createPrefab(__int64 a1, __int64 a2, _QWORD *a3, int a4)\n{\n  __int64 v8; // rdx\n  __int64 v9; // rcx\n  int v10; // edi\n  int v11; // eax\n  __int64 v12; // rax\n  __int64 v13; // rbx\n  __int64 v14; // rax\n  __int64 v15; // rax\n  __int64 GridSnappedPos; // rax\n  __int64 v17; // rdx\n  __int64 v18; // rcx\n  __int64 v19; // r8\n  __int64 v20; // r9\n  __int64 v21; // r15\n  _QWORD *v22; // rax\n  unsigned int v23; // r14d\n  float v24; // xmm0_4\n  float v25; // xmm0_4\n  unsigned int v26; // edx\n  __int64 Object; // rbx\n  __int64 v28; // rax\n  __int64 PrefabWithID; // rax\n  __int64 v30; // rax\n  __int64 v31; // rbx\n  float v32; // [rsp+28h] [rbp-89h] BYREF\n  float v33; // [rsp+2Ch] [rbp-85h]\n  float v34; // [rsp+30h] [rbp-81h] BYREF\n  _BYTE v35[8]; // [rsp+38h] [rbp-79h] BYREF\n  __int64 v36; // [rsp+40h] [rbp-71h] BYREF\n  float v37[2]; // [rsp+48h] [rbp-69h] BYREF\n  _BYTE v38[8]; // [rsp+50h] [rbp-61h] BYREF\n  _BYTE v39[32]; // [rsp+58h] [rbp-59h] BYREF\n  _BYTE v40[32]; // [rsp+78h] [rbp-39h] BYREF\n  _QWORD *v41; // [rsp+98h] [rbp-19h]\n\n  v36 = a2;\n  v41 = a3;\n  v8 = *(_QWORD *)(a1 + 1512);\n  v9 = *(unsigned int *)(v8 + 15504);\n  v10 = 0;\n  if ( (int)v9 >= 0 )\n  {\n    v11 = *(_DWORD *)(v8 + 15440) - v9;\n    v9 = 0;\n    if ( v11 > 1 )\n    {\n      do\n      {\n        if ( (int)v9 >= 7 )\n          break;\n        v11 = (unsigned int)v11 >> 1;\n        v9 = (unsigned int)(v9 + 1);\n      }\n      while ( (unsigned int)v11 > 1 );\n    }\n    ++*(_DWORD *)(v8 + 4LL * (int)v9 + 15472);\n  }\n  *(_DWORD *)(v8 + 15504) = *(_DWORD *)(v8 + 15440);\n  v12 = cocos2d::CCDirector::sharedDirector(v9);\n  cocos2d::CCDirector::getWinSize(v12, v37);\n  v13 = *(_QWORD *)(*(_QWORD *)(a1 + 1512) + 4296LL);\n  cocos2d::CCPoint::CCPoint(\n    (cocos2d::CCPoint *)v35,\n    v37[0] * 0.5,\n    (float)(*(float *)(a1 + 904) * 0.5) + (float)(v37[1] * 0.5));\n  cocos2d::CCNode::convertToNodeSpace(v13, &v34, v14);\n  v34 = v34 + (float)((float)(4 * *(_DWORD *)(a2 + 204)) * 30.0);\n  cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v35, (const struct cocos2d::CCPoint *)&v34);\n  GridSnappedPos = EditorUI::getGridSnappedPos(a1, &v32, v15);\n  cocos2d::CCPoint::operator=(&v34, GridSnappedPos);\n  ++*(_DWORD *)(a2 + 204);\n  cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v38, (const struct cocos2d::CCPoint *)&dword_14090A6E8);\n  v21 = 0;\n  do\n  {\n    if ( a3[2] <= (unsigned __int64)(unsigned int)v10 )\n      sub_14003F4D0(v18, v17, v19, v20);\n    v22 = a3;\n    if ( a3[3] > 0xFu )\n      v22 = (_QWORD *)*a3;\n    v23 = *((char *)v22 + v21);\n    if ( v23 != 48 )\n    {\n      GJSmartTemplate::offsetForType(&v32, v23);\n      if ( v10 )\n      {\n        if ( ((v10 - 1) & 0xFFFFFFFA) != 0 || v10 == 2 )\n        {\n          v24 = v33;\n        }\n        else\n        {\n          v24 = v33 + 30.0;\n          v33 = v33 + 30.0;\n        }\n        if ( v10 == 2 || (unsigned int)(v10 - 7) <= 1 )\n          v33 = v24 + -30.0;\n        if ( ((v10 - 3) & 0xFFFFFFF9) != 0 )\n        {\n          v25 = v32;\n        }\n        else\n        {\n          v25 = v32 + -30.0;\n          v32 = v32 + -30.0;\n        }\n        if ( ((v10 - 4) & 0xFFFFFFF9) == 0 )\n          v32 = v25 + 30.0;\n      }\n      else\n      {\n        cocos2d::CCPoint::operator=(v38, &v32);\n      }\n      cocos2d::CCPoint::operator+(&v34, v35, &v32);\n      switch ( v23 )\n      {\n        case '2':\n        case '3':\n        case '4':\n        case '5':\n          v26 = 2896;\n          break;\n        case '6':\n        case '7':\n        case '8':\n        case '9':\n        case 'A':\n        case 'B':\n        case 'C':\n        case 'D':\n        case 'E':\n        case 'F':\n        case 'G':\n        case 'H':\n        case 'I':\n        case 'J':\n        case 'K':\n        case 'L':\n          v26 = 2897;\n          break;\n        default:\n          v26 = 2895;\n          break;\n      }\n      Object = EditorUI::createObject(a1, v26, (const struct cocos2d::CCPoint *)v35);\n      GJSmartTemplate::applyTransformationsForType(v23, Object);\n      if ( v10 )\n      {\n        *(_BYTE *)(Object + 1360) = 1;\n        SmartGameObject::updateSmartFrame(Object);\n      }\n    }\n    ++v10;\n    ++v21;\n  }\n  while ( v10 < 9 );\n  if ( a4 > 0 )\n  {\n    v28 = sub_14003F4F0((__int64)v39, (__int64)a3);\n    PrefabWithID = GJSmartTemplate::getPrefabWithID(v36, v28, (unsigned int)a4);\n    if ( PrefabWithID )\n    {\n      v30 = sub_14003F4F0((__int64)v40, PrefabWithID + 88);\n      v31 = EditorUI::pasteObjects(a1, v30, 0, 0);\n      if ( v31 )\n      {\n        cocos2d::CCPoint::operator+(&v34, &v36, v38);\n        EditorUI::repositionObjectsToCenter(a1, v31, &v36, 0);\n        EditorUI::deleteSmartBlocksFromObjects(a1, v31);\n      }\n    }\n  }\n  sub_14003D310((__int64)a3);\n}", "assembly": "; \n; EditorUI::createPrefab from 0x1401b7380 to 0x1401b7738 (952 bytes)\n; \n; 3 xrefs:\n; > SetupSmartBlockLayer::onCreateAll @ 0x1405edce1\n; > BrowseSmartTemplateLayer::createPrefab @ 0x1405f0ba7\n; > <???> @ 0x14091a240\n; \n; This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\n; \n; Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n; Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n; Generated at Fri, 27 Nov 2026 11:27:58 +0000\n; \nmov     rax, rsp                                                       ; +0x0, 0x1401b7380\npush    rbp                                                            ; +0x3, 0x1401b7383\npush    rbx                                                            ; +0x4, 0x1401b7384\npush    rsi                                                            ; +0x5, 0x1401b7385\npush    rdi                                                            ; +0x6, 0x1401b7386\npush    r12                                                            ; +0x7, 0x1401b7387\npush    r13                                                            ; +0x9, 0x1401b7389\npush    r14                                                            ; +0xb, 0x1401b738b\npush    r15                                                            ; +0xd, 0x1401b738d\nlea     rbp, [rax-5Fh]                                                 ; +0xf, 0x1401b738f\nsub     rsp, 0C8h                                                      ; +0x13, 0x1401b7393\nmovaps  xmmword ptr [rax-58h], xmm6                                    ; +0x1a, 0x1401b739a\nmovaps  xmmword ptr [rax-68h], xmm7                                    ; +0x1e, 0x1401b739e\nmov     rax, cs:__security_cookie                                      ; +0x22, 0x1401b73a2\nxor     rax, rsp                                                       ; +0x29, 0x1401b73a9\nmov     qword ptr [rbp+57h+var_68], rax                                ; +0x2c, 0x1401b73ac\nmov     r12d, r9d                                                      ; +0x30, 0x1401b73b0\nmov     rsi, r8                                                        ; +0x33, 0x1401b73b3\nmov     r14, rdx                                                       ; +0x36, 0x1401b73b6\nmov     [rbp+57h+var_C8], rdx                                          ; +0x39, 0x1401b73b9\nmov     r13, rcx                                                       ; +0x3d, 0x1401b73bd\nmov     [rbp+57h+var_70], r8                                           ; +0x40, 0x1401b73c0\nmov     rdx, [rcx+5E8h]                                                ; +0x44, 0x1401b73c4\nmov     ecx, [rdx+3C90h]                                               ; +0x4b, 0x1401b73cb\nxor     edi, edi                                                       ; +0x51, 0x1401b73d1\ntest    ecx, ecx                                                       ; +0x53, 0x1401b73d3\njs      short loc_1401B73FE                                            ; +0x55, 0x1401b73d5\nmov     eax, [rdx+3C50h]                                               ; +0x57, 0x1401b73d7\nsub     eax, ecx                                                       ; +0x5d, 0x1401b73dd\nmov     ecx, edi                                                       ; +0x5f, 0x1401b73df\ncmp     eax, 1                                                         ; +0x61, 0x1401b73e1\njle     short loc_1401B73F4                                            ; +0x64, 0x1401b73e4\ncmp     ecx, 7                                                         ; +0x66, 0x1401b73e6\njge     short loc_1401B73F4                                            ; +0x69, 0x1401b73e9\nshr     eax, 1                                                         ; +0x6b, 0x1401b73eb\ninc     ecx                                                            ; +0x6d, 0x1401b73ed\ncmp     eax, 1                                                         ; +0x6f, 0x1401b73ef\nja      short loc_1401B73E6                                            ; +0x72, 0x1401b73f2\nmovsxd  rax, ecx                                                       ; +0x74, 0x1401b73f4\ninc     dword ptr [rdx+rax*4+3C70h]                                    ; +0x77, 0x1401b73f7\nmov     eax, [rdx+3C50h]                                               ; +0x7e, 0x1401b73fe\nmov     [rdx+3C90h], eax                                               ; +0x84, 0x1401b7404\ncall    cs:?sharedDirector@CCDirector@cocos2d@@SAPEAV12@XZ; cocos2d::CCDirector::sharedDirector(void) ; +0x8a, 0x1401b740a\nmov     rcx, rax                                                       ; +0x90, 0x1401b7410\nlea     rdx, [rbp+57h+var_C0]                                          ; +0x93, 0x1401b7413\ncall    cs:?getWinSize@CCDirector@cocos2d@@QEAA?AVCCSize@2@XZ; cocos2d::CCDirector::getWinSize(void) ; +0x97, 0x1401b7417\nmov     rax, [r13+5E8h]                                                ; +0x9d, 0x1401b741d\nmov     rbx, [rax+10C8h]                                               ; +0xa4, 0x1401b7424\nmovss   xmm2, dword ptr [r13+388h]                                     ; +0xab, 0x1401b742b\nmovss   xmm3, cs:dword_140834F20                                       ; +0xb4, 0x1401b7434\nmulss   xmm2, xmm3                                                     ; +0xbc, 0x1401b743c\nmovss   xmm0, [rbp+57h+var_BC]                                         ; +0xc0, 0x1401b7440\nmulss   xmm0, xmm3                                                     ; +0xc5, 0x1401b7445\naddss   xmm2, xmm0                                                     ; +0xc9, 0x1401b7449\nmovss   xmm1, [rbp+57h+var_C0]                                         ; +0xcd, 0x1401b744d\nmulss   xmm1, xmm3                                                     ; +0xd2, 0x1401b7452\nlea     rcx, [rbp+57h+var_D0]                                          ; +0xd6, 0x1401b7456\ncall    cs:??0CCPoint@cocos2d@@QEAA@MM@Z; cocos2d::CCPoint::CCPoint(float,float) ; +0xda, 0x1401b745a\nmov     r8, rax                                                        ; +0xe0, 0x1401b7460\nlea     rdx, [rsp+28h]                                                 ; +0xe3, 0x1401b7463\nmov     rcx, rbx                                                       ; +0xe8, 0x1401b7468\ncall    cs:?convertToNodeSpace@CCNode@cocos2d@@QEAA?AVCCPoint@2@AEBV32@@Z; cocos2d::CCNode::convertToNodeSpace(cocos2d::CCPoint const &) ; +0xeb, 0x1401b746b\nmov     eax, [r14+0CCh]                                                ; +0xf1, 0x1401b7471\nshl     eax, 2                                                         ; +0xf8, 0x1401b7478\nmovd    xmm1, eax                                                      ; +0xfb, 0x1401b747b\ncvtdq2ps xmm1, xmm1                                                    ; +0xff, 0x1401b747f\nmovss   xmm6, cs:dword_140835624                                       ; +0x102, 0x1401b7482\nmulss   xmm1, xmm6                                                     ; +0x10a, 0x1401b748a\nmovss   xmm0, dword ptr [rsp+28h]                                      ; +0x10e, 0x1401b748e\naddss   xmm0, xmm1                                                     ; +0x114, 0x1401b7494\nmovss   dword ptr [rsp+28h], xmm0                                      ; +0x118, 0x1401b7498\nlea     rdx, [rsp+28h]                                                 ; +0x11e, 0x1401b749e\nlea     rcx, [rbp+57h+var_D0]                                          ; +0x123, 0x1401b74a3\ncall    cs:??0CCPoint@cocos2d@@QEAA@AEBV01@@Z; cocos2d::CCPoint::CCPoint(cocos2d::CCPoint const &) ; +0x127, 0x1401b74a7\nmov     r8, rax                                                        ; +0x12d, 0x1401b74ad\nlea     rdx, [rsp+100h+var_E0]                                         ; +0x130, 0x1401b74b0\nmov     rcx, r13                                                       ; +0x135, 0x1401b74b5\ncall    EditorUI__getGridSnappedPos                                    ; +0x138, 0x1401b74b8\nmov     rdx, rax                                                       ; +0x13d, 0x1401b74bd\nlea     rcx, [rsp+28h]                                                 ; +0x140, 0x1401b74c0\ncall    cs:??4CCPoint@cocos2d@@QEAAAEAV01@AEBV01@@Z; cocos2d::CCPoint::operator=(cocos2d::CCPoint const &) ; +0x145, 0x1401b74c5\ninc     dword ptr [r14+0CCh]                                           ; +0x14b, 0x1401b74cb\nlea     rdx, dword_14090A6E8                                           ; +0x152, 0x1401b74d2\nlea     rcx, [rbp+57h+var_B8]                                          ; +0x159, 0x1401b74d9\ncall    cs:??0CCPoint@cocos2d@@QEAA@AEBV01@@Z; cocos2d::CCPoint::CCPoint(cocos2d::CCPoint const &) ; +0x15d, 0x1401b74dd\nmov     r15, rdi                                                       ; +0x163, 0x1401b74e3\nlea     rbx, cs:140000000h                                             ; +0x166, 0x1401b74e6\nmovss   xmm7, cs:dword_140835E88                                       ; +0x16d, 0x1401b74ed\nnop     word ptr [rax+rax+00000000h]                                   ; +0x175, 0x1401b74f5\nmov     eax, edi                                                       ; +0x180, 0x1401b7500\ncmp     [rsi+10h], rax                                                 ; +0x182, 0x1401b7502\njbe     loc_1401B7704                                                  ; +0x186, 0x1401b7506\nmov     rax, rsi                                                       ; +0x18c, 0x1401b750c\ncmp     qword ptr [rsi+18h], 0Fh                                       ; +0x18f, 0x1401b750f\njbe     short loc_1401B7519                                            ; +0x194, 0x1401b7514\nmov     rax, [rsi]                                                     ; +0x196, 0x1401b7516\nmovsx   r14d, byte ptr [rax+r15]                                       ; +0x199, 0x1401b7519\ncmp     r14d, 30h ; '0'                                                ; +0x19e, 0x1401b751e\njz      loc_1401B7642                                                  ; +0x1a2, 0x1401b7522\nmov     edx, r14d                                                      ; +0x1a8, 0x1401b7528\nlea     rcx, [rsp+100h+var_E0]                                         ; +0x1ab, 0x1401b752b\ncall    GJSmartTemplate__offsetForType                                 ; +0x1b0, 0x1401b7530\ntest    edi, edi                                                       ; +0x1b5, 0x1401b7535\njnz     short loc_1401B754A                                            ; +0x1b7, 0x1401b7537\nlea     rdx, [rsp+100h+var_E0]                                         ; +0x1b9, 0x1401b7539\nlea     rcx, [rbp+57h+var_B8]                                          ; +0x1be, 0x1401b753e\ncall    cs:??4CCPoint@cocos2d@@QEAAAEAV01@AEBV01@@Z; cocos2d::CCPoint::operator=(cocos2d::CCPoint const &) ; +0x1c2, 0x1401b7542\njmp     short loc_1401B75C8                                            ; +0x1c8, 0x1401b7548\nlea     eax, [rdi-1]                                                   ; +0x1ca, 0x1401b754a\ntest    eax, 0FFFFFFFAh                                                ; +0x1cd, 0x1401b754d\njnz     short loc_1401B756B                                            ; +0x1d2, 0x1401b7552\ncmp     edi, 2                                                         ; +0x1d4, 0x1401b7554\njz      short loc_1401B756B                                            ; +0x1d7, 0x1401b7557\nmovss   xmm0, dword ptr [rsp+24h]                                      ; +0x1d9, 0x1401b7559\naddss   xmm0, xmm6                                                     ; +0x1df, 0x1401b755f\nmovss   dword ptr [rsp+24h], xmm0                                      ; +0x1e3, 0x1401b7563\njmp     short loc_1401B7571                                            ; +0x1e9, 0x1401b7569\nmovss   xmm0, dword ptr [rsp+24h]                                      ; +0x1eb, 0x1401b756b\ncmp     edi, 2                                                         ; +0x1f1, 0x1401b7571\njz      short loc_1401B757E                                            ; +0x1f4, 0x1401b7574\nlea     eax, [rdi-7]                                                   ; +0x1f6, 0x1401b7576\ncmp     eax, 1                                                         ; +0x1f9, 0x1401b7579\nja      short loc_1401B7588                                            ; +0x1fc, 0x1401b757c\naddss   xmm0, xmm7                                                     ; +0x1fe, 0x1401b757e\nmovss   dword ptr [rsp+24h], xmm0                                      ; +0x202, 0x1401b7582\nlea     eax, [rdi-3]                                                   ; +0x208, 0x1401b7588\ntest    eax, 0FFFFFFF9h                                                ; +0x20b, 0x1401b758b\njnz     short loc_1401B75A9                                            ; +0x210, 0x1401b7590\ncmp     edi, 9                                                         ; +0x212, 0x1401b7592\njz      short loc_1401B75A9                                            ; +0x215, 0x1401b7595\nmovss   xmm0, [rsp+100h+var_E0]                                        ; +0x217, 0x1401b7597\naddss   xmm0, xmm7                                                     ; +0x21d, 0x1401b759d\nmovss   [rsp+100h+var_E0], xmm0                                        ; +0x221, 0x1401b75a1\njmp     short loc_1401B75AF                                            ; +0x227, 0x1401b75a7\nmovss   xmm0, [rsp+100h+var_E0]                                        ; +0x229, 0x1401b75a9\nlea     eax, [rdi-4]                                                   ; +0x22f, 0x1401b75af\ntest    eax, 0FFFFFFF9h                                                ; +0x232, 0x1401b75b2\njnz     short loc_1401B75C8                                            ; +0x237, 0x1401b75b7\ncmp     edi, 0Ah                                                       ; +0x239, 0x1401b75b9\njz      short loc_1401B75C8                                            ; +0x23c, 0x1401b75bc\naddss   xmm0, xmm6                                                     ; +0x23e, 0x1401b75be\nmovss   [rsp+100h+var_E0], xmm0                                        ; +0x242, 0x1401b75c2\nlea     r8, [rsp+100h+var_E0]                                          ; +0x248, 0x1401b75c8\nlea     rdx, [rbp+57h+var_D0]                                          ; +0x24d, 0x1401b75cd\nlea     rcx, [rsp+28h]                                                 ; +0x251, 0x1401b75d1\ncall    cs:??HCCPoint@cocos2d@@QEBA?AV01@AEBV01@@Z; cocos2d::CCPoint::operator+(cocos2d::CCPoint const &) ; +0x256, 0x1401b75d6\nlea     eax, [r14-31h]; switch 28 cases                                ; +0x25c, 0x1401b75dc\ncmp     eax, 1Bh                                                       ; +0x260, 0x1401b75e0\nja      short def_1401B75F9; jumptable 00000001401B75F9 default case, cases 49,58-64 ; +0x263, 0x1401b75e3\ncdqe                                                                   ; +0x265, 0x1401b75e5\nmovzx   eax, ds:(byte_1401B771C - 140000000h)[rbx+rax]                 ; +0x267, 0x1401b75e7\nmov     ecx, ds:(jpt_1401B75F9 - 140000000h)[rbx+rax*4]                ; +0x26f, 0x1401b75ef\nadd     rcx, rbx                                                       ; +0x276, 0x1401b75f6\njmp     rcx; switch jump                                               ; +0x279, 0x1401b75f9\nmov     edx, 0B50h; jumptable 00000001401B75F9 cases 50-53             ; +0x27b, 0x1401b75fb\njmp     short loc_1401B760E                                            ; +0x280, 0x1401b7600\nmov     edx, 0B51h; jumptable 00000001401B75F9 cases 54-57,65-76       ; +0x282, 0x1401b7602\njmp     short loc_1401B760E                                            ; +0x287, 0x1401b7607\nmov     edx, 0B4Fh; jumptable 00000001401B75F9 default case, cases 49,58-64 ; +0x289, 0x1401b7609\nlea     r8, [rbp+57h+var_D0]                                           ; +0x28e, 0x1401b760e\nmov     rcx, r13                                                       ; +0x292, 0x1401b7612\ncall    EditorUI__createObject                                         ; +0x295, 0x1401b7615\nmov     rbx, rax                                                       ; +0x29a, 0x1401b761a\nmov     rdx, rax                                                       ; +0x29d, 0x1401b761d\nmov     ecx, r14d                                                      ; +0x2a0, 0x1401b7620\ncall    GJSmartTemplate__applyTransformationsForType                   ; +0x2a3, 0x1401b7623\ntest    edi, edi                                                       ; +0x2a8, 0x1401b7628\njz      short loc_1401B763B                                            ; +0x2aa, 0x1401b762a\nmov     byte ptr [rbx+550h], 1                                         ; +0x2ac, 0x1401b762c\nmov     rcx, rbx                                                       ; +0x2b3, 0x1401b7633\ncall    SmartGameObject__updateSmartFrame                              ; +0x2b6, 0x1401b7636\nlea     rbx, cs:140000000h                                             ; +0x2bb, 0x1401b763b\ninc     edi                                                            ; +0x2c2, 0x1401b7642\ninc     r15                                                            ; +0x2c4, 0x1401b7644\ncmp     edi, 9                                                         ; +0x2c7, 0x1401b7647\njl      loc_1401B7500                                                  ; +0x2ca, 0x1401b764a\ntest    r12d, r12d                                                     ; +0x2d0, 0x1401b7650\njle     short loc_1401B76CC                                            ; +0x2d3, 0x1401b7653\nmov     rdx, rsi                                                       ; +0x2d5, 0x1401b7655\nlea     rcx, [rbp+57h+var_B0]                                          ; +0x2d8, 0x1401b7658\ncall    sub_14003F4F0                                                  ; +0x2dc, 0x1401b765c\nmov     r8d, r12d                                                      ; +0x2e1, 0x1401b7661\nmov     rdx, rax                                                       ; +0x2e4, 0x1401b7664\nmov     rcx, [rbp+57h+var_C8]                                          ; +0x2e7, 0x1401b7667\ncall    GJSmartTemplate__getPrefabWithID                               ; +0x2eb, 0x1401b766b\ntest    rax, rax                                                       ; +0x2f0, 0x1401b7670\njz      short loc_1401B76CC                                            ; +0x2f3, 0x1401b7673\nlea     rdx, [rax+58h]                                                 ; +0x2f5, 0x1401b7675\nlea     rcx, [rbp+57h+var_90]                                          ; +0x2f9, 0x1401b7679\ncall    sub_14003F4F0                                                  ; +0x2fd, 0x1401b767d\nxor     r9d, r9d                                                       ; +0x302, 0x1401b7682\nxor     r8d, r8d                                                       ; +0x305, 0x1401b7685\nmov     rdx, rax                                                       ; +0x308, 0x1401b7688\nmov     rcx, r13                                                       ; +0x30b, 0x1401b768b\ncall    EditorUI__pasteObjects                                         ; +0x30e, 0x1401b768e\nmov     rbx, rax                                                       ; +0x313, 0x1401b7693\ntest    rax, rax                                                       ; +0x316, 0x1401b7696\njz      short loc_1401B76CC                                            ; +0x319, 0x1401b7699\nlea     r8, [rbp+57h+var_B8]                                           ; +0x31b, 0x1401b769b\nlea     rdx, [rbp+57h+var_C8]                                          ; +0x31f, 0x1401b769f\nlea     rcx, [rsp+28h]                                                 ; +0x323, 0x1401b76a3\ncall    cs:??HCCPoint@cocos2d@@QEBA?AV01@AEBV01@@Z; cocos2d::CCPoint::operator+(cocos2d::CCPoint const &) ; +0x328, 0x1401b76a8\nxor     r9d, r9d                                                       ; +0x32e, 0x1401b76ae\nlea     r8, [rbp+57h+var_C8]                                           ; +0x331, 0x1401b76b1\nmov     rdx, rbx                                                       ; +0x335, 0x1401b76b5\nmov     rcx, r13                                                       ; +0x338, 0x1401b76b8\ncall    EditorUI__repositionObjectsToCenter                            ; +0x33b, 0x1401b76bb\nmov     rdx, rbx                                                       ; +0x340, 0x1401b76c0\nmov     rcx, r13                                                       ; +0x343, 0x1401b76c3\ncall    EditorUI__deleteSmartBlocksFromObjects                         ; +0x346, 0x1401b76c6\nnop                                                                    ; +0x34b, 0x1401b76cb\nmov     rcx, rsi                                                       ; +0x34c, 0x1401b76cc\ncall    sub_14003D310                                                  ; +0x34f, 0x1401b76cf\nmov     rcx, qword ptr [rbp+57h+var_68]                                ; +0x354, 0x1401b76d4\nxor     rcx, rsp; StackCookie                                          ; +0x358, 0x1401b76d8\ncall    __security_check_cookie                                        ; +0x35b, 0x1401b76db\nmovaps  xmm6, [rsp+100h+var_58+8]                                      ; +0x360, 0x1401b76e0\nmovaps  xmm7, [rsp+100h+var_68+8]                                      ; +0x368, 0x1401b76e8\nadd     rsp, 0C8h                                                      ; +0x370, 0x1401b76f0\npop     r15                                                            ; +0x377, 0x1401b76f7\npop     r14                                                            ; +0x379, 0x1401b76f9\npop     r13                                                            ; +0x37b, 0x1401b76fb\npop     r12                                                            ; +0x37d, 0x1401b76fd\npop     rdi                                                            ; +0x37f, 0x1401b76ff\npop     rsi                                                            ; +0x380, 0x1401b7700\npop     rbx                                                            ; +0x381, 0x1401b7701\npop     rbp                                                            ; +0x382, 0x1401b7702\nretn                                                                   ; +0x383, 0x1401b7703\ncall    sub_14003F4D0                                                  ; +0x384, 0x1401b7704\nalign 4                                                                ; +0x389, 0x1401b7709\ndd offset def_1401B75F9 - 140000000h; jump table for switch statement  ; +0x38c, 0x1401b770c\ndb      0,     1,     1,     1; indirect table for switch statement    ; +0x39c, 0x1401b771c", "xrefs": ["SetupSmartBlockLayer::onCreateAll @ 0x1405edce1", "BrowseSmartTemplateLayer::createPrefab @ 0x1405f0ba7", "<???> @ 0x14091a240"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "pc", "bida_info": "8.3.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings"}