//
// sub_B37AC from 0xb37ac to 0xb37e4 (56 bytes)
//
// 4 xrefs:
// > sub_B3130 @ 0xb315c
// > sub_B33B8 @ 0xb3500
// > sub_B3814 @ 0xb3870
// > sub_B3EE8 @ 0xb3f3e
//
// 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
//
unsigned int __fastcall sub_B37AC(unsigned int *a1, int a2)
{
int v3; // r0
v3 = sub_BD410(a1[2] + 67072, 4 * a2 + 16, &unk_2191F, 0);
*a1 = (v3 + 15) & 0xFFFFFFF0;
a1[1] = v3;
return (v3 + 15) & 0xFFFFFFF0;
}