//
// sub_F7DF80 from 0xf7df80 to 0xf7dfcc (76 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 13:13:48 +0000
//
wchar_t *__fastcall sub_F7DF80(__int64 a1, unsigned __int8 *a2, unsigned __int64 a3)
{
unsigned __int64 v3; // x9
unsigned __int64 v4; // x8
bool v5; // cf
size_t v6; // x8
bool v7; // zf
unsigned __int8 *v8; // x9
*(_QWORD *)(a1 + 8) = 0;
*(_QWORD *)(a1 + 16) = 0;
*(_QWORD *)a1 = 0;
v3 = *a2;
v4 = *((_QWORD *)a2 + 1);
if ( (v3 & 1) == 0 )
v4 = v3 >> 1;
v5 = v4 >= a3;
v6 = v4 - a3;
if ( !v5 )
std::__basic_string_common::__throw_out_of_range();
v7 = (v3 & 1) == 0;
v8 = a2 + 4;
if ( !v7 )
v8 = *((unsigned __int8 **)a2 + 2);
return std::wstring::__init((wchar_t *)a1, (wchar_t *)&v8[4 * a3], v6);
}