//
// sub_54934 from 0x54934 to 0x549ae (122 bytes)
//
// 1 xrefs:
// > sub_469A4 @ 0x469c2
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 11:40:45 +0000
//
int __fastcall sub_54934(int a1, _DWORD *a2, int a3)
{
int v4; // r1
int v5; // r1
int result; // r0
v4 = *(_DWORD *)(a1 + 188);
__dmb(0xBu);
if ( v4 )
{
v5 = *(_DWORD *)(a1 + 188);
__dmb(0xBu);
if ( v5 != 7 )
return 46;
}
if ( !a2 )
return 31;
switch ( a3 )
{
case 1:
*a2 = (unsigned int)(float)((float)((float)*(unsigned int *)(a1 + 252) * 0.001) * *(float *)(a1 + 80));
break;
case 4:
sub_54322(a1, *(_DWORD *)(a1 + 252), a2);
break;
case 2:
*a2 = *(_DWORD *)(a1 + 252);
break;
default:
result = sub_B0AC0(*(_DWORD *)(a1 + 72), a2, a3);
if ( result )
return result;
break;
}
return 0;
}