//
// sub_1009A4630 from 0x1009a4630 to 0x1009a46bf (143 bytes)
//
// 1 xrefs:
// > ??> @ 0x100bd7068
//
// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 12:39:18 +0000
//
void __fastcall sub_1009A4630(__int64 a1, __int64 a2)
{
__int64 v2; // rax
if ( *(_BYTE *)(a1 + 512) != 1 || *(_QWORD *)(a1 + 504) != a2 )
{
UploadActionPopup::closePopup(a2);
if ( *(_QWORD *)(a1 + 504) != a2 )
{
if ( *(_BYTE *)(a1 + 441) != 1 )
return;
goto LABEL_5;
}
*(_QWORD *)(a1 + 504) = 0;
if ( *(_BYTE *)(a1 + 441) == 1 )
{
LABEL_5:
*(_BYTE *)(a1 + 441) = 0;
*(_QWORD *)(GameLevelManager::sharedState() + 1256) = a1 - 16;
v2 = GameLevelManager::sharedState();
sub_100570C90(v2, *(_DWORD *)(a1 + 48));
sub_10095CDD0(a1 - 792, *(_DWORD *)(a1 - 116));
}
}
}