//
// sub_1005EDC10 from 0x1005edc10 to 0x1005edcbc (172 bytes)
//
// 2 xrefs:
// > sub_1006285F0 @ 0x100628678
// > sub_100628EB4 @ 0x100628ee0
//
// 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_1005EDC10(__int64 a1, void **a2)
{
__int64 v4; // x21
void *__dst; // [xsp+8h] [xbp-28h] BYREF
if ( !a1 )
return 0;
if ( !*(_QWORD *)(a1 + 24) )
return 0;
v4 = sub_1005FB650(0, *(unsigned int *)(a1 + 20), 6);
if ( a2 )
{
__dst = *a2;
sub_1005FB508(&__dst, 0, *(unsigned int *)(a1 + 20), 6, 0);
memcpy(__dst, *(const void **)(a1 + 24), *(int *)(a1 + 20));
__dst = (char *)__dst + *(int *)(a1 + 20);
*a2 = __dst;
}
return v4;
}