//
// sub_1005494C4 from 0x1005494c4 to 0x100549540 (124 bytes)
//
// 1 xrefs:
// > sub_10056C658 @ 0x10056c734
//
// 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 *sub_1005494C4()
{
int v0; // w0
if ( (byte_100882A50 & 1) != 0 )
{
v0 = 0;
}
else
{
v0 = sub_10056BDE8(&unk_100882A58, 7, sub_10056C400, sub_10056C430, sub_100549540);
if ( !v0 )
{
v0 = 0;
byte_100882A50 = 1;
}
}
if ( v0 )
return nullptr;
else
return &unk_100882A58;
}