//
// SetupObjectControlPopup::init from 0x57e640 to 0x57e7c0 (384 bytes)
//
// 1 xrefs:
// > SetupObjectControlPopup::create @ 0x57e866
//
// 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
//
bool SetupObjectControlPopup::init(SetupObjectControlPopup *a1, ObjectControlGameObject *a2, cocos2d::CCArray *a3)
{
_BOOL4 v4; // r10
cocos2d::CCDirector *v5; // r0
_BYTE v7[4]; // [sp+38h] [bp-30h] BYREF
cocos2d::CCSize v8; // [sp+3Ch] [bp-2Ch] BYREF
cocos2d::CCPoint v9; // [sp+44h] [bp-24h] BYREF
_BYTE v10[8]; // [sp+4Ch] [bp-1Ch] BYREF
cocos2d::CCPoint v11; // [sp+54h] [bp-14h] BYREF
cocos2d::CCPoint v12; // [sp+5Ch] [bp-Ch] BYREF
v4 = SetupTriggerPopup::init(a1, a2, a3, 320.0, 220.0, 1);
if ( v4 )
{
SetupTriggerPopup::preSetup(a1);
sub_776584((int)&v12, "Object Control");
SetupTriggerPopup::addTitle((int)a1);
sub_774008(&v12);
sub_776584((int)&v12, "OK");
SetupTriggerPopup::addCloseButton((unsigned int)a1, (ButtonSprite **)&v12);
sub_774008(&v12);
sub_776584((int)&v11, "Help");
sub_776584((int)&v12, "Control help");
SetupTriggerPopup::addHelpButton((int)a1, (int)&v11, (int)&v12, 1065353216);
sub_774008(&v12);
sub_774008(&v11);
SetupTriggerPopup::createMultiTriggerItemsDefault(a1);
v5 = cocos2d::CCDirector::sharedDirector();
cocos2d::CCDirector::getWinSize(&v8, v5);
cocos2d::CCPoint::CCPoint(&v9, v8.width * 0.5, v8.height * 0.5);
cocos2d::CCPoint::CCPoint(&v12, -20.0, 40.0);
cocos2d::CCPoint::operator+(v10, &v9, &v12);
sub_776584((int)v7, "Target ID");
cocos2d::CCPoint::CCPoint(&v11, 0.0, 0.0);
cocos2d::CCPoint::operator+(&v12, &v9, &v11);
SetupTriggerPopup::createValueControlAdvanced(
(unsigned int)a1,
51,
(int)v7,
&v12,
(cocos2d::CCZone *)0x3F4CCCCD,
1,
Uint,
6,
1,
nullptr,
100.0,
1,
0,
0,
2,
0);
sub_774008(v7);
SetupTriggerPopup::postSetup(a1);
}
return v4;
}