//
// StarInfoPopup::createFromString from 0xa58b5c to 0xa58d88 (556 bytes)
//
// 2 xrefs:
// > ProfilePage::onStatInfo @ 0xa592c0
// > ??> @ 0x68e00
//
// 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 13:00:09 +0000
//
__int64 __fastcall StarInfoPopup::createFromString(unsigned __int8 *a1)
{
const char *v1; // x19
const char *v2; // x0
unsigned int v3; // w21
const char *v4; // x0
unsigned int v5; // w22
const char *v6; // x0
unsigned int v7; // w23
const char *v8; // x0
unsigned int v9; // w24
const char *v10; // x0
unsigned int v11; // w25
const char *v12; // x0
unsigned int v13; // w26
const char *v14; // x0
int v15; // w6
const char *v16; // x0
int v17; // w0
__int64 v18; // x0
char *v19; // x19
__int64 v20; // x21
char *v21; // x0
GameToolbox *v23; // [xsp+0h] [xbp-10h]
bool v24; // [xsp+10h] [xbp+0h]
int v25; // [xsp+68h] [xbp+58h]
void *v26; // [xsp+70h] [xbp+60h] BYREF
char *v27; // [xsp+78h] [xbp+68h]
__int64 v28; // [xsp+80h] [xbp+70h]
v26 = nullptr;
v27 = nullptr;
v28 = 0;
sub_A586BC(a1, (__int64 *)&v26);
v1 = (const char *)v26;
if ( 0xAAAAAAAAAAAAAAABLL * ((v27 - (_BYTE *)v26) >> 3) <= 7 )
{
LODWORD(v23) = 0;
v18 = StarInfoPopup::create(nullptr, 0, 0, 0, 0, 0, 0, 0, v23, 0, v24);
}
else
{
v2 = (char *)&dword_0 + (_QWORD)v26 + 1;
if ( (*(_BYTE *)v26 & 1) != 0 )
v2 = *(const char **)((char *)&word_10 + (_QWORD)v26);
v3 = atoi(v2);
v4 = v1 + 25;
if ( (*((_BYTE *)&off_18 + (_QWORD)v1) & 1) != 0 )
v4 = *(const char **)((char *)&qword_28 + (_QWORD)v1);
v5 = atoi(v4);
v6 = v1 + 49;
if ( (*((_BYTE *)&dword_30 + (_QWORD)v1) & 1) != 0 )
v6 = *(const char **)((char *)&dword_40 + (_QWORD)v1);
v7 = atoi(v6);
v8 = v1 + 73;
if ( (*((_BYTE *)&qword_48 + (_QWORD)v1) & 1) != 0 )
v8 = *(const char **)((char *)&qword_58 + (_QWORD)v1);
v9 = atoi(v8);
v10 = v1 + 97;
if ( (*((_BYTE *)&qword_60 + (_QWORD)v1) & 1) != 0 )
v10 = *(const char **)((char *)&qword_70 + (_QWORD)v1);
v11 = atoi(v10);
v12 = v1 + 121;
if ( (*((_BYTE *)&dword_78 + (_QWORD)v1) & 1) != 0 )
v12 = *(const char **)((char *)off_88 + (_QWORD)v1);
v13 = atoi(v12);
v14 = v1 + 145;
if ( (*((_BYTE *)&qword_90 + (_QWORD)v1) & 1) != 0 )
v14 = *(const char **)((char *)&qword_A0 + (_QWORD)v1);
v15 = atoi(v14);
v16 = v1 + 169;
if ( (*((_BYTE *)&qword_A8 + (_QWORD)v1) & 1) != 0 )
v16 = *(const char **)((char *)&qword_B8 + (_QWORD)v1);
v25 = v15;
v17 = atoi(v16);
LODWORD(v23) = 0;
v18 = StarInfoPopup::create((StarInfoPopup *)v3, v5, v7, v9, v11, v13, v25, v17, v23, 0, v24);
}
v19 = (char *)v26;
v20 = v18;
if ( v26 )
{
v21 = v27;
if ( v26 != v27 )
{
do
{
v27 = v21 - 24;
std::string::~string((__int64)(v21 - 24));
v21 = v27;
}
while ( v19 != v27 );
v21 = (char *)v26;
}
operator delete(v21);
}
return v20;
}