//
// sub_1009076A0 from 0x1009076a0 to 0x10090771b (123 bytes)
//
// 3 xrefs:
// > InfoLayer::init @ 0x100891f21
// > sub_1008F6B00 @ 0x1008f6b20
// > sub_1008FB260 @ 0x1008fb639
//
// 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:38:05 +0000
//
std::string *__fastcall sub_1009076A0(std::string *a1, __int64 a2)
{
char v2; // al
unsigned __int64 v3; // rdx
std::string v5; // [rsp+0h] [rbp-20h] BYREF
v2 = *(_BYTE *)(a2 + 400);
if ( (v2 & 1) == 0 )
{
if ( v2 )
{
v5 = *(std::string *)(a2 + 400);
goto LABEL_6;
}
LABEL_8:
*(_WORD *)&a1->__r_.__value_.__l.0 = 0;
return a1;
}
v3 = *(_QWORD *)(a2 + 408);
if ( !v3 )
goto LABEL_8;
sub_10001AD30(&v5, *(const void **)(a2 + 416), v3);
LABEL_6:
LevelTools::base64DecodeString(a1, &v5);
if ( (*(_BYTE *)&v5.__r_.__value_.__s.0 & 1) != 0 )
operator delete(v5.__r_.__value_.__l.__data_);
return a1;
}