//
// SetupAudioTriggerPopup::addTimeControls from 0x5750a8 to 0x5752a6 (510 bytes)
//
// 2 xrefs:
// > SetupSongTriggerPopup::init @ 0x525650
// > SetupSFXPopup::init @ 0x5766f2
//
// 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
//
void SetupAudioTriggerPopup::addTimeControls(SetupAudioTriggerPopup *a1, int a2, float a3)
{
cocos2d::CCDirector *v6; // r0
_BYTE v7[4]; // [sp+38h] [bp-2Ch] BYREF
cocos2d::CCSize v8; // [sp+3Ch] [bp-28h] BYREF
cocos2d::CCPoint v9; // [sp+44h] [bp-20h] BYREF
cocos2d::CCPoint v10; // [sp+4Ch] [bp-18h] BYREF
cocos2d::CCPoint v11; // [sp+54h] [bp-10h] BYREF
v6 = cocos2d::CCDirector::sharedDirector();
cocos2d::CCDirector::getWinSize(&v8, v6);
cocos2d::CCPoint::CCPoint(&v9, v8.width * 0.5, a3 + (float)(v8.height * 0.5));
sub_776584((int)v7, "Start:");
cocos2d::CCPoint::CCPoint(&v10, -91.0, -0.0);
cocos2d::CCPoint::operator+(&v11, &v9, &v10);
SetupTriggerPopup::createValueControlAdvanced(
(unsigned int)a1,
408,
(int)v7,
&v11,
(cocos2d::CCZone *)0x3F266666,
0,
Int,
6,
0,
nullptr,
1000.0,
a2,
0,
1,
2,
0);
sub_774008(v7);
sub_776584((int)v7, "FadeIn:");
cocos2d::CCPoint::CCPoint(&v10, 91.0, -0.0);
cocos2d::CCPoint::operator+(&v11, &v9, &v10);
SetupTriggerPopup::createValueControlAdvanced(
(unsigned int)a1,
409,
(int)v7,
&v11,
(cocos2d::CCZone *)0x3F266666,
0,
Int,
6,
0,
nullptr,
1000.0,
a2,
0,
1,
2,
0);
sub_774008(v7);
sub_776584((int)v7, "End:");
cocos2d::CCPoint::CCPoint(&v10, -91.0, -39.0);
cocos2d::CCPoint::operator+(&v11, &v9, &v10);
SetupTriggerPopup::createValueControlAdvanced(
(unsigned int)a1,
410,
(int)v7,
&v11,
(cocos2d::CCZone *)0x3F266666,
0,
Int,
6,
0,
nullptr,
1000.0,
a2,
0,
1,
2,
0);
sub_774008(v7);
sub_776584((int)v7, "FadeOut:");
cocos2d::CCPoint::CCPoint(&v10, 91.0, -39.0);
cocos2d::CCPoint::operator+(&v11, &v9, &v10);
SetupTriggerPopup::createValueControlAdvanced(
(unsigned int)a1,
411,
(int)v7,
&v11,
(cocos2d::CCZone *)0x3F266666,
0,
Int,
6,
0,
nullptr,
1000.0,
a2,
0,
1,
2,
0);
sub_774008(v7);
}