//
// sub_B0B94 from 0xb0b94 to 0xb0c10 (124 bytes)
//
// 1 xrefs:
// > sub_579A0 @ 0x579a4
//
// 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:37 +0000
//
__int64 __fastcall sub_B0B94(__int64 a1, __int64 a2, char a3)
{
__int16 v3; // w8
char v6; // w21
__int64 result; // x0
__int64 v8; // x1
__int64 v9; // [xsp+8h] [xbp-18h] BYREF
v3 = atomic_load((unsigned int *)(a1 + 100));
if ( (v3 & 0x100) != 0 )
{
*(_QWORD *)(a1 + 552) = a2;
return 0;
}
else
{
v6 = a3 & 1;
result = sub_77980(*(_QWORD *)(a1 + 168), &v9, 24, a3 & 1);
if ( !(_DWORD)result )
{
*(_BYTE *)v9 = 16;
v8 = v9;
*(_QWORD *)(v9 + 8) = a1;
*(_QWORD *)(v8 + 16) = a2;
return sub_77A28(*(_QWORD *)(a1 + 168), v8, v6);
}
}
return result;
}