{"type": "func", "start": 5371289552, "end": 5371289736, "name": "GJGarageLayer::selectTab", "pseudocode": "// \n// GJGarageLayer::selectTab from 0x140275fd0 to 0x140276088 (184 bytes)\n// \n// 5 xrefs:\n// > GJGarageLayer::setupIconSelect @ 0x140275e48\n// > GJGarageLayer::onSelectTab @ 0x140275fbc\n// > <???> @ 0x140686fbc\n// > <???> @ 0x140686fcc\n// > <???> @ 0x1406d0f50\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\nvoid GJGarageLayer::selectTab(GJGarageLayer *a1, IconType a2)\n{\n  unsigned int i; // ebp\n  CCMenuItemToggler *v4; // rdi\n  int v5; // ebx\n  _BOOL8 v6; // rdx\n  int *v7; // rax\n  IconType v8; // [rsp+38h] [rbp+10h] BYREF\n\n  v8 = a2;\n  for ( i = 0; i < cocos2d::CCArray::count(a1->m_tabButtons); ++i )\n  {\n    v4 = (CCMenuItemToggler *)cocos2d::CCArray::objectAtIndex(a1->m_tabButtons, i);\n    v5 = v4->getTag(v4);\n    CCMenuItemToggler::toggle(v4, v8 == v5);\n    LOBYTE(v6) = v8 != v5;\n    v4->setEnabled(v4, v6);\n  }\n  v7 = (int *)sub_14012CE70((__int64 *)&a1->m_iconPages, (int *)&v8);\n  GJGarageLayer::setupPage(a1, *v7, v8);\n}", "assembly": "; \n; GJGarageLayer::selectTab from 0x140275fd0 to 0x140276088 (184 bytes)\n; \n; 5 xrefs:\n; > GJGarageLayer::setupIconSelect @ 0x140275e48\n; > GJGarageLayer::onSelectTab @ 0x140275fbc\n; > <???> @ 0x140686fbc\n; > <???> @ 0x140686fcc\n; > <???> @ 0x1406d0f50\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     [rsp+arg_18], rbp                                              ; +0x0, 0x140275fd0\nmov     [rsp+arg_8], edx                                               ; +0x5, 0x140275fd5\npush    rsi                                                            ; +0x9, 0x140275fd9\nsub     rsp, 20h                                                       ; +0xa, 0x140275fda\nmov     rsi, rcx                                                       ; +0xe, 0x140275fde\nxor     ebp, ebp                                                       ; +0x11, 0x140275fe1\nmov     rcx, [rcx+1E0h]                                                ; +0x13, 0x140275fe3\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x1a, 0x140275fea\ntest    eax, eax                                                       ; +0x20, 0x140275ff0\njz      short loc_14027605D                                            ; +0x22, 0x140275ff2\nmov     [rsp+28h+arg_0], rbx                                           ; +0x24, 0x140275ff4\nmov     [rsp+28h+arg_10], rdi                                          ; +0x29, 0x140275ff9\nxchg    ax, ax                                                         ; +0x2e, 0x140275ffe\nmov     rcx, [rsi+1E0h]                                                ; +0x30, 0x140276000\nmov     edx, ebp                                                       ; +0x37, 0x140276007\ncall    cs:?objectAtIndex@CCArray@cocos2d@@QEAAPEAVCCObject@2@I@Z; cocos2d::CCArray::objectAtIndex(uint) ; +0x39, 0x140276009\nmov     rcx, rax                                                       ; +0x3f, 0x14027600f\nmov     rdi, rax                                                       ; +0x42, 0x140276012\nmov     rdx, [rax]                                                     ; +0x45, 0x140276015\ncall    qword ptr [rdx+38h]                                            ; +0x48, 0x140276018\ncmp     [rsp+28h+arg_8], eax                                           ; +0x4b, 0x14027601b\nmov     rcx, rdi                                                       ; +0x4f, 0x14027601f\nmov     ebx, eax                                                       ; +0x52, 0x140276022\nsetz    dl                                                             ; +0x54, 0x140276024\ncall    CCMenuItemToggler__toggle                                      ; +0x57, 0x140276027\ncmp     [rsp+28h+arg_8], ebx                                           ; +0x5c, 0x14027602c\nmov     rcx, rdi                                                       ; +0x60, 0x140276030\nmov     r8, [rdi]                                                      ; +0x63, 0x140276033\nsetnz   dl                                                             ; +0x66, 0x140276036\ncall    qword ptr [r8+398h]                                            ; +0x69, 0x140276039\nmov     rcx, [rsi+1E0h]                                                ; +0x70, 0x140276040\ninc     ebp                                                            ; +0x77, 0x140276047\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x79, 0x140276049\ncmp     ebp, eax                                                       ; +0x7f, 0x14027604f\njb      short loc_140276000                                            ; +0x81, 0x140276051\nmov     rdi, [rsp+28h+arg_10]                                          ; +0x83, 0x140276053\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x88, 0x140276058\nlea     rcx, [rsi+208h]                                                ; +0x8d, 0x14027605d\nlea     rdx, [rsp+28h+arg_8]                                           ; +0x94, 0x140276064\ncall    sub_14012CE70                                                  ; +0x99, 0x140276069\nmov     r8d, [rsp+28h+arg_8]                                           ; +0x9e, 0x14027606e\nmov     rcx, rsi                                                       ; +0xa3, 0x140276073\nmov     edx, [rax]                                                     ; +0xa6, 0x140276076\ncall    GJGarageLayer__setupPage                                       ; +0xa8, 0x140276078\nmov     rbp, [rsp+28h+arg_18]                                          ; +0xad, 0x14027607d\nadd     rsp, 20h                                                       ; +0xb2, 0x140276082\npop     rsi                                                            ; +0xb6, 0x140276086\nretn                                                                   ; +0xb7, 0x140276087", "xrefs": ["GJGarageLayer::setupIconSelect @ 0x140275e48", "GJGarageLayer::onSelectTab @ 0x140275fbc", "<???> @ 0x140686fbc", "<???> @ 0x140686fcc", "<???> @ 0x1406d0f50"], "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"}