//
// sub_100754134 from 0x100754134 to 0x100754218 (228 bytes)
//
// 2 xrefs:
// > sub_100753268 @ 0x1007532c4
// > sub_100753580 @ 0x1007535dc
//
// 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:31 +0000
//
__int64 __fastcall sub_100754134(__int64 *a1, int a2, char *a3, size_t *a4)
{
size_t v7; // x1
__int64 v8; // x23
int v9; // w0
int v10; // w8
int v11; // w24
__int64 v12; // x23
int v13; // w0
int v14; // w8
int v15; // w24
v7 = 2 * a2;
*a4 = v7;
bzero(a3, v7);
v8 = a1[1];
v9 = sub_1006D0D88(v8);
v10 = v9 + 7;
if ( v9 + 7 < 0 )
v10 = v9 + 14;
v11 = v10 >> 3;
if ( v10 >> 3 <= a2 )
{
bzero(a3, a2);
sub_1006D14BC(v8, &a3[a2 - (__int64)v11]);
}
v12 = *a1;
v13 = sub_1006D0D88(*a1);
v14 = v13 + 7;
if ( v13 + 7 < 0 )
v14 = v13 + 14;
v15 = v14 >> 3;
if ( v14 >> 3 <= a2 )
{
bzero(&a3[a2], a2);
sub_1006D14BC(v12, &a3[2LL * a2 - v15]);
}
sub_1006F51EC(a1);
return 1;
}