//
// sub_C68D28 from 0xc68d28 to 0xc68e18 (240 bytes)
//
// 1 xrefs:
// > sub_C68714 @ 0xc68c30
//
// 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_C68D28(int *a1, _DWORD *a2)
{
__int64 v2; // x19
_DWORD *v3; // x21
int v4; // w25
__int64 v5; // x23
int v6; // w24
__int64 v7; // x28
__int64 v8; // x26
int v9; // w27
unsigned int v10; // w20
int v11; // w22
int v12; // w0
int v15; // [xsp+6Ch] [xbp+6Ch]
v2 = *((_QWORD *)a1 + 19);
if ( v2 )
{
v3 = a2 + 90;
v4 = a1[4];
v5 = *(_QWORD *)a2 + 16LL;
v6 = a2[8];
v7 = *(_QWORD *)v5;
v8 = *(_QWORD *)(*(_QWORD *)a2 + 40LL);
v15 = *(_DWORD *)(*(_QWORD *)a2 + 48LL);
v9 = *(_DWORD *)(*(_QWORD *)a2 + 60LL);
v10 = *a1;
if ( v4 > 0 )
{
v11 = 0;
do
{
v12 = sub_CBADE0(v3, (unsigned int)v4, v2, v10);
v4 -= v12;
v2 += (int)(v10 * v12);
v11 += sub_CBAEE8(v3);
}
while ( v4 > 0 );
if ( v11 > 0 )
sub_C73200(
v7 + v6 * v15,
*(unsigned int *)(v5 + 32),
v8 + v6 * v9,
*(unsigned int *)(v5 + 44),
(unsigned int)a2[103],
(unsigned int)v11,
1);
}
}
return 0;
}