{"type": "func", "start": 4623008, "end": 4623384, "name": "AccountRegisterLayer::updateLabel", "pseudocode": "// \n// AccountRegisterLayer::updateLabel from 0x468aa0 to 0x468c18 (376 bytes)\n// \n// 5 xrefs:\n// > AccountRegisterLayer::registerAccountFailed @ 0x468eda\n// > AccountRegisterLayer::onSubmit @ 0x468f9e\n// > AccountRegisterLayer::textInputClosed @ 0x469238\n// > AccountRegisterLayer::textInputClosed @ 0x46931e\n// > AccountRegisterLayer::textInputClosed @ 0x46935e\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 AccountRegisterLayer::updateLabel(AccountRegisterLayer *a1, AccountError a2)\n{\n  void (*setColor)(void); // r3\n  __int32 v4; // r2\n\n  if ( a2 == InvalidEmail )\n  {\n    a1->m_emailLabel->setString(a1->m_emailLabel, \"Email is invalid\");\n    setColor = (void (*)(void))a1->m_emailLabel->setColor;\n    goto LABEL_21;\n  }\n  if ( a2 > InvalidEmail )\n  {\n    v4 = a2 + 4;\n    if ( a2 == InvalidUsername )\n    {\n      ((void (__fastcall *)(cocos2d::CCLabelBMFont *, const char *, __int32))a1->m_usernameLabel->setString)(\n        a1->m_usernameLabel,\n        \"Username is invalid\",\n        v4);\n      setColor = (void (*)(void))a1->m_usernameLabel->setColor;\n      goto LABEL_21;\n    }\n    if ( a2 < InvalidUsername )\n    {\n      ((void (__fastcall *)(cocos2d::CCLabelBMFont *, const char *, __int32))a1->m_passwordLabel->setString)(\n        a1->m_passwordLabel,\n        \"Password is invalid\",\n        v4);\n      setColor = (void (*)(void))a1->m_passwordLabel->setColor;\n      goto LABEL_21;\n    }\n    if ( a2 == AlreadyUsedEmail )\n    {\n      ((void (__fastcall *)(cocos2d::CCLabelBMFont *, const char *, __int32))a1->m_emailLabel->setString)(\n        a1->m_emailLabel,\n        \"Email is already in use\",\n        v4);\n      setColor = (void (*)(void))a1->m_emailLabel->setColor;\n      goto LABEL_21;\n    }\n    if ( a2 == AlreadyUsedUsername )\n    {\n      ((void (__fastcall *)(cocos2d::CCLabelBMFont *, const char *, __int32))a1->m_usernameLabel->setString)(\n        a1->m_usernameLabel,\n        \"Username is already in use\",\n        v4);\n      setColor = (void (*)(void))a1->m_usernameLabel->setColor;\n      goto LABEL_21;\n    }\n    goto LABEL_20;\n  }\n  if ( a2 == TooShortLessThan3 )\n  {\n    a1->m_usernameLabel->setString(a1->m_usernameLabel, \"Too short. Minimum 3 characters\");\n    setColor = (void (*)(void))a1->m_usernameLabel->setColor;\n    goto LABEL_21;\n  }\n  if ( a2 <= TooShortLessThan3 )\n  {\n    if ( a2 == EmailsDoNotMatch )\n    {\n      a1->m_verifyEmailLabel->setString(a1->m_verifyEmailLabel, \"Emails do not match\");\n      setColor = (void (*)(void))a1->m_verifyEmailLabel->setColor;\n      goto LABEL_21;\n    }\nLABEL_20:\n    a1->m_usernameLabel->setString(a1->m_usernameLabel, \"Something went wrong.\");\n    setColor = (void (*)(void))a1->m_usernameLabel->setColor;\n    goto LABEL_21;\n  }\n  if ( a2 == TooShortLessThan6 )\n  {\n    a1->m_passwordLabel->setString(a1->m_passwordLabel, \"Too short. Minimum 6 characters\");\n    setColor = (void (*)(void))a1->m_passwordLabel->setColor;\n  }\n  else\n  {\n    a1->m_confirmPasswordLabel->setString(a1->m_confirmPasswordLabel, \"Passwords do not match\");\n    setColor = (void (*)(void))a1->m_confirmPasswordLabel->setColor;\n  }\nLABEL_21:\n  setColor();\n}", "assembly": "; \n; AccountRegisterLayer::updateLabel from 0x468aa0 to 0x468c18 (376 bytes)\n; \n; 5 xrefs:\n; > AccountRegisterLayer::registerAccountFailed @ 0x468eda\n; > AccountRegisterLayer::onSubmit @ 0x468f9e\n; > AccountRegisterLayer::textInputClosed @ 0x469238\n; > AccountRegisterLayer::textInputClosed @ 0x46931e\n; > AccountRegisterLayer::textInputClosed @ 0x46935e\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\nPUSH            {R4,LR}                                                ; +0x0, 0x468aa0\nMOV             R4, R0                                                 ; +0x2, 0x468aa2\nADDS            R0, R1, #6                                             ; +0x4, 0x468aa4\nBEQ             loc_468B54                                             ; +0x6, 0x468aa6\nBGT             loc_468B06                                             ; +0x8, 0x468aa8\nCMN.W           R1, #9                                                 ; +0xa, 0x468aaa\nBEQ.W           loc_468BD4                                             ; +0xe, 0x468aae\nBGT             loc_468ADA                                             ; +0x12, 0x468ab2\nADDS            R1, #0x63 ; 'c'                                        ; +0x14, 0x468ab4\nBNE.W           loc_468BF4                                             ; +0x16, 0x468ab6\nLDR.W           R0, [R4,#0x220]                                        ; +0x1a, 0x468aba\nLDR             R1, =(aEmailsDoNotMat - 0x468AC6); \"Emails do not match\" ; +0x1e, 0x468abe\nLDR             R3, [R0]                                               ; +0x20, 0x468ac0\nADD             R1, PC; \"Emails do not match\"                          ; +0x22, 0x468ac2\nLDR.W           R3, [R3,#0x1C8]                                        ; +0x24, 0x468ac4\nBLX             R3                                                     ; +0x28, 0x468ac8\nLDR.W           R0, [R4,#0x220]                                        ; +0x2a, 0x468aca\nLDR             R1, =(unk_9ABEFC - 0x468AD6)                           ; +0x2e, 0x468ace\nLDR             R3, [R0]                                               ; +0x30, 0x468ad0\nADD             R1, PC; unk_9ABEFC                                     ; +0x32, 0x468ad2\nLDR.W           R3, [R3,#0x210]                                        ; +0x34, 0x468ad4\nB               loc_468C12                                             ; +0x38, 0x468ad8\nCMN.W           R1, #8                                                 ; +0x3a, 0x468ada\nBEQ             loc_468BB4                                             ; +0x3e, 0x468ade\nADDS            R1, #7                                                 ; +0x40, 0x468ae0\nBNE.W           loc_468BF4                                             ; +0x42, 0x468ae2\nLDR.W           R0, [R4,#0x218]                                        ; +0x46, 0x468ae6\nLDR             R1, =(aPasswordsDoNot - 0x468AF2); \"Passwords do not match\" ; +0x4a, 0x468aea\nLDR             R3, [R0]                                               ; +0x4c, 0x468aec\nADD             R1, PC; \"Passwords do not match\"                       ; +0x4e, 0x468aee\nLDR.W           R3, [R3,#0x1C8]                                        ; +0x50, 0x468af0\nBLX             R3                                                     ; +0x54, 0x468af4\nLDR.W           R0, [R4,#0x218]                                        ; +0x56, 0x468af6\nLDR             R1, =(unk_9ABEFC - 0x468B02)                           ; +0x5a, 0x468afa\nLDR             R3, [R0]                                               ; +0x5c, 0x468afc\nADD             R1, PC; unk_9ABEFC                                     ; +0x5e, 0x468afe\nLDR.W           R3, [R3,#0x210]                                        ; +0x60, 0x468b00\nB               loc_468C12                                             ; +0x64, 0x468b04\nADDS            R2, R1, #4                                             ; +0x66, 0x468b06\nBEQ             loc_468B74                                             ; +0x68, 0x468b08\nBLT             loc_468B94                                             ; +0x6a, 0x468b0a\nADDS            R3, R1, #3                                             ; +0x6c, 0x468b0c\nBEQ             loc_468B34                                             ; +0x6e, 0x468b0e\nADDS            R1, #2                                                 ; +0x70, 0x468b10\nBNE             loc_468BF4                                             ; +0x72, 0x468b12\nLDR.W           R0, [R4,#0x210]                                        ; +0x74, 0x468b14\nLDR             R1, =(aUsernameIsAlre - 0x468B20); \"Username is already in use\" ; +0x78, 0x468b18\nLDR             R3, [R0]                                               ; +0x7a, 0x468b1a\nADD             R1, PC; \"Username is already in use\"                   ; +0x7c, 0x468b1c\nLDR.W           R3, [R3,#0x1C8]                                        ; +0x7e, 0x468b1e\nBLX             R3                                                     ; +0x82, 0x468b22\nLDR.W           R0, [R4,#0x210]                                        ; +0x84, 0x468b24\nLDR             R1, =(unk_9ABEFC - 0x468B30)                           ; +0x88, 0x468b28\nLDR             R3, [R0]                                               ; +0x8a, 0x468b2a\nADD             R1, PC; unk_9ABEFC                                     ; +0x8c, 0x468b2c\nLDR.W           R3, [R3,#0x210]                                        ; +0x8e, 0x468b2e\nB               loc_468C12                                             ; +0x92, 0x468b32\nLDR.W           R0, [R4,#0x21C]                                        ; +0x94, 0x468b34\nLDR             R1, =(aEmailIsAlready - 0x468B40); \"Email is already in use\" ; +0x98, 0x468b38\nLDR             R3, [R0]                                               ; +0x9a, 0x468b3a\nADD             R1, PC; \"Email is already in use\"                      ; +0x9c, 0x468b3c\nLDR.W           R3, [R3,#0x1C8]                                        ; +0x9e, 0x468b3e\nBLX             R3                                                     ; +0xa2, 0x468b42\nLDR.W           R0, [R4,#0x21C]                                        ; +0xa4, 0x468b44\nLDR             R1, =(unk_9ABEFC - 0x468B50)                           ; +0xa8, 0x468b48\nLDR             R3, [R0]                                               ; +0xaa, 0x468b4a\nADD             R1, PC; unk_9ABEFC                                     ; +0xac, 0x468b4c\nLDR.W           R3, [R3,#0x210]                                        ; +0xae, 0x468b4e\nB               loc_468C12                                             ; +0xb2, 0x468b52\nLDR.W           R0, [R4,#0x21C]                                        ; +0xb4, 0x468b54\nLDR             R1, =(aEmailIsInvalid - 0x468B60); \"Email is invalid\"  ; +0xb8, 0x468b58\nLDR             R3, [R0]                                               ; +0xba, 0x468b5a\nADD             R1, PC; \"Email is invalid\"                             ; +0xbc, 0x468b5c\nLDR.W           R3, [R3,#0x1C8]                                        ; +0xbe, 0x468b5e\nBLX             R3                                                     ; +0xc2, 0x468b62\nLDR.W           R0, [R4,#0x21C]                                        ; +0xc4, 0x468b64\nLDR             R1, =(unk_9ABEFC - 0x468B70)                           ; +0xc8, 0x468b68\nLDR             R3, [R0]                                               ; +0xca, 0x468b6a\nADD             R1, PC; unk_9ABEFC                                     ; +0xcc, 0x468b6c\nLDR.W           R3, [R3,#0x210]                                        ; +0xce, 0x468b6e\nB               loc_468C12                                             ; +0xd2, 0x468b72\nLDR.W           R0, [R4,#0x210]                                        ; +0xd4, 0x468b74\nLDR             R1, =(aUsernameIsInva - 0x468B80); \"Username is invalid\" ; +0xd8, 0x468b78\nLDR             R3, [R0]                                               ; +0xda, 0x468b7a\nADD             R1, PC; \"Username is invalid\"                          ; +0xdc, 0x468b7c\nLDR.W           R3, [R3,#0x1C8]                                        ; +0xde, 0x468b7e\nBLX             R3                                                     ; +0xe2, 0x468b82\nLDR.W           R0, [R4,#0x210]                                        ; +0xe4, 0x468b84\nLDR             R1, =(unk_9ABEFC - 0x468B90)                           ; +0xe8, 0x468b88\nLDR             R3, [R0]                                               ; +0xea, 0x468b8a\nADD             R1, PC; unk_9ABEFC                                     ; +0xec, 0x468b8c\nLDR.W           R3, [R3,#0x210]                                        ; +0xee, 0x468b8e\nB               loc_468C12                                             ; +0xf2, 0x468b92\nLDR.W           R0, [R4,#0x214]                                        ; +0xf4, 0x468b94\nLDR             R1, =(aPasswordIsInva - 0x468BA0); \"Password is invalid\" ; +0xf8, 0x468b98\nLDR             R3, [R0]                                               ; +0xfa, 0x468b9a\nADD             R1, PC; \"Password is invalid\"                          ; +0xfc, 0x468b9c\nLDR.W           R3, [R3,#0x1C8]                                        ; +0xfe, 0x468b9e\nBLX             R3                                                     ; +0x102, 0x468ba2\nLDR.W           R0, [R4,#0x214]                                        ; +0x104, 0x468ba4\nLDR             R1, =(unk_9ABEFC - 0x468BB0)                           ; +0x108, 0x468ba8\nLDR             R3, [R0]                                               ; +0x10a, 0x468baa\nADD             R1, PC; unk_9ABEFC                                     ; +0x10c, 0x468bac\nLDR.W           R3, [R3,#0x210]                                        ; +0x10e, 0x468bae\nB               loc_468C12                                             ; +0x112, 0x468bb2\nLDR.W           R0, [R4,#0x214]                                        ; +0x114, 0x468bb4\nLDR             R1, =(aTooShortMinimu - 0x468BC0); \"Too short. Minimum 6 characters\" ; +0x118, 0x468bb8\nLDR             R3, [R0]                                               ; +0x11a, 0x468bba\nADD             R1, PC; \"Too short. Minimum 6 characters\"              ; +0x11c, 0x468bbc\nLDR.W           R3, [R3,#0x1C8]                                        ; +0x11e, 0x468bbe\nBLX             R3                                                     ; +0x122, 0x468bc2\nLDR.W           R0, [R4,#0x214]                                        ; +0x124, 0x468bc4\nLDR             R1, =(unk_9ABEFC - 0x468BD0)                           ; +0x128, 0x468bc8\nLDR             R3, [R0]                                               ; +0x12a, 0x468bca\nADD             R1, PC; unk_9ABEFC                                     ; +0x12c, 0x468bcc\nLDR.W           R3, [R3,#0x210]                                        ; +0x12e, 0x468bce\nB               loc_468C12                                             ; +0x132, 0x468bd2\nLDR.W           R0, [R4,#0x210]                                        ; +0x134, 0x468bd4\nLDR             R1, =(aTooShortMinimu_0 - 0x468BE0); \"Too short. Minimum 3 characters\" ; +0x138, 0x468bd8\nLDR             R3, [R0]                                               ; +0x13a, 0x468bda\nADD             R1, PC; \"Too short. Minimum 3 characters\"              ; +0x13c, 0x468bdc\nLDR.W           R3, [R3,#0x1C8]                                        ; +0x13e, 0x468bde\nBLX             R3                                                     ; +0x142, 0x468be2\nLDR.W           R0, [R4,#0x210]                                        ; +0x144, 0x468be4\nLDR             R1, =(unk_9ABEFC - 0x468BF0)                           ; +0x148, 0x468be8\nLDR             R3, [R0]                                               ; +0x14a, 0x468bea\nADD             R1, PC; unk_9ABEFC                                     ; +0x14c, 0x468bec\nLDR.W           R3, [R3,#0x210]                                        ; +0x14e, 0x468bee\nB               loc_468C12                                             ; +0x152, 0x468bf2\nLDR.W           R0, [R4,#0x210]                                        ; +0x154, 0x468bf4\nLDR             R1, =(aSomethingWentW - 0x468C00); \"Something went wrong.\" ; +0x158, 0x468bf8\nLDR             R3, [R0]                                               ; +0x15a, 0x468bfa\nADD             R1, PC; \"Something went wrong.\"                        ; +0x15c, 0x468bfc\nLDR.W           R3, [R3,#0x1C8]                                        ; +0x15e, 0x468bfe\nBLX             R3                                                     ; +0x162, 0x468c02\nLDR.W           R0, [R4,#0x210]                                        ; +0x164, 0x468c04\nLDR             R1, =(unk_9ABEFC - 0x468C10)                           ; +0x168, 0x468c08\nLDR             R3, [R0]                                               ; +0x16a, 0x468c0a\nADD             R1, PC; unk_9ABEFC                                     ; +0x16c, 0x468c0c\nLDR.W           R3, [R3,#0x210]                                        ; +0x16e, 0x468c0e\nPOP.W           {R4,LR}                                                ; +0x172, 0x468c12\nBX              R3                                                     ; +0x176, 0x468c16", "xrefs": ["AccountRegisterLayer::registerAccountFailed @ 0x468eda", "AccountRegisterLayer::onSubmit @ 0x468f9e", "AccountRegisterLayer::textInputClosed @ 0x469238", "AccountRegisterLayer::textInputClosed @ 0x46931e", "AccountRegisterLayer::textInputClosed @ 0x46935e"], "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"}