//
// sub_1008A3350 from 0x1008a3350 to 0x1008a33cb (123 bytes)
//
// 1 xrefs:
// > ProfilePage::loadPageFromUserInfo @ 0x1008a08ec
//
// 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:37:15 +0000
//
void __fastcall sub_1008A3350(__int64 a1, __int64 a2)
{
char v2; // al
__int64 v3; // rax
std::string::pointer data; // rsi
std::string v5; // [rsp+0h] [rbp-20h] BYREF
(*(void (__fastcall **)(__int64))(*(_QWORD *)a2 + 64LL))(a2);
sub_1008A62A0(&v5);
v2 = *(_BYTE *)&v5.__r_.__value_.__s.0 & 1;
if ( (*(_BYTE *)&v5.__r_.__value_.__s.0 & 1) != 0 )
{
if ( !v5.__r_.__value_.__l.__size_ )
goto LABEL_9;
}
else if ( !(*(_BYTE *)&v5.__r_.__value_.__l.0 >> 1) )
{
goto LABEL_9;
}
v3 = cocos2d::CCApplication::sharedApplication();
if ( (*(_BYTE *)&v5.__r_.__value_.__s.0 & 1) != 0 )
data = v5.__r_.__value_.__l.__data_;
else
data = v5.__r_.__value_.__s.__data_;
(*(void (__fastcall **)(__int64, std::string::pointer))(*(_QWORD *)v3 + 104LL))(v3, data);
v2 = *(_BYTE *)&v5.__r_.__value_.__s.0 & 1;
LABEL_9:
if ( v2 )
operator delete(v5.__r_.__value_.__l.__data_);
}