//
// sub_49240 from 0x49240 to 0x49272 (50 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_49240(int a1, _DWORD *a2, int a3, int a4)
{
int result; // r0
int v6; // [sp+4h] [bp-Ch] BYREF
v6 = a4;
result = (*(int (__fastcall **)(int, int, int *))(*(_DWORD *)a1 + 144))(a1, -2, &v6);
if ( !result )
{
result = sub_A7654(v6, 0, a2, 0);
if ( !result )
{
if ( !*a2 )
*a2 = 1;
return 0;
}
}
return result;
}