//
// sub_74486C from 0x74486c to 0x7448b0 (68 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_74486C(int a1, char a2)
{
_BYTE *v4; // r5
int result; // r0
if ( *(_BYTE *)(a1 + 117) )
{
result = *(unsigned __int8 *)(a1 + 116);
*(_BYTE *)(a1 + 116) = a2;
}
else
{
v4 = *(_BYTE **)(a1 + 124);
if ( !v4 )
sub_772FE4();
if ( v4[28] )
{
result = (unsigned __int8)v4[61];
}
else
{
sub_77ABA8(*(_DWORD *)(a1 + 124));
result = (*(int (__fastcall **)(_BYTE *, int))(*(_DWORD *)v4 + 24))(v4, 32);
}
*(_BYTE *)(a1 + 116) = a2;
*(_BYTE *)(a1 + 117) = 1;
}
return result;
}