//
// sub_F6D4C8 from 0xf6d4c8 to 0xf6d57c (180 bytes)
//
// 2 xrefs:
// > sub_F6D57C @ 0xf6d58c
// > ??> @ 0x1534130
//
// 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
//
void __fastcall sub_F6D4C8(__int64 a1)
{
__int64 v2; // x8
__int64 v3; // x9
unsigned __int64 v4; // x10
unsigned int v5; // w20
std::__shared_count *v6; // x0
char *v7; // x0
char *v8; // x8
v2 = *(_QWORD *)(a1 + 16);
v3 = *(_QWORD *)(a1 + 24);
*(_QWORD *)a1 = off_1534130;
if ( v3 != v2 )
{
v4 = 0;
v5 = 1;
do
{
v6 = *(std::__shared_count **)(v2 + 8 * v4);
if ( v6 )
{
std::__shared_count::__release_shared(v6);
v2 = *(_QWORD *)(a1 + 16);
v3 = *(_QWORD *)(a1 + 24);
}
v4 = v5++;
}
while ( v4 < (v3 - v2) >> 3 );
}
std::string::~string(a1 + 288);
v7 = *(char **)(a1 + 16);
if ( v7 )
{
v8 = *(char **)(a1 + 24);
if ( v8 != v7 )
*(_QWORD *)(a1 + 24) = &v8[~(v8 - 8 - v7) & 0xFFFFFFFFFFFFFFF8LL];
if ( (char *)(a1 + 48) == v7 )
*(_BYTE *)(a1 + 272) = 0;
else
operator delete(v7);
}
std::__shared_weak_count::~__shared_weak_count((std::__shared_weak_count *)a1);
}