//
// sub_1005CEC18 from 0x1005cec18 to 0x1005cec84 (108 bytes)
//
// 1 xrefs:
// > sub_1005D00BC @ 0x1005d00c0
//
// 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_1005CEC18(__int64 a1)
{
int v1; // w0
int v2; // w8
int v3; // w0
char v5; // [xsp+4h] [xbp-1Ch] BYREF
_DWORD v6[2]; // [xsp+8h] [xbp-18h] BYREF
char *v7; // [xsp+10h] [xbp-10h]
v1 = sub_1005AAC20(*(_QWORD *)(a1 + 32));
v2 = v1 + 7;
if ( v1 + 7 < 0 )
v2 = v1 + 14;
v6[0] = v2 >> 3;
v7 = &v5;
v6[1] = 2;
v5 = -1;
v3 = sub_1005F8E9C(v6, 0);
return sub_1005FB650(1, (unsigned int)(2 * v3), 16);
}