//
// sub_10051D72C from 0x10051d72c to 0x10051d770 (68 bytes)
//
// 4 xrefs:
// > PlayLayer::onQuit @ 0x100142200
// > PlayLayer::levelComplete @ 0x100142fa4
// > PlayLayer::pauseGame @ 0x10014c430
// > PlayLayer::onExit @ 0x10014c854
//
// This function is hookable on this platform (idp: arm, 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 11:07:10 +0000
//
void __fastcall sub_10051D72C(__int64 a1)
{
__int64 v2; // x0
if ( *(_BYTE *)(a1 + 14464) == 1 )
{
v2 = *(_QWORD *)(a1 + 1936);
if ( v2 )
{
sub_1000D0538(v2, (__int64 *)(a1 + 14440));
*(_BYTE *)(a1 + 14464) = 0;
}
}
}