//
// sub_883838 from 0x883838 to 0x883894 (92 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:03:12 +0000
//
void *__fastcall sub_883838(int a1, int a2, int a3, int a4)
{
void *result; // r0
int v8; // r6
int v9; // r3
int v10; // r7
int v11; // r8
signed int v12; // r6
int v13; // r5
int i; // r4
int v15; // t1
result = (void *)jcopy_sample_rows(a3, 0, a4, 0, *(_DWORD *)(a1 + 276), *(_DWORD *)(a1 + 28));
v8 = *(_DWORD *)(a2 + 36);
v9 = *(_DWORD *)(a2 + 28);
v10 = *(_DWORD *)(a1 + 28);
v11 = *(_DWORD *)(a1 + 276);
v12 = v9 * v8 - v10;
if ( v12 > 0 && v11 > 0 )
{
v13 = a4 - 4;
for ( i = 0; i != v11; ++i )
{
v15 = *(_DWORD *)(v13 + 4);
v13 += 4;
result = memset((void *)(v15 + v10), *(unsigned __int8 *)(v15 + v10 - 1), v12);
}
}
return result;
}