//
// sub_EDE090 from 0xede090 to 0xede180 (240 bytes)
//
// 1 xrefs:
// > sub_EDE8D4 @ 0xedeb60
//
// 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_EDE090(int *a1, __int64 a2)
{
int v3; // w3
__int64 v4; // x21
char *v5; // x19
__int64 v6; // x0
char *v7; // x3
int v8; // w23
int v9; // w24
int v10; // w20
char *v11; // x0
int i; // w19
v3 = a1[2];
v4 = *(_QWORD *)a2 + 16LL;
v5 = *((char **)a1 + 19);
v6 = *(_QWORD *)(*(_QWORD *)a2 + 40LL);
v7 = (char *)(v6 + v3 * *(_DWORD *)(*(_QWORD *)a2 + 60LL));
v8 = a1[3];
v9 = a1[4];
if ( v5 )
{
v10 = 0;
if ( v9 > 0 )
{
do
{
++v10;
v11 = (char *)memcpy(v7, v5, v8);
v5 += *a1;
v7 = &v11[*(int *)(v4 + 44)];
}
while ( v10 != v9 );
}
return 0;
}
if ( !v6 || v9 <= 0 )
return 0;
for ( i = 0; i != v9; ++i )
v7 = (char *)memset(v7, 255, v8) + *(int *)(v4 + 44);
return 0;
}