//
// SetTextPopup::addInfoButton from 0x5d885c to 0x5d893e (226 bytes)
//
// 1 xrefs:
// > SFXBrowser::onImportSetup @ 0x6c4278
//
// 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:10 +0000
//
int __fastcall SetTextPopup::addInfoButton(int a1, int a2, int a3)
{
int v6; // r8
const cocos2d::CCPoint *v7; // r10
int (__fastcall *v8)(int, _BYTE *); // r9
float v10[2]; // [sp+4h] [bp-34h] BYREF
_BYTE v11[8]; // [sp+Ch] [bp-2Ch] BYREF
_BYTE v12[8]; // [sp+14h] [bp-24h] BYREF
int v13[3]; // [sp+1Ch] [bp-1Ch] BYREF
int v14[3]; // [sp+28h] [bp-10h] BYREF
cocos2d::CCDirector::sharedDirector((cocos2d::CCDirector *)a1);
cocos2d::CCDirector::getWinSize((cocos2d::CCDirector *)v10);
std::string::basic_string(v13, a2);
std::string::basic_string(v14, a3);
v6 = InfoAlertButton::create(v13, v14, 1060320051);
std::string::~string((int)v14);
std::string::~string((int)v13);
(*(void (__fastcall **)(_DWORD, int))(**(_DWORD **)(a1 + 444) + 228))(*(_DWORD *)(a1 + 444), v6);
v7 = *(const cocos2d::CCPoint **)(a1 + 444);
v8 = *(int (__fastcall **)(int, _BYTE *))(*(_DWORD *)v6 + 92);
cocos2d::CCPoint::CCPoint(
(cocos2d::CCPoint *)v11,
(float)((float)(v10[0] * 0.5) + 150.0) - 18.0,
(float)((float)((float)(*(float *)(a1 + 536) * 0.5) + (float)(v10[1] * 0.5)) - 18.0) + *(float *)(a1 + 532));
cocos2d::CCNode::convertToNodeSpace((cocos2d::CCNode *)v12, v7);
return v8(v6, v12);
}