//
// sub_48B38 from 0x48b38 to 0x48b7e (70 bytes)
//
// 0 xrefs:
//
// 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:39 +0000
//
int __fastcall sub_48B38(_DWORD *a1, int *a2, int a3, int a4)
{
int result; // r0
int v7; // r2
int v8; // r3
int v9; // [sp+4h] [bp-Ch] BYREF
v9 = a4;
result = (*(int (__fastcall **)(_DWORD *, int *))(*a1 + 76))(a1, &v9);
if ( !result )
{
if ( (v9 & 0x10) != 0 )
{
if ( a2 )
{
result = sub_488B0(a2);
if ( !result )
{
v7 = a2[1];
v8 = a2[2];
a1[32] = *a2;
a1[33] = v7;
a1[34] = v8;
a1[10] |= 4u;
return 0;
}
}
else
{
return 31;
}
}
else
{
return 40;
}
}
return result;
}