//
// AccountRegisterLayer::resetLabel from 0x14007a130 to 0x14007a237 (263 bytes)
//
// 2 xrefs:
// > AccountRegisterLayer::textInputClosed @ 0x14007ae1a
// > ??> @ 0x1406c6720
//
// 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 AccountRegisterLayer::resetLabel(AccountRegisterLayer *a1, int a2)
{
int v3; // edx
int v4; // edx
int v5; // edx
int v6; // edx
cocos2d::CCLabelBMFont *m_usernameLabel; // rcx
v3 = a2 - 1;
if ( !v3 )
{
a1->m_usernameLabel->setString(&a1->m_usernameLabel->cocos2d::CCLabelProtocol, (const char *)&xmmword_140538FF0);
m_usernameLabel = a1->m_usernameLabel;
goto LABEL_12;
}
v4 = v3 - 1;
if ( !v4 )
{
a1->m_passwordLabel->setString(&a1->m_passwordLabel->cocos2d::CCLabelProtocol, (const char *)&qword_140539098);
m_usernameLabel = a1->m_passwordLabel;
goto LABEL_12;
}
v5 = v4 - 1;
if ( !v5 )
{
a1->m_confirmPasswordLabel->setString(
&a1->m_confirmPasswordLabel->cocos2d::CCLabelProtocol,
(const char *)&xmmword_140539110);
m_usernameLabel = a1->m_confirmPasswordLabel;
goto LABEL_12;
}
v6 = v5 - 1;
if ( !v6 )
{
a1->m_emailLabel->setString(&a1->m_emailLabel->cocos2d::CCLabelProtocol, (const char *)&dword_1405390F0);
a1->m_emailLabel->setColor(&a1->m_emailLabel->cocos2d::CCRGBAProtocol, &stru_1405299D0);
goto LABEL_8;
}
if ( v6 == 1 )
{
LABEL_8:
a1->m_verifyEmailLabel->setString(&a1->m_verifyEmailLabel->cocos2d::CCLabelProtocol, (const char *)&qword_140539150);
m_usernameLabel = a1->m_verifyEmailLabel;
LABEL_12:
m_usernameLabel->setColor(&m_usernameLabel->cocos2d::CCRGBAProtocol, &stru_1405299D0);
}
}