//
// SetTextPopup::addInfoLabel from 0x5d4b64 to 0x5d4c26 (194 bytes)
//
// 2 xrefs:
// > SFXBrowser::onImportSetup @ 0x6c4244
// > SFXBrowser::cellPerformedAction @ 0x6c93f4
//
// 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:08 +0000
//
int __fastcall SetTextPopup::addInfoLabel(int a1, int a2)
{
const char *v4; // r2
cocos2d::CCLabelBMFont *v5; // r0
cocos2d::CCLabelBMFont *v6; // r4
void (__fastcall *v7)(cocos2d::CCLabelBMFont *, _BYTE *); // r8
float v9[2]; // [sp+4h] [bp-14h] BYREF
_BYTE v10[8]; // [sp+Ch] [bp-Ch] BYREF
cocos2d::CCDirector::sharedDirector((cocos2d::CCDirector *)a1);
cocos2d::CCDirector::getWinSize((cocos2d::CCDirector *)v9);
if ( (*(_BYTE *)a2 & 1) != 0 )
v5 = *(cocos2d::CCLabelBMFont **)(a2 + 8);
else
v5 = (cocos2d::CCLabelBMFont *)(a2 + 1);
v6 = (cocos2d::CCLabelBMFont *)cocos2d::CCLabelBMFont::create(v5, "chatFont.fnt", v4);
(*(void (__fastcall **)(cocos2d::CCLabelBMFont *, int))(*(_DWORD *)v6 + 512))(v6, 200);
(*(void (__fastcall **)(cocos2d::CCLabelBMFont *, void *))(*(_DWORD *)v6 + 536))(v6, &unk_BEE20E);
(*(void (__fastcall **)(cocos2d::CCLabelBMFont *, int))(*(_DWORD *)v6 + 80))(v6, 1058642330);
cocos2d::CCLabelBMFont::limitLabelWidth(v6, 280.0, 0.6, 0.3);
v7 = *(void (__fastcall **)(cocos2d::CCLabelBMFont *, _BYTE *))(*(_DWORD *)v6 + 92);
cocos2d::CCPoint::CCPoint(
(cocos2d::CCPoint *)v10,
v9[0] * 0.5,
(float)((float)(v9[1] * 0.5) + 33.0) + *(float *)(a1 + 532));
v7(v6, v10);
return (*(int (__fastcall **)(_DWORD, cocos2d::CCLabelBMFont *))(**(_DWORD **)(a1 + 460) + 228))(
*(_DWORD *)(a1 + 460),
v6);
}