//
// sub_9DBA4 from 0x9dba4 to 0x9dc2a (134 bytes)
//
// 1 xrefs:
// > sub_9BBF0 @ 0x9bbf6
//
// 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_9DBA4(int a1, int a2, float *a3, int a4)
{
float *v4; // r0
int v5; // r4
v4 = (float *)(a1 + 49528);
switch ( a2 )
{
case 0:
if ( a3 )
*a3 = *v4;
if ( a4 )
sub_BE420(a4, 32, "%.02f", *v4);
break;
case 1:
if ( a3 )
*a3 = (float)*((int *)v4 + 1);
if ( a4 )
{
v5 = *((_DWORD *)v4 + 1);
goto LABEL_18;
}
break;
case 2:
if ( a3 )
*a3 = (float)*((int *)v4 + 2);
if ( a4 )
{
v5 = *((_DWORD *)v4 + 2);
goto LABEL_18;
}
break;
case 3:
if ( a3 )
*a3 = (float)*((int *)v4 + 3);
if ( a4 )
{
v5 = *((_DWORD *)v4 + 3);
LABEL_18:
sub_BE420(a4, 32, "%d", v5);
}
break;
default:
return 0;
}
return 0;
}