//
// sub_1001D7034 from 0x1001d7034 to 0x1001d70d4 (160 bytes)
//
// 2 xrefs:
// > sub_1001D6E84 @ 0x1001d6f20
// > sub_1001D6E84 @ 0x1001d6f40
//
// 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 11:00:25 +0000
//
void __usercall sub_1001D7034(__int64 a1@, _QWORD *a2@)
{
std::string::size_type v4; // x0
std::string __p; // [xsp+0h] [xbp-30h] BYREF
std::allocator __a; // [xsp+1Fh] [xbp-11h] BYREF
v4 = std::string::rfind((const std::string *)a1, 47, 0xFFFFFFFFFFFFFFFFLL);
if ( v4 == -1 )
{
if ( *(char *)(a1 + 23) < 0 )
sub_1000097D0(&__p, *(void **)a1, *(_QWORD *)(a1 + 8));
else
__p = *(std::string *)a1;
}
else
{
std::string::basic_string(&__p, (const std::string *)a1, v4 + 1, 0xFFFFFFFFFFFFFFFFLL, &__a);
}
LevelTools::base64DecodeString(a2, &__p);
if ( SHIBYTE(__p.__r_.__value_.__r.__words[2]) < 0 )
operator delete(__p.__r_.__value_.__l.__data_);
}