//
// sub_909214 from 0x909214 to 0x909284 (112 bytes)
//
// 0 xrefs:
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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 12:04:20 +0000
//
int __fastcall sub_909214(_DWORD *a1, int *a2)
{
int v3; // r9
char *v4; // r4
int v5; // r2
size_t v6; // r7
int v7; // r6
char *v8; // r3
int v9; // r5
char *v10; // r0
v3 = *a2;
v4 = (char *)a1[26];
v5 = *(_DWORD *)(*a2 + 28);
v6 = a1[3];
v7 = a1[4];
v8 = (char *)(v5 + *(_DWORD *)(*a2 + 44) * a1[2]);
if ( v4 )
{
if ( v7 > 0 )
{
v9 = 0;
do
{
++v9;
v10 = (char *)memcpy(v8, v4, v6);
v4 += *a1;
v8 = &v10[*(_DWORD *)(v3 + 44)];
}
while ( v9 != v7 );
}
}
else if ( v5 && v7 > 0 )
{
do
{
++v4;
v8 = (char *)memset(v8, 255, v6) + *(_DWORD *)(v3 + 44);
}
while ( v4 != (char *)v7 );
}
return 0;
}