//
// AccountHelpLayer::verifyUnlink from 0x84cc28 to 0x84cd74 (332 bytes)
//
// 2 xrefs:
// > AccountHelpLayer::FLAlert_Clicked @ 0x84d668
// > ??> @ 0x2d648
//
// 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 AccountHelpLayer::verifyUnlink(AccountHelpLayer *a1)
{
int v1; // w21
FLAlertLayer *v2; // x19
void *v3; // x0
unsigned int *v4; // x2
int v5; // w1
__int64 v6; // [xsp+40h] [xbp+40h] BYREF
v1 = (int)a1;
sub_D153B8(
(int)&v6,
"This will delete ALL save data.\nDo you want to continue?\n(You cannot undo this action)");
v2 = FLAlertLayer::create(v1 + 616, (__int64)"Warning", (__int64)&v6);
v3 = (void *)(v6 - 24);
if ( (__int64 *)(v6 - 24) != &qword_124B6B0 )
{
if ( &pthread_create )
{
v4 = (unsigned int *)(v6 - 8);
do
v5 = __ldaxr(v4);
while ( __stlxr(v5 - 1, v4) );
}
else
{
v5 = *(_DWORD *)(v6 - 8);
*(_DWORD *)(v6 - 8) = v5 - 1;
}
if ( v5 <= 0 )
operator delete(v3);
}
v2->setTag(v2, 4);
ButtonSprite::updateBGImage(v2->m_button2, "GJ_button_06.png");
v2->show(v2);
}