//
// sub_1008A8860 from 0x1008a8860 to 0x1008a8a6b (523 bytes)
//
// 2 xrefs:
// > StarInfoPopup::createFromString @ 0x1008a4a2c
// > StarInfoPopup::createFromStringMoons @ 0x1008a4c80
//
// 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 12:37:17 +0000
//
char *__fastcall sub_1008A8860(int a1, int a2, int a3, int a4, int a5, int a6, int a7, int a8, int a9, char a10)
{
char *v12; // rbx
v12 = (char *)operator new(0x298u);
cocos2d::CCLayerColor::CCLayerColor((__int64)v12);
*(_QWORD *)v12 = off_100B4FB70;
*((_QWORD *)v12 + 40) = off_100B500C0;
*((_QWORD *)v12 + 41) = &off_100B50130;
*((_QWORD *)v12 + 42) = off_100B50148;
*((_QWORD *)v12 + 43) = off_100B50168;
*((_QWORD *)v12 + 44) = off_100B50190;
*((_QWORD *)v12 + 51) = off_100B501C0;
*((_QWORD *)v12 + 54) = off_100B50240;
*((_QWORD *)v12 + 68) = off_100B50260;
*(_OWORD *)(v12 + 552) = 0;
*(_OWORD *)(v12 + 561) = 0;
*(_OWORD *)(v12 + 584) = 0;
sub_1002782A0((_QWORD *)v12 + 75);
*((_OWORD *)v12 + 38) = 0;
*((_QWORD *)v12 + 78) = 0;
*((_DWORD *)v12 + 158) = -1;
*((_WORD *)v12 + 318) = 0;
*((_DWORD *)v12 + 160) = -1;
v12[644] = 0;
*((_QWORD *)v12 + 81) = 0;
v12[656] = 0;
*(_QWORD *)v12 = off_100BAAEA0;
*((_QWORD *)v12 + 40) = off_100BAB3F0;
*((_QWORD *)v12 + 41) = &off_100BAB460;
*((_QWORD *)v12 + 42) = off_100BAB478;
*((_QWORD *)v12 + 43) = off_100BAB498;
*((_QWORD *)v12 + 44) = off_100BAB4C0;
*((_QWORD *)v12 + 51) = off_100BAB4F0;
*((_QWORD *)v12 + 54) = off_100BAB570;
*((_QWORD *)v12 + 68) = off_100BAB590;
if ( (unsigned __int8)StarInfoPopup::init((_DWORD)v12, a1, a2, a3, a4, a5, a6, a7, a8, a9, a10) )
{
cocos2d::CCObject::autorelease((__int64)v12);
}
else
{
(*(void (__fastcall **)(char *))(*(_QWORD *)v12 + 16LL))(v12);
return nullptr;
}
return v12;
}