{"type": "func", "start": 8722492, "end": 8722820, "name": "AccountLoginLayer::updateLabel", "pseudocode": "// \n// AccountLoginLayer::updateLabel from 0x85183c to 0x851984 (328 bytes)\n// \n// 6 xrefs:\n// > AccountLoginLayer::textInputClosed @ 0x851afc\n// > AccountLoginLayer::textInputClosed @ 0x851b60\n// > AccountLoginLayer::onSubmit @ 0x851f40\n// > AccountLoginLayer::onSubmit @ 0x851f50\n// > AccountLoginLayer::loginAccountFailed @ 0x8521e4\n// > <???> @ 0xb1090\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 AccountLoginLayer::updateLabel(AccountLoginLayer *a1, AccountError a2)\n{\n  cocos2d::CCLabelBMFont *m_usernameLabel; // x2\n  const char *v4; // x1\n  cocos2d::CCLabelBMFont *m_passwordLabel; // x2\n\n  switch ( a2 )\n  {\n    case AlreadyLinkedToDifferentSteamAccount:\n      m_usernameLabel = a1->m_usernameLabel;\n      v4 = \"Already linked to different Steam account\";\n      goto LABEL_3;\n    case AccountDisabled:\n      a1->m_usernameLabel->setString(a1->m_usernameLabel, \"Account has been disabled\");\n      a1->m_usernameLabel->setColor(a1->m_usernameLabel, (const cocos2d::ccColor3B *)&unk_EEC890);\n      a1->m_passwordLabel->setString(a1->m_passwordLabel, \"Contact RobTop Support for more info\");\n      a1->m_passwordLabel->setColor(a1->m_passwordLabel, (const cocos2d::ccColor3B *)&unk_EEC890);\n      return;\n    case AlreadyLinkedToDifferentAccount:\n      m_usernameLabel = a1->m_usernameLabel;\n      v4 = \"Already linked to different account\";\n      goto LABEL_3;\n    case TooShortLessThan3:\n      m_usernameLabel = a1->m_usernameLabel;\n      v4 = \"Too short. Minimum 3 characters\";\n      goto LABEL_3;\n    case TooShortLessThan6:\n      a1->m_passwordLabel->setString(a1->m_passwordLabel, \"Too short. Minimum 6 characters\");\n      m_passwordLabel = a1->m_passwordLabel;\n      goto LABEL_4;\n    default:\n      m_usernameLabel = a1->m_usernameLabel;\n      v4 = \"Login failed\";\nLABEL_3:\n      m_usernameLabel->setString(m_usernameLabel, (const unsigned __int8 *)v4);\n      m_passwordLabel = a1->m_usernameLabel;\nLABEL_4:\n      m_passwordLabel->setColor(m_passwordLabel, (const cocos2d::ccColor3B *)&unk_EEC890);\n      return;\n  }\n}", "assembly": "; \n; AccountLoginLayer::updateLabel from 0x85183c to 0x851984 (328 bytes)\n; \n; 6 xrefs:\n; > AccountLoginLayer::textInputClosed @ 0x851afc\n; > AccountLoginLayer::textInputClosed @ 0x851b60\n; > AccountLoginLayer::onSubmit @ 0x851f40\n; > AccountLoginLayer::onSubmit @ 0x851f50\n; > AccountLoginLayer::loginAccountFailed @ 0x8521e4\n; > <???> @ 0xb1090\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             X29, X30, [SP,#-0x20+var_s0]!                          ; +0x0, 0x85183c\nADD             W1, W1, #0xD                                           ; +0x4, 0x851840\nMOV             X29, SP                                                ; +0x8, 0x851844\nSTP             X19, X20, [SP,#var_s10]                                ; +0xc, 0x851848\nCMP             W1, #5; switch 6 cases                                 ; +0x10, 0x85184c\nMOV             X19, X0                                                ; +0x14, 0x851850\nB.LS            loc_85189C                                             ; +0x18, 0x851854\nADRP            X1, #aLoginFailed@PAGE; jumptable 00000000008518B0 default case, case 2 ; +0x1c, 0x851858\nLDR             X2, [X19,#0x2A0]                                       ; +0x20, 0x85185c\nADD             X1, X1, #aLoginFailed@PAGEOFF; \"Login failed\"          ; +0x24, 0x851860\nMOV             X0, X2                                                 ; +0x28, 0x851864\nLDR             X2, [X2]                                               ; +0x2c, 0x851868\nLDR             X2, [X2,#0x390]                                        ; +0x30, 0x85186c\nBLR             X2                                                     ; +0x34, 0x851870\nLDR             X2, [X19,#0x2A0]                                       ; +0x38, 0x851874\nMOV             X0, X2                                                 ; +0x3c, 0x851878\nLDR             X2, [X2]                                               ; +0x40, 0x85187c\nADRL            X1, unk_EEC890                                         ; +0x44, 0x851880\nLDR             X2, [X2,#0x420]                                        ; +0x4c, 0x851888\nBLR             X2                                                     ; +0x50, 0x85188c\nLDP             X19, X20, [SP,#var_s10]                                ; +0x54, 0x851890\nLDP             X29, X30, [SP+var_s0],#0x20                            ; +0x58, 0x851894\nRET                                                                    ; +0x5c, 0x851898\nADRL            X0, jpt_8518B0                                         ; +0x60, 0x85189c\nLDRB            W0, [X0,W1,UXTW]                                       ; +0x68, 0x8518a4\nADR             X1, loc_8518B4; jumptable 00000000008518B0 case 5      ; +0x6c, 0x8518a8\nADD             X0, X1, W0,SXTB#2                                      ; +0x70, 0x8518ac\nBR              X0; switch jump                                        ; +0x74, 0x8518b0\nLDR             X2, [X19,#0x2A8]; jumptable 00000000008518B0 case 5    ; +0x78, 0x8518b4\nADRL            X1, aTooShortMinimu; \"Too short. Minimum 6 characters\" ; +0x7c, 0x8518b8\nMOV             X0, X2                                                 ; +0x84, 0x8518c0\nLDR             X2, [X2]                                               ; +0x88, 0x8518c4\nLDR             X2, [X2,#0x390]                                        ; +0x8c, 0x8518c8\nBLR             X2                                                     ; +0x90, 0x8518cc\nLDR             X2, [X19,#0x2A8]                                       ; +0x94, 0x8518d0\nB               loc_851878                                             ; +0x98, 0x8518d4\nADRP            X1, #aAlreadyLinkedT@PAGE; jumptable 00000000008518B0 case 0 ; +0x9c, 0x8518d8\nLDR             X2, [X19,#0x2A0]                                       ; +0xa0, 0x8518dc\nADD             X1, X1, #aAlreadyLinkedT@PAGEOFF; \"Already linked to different Steam accou\"... ; +0xa4, 0x8518e0\nB               loc_851864                                             ; +0xa8, 0x8518e4\nLDR             X2, [X19,#0x2A0]; jumptable 00000000008518B0 case 1    ; +0xac, 0x8518e8\nADRL            X1, aAccountHasBeen; \"Account has been disabled\"       ; +0xb0, 0x8518ec\nADRP            X20, #unk_EEC890@PAGE                                  ; +0xb8, 0x8518f4\nMOV             X0, X2                                                 ; +0xbc, 0x8518f8\nADD             X20, X20, #unk_EEC890@PAGEOFF                          ; +0xc0, 0x8518fc\nLDR             X2, [X2]                                               ; +0xc4, 0x851900\nLDR             X2, [X2,#0x390]                                        ; +0xc8, 0x851904\nBLR             X2                                                     ; +0xcc, 0x851908\nLDR             X1, [X19,#0x2A0]                                       ; +0xd0, 0x85190c\nMOV             X0, X1                                                 ; +0xd4, 0x851910\nLDR             X2, [X1]                                               ; +0xd8, 0x851914\nMOV             X1, X20                                                ; +0xdc, 0x851918\nLDR             X2, [X2,#0x420]                                        ; +0xe0, 0x85191c\nBLR             X2                                                     ; +0xe4, 0x851920\nLDR             X2, [X19,#0x2A8]                                       ; +0xe8, 0x851924\nADRL            X1, aContactRobtopS; \"Contact RobTop Support for more info\" ; +0xec, 0x851928\nMOV             X0, X2                                                 ; +0xf4, 0x851930\nLDR             X2, [X2]                                               ; +0xf8, 0x851934\nLDR             X2, [X2,#0x390]                                        ; +0xfc, 0x851938\nBLR             X2                                                     ; +0x100, 0x85193c\nLDR             X2, [X19,#0x2A8]                                       ; +0x104, 0x851940\nMOV             X1, X20                                                ; +0x108, 0x851944\nMOV             X0, X2                                                 ; +0x10c, 0x851948\nLDR             X2, [X2]                                               ; +0x110, 0x85194c\nLDR             X2, [X2,#0x420]                                        ; +0x114, 0x851950\nBLR             X2                                                     ; +0x118, 0x851954\nLDP             X19, X20, [SP,#var_s10]                                ; +0x11c, 0x851958\nLDP             X29, X30, [SP+var_s0],#0x20                            ; +0x120, 0x85195c\nRET                                                                    ; +0x124, 0x851960\nADRP            X1, #aAlreadyLinkedT_0@PAGE; jumptable 00000000008518B0 case 3 ; +0x128, 0x851964\nLDR             X2, [X19,#0x2A0]                                       ; +0x12c, 0x851968\nADD             X1, X1, #aAlreadyLinkedT_0@PAGEOFF; \"Already linked to different account\" ; +0x130, 0x85196c\nB               loc_851864                                             ; +0x134, 0x851970\nADRP            X1, #aTooShortMinimu_0@PAGE; jumptable 00000000008518B0 case 4 ; +0x138, 0x851974\nLDR             X2, [X19,#0x2A0]                                       ; +0x13c, 0x851978\nADD             X1, X1, #aTooShortMinimu_0@PAGEOFF; \"Too short. Minimum 3 characters\" ; +0x140, 0x85197c\nB               loc_851864                                             ; +0x144, 0x851980", "xrefs": ["AccountLoginLayer::textInputClosed @ 0x851afc", "AccountLoginLayer::textInputClosed @ 0x851b60", "AccountLoginLayer::onSubmit @ 0x851f40", "AccountLoginLayer::onSubmit @ 0x851f50", "AccountLoginLayer::loginAccountFailed @ 0x8521e4", "<???> @ 0xb1090"], "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"}