//
// sub_EDE7A8 from 0xede7a8 to 0xede8d4 (300 bytes)
//
// 1 xrefs:
// > sub_EDE8D4 @ 0xeded8c
//
// 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 13:11:47 +0000
//
__int64 __fastcall sub_EDE7A8(unsigned int *a1, int **a2)
{
__int64 v2; // x6
int *v3; // x4
unsigned int v4; // w23
int v5; // w20
unsigned int v6; // w19
unsigned int v7; // w3
_BOOL4 v8; // w21
__int64 v9; // x1
unsigned int v10; // w22
unsigned int v11; // w2
unsigned int v12; // w5
unsigned int v13; // w19
__int64 v14; // x5
__int64 v15; // x19
__int64 v16; // x4
__int64 v17; // x19
v2 = *((_QWORD *)a1 + 19);
if ( v2 )
{
v3 = *a2;
v4 = a1[3];
v5 = **a2;
v6 = a1[2];
v7 = a1[4];
v8 = v5 == 9 || v5 == 4;
if ( a1[22] )
{
v9 = *a1;
if ( v6 )
{
v11 = v6 - 1;
v10 = a1[4];
v2 -= (int)v9;
}
else
{
v10 = v7 - 1;
v11 = 0;
}
v12 = a1[32];
v13 = v7 + v6 + v12;
if ( v13 == a1[33] )
v10 = v13 - v12 - v11;
}
else
{
v9 = *a1;
v10 = a1[4];
v11 = a1[2];
}
v14 = (unsigned int)v3[6];
v15 = *((_QWORD *)v3 + 2);
v16 = 3;
if ( v8 )
v16 = 0;
v17 = v15 + (int)(v14 * v11);
if ( (unsigned int)off_1569000(v2, v9, v4, v10, v17 + v16, v14) && (unsigned int)(v5 - 7) <= 3 )
off_1569008(v17, v8, v4, v10);
}
return 0;
}