//
// sub_1006B9018 from 0x1006b9018 to 0x1006b908c (116 bytes)
//
// 1 xrefs:
// > ??> @ 0x1009bbd78
//
// 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 11:11:59 +0000
//
__int64 __fastcall sub_1006B9018(__int64 a1, void **a2)
{
const void **v3; // x20
_BYTE *v4; // x0
v3 = *(const void ***)(a1 + 32);
if ( a2 )
{
if ( *a2 )
{
memcpy(*a2, v3[1], *(int *)v3);
*a2 = (char *)*a2 + *(int *)v3;
}
else
{
v4 = sub_1006AE878(*(unsigned int *)v3, (__int64)"hm_ameth.c", 127);
*a2 = v4;
memcpy(v4, v3[1], *(int *)v3);
}
}
return *(unsigned int *)v3;
}