{"type": "func", "start": 12846160, "end": 12846280, "name": "AccountReviewPopup::selectTab", "pseudocode": "// \n// AccountReviewPopup::selectTab from 0xc40450 to 0xc404c8 (120 bytes)\n// \n// 3 xrefs:\n// > AccountReviewPopup::onTab @ 0xc40504\n// > AccountReviewPopup::init @ 0xc456a4\n// > <???> @ 0xefa58\n// \n// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!\n// \n// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n// Generated at Fri, 27 Nov 2026 13:04:57 +0000\n// \n\nPagedListPopup *__fastcall AccountReviewPopup::selectTab(AccountReviewPopup *this, int a2)\n{\n  __int64 v4; // x19\n  ButtonSprite **v5; // x0\n  const char *v6; // x1\n\n  v4 = 0;\n  *((_DWORD *)this + 309) = a2;\n  do\n  {\n    v5 = (ButtonSprite **)((char *)this + 8 * v4);\n    if ( a2 == (_DWORD)v4 )\n      v6 = \"GJ_button_01.png\";\n    else\n      v6 = \"GJ_button_04.png\";\n    ++v4;\n    ButtonSprite::updateBGImage(v5[173], v6);\n  }\n  while ( v4 != 3 );\n  AccountReviewPopup::updateTabControls(this);\n  return PagedListPopup::loadPage(this, 0);\n}", "assembly": "; \n; AccountReviewPopup::selectTab from 0xc40450 to 0xc404c8 (120 bytes)\n; \n; 3 xrefs:\n; > AccountReviewPopup::onTab @ 0xc40504\n; > AccountReviewPopup::init @ 0xc456a4\n; > <???> @ 0xefa58\n; \n; This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!\n; \n; Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n; Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n; Generated at Fri, 27 Nov 2026 13:04:57 +0000\n; \nSTP             X29, X30, [SP,#var_40]!                                ; +0x0, 0xc40450\nMOV             X29, SP                                                ; +0x4, 0xc40454\nSTP             X21, X22, [SP,#0x40+var_20]                            ; +0x8, 0xc40458\nMOV             X22, X0                                                ; +0xc, 0xc4045c\nSTR             X23, [SP,#0x40+var_10]                                 ; +0x10, 0xc40460\nSTP             X19, X20, [SP,#0x40+var_30]                            ; +0x14, 0xc40464\nADRP            X23, #aGjButton01Png@PAGE; \"GJ_button_01.png\"          ; +0x18, 0xc40468\nADRP            X20, #aGjButton04Png@PAGE; \"GJ_button_04.png\"          ; +0x1c, 0xc4046c\nMOV             W21, W1                                                ; +0x20, 0xc40470\nMOV             X19, #0                                                ; +0x24, 0xc40474\nADD             X20, X20, #aGjButton04Png@PAGEOFF; \"GJ_button_04.png\"  ; +0x28, 0xc40478\nSTR             W1, [X22,#0x4D4]                                       ; +0x2c, 0xc4047c\nADD             X23, X23, #aGjButton01Png@PAGEOFF; \"GJ_button_01.png\"  ; +0x30, 0xc40480\nADD             X0, X22, X19,LSL#3                                     ; +0x34, 0xc40484\nCMP             W21, W19                                               ; +0x38, 0xc40488\nCSEL            X1, X20, X23, NE; char *                               ; +0x3c, 0xc4048c\nADD             X19, X19, #1                                           ; +0x40, 0xc40490\nLDR             X0, [X0,#0x568]; this                                  ; +0x44, 0xc40494\nBL              _ZN12ButtonSprite13updateBGImageEPKc; ButtonSprite::updateBGImage(char const*) ; +0x48, 0xc40498\nCMP             X19, #3                                                ; +0x4c, 0xc4049c\nB.NE            loc_C40484                                             ; +0x50, 0xc404a0\nMOV             X0, X22; this                                          ; +0x54, 0xc404a4\nBL              _ZN18AccountReviewPopup17updateTabControlsEv; AccountReviewPopup::updateTabControls(void) ; +0x58, 0xc404a8\nLDR             X23, [SP,#0x40+var_10]                                 ; +0x5c, 0xc404ac\nMOV             X0, X22; this                                          ; +0x60, 0xc404b0\nMOV             W1, #0; int                                            ; +0x64, 0xc404b4\nLDP             X19, X20, [SP,#0x40+var_30]                            ; +0x68, 0xc404b8\nLDP             X21, X22, [SP,#0x40+var_20]                            ; +0x6c, 0xc404bc\nLDP             X29, X30, [SP+0x40+var_40],#0x40                       ; +0x70, 0xc404c0\nB               _ZN14PagedListPopup8loadPageEi; PagedListPopup::loadPage(int) ; +0x74, 0xc404c4", "xrefs": ["AccountReviewPopup::onTab @ 0xc40504", "AccountReviewPopup::init @ 0xc456a4", "<???> @ 0xefa58"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "arm", "bida_info": "8.3.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings"}