//
// UpdateAccountSettingsPopup::updateSettingsFinished from 0x8c5478 to 0x8c55f0 (376 bytes)
//
// 3 xrefs:
// > `non-virtual thunk to'UpdateAccountSettingsPopup::updateSettingsFinished @ 0x8c55f4
// > ??> @ 0xb8890
// > ??> @ 0x1197ea0
//
// 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 UpdateAccountSettingsPopup::updateSettingsFinished(UpdateAccountSettingsPopup *a1)
{
cocos2d::CCSprite *v2; // x22
void (__fastcall *setPosition)(cocos2d::CCSprite *__hidden, const cocos2d::CCPoint *); // x23
const cocos2d::CCPoint *v4; // x0
TextArea *m_textArea; // x19
char *v6; // x0
unsigned int *v7; // x2
int v8; // w1
_DWORD *v9; // [xsp+50h] [xbp+50h] BYREF
a1->m_updateSuccess = 1;
v2 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_completesIcon_001.png");
v2->setScale(v2, 1.5);
setPosition = v2->setPosition;
v4 = a1->m_loadingCircle->m_sprite->getPosition(a1->m_loadingCircle->m_sprite);
setPosition(v2, v4);
a1->m_mainLayer->addChild(a1->m_mainLayer, v2);
LoadingCircle::fadeAndRemove(a1->m_loadingCircle);
m_textArea = a1->m_textArea;
sub_D153B8((int)&v9, "Account settings updated!");
TextArea::setString((__int64)m_textArea, (const void **)&v9);
v6 = (char *)(v9 - 6);
if ( v9 - 6 != (_DWORD *)&qword_124B6B0 )
{
if ( &pthread_create )
{
v7 = v9 - 2;
do
v8 = __ldaxr(v7);
while ( __stlxr(v8 - 1, v7) );
}
else
{
v8 = *(v9 - 2);
*(v9 - 2) = v8 - 1;
}
if ( v8 <= 0 )
operator delete(v6);
}
}