//
// StarInfoPopup::createFromStringMoons from 0x14055bc70 to 0x14055bf34 (708 bytes)
//
// 2 xrefs:
// > ProfilePage::onStatInfo @ 0x140555e76
// > ??> @ 0x14092c0fc
//
// This function is hookable on this platform (idp: pc, 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:34:13 +0000
//
// Hidden C++ exception states: #wind=2
__int64 __fastcall StarInfoPopup::createFromStringMoons(__int64 *a1, __int64 a2)
{
const char *v3; // r12
char *v4; // rcx
char *v5; // rbx
char *v6; // rdi
char *v7; // rsi
int v8; // r14d
int v9; // r15d
int v10; // ebp
int v11; // esi
int v12; // edi
int v13; // ebx
int v14; // eax
__int64 v15; // rsi
char *v16; // rbx
char *v17; // rdi
char *v18; // rax
char *v20; // rdi
char *v21; // rax
char *v22[2]; // [rsp+50h] [rbp-68h] BYREF
__int64 v23; // [rsp+60h] [rbp-58h]
char *String; // [rsp+68h] [rbp-50h]
char *v25; // [rsp+70h] [rbp-48h]
__int64 *v26; // [rsp+78h] [rbp-40h]
v26 = a1;
*(_OWORD *)v22 = 0;
v23 = 0;
sub_140123270(a1, a2, (__int64 *)v22);
v3 = v22[0];
if ( (unsigned __int64)((v22[1] - v22[0]) >> 5) < 7 )
{
v15 = StarInfoPopup::create(0, 0, 0, 0, 0, 0, 0, 0, 0, 1);
v16 = v22[0];
if ( !v22[0] )
goto LABEL_23;
v20 = v22[1];
if ( v22[0] != v22[1] )
{
do
{
sub_14003D310((__int64)v16);
v16 += 32;
}
while ( v16 != v20 );
v16 = v22[0];
}
v21 = v16;
if ( ((v23 - (_QWORD)v16) & 0xFFFFFFFFFFFFFFE0uLL) < 0x1000 )
goto LABEL_22;
v16 = *((char **)v16 - 1);
if ( (unsigned __int64)(v21 - v16 - 8) <= 0x1F )
goto LABEL_22;
goto LABEL_30;
}
v4 = v22[0] + 192;
if ( *((_QWORD *)v22[0] + 27) > 0xFu )
v4 = *(char **)v4;
v5 = v22[0] + 160;
if ( *((_QWORD *)v22[0] + 23) > 0xFu )
v5 = *(char **)v5;
v6 = v22[0] + 128;
if ( *((_QWORD *)v22[0] + 19) > 0xFu )
v6 = *(char **)v6;
v7 = v22[0] + 96;
if ( *((_QWORD *)v22[0] + 15) > 0xFu )
v7 = *(char **)v7;
String = v22[0] + 64;
if ( *((_QWORD *)v22[0] + 11) > 0xFu )
String = *((char **)v22[0] + 8);
v25 = v22[0] + 32;
if ( *((_QWORD *)v22[0] + 7) > 0xFu )
v25 = *((char **)v22[0] + 4);
if ( *((_QWORD *)v22[0] + 3) > 0xFu )
v3 = *(const char **)v22[0];
v8 = atoi(v4);
v9 = atoi(v5);
v10 = atoi(v6);
v11 = atoi(v7);
v12 = atoi(String);
v13 = atoi(v25);
v14 = atoi(v3);
v15 = StarInfoPopup::create(v14, v13, v12, v11, v10, v9, 0, 0, v8, 1);
v16 = v22[0];
if ( v22[0] )
{
v17 = v22[1];
if ( v22[0] != v22[1] )
{
do
{
sub_14003D310((__int64)v16);
v16 += 32;
}
while ( v16 != v17 );
v16 = v22[0];
}
v18 = v16;
if ( ((v23 - (_QWORD)v16) & 0xFFFFFFFFFFFFFFE0uLL) < 0x1000
|| (v16 = *((char **)v16 - 1), (unsigned __int64)(v18 - v16 - 8) <= 0x1F) )
{
LABEL_22:
j_j_free(v16);
*(_OWORD *)v22 = 0;
v23 = 0;
goto LABEL_23;
}
LABEL_30:
invoke_watson(nullptr, nullptr, nullptr, 0, 0);
}
LABEL_23:
sub_14003D310((__int64)a1);
return v15;
}