//
// AccountLoginLayer::updateLabel from 0x1000840e8 to 0x1000841d4 (236 bytes)
//
// 2 xrefs:
// > AccountLoginLayer::loginAccountFailed @ 0x1000840bc
// > sub_1000841D4 @ 0x1000841ec
//
// 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 AccountLoginLayer::updateLabel(AccountLoginLayer *a1, AccountError a2)
{
const char *v3; // x1
__int64 v4; // x20
if ( a2 <= (AccountDisabled|0x1) )
{
if ( a2 == AlreadyLinkedToDifferentSteamAccount )
{
v3 = "Already linked to different Steam account";
goto LABEL_14;
}
if ( a2 != AccountDisabled )
goto LABEL_13;
((void (__fastcall *)(cocos2d::CCLabelBMFont *, const char *))a1->m_usernameLabel->setString)(
a1->m_usernameLabel,
"Account has been disabled");
((void (__fastcall *)(cocos2d::CCLabelBMFont *, void *))a1->m_usernameLabel->setColor)(
a1->m_usernameLabel,
&unk_1006365E5);
v3 = "Contact RobTop Support for more info";
}
else
{
if ( a2 == AlreadyLinkedToDifferentAccount )
{
v3 = "Already linked to different account";
goto LABEL_14;
}
if ( a2 != TooShortLessThan6 )
{
if ( a2 == TooShortLessThan3 )
{
v3 = "Too short. Minimum 3 characters";
LABEL_14:
v4 = 672;
goto LABEL_15;
}
LABEL_13:
v3 = "Login failed";
goto LABEL_14;
}
v3 = "Too short. Minimum 6 characters";
}
v4 = 680;
LABEL_15:
(*(void (__fastcall **)(_QWORD, const char *))(**(_QWORD **)((char *)&a1->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable
+ v4)
+ 912LL))(
*(AccountLoginLayer_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))(
*(AccountLoginLayer_vtbl **)((char *)&a1->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable
+ v4),
&unk_1006365E5);
}