//
// sub_49240 from 0x49240 to 0x49272 (50 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_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;
}