//
// CreateParticlePopup::onMode from 0x1405c77e0 to 0x1405c78b8 (216 bytes)
//
// 3 xrefs:
// > CreateParticlePopup::init @ 0x1405c2230
// > ??> @ 0x14092e2d4
// > ??> @ 0x14092e2e0
//
// 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:34:51 +0000
//
void __fastcall CreateParticlePopup::onMode(__int64 a1, __int64 a2)
{
int v3; // eax
const char *v4; // rdi
const char *v5; // rbx
__int64 v6; // rax
const char *v7; // rbx
__int64 v8; // rax
__int64 v9; // rax
v3 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a2 + 56LL))(a2);
v4 = "GJ_button_04.png";
v5 = "GJ_button_04.png";
if ( v3 == *(_DWORD *)(a1 + 828) )
v3 = 0;
*(_DWORD *)(a1 + 828) = v3;
*(_DWORD *)(*(_QWORD *)(a1 + 792) + 544LL) = v3;
if ( *(_DWORD *)(a1 + 828) == 1 )
v5 = "GJ_button_01.png";
v6 = (*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 800) + 952LL))(*(_QWORD *)(a1 + 800));
ButtonSprite::updateBGImage(v6, v5);
v7 = "GJ_button_04.png";
if ( *(_DWORD *)(a1 + 828) == 2 )
v7 = "GJ_button_01.png";
v8 = (*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 808) + 952LL))(*(_QWORD *)(a1 + 808));
ButtonSprite::updateBGImage(v8, v7);
if ( *(_DWORD *)(a1 + 828) == 3 )
v4 = "GJ_button_01.png";
v9 = (*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 816) + 952LL))(*(_QWORD *)(a1 + 816));
ButtonSprite::updateBGImage(v9, v4);
}