//
// sub_1004B90FC from 0x1004b90fc to 0x1004b9188 (140 bytes)
//
// 1 xrefs:
// > sub_1004B8F48 @ 0x1004b8f6c
//
// 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
//
__int64 __fastcall sub_1004B90FC(__int64 *a1)
{
__int64 v1; // x20
int *v3; // x1
v1 = *a1;
if ( *a1 )
{
v3 = *(int **)(v1 + 24);
if ( !v3 || (sub_1004B1970(*((_QWORD *)off_1008524C8 + 54), v3), *(_QWORD *)(v1 + 24) = 0, (v1 = *a1) != 0) )
{
sub_1004B1970(*((_QWORD *)off_1008524C8 + 54), (int *)v1);
*a1 = 0;
}
}
return 0;
}