//
// CreateParticlePopup::onPage from 0x665a0c to 0x665b88 (380 bytes)
//
// 1 xrefs:
// > CreateParticlePopup::init @ 0x669e76
//
// 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:55:40 +0000
//
unsigned int __fastcall CreateParticlePopup::onPage(CreateParticlePopup *this, cocos2d::CCObject *a2)
{
int i; // r5
int Page; // r0
int PageButton; // r0
char *v6; // r0
const char *v7; // r1
int PageInputNodes; // r0
int PageSliders; // r0
int v10; // r3
int v11; // r6
int v12; // r9
int v13; // r2
int v14; // r3
int v15; // r6
unsigned int v16; // r6
cocos2d::CCArray *PageContainer; // r9
int v18; // r2
unsigned int result; // r0
int v20; // r0
int v21; // r0
if ( a2 )
*((_DWORD *)this + 175) = (*(int (__fastcall **)(cocos2d::CCObject *))(*(_DWORD *)a2 + 32))(a2);
for ( i = 1; i != 5; ++i )
{
Page = CreateParticlePopup::getPage((cocos2d::CCArray **)this, i);
(*(void (__fastcall **)(int, bool))(*(_DWORD *)Page + 172))(Page, *((_DWORD *)this + 175) == i);
PageButton = CreateParticlePopup::getPageButton((cocos2d::CCArray **)this, i);
v6 = (char *)(*(int (__fastcall **)(int))(*(_DWORD *)PageButton + 536))(PageButton);
if ( *((_DWORD *)this + 175) == i )
v7 = "GJ_button_01.png";
else
v7 = "GJ_button_04.png";
ButtonSprite::updateBGImage(v6, v7);
PageInputNodes = CreateParticlePopup::getPageInputNodes((cocos2d::CCArray **)this, i);
if ( PageInputNodes )
{
v10 = *(_DWORD *)(PageInputNodes + 52);
if ( v10 )
v11 = *(_DWORD *)(v10 + 272);
else
v11 = 0;
while ( v10 )
{
v12 = *(_DWORD *)(v10 + 260);
(*(void (__fastcall **)(int, bool))(*(_DWORD *)v12 + 500))(v12, *((_DWORD *)this + 175) == i);
if ( *((_DWORD *)this + 175) != i )
(*(void (__fastcall **)(int, _DWORD))(*(_DWORD *)v12 + 580))(v12, 0);
if ( v11 )
v13 = *(_DWORD *)(v11 + 272);
else
v13 = 0;
v10 = v11;
v11 = v13;
}
}
PageSliders = CreateParticlePopup::getPageSliders((cocos2d::CCArray **)this, i);
if ( PageSliders )
{
v14 = *(_DWORD *)(PageSliders + 52);
if ( v14 )
v15 = *(_DWORD *)(v14 + 272);
else
v15 = 0;
while ( v14 )
{
(*(void (__fastcall **)(_DWORD, bool))(**(_DWORD **)(v14 + 260) + 500))(
*(_DWORD *)(v14 + 260),
*((_DWORD *)this + 175) == i);
if ( v15 )
v18 = *(_DWORD *)(v15 + 272);
else
v18 = 0;
v14 = v15;
v15 = v18;
}
}
v16 = 0;
PageContainer = (cocos2d::CCArray *)CreateParticlePopup::getPageContainer((cocos2d::CCArray **)this, i);
while ( 1 )
{
result = cocos2d::CCArray::count(PageContainer);
if ( v16 >= result )
break;
v20 = cocos2d::CCArray::objectAtIndex(PageContainer, v16++);
(*(void (__fastcall **)(int, bool))(*(_DWORD *)v20 + 172))(v20, *((_DWORD *)this + 175) == i);
}
}
if ( *((_DWORD *)this + 175) == 1 )
{
v21 = (*(int (__fastcall **)(_DWORD))(**((_DWORD **)this + 136) + 796))(*((_DWORD *)this + 136));
result = CreateParticlePopup::toggleGravityMode((cocos2d::CCArray **)this, v21 == 0);
}
if ( *((_DWORD *)this + 175) == 4 )
return CreateParticlePopup::applyTexturePage(this);
return result;
}