//
// sub_A42F8 from 0xa42f8 to 0xa4376 (126 bytes)
//
// 1 xrefs:
// > sub_A4A60 @ 0xa4a6a
//
// 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
//
int __fastcall sub_A42F8(int a1, int a2, int a3, int a4, int a5)
{
float *v5; // r8
int i; // r12
int v7; // r6
unsigned int v8; // r5
float *v9; // r4
float *v10; // r0
if ( *(_DWORD *)(a1 + 1836) )
{
sub_AC638(a1 + 376, a2, a3, a5, a4, COERCE_INT((float)*(int *)(a1 + 1832)), *(float *)(a1 + 1892));
}
else
{
v5 = (float *)(a1 + 1892);
for ( i = 0; i < a5; ++i )
{
v7 = 0;
v8 = i;
while ( v8 < a5 * a4 )
{
v9 = (float *)(a2 + v7);
v10 = (float *)(a3 + v7);
v7 += 4 * a5;
v8 += a5;
*v10 = *v5 * *v9;
}
a3 += 4;
a2 += 4;
}
}
return 0;
}