//
// sub_B575C from 0xb575c to 0xb5764 (8 bytes)
//
// 1 xrefs:
// > ??> @ 0x119710
//
// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!
//
// 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 12:14:38 +0000
//
__int64 __fastcall sub_B575C(__int64 *a1, int a2, _QWORD *a3, int *a4, _BYTE *a5)
{
int v5; // w8
void *v6; // x8
__int64 result; // x0
__int64 v8; // x0
v8 = *a1;
if ( a2 == 2 )
{
if ( *(_BYTE *)(v8 + 3561) )
v6 = &unk_139C00;
else
v6 = (void *)(v8 + 544);
*a3 = v6;
v5 = 292;
}
else
{
if ( a2 != 1 )
return 31;
*a3 = v8 + 3564;
v5 = 128;
}
result = 0;
*a4 = v5;
if ( a5 )
*a5 = 0;
return result;
}