// // CreateParticlePopup::onPage from 0xaff08c to 0xaff29c (528 bytes) // // 4 xrefs: // > CreateParticlePopup::init @ 0xb01e7c // > @ 0xe0140 // > CreateParticlePopup::init @ 0xb021bc // > @ 0x1546bb0 // // 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:19 +0000 // __int64 __fastcall CreateParticlePopup::onPage(CreateParticlePopup *this, cocos2d::CCObject *a2) { int i; // w19 __int64 Page; // x0 __int64 PageButton; // x0 ButtonSprite *v6; // x0 const char *v7; // x1 __int64 PageInputNodes; // x0 __int64 v9; // x0 __int64 j; // x22 __int64 v11; // x20 __int64 PageSliders; // x0 __int64 v13; // x0 __int64 k; // x20 unsigned int v15; // w20 cocos2d::CCArray *PageContainer; // x22 __int64 v17; // x0 bool v18; // cf unsigned int v19; // w1 __int64 result; // x0 unsigned __int8 v21; // w1 if ( a2 ) *((_DWORD *)this + 249) = (*(__int64 (__fastcall **)(cocos2d::CCObject *))(*(_QWORD *)a2 + 64LL))(a2); for ( i = 1; i != 5; ++i ) { Page = CreateParticlePopup::getPage((cocos2d::CCArray **)this, i); (*(void (__fastcall **)(__int64, bool))(*(_QWORD *)Page + 344LL))(Page, *((_DWORD *)this + 249) == i); PageButton = CreateParticlePopup::getPageButton((cocos2d::CCArray **)this, i); v6 = (ButtonSprite *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)PageButton + 1072LL))(PageButton); if ( *((_DWORD *)this + 249) == 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 ) { v9 = *(_QWORD *)(PageInputNodes + 56); if ( v9 ) { for ( j = *(_QWORD *)(v9 + 288); ; j = *(_QWORD *)(j + 288) ) { v11 = *(_QWORD *)(v9 + 264); (*(void (__fastcall **)(__int64, bool))(*(_QWORD *)v11 + 1000LL))(v11, *((_DWORD *)this + 249) == i); if ( *((_DWORD *)this + 249) != i ) (*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v11 + 1160LL))(v11, 0); if ( !j ) break; v9 = j; } } } PageSliders = CreateParticlePopup::getPageSliders((cocos2d::CCArray **)this, i); if ( PageSliders ) { v13 = *(_QWORD *)(PageSliders + 56); if ( v13 ) { for ( k = *(_QWORD *)(v13 + 288); ; k = *(_QWORD *)(k + 288) ) { (*(void (__fastcall **)(_QWORD, bool))(**(_QWORD **)(v13 + 264) + 1000LL))( *(_QWORD *)(v13 + 264), *((_DWORD *)this + 249) == i); v13 = k; if ( !k ) break; } } } v15 = 0; PageContainer = (cocos2d::CCArray *)CreateParticlePopup::getPageContainer((cocos2d::CCArray **)this, i); while ( 1 ) { v18 = v15 >= (unsigned int)cocos2d::CCArray::count(PageContainer); v19 = v15++; if ( v18 ) break; v17 = cocos2d::CCArray::objectAtIndex(PageContainer, v19); (*(void (__fastcall **)(__int64, bool))(*(_QWORD *)v17 + 344LL))(v17, *((_DWORD *)this + 249) == i); } } result = *((unsigned int *)this + 249); if ( (_DWORD)result == 1 ) { v21 = (*(unsigned int (__fastcall **)(_QWORD))(**((_QWORD **)this + 89) + 1592LL))(*((_QWORD *)this + 89)) == 0; CreateParticlePopup::toggleGravityMode((cocos2d::CCArray **)this, v21); result = *((unsigned int *)this + 249); } if ( (_DWORD)result == 4 ) return CreateParticlePopup::applyTexturePage(this); return result; }