//
// MenuGameLayer::destroyPlayer from 0x100442c18 to 0x100442dec (468 bytes)
//
// 1 xrefs:
// > MenuGameLayer::ccTouchBegan @ 0x100442eec
//
// 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 11:05:13 +0000
//
void __fastcall MenuGameLayer::destroyPlayer(__int64 a1)
{
int v2; // w0
__int64 v3; // x20
void *v4; // x20
__int64 v5; // x0
__int64 v6; // x8
unsigned __int16 v7; // w9
int8x8_t v8; // d2
__int64 v9; // x20
__int64 v10; // x8
__int16 v11; // w9
__int64 v12; // x0
float32x2_t v13; // [xsp+8h] [xbp-38h] BYREF
float v14; // [xsp+10h] [xbp-30h]
int v15; // [xsp+14h] [xbp-2Ch]
void *__p[2]; // [xsp+18h] [xbp-28h] BYREF
char v17; // [xsp+2Fh] [xbp-11h]
*(_BYTE *)(a1 + 412) = 1;
v2 = GameStatsManager::sharedState();
GameStatsManager::incrementStat_1(v2, "9");
v3 = FMODAudioEngine::sharedEngine();
sub_100009900(__p, "explode_11.ogg");
FMODAudioEngine::playEffect(v3, (__int64)__p, 1.0, 0.0, 0.5);
if ( v17 < 0 )
operator delete(__p[0]);
v4 = cocos2d::CCParticleSystemQuad::create("explodeEffect.plist", 0);
(*(void (__fastcall **)(void *, __int64))(*(_QWORD *)v4 + 1568LL))(v4, 2);
(*(void (__fastcall **)(__int64, void *, __int64))(*(_QWORD *)a1 + 464LL))(a1, v4, 1);
(*(void (__fastcall **)(void *, __int64))(*(_QWORD *)v4 + 1584LL))(v4, 1);
v5 = (*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 432) + 192LL))(*(_QWORD *)(a1 + 432));
(*(void (__fastcall **)(void *, __int64))(*(_QWORD *)v4 + 184LL))(v4, v5);
v6 = *(_QWORD *)(a1 + 432);
v7 = *(unsigned __int8 *)(v6 + 2604);
v8.i16[0] = *(_WORD *)(v6 + 2602);
v8.i8[2] = *(_BYTE *)(v6 + 2604);
v8.i32[1] = (unsigned __int32)v8.i32[0] >> 8;
v13 = vdiv_f32(vcvt_f32_u32((uint32x2_t)vand_s8(v8, (int8x8_t)0xFF000000FFLL)), (float32x2_t)vdup_n_s32(0x437F0000u));
v14 = (float)v7 / 255.0;
v15 = 1065353216;
(*(void (__fastcall **)(void *, float32x2_t *))(*(_QWORD *)v4 + 1360LL))(v4, &v13);
cocos2d::CCParticleSystem::resetSystem((__int64)v4);
v9 = CCCircleWave::create_1(0);
v10 = *(_QWORD *)(a1 + 432);
v11 = *(_WORD *)(v10 + 2602);
*(_BYTE *)(v9 + 342) = *(_BYTE *)(v10 + 2604);
*(_WORD *)(v9 + 340) = v11;
v12 = (*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 432) + 192LL))(*(_QWORD *)(a1 + 432));
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v9 + 184LL))(v9, v12);
(*(void (__fastcall **)(__int64, __int64, _QWORD))(*(_QWORD *)a1 + 464LL))(a1, v9, 0);
MenuGameLayer::resetPlayer(a1);
}