//
// sub_6737B8 from 0x6737b8 to 0x673814 (92 bytes)
//
// 0 xrefs:
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
void *__fastcall sub_6737B8(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;
}