//
// SetupTriggerPopup::createPageButtons from 0xb2069c to 0xb2098c (752 bytes)
//
// 17 xrefs:
// > SetupSpawnPopup::init @ 0xa43e94
// > SetupRotateCommandPopup::init @ 0xa7c00c
// > SetupSongTriggerPopup::init @ 0xaeaf50
// > SetupOptionsTriggerPopup::init @ 0xb1a224
// > SetupAreaMoveTriggerPopup::init @ 0xb3fb28
// > SetupAreaTransformTriggerPopup::init @ 0xb40688
// > SetupAreaRotateTriggerPopup::init @ 0xb40fc8
// > SetupAreaFadeTriggerPopup::init @ 0xb418f4
// > SetupAreaTintTriggerPopup::init @ 0xb42420
// > SetupAreaTriggerPopup::init @ 0xb42cb4
// > SetupAdvFollowPopup::init @ 0xb49d40
// > SetupKeyframeAnimPopup::init @ 0xb69aec
// > SetupSFXPopup::init @ 0xb6ee44
// > SetupSFXEditPopup::init @ 0xb700d0
// > SelectEventLayer::init @ 0xb80aa0
// > AccountBanPopup::init @ 0xc95874
// > ??> @ 0x927b8
//
// This function is hookable on this platform (idp: arm, 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 13:01:36 +0000
//
__int64 __fastcall SetupTriggerPopup::createPageButtons(SetupTriggerPopup *this, float a2, int a3)
{
char *v4; // x22
cocos2d::CCString *v6; // x0
char *CString; // x0
__int64 *v8; // x0
cocos2d::CCDirector *v9; // x0
cocos2d::CCNode *v10; // x25
float v11; // s9
cocos2d::CCSprite *v12; // x0
__int64 v13; // x22
__int64 v14; // x0
__int64 v15; // x2
__int64 v16; // x26
void (__fastcall *v17)(__int64, __int64 *); // x27
cocos2d::CCSprite *v18; // x0
cocos2d::CCSprite *v19; // x21
__int64 v20; // x0
__int64 v21; // x2
__int64 v22; // x21
void (__fastcall *v23)(__int64, __int64 *); // x25
__int64 v25; // [xsp+70h] [xbp+70h] BYREF
__int64 v26; // [xsp+78h] [xbp+78h] BYREF
_BYTE v27[8]; // [xsp+80h] [xbp+80h] BYREF
__int64 v28; // [xsp+88h] [xbp+88h] BYREF
char *v29; // [xsp+90h] [xbp+90h] BYREF
__int64 v30; // [xsp+98h] [xbp+98h]
cocos2d::CCSprite *v31; // [xsp+A0h] [xbp+A0h]
v29 = nullptr;
LODWORD(v4) = a3;
if ( a3 < 0 )
{
v30 = 0;
v31 = nullptr;
}
else
{
if ( a3 > 3 )
{
v4 = (char *)&dword_0 + 3;
v30 = 0;
v31 = nullptr;
LABEL_4:
v6 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat(
(cocos2d::CCString *)"GJ_arrow_0%i_001.png",
(const char *)(unsigned int)v4);
CString = (char *)cocos2d::CCString::getCString(v6);
v8 = std::string::assign((__int64 *)&v29, CString);
goto LABEL_5;
}
v30 = 0;
v31 = nullptr;
if ( a3 )
goto LABEL_4;
}
v8 = std::string::assign((__int64 *)&v29, "edit_leftBtn_001.png");
LODWORD(v4) = 0;
LABEL_5:
v9 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector((cocos2d::CCDirector *)v8);
cocos2d::CCDirector::getWinSize(&v25, v9);
v10 = *((cocos2d::CCNode **)this + 69);
cocos2d::CCPoint::CCPoint(
(cocos2d::CCPoint *)&v28,
*(float *)&v25 * 0.5,
*((float *)this + 185) + (float)(*((float *)&v25 + 1) * 0.5));
cocos2d::CCNode::convertToNodeSpace(&v26, v10, (const cocos2d::CCPoint *)&v28);
if ( (_DWORD)v4 )
v11 = 0.7;
else
v11 = 1.0;
v12 = (cocos2d::CCSprite *)((char *)&v29 + 1);
if ( ((unsigned __int8)v29 & 1) != 0 )
v12 = v31;
v13 = cocos2d::CCSprite::createWithSpriteFrameName(v12, (const char *)(unsigned __int8)v29);
(*(void (__fastcall **)(__int64, float))(*(_QWORD *)v13 + 160LL))(v13, v11);
v14 = CCMenuItemSpriteExtra::create(v13, 0, (__int64)this, (__int64)SetupTriggerPopup::onPage, 0);
v15 = *((_QWORD *)this + 69);
*((_QWORD *)this + 122) = v14;
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v15 + 456LL))(v15, v14);
(*(void (__fastcall **)(_QWORD, __int64))(**((_QWORD **)this + 122) + 72LL))(*((_QWORD *)this + 122), 0xFFFFFFFFLL);
v16 = *((_QWORD *)this + 122);
v17 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v16 + 184LL);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v27, -a2, 0.0);
cocos2d::CCPoint::operator+(&v28, &v26);
v17(v16, &v28);
CCMenuItemSpriteExtra::setSizeMult(*((_QWORD *)this + 122), 2.0);
v18 = (cocos2d::CCSprite *)((char *)&v29 + 1);
if ( ((unsigned __int8)v29 & 1) != 0 )
v18 = v31;
v19 = (cocos2d::CCSprite *)cocos2d::CCSprite::createWithSpriteFrameName(v18, (const char *)(unsigned __int8)v29);
cocos2d::CCSprite::setFlipX(v19, 1);
(*(void (__fastcall **)(cocos2d::CCSprite *, float))(*(_QWORD *)v19 + 160LL))(v19, v11);
v20 = CCMenuItemSpriteExtra::create((__int64)v19, 0, (__int64)this, (__int64)SetupTriggerPopup::onPage, 0);
v21 = *((_QWORD *)this + 69);
*((_QWORD *)this + 123) = v20;
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v21 + 456LL))(v21, v20);
(*(void (__fastcall **)(_QWORD, __int64))(**((_QWORD **)this + 123) + 72LL))(*((_QWORD *)this + 123), 1);
v22 = *((_QWORD *)this + 123);
v23 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v22 + 184LL);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v27, a2, 0.0);
cocos2d::CCPoint::operator+(&v28, &v26);
v23(v22, &v28);
CCMenuItemSpriteExtra::setSizeMult(*((_QWORD *)this + 123), 2.0);
if ( ((unsigned __int8)v29 & 1) != 0 )
operator delete(v31);
return _stack_chk_guard;
}