//
// sub_C146C4 from 0xc146c4 to 0xc14718 (84 bytes)
//
// 2 xrefs:
// > jinit_merged_upsampler @ 0xc14be0
// > jinit_merged_upsampler @ 0xc14be8
//
// 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
//
__int64 __fastcall sub_C146C4(__int64 a1, __int64 a2, _DWORD *a3, __int64 a4, __int64 a5, _DWORD *a6)
{
__int64 result; // x0
(*(void (__fastcall **)(__int64, __int64, _QWORD, __int64))(*(_QWORD *)(a1 + 640) + 24LL))(
a1,
a2,
(unsigned int)*a3,
a5 + 8LL * (unsigned int)*a6);
++*a6;
result = (unsigned int)(*a3 + 1);
*a3 = result;
return result;
}