{"type": "func", "start": 10025312, "end": 10025792, "name": "AccountRegisterLayer::updateLabel", "pseudocode": "// \n// AccountRegisterLayer::updateLabel from 0x98f960 to 0x98fb40 (480 bytes)\n// \n// 12 xrefs:\n// > AccountRegisterLayer::registerAccountFailed @ 0x98ffb0\n// > AccountRegisterLayer::textInputClosed @ 0x993b78\n// > AccountRegisterLayer::textInputClosed @ 0x993c5c\n// > AccountRegisterLayer::textInputClosed @ 0x993d60\n// > AccountRegisterLayer::textInputClosed @ 0x993dc8\n// > AccountRegisterLayer::textChanged @ 0x9940ec\n// > AccountRegisterLayer::textChanged @ 0x994218\n// > AccountRegisterLayer::onSubmit @ 0x994604\n// > AccountRegisterLayer::onSubmit @ 0x994620\n// > AccountRegisterLayer::onSubmit @ 0x9946b8\n// > AccountRegisterLayer::onSubmit @ 0x994770\n// > <???> @ 0xb8fd8\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 AccountRegisterLayer::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  __int64 *v9; // x0\n  __int64 v10; // x2\n  void (__fastcall *v11)(__int64 *, _BYTE *); // x2\n  __int64 v12; // x2\n  const char *v13; // x1\n  _BYTE v14[8]; // [xsp+20h] [xbp+20h] BYREF\n\n  switch ( a2 )\n  {\n    case -99:\n      (*(void (__fastcall **)(_QWORD, const char *))(**(_QWORD **)(a1 + 760) + 928LL))(\n        *(_QWORD *)(a1 + 760),\n        \"Emails do not match\");\n      v5 = *(_QWORD *)(a1 + 760);\n      goto LABEL_4;\n    case -15:\n      v7 = *(_QWORD *)(a1 + 736);\n      v8 = \"Too common\";\n      goto LABEL_10;\n    case -14:\n      v7 = *(_QWORD *)(a1 + 736);\n      v8 = \"Invalid characters\";\n      goto LABEL_10;\n    case -9:\n      v3 = *(_QWORD *)(a1 + 720);\n      v4 = \"Too short. Minimum 3 characters\";\n      goto LABEL_3;\n    case -8:\n      (*(void (__fastcall **)(_QWORD, const char *))(**(_QWORD **)(a1 + 736) + 928LL))(\n        *(_QWORD *)(a1 + 736),\n        \"Minimum 8 characters\");\n      v9 = *(__int64 **)(a1 + 736);\n      v10 = *v9;\n      v14[0] = 120;\n      v14[1] = -86;\n      v11 = *(void (__fastcall **)(__int64 *, _BYTE *))(v10 + 1072);\n      v14[2] = -16;\n      v11(v9, v14);\n      return _stack_chk_guard;\n    case -7:\n      (*(void (__fastcall **)(_QWORD, const char *))(**(_QWORD **)(a1 + 744) + 928LL))(\n        *(_QWORD *)(a1 + 744),\n        \"Passwords do not match\");\n      v5 = *(_QWORD *)(a1 + 744);\n      goto LABEL_4;\n    case -6:\n      v12 = *(_QWORD *)(a1 + 752);\n      v13 = \"Cannot use this email\";\n      goto LABEL_16;\n    case -5:\n      v7 = *(_QWORD *)(a1 + 736);\n      v8 = \"Password is invalid\";\nLABEL_10:\n      (*(void (__fastcall **)(__int64, const char *))(*(_QWORD *)v7 + 928LL))(v7, v8);\n      v5 = *(_QWORD *)(a1 + 736);\n      goto LABEL_4;\n    case -4:\n      v3 = *(_QWORD *)(a1 + 720);\n      v4 = \"Username is invalid\";\n      goto LABEL_3;\n    case -3:\n      v12 = *(_QWORD *)(a1 + 752);\n      v13 = \"Email is already in use\";\nLABEL_16:\n      (*(void (__fastcall **)(__int64, const char *))(*(_QWORD *)v12 + 928LL))(v12, v13);\n      v5 = *(_QWORD *)(a1 + 752);\n      goto LABEL_4;\n    case -2:\n      v3 = *(_QWORD *)(a1 + 720);\n      v4 = \"Username is already in use\";\n      goto LABEL_3;\n    default:\n      v3 = *(_QWORD *)(a1 + 720);\n      v4 = \"Something went wrong.\";\nLABEL_3:\n      (*(void (__fastcall **)(__int64, const char *))(*(_QWORD *)v3 + 928LL))(v3, v4);\n      v5 = *(_QWORD *)(a1 + 720);\nLABEL_4:\n      (*(void (__fastcall **)(__int64, void *))(*(_QWORD *)v5 + 1072LL))(v5, &unk_116B4B0);\n      return _stack_chk_guard;\n  }\n}", "assembly": "; \n; AccountRegisterLayer::updateLabel from 0x98f960 to 0x98fb40 (480 bytes)\n; \n; 12 xrefs:\n; > AccountRegisterLayer::registerAccountFailed @ 0x98ffb0\n; > AccountRegisterLayer::textInputClosed @ 0x993b78\n; > AccountRegisterLayer::textInputClosed @ 0x993c5c\n; > AccountRegisterLayer::textInputClosed @ 0x993d60\n; > AccountRegisterLayer::textInputClosed @ 0x993dc8\n; > AccountRegisterLayer::textChanged @ 0x9940ec\n; > AccountRegisterLayer::textChanged @ 0x994218\n; > AccountRegisterLayer::onSubmit @ 0x994604\n; > AccountRegisterLayer::onSubmit @ 0x994620\n; > AccountRegisterLayer::onSubmit @ 0x9946b8\n; > AccountRegisterLayer::onSubmit @ 0x994770\n; > <???> @ 0xb8fd8\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,#var_30]!                                ; +0x0, 0x98f960\nADD             W1, W1, #0x63 ; 'c'                                    ; +0x4, 0x98f964\nMOV             X29, SP                                                ; +0x8, 0x98f968\nSTP             X19, X20, [SP,#0x30+var_20]                            ; +0xc, 0x98f96c\nADRP            X19, #__stack_chk_guard_ptr@PAGE                       ; +0x10, 0x98f970\nMOV             X20, X0                                                ; +0x14, 0x98f974\nCMP             W1, #0x61; switch 98 cases                             ; +0x18, 0x98f978\nLDR             X0, [X19,#__stack_chk_guard_ptr@PAGEOFF]; __stack_chk_guard ; +0x1c, 0x98f97c\nLDR             X0, [X0]                                               ; +0x20, 0x98f980\nSTR             X0, [X29,#0x30+var_8]                                  ; +0x24, 0x98f984\nB.LS            loc_98F9E4                                             ; +0x28, 0x98f988\nADRP            X1, #aSomethingWentW_0@PAGE; jumptable 000000000098F9F8 default case, cases 1-83,86-89 ; +0x2c, 0x98f98c\nLDR             X2, [X20,#0x2D0]                                       ; +0x30, 0x98f990\nADD             X1, X1, #aSomethingWentW_0@PAGEOFF; \"Something went wrong.\" ; +0x34, 0x98f994\nMOV             X0, X2                                                 ; +0x38, 0x98f998\nLDR             X2, [X2]                                               ; +0x3c, 0x98f99c\nLDR             X2, [X2,#0x3A0]                                        ; +0x40, 0x98f9a0\nBLR             X2                                                     ; +0x44, 0x98f9a4\nLDR             X2, [X20,#0x2D0]                                       ; +0x48, 0x98f9a8\nMOV             X0, X2                                                 ; +0x4c, 0x98f9ac\nLDR             X2, [X2]                                               ; +0x50, 0x98f9b0\nADRL            X1, unk_116B4B0                                        ; +0x54, 0x98f9b4\nLDR             X2, [X2,#0x430]                                        ; +0x5c, 0x98f9bc\nBLR             X2                                                     ; +0x60, 0x98f9c0\nLDR             X19, [X19,#__stack_chk_guard_ptr@PAGEOFF]; __stack_chk_guard ; +0x64, 0x98f9c4\nLDR             X1, [X29,#0x30+var_8]                                  ; +0x68, 0x98f9c8\nLDR             X0, [X19]                                              ; +0x6c, 0x98f9cc\nCMP             X1, X0                                                 ; +0x70, 0x98f9d0\nB.NE            loc_98FB3C                                             ; +0x74, 0x98f9d4\nLDP             X19, X20, [SP,#0x30+var_20]                            ; +0x78, 0x98f9d8\nLDP             X29, X30, [SP+0x30+var_30],#0x30                       ; +0x7c, 0x98f9dc\nRET                                                                    ; +0x80, 0x98f9e0\nADRL            X0, jpt_98F9F8                                         ; +0x84, 0x98f9e4\nLDRB            W0, [X0,W1,UXTW]                                       ; +0x8c, 0x98f9ec\nADR             X1, loc_98F9FC; jumptable 000000000098F9F8 case 97     ; +0x90, 0x98f9f0\nADD             X0, X1, W0,SXTB#2                                      ; +0x94, 0x98f9f4\nBR              X0; switch jump                                        ; +0x98, 0x98f9f8\nADRP            X1, #aUsernameIsAlre@PAGE; jumptable 000000000098F9F8 case 97 ; +0x9c, 0x98f9fc\nLDR             X2, [X20,#0x2D0]                                       ; +0xa0, 0x98fa00\nADD             X1, X1, #aUsernameIsAlre@PAGEOFF; \"Username is already in use\" ; +0xa4, 0x98fa04\nB               loc_98F998                                             ; +0xa8, 0x98fa08\nLDR             X2, [X20,#0x2F8]; jumptable 000000000098F9F8 case 0    ; +0xac, 0x98fa0c\nADRL            X1, aEmailsDoNotMat; \"Emails do not match\"             ; +0xb0, 0x98fa10\nMOV             X0, X2                                                 ; +0xb8, 0x98fa18\nLDR             X2, [X2]                                               ; +0xbc, 0x98fa1c\nLDR             X2, [X2,#0x3A0]                                        ; +0xc0, 0x98fa20\nBLR             X2                                                     ; +0xc4, 0x98fa24\nLDR             X2, [X20,#0x2F8]                                       ; +0xc8, 0x98fa28\nB               loc_98F9AC                                             ; +0xcc, 0x98fa2c\nADRP            X1, #aTooCommon@PAGE; jumptable 000000000098F9F8 case 84 ; +0xd0, 0x98fa30\nLDR             X2, [X20,#0x2E0]                                       ; +0xd4, 0x98fa34\nADD             X1, X1, #aTooCommon@PAGEOFF; \"Too common\"              ; +0xd8, 0x98fa38\nMOV             X0, X2                                                 ; +0xdc, 0x98fa3c\nLDR             X2, [X2]                                               ; +0xe0, 0x98fa40\nLDR             X2, [X2,#0x3A0]                                        ; +0xe4, 0x98fa44\nBLR             X2                                                     ; +0xe8, 0x98fa48\nLDR             X2, [X20,#0x2E0]                                       ; +0xec, 0x98fa4c\nB               loc_98F9AC                                             ; +0xf0, 0x98fa50\nADRP            X1, #aInvalidCharact@PAGE; jumptable 000000000098F9F8 case 85 ; +0xf4, 0x98fa54\nLDR             X2, [X20,#0x2E0]                                       ; +0xf8, 0x98fa58\nADD             X1, X1, #aInvalidCharact@PAGEOFF; \"Invalid characters\" ; +0xfc, 0x98fa5c\nB               loc_98FA3C                                             ; +0x100, 0x98fa60\nADRP            X1, #aTooShortMinimu@PAGE; jumptable 000000000098F9F8 case 90 ; +0x104, 0x98fa64\nLDR             X2, [X20,#0x2D0]                                       ; +0x108, 0x98fa68\nADD             X1, X1, #aTooShortMinimu@PAGEOFF; \"Too short. Minimum 3 characters\" ; +0x10c, 0x98fa6c\nB               loc_98F998                                             ; +0x110, 0x98fa70\nLDR             X2, [X20,#0x2E0]; jumptable 000000000098F9F8 case 91   ; +0x114, 0x98fa74\nADRL            X1, aMinimum8Charac; \"Minimum 8 characters\"            ; +0x118, 0x98fa78\nMOV             X0, X2                                                 ; +0x120, 0x98fa80\nLDR             X2, [X2]                                               ; +0x124, 0x98fa84\nLDR             X2, [X2,#0x3A0]                                        ; +0x128, 0x98fa88\nBLR             X2                                                     ; +0x12c, 0x98fa8c\nLDR             X1, [X20,#0x2E0]                                       ; +0x130, 0x98fa90\nMOV             W3, #0x78 ; 'x'                                        ; +0x134, 0x98fa94\nMOV             X0, X1                                                 ; +0x138, 0x98fa98\nLDR             X2, [X1]                                               ; +0x13c, 0x98fa9c\nADD             X1, X29, #0x30+var_10                                  ; +0x140, 0x98faa0\nSTRB            W3, [X29,#0x30+var_10]                                 ; +0x144, 0x98faa4\nMOV             W3, #0xFFFFFFAA                                        ; +0x148, 0x98faa8\nSTRB            W3, [X29,#0x30+var_F]                                  ; +0x14c, 0x98faac\nMOV             W3, #0xFFFFFFF0                                        ; +0x150, 0x98fab0\nLDR             X2, [X2,#0x430]                                        ; +0x154, 0x98fab4\nSTRB            W3, [X29,#0x30+var_E]                                  ; +0x158, 0x98fab8\nBLR             X2                                                     ; +0x15c, 0x98fabc\nB               loc_98F9C4                                             ; +0x160, 0x98fac0\nLDR             X2, [X20,#0x2E8]; jumptable 000000000098F9F8 case 92   ; +0x164, 0x98fac4\nADRL            X1, aPasswordsDoNot; \"Passwords do not match\"          ; +0x168, 0x98fac8\nMOV             X0, X2                                                 ; +0x170, 0x98fad0\nLDR             X2, [X2]                                               ; +0x174, 0x98fad4\nLDR             X2, [X2,#0x3A0]                                        ; +0x178, 0x98fad8\nBLR             X2                                                     ; +0x17c, 0x98fadc\nLDR             X2, [X20,#0x2E8]                                       ; +0x180, 0x98fae0\nB               loc_98F9AC                                             ; +0x184, 0x98fae4\nADRP            X1, #aCannotUseThisE@PAGE; jumptable 000000000098F9F8 case 93 ; +0x188, 0x98fae8\nLDR             X2, [X20,#0x2F0]                                       ; +0x18c, 0x98faec\nADD             X1, X1, #aCannotUseThisE@PAGEOFF; \"Cannot use this email\" ; +0x190, 0x98faf0\nMOV             X0, X2                                                 ; +0x194, 0x98faf4\nLDR             X2, [X2]                                               ; +0x198, 0x98faf8\nLDR             X2, [X2,#0x3A0]                                        ; +0x19c, 0x98fafc\nBLR             X2                                                     ; +0x1a0, 0x98fb00\nLDR             X2, [X20,#0x2F0]                                       ; +0x1a4, 0x98fb04\nB               loc_98F9AC                                             ; +0x1a8, 0x98fb08\nADRP            X1, #aPasswordIsInva@PAGE; jumptable 000000000098F9F8 case 94 ; +0x1ac, 0x98fb0c\nLDR             X2, [X20,#0x2E0]                                       ; +0x1b0, 0x98fb10\nADD             X1, X1, #aPasswordIsInva@PAGEOFF; \"Password is invalid\" ; +0x1b4, 0x98fb14\nB               loc_98FA3C                                             ; +0x1b8, 0x98fb18\nADRP            X1, #aUsernameIsInva@PAGE; jumptable 000000000098F9F8 case 95 ; +0x1bc, 0x98fb1c\nLDR             X2, [X20,#0x2D0]                                       ; +0x1c0, 0x98fb20\nADD             X1, X1, #aUsernameIsInva@PAGEOFF; \"Username is invalid\" ; +0x1c4, 0x98fb24\nB               loc_98F998                                             ; +0x1c8, 0x98fb28\nADRP            X1, #aEmailIsAlready@PAGE; jumptable 000000000098F9F8 case 96 ; +0x1cc, 0x98fb2c\nLDR             X2, [X20,#0x2F0]                                       ; +0x1d0, 0x98fb30\nADD             X1, X1, #aEmailIsAlready@PAGEOFF; \"Email is already in use\" ; +0x1d4, 0x98fb34\nB               loc_98FAF4                                             ; +0x1d8, 0x98fb38\nBL              .__stack_chk_fail                                      ; +0x1dc, 0x98fb3c", "xrefs": ["AccountRegisterLayer::registerAccountFailed @ 0x98ffb0", "AccountRegisterLayer::textInputClosed @ 0x993b78", "AccountRegisterLayer::textInputClosed @ 0x993c5c", "AccountRegisterLayer::textInputClosed @ 0x993d60", "AccountRegisterLayer::textInputClosed @ 0x993dc8", "AccountRegisterLayer::textChanged @ 0x9940ec", "AccountRegisterLayer::textChanged @ 0x994218", "AccountRegisterLayer::onSubmit @ 0x994604", "AccountRegisterLayer::onSubmit @ 0x994620", "AccountRegisterLayer::onSubmit @ 0x9946b8", "AccountRegisterLayer::onSubmit @ 0x994770", "<???> @ 0xb8fd8"], "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"}