//
// StarInfoPopup::createFromStringMoons from 0x5fbda8 to 0x5fbeba (274 bytes)
//
// 1 xrefs:
// > ProfilePage::onStatInfo @ 0x5fc232
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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:54:36 +0000
//
FLAlertLayer *__fastcall StarInfoPopup::createFromStringMoons(unsigned __int8 *a1)
{
int v1; // r4
const char *v2; // r0
StarInfoPopup *v3; // r10
const char *v4; // r0
unsigned int v5; // r9
const char *v6; // r0
unsigned int v7; // r8
const char *v8; // r0
unsigned int v9; // r7
const char *v10; // r0
unsigned int v11; // r11
const char *v12; // r0
int v13; // r3
const char *v14; // r0
int v15; // r0
FLAlertLayer *v16; // r0
FLAlertLayer *v17; // r4
bool v19; // [sp+18h] [bp-1Ch]
unsigned int v20; // [sp+1Ch] [bp-18h]
int v21; // [sp+20h] [bp-14h] BYREF
int v22; // [sp+24h] [bp-10h]
int v23; // [sp+28h] [bp-Ch]
v21 = 0;
v22 = 0;
v23 = 0;
sub_5FBC64(a1, &v21);
v1 = v21;
if ( (unsigned int)(-1431655765 * ((v22 - v21) >> 2)) <= 6 )
{
v16 = StarInfoPopup::create(nullptr, 0, 0, 0, 0, 0, 0, 0, 0, 1, v19);
}
else
{
if ( (*(_BYTE *)v21 & 1) != 0 )
v2 = *(const char **)&byte_8[v21];
else
v2 = (const char *)(v21 + 1);
v3 = (StarInfoPopup *)atoi(v2);
if ( (byte_9[v1 + 3] & 1) != 0 )
v4 = *(const char **)((char *)&dword_14 + v1);
else
v4 = (const char *)(v1 + 13);
v5 = atoi(v4);
if ( (*((_BYTE *)&dword_18 + v1) & 1) != 0 )
v6 = *(const char **)((char *)&dword_20 + v1);
else
v6 = (const char *)(v1 + 25);
v7 = atoi(v6);
if ( (*((_BYTE *)&dword_24 + v1) & 1) != 0 )
v8 = *(const char **)((char *)&word_2C + v1);
else
v8 = (const char *)(v1 + 37);
v9 = atoi(v8);
if ( (*((_BYTE *)&word_30 + v1) & 1) != 0 )
v10 = *(const char **)((char *)&dword_38 + v1);
else
v10 = (const char *)(v1 + 49);
v11 = atoi(v10);
if ( (*((_BYTE *)off_3C + v1) & 1) != 0 )
v12 = *(const char **)((char *)&dword_44 + v1);
else
v12 = (const char *)(v1 + 61);
v13 = atoi(v12);
if ( (*((_BYTE *)&dword_48 + v1) & 1) != 0 )
v14 = *(const char **)((char *)&dword_50 + v1);
else
v14 = (const char *)(v1 + 73);
v20 = v13;
v15 = atoi(v14);
v16 = StarInfoPopup::create(v3, v5, v7, v9, v11, v20, 0, 0, v15, 1, v19);
}
v17 = v16;
std::__vector_base::~__vector_base((int)&v21);
return v17;
}