//
// SetTextPopup::addInfoLabel from 0x1403a8030 to 0x1403a8149 (281 bytes)
//
// 3 xrefs:
// > SFXBrowser::onImportSetup @ 0x14061d144
// > SFXBrowser::cellPerformedAction @ 0x140620092
// > ??> @ 0x140923858
//
// 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:31:19 +0000
//
__int64 __fastcall SetTextPopup::addInfoLabel(__int64 a1, const char *a2)
{
__int64 v4; // rax
cocos2d::CCLabelBMFont *v5; // rdi
__int64 v6; // rdx
void (__fastcall *v7)(char *, __int64); // r8
__int64 v8; // rbx
__int64 v9; // rax
float v11; // [rsp+30h] [rbp+8h] BYREF
float v12; // [rsp+34h] [rbp+Ch]
char v13; // [rsp+38h] [rbp+10h] BYREF
v4 = cocos2d::CCDirector::sharedDirector(a1);
cocos2d::CCDirector::getWinSize(v4, &v11);
if ( *((_QWORD *)a2 + 3) > 0xFu )
a2 = *(const char **)a2;
v5 = cocos2d::CCLabelBMFont::create(a2, "chatFont.fnt");
v6 = *((_QWORD *)v5 + 46);
v7 = *(void (__fastcall **)(char *, __int64))(v6 + 40);
LOBYTE(v6) = -56;
v7((char *)v5 + 368, v6);
(**((void (__fastcall ***)(__int64, void *))v5 + 46))((__int64)v5 + 368, &unk_1407034A8);
(*(void (__fastcall **)(cocos2d::CCLabelBMFont *))(*(_QWORD *)v5 + 160LL))(v5);
cocos2d::CCLabelBMFont::limitLabelWidth(v5, 280.0, 0.60000002, 0.30000001);
v8 = *(_QWORD *)v5;
cocos2d::CCPoint::CCPoint(
(cocos2d::CCPoint *)&v13,
v11 * 0.5,
(float)((float)(v12 * 0.5) + 33.0) + *(float *)(a1 + 684));
(*(void (__fastcall **)(cocos2d::CCLabelBMFont *, __int64))(v8 + 184))(v5, v9);
return (*(__int64 (__fastcall **)(_QWORD, cocos2d::CCLabelBMFont *))(**(_QWORD **)(a1 + 584) + 464LL))(
*(_QWORD *)(a1 + 584),
v5);
}