//
// sub_BBB04 from 0xbbb04 to 0xbbb26 (34 bytes)
//
// 5 xrefs:
// > sub_7AB38 @ 0x7ae40
// > sub_7AB38 @ 0x7aea0
// > sub_7AB38 @ 0x7aebc
// > sub_838A4 @ 0x83ec4
// > sub_87B50 @ 0x87d14
//
// 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_BBB04(int a1, _DWORD *a2, int a3, unsigned int a4)
{
int result; // r0
unsigned __int16 v6; // [sp+Ah] [bp-Eh] BYREF
unsigned int v7; // [sp+Ch] [bp-Ch] BYREF
v6 = HIWORD(a3);
v7 = a4;
result = sub_BB750(a1, (unsigned int *)&v6, 2u, 1, &v7);
if ( a2 )
*a2 = v6;
return result;
}