//
// sub_7B5E4 from 0x7b5e4 to 0x7b658 (116 bytes)
//
// 2 xrefs:
// > sub_6B00C @ 0x6b478
// > ??> @ 0x10f860
//
// 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:05 +0000
//
__int64 __fastcall sub_7B5E4(__int64 a1, __int64 a2, __int64 a3, __int64 a4)
{
__int64 v4; // x19
int v5; // w20
__int64 result; // x0
char v7; // cf
char v8; // zf
long double v9; // q0
float v10; // s2
float v11; // s8
__int64 v12; // x8
float v13; // s1
float v14; // s9
float v15; // s10
__int64 v16; // x1
__int64 v17; // x2
int *v18; // [xsp+8h] [xbp-28h]
result = 31;
if ( a4 )
{
result = sub_7B984(31);
if ( !(!v8 & v7) )
{
v9 = sub_7B994(result);
v11 = v10;
v14 = v13;
v15 = *(float *)&v9;
result = sub_7B964(*(_QWORD *)(v12 + 168), v16, v17);
if ( !(_DWORD)result )
return sub_750B0(v18, v5, v4, v15, v14, v11);
}
}
return result;
}