{"type": "func", "start": 5373266832, "end": 5373269374, "name": "SetupSmartTemplateLayer::init", "pseudocode": "// \n// SetupSmartTemplateLayer::init from 0x140458b90 to 0x14045957e (2542 bytes)\n// \n// 2 xrefs:\n// > SetupSmartTemplateLayer::create @ 0x140458b56\n// > <???> @ 0x1406daa90\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=7\nbool SetupSmartTemplateLayer::init(SetupSmartTemplateLayer *a1, GJSmartTemplate *a2)\n{\n  bool result; // al\n  __int64 v5; // rcx\n  cocos2d::CCDirector *v6; // rax\n  struct cocos2d::CCRect *v7; // rax\n  struct cocos2d::extension::CCScale9Sprite *v8; // rdi\n  cocos2d::extension::CCScale9Sprite_vtbl *v9; // rbx\n  const cocos2d::CCSize *v10; // rax\n  float v11; // xmm0_4\n  cocos2d::extension::CCScale9Sprite_vtbl *v12; // rbx\n  const cocos2d::CCPoint *v13; // rax\n  __int64 v14; // rcx\n  cocos2d::CCMenu *v15; // rax\n  struct cocos2d::CCSprite *v16; // rbx\n  CCMenuItemSpriteExtra *v17; // rdi\n  float v18; // xmm0_4\n  CCMenuItemSpriteExtra_vtbl *v19; // rbx\n  struct cocos2d::CCPoint v20; // rax\n  char *v21; // rdi\n  float v22; // xmm0_4\n  __int64 v23; // rbx\n  double v24; // xmm0_8\n  struct cocos2d::CCPoint v25; // rax\n  GJSmartTemplate *m_smartTemplate; // rdx\n  cocos2d::CCRect *p_Block; // rax\n  int v28; // r14d\n  cocos2d::CCRect v29; // xmm8\n  __m128i v30; // xmm6\n  void *origin; // rcx\n  struct cocos2d::CCRect *v32; // rax\n  struct cocos2d::extension::CCScale9Sprite *v33; // rdi\n  __int64 v34; // rdx\n  size_t v35; // r15\n  const char *v36; // r9\n  CCTextInputNode *v37; // rax\n  void **v38; // rdx\n  CCTextInputNode *m_nameInput; // rcx\n  CCTextInputNode *v40; // rcx\n  GJSmartTemplate *v41; // rcx\n  __int16 *v42; // rax\n  struct cocos2d::CCLabelBMFont *v43; // rax\n  cocos2d::CCLabelBMFont *v44; // rbx\n  float v45; // xmm0_4\n  ButtonSprite *v46; // rax\n  cocos2d::CCNode *v47; // rbx\n  CCMenuItemSpriteExtra *v48; // rdi\n  float v49; // xmm0_4\n  CCMenuItemSpriteExtra_vtbl *v50; // rbx\n  struct cocos2d::CCPoint v51; // rax\n  ButtonSprite *v52; // rax\n  cocos2d::CCNode *v53; // rbx\n  CCMenuItemSpriteExtra *v54; // rdi\n  float v55; // xmm0_4\n  CCMenuItemSpriteExtra_vtbl *v56; // rbx\n  struct cocos2d::CCPoint v57; // rax\n  void *v58; // rcx\n  int v59; // [rsp+28h] [rbp-E0h]\n  __int16 v60; // [rsp+58h] [rbp-B0h] BYREF\n  char v61; // [rsp+5Ah] [rbp-AEh]\n  cocos2d::CCSize v62; // [rsp+5Ch] [rbp-ACh] BYREF\n  float v63; // [rsp+68h] [rbp-A0h]\n  cocos2d::CCPoint v64; // [rsp+70h] [rbp-98h] BYREF\n  cocos2d::CCSize v65[3]; // [rsp+78h] [rbp-90h] BYREF\n  __int64 v66; // [rsp+90h] [rbp-78h]\n  __int64 v67; // [rsp+98h] [rbp-70h]\n  cocos2d::CCRect Block; // [rsp+A0h] [rbp-68h] BYREF\n  __int64 v69; // [rsp+B0h] [rbp-58h]\n  unsigned __int64 v70; // [rsp+B8h] [rbp-50h]\n  __int128 v71; // [rsp+C0h] [rbp-48h] BYREF\n  __int64 v72; // [rsp+D0h] [rbp-38h]\n  __int64 v73; // [rsp+D8h] [rbp-30h]\n  void *v74[2]; // [rsp+E0h] [rbp-28h] BYREF\n  __m128i v75; // [rsp+F0h] [rbp-18h]\n\n  v62.width = 0.0;\n  result = FLAlertLayer::init_1(a1, 150);\n  if ( !result )\n    return result;\n  if ( a2 )\n  {\n    a1->m_smartTemplate = a2;\n    cocos2d::CCObject::retain(a2);\n  }\n  a1->m_noElasticity = 1;\n  v6 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v5);\n  cocos2d::CCDirector::getWinSize(v6);\n  cocos2d::CCRect::CCRect(&Block, 0.0, 0.0, 80.0, 80.0);\n  v8 = cocos2d::extension::CCScale9Sprite::create(\"GJ_square01.png\", v7);\n  v9 = v8->cocos2d::CCNodeRGBA::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable;\n  cocos2d::CCSize::CCSize(&v62, 450.0, 280.0);\n  v9->setContentSize(v8, v10);\n  v11 = ((float (__fastcall *)(cocos2d::CCLayer *, struct cocos2d::extension::CCScale9Sprite *, __int64))a1->m_mainLayer->addChild_0)(\n          a1->m_mainLayer,\n          v8,\n          4294967294LL);\n  v12 = v8->cocos2d::CCNodeRGBA::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable;\n  cocos2d::CCPoint::CCPoint(v11, v63 * 0.5);\n  v12->setPosition_0(v8, v13);\n  v15 = (cocos2d::CCMenu *)cocos2d::CCMenu::create(v14);\n  a1->m_buttonMenu = v15;\n  a1->m_mainLayer->addChild_0(a1->m_mainLayer, v15, 10);\n  v16 = cocos2d::CCSprite::createWithSpriteFrameName(\"GJ_closeBtn_001.png\");\n  ((void (__fastcall *)(struct cocos2d::CCSprite *))v16->setScale_0)(v16);\n  v17 = CCMenuItemSpriteExtra::create(v16, nullptr, a1, (cocos2d::SEL_MenuHandler *)SetupSmartTemplateLayer::onBack);\n  HIDWORD(v17->m_pfnSelector.adj) = 1070386381;\n  v18 = ((float (__fastcall *)(cocos2d::CCMenu *, CCMenuItemSpriteExtra *))a1->m_buttonMenu->addChild_1)(\n          a1->m_buttonMenu,\n          v17);\n  v19 = v17->cocos2d::CCMenuItemSprite::cocos2d::CCMenuItem::cocos2d::CCNodeRGBA::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable;\n  cocos2d::CCPoint::CCPoint(v18, (float)((float)(v63 * 0.5) - 225.0) + 6.0);\n  v20 = cocos2d::CCNode::convertToNodeSpace(a1->m_buttonMenu, &Block.origin);\n  ((void (__fastcall *)(CCMenuItemSpriteExtra *, struct cocos2d::CCPoint))v19->setPosition_0)(v17, v20);\n  Block.origin = (cocos2d::CCPoint)&v65[1];\n  *(_OWORD *)&v65[1].width = 0;\n  v66 = 0;\n  v67 = 15;\n  v65[1] = (cocos2d::CCSize)sub_14003AA10(0x90u);\n  v66 = 135;\n  v67 = 143;\n  strcpy(\n    *(char **)&v65[1],\n    \"<cg>Defined</c> tells you how many variations you have in the template.\\n\"\n    \"Click <cy>Browse</c> to see your template's defined variations.\");\n  v71 = 0;\n  v72 = 4;\n  v73 = 15;\n  strcpy((char *)&v71, \"Help\");\n  v21 = InfoAlertButton::create((__int64)&v71, (__int64)&v65[1]);\n  v22 = ((float (__fastcall *)(cocos2d::CCMenu *, char *))a1->m_buttonMenu->addChild_1)(a1->m_buttonMenu, v21);\n  v23 = *(_QWORD *)v21;\n  v24 = cocos2d::CCPoint::CCPoint(v22, (float)((float)(v63 * 0.5) + 225.0) - 18.0);\n  v25 = cocos2d::CCNode::convertToNodeSpace(a1->m_buttonMenu, (const struct cocos2d::CCPoint *)&v62);\n  (*(void (__fastcall **)(char *, struct cocos2d::CCPoint))(v23 + 184))(v21, v25);\n  m_smartTemplate = a1->m_smartTemplate;\n  if ( m_smartTemplate )\n  {\n    sub_14003BDB0((__int64)&v71, (__int64)&m_smartTemplate->m_templateName);\n    p_Block = (cocos2d::CCRect *)&v71;\n    v28 = 9;\n  }\n  else\n  {\n    Block.size = 0;\n    v69 = 7;\n    v70 = 15;\n    Block.origin = (cocos2d::CCPoint)0x64656D616E6E55LL;\n    p_Block = &Block;\n    v28 = 2;\n  }\n  LODWORD(v62.width) = v28;\n  v29 = *p_Block;\n  *(cocos2d::CCRect *)v74 = *p_Block;\n  v30 = (__m128i)p_Block[1];\n  v75 = v30;\n  p_Block[1].origin = 0;\n  p_Block[1].size = (cocos2d::CCSize)15LL;\n  LOBYTE(p_Block->origin.x) = 0;\n  if ( (v28 & 2) != 0 )\n  {\n    v28 &= ~2u;\n    LODWORD(v62.width) = v28;\n    if ( v70 > 0xF )\n    {\n      origin = (void *)Block.origin;\n      if ( v70 + 1 >= 0x1000 )\n      {\n        origin = *(void **)(*(_QWORD *)&Block.origin - 8LL);\n        if ( (unsigned __int64)(*(_QWORD *)&Block.origin - (_QWORD)origin - 8LL) > 0x1F )\n          invalid_parameter_noinfo_noreturn();\n      }\n      j_j_free(origin);\n    }\n  }\n  if ( (v28 & 1) != 0 )\n  {\n    v28 &= ~1u;\n    LODWORD(v62.width) = v28;\n    sub_14003A830((__int64)&v71);\n  }\n  cocos2d::CCPoint::CCPoint(*(float *)&v24, v63 * 0.5);\n  cocos2d::CCRect::CCRect(&Block, 0.0, 0.0, 80.0, 80.0);\n  v33 = cocos2d::extension::CCScale9Sprite::create(\"square02b_001.png\", v32);\n  LOBYTE(v34) = 75;\n  v33->setOpacity(&v33->cocos2d::CCRGBAProtocol, v34);\n  cocos2d::CCSize::CCSize(v65, 600.0, 80.0);\n  v33->setContentSize(v33, v65);\n  v35 = -1;\n  a1->m_mainLayer->addChild_0(a1->m_mainLayer, v33, -1);\n  v33->setPosition_0(v33, &v64);\n  v60 = 0;\n  v61 = 0;\n  v33->setColor(&v33->cocos2d::CCRGBAProtocol, (const cocos2d::ccColor3B *)&v60);\n  ((void (__fastcall *)(struct cocos2d::extension::CCScale9Sprite *))v33->setScale_0)(v33);\n  v37 = CCTextInputNode::create(280.0, 50.0, \"Template Name\", v36, v59, (const char *)&qword_14052A4D8);\n  a1->m_nameInput = v37;\n  a1->m_mainLayer->addChild_0(a1->m_mainLayer, v37, 18);\n  a1->m_nameInput->m_delegate = &a1->TextInputDelegate;\n  a1->m_nameInput->setTag(a1->m_nameInput, 0);\n  a1->m_nameInput->setPosition_0(a1->m_nameInput, &v64);\n  a1->m_nameInput->m_maxLabelLength = 20;\n  a1->m_nameInput->m_filterSwearWords = 1;\n  v38 = v74;\n  if ( _mm_srli_si128(v30, 8).m128i_u64[0] > 0xF )\n    v38 = (void **)v29.origin;\n  v71 = 0;\n  v72 = 0;\n  v73 = 0;\n  do\n    ++v35;\n  while ( *((_BYTE *)v38 + v35) );\n  sub_14003A930(&v71, v38, v35);\n  CCTextInputNode::setString((__int64)a1->m_nameInput, &v71);\n  v60 = -21896;\n  m_nameInput = a1->m_nameInput;\n  *(_WORD *)&m_nameInput->m_placeholderColor.r = -21896;\n  m_nameInput->m_placeholderColor.b = -16;\n  CCTextInputNode::refreshLabel(m_nameInput);\n  v40 = a1->m_nameInput;\n  v40->m_placeholderScale = 0.69999999;\n  CCTextInputNode::refreshLabel(v40);\n  v41 = a1->m_smartTemplate;\n  if ( !v41 )\n  {\n    v42 = &word_140532F44;\n    goto LABEL_23;\n  }\n  v42 = (__int16 *)GJSmartTemplate::logTemplateStatus((__int64)v41, &v71);\n  v28 |= 4u;\n  LODWORD(v62.width) = v28;\n  if ( *((_QWORD *)v42 + 3) <= 0xFu )\n  {\nLABEL_23:\n    v43 = cocos2d::CCLabelBMFont::create((const char *)v42, \"chatFont.fnt\");\n    goto LABEL_24;\n  }\n  v43 = cocos2d::CCLabelBMFont::create(*(const char **)v42, \"chatFont.fnt\");\nLABEL_24:\n  v44 = v43;\n  if ( (v28 & 4) != 0 )\n    sub_14003A830((__int64)&v71);\n  v45 = ((float (__fastcall *)(cocos2d::CCLayer *, cocos2d::CCLabelBMFont *, __int64))a1->m_mainLayer->addChild_0)(\n          a1->m_mainLayer,\n          v44,\n          18);\n  cocos2d::CCPoint::CCPoint(v45, 0.0);\n  cocos2d::CCPoint::operator+(&v64, &v62);\n  v44->setPosition_0(v44, (const cocos2d::CCPoint *)&v62);\n  cocos2d::CCLabelBMFont::limitLabelWidth(v44, 300.0, 0.60000002, 0.0);\n  Block.origin = (cocos2d::CCPoint)operator new(0x2C0u);\n  v46 = ButtonSprite::ButtonSprite(*(ButtonSprite **)&Block.origin);\n  v47 = v46;\n  if ( v46 )\n  {\n    if ( ButtonSprite::init_1(v46, \"Browse\", 40, 0, 0.80000001, 1, \"goldFont.fnt\", \"GJ_button_01.png\", 30.0) )\n    {\n      cocos2d::CCObject::autorelease(v47);\n    }\n    else\n    {\n      ((void (__fastcall *)(cocos2d::CCNode *, __int64))v47->~CCNode)(v47, 1);\n      v47 = nullptr;\n    }\n  }\n  v48 = CCMenuItemSpriteExtra::create(v47, nullptr, a1, (cocos2d::SEL_MenuHandler *)SetupSmartTemplateLayer::onClick);\n  v48->setTag(v48, 0);\n  v49 = ((float (__fastcall *)(cocos2d::CCMenu *, CCMenuItemSpriteExtra *))a1->m_buttonMenu->addChild_1)(\n          a1->m_buttonMenu,\n          v48);\n  v50 = v48->cocos2d::CCMenuItemSprite::cocos2d::CCMenuItem::cocos2d::CCNodeRGBA::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable;\n  cocos2d::CCPoint::CCPoint(v49, v63 * 0.5);\n  v51 = cocos2d::CCNode::convertToNodeSpace(a1->m_buttonMenu, (const struct cocos2d::CCPoint *)&v62);\n  ((void (__fastcall *)(CCMenuItemSpriteExtra *, struct cocos2d::CCPoint))v50->setPosition_0)(v48, v51);\n  Block.origin = (cocos2d::CCPoint)operator new(0x2C0u);\n  v52 = ButtonSprite::ButtonSprite(*(ButtonSprite **)&Block.origin);\n  v53 = v52;\n  if ( v52 )\n  {\n    if ( ButtonSprite::init_1(v52, \"Delete\", 40, 0, 0.80000001, 1, \"goldFont.fnt\", \"GJ_button_01.png\", 30.0) )\n    {\n      cocos2d::CCObject::autorelease(v53);\n    }\n    else\n    {\n      ((void (__fastcall *)(cocos2d::CCNode *, __int64))v53->~CCNode)(v53, 1);\n      v53 = nullptr;\n    }\n  }\n  v54 = CCMenuItemSpriteExtra::create(v53, nullptr, a1, (cocos2d::SEL_MenuHandler *)SetupSmartTemplateLayer::onClick);\n  v54->setTag(v54, 5);\n  v55 = ((float (__fastcall *)(cocos2d::CCMenu *, CCMenuItemSpriteExtra *))a1->m_buttonMenu->addChild_1)(\n          a1->m_buttonMenu,\n          v54);\n  v56 = v54->cocos2d::CCMenuItemSprite::cocos2d::CCMenuItem::cocos2d::CCNodeRGBA::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable;\n  cocos2d::CCPoint::CCPoint(v55, (float)(v63 * 0.5) + 100.0);\n  v57 = cocos2d::CCNode::convertToNodeSpace(a1->m_buttonMenu, (const struct cocos2d::CCPoint *)&v62);\n  ((void (__fastcall *)(CCMenuItemSpriteExtra *, struct cocos2d::CCPoint))v56->setPosition_0)(v54, v57);\n  if ( v75.m128i_i64[1] > 0xFuLL )\n  {\n    v58 = v74[0];\n    if ( (unsigned __int64)(v75.m128i_i64[1] + 1) >= 0x1000 )\n    {\n      v58 = *((void **)v74[0] - 1);\n      if ( (unsigned __int64)((char *)v74[0] - (char *)v58 - 8) > 0x1F )\n        invalid_parameter_noinfo_noreturn();\n    }\n    j_j_free(v58);\n  }\n  return 1;\n}", "assembly": "; \n; SetupSmartTemplateLayer::init from 0x140458b90 to 0x14045957e (2542 bytes)\n; \n; 2 xrefs:\n; > SetupSmartTemplateLayer::create @ 0x140458b56\n; > <???> @ 0x1406daa90\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, 0x140458b90\nmov     [rax+10h], rbx                                                 ; +0x3, 0x140458b93\nmov     [rax+18h], rsi                                                 ; +0x7, 0x140458b97\npush    rbp                                                            ; +0xb, 0x140458b9b\npush    rdi                                                            ; +0xc, 0x140458b9c\npush    r12                                                            ; +0xd, 0x140458b9d\npush    r14                                                            ; +0xf, 0x140458b9f\npush    r15                                                            ; +0x11, 0x140458ba1\nlea     rbp, [rax-68h]                                                 ; +0x13, 0x140458ba3\nsub     rsp, 140h                                                      ; +0x17, 0x140458ba7\nmovaps  xmmword ptr [rax-38h], xmm6                                    ; +0x1e, 0x140458bae\nmovaps  xmmword ptr [rax-48h], xmm7                                    ; +0x22, 0x140458bb2\nmovaps  xmmword ptr [rax-58h], xmm8                                    ; +0x26, 0x140458bb6\nmovaps  xmmword ptr [rax-68h], xmm9                                    ; +0x2b, 0x140458bbb\nmov     rax, cs:__security_cookie                                      ; +0x30, 0x140458bc0\nxor     rax, rsp                                                       ; +0x37, 0x140458bc7\nmov     [rbp+60h+var_68], rax                                          ; +0x3a, 0x140458bca\nmov     rbx, rdx                                                       ; +0x3e, 0x140458bce\nmov     rsi, rcx                                                       ; +0x41, 0x140458bd1\nxor     r12d, r12d                                                     ; +0x44, 0x140458bd4\nmov     [rsp+160h+var_10C.width], r12d                                 ; +0x47, 0x140458bd7\nmov     edx, 96h                                                       ; +0x4c, 0x140458bdc\ncall    FLAlertLayer__init_1                                           ; +0x51, 0x140458be1\ntest    al, al                                                         ; +0x56, 0x140458be6\njz      loc_140459542                                                  ; +0x58, 0x140458be8\ntest    rbx, rbx                                                       ; +0x5e, 0x140458bee\njz      short loc_140458C03                                            ; +0x61, 0x140458bf1\nmov     [rsi+288h], rbx                                                ; +0x63, 0x140458bf3\nmov     rcx, rbx                                                       ; +0x6a, 0x140458bfa\ncall    cs:?retain@CCObject@cocos2d@@QEAAXXZ; cocos2d::CCObject::retain(void) ; +0x6d, 0x140458bfd\nmov     byte ptr [rsi+24Ch], 1                                         ; +0x73, 0x140458c03\ncall    cs:?sharedDirector@CCDirector@cocos2d@@SAPEAV12@XZ; cocos2d::CCDirector::sharedDirector(void) ; +0x7a, 0x140458c0a\nmov     rcx, rax                                                       ; +0x80, 0x140458c10\nlea     rdx, [rsp+160h+var_100]                                        ; +0x83, 0x140458c13\ncall    cs:?getWinSize@CCDirector@cocos2d@@QEAA?AVCCSize@2@XZ; cocos2d::CCDirector::getWinSize(void) ; +0x88, 0x140458c18\nmovss   xmm9, cs:dword_14062326C                                       ; +0x8e, 0x140458c1e\nmovss   dword ptr [rsp+160h+var_140], xmm9                             ; +0x97, 0x140458c27\nmovaps  xmm3, xmm9                                                     ; +0x9e, 0x140458c2e\nxorps   xmm2, xmm2                                                     ; +0xa2, 0x140458c32\nxorps   xmm1, xmm1                                                     ; +0xa5, 0x140458c35\nlea     rcx, [rbp+60h+Block]                                           ; +0xa8, 0x140458c38\ncall    cs:??0CCRect@cocos2d@@QEAA@MMMM@Z; cocos2d::CCRect::CCRect(float,float,float,float) ; +0xac, 0x140458c3c\nmov     rdx, rax                                                       ; +0xb2, 0x140458c42\nlea     rcx, aGjSquare01Png; \"GJ_square01.png\"                         ; +0xb5, 0x140458c45\ncall    cs:?create@CCScale9Sprite@extension@cocos2d@@SAPEAV123@PEBDVCCRect@3@@Z; cocos2d::extension::CCScale9Sprite::create(char const *,cocos2d::CCRect) ; +0xbc, 0x140458c4c\nmov     rdi, rax                                                       ; +0xc2, 0x140458c52\nmov     rbx, [rax]                                                     ; +0xc5, 0x140458c55\nmovss   xmm2, cs:dword_140623428                                       ; +0xc8, 0x140458c58\nmovss   xmm1, cs:dword_1406234A8                                       ; +0xd0, 0x140458c60\nlea     rcx, [rsp+160h+var_10C]                                        ; +0xd8, 0x140458c68\ncall    cs:??0CCSize@cocos2d@@QEAA@MM@Z; cocos2d::CCSize::CCSize(float,float) ; +0xdd, 0x140458c6d\nmov     rdx, rax                                                       ; +0xe3, 0x140458c73\nmov     rcx, rdi                                                       ; +0xe6, 0x140458c76\ncall    qword ptr [rbx+128h]                                           ; +0xe9, 0x140458c79\nmov     rcx, [rsi+240h]                                                ; +0xef, 0x140458c7f\nmov     rax, [rcx]                                                     ; +0xf6, 0x140458c86\nmov     r8d, 0FFFFFFFEh                                                ; +0xf9, 0x140458c89\nmov     rdx, rdi                                                       ; +0xff, 0x140458c8f\ncall    qword ptr [rax+1B8h]                                           ; +0x102, 0x140458c92\nmov     rbx, [rdi]                                                     ; +0x108, 0x140458c98\nmovss   xmm2, [rsp+160h+var_FC]                                        ; +0x10b, 0x140458c9b\nmovss   xmm7, cs:dword_140622B08                                       ; +0x111, 0x140458ca1\nmulss   xmm2, xmm7                                                     ; +0x119, 0x140458ca9\nmovss   xmm1, [rsp+160h+var_100]                                       ; +0x11d, 0x140458cad\nmulss   xmm1, xmm7                                                     ; +0x123, 0x140458cb3\nlea     rcx, [rsp+160h+var_10C]                                        ; +0x127, 0x140458cb7\ncall    cs:??0CCPoint@cocos2d@@QEAA@MM@Z; cocos2d::CCPoint::CCPoint(float,float) ; +0x12c, 0x140458cbc\nmov     rdx, rax                                                       ; +0x132, 0x140458cc2\nmov     rcx, rdi                                                       ; +0x135, 0x140458cc5\ncall    qword ptr [rbx+0B8h]                                           ; +0x138, 0x140458cc8\ncall    cs:?create@CCMenu@cocos2d@@SAPEAV12@XZ; cocos2d::CCMenu::create(void) ; +0x13e, 0x140458cce\nmov     [rsi+220h], rax                                                ; +0x144, 0x140458cd4\nmov     rcx, [rsi+240h]                                                ; +0x14b, 0x140458cdb\nmov     r9, [rcx]                                                      ; +0x152, 0x140458ce2\nmov     r8d, 0Ah                                                       ; +0x155, 0x140458ce5\nmov     rdx, rax                                                       ; +0x15b, 0x140458ceb\ncall    qword ptr [r9+1B8h]                                            ; +0x15e, 0x140458cee\nlea     rcx, aGjClosebtn001P; \"GJ_closeBtn_001.png\"                    ; +0x165, 0x140458cf5\ncall    cs:?createWithSpriteFrameName@CCSprite@cocos2d@@SAPEAV12@PEBD@Z; cocos2d::CCSprite::createWithSpriteFrameName(char const *) ; +0x16c, 0x140458cfc\nmov     rbx, rax                                                       ; +0x172, 0x140458d02\nmov     rdx, [rax]                                                     ; +0x175, 0x140458d05\nmovss   xmm1, cs:dword_140622B74                                       ; +0x178, 0x140458d08\nmov     rcx, rax                                                       ; +0x180, 0x140458d10\ncall    qword ptr [rdx+0A0h]                                           ; +0x183, 0x140458d13\nlea     r9, SetupSmartTemplateLayer__onBack                            ; +0x189, 0x140458d19\nmov     r8, rsi                                                        ; +0x190, 0x140458d20\nxor     edx, edx                                                       ; +0x193, 0x140458d23\nmov     rcx, rbx                                                       ; +0x195, 0x140458d25\ncall    CCMenuItemSpriteExtra__create                                  ; +0x198, 0x140458d28\nmov     rdi, rax                                                       ; +0x19d, 0x140458d2d\nmov     dword ptr [rax+174h], 3FCCCCCDh                                ; +0x1a0, 0x140458d30\nmov     rcx, [rsi+220h]                                                ; +0x1aa, 0x140458d3a\nmov     r8, [rcx]                                                      ; +0x1b1, 0x140458d41\nmov     rdx, rax                                                       ; +0x1b4, 0x140458d44\ncall    qword ptr [r8+1C0h]                                            ; +0x1b7, 0x140458d47\nmov     rbx, [rdi]                                                     ; +0x1be, 0x140458d4e\nmovss   xmm2, [rsp+160h+var_FC]                                        ; +0x1c1, 0x140458d51\nmulss   xmm2, xmm7                                                     ; +0x1c7, 0x140458d57\naddss   xmm2, cs:dword_140623338                                       ; +0x1cb, 0x140458d5b\nsubss   xmm2, cs:flt_140623028                                         ; +0x1d3, 0x140458d63\nmovss   xmm1, [rsp+160h+var_100]                                       ; +0x1db, 0x140458d6b\nmulss   xmm1, xmm7                                                     ; +0x1e1, 0x140458d71\nsubss   xmm1, cs:dword_1406233FC                                       ; +0x1e5, 0x140458d75\naddss   xmm1, cs:flt_140623028                                         ; +0x1ed, 0x140458d7d\nlea     rcx, [rsp+160h+var_10C]                                        ; +0x1f5, 0x140458d85\ncall    cs:??0CCPoint@cocos2d@@QEAA@MM@Z; cocos2d::CCPoint::CCPoint(float,float) ; +0x1fa, 0x140458d8a\nmov     r8, rax                                                        ; +0x200, 0x140458d90\nlea     rdx, [rbp+60h+Block]                                           ; +0x203, 0x140458d93\nmov     rcx, [rsi+220h]                                                ; +0x207, 0x140458d97\ncall    cs:?convertToNodeSpace@CCNode@cocos2d@@QEAA?AVCCPoint@2@AEBV32@@Z; cocos2d::CCNode::convertToNodeSpace(cocos2d::CCPoint const &) ; +0x20e, 0x140458d9e\nmov     rdx, rax                                                       ; +0x214, 0x140458da4\nmov     rcx, rdi                                                       ; +0x217, 0x140458da7\ncall    qword ptr [rbx+0B8h]                                           ; +0x21a, 0x140458daa\nlea     rax, [rsp+160h+var_F0+8]                                       ; +0x220, 0x140458db0\nmov     [rbp+60h+Block], rax                                           ; +0x225, 0x140458db5\nxorps   xmm0, xmm0                                                     ; +0x229, 0x140458db9\nmovups  xmmword ptr [rsp+160h+var_F0+8], xmm0                          ; +0x22c, 0x140458dbc\nmov     [rbp+60h+var_D8], r12                                          ; +0x231, 0x140458dc1\nmov     [rbp+60h+var_D0], 0Fh                                          ; +0x235, 0x140458dc5\nmov     ecx, 90h                                                       ; +0x23d, 0x140458dcd\ncall    sub_14003AA10                                                  ; +0x242, 0x140458dd2\nmov     rcx, rax                                                       ; +0x247, 0x140458dd7\nmov     qword ptr [rsp+160h+var_F0+8], rax                             ; +0x24a, 0x140458dda\nmov     [rbp+60h+var_D8], 87h                                          ; +0x24f, 0x140458ddf\nmov     [rbp+60h+var_D0], 8Fh                                          ; +0x257, 0x140458de7\nmovaps  xmm0, cs:xmmword_1405F3550                                     ; +0x25f, 0x140458def\nmovups  xmmword ptr [rax], xmm0                                        ; +0x266, 0x140458df6\nmovaps  xmm1, cs:xmmword_1405F3560                                     ; +0x269, 0x140458df9\nmovups  xmmword ptr [rax+10h], xmm1                                    ; +0x270, 0x140458e00\nmovaps  xmm0, cs:xmmword_1405F3570                                     ; +0x274, 0x140458e04\nmovups  xmmword ptr [rax+20h], xmm0                                    ; +0x27b, 0x140458e0b\nmovaps  xmm1, cs:xmmword_1405F3580                                     ; +0x27f, 0x140458e0f\nmovups  xmmword ptr [rax+30h], xmm1                                    ; +0x286, 0x140458e16\nmovaps  xmm0, cs:xmmword_1405F3590                                     ; +0x28a, 0x140458e1a\nmovups  xmmword ptr [rax+40h], xmm0                                    ; +0x291, 0x140458e21\nmovaps  xmm1, cs:xmmword_1405F35A0                                     ; +0x295, 0x140458e25\nmovups  xmmword ptr [rax+50h], xmm1                                    ; +0x29c, 0x140458e2c\nmovaps  xmm0, cs:xmmword_1405F35B0                                     ; +0x2a0, 0x140458e30\nmovups  xmmword ptr [rax+60h], xmm0                                    ; +0x2a7, 0x140458e37\nmovaps  xmm1, cs:xmmword_1405F35C0                                     ; +0x2ab, 0x140458e3b\nmovups  xmmword ptr [rax+70h], xmm1                                    ; +0x2b2, 0x140458e42\nmov     eax, cs:dword_1405F35D0                                        ; +0x2b6, 0x140458e46\nmov     [rcx+80h], eax                                                 ; +0x2bc, 0x140458e4c\nmovzx   eax, cs:word_1405F35D4                                         ; +0x2c2, 0x140458e52\nmov     [rcx+84h], ax                                                  ; +0x2c9, 0x140458e59\nmovzx   eax, cs:byte_1405F35D6                                         ; +0x2d0, 0x140458e60\nmov     [rcx+86h], al                                                  ; +0x2d7, 0x140458e67\nmov     [rcx+87h], r12b                                                ; +0x2dd, 0x140458e6d\nxorps   xmm0, xmm0                                                     ; +0x2e4, 0x140458e74\nmovups  [rbp+60h+var_A8], xmm0                                         ; +0x2e7, 0x140458e77\nmov     [rbp+60h+var_98], 4                                            ; +0x2eb, 0x140458e7b\nmov     [rbp+60h+var_90], 0Fh                                          ; +0x2f3, 0x140458e83\nmov     eax, dword ptr cs:aHelp; \"Help\"                                ; +0x2fb, 0x140458e8b\nmov     dword ptr [rbp+60h+var_A8], eax                                ; +0x301, 0x140458e91\nmov     byte ptr [rbp+60h+var_A8+4], 0                                 ; +0x304, 0x140458e94\nmovss   xmm2, cs:flt_140622C24                                         ; +0x308, 0x140458e98\nlea     rdx, [rsp+160h+var_F0+8]                                       ; +0x310, 0x140458ea0\nlea     rcx, [rbp+60h+var_A8]                                          ; +0x315, 0x140458ea5\ncall    InfoAlertButton__create                                        ; +0x319, 0x140458ea9\nmov     rdi, rax                                                       ; +0x31e, 0x140458eae\nmov     rcx, [rsi+220h]                                                ; +0x321, 0x140458eb1\nmov     r8, [rcx]                                                      ; +0x328, 0x140458eb8\nmov     rdx, rax                                                       ; +0x32b, 0x140458ebb\ncall    qword ptr [r8+1C0h]                                            ; +0x32e, 0x140458ebe\nmov     rbx, [rdi]                                                     ; +0x335, 0x140458ec5\nmovss   xmm2, [rsp+160h+var_FC]                                        ; +0x338, 0x140458ec8\nmulss   xmm2, xmm7                                                     ; +0x33e, 0x140458ece\naddss   xmm2, cs:dword_140623338                                       ; +0x342, 0x140458ed2\nsubss   xmm2, cs:dword_14062310C                                       ; +0x34a, 0x140458eda\nmovss   xmm1, [rsp+160h+var_100]                                       ; +0x352, 0x140458ee2\nmulss   xmm1, xmm7                                                     ; +0x358, 0x140458ee8\naddss   xmm1, cs:dword_1406233FC                                       ; +0x35c, 0x140458eec\nsubss   xmm1, cs:dword_14062310C                                       ; +0x364, 0x140458ef4\nlea     rcx, [rbp+60h+Block]                                           ; +0x36c, 0x140458efc\ncall    cs:??0CCPoint@cocos2d@@QEAA@MM@Z; cocos2d::CCPoint::CCPoint(float,float) ; +0x370, 0x140458f00\nmov     r8, rax                                                        ; +0x376, 0x140458f06\nlea     rdx, [rsp+160h+var_10C]                                        ; +0x379, 0x140458f09\nmov     rcx, [rsi+220h]                                                ; +0x37e, 0x140458f0e\ncall    cs:?convertToNodeSpace@CCNode@cocos2d@@QEAA?AVCCPoint@2@AEBV32@@Z; cocos2d::CCNode::convertToNodeSpace(cocos2d::CCPoint const &) ; +0x385, 0x140458f15\nmov     rdx, rax                                                       ; +0x38b, 0x140458f1b\nmov     rcx, rdi                                                       ; +0x38e, 0x140458f1e\ncall    qword ptr [rbx+0B8h]                                           ; +0x391, 0x140458f21\nmov     rdx, [rsi+288h]                                                ; +0x397, 0x140458f27\ntest    rdx, rdx                                                       ; +0x39e, 0x140458f2e\njz      short loc_140458F4F                                            ; +0x3a1, 0x140458f31\nadd     rdx, 88h                                                       ; +0x3a3, 0x140458f33\nlea     rcx, [rbp+60h+var_A8]                                          ; +0x3aa, 0x140458f3a\ncall    sub_14003BDB0                                                  ; +0x3ae, 0x140458f3e\nlea     rax, [rbp+60h+var_A8]                                          ; +0x3b3, 0x140458f43\nmov     r14d, 9                                                        ; +0x3b7, 0x140458f47\njmp     short loc_140458F90                                            ; +0x3bd, 0x140458f4d\nmov     [rbp+60h+var_C0], r12                                          ; +0x3bf, 0x140458f4f\nmov     [rbp+60h+var_B8], 7                                            ; +0x3c3, 0x140458f53\nmov     [rbp+60h+var_B0], 0Fh                                          ; +0x3cb, 0x140458f5b\nmov     rax, cs:qword_1405F3548                                        ; +0x3d3, 0x140458f63\nmov     dword ptr [rbp+60h+Block], eax                                 ; +0x3da, 0x140458f6a\nmovzx   eax, word ptr cs:qword_1405F3548+4                             ; +0x3dd, 0x140458f6d\nmov     word ptr [rbp+60h+Block+4], ax                                 ; +0x3e4, 0x140458f74\nmovzx   eax, byte ptr cs:qword_1405F3548+6                             ; +0x3e8, 0x140458f78\nmov     byte ptr [rbp+60h+Block+6], al                                 ; +0x3ef, 0x140458f7f\nmov     byte ptr [rbp+60h+Block+7], 0                                  ; +0x3f2, 0x140458f82\nlea     rax, [rbp+60h+Block]                                           ; +0x3f6, 0x140458f86\nmov     r14d, 2                                                        ; +0x3fa, 0x140458f8a\nmov     [rsp+160h+var_10C.width], r14d                                 ; +0x400, 0x140458f90\nmovups  xmm8, xmmword ptr [rax]                                        ; +0x405, 0x140458f95\nmovups  xmmword ptr [rbp+60h+var_88], xmm8                             ; +0x409, 0x140458f99\nmovups  xmm6, xmmword ptr [rax+10h]                                    ; +0x40e, 0x140458f9e\nmovups  [rbp+60h+var_78], xmm6                                         ; +0x412, 0x140458fa2\nmov     [rax+10h], r12                                                 ; +0x416, 0x140458fa6\nmov     qword ptr [rax+18h], 0Fh                                       ; +0x41a, 0x140458faa\nmov     byte ptr [rax], 0                                              ; +0x422, 0x140458fb2\ntest    r14b, 2                                                        ; +0x425, 0x140458fb5\njz      short loc_140459003                                            ; +0x429, 0x140458fb9\nand     r14d, 0FFFFFFFDh                                               ; +0x42b, 0x140458fbb\nmov     [rsp+160h+var_10C.width], r14d                                 ; +0x42f, 0x140458fbf\nmov     rdx, [rbp+60h+var_B0]                                          ; +0x434, 0x140458fc4\ncmp     rdx, 0Fh                                                       ; +0x438, 0x140458fc8\njbe     short loc_140459003                                            ; +0x43c, 0x140458fcc\ninc     rdx                                                            ; +0x43e, 0x140458fce\nmov     rcx, [rbp+60h+Block]; Block                                    ; +0x441, 0x140458fd1\nmov     rax, rcx                                                       ; +0x445, 0x140458fd5\ncmp     rdx, 1000h                                                     ; +0x448, 0x140458fd8\njb      short loc_140458FFD                                            ; +0x44f, 0x140458fdf\nadd     rdx, 27h ; '''                                                 ; +0x451, 0x140458fe1\nmov     rcx, [rcx-8]                                                   ; +0x455, 0x140458fe5\nsub     rax, rcx                                                       ; +0x459, 0x140458fe9\nadd     rax, 0FFFFFFFFFFFFFFF8h                                        ; +0x45c, 0x140458fec\ncmp     rax, 1Fh                                                       ; +0x460, 0x140458ff0\njbe     short loc_140458FFD                                            ; +0x464, 0x140458ff4\ncall    cs:_invalid_parameter_noinfo_noreturn                          ; +0x466, 0x140458ff6\ndb 0CCh                                                                ; +0x46c, 0x140458ffc\ncall    j_j_free                                                       ; +0x46d, 0x140458ffd\nnop                                                                    ; +0x472, 0x140459002\ntest    r14b, 1                                                        ; +0x473, 0x140459003\njz      short loc_14045901B                                            ; +0x477, 0x140459007\nand     r14d, 0FFFFFFFEh                                               ; +0x479, 0x140459009\nmov     [rsp+160h+var_10C.width], r14d                                 ; +0x47d, 0x14045900d\nlea     rcx, [rbp+60h+var_A8]                                          ; +0x482, 0x140459012\ncall    sub_14003A830                                                  ; +0x486, 0x140459016\nmovss   xmm2, [rsp+160h+var_FC]                                        ; +0x48b, 0x14045901b\nmulss   xmm2, xmm7                                                     ; +0x491, 0x140459021\naddss   xmm2, cs:dword_140623338                                       ; +0x495, 0x140459025\nsubss   xmm2, cs:dword_1406231B0                                       ; +0x49d, 0x14045902d\nmovss   xmm1, [rsp+160h+var_100]                                       ; +0x4a5, 0x140459035\nmulss   xmm1, xmm7                                                     ; +0x4ab, 0x14045903b\nlea     rcx, [rsp+160h+var_F8]                                         ; +0x4af, 0x14045903f\ncall    cs:??0CCPoint@cocos2d@@QEAA@MM@Z; cocos2d::CCPoint::CCPoint(float,float) ; +0x4b4, 0x140459044\nmovss   dword ptr [rsp+160h+var_140], xmm9                             ; +0x4ba, 0x14045904a\nmovaps  xmm3, xmm9                                                     ; +0x4c1, 0x140459051\nxorps   xmm2, xmm2                                                     ; +0x4c5, 0x140459055\nxorps   xmm1, xmm1                                                     ; +0x4c8, 0x140459058\nlea     rcx, [rbp+60h+Block]                                           ; +0x4cb, 0x14045905b\ncall    cs:??0CCRect@cocos2d@@QEAA@MMMM@Z; cocos2d::CCRect::CCRect(float,float,float,float) ; +0x4cf, 0x14045905f\nmov     rdx, rax                                                       ; +0x4d5, 0x140459065\nlea     rcx, aSquare02b001Pn; \"square02b_001.png\"                      ; +0x4d8, 0x140459068\ncall    cs:?create@CCScale9Sprite@extension@cocos2d@@SAPEAV123@PEBDVCCRect@3@@Z; cocos2d::extension::CCScale9Sprite::create(char const *,cocos2d::CCRect) ; +0x4df, 0x14045906f\nmov     rdi, rax                                                       ; +0x4e5, 0x140459075\nmov     r8, [rax+140h]                                                 ; +0x4e8, 0x140459078\nmov     dl, 4Bh ; 'K'                                                  ; +0x4ef, 0x14045907f\nlea     rcx, [rax+140h]                                                ; +0x4f1, 0x140459081\ncall    qword ptr [r8+28h]                                             ; +0x4f8, 0x140459088\nmovaps  xmm2, xmm9                                                     ; +0x4fc, 0x14045908c\nmovss   xmm1, cs:dword_1406234D0                                       ; +0x500, 0x140459090\nlea     rcx, [rsp+160h+var_F0]                                         ; +0x508, 0x140459098\ncall    cs:??0CCSize@cocos2d@@QEAA@MM@Z; cocos2d::CCSize::CCSize(float,float) ; +0x50d, 0x14045909d\nmov     r8, [rdi]                                                      ; +0x513, 0x1404590a3\nlea     rdx, [rsp+160h+var_F0]                                         ; +0x516, 0x1404590a6\nmov     rcx, rdi                                                       ; +0x51b, 0x1404590ab\ncall    qword ptr [r8+128h]                                            ; +0x51e, 0x1404590ae\nmov     rcx, [rsi+240h]                                                ; +0x525, 0x1404590b5\nmov     rax, [rcx]                                                     ; +0x52c, 0x1404590bc\nmov     r15, 0FFFFFFFFFFFFFFFFh                                        ; +0x52f, 0x1404590bf\nmov     r8d, r15d                                                      ; +0x536, 0x1404590c6\nmov     rdx, rdi                                                       ; +0x539, 0x1404590c9\ncall    qword ptr [rax+1B8h]                                           ; +0x53c, 0x1404590cc\nmov     rax, [rdi]                                                     ; +0x542, 0x1404590d2\nlea     rdx, [rsp+160h+var_F8]                                         ; +0x545, 0x1404590d5\nmov     rcx, rdi                                                       ; +0x54a, 0x1404590da\ncall    qword ptr [rax+0B8h]                                           ; +0x54d, 0x1404590dd\nmov     [rsp+160h+var_110], 0                                          ; +0x553, 0x1404590e3\nmovzx   eax, [rsp+160h+var_110]                                        ; +0x55a, 0x1404590ea\nmov     [rsp+160h+var_110], ax                                         ; +0x55f, 0x1404590ef\nmov     [rsp+160h+var_10E], 0                                          ; +0x564, 0x1404590f4\nmov     rax, [rdi+140h]                                                ; +0x569, 0x1404590f9\nlea     rdx, [rsp+160h+var_110]                                        ; +0x570, 0x140459100\nlea     rcx, [rdi+140h]                                                ; +0x575, 0x140459105\ncall    qword ptr [rax]                                                ; +0x57c, 0x14045910c\nmov     rax, [rdi]                                                     ; +0x57e, 0x14045910e\nmovaps  xmm1, xmm7                                                     ; +0x581, 0x140459111\nmov     rcx, rdi                                                       ; +0x584, 0x140459114\ncall    qword ptr [rax+0A0h]                                           ; +0x587, 0x140459117\nlea     rax, qword_14052A4D8                                           ; +0x58d, 0x14045911d\nmov     [rsp+160h+var_138], rax                                        ; +0x594, 0x140459124\nlea     r8, aTemplateName; \"Template Name\"                             ; +0x599, 0x140459129\nmovss   xmm1, cs:dword_1406231E0                                       ; +0x5a0, 0x140459130\nmovss   xmm0, cs:dword_140623428                                       ; +0x5a8, 0x140459138\ncall    CCTextInputNode__create                                        ; +0x5b0, 0x140459140\nmov     [rsi+290h], rax                                                ; +0x5b5, 0x140459145\nmov     rcx, [rsi+240h]                                                ; +0x5bc, 0x14045914c\nmov     r9, [rcx]                                                      ; +0x5c3, 0x140459153\nlea     r8d, [r15+13h]                                                 ; +0x5c6, 0x140459156\nmov     rdx, rax                                                       ; +0x5ca, 0x14045915a\ncall    qword ptr [r9+1B8h]                                            ; +0x5cd, 0x14045915d\nlea     rcx, [rsi+278h]                                                ; +0x5d4, 0x140459164\nmov     rax, [rsi+290h]                                                ; +0x5db, 0x14045916b\nmov     [rax+230h], rcx                                                ; +0x5e2, 0x140459172\nmov     rcx, [rsi+290h]                                                ; +0x5e9, 0x140459179\nmov     rax, [rcx]                                                     ; +0x5f0, 0x140459180\nxor     edx, edx                                                       ; +0x5f3, 0x140459183\ncall    qword ptr [rax+40h]                                            ; +0x5f5, 0x140459185\nmov     rcx, [rsi+290h]                                                ; +0x5f8, 0x140459188\nmov     rax, [rcx]                                                     ; +0x5ff, 0x14045918f\nlea     rdx, [rsp+160h+var_F8]                                         ; +0x602, 0x140459192\ncall    qword ptr [rax+0B8h]                                           ; +0x607, 0x140459197\nmov     rax, [rsi+290h]                                                ; +0x60d, 0x14045919d\nmov     dword ptr [rax+238h], 14h                                      ; +0x614, 0x1404591a4\nmov     rax, [rsi+290h]                                                ; +0x61e, 0x1404591ae\nmov     byte ptr [rax+248h], 1                                         ; +0x625, 0x1404591b5\nlea     rdx, [rbp+60h+var_88]                                          ; +0x62c, 0x1404591bc\nmovq    rcx, xmm8                                                      ; +0x630, 0x1404591c0\npsrldq  xmm6, 8                                                        ; +0x635, 0x1404591c5\nmovq    rax, xmm6                                                      ; +0x63a, 0x1404591ca\ncmp     rax, 0Fh                                                       ; +0x63f, 0x1404591cf\ncmova   rdx, rcx                                                       ; +0x643, 0x1404591d3\nxorps   xmm0, xmm0                                                     ; +0x647, 0x1404591d7\nmovups  [rbp+60h+var_A8], xmm0                                         ; +0x64a, 0x1404591da\nmov     [rbp+60h+var_98], r12                                          ; +0x64e, 0x1404591de\nmov     [rbp+60h+var_90], r12                                          ; +0x652, 0x1404591e2\ninc     r15                                                            ; +0x656, 0x1404591e6\ncmp     byte ptr [rdx+r15], 0                                          ; +0x659, 0x1404591e9\njnz     short loc_1404591E6                                            ; +0x65e, 0x1404591ee\nmov     r8, r15                                                        ; +0x660, 0x1404591f0\nlea     rcx, [rbp+60h+var_A8]                                          ; +0x663, 0x1404591f3\ncall    sub_14003A930                                                  ; +0x667, 0x1404591f7\nlea     rdx, [rbp+60h+var_A8]                                          ; +0x66c, 0x1404591fc\nmov     rcx, [rsi+290h]                                                ; +0x670, 0x140459200\ncall    CCTextInputNode__setString                                     ; +0x677, 0x140459207\nmov     [rsp+160h+var_110], 0AA78h                                     ; +0x67c, 0x14045920c\nmov     rcx, [rsi+290h]                                                ; +0x683, 0x140459213\nmovzx   eax, [rsp+160h+var_110]                                        ; +0x68a, 0x14045921a\nmov     [rcx+214h], ax                                                 ; +0x68f, 0x14045921f\nmov     byte ptr [rcx+216h], 0F0h                                      ; +0x696, 0x140459226\ncall    CCTextInputNode__refreshLabel                                  ; +0x69d, 0x14045922d\nmov     rcx, [rsi+290h]                                                ; +0x6a2, 0x140459232\nmov     dword ptr [rcx+210h], 3F333333h                                ; +0x6a9, 0x140459239\ncall    CCTextInputNode__refreshLabel                                  ; +0x6b3, 0x140459243\nmov     rcx, [rsi+288h]                                                ; +0x6b8, 0x140459248\ntest    rcx, rcx                                                       ; +0x6bf, 0x14045924f\njz      short loc_140459273                                            ; +0x6c2, 0x140459252\nlea     rdx, [rbp+60h+var_A8]                                          ; +0x6c4, 0x140459254\ncall    GJSmartTemplate__logTemplateStatus                             ; +0x6c8, 0x140459258\nnop                                                                    ; +0x6cd, 0x14045925d\nor      r14d, 4                                                        ; +0x6ce, 0x14045925e\nmov     [rsp+160h+var_10C.width], r14d                                 ; +0x6d2, 0x140459262\ncmp     qword ptr [rax+18h], 0Fh                                       ; +0x6d7, 0x140459267\njbe     short loc_14045927A                                            ; +0x6dc, 0x14045926c\nmov     rax, [rax]                                                     ; +0x6de, 0x14045926e\njmp     short loc_14045927A                                            ; +0x6e1, 0x140459271\nlea     rax, word_140532F44                                            ; +0x6e3, 0x140459273\nlea     rdx, aChatfontFnt; \"chatFont.fnt\"                              ; +0x6ea, 0x14045927a\nmov     rcx, rax                                                       ; +0x6f1, 0x140459281\ncall    cs:?create@CCLabelBMFont@cocos2d@@SAPEAV12@PEBD0@Z; cocos2d::CCLabelBMFont::create(char const *,char const *) ; +0x6f4, 0x140459284\nmov     rbx, rax                                                       ; +0x6fa, 0x14045928a\ntest    r14b, 4                                                        ; +0x6fd, 0x14045928d\njz      short loc_14045929C                                            ; +0x701, 0x140459291\nlea     rcx, [rbp+60h+var_A8]                                          ; +0x703, 0x140459293\ncall    sub_14003A830                                                  ; +0x707, 0x140459297\nmov     rcx, [rsi+240h]                                                ; +0x70c, 0x14045929c\nmov     r9, [rcx]                                                      ; +0x713, 0x1404592a3\nmov     r8d, 12h                                                       ; +0x716, 0x1404592a6\nmov     rdx, rbx                                                       ; +0x71c, 0x1404592ac\ncall    qword ptr [r9+1B8h]                                            ; +0x71f, 0x1404592af\nmovss   xmm2, cs:dword_140623910                                       ; +0x726, 0x1404592b6\nxorps   xmm1, xmm1                                                     ; +0x72e, 0x1404592be\nlea     rcx, [rbp+60h+Block]                                           ; +0x731, 0x1404592c1\ncall    cs:??0CCPoint@cocos2d@@QEAA@MM@Z; cocos2d::CCPoint::CCPoint(float,float) ; +0x735, 0x1404592c5\nmov     r8, rax                                                        ; +0x73b, 0x1404592cb\nlea     rdx, [rsp+160h+var_10C]                                        ; +0x73e, 0x1404592ce\nlea     rcx, [rsp+160h+var_F8]                                         ; +0x743, 0x1404592d3\ncall    cs:??HCCPoint@cocos2d@@QEBA?AV01@AEBV01@@Z; cocos2d::CCPoint::operator+(cocos2d::CCPoint const &) ; +0x748, 0x1404592d8\nmov     rax, [rbx]                                                     ; +0x74e, 0x1404592de\nlea     rdx, [rsp+160h+var_10C]                                        ; +0x751, 0x1404592e1\nmov     rcx, rbx                                                       ; +0x756, 0x1404592e6\ncall    qword ptr [rax+0B8h]                                           ; +0x759, 0x1404592e9\nxorps   xmm3, xmm3                                                     ; +0x75f, 0x1404592ef\nmovss   xmm2, cs:dword_140622B38                                       ; +0x762, 0x1404592f2\nmovss   xmm1, cs:dword_14062343C                                       ; +0x76a, 0x1404592fa\nmov     rcx, rbx                                                       ; +0x772, 0x140459302\ncall    cs:?limitLabelWidth@CCLabelBMFont@cocos2d@@QEAAXMMM@Z; cocos2d::CCLabelBMFont::limitLabelWidth(float,float,float) ; +0x775, 0x140459305\nmov     ecx, 2C0h; Size                                                ; +0x77b, 0x14045930b\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x780, 0x140459310\nmov     [rbp+60h+Block], rax                                           ; +0x785, 0x140459315\nmov     rcx, rax                                                       ; +0x789, 0x140459319\ncall    ButtonSprite__ButtonSprite                                     ; +0x78c, 0x14045931c\nmov     rbx, rax                                                       ; +0x791, 0x140459321\nlea     r14, aGjButton01Png; \"GJ_button_01.png\"                        ; +0x794, 0x140459324\nlea     r15, aGoldfontFnt; \"goldFont.fnt\"                              ; +0x79b, 0x14045932b\nmovss   xmm6, cs:dword_140623164                                       ; +0x7a2, 0x140459332\nmovss   xmm8, cs:dword_140622BA4                                       ; +0x7aa, 0x14045933a\ntest    rax, rax                                                       ; +0x7b3, 0x140459343\njz      short loc_140459397                                            ; +0x7b6, 0x140459346\nmovss   [rsp+160h+var_120], xmm6                                       ; +0x7b8, 0x140459348\nmov     qword ptr [rsp+160h+var_128], r14                              ; +0x7be, 0x14045934e\nmov     [rsp+160h+var_130], r15                                        ; +0x7c3, 0x140459353\nmov     byte ptr [rsp+160h+var_138], 1                                 ; +0x7c8, 0x140459358\nmovss   dword ptr [rsp+160h+var_140], xmm8                             ; +0x7cd, 0x14045935d\nxor     r9d, r9d                                                       ; +0x7d4, 0x140459364\nlea     r8d, [r9+28h]                                                  ; +0x7d7, 0x140459367\nlea     rdx, aBrowse; \"Browse\"                                         ; +0x7db, 0x14045936b\nmov     rcx, rax                                                       ; +0x7e2, 0x140459372\ncall    ButtonSprite__init_1                                           ; +0x7e5, 0x140459375\nmov     rcx, rbx                                                       ; +0x7ea, 0x14045937a\ntest    al, al                                                         ; +0x7ed, 0x14045937d\njz      short loc_140459389                                            ; +0x7ef, 0x14045937f\ncall    cs:?autorelease@CCObject@cocos2d@@QEAAPEAV12@XZ; cocos2d::CCObject::autorelease(void) ; +0x7f1, 0x140459381\njmp     short loc_140459397                                            ; +0x7f7, 0x140459387\nmov     rax, [rbx]                                                     ; +0x7f9, 0x140459389\nmov     edx, 1                                                         ; +0x7fc, 0x14045938c\ncall    qword ptr [rax+8]                                              ; +0x801, 0x140459391\nmov     rbx, r12                                                       ; +0x804, 0x140459394\nlea     r9, SetupSmartTemplateLayer__onClick                           ; +0x807, 0x140459397\nmov     r8, rsi                                                        ; +0x80e, 0x14045939e\nxor     edx, edx                                                       ; +0x811, 0x1404593a1\nmov     rcx, rbx                                                       ; +0x813, 0x1404593a3\ncall    CCMenuItemSpriteExtra__create                                  ; +0x816, 0x1404593a6\nmov     rdi, rax                                                       ; +0x81b, 0x1404593ab\nmov     r8, [rax]                                                      ; +0x81e, 0x1404593ae\nxor     edx, edx                                                       ; +0x821, 0x1404593b1\nmov     rcx, rax                                                       ; +0x823, 0x1404593b3\ncall    qword ptr [r8+40h]                                             ; +0x826, 0x1404593b6\nmov     rcx, [rsi+220h]                                                ; +0x82a, 0x1404593ba\nmov     r8, [rcx]                                                      ; +0x831, 0x1404593c1\nmov     rdx, rdi                                                       ; +0x834, 0x1404593c4\ncall    qword ptr [r8+1C0h]                                            ; +0x837, 0x1404593c7\nmov     rbx, [rdi]                                                     ; +0x83e, 0x1404593ce\nmovss   xmm2, [rsp+160h+var_FC]                                        ; +0x841, 0x1404593d1\nmulss   xmm2, xmm7                                                     ; +0x847, 0x1404593d7\nmovss   xmm1, [rsp+160h+var_100]                                       ; +0x84b, 0x1404593db\nmulss   xmm1, xmm7                                                     ; +0x851, 0x1404593e1\nlea     rcx, [rbp+60h+Block]                                           ; +0x855, 0x1404593e5\ncall    cs:??0CCPoint@cocos2d@@QEAA@MM@Z; cocos2d::CCPoint::CCPoint(float,float) ; +0x859, 0x1404593e9\nmov     r8, rax                                                        ; +0x85f, 0x1404593ef\nlea     rdx, [rsp+160h+var_10C]                                        ; +0x862, 0x1404593f2\nmov     rcx, [rsi+220h]                                                ; +0x867, 0x1404593f7\ncall    cs:?convertToNodeSpace@CCNode@cocos2d@@QEAA?AVCCPoint@2@AEBV32@@Z; cocos2d::CCNode::convertToNodeSpace(cocos2d::CCPoint const &) ; +0x86e, 0x1404593fe\nmov     rdx, rax                                                       ; +0x874, 0x140459404\nmov     rcx, rdi                                                       ; +0x877, 0x140459407\ncall    qword ptr [rbx+0B8h]                                           ; +0x87a, 0x14045940a\nmov     ecx, 2C0h; Size                                                ; +0x880, 0x140459410\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x885, 0x140459415\nmov     [rbp+60h+Block], rax                                           ; +0x88a, 0x14045941a\nmov     rcx, rax                                                       ; +0x88e, 0x14045941e\ncall    ButtonSprite__ButtonSprite                                     ; +0x891, 0x140459421\nmov     rbx, rax                                                       ; +0x896, 0x140459426\ntest    rax, rax                                                       ; +0x899, 0x140459429\njz      short loc_14045947D                                            ; +0x89c, 0x14045942c\nmovss   [rsp+160h+var_120], xmm6                                       ; +0x89e, 0x14045942e\nmov     qword ptr [rsp+160h+var_128], r14                              ; +0x8a4, 0x140459434\nmov     [rsp+160h+var_130], r15                                        ; +0x8a9, 0x140459439\nmov     byte ptr [rsp+160h+var_138], 1                                 ; +0x8ae, 0x14045943e\nmovss   dword ptr [rsp+160h+var_140], xmm8                             ; +0x8b3, 0x140459443\nxor     r9d, r9d                                                       ; +0x8ba, 0x14045944a\nlea     r8d, [r9+28h]                                                  ; +0x8bd, 0x14045944d\nlea     rdx, aDelete_0; \"Delete\"                                       ; +0x8c1, 0x140459451\nmov     rcx, rax                                                       ; +0x8c8, 0x140459458\ncall    ButtonSprite__init_1                                           ; +0x8cb, 0x14045945b\nmov     rcx, rbx                                                       ; +0x8d0, 0x140459460\ntest    al, al                                                         ; +0x8d3, 0x140459463\njz      short loc_14045946F                                            ; +0x8d5, 0x140459465\ncall    cs:?autorelease@CCObject@cocos2d@@QEAAPEAV12@XZ; cocos2d::CCObject::autorelease(void) ; +0x8d7, 0x140459467\njmp     short loc_14045947D                                            ; +0x8dd, 0x14045946d\nmov     rax, [rbx]                                                     ; +0x8df, 0x14045946f\nmov     edx, 1                                                         ; +0x8e2, 0x140459472\ncall    qword ptr [rax+8]                                              ; +0x8e7, 0x140459477\nmov     rbx, r12                                                       ; +0x8ea, 0x14045947a\nlea     r9, SetupSmartTemplateLayer__onClick                           ; +0x8ed, 0x14045947d\nmov     r8, rsi                                                        ; +0x8f4, 0x140459484\nxor     edx, edx                                                       ; +0x8f7, 0x140459487\nmov     rcx, rbx                                                       ; +0x8f9, 0x140459489\ncall    CCMenuItemSpriteExtra__create                                  ; +0x8fc, 0x14045948c\nmov     rdi, rax                                                       ; +0x901, 0x140459491\nmov     r8, [rax]                                                      ; +0x904, 0x140459494\nmov     edx, 5                                                         ; +0x907, 0x140459497\nmov     rcx, rax                                                       ; +0x90c, 0x14045949c\ncall    qword ptr [r8+40h]                                             ; +0x90f, 0x14045949f\nmov     rcx, [rsi+220h]                                                ; +0x913, 0x1404594a3\nmov     r8, [rcx]                                                      ; +0x91a, 0x1404594aa\nmov     rdx, rdi                                                       ; +0x91d, 0x1404594ad\ncall    qword ptr [r8+1C0h]                                            ; +0x920, 0x1404594b0\nmov     rbx, [rdi]                                                     ; +0x927, 0x1404594b7\nmovss   xmm2, [rsp+160h+var_FC]                                        ; +0x92a, 0x1404594ba\nmulss   xmm2, xmm7                                                     ; +0x930, 0x1404594c0\nmovss   xmm1, [rsp+160h+var_100]                                       ; +0x934, 0x1404594c4\nmulss   xmm1, xmm7                                                     ; +0x93a, 0x1404594ca\naddss   xmm1, cs:dword_1406232BC                                       ; +0x93e, 0x1404594ce\nlea     rcx, [rbp+60h+Block]                                           ; +0x946, 0x1404594d6\ncall    cs:??0CCPoint@cocos2d@@QEAA@MM@Z; cocos2d::CCPoint::CCPoint(float,float) ; +0x94a, 0x1404594da\nmov     r8, rax                                                        ; +0x950, 0x1404594e0\nlea     rdx, [rsp+160h+var_10C]                                        ; +0x953, 0x1404594e3\nmov     rcx, [rsi+220h]                                                ; +0x958, 0x1404594e8\ncall    cs:?convertToNodeSpace@CCNode@cocos2d@@QEAA?AVCCPoint@2@AEBV32@@Z; cocos2d::CCNode::convertToNodeSpace(cocos2d::CCPoint const &) ; +0x95f, 0x1404594ef\nmov     rdx, rax                                                       ; +0x965, 0x1404594f5\nmov     rcx, rdi                                                       ; +0x968, 0x1404594f8\ncall    qword ptr [rbx+0B8h]                                           ; +0x96b, 0x1404594fb\nnop                                                                    ; +0x971, 0x140459501\nmov     rdx, qword ptr [rbp+60h+var_78+8]                              ; +0x972, 0x140459502\ncmp     rdx, 0Fh                                                       ; +0x976, 0x140459506\njbe     short loc_140459540                                            ; +0x97a, 0x14045950a\ninc     rdx                                                            ; +0x97c, 0x14045950c\nmov     rcx, [rbp+60h+var_88]; Block                                   ; +0x97f, 0x14045950f\nmov     rax, rcx                                                       ; +0x983, 0x140459513\ncmp     rdx, 1000h                                                     ; +0x986, 0x140459516\njb      short loc_14045953B                                            ; +0x98d, 0x14045951d\nadd     rdx, 27h ; '''                                                 ; +0x98f, 0x14045951f\nmov     rcx, [rcx-8]                                                   ; +0x993, 0x140459523\nsub     rax, rcx                                                       ; +0x997, 0x140459527\nadd     rax, 0FFFFFFFFFFFFFFF8h                                        ; +0x99a, 0x14045952a\ncmp     rax, 1Fh                                                       ; +0x99e, 0x14045952e\njbe     short loc_14045953B                                            ; +0x9a2, 0x140459532\ncall    cs:_invalid_parameter_noinfo_noreturn                          ; +0x9a4, 0x140459534\ndb 0CCh                                                                ; +0x9aa, 0x14045953a\ncall    j_j_free                                                       ; +0x9ab, 0x14045953b\nmov     al, 1                                                          ; +0x9b0, 0x140459540\nmov     rcx, [rbp+60h+var_68]                                          ; +0x9b2, 0x140459542\nxor     rcx, rsp; StackCookie                                          ; +0x9b6, 0x140459546\ncall    __security_check_cookie                                        ; +0x9b9, 0x140459549\nlea     r11, [rsp+160h+var_20]                                         ; +0x9be, 0x14045954e\nmov     rbx, [r11+38h]                                                 ; +0x9c6, 0x140459556\nmov     rsi, [r11+40h]                                                 ; +0x9ca, 0x14045955a\nmovaps  xmm6, xmmword ptr [r11-10h]                                    ; +0x9ce, 0x14045955e\nmovaps  xmm7, xmmword ptr [r11-20h]                                    ; +0x9d3, 0x140459563\nmovaps  xmm8, xmmword ptr [r11-30h]                                    ; +0x9d8, 0x140459568\nmovaps  xmm9, xmmword ptr [r11-40h]                                    ; +0x9dd, 0x14045956d\nmov     rsp, r11                                                       ; +0x9e2, 0x140459572\npop     r15                                                            ; +0x9e5, 0x140459575\npop     r14                                                            ; +0x9e7, 0x140459577\npop     r12                                                            ; +0x9e9, 0x140459579\npop     rdi                                                            ; +0x9eb, 0x14045957b\npop     rbp                                                            ; +0x9ec, 0x14045957c\nretn                                                                   ; +0x9ed, 0x14045957d", "xrefs": ["SetupSmartTemplateLayer::create @ 0x140458b56", "<???> @ 0x1406daa90"], "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"}