{"type": "func", "start": 4295508200, "end": 4295508436, "name": "AccountLoginLayer::updateLabel", "pseudocode": "// \n// AccountLoginLayer::updateLabel from 0x1000840e8 to 0x1000841d4 (236 bytes)\n// \n// 2 xrefs:\n// > AccountLoginLayer::loginAccountFailed @ 0x1000840bc\n// > sub_1000841D4 @ 0x1000841ec\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 __fastcall AccountLoginLayer::updateLabel(AccountLoginLayer *a1, AccountError a2)\n{\n  const char *v3; // x1\n  __int64 v4; // x20\n\n  if ( a2 <= (AccountDisabled|0x1) )\n  {\n    if ( a2 == AlreadyLinkedToDifferentSteamAccount )\n    {\n      v3 = \"Already linked to different Steam account\";\n      goto LABEL_14;\n    }\n    if ( a2 != AccountDisabled )\n      goto LABEL_13;\n    ((void (__fastcall *)(cocos2d::CCLabelBMFont *, const char *))a1->m_usernameLabel->setString)(\n      a1->m_usernameLabel,\n      \"Account has been disabled\");\n    ((void (__fastcall *)(cocos2d::CCLabelBMFont *, void *))a1->m_usernameLabel->setColor)(\n      a1->m_usernameLabel,\n      &unk_1006365E5);\n    v3 = \"Contact RobTop Support for more info\";\n  }\n  else\n  {\n    if ( a2 == AlreadyLinkedToDifferentAccount )\n    {\n      v3 = \"Already linked to different account\";\n      goto LABEL_14;\n    }\n    if ( a2 != TooShortLessThan6 )\n    {\n      if ( a2 == TooShortLessThan3 )\n      {\n        v3 = \"Too short. Minimum 3 characters\";\nLABEL_14:\n        v4 = 672;\n        goto LABEL_15;\n      }\nLABEL_13:\n      v3 = \"Login failed\";\n      goto LABEL_14;\n    }\n    v3 = \"Too short. Minimum 6 characters\";\n  }\n  v4 = 680;\nLABEL_15:\n  (*(void (__fastcall **)(_QWORD, const char *))(**(_QWORD **)((char *)&a1->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable\n                                                             + v4)\n                                               + 912LL))(\n    *(AccountLoginLayer_vtbl **)((char *)&a1->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable\n                               + v4),\n    v3);\n  (*(void (__fastcall **)(_QWORD, void *))(**(_QWORD **)((char *)&a1->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable\n                                                       + v4)\n                                         + 1056LL))(\n    *(AccountLoginLayer_vtbl **)((char *)&a1->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable\n                               + v4),\n    &unk_1006365E5);\n}", "assembly": "; \n; AccountLoginLayer::updateLabel from 0x1000840e8 to 0x1000841d4 (236 bytes)\n; \n; 2 xrefs:\n; > AccountLoginLayer::loginAccountFailed @ 0x1000840bc\n; > sub_1000841D4 @ 0x1000841ec\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\nSTP             X20, X19, [SP,#-0x10+var_10]!                          ; +0x0, 0x1000840e8\nSTP             X29, X30, [SP,#0x10+var_s0]                            ; +0x4, 0x1000840ec\nADD             X29, SP, #0x10                                         ; +0x8, 0x1000840f0\nMOV             X19, X0                                                ; +0xc, 0x1000840f4\nCMN             W1, #0xB                                               ; +0x10, 0x1000840f8\nB.LE            loc_100084124                                          ; +0x14, 0x1000840fc\nCMN             W1, #0xA                                               ; +0x18, 0x100084100\nB.EQ            loc_100084170                                          ; +0x1c, 0x100084104\nCMN             W1, #8                                                 ; +0x20, 0x100084108\nB.EQ            loc_10008417C                                          ; +0x24, 0x10008410c\nCMN             W1, #9                                                 ; +0x28, 0x100084110\nB.NE            loc_100084198                                          ; +0x2c, 0x100084114\nADRL            X1, aTooShortMinimu_0; \"Too short. Minimum 3 characters\" ; +0x30, 0x100084118\nB               loc_1000841A0                                          ; +0x38, 0x100084120\nCMN             W1, #0xD                                               ; +0x3c, 0x100084124\nB.EQ            loc_10008418C                                          ; +0x40, 0x100084128\nCMN             W1, #0xC                                               ; +0x44, 0x10008412c\nB.NE            loc_100084198                                          ; +0x48, 0x100084130\nLDR             X0, [X19,#0x2A0]                                       ; +0x4c, 0x100084134\nLDR             X8, [X0]                                               ; +0x50, 0x100084138\nLDR             X8, [X8,#0x390]                                        ; +0x54, 0x10008413c\nADRL            X1, aAccountHasBeen; \"Account has been disabled\"       ; +0x58, 0x100084140\nBLR             X8                                                     ; +0x60, 0x100084148\nLDR             X0, [X19,#0x2A0]                                       ; +0x64, 0x10008414c\nLDR             X8, [X0]                                               ; +0x68, 0x100084150\nLDR             X8, [X8,#0x420]                                        ; +0x6c, 0x100084154\nADRL            X1, unk_1006365E5                                      ; +0x70, 0x100084158\nBLR             X8                                                     ; +0x78, 0x100084160\nADRL            X1, aContactRobtopS; \"Contact RobTop Support for more info\" ; +0x7c, 0x100084164\nB               loc_100084184                                          ; +0x84, 0x10008416c\nADRL            X1, aAlreadyLinkedT; \"Already linked to different account\" ; +0x88, 0x100084170\nB               loc_1000841A0                                          ; +0x90, 0x100084178\nADRL            X1, aTooShortMinimu; \"Too short. Minimum 6 characters\" ; +0x94, 0x10008417c\nMOV             W20, #0x2A8                                            ; +0x9c, 0x100084184\nB               loc_1000841A4                                          ; +0xa0, 0x100084188\nADRL            X1, aAlreadyLinkedT_0; \"Already linked to different Steam accou\"... ; +0xa4, 0x10008418c\nB               loc_1000841A0                                          ; +0xac, 0x100084194\nADRL            X1, aLoginFailed; \"Login failed\"                       ; +0xb0, 0x100084198\nMOV             W20, #0x2A0                                            ; +0xb8, 0x1000841a0\nLDR             X0, [X19,X20]                                          ; +0xbc, 0x1000841a4\nLDR             X8, [X0]                                               ; +0xc0, 0x1000841a8\nLDR             X8, [X8,#0x390]                                        ; +0xc4, 0x1000841ac\nBLR             X8                                                     ; +0xc8, 0x1000841b0\nLDR             X0, [X19,X20]                                          ; +0xcc, 0x1000841b4\nLDR             X8, [X0]                                               ; +0xd0, 0x1000841b8\nLDR             X2, [X8,#0x420]                                        ; +0xd4, 0x1000841bc\nADRL            X1, unk_1006365E5                                      ; +0xd8, 0x1000841c0\nLDP             X29, X30, [SP,#0x10+var_s0]                            ; +0xe0, 0x1000841c8\nLDP             X20, X19, [SP+0x10+var_10],#0x20                       ; +0xe4, 0x1000841cc\nBR              X2                                                     ; +0xe8, 0x1000841d0", "xrefs": ["AccountLoginLayer::loginAccountFailed @ 0x1000840bc", "sub_1000841D4 @ 0x1000841ec"], "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"}