//
// sub_1004CDE8C from 0x1004cde8c to 0x1004cdedc (80 bytes)
//
// 1 xrefs:
// > sub_1004CD5C0 @ 0x1004cd8f8
//
// 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:06:27 +0000
//
__int64 __fastcall sub_1004CDE8C(__int64 a1, int a2)
{
__int64 result; // x0
_QWORD *v4; // x0
result = *(_QWORD *)(a1 + 1096);
if ( a2 )
{
if ( !result )
{
v4 = LoadingCircle::create();
*(_QWORD *)(a1 + 1096) = v4;
v4[69] = *(_QWORD *)(a1 + 584);
return LoadingCircle::show((__int64)v4);
}
}
else if ( result )
{
result = LoadingCircle::fadeAndRemove(result);
*(_QWORD *)(a1 + 1096) = 0;
}
return result;
}