//
// sub_F6D268 from 0xf6d268 to 0xf6d408 (416 bytes)
//
// 1 xrefs:
// > std::__ndk1::locale::__install_ctor @ 0xf6dbdc
//
// 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:37 +0000
//
__int64 __fastcall sub_F6D268(_QWORD *a1, __int64 a2, std::__shared_count *a3)
{
_QWORD *v6; // x20
__int64 v7; // x8
unsigned __int64 v8; // x1
__int64 v9; // x8
__int64 v10; // x9
unsigned __int64 v11; // x10
unsigned int v12; // w25
std::__shared_count *v13; // x0
__int64 result; // x0
*a1 = off_1534130;
a1[1] = -1;
v6 = a1 + 2;
v7 = (__int64)(*(_QWORD *)(a2 + 24) - *(_QWORD *)(a2 + 16)) >> 3;
if ( (unsigned __int64)(v7 + 1) > 0x1C )
v8 = v7 + 1;
else
v8 = 28;
sub_F6A0C8((__int64)(a1 + 2), v8);
a1[37] = 0;
a1[38] = 0;
a1[36] = 0;
std::string::__init(a1 + 36, "*", 1u);
std::__shared_count::__add_shared(a3);
if ( a1 != (_QWORD *)a2 )
sub_F7878C((int)v6, *(void **)(a2 + 16));
v9 = *(_QWORD *)(a2 + 16);
v10 = *(_QWORD *)(a2 + 24);
if ( v10 != v9 )
{
v11 = 0;
v12 = 1;
do
{
v13 = *(std::__shared_count **)(*v6 + 8 * v11);
if ( v13 )
{
std::__shared_count::__add_shared(v13);
v9 = *(_QWORD *)(a2 + 16);
v10 = *(_QWORD *)(a2 + 24);
}
v11 = v12++;
}
while ( v11 < (v10 - v9) >> 3 );
}
result = sub_F6D408((int)a1, a3);
if ( a3 )
return std::__shared_count::__release_shared(a3);
return result;
}