//
// sub_638680 from 0x638680 to 0x6386ca (74 bytes)
//
// 0 xrefs:
//
// 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
//
int __fastcall sub_638680(int a1, bool *a2)
{
int result; // r0
if ( (*(_DWORD *)(*(_DWORD *)(a1 + 664) + 64) & 1) != 0 && !*(_BYTE *)(a1 + 1148) )
{
result = sub_6454E8(a1, *(unsigned __int8 *)(a1 + 1148), a1 + 1148);
if ( result )
return result;
if ( !*(_BYTE *)(a1 + 1148) )
return 0;
}
result = sub_63A580(a1 + 1088, 0);
*a2 = *(_DWORD *)(a1 + 1144) == 0;
if ( !result )
return 0;
return result;
}