//
// sub_100636834 from 0x100636834 to 0x1006368bc (136 bytes)
//
// 1 xrefs:
// > ??> @ 0x1009e08f0
//
// 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:10:30 +0000
//
__int64 __fastcall sub_100636834(__int64 *a1, __int64 a2, void *__dst, int a4, __int64 a5, _DWORD *a6)
{
__int64 v6; // x9
int v7; // w8
__int64 v9; // x10
const void *v10; // x1
const void *v11; // x11
if ( a2 )
{
v6 = *a1;
*a6 = *(_DWORD *)(*a1 + 564);
v7 = *(_DWORD *)(v6 + 564) * a4;
if ( v7 > *(_DWORD *)(v6 + 568) )
return 28;
v9 = *(_QWORD *)(v6 + 8);
v10 = *(const void **)(v6 + 544);
if ( v9 != *(_QWORD *)(v6 + 576) )
{
v11 = *(const void **)(v6 + 552);
*(_QWORD *)(v6 + 544) = v11;
*(_QWORD *)(v6 + 552) = v10;
*(_WORD *)(v6 + 584) = *(unsigned __int8 *)(v6 + 585);
*(_QWORD *)(v6 + 576) = v9;
v10 = v11;
}
memcpy(__dst, v10, 4LL * v7);
}
return 0;
}