//
// sub_682B8 from 0x682b8 to 0x68300 (72 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_682B8(int *a1, int a2, int *a3, int a4)
{
int v4; // r0
int v5; // r0
int v6; // r4
v4 = *a1;
if ( a2 == 2 )
{
v6 = *(_DWORD *)(v4 + 512);
*a3 = v6;
if ( a4 )
sub_BE420(a4, 32, "%d", v6);
return 0;
}
if ( a2 == 3 )
{
v5 = *(_DWORD *)(v4 + 524);
*a3 = v5;
if ( a4 )
sub_BE220(a4, off_E8AC4[v5 + 3], 32);
return 0;
}
return 31;
}