//
// StarInfoPopup::createFromString from 0x901408 to 0x901628 (544 bytes)
//
// 2 xrefs:
// > ProfilePage::onStatInfo @ 0x901a00
// > ??> @ 0x65040
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
StarInfoPopup *__fastcall StarInfoPopup::createFromString(_QWORD *a1)
{
void *v1; // x19
int v2; // w20
int v3; // w0
StarInfoPopup *v4; // x0
__int64 *v5; // x19
StarInfoPopup *v6; // x23
__int64 *v7; // x20
__int64 v8; // x1
__int64 *v9; // x0
unsigned int *v10; // x1
int v11; // w2
int v13; // [xsp+60h] [xbp+50h]
int v14; // [xsp+68h] [xbp+58h]
int v15; // [xsp+70h] [xbp+60h]
int v16; // [xsp+78h] [xbp+68h]
int v17; // [xsp+80h] [xbp+70h]
int v18; // [xsp+88h] [xbp+78h]
void *v19; // [xsp+A0h] [xbp+90h] BYREF
void *p; // [xsp+A8h] [xbp+98h]
__int64 v21; // [xsp+B0h] [xbp+A0h]
v19 = nullptr;
p = nullptr;
v21 = 0;
sub_900FBC(a1, (__int64)&v19);
v1 = v19;
if ( (unsigned __int64)((_BYTE *)p - (_BYTE *)v19) <= 0x3F )
{
v4 = StarInfoPopup::create(0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
}
else
{
v2 = atoi(*(const char **)v19);
v13 = atoi(*(const char **)&byte_8[(_QWORD)v1]);
v14 = atoi(*(const char **)((char *)&word_10 + (_QWORD)v1));
v15 = atoi(*(const char **)((char *)&off_18 + (_QWORD)v1));
v16 = atoi(*(const char **)((char *)&qword_20 + (_QWORD)v1));
v17 = atoi(*(const char **)((char *)&qword_28 + (_QWORD)v1));
v18 = atoi(*(const char **)((char *)&dword_30 + (_QWORD)v1));
v3 = atoi(*(const char **)((char *)&word_38 + (_QWORD)v1));
v4 = StarInfoPopup::create(v2, v13, v14, v15, v16, v17, v18, v3, 0, 0);
}
v5 = (__int64 *)v19;
v6 = v4;
v7 = (__int64 *)p;
if ( v19 != p )
{
do
{
while ( 1 )
{
v8 = *v5;
v9 = (__int64 *)(*v5 - 24);
if ( v9 != &qword_124B6B0 )
{
if ( &pthread_create )
{
v10 = (unsigned int *)(v8 - 8);
do
v11 = __ldaxr(v10);
while ( __stlxr(v11 - 1, v10) );
}
else
{
v11 = *(_DWORD *)(v8 - 8);
*(_DWORD *)(v8 - 8) = v11 - 1;
}
if ( v11 <= 0 )
break;
}
if ( v7 == ++v5 )
goto LABEL_12;
}
++v5;
operator delete(v9);
}
while ( v7 != v5 );
LABEL_12:
v7 = (__int64 *)v19;
}
if ( v7 )
operator delete(v7);
return v6;
}