//
// sub_C5E68 from 0xc5e68 to 0xc5eda (114 bytes)
//
// 1 xrefs:
// > sub_C6A10 @ 0xc6a30
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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 11:41:52 +0000
//
void __fastcall sub_C5E68(void *a1, int a2)
{
unsigned int v4; // r1
void *v5; // r0
size_t v6; // r1
v4 = *(_DWORD *)(a2 + 80) & 0x3F;
*(_BYTE *)(a2 + v4) = 0x80;
v5 = (void *)(a2 + v4 + 1);
if ( v4 < 0x38 )
{
v6 = 55 - v4;
}
else
{
memset(v5, 0, v4 ^ 0x3F);
sub_C5EDC(a2 + 64, a2);
v6 = 56;
v5 = (void *)a2;
}
memset(v5, 0, v6);
*(_QWORD *)(a2 + 56) = 8LL * *(_QWORD *)(a2 + 80);
sub_C5EDC(a2 + 64, a2);
qmemcpy(a1, (const void *)(a2 + 64), 0x10u);
memset((void *)a2, 0, 0x60u);
}