{"type": "func", "start": 4295500516, "end": 4295500812, "name": "AccountRegisterLayer::updateLabel", "pseudocode": "// \n// AccountRegisterLayer::updateLabel from 0x1000822e4 to 0x10008240c (296 bytes)\n// \n// 2 xrefs:\n// > AccountRegisterLayer::registerAccountFailed @ 0x1000822b8\n// > sub_10008240C @ 0x100082424\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 __fastcall AccountRegisterLayer::updateLabel(AccountRegisterLayer *a1, AccountError a2)\n{\n  const char *v3; // x1\n  __int64 v4; // x20\n\n  if ( a2 > PasswordsDoNotMatch )\n  {\n    if ( a2 > InvalidPassword )\n    {\n      switch ( a2 )\n      {\n        case InvalidUsername:\n          v3 = \"Username is invalid\";\n          break;\n        case AlreadyUsedUsername:\n          v3 = \"Username is already in use\";\n          break;\n        case AlreadyUsedEmail:\n          v3 = \"Email is already in use\";\nLABEL_20:\n          v4 = 720;\n          goto LABEL_24;\n        default:\n          goto LABEL_22;\n      }\n      goto LABEL_23;\n    }\n    if ( a2 == InvalidEmail )\n    {\n      v3 = \"Email is invalid\";\n      goto LABEL_20;\n    }\n    v3 = \"Password is invalid\";\n    goto LABEL_17;\n  }\n  if ( a2 > TooShortLessThan3 )\n  {\n    if ( a2 == TooShortLessThan6 )\n    {\n      v3 = \"Too short. Minimum 6 characters\";\nLABEL_17:\n      v4 = 704;\n      goto LABEL_24;\n    }\n    v3 = \"Passwords do not match\";\n    v4 = 712;\n  }\n  else\n  {\n    if ( a2 != EmailsDoNotMatch )\n    {\n      if ( a2 != TooShortLessThan3 )\n      {\nLABEL_22:\n        v3 = \"Something went wrong.\";\n        goto LABEL_23;\n      }\n      v3 = \"Too short. Minimum 3 characters\";\nLABEL_23:\n      v4 = 696;\n      goto LABEL_24;\n    }\n    v3 = \"Emails do not match\";\n    v4 = 728;\n  }\nLABEL_24:\n  (*(void (__fastcall **)(_QWORD, const char *))(**(_QWORD **)((char *)&a1->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable\n                                                             + v4)\n                                               + 912LL))(\n    *(AccountRegisterLayer_vtbl **)((char *)&a1->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable\n                                  + v4),\n    v3);\n  (*(void (__fastcall **)(_QWORD, void *))(**(_QWORD **)((char *)&a1->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable\n                                                       + v4)\n                                         + 1056LL))(\n    *(AccountRegisterLayer_vtbl **)((char *)&a1->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable\n                                  + v4),\n    &unk_1006365E5);\n}", "assembly": "; \n; AccountRegisterLayer::updateLabel from 0x1000822e4 to 0x10008240c (296 bytes)\n; \n; 2 xrefs:\n; > AccountRegisterLayer::registerAccountFailed @ 0x1000822b8\n; > sub_10008240C @ 0x100082424\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             X20, X19, [SP,#-0x10+var_10]!                          ; +0x0, 0x1000822e4\nSTP             X29, X30, [SP,#0x10+var_s0]                            ; +0x4, 0x1000822e8\nADD             X29, SP, #0x10                                         ; +0x8, 0x1000822ec\nMOV             X19, X0                                                ; +0xc, 0x1000822f0\nCMN             W1, #7                                                 ; +0x10, 0x1000822f4\nB.LE            loc_100082328                                          ; +0x14, 0x1000822f8\nCMN             W1, #5                                                 ; +0x18, 0x1000822fc\nB.LE            loc_10008236C                                          ; +0x1c, 0x100082300\nCMN             W1, #4                                                 ; +0x20, 0x100082304\nB.EQ            loc_1000823A8                                          ; +0x24, 0x100082308\nCMN             W1, #2                                                 ; +0x28, 0x10008230c\nB.EQ            loc_1000823C4                                          ; +0x2c, 0x100082310\nCMN             W1, #3                                                 ; +0x30, 0x100082314\nB.NE            loc_1000823D0                                          ; +0x34, 0x100082318\nADRL            X1, aEmailIsAlready; \"Email is already in use\"         ; +0x38, 0x10008231c\nB               loc_1000823BC                                          ; +0x40, 0x100082324\nCMN             W1, #9                                                 ; +0x44, 0x100082328\nB.GT            loc_10008234C                                          ; +0x48, 0x10008232c\nCMN             W1, #0x63 ; 'c'                                        ; +0x4c, 0x100082330\nB.EQ            loc_100082388                                          ; +0x50, 0x100082334\nCMN             W1, #9                                                 ; +0x54, 0x100082338\nB.NE            loc_1000823D0                                          ; +0x58, 0x10008233c\nADRL            X1, aTooShortMinimu_0; \"Too short. Minimum 3 characters\" ; +0x5c, 0x100082340\nB               loc_1000823D8                                          ; +0x64, 0x100082348\nCMN             W1, #8                                                 ; +0x68, 0x10008234c\nB.EQ            loc_100082398                                          ; +0x6c, 0x100082350\nCMN             W1, #7                                                 ; +0x70, 0x100082354\nB.NE            loc_1000823D0                                          ; +0x74, 0x100082358\nADRL            X1, aPasswordsDoNot; \"Passwords do not match\"          ; +0x78, 0x10008235c\nMOV             W20, #0x2C8                                            ; +0x80, 0x100082364\nB               loc_1000823DC                                          ; +0x84, 0x100082368\nCMN             W1, #6                                                 ; +0x88, 0x10008236c\nB.EQ            loc_1000823B4                                          ; +0x8c, 0x100082370\nCMN             W1, #5                                                 ; +0x90, 0x100082374\nB.NE            loc_1000823D0                                          ; +0x94, 0x100082378\nADRL            X1, aPasswordIsInva; \"Password is invalid\"             ; +0x98, 0x10008237c\nB               loc_1000823A0                                          ; +0xa0, 0x100082384\nADRL            X1, aEmailsDoNotMat; \"Emails do not match\"             ; +0xa4, 0x100082388\nMOV             W20, #0x2D8                                            ; +0xac, 0x100082390\nB               loc_1000823DC                                          ; +0xb0, 0x100082394\nADRL            X1, aTooShortMinimu; \"Too short. Minimum 6 characters\" ; +0xb4, 0x100082398\nMOV             W20, #0x2C0                                            ; +0xbc, 0x1000823a0\nB               loc_1000823DC                                          ; +0xc0, 0x1000823a4\nADRL            X1, aUsernameIsInva; \"Username is invalid\"             ; +0xc4, 0x1000823a8\nB               loc_1000823D8                                          ; +0xcc, 0x1000823b0\nADRL            X1, aEmailIsInvalid; \"Email is invalid\"                ; +0xd0, 0x1000823b4\nMOV             W20, #0x2D0                                            ; +0xd8, 0x1000823bc\nB               loc_1000823DC                                          ; +0xdc, 0x1000823c0\nADRL            X1, aUsernameIsAlre; \"Username is already in use\"      ; +0xe0, 0x1000823c4\nB               loc_1000823D8                                          ; +0xe8, 0x1000823cc\nADRL            X1, aSomethingWentW; \"Something went wrong.\"           ; +0xec, 0x1000823d0\nMOV             W20, #0x2B8                                            ; +0xf4, 0x1000823d8\nLDR             X0, [X19,X20]                                          ; +0xf8, 0x1000823dc\nLDR             X8, [X0]                                               ; +0xfc, 0x1000823e0\nLDR             X8, [X8,#0x390]                                        ; +0x100, 0x1000823e4\nBLR             X8                                                     ; +0x104, 0x1000823e8\nLDR             X0, [X19,X20]                                          ; +0x108, 0x1000823ec\nLDR             X8, [X0]                                               ; +0x10c, 0x1000823f0\nLDR             X2, [X8,#0x420]                                        ; +0x110, 0x1000823f4\nADRL            X1, unk_1006365E5                                      ; +0x114, 0x1000823f8\nLDP             X29, X30, [SP,#0x10+var_s0]                            ; +0x11c, 0x100082400\nLDP             X20, X19, [SP+0x10+var_10],#0x20                       ; +0x120, 0x100082404\nBR              X2                                                     ; +0x124, 0x100082408", "xrefs": ["AccountRegisterLayer::registerAccountFailed @ 0x1000822b8", "sub_10008240C @ 0x100082424"], "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"}