{"type": "func", "start": 5371289744, "end": 5371291425, "name": "GJGarageLayer::setupPage", "pseudocode": "// \n// GJGarageLayer::setupPage from 0x140276090 to 0x140276721 (1681 bytes)\n// \n// 4 xrefs:\n// > GJGarageLayer::onArrow @ 0x140275f65\n// > GJGarageLayer::onNavigate @ 0x140275f93\n// > GJGarageLayer::selectTab @ 0x140276078\n// > <???> @ 0x1406d0f74\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::setupPage(GJGarageLayer *a1, int a2, IconType a3)\n{\n  float v3; // xmm0_4\n  int v4; // r12d\n  GameManager *v6; // rcx\n  GameManager *v7; // rcx\n  int active; // ebx\n  IconType v9; // r9d\n  int v10; // r14d\n  __int64 v11; // rcx\n  cocos2d::CCDirector *v12; // rax\n  cocos2d::CCArray *Items; // rbx\n  ListButtonBar *m_iconSelection; // rcx\n  cocos2d::CCPoint v15; // rax\n  ListButtonBar *v16; // rax\n  bool v17; // dl\n  CCMenuItemSpriteExtra *m_currentIcon; // rdx\n  cocos2d::CCSprite_vtbl *v19; // r15\n  CCMenuItemSpriteExtra *v20; // rdi\n  cocos2d::CCNode *v21; // rax\n  struct cocos2d::CCPoint v22; // rax\n  _BOOL8 v23; // rdx\n  _BOOL8 v24; // rdx\n  cocos2d::CCMenu *m_navDotMenu; // rcx\n  cocos2d::CCMenu_vtbl *v26; // r8\n  _BOOL8 v27; // rdx\n  unsigned int v28; // r15d\n  struct cocos2d::CCSprite *v29; // rbx\n  CCMenuItemSpriteExtra *v30; // rax\n  cocos2d::CCObject *v31; // rdi\n  cocos2d::CCObject_vtbl *v32; // rbx\n  unsigned int v33; // eax\n  signed int i; // edi\n  cocos2d::CCNode *v35; // rbx\n  __int64 *v36; // r14\n  __int64 v37; // rbx\n  __int64 v38; // rcx\n  cocos2d::CCSpriteFrameCache *v39; // rcx\n  const char *v40; // rdx\n  struct cocos2d::CCSpriteFrame *v41; // rax\n  __int64 v42; // rcx\n  cocos2d::CCNode *v43; // r15\n  float v44; // xmm0_4\n  GameManager *v45; // r14\n  ListButtonBar *v46; // rsi\n  double v47; // xmm0_8\n  float *v48; // rax\n  float *v49; // rdi\n  struct cocos2d::CCPoint v50; // rax\n  struct cocos2d::CCPoint v51; // rbx\n  bool GameVariable; // al\n  int v53; // [rsp+48h] [rbp-89h]\n  void *v54; // [rsp+90h] [rbp-41h]\n  cocos2d::CCPoint v55; // [rsp+98h] [rbp-39h] BYREF\n  char v56[8]; // [rsp+A8h] [rbp-29h] BYREF\n  __int64 v57; // [rsp+B0h] [rbp-21h]\n  __int64 v58; // [rsp+B8h] [rbp-19h]\n  __int64 v59; // [rsp+C0h] [rbp-11h]\n  float v60; // [rsp+138h] [rbp+67h]\n  IconType v61; // [rsp+148h] [rbp+77h] BYREF\n  CCMenuItemSpriteExtra *v62; // [rsp+150h] [rbp+7Fh] BYREF\n\n  v61 = a3;\n  v4 = a2;\n  a1->m_iconType = a3;\n  LOBYTE(a2) = a3 == Special;\n  a1->m_cursor2->setVisible(a1->m_cursor2, a2);\n  if ( a1->m_iconType == Special )\n  {\n    GJGarageLayer::setupSpecialPage(a1);\n    return;\n  }\n  v6 = (GameManager *)qword_1406C2ED8;\n  if ( !qword_1406C2ED8 )\n  {\n    v62 = (CCMenuItemSpriteExtra *)operator new(0x668u);\n    qword_1406C2ED8 = sub_14017AB00((__int64)v62);\n    (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2ED8 + 72LL))(qword_1406C2ED8);\n    v6 = (GameManager *)qword_1406C2ED8;\n  }\n  active = GameManager::activeIconForType(v6, v61);\n  if ( !v7 )\n  {\n    v62 = (CCMenuItemSpriteExtra *)operator new(0x668u);\n    qword_1406C2ED8 = sub_14017AB00((__int64)v62);\n    (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2ED8 + 72LL))(qword_1406C2ED8);\n    v9 = v61;\n  }\n  v10 = GameManager::countForType(v7, v9);\n  if ( v4 == -1 )\n  {\n    v3 = floorf((float)((active - 1) / 36));\n    v4 = 0;\n    if ( (int)v3 > 0 )\n      v4 = (int)v3;\n  }\n  *(_DWORD *)sub_14012CE70((__int64 *)&a1->m_iconPages, (int *)&v61) = v4;\n  v12 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v11);\n  cocos2d::CCDirector::getWinSize(v12);\n  Items = GJGarageLayer::getItems(a1, v10, v4, v61, active);\n  m_iconSelection = a1->m_iconSelection;\n  if ( m_iconSelection )\n  {\n    m_iconSelection->removeMeAndCleanup(m_iconSelection);\n    a1->m_iconSelection = nullptr;\n  }\n  cocos2d::CCPoint::CCPoint(v3, v60 * 0.5);\n  v16 = ListButtonBar::create(Items, v15, 12, 3, 5.0, 5.0, 25.0, 220.0, v53);\n  a1->m_iconSelection = v16;\n  BoomScrollLayer::togglePageIndicators(v16->m_scrollLayer, v17);\n  a1->addChild_0(a1, a1->m_iconSelection, 100);\n  m_currentIcon = a1->m_currentIcon;\n  v19 = a1->m_cursor1->__vftable;\n  if ( m_currentIcon )\n  {\n    v20 = a1->m_currentIcon;\n    m_currentIcon->getPosition_0(v20);\n    v21 = v20->getParent(v20);\n    v22 = cocos2d::CCNode::convertToWorldSpace(v21, (const struct cocos2d::CCPoint *)&v62);\n    ((void (__fastcall *)(cocos2d::CCSprite *, struct cocos2d::CCPoint))v19->setPosition_0)(a1->m_cursor1, v22);\n    LOBYTE(v23) = 1;\n    a1->m_cursor1->setVisible(a1->m_cursor1, v23);\n  }\n  else\n  {\n    ((void (*)(void))v19->setVisible)();\n  }\n  a1->m_leftArrow->setEnabled(a1->m_leftArrow, v10 > 36);\n  a1->m_leftArrow->setVisible(a1->m_leftArrow, v10 > 36);\n  a1->m_rightArrow->setEnabled(a1->m_rightArrow, v10 > 36);\n  a1->m_rightArrow->setVisible(a1->m_rightArrow, v10 > 36);\n  m_navDotMenu = a1->m_navDotMenu;\n  v26 = m_navDotMenu->cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable;\n  if ( v10 <= 36 )\n  {\n    v26->setEnabled(m_navDotMenu, 0);\n    a1->m_navDotMenu->setVisible(a1->m_navDotMenu, 0);\n  }\n  else\n  {\n    LOBYTE(v24) = 1;\n    v26->setEnabled(m_navDotMenu, v24);\n    LOBYTE(v27) = 1;\n    a1->m_navDotMenu->setVisible(a1->m_navDotMenu, v27);\n    a1->m_navDotMenu->removeAllChildren(a1->m_navDotMenu);\n    v28 = (int)(float)(floorf((float)(v10 / 36)) + 1.0);\n    if ( v28 > cocos2d::CCArray::count(a1->m_pageButtons) )\n    {\n      while ( 1 )\n      {\n        v29 = cocos2d::CCSprite::createWithSpriteFrameName(\"gj_navDotBtn_on_001.png\");\n        ((void (__fastcall *)(struct cocos2d::CCSprite *))v29->setScale_0)(v29);\n        v62 = (CCMenuItemSpriteExtra *)operator new(0x208u);\n        v30 = CCMenuItemSpriteExtra::CCMenuItemSpriteExtra(v62);\n        v31 = v30;\n        if ( !v30 )\n          goto LABEL_21;\n        if ( !CCMenuItemSpriteExtra::init(v30, v29, nullptr, a1, (cocos2d::SEL_MenuHandler *)GJGarageLayer::onNavigate) )\n          break;\n        cocos2d::CCObject::autorelease(v31);\nLABEL_22:\n        v32 = v31->__vftable;\n        v33 = cocos2d::CCArray::count(a1->m_pageButtons);\n        v32->setTag(v31, v33);\n        cocos2d::CCArray::addObject(a1->m_pageButtons, v31);\n        v31[6].m_uUnknown = 1066192077;\n        if ( v28 <= cocos2d::CCArray::count(a1->m_pageButtons) )\n          goto LABEL_23;\n      }\n      ((void (__fastcall *)(cocos2d::CCObject *, __int64))v31->~CCObject)(v31, 1);\nLABEL_21:\n      v31 = nullptr;\n      goto LABEL_22;\n    }\nLABEL_23:\n    for ( i = 0; i < (int)v28; ++i )\n    {\n      v35 = (cocos2d::CCNode *)cocos2d::CCArray::objectAtIndex(a1->m_pageButtons, i);\n      a1->m_navDotMenu->addChild_1(a1->m_navDotMenu, v35);\n      v36 = (__int64 *)((__int64 (__fastcall *)(cocos2d::CCNode *))v35->__vftable[1].setTag)(v35);\n      v37 = *v36;\n      v39 = (cocos2d::CCSpriteFrameCache *)cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(v38);\n      v40 = \"gj_navDotBtn_on_001.png\";\n      if ( i != v4 )\n        v40 = \"gj_navDotBtn_off_001.png\";\n      v41 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v39, v40);\n      (*(void (__fastcall **)(__int64 *, struct cocos2d::CCSpriteFrame *))(v37 + 992))(v36, v41);\n    }\n    cocos2d::CCMenu::alignItemsHorizontallyWithPadding(a1->m_navDotMenu, 6.0);\n  }\n  if ( v61 == DeathEffect )\n  {\n    v43 = (cocos2d::CCNode *)cocos2d::CCMenu::create(v42);\n    v44 = ((float (__fastcall *)(ListButtonBar *, cocos2d::CCNode *, __int64))a1->m_iconSelection->addChild_0)(\n            a1->m_iconSelection,\n            v43,\n            1);\n    cocos2d::CCPoint::CCPoint(v44, 8.0);\n    v57 = 0;\n    v58 = 7;\n    v59 = 15;\n    strcpy(v56, \"Explode\");\n    v45 = (GameManager *)qword_1406C2ED8;\n    if ( !qword_1406C2ED8 )\n    {\n      v54 = operator new(0x668u);\n      qword_1406C2ED8 = sub_14017AB00((__int64)v54);\n      (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2ED8 + 72LL))(qword_1406C2ED8);\n      v45 = (GameManager *)qword_1406C2ED8;\n    }\n    v46 = a1->m_iconSelection;\n    v47 = cocos2d::CCPoint::CCPoint(&v55);\n    v49 = v48;\n    cocos2d::CCPoint::CCPoint(*(float *)&v47, (float)(v60 * 0.5) - 165.0);\n    v51 = v50;\n    GameVariable = GameManager::getGameVariable(v45, \"0153\");\n    GameToolbox::createToggleButton(\n      v56,\n      (cocos2d::SEL_MenuHandler *)GJGarageLayer::onSpecial,\n      !GameVariable,\n      v43,\n      v51,\n      v46,\n      v46,\n      0.60000002,\n      0.5,\n      80.0,\n      v49,\n      \"goldFont.fnt\",\n      0,\n      0,\n      nullptr);\n  }\n}", "assembly": "; \n; GJGarageLayer::setupPage from 0x140276090 to 0x140276721 (1681 bytes)\n; \n; 4 xrefs:\n; > GJGarageLayer::onArrow @ 0x140275f65\n; > GJGarageLayer::onNavigate @ 0x140275f93\n; > GJGarageLayer::selectTab @ 0x140276078\n; > <???> @ 0x1406d0f74\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, 0x140276090\nmov     [rax+10h], rbx                                                 ; +0x3, 0x140276093\nmov     [rax+18h], r8d                                                 ; +0x7, 0x140276097\npush    rbp                                                            ; +0xb, 0x14027609b\npush    rsi                                                            ; +0xc, 0x14027609c\npush    rdi                                                            ; +0xd, 0x14027609d\npush    r12                                                            ; +0xe, 0x14027609e\npush    r13                                                            ; +0x10, 0x1402760a0\npush    r14                                                            ; +0x12, 0x1402760a2\npush    r15                                                            ; +0x14, 0x1402760a4\nlea     rbp, [rax-5Fh]                                                 ; +0x16, 0x1402760a6\nsub     rsp, 0F0h                                                      ; +0x1a, 0x1402760aa\nmovaps  xmmword ptr [rax-48h], xmm6                                    ; +0x21, 0x1402760b1\nmovaps  xmmword ptr [rax-58h], xmm7                                    ; +0x25, 0x1402760b5\nmovaps  xmmword ptr [rax-68h], xmm8                                    ; +0x29, 0x1402760b9\nmov     r12d, edx                                                      ; +0x2e, 0x1402760be\nmov     rsi, rcx                                                       ; +0x31, 0x1402760c1\nmov     [rcx+204h], r8d                                                ; +0x34, 0x1402760c4\nmov     rcx, [rcx+220h]                                                ; +0x3b, 0x1402760cb\nmov     rax, [rcx]                                                     ; +0x42, 0x1402760d2\ncmp     r8d, 63h ; 'c'                                                 ; +0x45, 0x1402760d5\nsetz    dl                                                             ; +0x49, 0x1402760d9\ncall    qword ptr [rax+140h]                                           ; +0x4c, 0x1402760dc\ncmp     dword ptr [rsi+204h], 63h ; 'c'                                ; +0x52, 0x1402760e2\njnz     short loc_1402760F8                                            ; +0x59, 0x1402760e9\nmov     rcx, rsi                                                       ; +0x5b, 0x1402760eb\ncall    GJGarageLayer__setupSpecialPage                                ; +0x5e, 0x1402760ee\njmp     loc_1402766F7                                                  ; +0x63, 0x1402760f3\nmov     rcx, cs:qword_1406C2ED8                                        ; +0x68, 0x1402760f8\ntest    rcx, rcx                                                       ; +0x6f, 0x1402760ff\njnz     short loc_140276132                                            ; +0x72, 0x140276102\nmov     ecx, 668h; Size                                                ; +0x74, 0x140276104\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x79, 0x140276109\nmov     [rbp+57h+arg_18], rax                                          ; +0x7e, 0x14027610e\nmov     rcx, rax                                                       ; +0x82, 0x140276112\ncall    sub_14017AB00                                                  ; +0x85, 0x140276115\nnop                                                                    ; +0x8a, 0x14027611a\nmov     cs:qword_1406C2ED8, rax                                        ; +0x8b, 0x14027611b\nmov     rdx, [rax]                                                     ; +0x92, 0x140276122\nmov     rcx, rax                                                       ; +0x95, 0x140276125\ncall    qword ptr [rdx+48h]                                            ; +0x98, 0x140276128\nmov     rcx, cs:qword_1406C2ED8                                        ; +0x9b, 0x14027612b\nmov     r9d, [rbp+57h+arg_10]                                          ; +0xa2, 0x140276132\nmov     edx, r9d                                                       ; +0xa6, 0x140276136\ncall    GameManager__activeIconForType                                 ; +0xa9, 0x140276139\nmov     ebx, eax                                                       ; +0xae, 0x14027613e\ntest    rcx, rcx                                                       ; +0xb0, 0x140276140\njnz     short loc_140276170                                            ; +0xb3, 0x140276143\nmov     ecx, 668h; Size                                                ; +0xb5, 0x140276145\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0xba, 0x14027614a\nmov     [rbp+57h+arg_18], rax                                          ; +0xbf, 0x14027614f\nmov     rcx, rax                                                       ; +0xc3, 0x140276153\ncall    sub_14017AB00                                                  ; +0xc6, 0x140276156\nnop                                                                    ; +0xcb, 0x14027615b\nmov     cs:qword_1406C2ED8, rax                                        ; +0xcc, 0x14027615c\nmov     rdx, [rax]                                                     ; +0xd3, 0x140276163\nmov     rcx, rax                                                       ; +0xd6, 0x140276166\ncall    qword ptr [rdx+48h]                                            ; +0xd9, 0x140276169\nmov     r9d, [rbp+57h+arg_10]                                          ; +0xdc, 0x14027616c\nmov     edx, r9d                                                       ; +0xe0, 0x140276170\ncall    GameManager__countForType                                      ; +0xe3, 0x140276173\nmov     r14d, eax                                                      ; +0xe8, 0x140276178\nxor     r13d, r13d                                                     ; +0xeb, 0x14027617b\ncmp     r12d, 0FFFFFFFFh                                               ; +0xee, 0x14027617e\njnz     short loc_1402761B1                                            ; +0xf2, 0x140276182\nlea     ecx, [rbx-1]                                                   ; +0xf4, 0x140276184\nmov     eax, 38E38E39h                                                 ; +0xf7, 0x140276187\nimul    ecx                                                            ; +0xfc, 0x14027618c\nsar     edx, 3                                                         ; +0xfe, 0x14027618e\nmov     ecx, edx                                                       ; +0x101, 0x140276191\nshr     ecx, 1Fh                                                       ; +0x103, 0x140276193\nadd     edx, ecx                                                       ; +0x106, 0x140276196\nmovd    xmm0, edx                                                      ; +0x108, 0x140276198\ncvtdq2ps xmm0, xmm0; X                                                 ; +0x10c, 0x14027619c\ncall    floorf                                                         ; +0x10f, 0x14027619f\ncvttss2si eax, xmm0                                                    ; +0x114, 0x1402761a4\nmov     r12d, r13d                                                     ; +0x118, 0x1402761a8\ntest    eax, eax                                                       ; +0x11b, 0x1402761ab\ncmovg   r12d, eax                                                      ; +0x11d, 0x1402761ad\nlea     rcx, [rsi+208h]                                                ; +0x121, 0x1402761b1\nlea     rdx, [rbp+57h+arg_10]                                          ; +0x128, 0x1402761b8\ncall    sub_14012CE70                                                  ; +0x12c, 0x1402761bc\nmov     [rax], r12d                                                    ; +0x131, 0x1402761c1\ncall    cs:?sharedDirector@CCDirector@cocos2d@@SAPEAV12@XZ; cocos2d::CCDirector::sharedDirector(void) ; +0x134, 0x1402761c4\nmov     rcx, rax                                                       ; +0x13a, 0x1402761ca\nlea     rdx, [rbp+57h+arg_0]                                           ; +0x13d, 0x1402761cd\ncall    cs:?getWinSize@CCDirector@cocos2d@@QEAA?AVCCSize@2@XZ; cocos2d::CCDirector::getWinSize(void) ; +0x141, 0x1402761d1\nmov     dword ptr [rsp+120h+var_100], ebx                              ; +0x147, 0x1402761d7\nmov     r9d, [rbp+57h+arg_10]                                          ; +0x14b, 0x1402761db\nmov     r8d, r12d                                                      ; +0x14f, 0x1402761df\nmov     edx, r14d                                                      ; +0x152, 0x1402761e2\nmov     rcx, rsi                                                       ; +0x155, 0x1402761e5\ncall    GJGarageLayer__getItems                                        ; +0x158, 0x1402761e8\nmov     rbx, rax                                                       ; +0x15d, 0x1402761ed\nmov     rcx, [rsi+230h]                                                ; +0x160, 0x1402761f0\ntest    rcx, rcx                                                       ; +0x167, 0x1402761f7\njz      short loc_14027620C                                            ; +0x16a, 0x1402761fa\nmov     rdx, [rcx]                                                     ; +0x16c, 0x1402761fc\ncall    qword ptr [rdx+200h]                                           ; +0x16f, 0x1402761ff\nmov     [rsi+230h], r13                                                ; +0x175, 0x140276205\nmovss   xmm2, [rbp+57h+arg_4]                                          ; +0x17c, 0x14027620c\nmovss   xmm7, cs:dword_140622B08                                       ; +0x181, 0x140276211\nmulss   xmm2, xmm7                                                     ; +0x189, 0x140276219\nmovss   xmm8, cs:flt_140623010                                         ; +0x18d, 0x14027621d\nsubss   xmm2, xmm8                                                     ; +0x196, 0x140276226\nsubss   xmm2, cs:dword_140623210                                       ; +0x19b, 0x14027622b\nmovss   xmm1, [rbp+57h+arg_0]                                          ; +0x1a3, 0x140276233\nmulss   xmm1, xmm7                                                     ; +0x1a8, 0x140276238\nlea     rcx, [rbp+57h+arg_18]                                          ; +0x1ac, 0x14027623c\ncall    cs:??0CCPoint@cocos2d@@QEAA@MM@Z; cocos2d::CCPoint::CCPoint(float,float) ; +0x1b0, 0x140276240\nmov     rdx, rax                                                       ; +0x1b6, 0x140276246\nmovss   xmm0, cs:dword_1406233F4                                       ; +0x1b9, 0x140276249\nmovss   [rsp+120h+var_E8], xmm0                                        ; +0x1c1, 0x140276251\nmovss   xmm1, cs:dword_140623144                                       ; +0x1c7, 0x140276257\nmovss   [rsp+120h+var_F0], xmm1                                        ; +0x1cf, 0x14027625f\nmovss   dword ptr [rsp+120h+var_F8], xmm8                              ; +0x1d5, 0x140276265\nmovss   dword ptr [rsp+120h+var_100], xmm8                             ; +0x1dc, 0x14027626c\nmov     r9d, 3                                                         ; +0x1e3, 0x140276273\nlea     r8d, [r9+9]                                                    ; +0x1e9, 0x140276279\nmov     rcx, rbx                                                       ; +0x1ed, 0x14027627d\ncall    ListButtonBar__create                                          ; +0x1f0, 0x140276280\nmov     [rsi+230h], rax                                                ; +0x1f5, 0x140276285\nmov     rcx, [rax+140h]                                                ; +0x1fc, 0x14027628c\ncall    BoomScrollLayer__togglePageIndicators                          ; +0x203, 0x140276293\nmov     rax, [rsi]                                                     ; +0x208, 0x140276298\nmov     r8d, 64h ; 'd'                                                 ; +0x20b, 0x14027629b\nmov     rdx, [rsi+230h]                                                ; +0x211, 0x1402762a1\nmov     rcx, rsi                                                       ; +0x218, 0x1402762a8\ncall    qword ptr [rax+1B8h]                                           ; +0x21b, 0x1402762ab\nmov     rdx, [rsi+228h]                                                ; +0x221, 0x1402762b1\nmov     rcx, [rsi+218h]                                                ; +0x228, 0x1402762b8\nmov     r15, [rcx]                                                     ; +0x22f, 0x1402762bf\ntest    rdx, rdx                                                       ; +0x232, 0x1402762c2\njz      short loc_14027631A                                            ; +0x235, 0x1402762c5\nmov     rdi, rdx                                                       ; +0x237, 0x1402762c7\nmov     rax, [rdx]                                                     ; +0x23a, 0x1402762ca\nmov     rcx, rdx                                                       ; +0x23d, 0x1402762cd\ncall    qword ptr [rax+0C8h]                                           ; +0x240, 0x1402762d0\nmov     rbx, rax                                                       ; +0x246, 0x1402762d6\nmov     rdx, [rdi]                                                     ; +0x249, 0x1402762d9\nmov     rcx, rdi                                                       ; +0x24c, 0x1402762dc\ncall    qword ptr [rdx+1E8h]                                           ; +0x24f, 0x1402762df\nmov     rcx, rax                                                       ; +0x255, 0x1402762e5\nmov     r8, rbx                                                        ; +0x258, 0x1402762e8\nlea     rdx, [rbp+57h+arg_18]                                          ; +0x25b, 0x1402762eb\ncall    cs:?convertToWorldSpace@CCNode@cocos2d@@QEAA?AVCCPoint@2@AEBV32@@Z; cocos2d::CCNode::convertToWorldSpace(cocos2d::CCPoint const &) ; +0x25f, 0x1402762ef\nmov     rdx, rax                                                       ; +0x265, 0x1402762f5\nmov     rcx, [rsi+218h]                                                ; +0x268, 0x1402762f8\ncall    qword ptr [r15+0B8h]                                           ; +0x26f, 0x1402762ff\nmov     rcx, [rsi+218h]                                                ; +0x276, 0x140276306\nmov     rax, [rcx]                                                     ; +0x27d, 0x14027630d\nmov     dl, 1                                                          ; +0x280, 0x140276310\ncall    qword ptr [rax+140h]                                           ; +0x282, 0x140276312\njmp     short loc_140276321                                            ; +0x288, 0x140276318\ncall    qword ptr [r15+140h]                                           ; +0x28a, 0x14027631a\ncmp     r14d, 24h ; '$'                                                ; +0x291, 0x140276321\nsetnle  bl                                                             ; +0x295, 0x140276325\nmov     rcx, [rsi+238h]                                                ; +0x298, 0x140276328\nmov     rax, [rcx]                                                     ; +0x29f, 0x14027632f\nmovzx   edx, bl                                                        ; +0x2a2, 0x140276332\ncall    qword ptr [rax+398h]                                           ; +0x2a5, 0x140276335\nmov     rcx, [rsi+238h]                                                ; +0x2ab, 0x14027633b\nmov     rax, [rcx]                                                     ; +0x2b2, 0x140276342\nmovzx   edx, bl                                                        ; +0x2b5, 0x140276345\ncall    qword ptr [rax+140h]                                           ; +0x2b8, 0x140276348\nmov     rcx, [rsi+240h]                                                ; +0x2be, 0x14027634e\nmov     rax, [rcx]                                                     ; +0x2c5, 0x140276355\nmovzx   edx, bl                                                        ; +0x2c8, 0x140276358\ncall    qword ptr [rax+398h]                                           ; +0x2cb, 0x14027635b\nmov     rcx, [rsi+240h]                                                ; +0x2d1, 0x140276361\nmov     rax, [rcx]                                                     ; +0x2d8, 0x140276368\nmovzx   edx, bl                                                        ; +0x2db, 0x14027636b\ncall    qword ptr [rax+140h]                                           ; +0x2de, 0x14027636e\nmov     rcx, [rsi+248h]                                                ; +0x2e4, 0x140276374\nmov     r8, [rcx]                                                      ; +0x2eb, 0x14027637b\ncmp     r14d, 24h ; '$'                                                ; +0x2ee, 0x14027637e\njle     loc_140276554                                                  ; +0x2f2, 0x140276382\nmov     dl, 1                                                          ; +0x2f8, 0x140276388\ncall    qword ptr [r8+400h]                                            ; +0x2fa, 0x14027638a\nmov     rcx, [rsi+248h]                                                ; +0x301, 0x140276391\nmov     r8, [rcx]                                                      ; +0x308, 0x140276398\nmov     dl, 1                                                          ; +0x30b, 0x14027639b\ncall    qword ptr [r8+140h]                                            ; +0x30d, 0x14027639d\nmov     rcx, [rsi+248h]                                                ; +0x314, 0x1402763a4\nmov     rdx, [rcx]                                                     ; +0x31b, 0x1402763ab\ncall    qword ptr [rdx+228h]                                           ; +0x31e, 0x1402763ae\nmov     eax, 38E38E39h                                                 ; +0x324, 0x1402763b4\nimul    r14d                                                           ; +0x329, 0x1402763b9\nsar     edx, 3                                                         ; +0x32c, 0x1402763bc\nmov     eax, edx                                                       ; +0x32f, 0x1402763bf\nshr     eax, 1Fh                                                       ; +0x331, 0x1402763c1\nadd     edx, eax                                                       ; +0x334, 0x1402763c4\nmovd    xmm0, edx                                                      ; +0x336, 0x1402763c6\ncvtdq2ps xmm0, xmm0; X                                                 ; +0x33a, 0x1402763ca\ncall    floorf                                                         ; +0x33d, 0x1402763cd\naddss   xmm0, cs:flt_140622C24                                         ; +0x342, 0x1402763d2\ncvttss2si r15d, xmm0                                                   ; +0x34a, 0x1402763da\nmov     rcx, [rsi+1E8h]                                                ; +0x34f, 0x1402763df\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x356, 0x1402763e6\ncmp     r15d, eax                                                      ; +0x35c, 0x1402763ec\njbe     loc_1402764C8                                                  ; +0x35f, 0x1402763ef\nlea     r14, GJGarageLayer__onNavigate                                 ; +0x365, 0x1402763f5\nmovss   xmm6, cs:dword_140622BD8                                       ; +0x36c, 0x1402763fc\nnop     dword ptr [rax+00h]                                            ; +0x374, 0x140276404\nnop     dword ptr [rax+rax+00000000h]                                  ; +0x378, 0x140276408\nlea     rcx, aGjNavdotbtnOn0; \"gj_navDotBtn_on_001.png\"                ; +0x380, 0x140276410\ncall    cs:?createWithSpriteFrameName@CCSprite@cocos2d@@SAPEAV12@PEBD@Z; cocos2d::CCSprite::createWithSpriteFrameName(char const *) ; +0x387, 0x140276417\nmov     rbx, rax                                                       ; +0x38d, 0x14027641d\nmov     rdx, [rax]                                                     ; +0x390, 0x140276420\nmovaps  xmm1, xmm6                                                     ; +0x393, 0x140276423\nmov     rcx, rax                                                       ; +0x396, 0x140276426\ncall    qword ptr [rdx+0A0h]                                           ; +0x399, 0x140276429\nmov     ecx, 208h; Size                                                ; +0x39f, 0x14027642f\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x3a4, 0x140276434\nmov     [rbp+57h+arg_18], rax                                          ; +0x3a9, 0x140276439\nmov     rcx, rax                                                       ; +0x3ad, 0x14027643d\ncall    CCMenuItemSpriteExtra__CCMenuItemSpriteExtra                   ; +0x3b0, 0x140276440\nmov     rdi, rax                                                       ; +0x3b5, 0x140276445\ntest    rax, rax                                                       ; +0x3b8, 0x140276448\njz      short loc_14027647D                                            ; +0x3bb, 0x14027644b\nmov     [rsp+120h+var_100], r14                                        ; +0x3bd, 0x14027644d\nmov     r9, rsi                                                        ; +0x3c2, 0x140276452\nxor     r8d, r8d                                                       ; +0x3c5, 0x140276455\nmov     rdx, rbx                                                       ; +0x3c8, 0x140276458\nmov     rcx, rax                                                       ; +0x3cb, 0x14027645b\ncall    CCMenuItemSpriteExtra__init                                    ; +0x3ce, 0x14027645e\nmov     rcx, rdi                                                       ; +0x3d3, 0x140276463\ntest    al, al                                                         ; +0x3d6, 0x140276466\njz      short loc_140276472                                            ; +0x3d8, 0x140276468\ncall    cs:?autorelease@CCObject@cocos2d@@QEAAPEAV12@XZ; cocos2d::CCObject::autorelease(void) ; +0x3da, 0x14027646a\njmp     short loc_140276480                                            ; +0x3e0, 0x140276470\nmov     rax, [rdi]                                                     ; +0x3e2, 0x140276472\nmov     edx, 1                                                         ; +0x3e5, 0x140276475\ncall    qword ptr [rax+8]                                              ; +0x3ea, 0x14027647a\nmov     rdi, r13                                                       ; +0x3ed, 0x14027647d\nmov     rbx, [rdi]                                                     ; +0x3f0, 0x140276480\nmov     rcx, [rsi+1E8h]                                                ; +0x3f3, 0x140276483\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x3fa, 0x14027648a\nmov     edx, eax                                                       ; +0x400, 0x140276490\nmov     rcx, rdi                                                       ; +0x402, 0x140276492\ncall    qword ptr [rbx+40h]                                            ; +0x405, 0x140276495\nmov     rdx, rdi                                                       ; +0x408, 0x140276498\nmov     rcx, [rsi+1E8h]                                                ; +0x40b, 0x14027649b\ncall    cs:?addObject@CCArray@cocos2d@@QEAAXPEAVCCObject@2@@Z; cocos2d::CCArray::addObject(cocos2d::CCObject *) ; +0x412, 0x1402764a2\nmov     dword ptr [rdi+174h], 3F8CCCCDh                                ; +0x418, 0x1402764a8\nmov     rcx, [rsi+1E8h]                                                ; +0x422, 0x1402764b2\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x429, 0x1402764b9\ncmp     r15d, eax                                                      ; +0x42f, 0x1402764bf\nja      loc_140276410                                                  ; +0x432, 0x1402764c2\nmov     edi, r13d                                                      ; +0x438, 0x1402764c8\ntest    r15d, r15d                                                     ; +0x43b, 0x1402764cb\njle     short loc_14027653D                                            ; +0x43e, 0x1402764ce\nmov     edx, edi                                                       ; +0x440, 0x1402764d0\nmov     rcx, [rsi+1E8h]                                                ; +0x442, 0x1402764d2\ncall    cs:?objectAtIndex@CCArray@cocos2d@@QEAAPEAVCCObject@2@I@Z; cocos2d::CCArray::objectAtIndex(uint) ; +0x449, 0x1402764d9\nmov     rbx, rax                                                       ; +0x44f, 0x1402764df\nmov     rcx, [rsi+248h]                                                ; +0x452, 0x1402764e2\nmov     r8, [rcx]                                                      ; +0x459, 0x1402764e9\nmov     rdx, rax                                                       ; +0x45c, 0x1402764ec\ncall    qword ptr [r8+1C0h]                                            ; +0x45f, 0x1402764ef\nmov     rdx, [rbx]                                                     ; +0x466, 0x1402764f6\nmov     rcx, rbx                                                       ; +0x469, 0x1402764f9\ncall    qword ptr [rdx+3A8h]                                           ; +0x46c, 0x1402764fc\nmov     r14, rax                                                       ; +0x472, 0x140276502\nmov     rbx, [rax]                                                     ; +0x475, 0x140276505\ncall    cs:?sharedSpriteFrameCache@CCSpriteFrameCache@cocos2d@@SAPEAV12@XZ; cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(void) ; +0x478, 0x140276508\nmov     rcx, rax                                                       ; +0x47e, 0x14027650e\ncmp     edi, r12d                                                      ; +0x481, 0x140276511\nlea     rdx, aGjNavdotbtnOn0; \"gj_navDotBtn_on_001.png\"                ; +0x484, 0x140276514\njz      short loc_140276524                                            ; +0x48b, 0x14027651b\nlea     rdx, aGjNavdotbtnOff; \"gj_navDotBtn_off_001.png\"               ; +0x48d, 0x14027651d\ncall    cs:?spriteFrameByName@CCSpriteFrameCache@cocos2d@@QEAAPEAVCCSpriteFrame@2@PEBD@Z; cocos2d::CCSpriteFrameCache::spriteFrameByName(char const *) ; +0x494, 0x140276524\nmov     rdx, rax                                                       ; +0x49a, 0x14027652a\nmov     rcx, r14                                                       ; +0x49d, 0x14027652d\ncall    qword ptr [rbx+3E0h]                                           ; +0x4a0, 0x140276530\ninc     edi                                                            ; +0x4a6, 0x140276536\ncmp     edi, r15d                                                      ; +0x4a8, 0x140276538\njl      short loc_1402764D0                                            ; +0x4ab, 0x14027653b\nmovss   xmm1, cs:flt_140623028                                         ; +0x4ad, 0x14027653d\nmov     rcx, [rsi+248h]                                                ; +0x4b5, 0x140276545\ncall    cs:?alignItemsHorizontallyWithPadding@CCMenu@cocos2d@@QEAAXM@Z; cocos2d::CCMenu::alignItemsHorizontallyWithPadding(float) ; +0x4bc, 0x14027654c\njmp     short loc_14027656F                                            ; +0x4c2, 0x140276552\nxor     edx, edx                                                       ; +0x4c4, 0x140276554\ncall    qword ptr [r8+400h]                                            ; +0x4c6, 0x140276556\nmov     rcx, [rsi+248h]                                                ; +0x4cd, 0x14027655d\nmov     rax, [rcx]                                                     ; +0x4d4, 0x140276564\nxor     edx, edx                                                       ; +0x4d7, 0x140276567\ncall    qword ptr [rax+140h]                                           ; +0x4d9, 0x140276569\ncmp     [rbp+57h+arg_10], 62h ; 'b'                                    ; +0x4df, 0x14027656f\njnz     loc_1402766F7                                                  ; +0x4e3, 0x140276573\ncall    cs:?create@CCMenu@cocos2d@@SAPEAV12@XZ; cocos2d::CCMenu::create(void) ; +0x4e9, 0x140276579\nmov     r15, rax                                                       ; +0x4ef, 0x14027657f\nmov     rcx, [rsi+230h]                                                ; +0x4f2, 0x140276582\nmov     r9, [rcx]                                                      ; +0x4f9, 0x140276589\nmov     r8d, 1                                                         ; +0x4fc, 0x14027658c\nmov     rdx, rax                                                       ; +0x502, 0x140276592\ncall    qword ptr [r9+1B8h]                                            ; +0x505, 0x140276595\nxorps   xmm2, xmm2                                                     ; +0x50c, 0x14027659c\nmovss   xmm1, cs:dword_140623068                                       ; +0x50f, 0x14027659f\nlea     rcx, [rbp+57h+arg_18]                                          ; +0x517, 0x1402765a7\ncall    cs:??0CCPoint@cocos2d@@QEAA@MM@Z; cocos2d::CCPoint::CCPoint(float,float) ; +0x51b, 0x1402765ab\nlea     rax, [rbp+57h+var_80]                                          ; +0x521, 0x1402765b1\nmov     [rbp+57h+var_A0], rax                                          ; +0x525, 0x1402765b5\nmov     [rbp+57h+var_78], r13                                          ; +0x529, 0x1402765b9\nmov     [rbp+57h+var_70], 7                                            ; +0x52d, 0x1402765bd\nmov     [rbp+57h+var_68], 0Fh                                          ; +0x535, 0x1402765c5\nmov     rax, cs:qword_1405694E0                                        ; +0x53d, 0x1402765cd\nmov     dword ptr [rbp+57h+var_80], eax                                ; +0x544, 0x1402765d4\nmovzx   eax, word ptr cs:qword_1405694E0+4                             ; +0x547, 0x1402765d7\nmov     word ptr [rbp+57h+var_80+4], ax                                ; +0x54e, 0x1402765de\nmovzx   eax, byte ptr cs:qword_1405694E0+6                             ; +0x552, 0x1402765e2\nmov     [rbp+57h+var_80+6], al                                         ; +0x559, 0x1402765e9\nmov     [rbp+57h+var_80+7], 0                                          ; +0x55c, 0x1402765ec\nmov     r14, cs:qword_1406C2ED8                                        ; +0x560, 0x1402765f0\ntest    r14, r14                                                       ; +0x567, 0x1402765f7\njnz     short loc_14027662A                                            ; +0x56a, 0x1402765fa\nmov     ecx, 668h; Size                                                ; +0x56c, 0x1402765fc\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x571, 0x140276601\nmov     [rbp+57h+var_98], rax                                          ; +0x576, 0x140276606\nmov     rcx, rax                                                       ; +0x57a, 0x14027660a\ncall    sub_14017AB00                                                  ; +0x57d, 0x14027660d\nnop                                                                    ; +0x582, 0x140276612\nmov     cs:qword_1406C2ED8, rax                                        ; +0x583, 0x140276613\nmov     rdx, [rax]                                                     ; +0x58a, 0x14027661a\nmov     rcx, rax                                                       ; +0x58d, 0x14027661d\ncall    qword ptr [rdx+48h]                                            ; +0x590, 0x140276620\nmov     r14, cs:qword_1406C2ED8                                        ; +0x593, 0x140276623\nmov     rsi, [rsi+230h]                                                ; +0x59a, 0x14027662a\nlea     rdx, [rbp+57h+arg_18]                                          ; +0x5a1, 0x140276631\nlea     rcx, [rbp+57h+var_90]                                          ; +0x5a5, 0x140276635\ncall    cs:??0CCPoint@cocos2d@@QEAA@AEBV01@@Z; cocos2d::CCPoint::CCPoint(cocos2d::CCPoint const &) ; +0x5a9, 0x140276639\nmov     rdi, rax                                                       ; +0x5af, 0x14027663f\nmovss   xmm2, [rbp+57h+arg_4]                                          ; +0x5b2, 0x140276642\nmulss   xmm2, xmm7                                                     ; +0x5b7, 0x140276647\nsubss   xmm2, xmm8                                                     ; +0x5bb, 0x14027664b\nsubss   xmm2, cs:dword_140623210                                       ; +0x5c0, 0x140276650\nsubss   xmm2, cs:dword_140623164                                       ; +0x5c8, 0x140276658\nmovss   xmm1, [rbp+57h+arg_0]                                          ; +0x5d0, 0x140276660\nmulss   xmm1, xmm7                                                     ; +0x5d5, 0x140276665\nsubss   xmm1, cs:dword_140623384                                       ; +0x5d9, 0x140276669\nlea     rcx, [rbp+57h+var_88]                                          ; +0x5e1, 0x140276671\ncall    cs:??0CCPoint@cocos2d@@QEAA@MM@Z; cocos2d::CCPoint::CCPoint(float,float) ; +0x5e5, 0x140276675\nmov     rbx, rax                                                       ; +0x5eb, 0x14027667b\nlea     rdx, a0153; \"0153\"                                             ; +0x5ee, 0x14027667e\nmov     rcx, r14                                                       ; +0x5f5, 0x140276685\ncall    GameManager__getGameVariable                                   ; +0x5f8, 0x140276688\nxor     al, 1                                                          ; +0x5fd, 0x14027668d\nmov     [rsp+120h+var_B0], r13                                         ; +0x5ff, 0x14027668f\nmov     dword ptr [rsp+120h+var_B8], r13d                              ; +0x604, 0x140276694\nmov     byte ptr [rsp+120h+var_C0], 0                                  ; +0x609, 0x140276699\nlea     rcx, aGoldfontFnt; \"goldFont.fnt\"                              ; +0x60e, 0x14027669e\nmov     qword ptr [rsp+120h+var_C8], rcx                               ; +0x615, 0x1402766a5\nmov     [rsp+120h+var_D0], rdi                                         ; +0x61a, 0x1402766aa\nmovss   xmm0, cs:dword_14062326C                                       ; +0x61f, 0x1402766af\nmovss   dword ptr [rsp+120h+var_D8], xmm0                              ; +0x627, 0x1402766b7\nmovss   [rsp+120h+var_E0], xmm7                                        ; +0x62d, 0x1402766bd\nmovss   xmm0, cs:dword_140622B38                                       ; +0x633, 0x1402766c3\nmovss   [rsp+120h+var_E8], xmm0                                        ; +0x63b, 0x1402766cb\nmov     qword ptr [rsp+120h+var_F0], rsi                               ; +0x641, 0x1402766d1\nmov     [rsp+120h+var_F8], rsi                                         ; +0x646, 0x1402766d6\nmov     [rsp+120h+var_100], rbx                                        ; +0x64b, 0x1402766db\nmov     r9, r15                                                        ; +0x650, 0x1402766e0\nmovzx   r8d, al                                                        ; +0x653, 0x1402766e3\nlea     rdx, GJGarageLayer__onSpecial                                  ; +0x657, 0x1402766e7\nlea     rcx, [rbp+57h+var_80]                                          ; +0x65e, 0x1402766ee\ncall    GameToolbox__createToggleButton                                ; +0x662, 0x1402766f2\nlea     r11, [rsp+120h+var_30]                                         ; +0x667, 0x1402766f7\nmov     rbx, [r11+48h]                                                 ; +0x66f, 0x1402766ff\nmovaps  xmm6, xmmword ptr [r11-10h]                                    ; +0x673, 0x140276703\nmovaps  xmm7, xmmword ptr [r11-20h]                                    ; +0x678, 0x140276708\nmovaps  xmm8, xmmword ptr [r11-30h]                                    ; +0x67d, 0x14027670d\nmov     rsp, r11                                                       ; +0x682, 0x140276712\npop     r15                                                            ; +0x685, 0x140276715\npop     r14                                                            ; +0x687, 0x140276717\npop     r13                                                            ; +0x689, 0x140276719\npop     r12                                                            ; +0x68b, 0x14027671b\npop     rdi                                                            ; +0x68d, 0x14027671d\npop     rsi                                                            ; +0x68e, 0x14027671e\npop     rbp                                                            ; +0x68f, 0x14027671f\nretn                                                                   ; +0x690, 0x140276720", "xrefs": ["GJGarageLayer::onArrow @ 0x140275f65", "GJGarageLayer::onNavigate @ 0x140275f93", "GJGarageLayer::selectTab @ 0x140276078", "<???> @ 0x1406d0f74"], "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"}