//
// GJAccountManager::getShaPassword from 0x1004483a4 to 0x1004484bc (280 bytes)
//
// 2 xrefs:
// > sub_10008CF80 @ 0x10008d144
// > GJAccountManager::dataLoaded @ 0x100448338
//
// 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:05:15 +0000
//
void __usercall GJAccountManager::getShaPassword(__int64 a1@, _QWORD *a2@)
{
void *v3; // x0
const std::string::value_type *CString; // x0
std::string *p_dst; // x20
int v6; // w0
std::string __dst; // [xsp+30h] [xbp-70h] BYREF
char __s[41]; // [xsp+4Bh] [xbp-55h] BYREF
_BYTE v9[20]; // [xsp+74h] [xbp-2Ch] BYREF
if ( *(char *)(a1 + 23) < 0 )
sub_1000097D0(&__dst, *(void **)a1, *(_QWORD *)(a1 + 8));
else
__dst = *(std::string *)a1;
v3 = sub_1003065B0("%c%s%s%c%c%s", 109, "I29", "fmAn", 120, 103, "Ts");
CString = (const std::string::value_type *)cocos2d::CCString::getCString((__int64)v3);
p_dst = &__dst;
std::string::append(&__dst, CString);
if ( (__dst.__r_.__value_.__r.__words[2] & 0x8000000000000000LL) != 0LL )
p_dst = (std::string *)__dst.__r_.__value_.__r.__words[0];
v6 = strlen((const char *)p_dst);
sub_10011BEE8((__int64)p_dst, v6, (__int64)v9);
sub_10011C380((__int64)v9, (__int64)__s);
sub_100009900(a2, __s);
if ( SHIBYTE(__dst.__r_.__value_.__r.__words[2]) < 0 )
operator delete(__dst.__r_.__value_.__l.__data_);
}