//
// sub_638438 from 0x638438 to 0x638470 (56 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_638438(int a1, int a2)
{
int v2; // r5
void *v4; // r0
void (*v5)(void *); // r3
v2 = *(_DWORD *)(*(_DWORD *)a1 + 332);
if ( !v2 )
return 0;
if ( a2 )
sub_62E0A4(a1, 1);
off_ABAEB0(*(void **)(v2 + 4));
v4 = *(void **)(v2 + 8);
v5 = off_ABAEB0;
*(_DWORD *)(v2 + 4) = 0;
v5(v4);
*(_DWORD *)(v2 + 8) = 0;
*(_DWORD *)v2 = 0;
return a2;
}