{"type": "func", "start": 5791704, "end": 5791916, "name": "AccountRegisterLayer::resetLabel", "pseudocode": "// \n// AccountRegisterLayer::resetLabel from 0x585fd8 to 0x5860ac (212 bytes)\n// \n// 8 xrefs:\n// > AccountRegisterLayer::resetLabels @ 0x5860de\n// > AccountRegisterLayer::resetLabels @ 0x5860e6\n// > AccountRegisterLayer::resetLabels @ 0x5860ee\n// > AccountRegisterLayer::resetLabels @ 0x5860f6\n// > AccountRegisterLayer::resetLabels @ 0x586102\n// > AccountRegisterLayer::textInputClosed @ 0x5887a0\n// > AccountRegisterLayer::textInputClosed @ 0x588806\n// > AccountRegisterLayer::textChanged @ 0x588aa2\n// \n// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!\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 11:52:58 +0000\n// \n\n_DWORD **__fastcall AccountRegisterLayer::resetLabel(_DWORD **this, int a2)\n{\n  _DWORD **v2; // r4\n  int (*v3)(void); // r3\n\n  v2 = this;\n  switch ( a2 )\n  {\n    case 1:\n      (*(void (__fastcall **)(_DWORD, const char *))(**(this + 137) + 464))(\n        *(this + 137),\n        \"Username: (shown to other players)\");\n      v3 = *(int (**)(void))(*v2[137] + 536);\n      goto LABEL_8;\n    case 2:\n      (*(void (__fastcall **)(_DWORD, const char *))(**(this + 138) + 464))(*(this + 138), \"Password:\");\n      (*(void (__fastcall **)(_DWORD *, __int16 *))(*v2[138] + 536))(v2[138], &word_BED8F3);\n      this = (_DWORD **)v2[139];\n      if ( !this )\n        return this;\n      v3 = (int (*)(void))(*this)[116];\n      goto LABEL_8;\n    case 3:\n      (*(void (__fastcall **)(_DWORD, const char *))(**(this + 140) + 464))(*(this + 140), \"Confirm Password:\");\n      v3 = *(int (**)(void))(*v2[140] + 536);\n      goto LABEL_8;\n    case 4:\n      (*(void (__fastcall **)(_DWORD, const char *))(**(this + 141) + 464))(*(this + 141), \"Email:\");\n      (*(void (__fastcall **)(_DWORD *, __int16 *))(*v2[141] + 536))(v2[141], &word_BED8F3);\n      goto LABEL_7;\n    case 5:\nLABEL_7:\n      (*(void (__fastcall **)(_DWORD *, const char *))(*v2[142] + 464))(v2[142], \"Verify Email:\");\n      v3 = *(int (**)(void))(*v2[142] + 536);\nLABEL_8:\n      this = (_DWORD **)v3();\n      break;\n    default:\n      return this;\n  }\n  return this;\n}", "assembly": "; \n; AccountRegisterLayer::resetLabel from 0x585fd8 to 0x5860ac (212 bytes)\n; \n; 8 xrefs:\n; > AccountRegisterLayer::resetLabels @ 0x5860de\n; > AccountRegisterLayer::resetLabels @ 0x5860e6\n; > AccountRegisterLayer::resetLabels @ 0x5860ee\n; > AccountRegisterLayer::resetLabels @ 0x5860f6\n; > AccountRegisterLayer::resetLabels @ 0x586102\n; > AccountRegisterLayer::textInputClosed @ 0x5887a0\n; > AccountRegisterLayer::textInputClosed @ 0x588806\n; > AccountRegisterLayer::textChanged @ 0x588aa2\n; \n; This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!\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 11:52:58 +0000\n; \nSUBS            R1, #1; switch 5 cases                                 ; +0x0, 0x585fd8\nPUSH            {R4,LR}                                                ; +0x2, 0x585fda\nMOV             R4, R0                                                 ; +0x4, 0x585fdc\nCMP             R1, #4                                                 ; +0x6, 0x585fde\nBHI             def_585FE2; jumptable 00585FE2 default case            ; +0x8, 0x585fe0\nTBB.W           [PC,R1]; switch jump                                   ; +0xa, 0x585fe2\nDCB 3; jump table for switch statement                                 ; +0xe, 0x585fe6\nDCB 0x13                                                               ; +0xf, 0x585fe7\nDCB 0x2E                                                               ; +0x10, 0x585fe8\nDCB 0x3E                                                               ; +0x11, 0x585fe9\nDCB 0x4F                                                               ; +0x12, 0x585fea\nALIGN 2                                                                ; +0x13, 0x585feb\nLDR.W           R0, [R0,#0x224]; jumptable 00585FE2 case 1             ; +0x14, 0x585fec\nLDR             R1, =(aUsernameShownT - 0x585FF8); \"Username: (shown to other players)\" ; +0x18, 0x585ff0\nLDR             R3, [R0]                                               ; +0x1a, 0x585ff2\nADD             R1, PC; \"Username: (shown to other players)\"           ; +0x1c, 0x585ff4\nLDR.W           R3, [R3,#0x1D0]                                        ; +0x1e, 0x585ff6\nBLX             R3                                                     ; +0x22, 0x585ffa\nLDR.W           R0, [R4,#0x224]                                        ; +0x24, 0x585ffc\nLDR             R1, =(unk_BED8F0 - 0x586008)                           ; +0x28, 0x586000\nLDR             R3, [R0]                                               ; +0x2a, 0x586002\nADD             R1, PC; unk_BED8F0                                     ; +0x2c, 0x586004\nLDR.W           R3, [R3,#0x218]                                        ; +0x2e, 0x586006\nB               loc_5860A2                                             ; +0x32, 0x58600a\nLDR.W           R0, [R0,#0x228]; jumptable 00585FE2 case 2             ; +0x34, 0x58600c\nLDR             R1, =(aPassword - 0x586018); \"Password:\"               ; +0x38, 0x586010\nLDR             R3, [R0]                                               ; +0x3a, 0x586012\nADD             R1, PC; \"Password:\"                                    ; +0x3c, 0x586014\nLDR.W           R3, [R3,#0x1D0]                                        ; +0x3e, 0x586016\nBLX             R3                                                     ; +0x42, 0x58601a\nLDR.W           R0, [R4,#0x228]                                        ; +0x44, 0x58601c\nLDR             R1, =(unk_BED8F0 - 0x586028)                           ; +0x48, 0x586020\nLDR             R3, [R0]                                               ; +0x4a, 0x586022\nADD             R1, PC; unk_BED8F0                                     ; +0x4c, 0x586024\nADDS            R1, #(word_BED8F3 - 0xBED8F0)                          ; +0x4e, 0x586026\nLDR.W           R3, [R3,#0x218]                                        ; +0x50, 0x586028\nBLX             R3                                                     ; +0x54, 0x58602c\nLDR.W           R0, [R4,#0x22C]                                        ; +0x56, 0x58602e\nCMP             R0, #0                                                 ; +0x5a, 0x586032\nBEQ             def_585FE2; jumptable 00585FE2 default case            ; +0x5c, 0x586034\nLDR             R3, [R0]                                               ; +0x5e, 0x586036\nLDR             R1, =(unk_B6B226 - 0x586042)                           ; +0x60, 0x586038\nLDR.W           R3, [R3,#0x1D0]                                        ; +0x62, 0x58603a\nADD             R1, PC; unk_B6B226                                     ; +0x66, 0x58603e\nB               loc_5860A4                                             ; +0x68, 0x586040\nLDR.W           R0, [R0,#0x230]; jumptable 00585FE2 case 3             ; +0x6a, 0x586042\nLDR             R1, =(aConfirmPasswor - 0x58604E); \"Confirm Password:\" ; +0x6e, 0x586046\nLDR             R3, [R0]                                               ; +0x70, 0x586048\nADD             R1, PC; \"Confirm Password:\"                            ; +0x72, 0x58604a\nLDR.W           R3, [R3,#0x1D0]                                        ; +0x74, 0x58604c\nBLX             R3                                                     ; +0x78, 0x586050\nLDR.W           R0, [R4,#0x230]                                        ; +0x7a, 0x586052\nLDR             R1, =(unk_BED8F0 - 0x58605E)                           ; +0x7e, 0x586056\nLDR             R3, [R0]                                               ; +0x80, 0x586058\nADD             R1, PC; unk_BED8F0                                     ; +0x82, 0x58605a\nLDR.W           R3, [R3,#0x218]                                        ; +0x84, 0x58605c\nB               loc_5860A2                                             ; +0x88, 0x586060\nLDR.W           R0, [R0,#0x234]; jumptable 00585FE2 case 4             ; +0x8a, 0x586062\nLDR             R1, =(aEmail_0 - 0x58606E); \"Email:\"                   ; +0x8e, 0x586066\nLDR             R3, [R0]                                               ; +0x90, 0x586068\nADD             R1, PC; \"Email:\"                                       ; +0x92, 0x58606a\nLDR.W           R3, [R3,#0x1D0]                                        ; +0x94, 0x58606c\nBLX             R3                                                     ; +0x98, 0x586070\nLDR.W           R0, [R4,#0x234]                                        ; +0x9a, 0x586072\nLDR             R1, =(unk_BED8F0 - 0x58607E)                           ; +0x9e, 0x586076\nLDR             R3, [R0]                                               ; +0xa0, 0x586078\nADD             R1, PC; unk_BED8F0                                     ; +0xa2, 0x58607a\nADDS            R1, #(word_BED8F3 - 0xBED8F0)                          ; +0xa4, 0x58607c\nLDR.W           R3, [R3,#0x218]                                        ; +0xa6, 0x58607e\nBLX             R3                                                     ; +0xaa, 0x586082\nLDR.W           R0, [R4,#0x238]; jumptable 00585FE2 case 5             ; +0xac, 0x586084\nLDR             R1, =(aVerifyEmail - 0x586090); \"Verify Email:\"        ; +0xb0, 0x586088\nLDR             R3, [R0]                                               ; +0xb2, 0x58608a\nADD             R1, PC; \"Verify Email:\"                                ; +0xb4, 0x58608c\nLDR.W           R3, [R3,#0x1D0]                                        ; +0xb6, 0x58608e\nBLX             R3                                                     ; +0xba, 0x586092\nLDR.W           R0, [R4,#0x238]                                        ; +0xbc, 0x586094\nLDR             R1, =(unk_BED8F0 - 0x5860A0)                           ; +0xc0, 0x586098\nLDR             R3, [R0]                                               ; +0xc2, 0x58609a\nADD             R1, PC; unk_BED8F0                                     ; +0xc4, 0x58609c\nLDR.W           R3, [R3,#0x218]                                        ; +0xc6, 0x58609e\nADDS            R1, #(word_BED8F3 - 0xBED8F0)                          ; +0xca, 0x5860a2\nPOP.W           {R4,LR}                                                ; +0xcc, 0x5860a4\nBX              R3                                                     ; +0xd0, 0x5860a8\nPOP             {R4,PC}; jumptable 00585FE2 default case               ; +0xd2, 0x5860aa", "xrefs": ["AccountRegisterLayer::resetLabels @ 0x5860de", "AccountRegisterLayer::resetLabels @ 0x5860e6", "AccountRegisterLayer::resetLabels @ 0x5860ee", "AccountRegisterLayer::resetLabels @ 0x5860f6", "AccountRegisterLayer::resetLabels @ 0x586102", "AccountRegisterLayer::textInputClosed @ 0x5887a0", "AccountRegisterLayer::textInputClosed @ 0x588806", "AccountRegisterLayer::textChanged @ 0x588aa2"], "is_objc": false, "is_32_bit": true, "is_64_bit": false, "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"}