//
// StarInfoPopup::createFromStringMoons from 0x4c9040 to 0x4c90fe (190 bytes)
//
// 1 xrefs:
// > ProfilePage::onStatInfo @ 0x4c9366
//
// 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::createFromStringMoons(_DWORD *a1)
{
const char **v1; // r4
int v2; // r10
int v3; // r9
int v4; // r8
int v5; // r7
int v6; // r11
int v7; // r0
StarInfoPopup *v8; // r0
StarInfoPopup *v9; // r4
int v11; // [sp+1Ch] [bp-18h]
const char **v12; // [sp+20h] [bp-14h] BYREF
int v13; // [sp+24h] [bp-10h]
int v14; // [sp+28h] [bp-Ch]
v12 = nullptr;
v13 = 0;
v14 = 0;
sub_4C8F88(a1, (int)&v12, 0);
v1 = v12;
if ( (unsigned int)(v13 - (_DWORD)v12) <= 0x1B )
{
v8 = StarInfoPopup::create(0, 0, 0, 0, 0, 0, 0, 0, 0, 1);
}
else
{
v2 = atoi(*v12);
v3 = atoi(*(const char **)&byte_4[(_DWORD)v1]);
v4 = atoi(*(const char **)&byte_8[(_DWORD)v1]);
v5 = atoi(*(const char **)&byte_9[(_DWORD)v1 + 3]);
v11 = atoi(*(const char **)((char *)&word_10 + (_DWORD)v1));
v6 = atoi(*(const char **)((char *)&dword_14 + (_DWORD)v1));
v7 = atoi(*(const char **)((char *)&dword_18 + (_DWORD)v1));
v8 = StarInfoPopup::create(v2, v3, v4, v5, v11, v6, 0, 0, v7, 1);
}
v9 = v8;
std::vector::~vector((void **)&v12);
return v9;
}