{"type": "func", "start": 8712856, "end": 8713240, "name": "AccountRegisterLayer::updateLabel", "pseudocode": "// \n// AccountRegisterLayer::updateLabel from 0x84f298 to 0x84f418 (384 bytes)\n// \n// 12 xrefs:\n// > AccountRegisterLayer::registerAccountFailed @ 0x84f858\n// > AccountRegisterLayer::onSubmit @ 0x84f968\n// > AccountRegisterLayer::onSubmit @ 0x84fba4\n// > AccountRegisterLayer::onSubmit @ 0x84fbf8\n// > AccountRegisterLayer::onSubmit @ 0x84fc74\n// > AccountRegisterLayer::onSubmit @ 0x84fd54\n// > AccountRegisterLayer::textInputClosed @ 0x850190\n// > AccountRegisterLayer::textInputClosed @ 0x8503ec\n// > AccountRegisterLayer::textInputClosed @ 0x850448\n// > AccountRegisterLayer::textInputClosed @ 0x8504a4\n// > AccountRegisterLayer::textInputClosed @ 0x8506a0\n// > <???> @ 0x8b998\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  cocos2d::CCLabelBMFont *m_usernameLabel; // x2\n  const char *v4; // x1\n  cocos2d::CCLabelBMFont *m_verifyEmailLabel; // x2\n  cocos2d::CCLabelBMFont *m_passwordLabel; // x2\n  const char *v7; // x1\n  cocos2d::CCLabelBMFont *m_emailLabel; // x2\n  const char *v9; // x1\n\n  if ( a2 == InvalidEmail )\n  {\n    m_emailLabel = a1->m_emailLabel;\n    v9 = \"Email is invalid\";\n    goto LABEL_17;\n  }\n  if ( a2 <= InvalidEmail )\n  {\n    if ( a2 == TooShortLessThan3 )\n    {\n      m_usernameLabel = a1->m_usernameLabel;\n      v4 = \"Too short. Minimum 3 characters\";\n      goto LABEL_8;\n    }\n    if ( a2 <= TooShortLessThan3 )\n    {\n      if ( a2 == EmailsDoNotMatch )\n      {\n        a1->m_verifyEmailLabel->setString(a1->m_verifyEmailLabel, \"Emails do not match\");\n        m_verifyEmailLabel = a1->m_verifyEmailLabel;\n        goto LABEL_9;\n      }\n      goto LABEL_24;\n    }\n    if ( a2 != TooShortLessThan6 )\n    {\n      a1->m_confirmPasswordLabel->setString(a1->m_confirmPasswordLabel, \"Passwords do not match\");\n      m_verifyEmailLabel = a1->m_confirmPasswordLabel;\n      goto LABEL_9;\n    }\n    m_passwordLabel = a1->m_passwordLabel;\n    v7 = \"Too short. Minimum 6 characters\";\nLABEL_15:\n    m_passwordLabel->setString(m_passwordLabel, (const unsigned __int8 *)v7);\n    m_verifyEmailLabel = a1->m_passwordLabel;\n    goto LABEL_9;\n  }\n  if ( a2 == InvalidUsername )\n  {\n    m_usernameLabel = a1->m_usernameLabel;\n    v4 = \"Username is invalid\";\n    goto LABEL_8;\n  }\n  if ( a2 < InvalidUsername )\n  {\n    m_passwordLabel = a1->m_passwordLabel;\n    v7 = \"Password is invalid\";\n    goto LABEL_15;\n  }\n  if ( a2 == AlreadyUsedEmail )\n  {\n    m_emailLabel = a1->m_emailLabel;\n    v9 = \"Email is already in use\";\nLABEL_17:\n    m_emailLabel->setString(m_emailLabel, (const unsigned __int8 *)v9);\n    m_verifyEmailLabel = a1->m_emailLabel;\n    goto LABEL_9;\n  }\n  if ( a2 != AlreadyUsedUsername )\n  {\nLABEL_24:\n    m_usernameLabel = a1->m_usernameLabel;\n    v4 = \"Something went wrong.\";\n    goto LABEL_8;\n  }\n  m_usernameLabel = a1->m_usernameLabel;\n  v4 = \"Username is already in use\";\nLABEL_8:\n  m_usernameLabel->setString(m_usernameLabel, (const unsigned __int8 *)v4);\n  m_verifyEmailLabel = a1->m_usernameLabel;\nLABEL_9:\n  m_verifyEmailLabel->setColor(m_verifyEmailLabel, (const cocos2d::ccColor3B *)&unk_EEC890);\n}", "assembly": "; \n; AccountRegisterLayer::updateLabel from 0x84f298 to 0x84f418 (384 bytes)\n; \n; 12 xrefs:\n; > AccountRegisterLayer::registerAccountFailed @ 0x84f858\n; > AccountRegisterLayer::onSubmit @ 0x84f968\n; > AccountRegisterLayer::onSubmit @ 0x84fba4\n; > AccountRegisterLayer::onSubmit @ 0x84fbf8\n; > AccountRegisterLayer::onSubmit @ 0x84fc74\n; > AccountRegisterLayer::onSubmit @ 0x84fd54\n; > AccountRegisterLayer::textInputClosed @ 0x850190\n; > AccountRegisterLayer::textInputClosed @ 0x8503ec\n; > AccountRegisterLayer::textInputClosed @ 0x850448\n; > AccountRegisterLayer::textInputClosed @ 0x8504a4\n; > AccountRegisterLayer::textInputClosed @ 0x8506a0\n; > <???> @ 0x8b998\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,#var_20]!                                ; +0x0, 0x84f298\nCMN             W1, #6                                                 ; +0x4, 0x84f29c\nMOV             X29, SP                                                ; +0x8, 0x84f2a0\nSTR             X19, [SP,#0x20+var_10]                                 ; +0xc, 0x84f2a4\nMOV             X19, X0                                                ; +0x10, 0x84f2a8\nB.EQ            loc_84F3E8                                             ; +0x14, 0x84f2ac\nB.LE            loc_84F314                                             ; +0x18, 0x84f2b0\nCMN             W1, #4                                                 ; +0x1c, 0x84f2b4\nB.EQ            loc_84F3F8                                             ; +0x20, 0x84f2b8\nB.LT            loc_84F3C8                                             ; +0x24, 0x84f2bc\nCMN             W1, #3                                                 ; +0x28, 0x84f2c0\nB.EQ            loc_84F378                                             ; +0x2c, 0x84f2c4\nCMN             W1, #2                                                 ; +0x30, 0x84f2c8\nB.NE            loc_84F408                                             ; +0x34, 0x84f2cc\nADRP            X1, #aUsernameIsAlre@PAGE; \"Username is already in use\" ; +0x38, 0x84f2d0\nLDR             X2, [X0,#0x2B8]                                        ; +0x3c, 0x84f2d4\nADD             X1, X1, #aUsernameIsAlre@PAGEOFF; \"Username is already in use\" ; +0x40, 0x84f2d8\nMOV             X0, X2                                                 ; +0x44, 0x84f2dc\nLDR             X2, [X2]                                               ; +0x48, 0x84f2e0\nLDR             X2, [X2,#0x390]                                        ; +0x4c, 0x84f2e4\nBLR             X2                                                     ; +0x50, 0x84f2e8\nLDR             X2, [X19,#0x2B8]                                       ; +0x54, 0x84f2ec\nMOV             X0, X2                                                 ; +0x58, 0x84f2f0\nLDR             X2, [X2]                                               ; +0x5c, 0x84f2f4\nADRL            X1, unk_EEC890                                         ; +0x60, 0x84f2f8\nLDR             X2, [X2,#0x420]                                        ; +0x68, 0x84f300\nBLR             X2                                                     ; +0x6c, 0x84f304\nLDR             X19, [SP,#0x20+var_10]                                 ; +0x70, 0x84f308\nLDP             X29, X30, [SP+0x20+var_20],#0x20                       ; +0x74, 0x84f30c\nRET                                                                    ; +0x78, 0x84f310\nCMN             W1, #9                                                 ; +0x7c, 0x84f314\nB.EQ            loc_84F3D8                                             ; +0x80, 0x84f318\nB.LE            loc_84F39C                                             ; +0x84, 0x84f31c\nCMN             W1, #8                                                 ; +0x88, 0x84f320\nB.EQ            loc_84F354                                             ; +0x8c, 0x84f324\nCMN             W1, #7                                                 ; +0x90, 0x84f328\nB.NE            loc_84F408                                             ; +0x94, 0x84f32c\nLDR             X2, [X0,#0x2C8]                                        ; +0x98, 0x84f330\nADRL            X1, aPasswordsDoNot; \"Passwords do not match\"          ; +0x9c, 0x84f334\nMOV             X0, X2                                                 ; +0xa4, 0x84f33c\nLDR             X2, [X2]                                               ; +0xa8, 0x84f340\nLDR             X2, [X2,#0x390]                                        ; +0xac, 0x84f344\nBLR             X2                                                     ; +0xb0, 0x84f348\nLDR             X2, [X19,#0x2C8]                                       ; +0xb4, 0x84f34c\nB               loc_84F2F0                                             ; +0xb8, 0x84f350\nADRP            X1, #aTooShortMinimu@PAGE; \"Too short. Minimum 6 characters\" ; +0xbc, 0x84f354\nLDR             X2, [X0,#0x2C0]                                        ; +0xc0, 0x84f358\nADD             X1, X1, #aTooShortMinimu@PAGEOFF; \"Too short. Minimum 6 characters\" ; +0xc4, 0x84f35c\nMOV             X0, X2                                                 ; +0xc8, 0x84f360\nLDR             X2, [X2]                                               ; +0xcc, 0x84f364\nLDR             X2, [X2,#0x390]                                        ; +0xd0, 0x84f368\nBLR             X2                                                     ; +0xd4, 0x84f36c\nLDR             X2, [X19,#0x2C0]                                       ; +0xd8, 0x84f370\nB               loc_84F2F0                                             ; +0xdc, 0x84f374\nADRP            X1, #aEmailIsAlready@PAGE; \"Email is already in use\"   ; +0xe0, 0x84f378\nLDR             X2, [X0,#0x2D0]                                        ; +0xe4, 0x84f37c\nADD             X1, X1, #aEmailIsAlready@PAGEOFF; \"Email is already in use\" ; +0xe8, 0x84f380\nMOV             X0, X2                                                 ; +0xec, 0x84f384\nLDR             X2, [X2]                                               ; +0xf0, 0x84f388\nLDR             X2, [X2,#0x390]                                        ; +0xf4, 0x84f38c\nBLR             X2                                                     ; +0xf8, 0x84f390\nLDR             X2, [X19,#0x2D0]                                       ; +0xfc, 0x84f394\nB               loc_84F2F0                                             ; +0x100, 0x84f398\nCMN             W1, #0x63 ; 'c'                                        ; +0x104, 0x84f39c\nB.NE            loc_84F408                                             ; +0x108, 0x84f3a0\nLDR             X2, [X0,#0x2D8]                                        ; +0x10c, 0x84f3a4\nADRL            X1, aEmailsDoNotMat; \"Emails do not match\"             ; +0x110, 0x84f3a8\nMOV             X0, X2                                                 ; +0x118, 0x84f3b0\nLDR             X2, [X2]                                               ; +0x11c, 0x84f3b4\nLDR             X2, [X2,#0x390]                                        ; +0x120, 0x84f3b8\nBLR             X2                                                     ; +0x124, 0x84f3bc\nLDR             X2, [X19,#0x2D8]                                       ; +0x128, 0x84f3c0\nB               loc_84F2F0                                             ; +0x12c, 0x84f3c4\nADRP            X1, #aPasswordIsInva@PAGE; \"Password is invalid\"       ; +0x130, 0x84f3c8\nLDR             X2, [X0,#0x2C0]                                        ; +0x134, 0x84f3cc\nADD             X1, X1, #aPasswordIsInva@PAGEOFF; \"Password is invalid\" ; +0x138, 0x84f3d0\nB               loc_84F360                                             ; +0x13c, 0x84f3d4\nADRP            X1, #aTooShortMinimu_0@PAGE; \"Too short. Minimum 3 characters\" ; +0x140, 0x84f3d8\nLDR             X2, [X0,#0x2B8]                                        ; +0x144, 0x84f3dc\nADD             X1, X1, #aTooShortMinimu_0@PAGEOFF; \"Too short. Minimum 3 characters\" ; +0x148, 0x84f3e0\nB               loc_84F2DC                                             ; +0x14c, 0x84f3e4\nADRP            X1, #aEmailIsInvalid@PAGE; \"Email is invalid\"          ; +0x150, 0x84f3e8\nLDR             X2, [X0,#0x2D0]                                        ; +0x154, 0x84f3ec\nADD             X1, X1, #aEmailIsInvalid@PAGEOFF; \"Email is invalid\"   ; +0x158, 0x84f3f0\nB               loc_84F384                                             ; +0x15c, 0x84f3f4\nADRP            X1, #aUsernameIsInva@PAGE; \"Username is invalid\"       ; +0x160, 0x84f3f8\nLDR             X2, [X0,#0x2B8]                                        ; +0x164, 0x84f3fc\nADD             X1, X1, #aUsernameIsInva@PAGEOFF; \"Username is invalid\" ; +0x168, 0x84f400\nB               loc_84F2DC                                             ; +0x16c, 0x84f404\nADRP            X1, #aSomethingWentW_0@PAGE; \"Something went wrong.\"   ; +0x170, 0x84f408\nLDR             X2, [X19,#0x2B8]                                       ; +0x174, 0x84f40c\nADD             X1, X1, #aSomethingWentW_0@PAGEOFF; \"Something went wrong.\" ; +0x178, 0x84f410\nB               loc_84F2DC                                             ; +0x17c, 0x84f414", "xrefs": ["AccountRegisterLayer::registerAccountFailed @ 0x84f858", "AccountRegisterLayer::onSubmit @ 0x84f968", "AccountRegisterLayer::onSubmit @ 0x84fba4", "AccountRegisterLayer::onSubmit @ 0x84fbf8", "AccountRegisterLayer::onSubmit @ 0x84fc74", "AccountRegisterLayer::onSubmit @ 0x84fd54", "AccountRegisterLayer::textInputClosed @ 0x850190", "AccountRegisterLayer::textInputClosed @ 0x8503ec", "AccountRegisterLayer::textInputClosed @ 0x850448", "AccountRegisterLayer::textInputClosed @ 0x8504a4", "AccountRegisterLayer::textInputClosed @ 0x8506a0", "<???> @ 0x8b998"], "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"}