//
// sub_8370CC from 0x8370cc to 0x83712a (94 bytes)
//
// 5 xrefs:
// > sub_8217E0 @ 0x8217f4
// > sub_824FEC @ 0x825004
// > sub_828234 @ 0x82824e
// > sub_84A774 @ 0x84a792
// > sub_84A864 @ 0x84a888
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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:02:13 +0000
//
char *__fastcall sub_8370CC(char *a1, int *a2)
{
char *result; // r0
void *p; // [sp+0h] [bp-10h] BYREF
int v4; // [sp+4h] [bp-Ch]
char *v5; // [sp+8h] [bp-8h]
int v6; // [sp+Ch] [bp-4h]
p = nullptr;
v4 = 0;
v5 = nullptr;
v6 = 0;
if ( sub_834700((int)&p, (int (*)(void))sub_834034, a1, a2) == -1 || v6 )
{
result = v5;
if ( v5 )
{
off_D200B0(p);
return nullptr;
}
}
else if ( v5 )
{
*((_BYTE *)p + v4) = v6;
return (char *)p;
}
else
{
return off_D200B8(&byte_BF4ECA);
}
return result;
}