//
// sub_639464 from 0x639464 to 0x6394c4 (96 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_639464(int a1)
{
int v1; // r3
int v2; // r4
char **v3; // r3
void *v5; // r0
v1 = *(unsigned __int8 *)(a1 + 618);
*(_BYTE *)(a1 + 612) = 0;
v2 = *(_DWORD *)a1;
if ( !v1 || *(_BYTE *)(v2 + 890) )
{
v5 = off_ABAEBC(0x14u, 1u);
*(_DWORD *)(v2 + 332) = v5;
if ( v5 )
{
++*(_DWORD *)(v2 + 34676);
return 0;
}
else
{
return 27;
}
}
else
{
if ( *(char ***)(a1 + 664) == &off_A2D37C )
v3 = &off_AAF824;
else
v3 = &off_AAF868;
*(_DWORD *)(a1 + 664) = v3;
return ((int (__fastcall *)(int))v3[1])(a1);
}
}