//
// sub_10009E640 from 0x10009e640 to 0x10009e66c (44 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:20:12 +0000
//
std::string *__fastcall sub_10009E640(__int64 a1, const std::string *a2)
{
unsigned int v2; // eax
std::string *result; // rax
v2 = (unsigned int)a2->__r_.__value_.__l.0;
if ( (v2 & 1) == 0 )
{
result = (std::string *)(v2 >> 1);
if ( (unsigned __int64)result < 0x10 )
return result;
return std::string::operator=((std::string *)(a1 + 472), a2);
}
result = (std::string *)a2->__r_.__value_.__l.__size_;
if ( (unsigned __int64)result >= 0x10 )
return std::string::operator=((std::string *)(a1 + 472), a2);
return result;
}