//
// AccountRegisterLayer::resetLabel from 0x10008252c to 0x100082618 (236 bytes)
//
// 2 xrefs:
// > AccountRegisterLayer::resetLabels @ 0x1000824f4
// > AccountRegisterLayer::textInputClosed @ 0x100082904
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
void __fastcall AccountRegisterLayer::resetLabel(AccountRegisterLayer *a1, int a2)
{
const char *v3; // x1
__int64 v4; // x20
if ( a2 <= 2 )
{
if ( a2 == 1 )
{
v3 = "Username: (shown to other players)";
v4 = 696;
}
else
{
if ( a2 != 2 )
return;
v3 = "Password:";
v4 = 704;
}
goto LABEL_13;
}
switch ( a2 )
{
case 3:
v3 = "Confirm Password:";
v4 = 712;
LABEL_13:
(*(void (__fastcall **)(_QWORD, const char *))(**(_QWORD **)((char *)&a1->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable
+ v4)
+ 912LL))(
*(AccountRegisterLayer_vtbl **)((char *)&a1->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable
+ v4),
v3);
(*(void (__fastcall **)(_QWORD, void *))(**(_QWORD **)((char *)&a1->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable
+ v4)
+ 1056LL))(
*(AccountRegisterLayer_vtbl **)((char *)&a1->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable
+ v4),
&unk_1006365E8);
return;
case 4:
((void (__fastcall *)(cocos2d::CCLabelBMFont *, const char *))a1->m_emailLabel->setString)(
a1->m_emailLabel,
"Email:");
((void (__fastcall *)(cocos2d::CCLabelBMFont *, void *))a1->m_emailLabel->setColor)(
a1->m_emailLabel,
&unk_1006365E8);
goto LABEL_11;
case 5:
LABEL_11:
v3 = "Verify Email:";
v4 = 728;
goto LABEL_13;
}
}