//
// DemonInfoPopup::createFromString from 0x4c91d0 to 0x4c92cc (252 bytes)
//
// 1 xrefs:
// > ProfilePage::onStatInfo @ 0x4c93a8
//
// 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
//
DemonInfoPopup *__fastcall DemonInfoPopup::createFromString(_DWORD *a1, int a2, int a3)
{
const char **v3; // r4
int v4; // r9
int v5; // r7
int v6; // r6
int v7; // r11
int v8; // r10
int v9; // r0
DemonInfoPopup *v10; // r0
DemonInfoPopup *v11; // r4
int v13; // [sp+20h] [bp-2Ch]
int v14; // [sp+24h] [bp-28h]
int v15; // [sp+28h] [bp-24h]
int v16; // [sp+2Ch] [bp-20h]
int v17; // [sp+30h] [bp-1Ch]
int v18; // [sp+34h] [bp-18h]
const char **v19; // [sp+38h] [bp-14h] BYREF
int v20; // [sp+3Ch] [bp-10h]
int v21; // [sp+40h] [bp-Ch]
v19 = nullptr;
v20 = 0;
v21 = 0;
sub_4C8F88(a1, (int)&v19, a3);
v3 = v19;
if ( (unsigned int)(v20 - (_DWORD)v19) <= 0x2F )
{
v10 = DemonInfoPopup::create(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
}
else
{
v4 = atoi(*v19);
v5 = atoi(*(const char **)&byte_4[(_DWORD)v3]);
v6 = atoi(*(const char **)&byte_8[(_DWORD)v3]);
v18 = atoi(*(const char **)&byte_9[(_DWORD)v3 + 3]);
v17 = atoi(*(const char **)((char *)&word_10 + (_DWORD)v3));
v16 = atoi(*(const char **)((char *)&dword_14 + (_DWORD)v3));
v13 = atoi(*(const char **)((char *)&dword_18 + (_DWORD)v3));
v7 = atoi(*(const char **)((char *)&dword_1C + (_DWORD)v3));
v8 = atoi(*(const char **)((char *)&dword_20 + (_DWORD)v3));
v14 = atoi(*(const char **)((char *)&dword_24 + (_DWORD)v3));
v15 = atoi(*(const char **)((char *)&word_28 + (_DWORD)v3));
v9 = atoi(*(const char **)((char *)&word_2C + (_DWORD)v3));
v10 = DemonInfoPopup::create(v4, v5, v6, v18, v17, v16, v13, v7, v8, v14, v15, v9);
}
v11 = v10;
std::vector::~vector((void **)&v19);
return v11;
}