{"type": "func", "start": 4295501100, "end": 4295501336, "name": "AccountRegisterLayer::resetLabel", "pseudocode": "// \n// AccountRegisterLayer::resetLabel from 0x10008252c to 0x100082618 (236 bytes)\n// \n// 2 xrefs:\n// > AccountRegisterLayer::resetLabels @ 0x1000824f4\n// > AccountRegisterLayer::textInputClosed @ 0x100082904\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::resetLabel(AccountRegisterLayer *a1, int a2)\n{\n  const char *v3; // x1\n  __int64 v4; // x20\n\n  if ( a2 <= 2 )\n  {\n    if ( a2 == 1 )\n    {\n      v3 = \"Username: (shown to other players)\";\n      v4 = 696;\n    }\n    else\n    {\n      if ( a2 != 2 )\n        return;\n      v3 = \"Password:\";\n      v4 = 704;\n    }\n    goto LABEL_13;\n  }\n  switch ( a2 )\n  {\n    case 3:\n      v3 = \"Confirm Password:\";\n      v4 = 712;\nLABEL_13:\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_1006365E8);\n      return;\n    case 4:\n      ((void (__fastcall *)(cocos2d::CCLabelBMFont *, const char *))a1->m_emailLabel->setString)(\n        a1->m_emailLabel,\n        \"Email:\");\n      ((void (__fastcall *)(cocos2d::CCLabelBMFont *, void *))a1->m_emailLabel->setColor)(\n        a1->m_emailLabel,\n        &unk_1006365E8);\n      goto LABEL_11;\n    case 5:\nLABEL_11:\n      v3 = \"Verify Email:\";\n      v4 = 728;\n      goto LABEL_13;\n  }\n}", "assembly": "; \n; AccountRegisterLayer::resetLabel from 0x10008252c to 0x100082618 (236 bytes)\n; \n; 2 xrefs:\n; > AccountRegisterLayer::resetLabels @ 0x1000824f4\n; > AccountRegisterLayer::textInputClosed @ 0x100082904\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, 0x10008252c\nSTP             X29, X30, [SP,#0x10+var_s0]                            ; +0x4, 0x100082530\nADD             X29, SP, #0x10                                         ; +0x8, 0x100082534\nMOV             X19, X0                                                ; +0xc, 0x100082538\nCMP             W1, #2                                                 ; +0x10, 0x10008253c\nB.LE            loc_100082560                                          ; +0x14, 0x100082540\nCMP             W1, #3                                                 ; +0x18, 0x100082544\nB.EQ            loc_100082580                                          ; +0x1c, 0x100082548\nCMP             W1, #4                                                 ; +0x20, 0x10008254c\nB.EQ            loc_100082590                                          ; +0x24, 0x100082550\nCMP             W1, #5                                                 ; +0x28, 0x100082554\nB.EQ            loc_1000825C0                                          ; +0x2c, 0x100082558\nB               loc_10008260C                                          ; +0x30, 0x10008255c\nCMP             W1, #1                                                 ; +0x34, 0x100082560\nB.EQ            loc_1000825D0                                          ; +0x38, 0x100082564\nCMP             W1, #2                                                 ; +0x3c, 0x100082568\nB.NE            loc_10008260C                                          ; +0x40, 0x10008256c\nADRL            X1, aPassword; \"Password:\"                             ; +0x44, 0x100082570\nMOV             W20, #0x2C0                                            ; +0x4c, 0x100082578\nB               loc_1000825DC                                          ; +0x50, 0x10008257c\nADRL            X1, aConfirmPasswor; \"Confirm Password:\"               ; +0x54, 0x100082580\nMOV             W20, #0x2C8                                            ; +0x5c, 0x100082588\nB               loc_1000825DC                                          ; +0x60, 0x10008258c\nLDR             X0, [X19,#0x2D0]                                       ; +0x64, 0x100082590\nLDR             X8, [X0]                                               ; +0x68, 0x100082594\nLDR             X8, [X8,#0x390]                                        ; +0x6c, 0x100082598\nADRL            X1, aEmail; \"Email:\"                                   ; +0x70, 0x10008259c\nBLR             X8                                                     ; +0x78, 0x1000825a4\nLDR             X0, [X19,#0x2D0]                                       ; +0x7c, 0x1000825a8\nLDR             X8, [X0]                                               ; +0x80, 0x1000825ac\nLDR             X8, [X8,#0x420]                                        ; +0x84, 0x1000825b0\nADRL            X1, unk_1006365E8                                      ; +0x88, 0x1000825b4\nBLR             X8                                                     ; +0x90, 0x1000825bc\nADRL            X1, aVerifyEmail; \"Verify Email:\"                      ; +0x94, 0x1000825c0\nMOV             W20, #0x2D8                                            ; +0x9c, 0x1000825c8\nB               loc_1000825DC                                          ; +0xa0, 0x1000825cc\nADRL            X1, aUsernameShownT; \"Username: (shown to other players)\" ; +0xa4, 0x1000825d0\nMOV             W20, #0x2B8                                            ; +0xac, 0x1000825d8\nLDR             X0, [X19,X20]                                          ; +0xb0, 0x1000825dc\nLDR             X8, [X0]                                               ; +0xb4, 0x1000825e0\nLDR             X8, [X8,#0x390]                                        ; +0xb8, 0x1000825e4\nBLR             X8                                                     ; +0xbc, 0x1000825e8\nLDR             X0, [X19,X20]                                          ; +0xc0, 0x1000825ec\nLDR             X8, [X0]                                               ; +0xc4, 0x1000825f0\nLDR             X2, [X8,#0x420]                                        ; +0xc8, 0x1000825f4\nADRL            X1, unk_1006365E8                                      ; +0xcc, 0x1000825f8\nLDP             X29, X30, [SP,#0x10+var_s0]                            ; +0xd4, 0x100082600\nLDP             X20, X19, [SP+0x10+var_10],#0x20                       ; +0xd8, 0x100082604\nBR              X2                                                     ; +0xdc, 0x100082608\nLDP             X29, X30, [SP,#0x10+var_s0]                            ; +0xe0, 0x10008260c\nLDP             X20, X19, [SP+0x10+var_10],#0x20                       ; +0xe4, 0x100082610\nRET                                                                    ; +0xe8, 0x100082614", "xrefs": ["AccountRegisterLayer::resetLabels @ 0x1000824f4", "AccountRegisterLayer::textInputClosed @ 0x100082904"], "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"}