{"type": "func", "start": 5371292352, "end": 5371294053, "name": "GJGarageLayer::setupSpecialPage", "pseudocode": "// \n// GJGarageLayer::setupSpecialPage from 0x140276ac0 to 0x140277165 (1701 bytes)\n// \n// 2 xrefs:\n// > GJGarageLayer::setupPage @ 0x1402760ee\n// > <???> @ 0x1406d0f98\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=5\nvoid GJGarageLayer::setupSpecialPage(GJGarageLayer *a1)\n{\n  float v1; // xmm0_4\n  cocos2d::CCDirector *v3; // rax\n  ListButtonBar *m_iconSelection; // rcx\n  cocos2d::CCArray *Items_1; // rbx\n  cocos2d::CCPoint v6; // rax\n  ListButtonBar *v7; // rax\n  bool v8; // dl\n  CCMenuItemSpriteExtra *m_currentIcon; // rcx\n  cocos2d::CCSprite_vtbl *v10; // rsi\n  CCMenuItemSpriteExtra *v11; // rdi\n  cocos2d::CCNode *v12; // rax\n  struct cocos2d::CCPoint v13; // rax\n  _BOOL8 v14; // rdx\n  cocos2d::CCArray *v15; // rbx\n  cocos2d::CCPoint v16; // rax\n  ListButtonBar *v17; // rbx\n  bool v18; // dl\n  CCMenuItemSpriteExtra *v19; // rcx\n  cocos2d::CCSprite_vtbl *v20; // rsi\n  CCMenuItemSpriteExtra *v21; // rdi\n  cocos2d::CCNode *v22; // rax\n  struct cocos2d::CCPoint v23; // rax\n  _BOOL8 v24; // rdx\n  struct cocos2d::CCMenu *v25; // rbx\n  int v26; // r14d\n  GameManager *v27; // rcx\n  bool isIconUnlocked; // r12\n  GameStatsManager *v29; // rcx\n  int ItemUnlockState; // r13d\n  GameStatsManager *v31; // rcx\n  GJItemIcon *BrowserItem; // rsi\n  __int64 v33; // rbx\n  __int64 v34; // rcx\n  bool v35; // bl\n  cocos2d::CCString *v36; // rax\n  float v37; // xmm0_4\n  float v38; // xmm7_4\n  CCMenuItemSpriteExtra *v39; // rax\n  cocos2d::CCObject *v40; // rdi\n  cocos2d::CCObject_vtbl *v41; // rbx\n  __int64 v42; // rax\n  GJItemIcon_vtbl *v43; // rbx\n  float *v44; // rax\n  const cocos2d::CCPoint *v45; // rax\n  float v46; // xmm0_4\n  int v47; // [rsp+48h] [rbp-C0h]\n  int v48; // [rsp+48h] [rbp-C0h]\n  cocos2d::ccColor3B v49[5]; // [rsp+68h] [rbp-A0h] BYREF\n  float v50; // [rsp+78h] [rbp-90h]\n  float v51; // [rsp+7Ch] [rbp-8Ch]\n  struct cocos2d::CCPoint v52; // [rsp+80h] [rbp-88h] BYREF\n  int v53; // [rsp+88h] [rbp-80h]\n  struct cocos2d::CCSprite *v54; // [rsp+98h] [rbp-70h]\n  struct cocos2d::CCMenu *v55; // [rsp+A0h] [rbp-68h]\n  struct cocos2d::CCPoint v56; // [rsp+A8h] [rbp-60h] BYREF\n  void *v57; // [rsp+B0h] [rbp-58h]\n  void *v58; // [rsp+B8h] [rbp-50h]\n  void *v59; // [rsp+C0h] [rbp-48h]\n  CCMenuItemSpriteExtra *v60; // [rsp+C8h] [rbp-40h]\n  _QWORD v61[4]; // [rsp+E0h] [rbp-28h] BYREF\n\n  v3 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(a1);\n  cocos2d::CCDirector::getWinSize(v3);\n  m_iconSelection = a1->m_iconSelection;\n  if ( m_iconSelection )\n  {\n    m_iconSelection->removeMeAndCleanup(m_iconSelection);\n    a1->m_iconSelection = nullptr;\n  }\n  Items_1 = GJGarageLayer::getItems_1(a1, Special);\n  cocos2d::CCPoint::CCPoint(v1, v50 * 0.5);\n  v7 = ListButtonBar::create(Items_1, v6, 12, 3, 5.0, 5.0, 25.0, 220.0, v47);\n  a1->m_iconSelection = v7;\n  BoomScrollLayer::togglePageIndicators(v7->m_scrollLayer, v8);\n  a1->addChild_0(a1, a1->m_iconSelection, 100);\n  m_currentIcon = a1->m_currentIcon;\n  v10 = a1->m_cursor1->__vftable;\n  if ( m_currentIcon )\n  {\n    v11 = a1->m_currentIcon;\n    m_currentIcon->getPosition_0(m_currentIcon);\n    v12 = v11->getParent(v11);\n    v13 = cocos2d::CCNode::convertToWorldSpace(v12, &v52);\n    ((void (__fastcall *)(cocos2d::CCSprite *, struct cocos2d::CCPoint))v10->setPosition_0)(a1->m_cursor1, v13);\n    LOBYTE(v14) = 1;\n    a1->m_cursor1->setVisible(a1->m_cursor1, v14);\n  }\n  else\n  {\n    v10->setVisible(a1->m_cursor1, 0);\n  }\n  v15 = GJGarageLayer::getItems_1(a1, ShipFire);\n  cocos2d::CCPoint::CCPoint(\n    COERCE_FLOAT(COERCE_UNSIGNED_INT64((float)((float)((float)(v51 * 0.5) - 5.0) - 60.0) - 30.0)),\n    v50 * 0.5);\n  v17 = ListButtonBar::create(v15, v16, 12, 3, 5.0, 5.0, 25.0, 220.0, v48);\n  BoomScrollLayer::togglePageIndicators(v17->m_scrollLayer, v18);\n  a1->m_iconSelection->addChild_0(a1->m_iconSelection, v17, 100);\n  v19 = a1->m_currentIcon;\n  v20 = a1->m_cursor2->__vftable;\n  if ( v19 )\n  {\n    v21 = a1->m_currentIcon;\n    v19->getPosition_0(v19);\n    v22 = v21->getParent(v21);\n    v23 = cocos2d::CCNode::convertToWorldSpace(v22, &v52);\n    ((void (__fastcall *)(cocos2d::CCSprite *, struct cocos2d::CCPoint))v20->setPosition_0)(a1->m_cursor2, v23);\n    LOBYTE(v24) = 1;\n    a1->m_cursor2->setVisible(a1->m_cursor2, v24);\n  }\n  else\n  {\n    v20->setVisible(a1->m_cursor2, 0);\n  }\n  v25 = cocos2d::CCMenu::create(nullptr);\n  v55 = v25;\n  a1->m_iconSelection->addChild_0(a1->m_iconSelection, v25, 1000);\n  cocos2d::CCPoint::CCPoint(\n    COERCE_FLOAT(COERCE_UNSIGNED_INT64((float)((float)((float)(v51 * 0.5) - 5.0) - 60.0) - 30.0)),\n    (float)((float)(v50 * 0.5) - 137.5) - 27.5);\n  cocos2d::CCNode::convertToWorldSpace(a1->m_iconSelection, &v52);\n  cocos2d::CCNode::convertToNodeSpace(v25, &v56);\n  v54 = cocos2d::CCSprite::createWithSpriteFrameName(\"playerSquare_001.png\");\n  v26 = 18;\n  v53 = 0;\n  do\n  {\n    v27 = (GameManager *)qword_1406C2ED8;\n    if ( !qword_1406C2ED8 )\n    {\n      v57 = operator new(0x668u);\n      qword_1406C2ED8 = sub_14017AB00((__int64)v57);\n      (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2ED8 + 72LL))(qword_1406C2ED8);\n      v27 = (GameManager *)qword_1406C2ED8;\n    }\n    isIconUnlocked = GameManager::isIconUnlocked(v27, v26, Item);\n    v29 = (GameStatsManager *)qword_1406C2EE8;\n    if ( !qword_1406C2EE8 )\n    {\n      v58 = operator new(0x3E0u);\n      qword_1406C2EE8 = sub_1401D0AE0((__int64)v58);\n      (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2EE8 + 72LL))(qword_1406C2EE8);\n      v29 = (GameStatsManager *)qword_1406C2EE8;\n    }\n    ItemUnlockState = GameStatsManager::getItemUnlockState(v29, v26, GJItem);\n    BrowserItem = GJItemIcon::createBrowserItem(GJItem, v26);\n    if ( isIconUnlocked )\n    {\n      v33 = qword_1406C2EE8;\n      if ( !qword_1406C2EE8 )\n      {\n        v59 = operator new(0x3E0u);\n        qword_1406C2EE8 = sub_1401D0AE0((__int64)v59);\n        (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2EE8 + 72LL))(qword_1406C2EE8);\n        v33 = qword_1406C2EE8;\n      }\n      if ( GameStatsManager::isItemUnlocked(v31, GJItem, v26) )\n      {\n        GameStatsManager::getItemKey(v34, v61, v26, 0xCu);\n        v36 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey(*(_QWORD *)(v33 + 888), v61);\n        v35 = cocos2d::CCString::boolValue(v36);\n        sub_14003A830((__int64)v61);\n      }\n      else\n      {\n        v35 = 0;\n      }\n      GJItemIcon::toggleEnabledState(BrowserItem, v35);\n    }\n    if ( BrowserItem )\n    {\n      v37 = GJItemIcon::scaleForType(GJItem);\n      v38 = v37;\n      ((void (__fastcall *)(GJItemIcon *))BrowserItem->setScale_0)(BrowserItem);\n      v60 = (CCMenuItemSpriteExtra *)operator new(0x208u);\n      v39 = CCMenuItemSpriteExtra::CCMenuItemSpriteExtra(v60);\n      v40 = v39;\n      if ( v39 )\n      {\n        if ( CCMenuItemSpriteExtra::init(\n               v39,\n               BrowserItem,\n               nullptr,\n               a1,\n               (cocos2d::SEL_MenuHandler *)GJGarageLayer::onToggleItem) )\n        {\n          cocos2d::CCObject::autorelease(v40);\n          goto LABEL_27;\n        }\n        ((void (__fastcall *)(cocos2d::CCObject *, __int64))v40->~CCObject)(v40, 1);\n      }\n      v40 = nullptr;\nLABEL_27:\n      v41 = v40->__vftable;\n      v42 = (__int64)v54->getContentSize(v54);\n      ((void (__fastcall *)(cocos2d::CCObject *, __int64))v41[4].~CCObject)(v40, v42);\n      v43 = BrowserItem->cocos2d::CCSprite::cocos2d::CCNodeRGBA::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable;\n      ((__int64 (__fastcall *)(cocos2d::CCObject *))v40->__vftable[4].isEqual)(v40);\n      v44 = (float *)((__int64 (__fastcall *)(cocos2d::CCObject *))v40->__vftable[4].isEqual)(v40);\n      cocos2d::CCPoint::CCPoint(v37, *v44 * 0.5);\n      v43->setPosition_0(BrowserItem, v45);\n      v40->setTag(v40, v26);\n      v40[9].m_uID = 100;\n      v46 = ((float (__fastcall *)(struct cocos2d::CCMenu *, cocos2d::CCObject *))v55->addChild_1)(v55, v40);\n      LODWORD(v43) = v53;\n      cocos2d::CCPoint::CCPoint(v46, (float)v53);\n      cocos2d::CCPoint::operator+(&v56, &v52);\n      v40->__vftable[2].encodeWithCoder(v40, (DS_Dictionary *)&v52);\n      v53 = (_DWORD)v43 + 30;\n      if ( !isIconUnlocked )\n      {\n        if ( ItemUnlockState )\n        {\n          GJItemIcon::changeToLockedState(BrowserItem, 1.0 / v38);\n        }\n        else\n        {\n          memset(v49, 50, 3);\n          GJItemIcon::darkenStoreItem(BrowserItem, v49);\n        }\n      }\n    }\n    ++v26;\n  }\n  while ( v26 <= 20 );\n}", "assembly": "; \n; GJGarageLayer::setupSpecialPage from 0x140276ac0 to 0x140277165 (1701 bytes)\n; \n; 2 xrefs:\n; > GJGarageLayer::setupPage @ 0x1402760ee\n; > <???> @ 0x1406d0f98\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, 0x140276ac0\nmov     [rax+10h], rbx                                                 ; +0x3, 0x140276ac3\nmov     [rax+18h], rsi                                                 ; +0x7, 0x140276ac7\nmov     [rax+20h], rdi                                                 ; +0xb, 0x140276acb\npush    rbp                                                            ; +0xf, 0x140276acf\npush    r12                                                            ; +0x10, 0x140276ad0\npush    r13                                                            ; +0x12, 0x140276ad2\npush    r14                                                            ; +0x14, 0x140276ad4\npush    r15                                                            ; +0x16, 0x140276ad6\nlea     rbp, [rax-78h]                                                 ; +0x18, 0x140276ad8\nsub     rsp, 150h                                                      ; +0x1c, 0x140276adc\nmovaps  xmmword ptr [rax-38h], xmm6                                    ; +0x23, 0x140276ae3\nmovaps  xmmword ptr [rax-48h], xmm7                                    ; +0x27, 0x140276ae7\nmovaps  xmmword ptr [rax-58h], xmm8                                    ; +0x2b, 0x140276aeb\nmovaps  xmmword ptr [rax-68h], xmm9                                    ; +0x30, 0x140276af0\nmovaps  xmmword ptr [rax-78h], xmm11                                   ; +0x35, 0x140276af5\nmov     rax, cs:__security_cookie                                      ; +0x3a, 0x140276afa\nxor     rax, rsp                                                       ; +0x41, 0x140276b01\nmov     [rbp+70h+var_78], rax                                          ; +0x44, 0x140276b04\nmov     r15, rcx                                                       ; +0x48, 0x140276b08\ncall    cs:?sharedDirector@CCDirector@cocos2d@@SAPEAV12@XZ; cocos2d::CCDirector::sharedDirector(void) ; +0x4b, 0x140276b0b\nmov     rcx, rax                                                       ; +0x51, 0x140276b11\nlea     rdx, [rsp+170h+var_100]                                        ; +0x54, 0x140276b14\ncall    cs:?getWinSize@CCDirector@cocos2d@@QEAA?AVCCSize@2@XZ; cocos2d::CCDirector::getWinSize(void) ; +0x59, 0x140276b19\nmov     rcx, [r15+230h]                                                ; +0x5f, 0x140276b1f\ntest    rcx, rcx                                                       ; +0x66, 0x140276b26\njz      short loc_140276B3F                                            ; +0x69, 0x140276b29\nmov     rax, [rcx]                                                     ; +0x6b, 0x140276b2b\ncall    qword ptr [rax+200h]                                           ; +0x6e, 0x140276b2e\nmov     qword ptr [r15+230h], 0                                        ; +0x74, 0x140276b34\nmov     edx, 63h ; 'c'                                                 ; +0x7f, 0x140276b3f\nmov     rcx, r15                                                       ; +0x84, 0x140276b44\ncall    GJGarageLayer__getItems_1                                      ; +0x87, 0x140276b47\nmov     rbx, rax                                                       ; +0x8c, 0x140276b4c\nmovss   xmm2, [rsp+170h+var_FC]                                        ; +0x8f, 0x140276b4f\nmovss   xmm11, cs:dword_140622B08                                      ; +0x95, 0x140276b55\nmulss   xmm2, xmm11                                                    ; +0x9e, 0x140276b5e\nmovss   xmm6, cs:flt_140623010                                         ; +0xa3, 0x140276b63\nsubss   xmm2, xmm6                                                     ; +0xab, 0x140276b6b\nmovss   xmm7, cs:dword_140623210                                       ; +0xaf, 0x140276b6f\nsubss   xmm2, xmm7                                                     ; +0xb7, 0x140276b77\nmovss   xmm1, [rsp+170h+var_100]                                       ; +0xbb, 0x140276b7b\nmulss   xmm1, xmm11                                                    ; +0xc1, 0x140276b81\nlea     rcx, [rsp+170h+var_F8]                                         ; +0xc6, 0x140276b86\ncall    cs:??0CCPoint@cocos2d@@QEAA@MM@Z; cocos2d::CCPoint::CCPoint(float,float) ; +0xcb, 0x140276b8b\nmov     rdx, rax                                                       ; +0xd1, 0x140276b91\nmovss   xmm8, cs:dword_1406233F4                                       ; +0xd4, 0x140276b94\nmovss   [rsp+170h+var_138], xmm8                                       ; +0xdd, 0x140276b9d\nmovss   xmm9, cs:dword_140623144                                       ; +0xe4, 0x140276ba4\nmovss   [rsp+170h+var_140], xmm9                                       ; +0xed, 0x140276bad\nmovss   [rsp+170h+var_148], xmm6                                       ; +0xf4, 0x140276bb4\nmovss   [rsp+170h+var_150], xmm6                                       ; +0xfa, 0x140276bba\nmov     r9d, 3                                                         ; +0x100, 0x140276bc0\nlea     r8d, [r9+9]                                                    ; +0x106, 0x140276bc6\nmov     rcx, rbx                                                       ; +0x10a, 0x140276bca\ncall    ListButtonBar__create                                          ; +0x10d, 0x140276bcd\nmov     [r15+230h], rax                                                ; +0x112, 0x140276bd2\nmov     rcx, [rax+140h]                                                ; +0x119, 0x140276bd9\ncall    BoomScrollLayer__togglePageIndicators                          ; +0x120, 0x140276be0\nmov     rax, [r15]                                                     ; +0x125, 0x140276be5\nmov     r8d, 64h ; 'd'                                                 ; +0x128, 0x140276be8\nmov     rdx, [r15+230h]                                                ; +0x12e, 0x140276bee\nmov     rcx, r15                                                       ; +0x135, 0x140276bf5\ncall    qword ptr [rax+1B8h]                                           ; +0x138, 0x140276bf8\nmov     rcx, [r15+228h]                                                ; +0x13e, 0x140276bfe\nmov     rax, [r15+218h]                                                ; +0x145, 0x140276c05\nmov     rsi, [rax]                                                     ; +0x14c, 0x140276c0c\ntest    rcx, rcx                                                       ; +0x14f, 0x140276c0f\njz      short loc_140276C64                                            ; +0x152, 0x140276c12\nmov     rdi, rcx                                                       ; +0x154, 0x140276c14\nmov     rax, [rcx]                                                     ; +0x157, 0x140276c17\ncall    qword ptr [rax+0C8h]                                           ; +0x15a, 0x140276c1a\nmov     rbx, rax                                                       ; +0x160, 0x140276c20\nmov     rdx, [rdi]                                                     ; +0x163, 0x140276c23\nmov     rcx, rdi                                                       ; +0x166, 0x140276c26\ncall    qword ptr [rdx+1E8h]                                           ; +0x169, 0x140276c29\nmov     rcx, rax                                                       ; +0x16f, 0x140276c2f\nmov     r8, rbx                                                        ; +0x172, 0x140276c32\nlea     rdx, [rsp+170h+var_F8]                                         ; +0x175, 0x140276c35\ncall    cs:?convertToWorldSpace@CCNode@cocos2d@@QEAA?AVCCPoint@2@AEBV32@@Z; cocos2d::CCNode::convertToWorldSpace(cocos2d::CCPoint const &) ; +0x17a, 0x140276c3a\nmov     rdx, rax                                                       ; +0x180, 0x140276c40\nmov     rcx, [r15+218h]                                                ; +0x183, 0x140276c43\ncall    qword ptr [rsi+0B8h]                                           ; +0x18a, 0x140276c4a\nmov     rcx, [r15+218h]                                                ; +0x190, 0x140276c50\nmov     rax, [rcx]                                                     ; +0x197, 0x140276c57\nmov     dl, 1                                                          ; +0x19a, 0x140276c5a\ncall    qword ptr [rax+140h]                                           ; +0x19c, 0x140276c5c\njmp     short loc_140276C6F                                            ; +0x1a2, 0x140276c62\nxor     edx, edx                                                       ; +0x1a4, 0x140276c64\nmov     rcx, rax                                                       ; +0x1a6, 0x140276c66\ncall    qword ptr [rsi+140h]                                           ; +0x1a9, 0x140276c69\nmov     edx, 65h ; 'e'                                                 ; +0x1af, 0x140276c6f\nmov     rcx, r15                                                       ; +0x1b4, 0x140276c74\ncall    GJGarageLayer__getItems_1                                      ; +0x1b7, 0x140276c77\nmov     rbx, rax                                                       ; +0x1bc, 0x140276c7c\nmovss   xmm0, [rsp+170h+var_FC]                                        ; +0x1bf, 0x140276c7f\nmulss   xmm0, xmm11                                                    ; +0x1c5, 0x140276c85\nsubss   xmm0, xmm6                                                     ; +0x1ca, 0x140276c8a\nsubss   xmm0, xmm7                                                     ; +0x1ce, 0x140276c8e\ncvtps2pd xmm0, xmm0                                                    ; +0x1d2, 0x140276c92\nsubsd   xmm0, cs:qword_140622F20                                       ; +0x1d5, 0x140276c95\ncvtpd2ps xmm2, xmm0                                                    ; +0x1dd, 0x140276c9d\nmovss   xmm1, [rsp+170h+var_100]                                       ; +0x1e1, 0x140276ca1\nmulss   xmm1, xmm11                                                    ; +0x1e7, 0x140276ca7\nlea     rcx, [rsp+170h+var_F8]                                         ; +0x1ec, 0x140276cac\ncall    cs:??0CCPoint@cocos2d@@QEAA@MM@Z; cocos2d::CCPoint::CCPoint(float,float) ; +0x1f1, 0x140276cb1\nmov     rdx, rax                                                       ; +0x1f7, 0x140276cb7\nmovss   [rsp+170h+var_138], xmm8                                       ; +0x1fa, 0x140276cba\nmovss   [rsp+170h+var_140], xmm9                                       ; +0x201, 0x140276cc1\nmovss   [rsp+170h+var_148], xmm6                                       ; +0x208, 0x140276cc8\nmovss   [rsp+170h+var_150], xmm6                                       ; +0x20e, 0x140276cce\nmov     r9d, 3                                                         ; +0x214, 0x140276cd4\nlea     r8d, [r9+9]                                                    ; +0x21a, 0x140276cda\nmov     rcx, rbx                                                       ; +0x21e, 0x140276cde\ncall    ListButtonBar__create                                          ; +0x221, 0x140276ce1\nmov     rbx, rax                                                       ; +0x226, 0x140276ce6\nmov     rcx, [rax+140h]                                                ; +0x229, 0x140276ce9\ncall    BoomScrollLayer__togglePageIndicators                          ; +0x230, 0x140276cf0\nmov     rcx, [r15+230h]                                                ; +0x235, 0x140276cf5\nmov     r9, [rcx]                                                      ; +0x23c, 0x140276cfc\nmov     r8d, 64h ; 'd'                                                 ; +0x23f, 0x140276cff\nmov     rdx, rbx                                                       ; +0x245, 0x140276d05\ncall    qword ptr [r9+1B8h]                                            ; +0x248, 0x140276d08\nmov     rcx, [r15+228h]                                                ; +0x24f, 0x140276d0f\nmov     rax, [r15+220h]                                                ; +0x256, 0x140276d16\nmov     rsi, [rax]                                                     ; +0x25d, 0x140276d1d\ntest    rcx, rcx                                                       ; +0x260, 0x140276d20\njz      short loc_140276D75                                            ; +0x263, 0x140276d23\nmov     rdi, rcx                                                       ; +0x265, 0x140276d25\nmov     rax, [rcx]                                                     ; +0x268, 0x140276d28\ncall    qword ptr [rax+0C8h]                                           ; +0x26b, 0x140276d2b\nmov     rbx, rax                                                       ; +0x271, 0x140276d31\nmov     rdx, [rdi]                                                     ; +0x274, 0x140276d34\nmov     rcx, rdi                                                       ; +0x277, 0x140276d37\ncall    qword ptr [rdx+1E8h]                                           ; +0x27a, 0x140276d3a\nmov     rcx, rax                                                       ; +0x280, 0x140276d40\nmov     r8, rbx                                                        ; +0x283, 0x140276d43\nlea     rdx, [rsp+170h+var_F8]                                         ; +0x286, 0x140276d46\ncall    cs:?convertToWorldSpace@CCNode@cocos2d@@QEAA?AVCCPoint@2@AEBV32@@Z; cocos2d::CCNode::convertToWorldSpace(cocos2d::CCPoint const &) ; +0x28b, 0x140276d4b\nmov     rdx, rax                                                       ; +0x291, 0x140276d51\nmov     rcx, [r15+220h]                                                ; +0x294, 0x140276d54\ncall    qword ptr [rsi+0B8h]                                           ; +0x29b, 0x140276d5b\nmov     rcx, [r15+220h]                                                ; +0x2a1, 0x140276d61\nmov     rax, [rcx]                                                     ; +0x2a8, 0x140276d68\nmov     dl, 1                                                          ; +0x2ab, 0x140276d6b\ncall    qword ptr [rax+140h]                                           ; +0x2ad, 0x140276d6d\njmp     short loc_140276D80                                            ; +0x2b3, 0x140276d73\nxor     edx, edx                                                       ; +0x2b5, 0x140276d75\nmov     rcx, rax                                                       ; +0x2b7, 0x140276d77\ncall    qword ptr [rsi+140h]                                           ; +0x2ba, 0x140276d7a\nxor     ecx, ecx                                                       ; +0x2c0, 0x140276d80\ncall    cs:?create@CCMenu@cocos2d@@SAPEAV12@PEAVCCMenuItem@2@ZZ; cocos2d::CCMenu::create(cocos2d::CCMenuItem *,...) ; +0x2c2, 0x140276d82\nmov     rbx, rax                                                       ; +0x2c8, 0x140276d88\nmov     [rbp+70h+var_D8], rax                                          ; +0x2cb, 0x140276d8b\nmov     rcx, [r15+230h]                                                ; +0x2cf, 0x140276d8f\nmov     r9, [rcx]                                                      ; +0x2d6, 0x140276d96\nmov     r8d, 3E8h                                                      ; +0x2d9, 0x140276d99\nmov     rdx, rax                                                       ; +0x2df, 0x140276d9f\ncall    qword ptr [r9+1B8h]                                            ; +0x2e2, 0x140276da2\nmovss   xmm0, [rsp+170h+var_FC]                                        ; +0x2e9, 0x140276da9\nmulss   xmm0, xmm11                                                    ; +0x2ef, 0x140276daf\nsubss   xmm0, xmm6                                                     ; +0x2f4, 0x140276db4\nsubss   xmm0, xmm7                                                     ; +0x2f8, 0x140276db8\ncvtps2pd xmm0, xmm0                                                    ; +0x2fc, 0x140276dbc\nsubsd   xmm0, cs:qword_140622F20                                       ; +0x2ff, 0x140276dbf\ncvtpd2ps xmm2, xmm0                                                    ; +0x307, 0x140276dc7\nmovss   xmm1, [rsp+170h+var_100]                                       ; +0x30b, 0x140276dcb\nmulss   xmm1, xmm11                                                    ; +0x311, 0x140276dd1\nsubss   xmm1, cs:dword_140623330                                       ; +0x316, 0x140276dd6\nsubss   xmm1, cs:dword_140623150                                       ; +0x31e, 0x140276dde\nlea     rcx, [rbp+70h+var_E8]                                          ; +0x326, 0x140276de6\ncall    cs:??0CCPoint@cocos2d@@QEAA@MM@Z; cocos2d::CCPoint::CCPoint(float,float) ; +0x32a, 0x140276dea\nlea     r8, [rbp+70h+var_E8]                                           ; +0x330, 0x140276df0\nlea     rdx, [rsp+170h+var_F8]                                         ; +0x334, 0x140276df4\nmov     rcx, [r15+230h]                                                ; +0x339, 0x140276df9\ncall    cs:?convertToWorldSpace@CCNode@cocos2d@@QEAA?AVCCPoint@2@AEBV32@@Z; cocos2d::CCNode::convertToWorldSpace(cocos2d::CCPoint const &) ; +0x340, 0x140276e00\nmov     r8, rax                                                        ; +0x346, 0x140276e06\nlea     rdx, [rbp+70h+var_D0]                                          ; +0x349, 0x140276e09\nmov     rcx, rbx                                                       ; +0x34d, 0x140276e0d\ncall    cs:?convertToNodeSpace@CCNode@cocos2d@@QEAA?AVCCPoint@2@AEBV32@@Z; cocos2d::CCNode::convertToNodeSpace(cocos2d::CCPoint const &) ; +0x350, 0x140276e10\nlea     rcx, aPlayersquare00; \"playerSquare_001.png\"                   ; +0x356, 0x140276e16\ncall    cs:?createWithSpriteFrameName@CCSprite@cocos2d@@SAPEAV12@PEBD@Z; cocos2d::CCSprite::createWithSpriteFrameName(char const *) ; +0x35d, 0x140276e1d\nmov     [rbp+70h+var_E0], rax                                          ; +0x363, 0x140276e23\nmov     r14d, 12h                                                      ; +0x367, 0x140276e27\nmov     [rbp+70h+var_F0], 0                                            ; +0x36d, 0x140276e2d\nlea     rbx, GJGarageLayer__onToggleItem                               ; +0x374, 0x140276e34\nmovss   xmm8, cs:flt_140622C24                                         ; +0x37b, 0x140276e3b\nmov     rcx, cs:qword_1406C2ED8                                        ; +0x384, 0x140276e44\ntest    rcx, rcx                                                       ; +0x38b, 0x140276e4b\njnz     short loc_140276E7E                                            ; +0x38e, 0x140276e4e\nmov     ecx, 668h; Size                                                ; +0x390, 0x140276e50\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x395, 0x140276e55\nmov     [rbp+70h+var_C8], rax                                          ; +0x39a, 0x140276e5a\nmov     rcx, rax                                                       ; +0x39e, 0x140276e5e\ncall    sub_14017AB00                                                  ; +0x3a1, 0x140276e61\nnop                                                                    ; +0x3a6, 0x140276e66\nmov     cs:qword_1406C2ED8, rax                                        ; +0x3a7, 0x140276e67\nmov     rdx, [rax]                                                     ; +0x3ae, 0x140276e6e\nmov     rcx, rax                                                       ; +0x3b1, 0x140276e71\ncall    qword ptr [rdx+48h]                                            ; +0x3b4, 0x140276e74\nmov     rcx, cs:qword_1406C2ED8                                        ; +0x3b7, 0x140276e77\nmov     r8d, 64h ; 'd'                                                 ; +0x3be, 0x140276e7e\nmov     edx, r14d                                                      ; +0x3c4, 0x140276e84\ncall    GameManager__isIconUnlocked                                    ; +0x3c7, 0x140276e87\nmovzx   r12d, al                                                       ; +0x3cc, 0x140276e8c\nmov     rcx, cs:qword_1406C2EE8                                        ; +0x3d0, 0x140276e90\ntest    rcx, rcx                                                       ; +0x3d7, 0x140276e97\njnz     short loc_140276ECA                                            ; +0x3da, 0x140276e9a\nmov     ecx, 3E0h; Size                                                ; +0x3dc, 0x140276e9c\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x3e1, 0x140276ea1\nmov     [rbp+70h+var_C0], rax                                          ; +0x3e6, 0x140276ea6\nmov     rcx, rax                                                       ; +0x3ea, 0x140276eaa\ncall    sub_1401D0AE0                                                  ; +0x3ed, 0x140276ead\nnop                                                                    ; +0x3f2, 0x140276eb2\nmov     cs:qword_1406C2EE8, rax                                        ; +0x3f3, 0x140276eb3\nmov     rdx, [rax]                                                     ; +0x3fa, 0x140276eba\nmov     rcx, rax                                                       ; +0x3fd, 0x140276ebd\ncall    qword ptr [rdx+48h]                                            ; +0x400, 0x140276ec0\nmov     rcx, cs:qword_1406C2EE8                                        ; +0x403, 0x140276ec3\nmov     r8d, 0Ch                                                       ; +0x40a, 0x140276eca\nmov     edx, r14d                                                      ; +0x410, 0x140276ed0\ncall    GameStatsManager__getItemUnlockState                           ; +0x413, 0x140276ed3\nmov     r13d, eax                                                      ; +0x418, 0x140276ed8\nmov     edx, r14d                                                      ; +0x41b, 0x140276edb\nmov     ecx, 0Ch                                                       ; +0x41e, 0x140276ede\ncall    GJItemIcon__createBrowserItem                                  ; +0x423, 0x140276ee3\nmov     rsi, rax                                                       ; +0x428, 0x140276ee8\ntest    r12b, r12b                                                     ; +0x42b, 0x140276eeb\njz      loc_140276F8E                                                  ; +0x42e, 0x140276eee\nmov     rbx, cs:qword_1406C2EE8                                        ; +0x434, 0x140276ef4\ntest    rbx, rbx                                                       ; +0x43b, 0x140276efb\njnz     short loc_140276F2E                                            ; +0x43e, 0x140276efe\nmov     ecx, 3E0h; Size                                                ; +0x440, 0x140276f00\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x445, 0x140276f05\nmov     [rbp+70h+var_B8], rax                                          ; +0x44a, 0x140276f0a\nmov     rcx, rax                                                       ; +0x44e, 0x140276f0e\ncall    sub_1401D0AE0                                                  ; +0x451, 0x140276f11\nnop                                                                    ; +0x456, 0x140276f16\nmov     cs:qword_1406C2EE8, rax                                        ; +0x457, 0x140276f17\nmov     rdx, [rax]                                                     ; +0x45e, 0x140276f1e\nmov     rcx, rax                                                       ; +0x461, 0x140276f21\ncall    qword ptr [rdx+48h]                                            ; +0x464, 0x140276f24\nmov     rbx, cs:qword_1406C2EE8                                        ; +0x467, 0x140276f27\nmov     r8d, r14d                                                      ; +0x46e, 0x140276f2e\nmov     edx, 0Ch                                                       ; +0x471, 0x140276f31\ncall    GameStatsManager__isItemUnlocked                               ; +0x476, 0x140276f36\ntest    al, al                                                         ; +0x47b, 0x140276f3b\njnz     short loc_140276F43                                            ; +0x47d, 0x140276f3d\nxor     bl, bl                                                         ; +0x47f, 0x140276f3f\njmp     short loc_140276F7C                                            ; +0x481, 0x140276f41\nmov     r9d, 0Ch                                                       ; +0x483, 0x140276f43\nmov     r8d, r14d                                                      ; +0x489, 0x140276f49\nlea     rdx, [rbp+70h+var_98]                                          ; +0x48c, 0x140276f4c\ncall    GameStatsManager__getItemKey                                   ; +0x490, 0x140276f50\nnop                                                                    ; +0x495, 0x140276f55\nlea     rdx, [rbp+70h+var_98]                                          ; +0x496, 0x140276f56\nmov     rcx, [rbx+378h]                                                ; +0x49a, 0x140276f5a\ncall    cs:?valueForKey@CCDictionary@cocos2d@@QEAAPEBVCCString@2@AEBV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z; cocos2d::CCDictionary::valueForKey(std::string const &) ; +0x4a1, 0x140276f61\nmov     rcx, rax                                                       ; +0x4a7, 0x140276f67\ncall    cs:?boolValue@CCString@cocos2d@@QEBA_NXZ; cocos2d::CCString::boolValue(void) ; +0x4aa, 0x140276f6a\nmovzx   ebx, al                                                        ; +0x4b0, 0x140276f70\nlea     rcx, [rbp+70h+var_98]                                          ; +0x4b3, 0x140276f73\ncall    sub_14003A830                                                  ; +0x4b7, 0x140276f77\nmovzx   edx, bl                                                        ; +0x4bc, 0x140276f7c\nmov     rcx, rsi                                                       ; +0x4bf, 0x140276f7f\ncall    GJItemIcon__toggleEnabledState                                 ; +0x4c2, 0x140276f82\nlea     rbx, GJGarageLayer__onToggleItem                               ; +0x4c7, 0x140276f87\ntest    rsi, rsi                                                       ; +0x4ce, 0x140276f8e\njz      loc_14027710B                                                  ; +0x4d1, 0x140276f91\nmov     ecx, 0Ch                                                       ; +0x4d7, 0x140276f97\ncall    GJItemIcon__scaleForType                                       ; +0x4dc, 0x140276f9c\nmovaps  xmm7, xmm0                                                     ; +0x4e1, 0x140276fa1\nmov     rax, [rsi]                                                     ; +0x4e4, 0x140276fa4\nmovaps  xmm1, xmm0                                                     ; +0x4e7, 0x140276fa7\nmov     rcx, rsi                                                       ; +0x4ea, 0x140276faa\ncall    qword ptr [rax+0A0h]                                           ; +0x4ed, 0x140276fad\nmov     ecx, 208h; Size                                                ; +0x4f3, 0x140276fb3\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x4f8, 0x140276fb8\nmov     [rbp+70h+var_B0], rax                                          ; +0x4fd, 0x140276fbd\nmov     rcx, rax                                                       ; +0x501, 0x140276fc1\ncall    CCMenuItemSpriteExtra__CCMenuItemSpriteExtra                   ; +0x504, 0x140276fc4\nmov     rdi, rax                                                       ; +0x509, 0x140276fc9\ntest    rax, rax                                                       ; +0x50c, 0x140276fcc\njz      short loc_140277001                                            ; +0x50f, 0x140276fcf\nmov     qword ptr [rsp+170h+var_150], rbx                              ; +0x511, 0x140276fd1\nmov     r9, r15                                                        ; +0x516, 0x140276fd6\nxor     r8d, r8d                                                       ; +0x519, 0x140276fd9\nmov     rdx, rsi                                                       ; +0x51c, 0x140276fdc\nmov     rcx, rax                                                       ; +0x51f, 0x140276fdf\ncall    CCMenuItemSpriteExtra__init                                    ; +0x522, 0x140276fe2\nmov     rcx, rdi                                                       ; +0x527, 0x140276fe7\ntest    al, al                                                         ; +0x52a, 0x140276fea\njz      short loc_140276FF6                                            ; +0x52c, 0x140276fec\ncall    cs:?autorelease@CCObject@cocos2d@@QEAAPEAV12@XZ; cocos2d::CCObject::autorelease(void) ; +0x52e, 0x140276fee\njmp     short loc_140277003                                            ; +0x534, 0x140276ff4\nmov     rax, [rdi]                                                     ; +0x536, 0x140276ff6\nmov     edx, 1                                                         ; +0x539, 0x140276ff9\ncall    qword ptr [rax+8]                                              ; +0x53e, 0x140276ffe\nxor     edi, edi                                                       ; +0x541, 0x140277001\nmov     rbx, [rdi]                                                     ; +0x543, 0x140277003\nmov     rcx, [rbp+70h+var_E0]                                          ; +0x546, 0x140277006\nmov     rax, [rcx]                                                     ; +0x54a, 0x14027700a\ncall    qword ptr [rax+130h]                                           ; +0x54d, 0x14027700d\nmov     rdx, rax                                                       ; +0x553, 0x140277013\nmov     rcx, rdi                                                       ; +0x556, 0x140277016\ncall    qword ptr [rbx+128h]                                           ; +0x559, 0x140277019\nmov     rbx, [rsi]                                                     ; +0x55f, 0x14027701f\nmov     rax, [rdi]                                                     ; +0x562, 0x140277022\nmov     rcx, rdi                                                       ; +0x565, 0x140277025\ncall    qword ptr [rax+130h]                                           ; +0x568, 0x140277028\nmovss   xmm6, dword ptr [rax+4]                                        ; +0x56e, 0x14027702e\nmov     rax, [rdi]                                                     ; +0x573, 0x140277033\nmov     rcx, rdi                                                       ; +0x576, 0x140277036\ncall    qword ptr [rax+130h]                                           ; +0x579, 0x140277039\nmulss   xmm6, xmm11                                                    ; +0x57f, 0x14027703f\nmovss   xmm1, dword ptr [rax]                                          ; +0x584, 0x140277044\nmulss   xmm1, xmm11                                                    ; +0x588, 0x140277048\nmovaps  xmm2, xmm6                                                     ; +0x58d, 0x14027704d\nlea     rcx, [rbp+70h+var_A8]                                          ; +0x590, 0x140277050\ncall    cs:??0CCPoint@cocos2d@@QEAA@MM@Z; cocos2d::CCPoint::CCPoint(float,float) ; +0x594, 0x140277054\nmov     rdx, rax                                                       ; +0x59a, 0x14027705a\nmov     rcx, rsi                                                       ; +0x59d, 0x14027705d\ncall    qword ptr [rbx+0B8h]                                           ; +0x5a0, 0x140277060\nmov     rax, [rdi]                                                     ; +0x5a6, 0x140277066\nmov     edx, r14d                                                      ; +0x5a9, 0x140277069\nmov     rcx, rdi                                                       ; +0x5ac, 0x14027706c\ncall    qword ptr [rax+40h]                                            ; +0x5af, 0x14027706f\nmov     dword ptr [rdi+200h], 64h ; 'd'                                ; +0x5b2, 0x140277072\nmov     rbx, [rbp+70h+var_D8]                                          ; +0x5bc, 0x14027707c\nmov     rax, [rbx]                                                     ; +0x5c0, 0x140277080\nmov     rdx, rdi                                                       ; +0x5c3, 0x140277083\nmov     rcx, rbx                                                       ; +0x5c6, 0x140277086\ncall    qword ptr [rax+1C0h]                                           ; +0x5c9, 0x140277089\nmov     ebx, [rbp+70h+var_F0]                                          ; +0x5cf, 0x14027708f\nmovd    xmm1, ebx                                                      ; +0x5d2, 0x140277092\ncvtdq2ps xmm1, xmm1                                                    ; +0x5d6, 0x140277096\nxorps   xmm2, xmm2                                                     ; +0x5d9, 0x140277099\nlea     rcx, [rbp+70h+var_A0]                                          ; +0x5dc, 0x14027709c\ncall    cs:??0CCPoint@cocos2d@@QEAA@MM@Z; cocos2d::CCPoint::CCPoint(float,float) ; +0x5e0, 0x1402770a0\nmov     r8, rax                                                        ; +0x5e6, 0x1402770a6\nlea     rdx, [rsp+170h+var_F8]                                         ; +0x5e9, 0x1402770a9\nlea     rcx, [rbp+70h+var_D0]                                          ; +0x5ee, 0x1402770ae\ncall    cs:??HCCPoint@cocos2d@@QEBA?AV01@AEBV01@@Z; cocos2d::CCPoint::operator+(cocos2d::CCPoint const &) ; +0x5f2, 0x1402770b2\nmov     rax, [rdi]                                                     ; +0x5f8, 0x1402770b8\nlea     rdx, [rsp+170h+var_F8]                                         ; +0x5fb, 0x1402770bb\nmov     rcx, rdi                                                       ; +0x600, 0x1402770c0\ncall    qword ptr [rax+0B8h]                                           ; +0x603, 0x1402770c3\nadd     ebx, 1Eh                                                       ; +0x609, 0x1402770c9\nmov     [rbp+70h+var_F0], ebx                                          ; +0x60c, 0x1402770cc\ntest    r12b, r12b                                                     ; +0x60f, 0x1402770cf\njnz     short loc_14027710B                                            ; +0x612, 0x1402770d2\nmov     rcx, rsi                                                       ; +0x614, 0x1402770d4\ntest    r13d, r13d                                                     ; +0x617, 0x1402770d7\njnz     short loc_1402770FE                                            ; +0x61a, 0x1402770da\nmov     [rsp+170h+var_120], 3232h                                      ; +0x61c, 0x1402770dc\nmovzx   eax, [rsp+170h+var_120]                                        ; +0x623, 0x1402770e3\nmov     [rsp+170h+var_110], ax                                         ; +0x628, 0x1402770e8\nmov     [rsp+170h+var_10E], 32h ; '2'                                  ; +0x62d, 0x1402770ed\nlea     rdx, [rsp+170h+var_110]                                        ; +0x632, 0x1402770f2\ncall    GJItemIcon__darkenStoreItem                                    ; +0x637, 0x1402770f7\njmp     short loc_14027710B                                            ; +0x63c, 0x1402770fc\nmovaps  xmm1, xmm8                                                     ; +0x63e, 0x1402770fe\ndivss   xmm1, xmm7                                                     ; +0x642, 0x140277102\ncall    GJItemIcon__changeToLockedState                                ; +0x646, 0x140277106\ninc     r14d                                                           ; +0x64b, 0x14027710b\ncmp     r14d, 14h                                                      ; +0x64e, 0x14027710e\nlea     rbx, GJGarageLayer__onToggleItem                               ; +0x652, 0x140277112\njle     loc_140276E44                                                  ; +0x659, 0x140277119\nmov     rcx, [rbp+70h+var_78]                                          ; +0x65f, 0x14027711f\nxor     rcx, rsp; StackCookie                                          ; +0x663, 0x140277123\ncall    __security_check_cookie                                        ; +0x666, 0x140277126\nlea     r11, [rsp+170h+var_20]                                         ; +0x66b, 0x14027712b\nmov     rbx, [r11+38h]                                                 ; +0x673, 0x140277133\nmov     rsi, [r11+40h]                                                 ; +0x677, 0x140277137\nmov     rdi, [r11+48h]                                                 ; +0x67b, 0x14027713b\nmovaps  xmm6, xmmword ptr [r11-10h]                                    ; +0x67f, 0x14027713f\nmovaps  xmm7, xmmword ptr [r11-20h]                                    ; +0x684, 0x140277144\nmovaps  xmm8, xmmword ptr [r11-30h]                                    ; +0x689, 0x140277149\nmovaps  xmm9, xmmword ptr [r11-40h]                                    ; +0x68e, 0x14027714e\nmovaps  xmm11, xmmword ptr [r11-50h]                                   ; +0x693, 0x140277153\nmov     rsp, r11                                                       ; +0x698, 0x140277158\npop     r15                                                            ; +0x69b, 0x14027715b\npop     r14                                                            ; +0x69d, 0x14027715d\npop     r13                                                            ; +0x69f, 0x14027715f\npop     r12                                                            ; +0x6a1, 0x140277161\npop     rbp                                                            ; +0x6a3, 0x140277163\nretn                                                                   ; +0x6a4, 0x140277164", "xrefs": ["GJGarageLayer::setupPage @ 0x1402760ee", "<???> @ 0x1406d0f98"], "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"}