{"type": "func", "start": 10027812, "end": 10028156, "name": "AccountLoginLayer::updateLabel", "pseudocode": "// \n// AccountLoginLayer::updateLabel from 0x990324 to 0x99047c (344 bytes)\n// \n// 7 xrefs:\n// > AccountLoginLayer::textInputClosed @ 0x990608\n// > AccountLoginLayer::textInputClosed @ 0x990620\n// > AccountLoginLayer::loginAccountFailed @ 0x990870\n// > AccountLoginLayer::onSubmit @ 0x9925bc\n// > AccountLoginLayer::onSubmit @ 0x9925f4\n// > AccountLoginLayer::onSubmit @ 0x99262c\n// > <???> @ 0xe7a30\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 12:57:58 +0000\n// \n\n__int64 __fastcall AccountLoginLayer::updateLabel(__int64 a1, int a2)\n{\n  __int64 v3; // x2\n  const char *v4; // x1\n  __int64 v5; // x2\n  __int64 v7; // x2\n  const char *v8; // x1\n\n  switch ( a2 )\n  {\n    case -14:\n      v7 = *(_QWORD *)(a1 + 704);\n      v8 = \"Password contains invalid characters\";\n      goto LABEL_7;\n    case -13:\n      v3 = *(_QWORD *)(a1 + 696);\n      v4 = \"Already linked to different Steam account\";\n      goto LABEL_3;\n    case -12:\n      (*(void (__fastcall **)(_QWORD, const char *))(**(_QWORD **)(a1 + 696) + 928LL))(\n        *(_QWORD *)(a1 + 696),\n        \"Account has been disabled\");\n      (*(void (__fastcall **)(_QWORD, void *))(**(_QWORD **)(a1 + 696) + 1072LL))(*(_QWORD *)(a1 + 696), &unk_116B4B0);\n      (*(void (__fastcall **)(_QWORD, const char *))(**(_QWORD **)(a1 + 704) + 928LL))(\n        *(_QWORD *)(a1 + 704),\n        \"Contact RobTop Support for more info\");\n      return (*(__int64 (__fastcall **)(_QWORD, void *))(**(_QWORD **)(a1 + 704) + 1072LL))(\n               *(_QWORD *)(a1 + 704),\n               &unk_116B4B0);\n    case -10:\n      v3 = *(_QWORD *)(a1 + 696);\n      v4 = \"Already linked to different account\";\n      goto LABEL_3;\n    case -9:\n      v3 = *(_QWORD *)(a1 + 696);\n      v4 = \"Too short. Minimum 3 characters\";\n      goto LABEL_3;\n    case -8:\n      v7 = *(_QWORD *)(a1 + 704);\n      v8 = \"Too short. Minimum 6 characters\";\nLABEL_7:\n      (*(void (__fastcall **)(__int64, const char *))(*(_QWORD *)v7 + 928LL))(v7, v8);\n      v5 = *(_QWORD *)(a1 + 704);\n      return (*(__int64 (__fastcall **)(__int64, void *))(*(_QWORD *)v5 + 1072LL))(v5, &unk_116B4B0);\n    default:\n      v3 = *(_QWORD *)(a1 + 696);\n      v4 = \"Login failed\";\nLABEL_3:\n      (*(void (__fastcall **)(__int64, const char *))(*(_QWORD *)v3 + 928LL))(v3, v4);\n      v5 = *(_QWORD *)(a1 + 696);\n      return (*(__int64 (__fastcall **)(__int64, void *))(*(_QWORD *)v5 + 1072LL))(v5, &unk_116B4B0);\n  }\n}", "assembly": "; \n; AccountLoginLayer::updateLabel from 0x990324 to 0x99047c (344 bytes)\n; \n; 7 xrefs:\n; > AccountLoginLayer::textInputClosed @ 0x990608\n; > AccountLoginLayer::textInputClosed @ 0x990620\n; > AccountLoginLayer::loginAccountFailed @ 0x990870\n; > AccountLoginLayer::onSubmit @ 0x9925bc\n; > AccountLoginLayer::onSubmit @ 0x9925f4\n; > AccountLoginLayer::onSubmit @ 0x99262c\n; > <???> @ 0xe7a30\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 12:57:58 +0000\n; \nSTP             X29, X30, [SP,#-0x20+var_s0]!                          ; +0x0, 0x990324\nADD             W1, W1, #0xE                                           ; +0x4, 0x990328\nMOV             X29, SP                                                ; +0x8, 0x99032c\nSTP             X19, X20, [SP,#var_s10]                                ; +0xc, 0x990330\nCMP             W1, #6; switch 7 cases                                 ; +0x10, 0x990334\nMOV             X19, X0                                                ; +0x14, 0x990338\nB.LS            loc_990384                                             ; +0x18, 0x99033c\nADRP            X1, #aLoginFailed@PAGE; jumptable 0000000000990398 default case, case 3 ; +0x1c, 0x990340\nLDR             X2, [X19,#0x2B8]                                       ; +0x20, 0x990344\nADD             X1, X1, #aLoginFailed@PAGEOFF; \"Login failed\"          ; +0x24, 0x990348\nMOV             X0, X2                                                 ; +0x28, 0x99034c\nLDR             X2, [X2]                                               ; +0x2c, 0x990350\nLDR             X2, [X2,#0x3A0]                                        ; +0x30, 0x990354\nBLR             X2                                                     ; +0x34, 0x990358\nLDR             X2, [X19,#0x2B8]                                       ; +0x38, 0x99035c\nMOV             X0, X2                                                 ; +0x3c, 0x990360\nLDR             X2, [X2]                                               ; +0x40, 0x990364\nADRL            X1, unk_116B4B0                                        ; +0x44, 0x990368\nLDR             X2, [X2,#0x430]                                        ; +0x4c, 0x990370\nBLR             X2                                                     ; +0x50, 0x990374\nLDP             X19, X20, [SP,#var_s10]                                ; +0x54, 0x990378\nLDP             X29, X30, [SP+var_s0],#0x20                            ; +0x58, 0x99037c\nRET                                                                    ; +0x5c, 0x990380\nADRL            X0, jpt_990398                                         ; +0x60, 0x990384\nLDRB            W0, [X0,W1,UXTW]                                       ; +0x68, 0x99038c\nADR             X1, loc_99039C; jumptable 0000000000990398 case 6      ; +0x6c, 0x990390\nADD             X0, X1, W0,SXTB#2                                      ; +0x70, 0x990394\nBR              X0; switch jump                                        ; +0x74, 0x990398\nADRP            X1, #aTooShortMinimu_0@PAGE; jumptable 0000000000990398 case 6 ; +0x78, 0x99039c\nLDR             X2, [X19,#0x2C0]                                       ; +0x7c, 0x9903a0\nADD             X1, X1, #aTooShortMinimu_0@PAGEOFF; \"Too short. Minimum 6 characters\" ; +0x80, 0x9903a4\nMOV             X0, X2                                                 ; +0x84, 0x9903a8\nLDR             X2, [X2]                                               ; +0x88, 0x9903ac\nLDR             X2, [X2,#0x3A0]                                        ; +0x8c, 0x9903b0\nBLR             X2                                                     ; +0x90, 0x9903b4\nLDR             X2, [X19,#0x2C0]                                       ; +0x94, 0x9903b8\nB               loc_990360                                             ; +0x98, 0x9903bc\nADRP            X1, #aPasswordContai@PAGE; jumptable 0000000000990398 case 0 ; +0x9c, 0x9903c0\nLDR             X2, [X19,#0x2C0]                                       ; +0xa0, 0x9903c4\nADD             X1, X1, #aPasswordContai@PAGEOFF; \"Password contains invalid characters\" ; +0xa4, 0x9903c8\nB               loc_9903A8                                             ; +0xa8, 0x9903cc\nADRP            X1, #aAlreadyLinkedT@PAGE; jumptable 0000000000990398 case 1 ; +0xac, 0x9903d0\nLDR             X2, [X19,#0x2B8]                                       ; +0xb0, 0x9903d4\nADD             X1, X1, #aAlreadyLinkedT@PAGEOFF; \"Already linked to different Steam accou\"... ; +0xb4, 0x9903d8\nB               loc_99034C                                             ; +0xb8, 0x9903dc\nLDR             X2, [X19,#0x2B8]; jumptable 0000000000990398 case 2    ; +0xbc, 0x9903e0\nADRL            X1, aAccountHasBeen; \"Account has been disabled\"       ; +0xc0, 0x9903e4\nADRP            X20, #unk_116B4B0@PAGE                                 ; +0xc8, 0x9903ec\nMOV             X0, X2                                                 ; +0xcc, 0x9903f0\nADD             X20, X20, #unk_116B4B0@PAGEOFF                         ; +0xd0, 0x9903f4\nLDR             X2, [X2]                                               ; +0xd4, 0x9903f8\nLDR             X2, [X2,#0x3A0]                                        ; +0xd8, 0x9903fc\nBLR             X2                                                     ; +0xdc, 0x990400\nLDR             X1, [X19,#0x2B8]                                       ; +0xe0, 0x990404\nMOV             X0, X1                                                 ; +0xe4, 0x990408\nLDR             X2, [X1]                                               ; +0xe8, 0x99040c\nMOV             X1, X20                                                ; +0xec, 0x990410\nLDR             X2, [X2,#0x430]                                        ; +0xf0, 0x990414\nBLR             X2                                                     ; +0xf4, 0x990418\nLDR             X2, [X19,#0x2C0]                                       ; +0xf8, 0x99041c\nADRL            X1, aContactRobtopS; \"Contact RobTop Support for more info\" ; +0xfc, 0x990420\nMOV             X0, X2                                                 ; +0x104, 0x990428\nLDR             X2, [X2]                                               ; +0x108, 0x99042c\nLDR             X2, [X2,#0x3A0]                                        ; +0x10c, 0x990430\nBLR             X2                                                     ; +0x110, 0x990434\nLDR             X2, [X19,#0x2C0]                                       ; +0x114, 0x990438\nMOV             X1, X20                                                ; +0x118, 0x99043c\nMOV             X0, X2                                                 ; +0x11c, 0x990440\nLDR             X2, [X2]                                               ; +0x120, 0x990444\nLDR             X2, [X2,#0x430]                                        ; +0x124, 0x990448\nBLR             X2                                                     ; +0x128, 0x99044c\nLDP             X19, X20, [SP,#var_s10]                                ; +0x12c, 0x990450\nLDP             X29, X30, [SP+var_s0],#0x20                            ; +0x130, 0x990454\nRET                                                                    ; +0x134, 0x990458\nADRP            X1, #aAlreadyLinkedT_0@PAGE; jumptable 0000000000990398 case 4 ; +0x138, 0x99045c\nLDR             X2, [X19,#0x2B8]                                       ; +0x13c, 0x990460\nADD             X1, X1, #aAlreadyLinkedT_0@PAGEOFF; \"Already linked to different account\" ; +0x140, 0x990464\nB               loc_99034C                                             ; +0x144, 0x990468\nADRP            X1, #aTooShortMinimu@PAGE; jumptable 0000000000990398 case 5 ; +0x148, 0x99046c\nLDR             X2, [X19,#0x2B8]                                       ; +0x14c, 0x990470\nADD             X1, X1, #aTooShortMinimu@PAGEOFF; \"Too short. Minimum 3 characters\" ; +0x150, 0x990474\nB               loc_99034C                                             ; +0x154, 0x990478", "xrefs": ["AccountLoginLayer::textInputClosed @ 0x990608", "AccountLoginLayer::textInputClosed @ 0x990620", "AccountLoginLayer::loginAccountFailed @ 0x990870", "AccountLoginLayer::onSubmit @ 0x9925bc", "AccountLoginLayer::onSubmit @ 0x9925f4", "AccountLoginLayer::onSubmit @ 0x99262c", "<???> @ 0xe7a30"], "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"}