//
// sub_100664580 from 0x100664580 to 0x10066460b (139 bytes)
//
// 0 xrefs:
//
// This function is hookable on this platform (idp: pc, 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 12:34:57 +0000
//
void __fastcall sub_100664580(std::string *a1, std::string *a2)
{
std::string::__long::$5C0822F47C3855276CFDD0C01D0AA610 v2; // r12
std::string::size_type i; // r13
std::string::operator=(a1 + 23, a2);
v2 = (std::string::__long::$5C0822F47C3855276CFDD0C01D0AA610)a1[25].__r_.__value_.__r.__words[0];
for ( i = a1[25].__r_.__value_.__l.__size_; i != v2; i -= 56LL )
{
if ( (*(_BYTE *)(i - 24) & 1) != 0 )
operator delete(*(void **)(i - 8));
if ( (*(_BYTE *)(i - 48) & 1) != 0 )
operator delete(*(void **)(i - 32));
}
a1[25].__r_.__value_.__r.__words[1] = (std::string::size_type)v2;
sub_10065DF30((unsigned __int8 *)a2, (__int64)&a1[25]);
}