//
// sub_1007529BC from 0x1007529bc to 0x100752aec (304 bytes)
//
// 2 xrefs:
// > sub_100752AEC @ 0x100752b28
// > sub_100752B9C @ 0x100752bd0
//
// 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_1007529BC(__int64 a1, _OWORD *a2, __int64 a3, __int64 a4)
{
__int64 v7; // x23
__int64 v8; // x10
unsigned int v9; // w8
unsigned int v10; // w9
int v11; // w11
int v12; // w12
int v13; // w13
int v14; // w13
__int64 result; // x0
unsigned __int64 v16; // [xsp+0h] [xbp-40h] BYREF
v7 = 0;
*(_OWORD *)(a4 + 16) = a2[1];
*(_OWORD *)a4 = *a2;
do
{
v8 = 0;
v9 = 0;
v10 = 0;
v11 = *(unsigned __int8 *)(a3 + v7);
v12 = 1;
do
{
if ( (v11 & v12) != 0 )
v13 = *(unsigned __int8 *)(a4 + v8)
| (unsigned __int16)(*(unsigned __int8 *)(a4 + v8 + 1) << 8)
| (*(unsigned __int8 *)(a4 + v8 + 2) << 16) & 0xFFFFFF
| (*(unsigned __int8 *)(a4 + v8 + 3) << 24);
else
v13 = 0;
v10 += v13;
if ( (v11 & v12) != 0 )
v14 = 0;
else
v14 = *(unsigned __int8 *)(a4 + v8)
| (unsigned __int16)(*(unsigned __int8 *)(a4 + v8 + 1) << 8)
| (*(unsigned __int8 *)(a4 + v8 + 2) << 16) & 0xFFFFFF
| (*(unsigned __int8 *)(a4 + v8 + 3) << 24);
v9 += v14;
v12 *= 2;
v8 += 4;
}
while ( v8 != 32 );
v16 = __PAIR64__(v9, v10);
sub_10074D058(a1, a4);
result = sub_10074CEE4(a1, (__int64 *)&v16, (_BYTE *)a4, (_BYTE *)a4, 4);
++v7;
}
while ( v7 != 8 );
return result;
}