{"type": "func", "start": 12845508, "end": 12845916, "name": "AccountReviewPopup::updateSelectedLabel", "pseudocode": "// \n// AccountReviewPopup::updateSelectedLabel from 0xc401c4 to 0xc4035c (408 bytes)\n// \n// 8 xrefs:\n// > AccountReviewPopup::updateTabControls @ 0xc4040c\n// > AccountReviewPopup::clearPageContent @ 0xc437c0\n// > AccountReviewPopup::onSelectAll @ 0xc4f47c\n// > AccountReviewPopup::onToggleRow @ 0xc4f5b0\n// > AccountReviewPopup::FLAlert_Clicked @ 0xc4f80c\n// > AccountReviewPopup::FLAlert_Clicked @ 0xc4f8cc\n// > AccountReviewPopup::FLAlert_Clicked @ 0xc4f984\n// > <???> @ 0x9fb20\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:56 +0000\n// \n\n__int64 __fastcall AccountReviewPopup::updateSelectedLabel(AccountReviewPopup *this)\n{\n  __int64 v2; // x21\n  const char *v3; // x1\n  _BOOL4 v4; // w21\n  void (__fastcall *v6)(__int64, __int64); // x22\n  cocos2d::CCString *v7; // x0\n  __int64 CString; // x0\n  void (__fastcall *v9)(__int64, _BYTE *); // x23\n  __int64 v10; // x22\n  float v11; // s8\n  float v12; // s8\n  float v13; // s0\n  float v14; // [xsp+40h] [xbp+40h]\n  __int64 v15; // [xsp+58h] [xbp+58h] BYREF\n  _BYTE v16[8]; // [xsp+60h] [xbp+60h] BYREF\n\n  v2 = *((_QWORD *)this + 182);\n  if ( v2 )\n  {\n    v3 = *((const char **)this + 170);\n    if ( !v3 || *((_DWORD *)this + 309) == 2 )\n    {\n      (*(void (__fastcall **)(__int64, char *))(*(_QWORD *)v2 + 928LL))(v2, &byte_11B8890);\n    }\n    else\n    {\n      v6 = *(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v2 + 928LL);\n      v7 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)\"(%i)\", v3);\n      CString = cocos2d::CCString::getCString(v7);\n      v6(v2, CString);\n    }\n    if ( *((_QWORD *)this + 180) )\n    {\n      v4 = (int)AccountReviewPopup::selectedDeletable(this) > 0;\n      (*(void (__fastcall **)(_QWORD, _BOOL4))(**((_QWORD **)this + 180) + 344LL))(*((_QWORD *)this + 180), v4);\n      if ( v4 )\n      {\n        v9 = *(void (__fastcall **)(__int64, _BYTE *))(**((_QWORD **)this + 180) + 184LL);\n        v14 = COERCE_FLOAT(COERCE_UNSIGNED_INT128(((long double (__fastcall *)(_QWORD))*(_QWORD *)(**((_QWORD **)this + 182)\n                                                                                                 + 224LL))(*((_QWORD *)this + 182))));\n        (*(void (__fastcall **)(__int64 *__return_ptr, _QWORD))(**((_QWORD **)this + 182) + 336LL))(\n          &v15,\n          *((_QWORD *)this + 182));\n        v10 = *((_QWORD *)this + 180);\n        v11 = (float)(v14 + *(float *)&v15) + 8.0;\n        v12 = v11 + (float)(*(float *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v10 + 328LL))(v10) * 0.5);\n        v13 = (*(float (__fastcall **)(_QWORD))(**((_QWORD **)this + 179) + 240LL))(*((_QWORD *)this + 179));\n        cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v16, v12, v13);\n        v9(v10, v16);\n      }\n    }\n  }\n  return _stack_chk_guard;\n}", "assembly": "; \n; AccountReviewPopup::updateSelectedLabel from 0xc401c4 to 0xc4035c (408 bytes)\n; \n; 8 xrefs:\n; > AccountReviewPopup::updateTabControls @ 0xc4040c\n; > AccountReviewPopup::clearPageContent @ 0xc437c0\n; > AccountReviewPopup::onSelectAll @ 0xc4f47c\n; > AccountReviewPopup::onToggleRow @ 0xc4f5b0\n; > AccountReviewPopup::FLAlert_Clicked @ 0xc4f80c\n; > AccountReviewPopup::FLAlert_Clicked @ 0xc4f8cc\n; > AccountReviewPopup::FLAlert_Clicked @ 0xc4f984\n; > <???> @ 0x9fb20\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:56 +0000\n; \nSTP             X29, X30, [SP,#var_70]!                                ; +0x0, 0xc401c4\nMOV             X29, SP                                                ; +0x4, 0xc401c8\nSTP             X19, X20, [SP,#0x70+var_60]                            ; +0x8, 0xc401cc\nADRP            X20, #__stack_chk_guard_ptr@PAGE                       ; +0xc, 0xc401d0\nMOV             X19, X0                                                ; +0x10, 0xc401d4\nSTP             X21, X22, [SP,#0x70+var_50]                            ; +0x14, 0xc401d8\nSTR             X23, [SP,#0x70+var_40]                                 ; +0x18, 0xc401dc\nLDR             X0, [X20,#__stack_chk_guard_ptr@PAGEOFF]; __stack_chk_guard ; +0x1c, 0xc401e0\nSTR             D8, [SP,#0x70+var_38]                                  ; +0x20, 0xc401e4\nLDR             X21, [X19,#0x5B0]                                      ; +0x24, 0xc401e8\nLDR             X0, [X0]                                               ; +0x28, 0xc401ec\nSTR             X0, [X29,#0x70+var_8]                                  ; +0x2c, 0xc401f0\nCBZ             X21, loc_C4024C                                        ; +0x30, 0xc401f4\nLDR             X1, [X19,#0x550]; char *                               ; +0x34, 0xc401f8\nCBNZ            X1, loc_C40278                                         ; +0x38, 0xc401fc\nLDR             X2, [X21]                                              ; +0x3c, 0xc40200\nADRP            X1, #byte_11B8890@PAGE                                 ; +0x40, 0xc40204\nMOV             X0, X21                                                ; +0x44, 0xc40208\nADD             X1, X1, #byte_11B8890@PAGEOFF                          ; +0x48, 0xc4020c\nLDR             X2, [X2,#0x3A0]                                        ; +0x4c, 0xc40210\nBLR             X2                                                     ; +0x50, 0xc40214\nLDR             X0, [X19,#0x5A0]                                       ; +0x54, 0xc40218\nCBZ             X0, loc_C4024C                                         ; +0x58, 0xc4021c\nMOV             X0, X19; this                                          ; +0x5c, 0xc40220\nBL              _ZN18AccountReviewPopup17selectedDeletableEv; AccountReviewPopup::selectedDeletable(void) ; +0x60, 0xc40224\nCMP             W0, WZR                                                ; +0x64, 0xc40228\nLDR             X1, [X19,#0x5A0]                                       ; +0x68, 0xc4022c\nCSET            W21, GT                                                ; +0x6c, 0xc40230\nMOV             X0, X1                                                 ; +0x70, 0xc40234\nLDR             X2, [X1]                                               ; +0x74, 0xc40238\nMOV             W1, W21                                                ; +0x78, 0xc4023c\nLDR             X2, [X2,#0x158]                                        ; +0x7c, 0xc40240\nBLR             X2                                                     ; +0x80, 0xc40244\nCBNZ            W21, loc_C402AC                                        ; +0x84, 0xc40248\nLDR             X20, [X20,#__stack_chk_guard_ptr@PAGEOFF]; __stack_chk_guard ; +0x88, 0xc4024c\nLDR             X1, [X29,#0x70+var_8]                                  ; +0x8c, 0xc40250\nLDR             X0, [X20]                                              ; +0x90, 0xc40254\nCMP             X1, X0                                                 ; +0x94, 0xc40258\nB.NE            loc_C40358                                             ; +0x98, 0xc4025c\nLDP             X19, X20, [SP,#0x70+var_60]                            ; +0x9c, 0xc40260\nLDP             X21, X22, [SP,#0x70+var_50]                            ; +0xa0, 0xc40264\nLDR             X23, [SP,#0x70+var_40]                                 ; +0xa4, 0xc40268\nLDR             D8, [SP,#0x70+var_38]                                  ; +0xa8, 0xc4026c\nLDP             X29, X30, [SP+0x70+var_70],#0x70                       ; +0xac, 0xc40270\nRET                                                                    ; +0xb0, 0xc40274\nLDR             W0, [X19,#0x4D4]                                       ; +0xb4, 0xc40278\nCMP             W0, #2                                                 ; +0xb8, 0xc4027c\nB.EQ            loc_C40200                                             ; +0xbc, 0xc40280\nLDR             X2, [X21]                                              ; +0xc0, 0xc40284\nADRL            X0, (aDeleteSelected_1+0x10); this                     ; +0xc4, 0xc40288\nLDR             X22, [X2,#0x3A0]                                       ; +0xcc, 0xc40290\nBL              _ZN7cocos2d8CCString16createWithFormatEPKcz; cocos2d::CCString::createWithFormat(char const*,...) ; +0xd0, 0xc40294\nBL              _ZNK7cocos2d8CCString10getCStringEv; cocos2d::CCString::getCString(void) ; +0xd4, 0xc40298\nMOV             X1, X0                                                 ; +0xd8, 0xc4029c\nMOV             X0, X21                                                ; +0xdc, 0xc402a0\nBLR             X22                                                    ; +0xe0, 0xc402a4\nB               loc_C40218                                             ; +0xe4, 0xc402a8\nLDR             X1, [X19,#0x5B0]                                       ; +0xe8, 0xc402ac\nADD             X21, X29, #0x70+var_10                                 ; +0xec, 0xc402b0\nLDR             X2, [X19,#0x5A0]                                       ; +0xf0, 0xc402b4\nMOV             X0, X1                                                 ; +0xf4, 0xc402b8\nLDR             X1, [X1]                                               ; +0xf8, 0xc402bc\nLDR             X2, [X2]                                               ; +0xfc, 0xc402c0\nLDR             X1, [X1,#0xE0]                                         ; +0x100, 0xc402c4\nLDR             X23, [X2,#0xB8]                                        ; +0x104, 0xc402c8\nBLR             X1                                                     ; +0x108, 0xc402cc\nLDR             X1, [X19,#0x5B0]                                       ; +0x10c, 0xc402d0\nADD             X8, X29, #0x70+var_18                                  ; +0x110, 0xc402d4\nSTR             Q0, [X29,#0x70+var_30]                                 ; +0x114, 0xc402d8\nMOV             X0, X1                                                 ; +0x118, 0xc402dc\nLDR             X1, [X1]                                               ; +0x11c, 0xc402e0\nLDR             X1, [X1,#0x150]                                        ; +0x120, 0xc402e4\nBLR             X1                                                     ; +0x124, 0xc402e8\nLDR             X22, [X19,#0x5A0]                                      ; +0x128, 0xc402ec\nLDR             S1, [X29,#0x70+var_18]                                 ; +0x12c, 0xc402f0\nLDR             Q0, [X29,#0x70+var_30]                                 ; +0x130, 0xc402f4\nMOV             X0, X22                                                ; +0x134, 0xc402f8\nLDR             X1, [X22]                                              ; +0x138, 0xc402fc\nFADD            S0, S0, S1                                             ; +0x13c, 0xc40300\nFMOV            S8, #8.0                                               ; +0x140, 0xc40304\nLDR             X1, [X1,#0x148]                                        ; +0x144, 0xc40308\nFADD            S8, S0, S8                                             ; +0x148, 0xc4030c\nBLR             X1                                                     ; +0x14c, 0xc40310\nFMOV            S1, #0.5                                               ; +0x150, 0xc40314\nLDR             X1, [X19,#0x598]                                       ; +0x154, 0xc40318\nLDR             S0, [X0]                                               ; +0x158, 0xc4031c\nMOV             X0, X1                                                 ; +0x15c, 0xc40320\nFMADD           S8, S0, S1, S8                                         ; +0x160, 0xc40324\nLDR             X1, [X1]                                               ; +0x164, 0xc40328\nLDR             X1, [X1,#0xF0]                                         ; +0x168, 0xc4032c\nBLR             X1                                                     ; +0x16c, 0xc40330\nSTR             X21, [X29,#0x70+var_30]                                ; +0x170, 0xc40334\nFMOV            S1, S0; float                                          ; +0x174, 0xc40338\nMOV             X0, X21; this                                          ; +0x178, 0xc4033c\nFMOV            S0, S8; float                                          ; +0x17c, 0xc40340\nBL              _ZN7cocos2d7CCPointC1Eff; cocos2d::CCPoint::CCPoint(float,float) ; +0x180, 0xc40344\nLDR             X1, [X29,#0x70+var_30]                                 ; +0x184, 0xc40348\nMOV             X0, X22                                                ; +0x188, 0xc4034c\nBLR             X23                                                    ; +0x18c, 0xc40350\nB               loc_C4024C                                             ; +0x190, 0xc40354\nBL              .__stack_chk_fail                                      ; +0x194, 0xc40358", "xrefs": ["AccountReviewPopup::updateTabControls @ 0xc4040c", "AccountReviewPopup::clearPageContent @ 0xc437c0", "AccountReviewPopup::onSelectAll @ 0xc4f47c", "AccountReviewPopup::onToggleRow @ 0xc4f5b0", "AccountReviewPopup::FLAlert_Clicked @ 0xc4f80c", "AccountReviewPopup::FLAlert_Clicked @ 0xc4f8cc", "AccountReviewPopup::FLAlert_Clicked @ 0xc4f984", "<???> @ 0x9fb20"], "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"}