//
// sub_80BF8 from 0x80bf8 to 0x80c48 (80 bytes)
//
// 3 xrefs:
// > sub_CCDC4 @ 0xccdd8
// > sub_CCDC4 @ 0xccdd4
// > ??> @ 0x11a790
//
// 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 12:14:07 +0000
//
__int64 __fastcall sub_80BF8(__int64 result, __int64 a2, int a3, int a4)
{
int v4; // w8
__int64 i; // x9
__int64 j; // x13
__int64 v7; // x14
unsigned int v8; // w15
v4 = 0;
for ( i = 0; i != a4; ++i )
{
for ( j = 0; j < a3; ++j )
{
v7 = *(_QWORD *)(result + 8 * j);
v8 = v4 + j;
*(_DWORD *)(a2 + 4LL * v8) = *(_DWORD *)(v7 + 4 * i);
}
v4 += a3;
}
return result;
}