//
// SetupTriggerPopup::createPageButtons from 0x14060b3b0 to 0x14060b67f (719 bytes)
//
// 17 xrefs:
// > AccountBanPopup::init @ 0x1400a72af
// > SetupRotateCommandPopup::init @ 0x1403af10d
// > SetupAdvFollowPopup::init @ 0x14059ca6a
// > SetupAreaMoveTriggerPopup::init @ 0x1405a38e2
// > SetupAreaTransformTriggerPopup::init @ 0x1405a5f4f
// > SetupAreaRotateTriggerPopup::init @ 0x1405a66c0
// > SetupAreaFadeTriggerPopup::init @ 0x1405a6e1f
// > SetupAreaTintTriggerPopup::init @ 0x1405a78de
// > SetupAreaTriggerPopup::init @ 0x1405a84b4
// > SetupKeyframeAnimPopup::init @ 0x1405ba6c5
// > SetupOptionsTriggerPopup::init @ 0x1405cbf6c
// > SetupSFXPopup::init @ 0x1405dd8d8
// > SetupSFXEditPopup::init @ 0x1405df808
// > SetupSongTriggerPopup::init @ 0x1405f3069
// > SetupSpawnPopup::init @ 0x1405f4c63
// > SelectEventLayer::init @ 0x1405fd67a
// > ??> @ 0x14092fb34
//
// This function is hookable on this platform (idp: pc, 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 11:35:14 +0000
//
// Hidden C++ exception states: #wind=1
void __fastcall SetupTriggerPopup::createPageButtons(__int64 a1, float a2)
{
cocos2d::CCString *v3; // rax
char *CString; // rax
size_t v5; // r8
__int64 v6; // rcx
__int64 v7; // rax
__int64 v8; // rax
void **v9; // rcx
struct cocos2d::CCSprite *v10; // rbx
cocos2d::CCObject *v11; // rax
__int64 v12; // rax
void **v13; // rcx
cocos2d::CCSprite *v14; // rbx
cocos2d::CCObject *v15; // rax
__int64 v16; // rax
void *v17; // rcx
_BYTE v18[8]; // [rsp+38h] [rbp-9h] BYREF
float v19[2]; // [rsp+40h] [rbp-1h] BYREF
_BYTE v20[8]; // [rsp+48h] [rbp+7h] BYREF
_BYTE v21[8]; // [rsp+50h] [rbp+Fh] BYREF
void *Block[2]; // [rsp+58h] [rbp+17h] BYREF
__int64 v23; // [rsp+68h] [rbp+27h]
unsigned __int64 v24; // [rsp+70h] [rbp+2Fh]
*(_OWORD *)Block = 0;
v23 = 0;
v24 = 15;
LOBYTE(Block[0]) = 0;
v3 = cocos2d::CCString::createWithFormat("GJ_arrow_0%i_001.png", 1);
CString = (char *)cocos2d::CCString::getCString(v3);
v5 = -1;
do
++v5;
while ( CString[v5] );
sub_1400405A0(Block, CString, v5);
v7 = cocos2d::CCDirector::sharedDirector(v6);
cocos2d::CCDirector::getWinSize(v7, v19);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v18, v19[0] * 0.5, (float)(v19[1] * 0.5) + *(float *)(a1 + 740));
cocos2d::CCNode::convertToNodeSpace(*(_QWORD *)(a1 + 552), v20, v8);
v9 = Block;
if ( v24 > 0xF )
v9 = (void **)Block[0];
v10 = cocos2d::CCSprite::createWithSpriteFrameName((const char *)v9);
(*(void (__fastcall **)(struct cocos2d::CCSprite *))(*(_QWORD *)v10 + 160LL))(v10);
v11 = CCMenuItemSpriteExtra::create((int)v10, 0, a1, (__int64)SetupTriggerPopup::onPage);
*(_QWORD *)(a1 + 960) = v11;
(*(void (__fastcall **)(_QWORD, cocos2d::CCObject *))(**(_QWORD **)(a1 + 552) + 464LL))(*(_QWORD *)(a1 + 552), v11);
(*(void (__fastcall **)(_QWORD, __int64))(**(_QWORD **)(a1 + 960) + 64LL))(*(_QWORD *)(a1 + 960), 0xFFFFFFFFLL);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v21, -a2, 0.0);
cocos2d::CCPoint::operator+(v20, v18, v12);
(*(void (__fastcall **)(_QWORD, _BYTE *))(**(_QWORD **)(a1 + 960) + 184LL))(*(_QWORD *)(a1 + 960), v18);
*(_DWORD *)(*(_QWORD *)(a1 + 960) + 372LL) = 0x40000000;
v13 = Block;
if ( v24 > 0xF )
v13 = (void **)Block[0];
v14 = cocos2d::CCSprite::createWithSpriteFrameName((const char *)v13);
cocos2d::CCSprite::setFlipX(v14, 1);
(*(void (__fastcall **)(cocos2d::CCSprite *))(*(_QWORD *)v14 + 160LL))(v14);
v15 = CCMenuItemSpriteExtra::create((int)v14, 0, a1, (__int64)SetupTriggerPopup::onPage);
*(_QWORD *)(a1 + 968) = v15;
(*(void (__fastcall **)(_QWORD, cocos2d::CCObject *))(**(_QWORD **)(a1 + 552) + 464LL))(*(_QWORD *)(a1 + 552), v15);
(*(void (__fastcall **)(_QWORD, __int64))(**(_QWORD **)(a1 + 968) + 64LL))(*(_QWORD *)(a1 + 968), 1);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v21, a2, 0.0);
cocos2d::CCPoint::operator+(v20, v18, v16);
(*(void (__fastcall **)(_QWORD, _BYTE *))(**(_QWORD **)(a1 + 968) + 184LL))(*(_QWORD *)(a1 + 968), v18);
*(_DWORD *)(*(_QWORD *)(a1 + 968) + 372LL) = 0x40000000;
if ( v24 > 0xF )
{
v17 = Block[0];
if ( v24 + 1 >= 0x1000 )
{
v17 = *((void **)Block[0] - 1);
if ( (unsigned __int64)((char *)Block[0] - (char *)v17 - 8) > 0x1F )
invoke_watson(nullptr, nullptr, nullptr, 0, 0);
}
j_j_free(v17);
}
}