//
// sub_100742AEC from 0x100742aec to 0x100742b84 (152 bytes)
//
// 1 xrefs:
// > sub_100742864 @ 0x100742974
//
// 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:13:21 +0000
//
__int64 __fastcall sub_100742AEC(__int64 a1, unsigned int a2, const void *a3)
{
int v6; // w8
int v7; // w9
int v8; // w8
unsigned int v9; // w8
v6 = 8 * a2;
if ( (int)(8 * a2) <= 2147483584 )
{
v7 = v6 + 63;
v8 = v6 + 126;
if ( v7 >= 0 )
v8 = v7;
if ( v8 >> 6 > *(_DWORD *)(a1 + 12) )
sub_1006D10FC(a1, v8 >> 6);
}
v9 = a2 >> 3;
if ( (a2 & 7) != 0 )
++v9;
*(_DWORD *)(a1 + 8) = v9;
bzero(*(void **)a1, (int)(8 * v9));
memcpy(*(void **)a1, a3, a2);
return 0;
}