//
// sub_1005ED6DC from 0x1005ed6dc to 0x1005ed720 (68 bytes)
//
// 0 xrefs:
//
// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!
//
// 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:09:46 +0000
//
unsigned __int16 *__fastcall sub_1005ED6DC(unsigned __int16 *result, __int64 a2, int a3)
{
unsigned __int16 *v3; // x8
__int64 v5; // x9
int v6; // w11
if ( a3 )
{
v3 = result;
while ( *v3++ )
;
v5 = 0;
while ( 1 )
{
v6 = *(unsigned __int16 *)(a2 + 2 * v5);
v3[v5 - 1] = v6;
if ( !v6 )
break;
if ( a3 == (_DWORD)++v5 )
{
v3[v5 - 1] = 0;
return result;
}
}
}
return result;
}