//
// sub_B9BF74 from 0xb9bf74 to 0xb9bfc8 (84 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
//
__int64 __fastcall sub_B9BF74(__int64 a1, int a2, __int64 a3)
{
__int64 v4; // x0
int v6; // [xsp+2Ch] [xbp+2Ch] BYREF
v6 = a2;
if ( a2 == -1 )
return 5;
v4 = sub_B99AF8((__int64 *)(a1 + 136), (__int64)&v6, 4);
if ( !v4 )
return 5;
*(_QWORD *)(v4 + 16) = a3;
return 0;
}