{"type": "func", "start": 4299435032, "end": 4299435500, "name": "MenuGameLayer::destroyPlayer", "pseudocode": "// \n// MenuGameLayer::destroyPlayer from 0x100442c18 to 0x100442dec (468 bytes)\n// \n// 1 xrefs:\n// > MenuGameLayer::ccTouchBegan @ 0x100442eec\n// \n// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!\n// \n// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n// Generated at Fri, 27 Nov 2026 11:05:13 +0000\n// \n\nvoid __fastcall MenuGameLayer::destroyPlayer(__int64 a1)\n{\n  int v2; // w0\n  __int64 v3; // x20\n  void *v4; // x20\n  __int64 v5; // x0\n  __int64 v6; // x8\n  unsigned __int16 v7; // w9\n  int8x8_t v8; // d2\n  __int64 v9; // x20\n  __int64 v10; // x8\n  __int16 v11; // w9\n  __int64 v12; // x0\n  float32x2_t v13; // [xsp+8h] [xbp-38h] BYREF\n  float v14; // [xsp+10h] [xbp-30h]\n  int v15; // [xsp+14h] [xbp-2Ch]\n  void *__p[2]; // [xsp+18h] [xbp-28h] BYREF\n  char v17; // [xsp+2Fh] [xbp-11h]\n\n  *(_BYTE *)(a1 + 412) = 1;\n  v2 = GameStatsManager::sharedState();\n  GameStatsManager::incrementStat_1(v2, \"9\");\n  v3 = FMODAudioEngine::sharedEngine();\n  sub_100009900(__p, \"explode_11.ogg\");\n  FMODAudioEngine::playEffect(v3, (__int64)__p, 1.0, 0.0, 0.5);\n  if ( v17 < 0 )\n    operator delete(__p[0]);\n  v4 = cocos2d::CCParticleSystemQuad::create(\"explodeEffect.plist\", 0);\n  (*(void (__fastcall **)(void *, __int64))(*(_QWORD *)v4 + 1568LL))(v4, 2);\n  (*(void (__fastcall **)(__int64, void *, __int64))(*(_QWORD *)a1 + 464LL))(a1, v4, 1);\n  (*(void (__fastcall **)(void *, __int64))(*(_QWORD *)v4 + 1584LL))(v4, 1);\n  v5 = (*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 432) + 192LL))(*(_QWORD *)(a1 + 432));\n  (*(void (__fastcall **)(void *, __int64))(*(_QWORD *)v4 + 184LL))(v4, v5);\n  v6 = *(_QWORD *)(a1 + 432);\n  v7 = *(unsigned __int8 *)(v6 + 2604);\n  v8.i16[0] = *(_WORD *)(v6 + 2602);\n  v8.i8[2] = *(_BYTE *)(v6 + 2604);\n  v8.i32[1] = (unsigned __int32)v8.i32[0] >> 8;\n  v13 = vdiv_f32(vcvt_f32_u32((uint32x2_t)vand_s8(v8, (int8x8_t)0xFF000000FFLL)), (float32x2_t)vdup_n_s32(0x437F0000u));\n  v14 = (float)v7 / 255.0;\n  v15 = 1065353216;\n  (*(void (__fastcall **)(void *, float32x2_t *))(*(_QWORD *)v4 + 1360LL))(v4, &v13);\n  cocos2d::CCParticleSystem::resetSystem((__int64)v4);\n  v9 = CCCircleWave::create_1(0);\n  v10 = *(_QWORD *)(a1 + 432);\n  v11 = *(_WORD *)(v10 + 2602);\n  *(_BYTE *)(v9 + 342) = *(_BYTE *)(v10 + 2604);\n  *(_WORD *)(v9 + 340) = v11;\n  v12 = (*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 432) + 192LL))(*(_QWORD *)(a1 + 432));\n  (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v9 + 184LL))(v9, v12);\n  (*(void (__fastcall **)(__int64, __int64, _QWORD))(*(_QWORD *)a1 + 464LL))(a1, v9, 0);\n  MenuGameLayer::resetPlayer(a1);\n}", "assembly": "; \n; MenuGameLayer::destroyPlayer from 0x100442c18 to 0x100442dec (468 bytes)\n; \n; 1 xrefs:\n; > MenuGameLayer::ccTouchBegan @ 0x100442eec\n; \n; This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!\n; \n; Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n; Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n; Generated at Fri, 27 Nov 2026 11:05:13 +0000\n; \nSUB             SP, SP, #0x50                                          ; +0x0, 0x100442c18\nSTP             X20, X19, [SP,#0x40+var_10]                            ; +0x4, 0x100442c1c\nSTP             X29, X30, [SP,#0x40+var_s0]                            ; +0x8, 0x100442c20\nADD             X29, SP, #0x40                                         ; +0xc, 0x100442c24\nMOV             X19, X0                                                ; +0x10, 0x100442c28\nMOV             W8, #1                                                 ; +0x14, 0x100442c2c\nSTRB            W8, [X0,#0x19C]                                        ; +0x18, 0x100442c30\nBL              GameStatsManager__sharedState                          ; +0x1c, 0x100442c34\nADRL            X1, a9; \"9\"                                            ; +0x20, 0x100442c38\nBL              GameStatsManager__incrementStat_1                      ; +0x28, 0x100442c40\nBL              FMODAudioEngine__sharedEngine                          ; +0x2c, 0x100442c44\nMOV             X20, X0                                                ; +0x30, 0x100442c48\nADRL            X1, aExplode11Ogg; \"explode_11.ogg\"                    ; +0x34, 0x100442c4c\nADD             X0, SP, #0x40+__p; int                                 ; +0x3c, 0x100442c54\nBL              sub_100009900                                          ; +0x40, 0x100442c58\nADD             X1, SP, #0x40+__p                                      ; +0x44, 0x100442c5c\nFMOV            S0, #1.0                                               ; +0x48, 0x100442c60\nFMOV            S1, WZR                                                ; +0x4c, 0x100442c64\nFMOV            S2, #0.5                                               ; +0x50, 0x100442c68\nMOV             X0, X20                                                ; +0x54, 0x100442c6c\nBL              FMODAudioEngine__playEffect                            ; +0x58, 0x100442c70\nLDRSB           W8, [SP,#0x40+var_11]                                  ; +0x5c, 0x100442c74\nTBZ             W8, #0x1F, loc_100442C84                               ; +0x60, 0x100442c78\nLDR             X0, [SP,#0x40+__p]; __p                                ; +0x64, 0x100442c7c\nBL              __ZdlPv; operator delete(void *)                       ; +0x68, 0x100442c80\nADRL            X0, aExplodeeffectP; \"explodeEffect.plist\"             ; +0x6c, 0x100442c84\nMOV             W1, #0                                                 ; +0x74, 0x100442c8c\nBL              cocos2d__CCParticleSystemQuad__create                  ; +0x78, 0x100442c90\nMOV             X20, X0                                                ; +0x7c, 0x100442c94\nLDR             X8, [X0]                                               ; +0x80, 0x100442c98\nLDR             X8, [X8,#0x620]                                        ; +0x84, 0x100442c9c\nMOV             W1, #2                                                 ; +0x88, 0x100442ca0\nBLR             X8                                                     ; +0x8c, 0x100442ca4\nLDR             X8, [X19]                                              ; +0x90, 0x100442ca8\nLDR             X8, [X8,#0x1D0]                                        ; +0x94, 0x100442cac\nMOV             X0, X19                                                ; +0x98, 0x100442cb0\nMOV             X1, X20                                                ; +0x9c, 0x100442cb4\nMOV             W2, #1                                                 ; +0xa0, 0x100442cb8\nBLR             X8                                                     ; +0xa4, 0x100442cbc\nLDR             X8, [X20]                                              ; +0xa8, 0x100442cc0\nLDR             X8, [X8,#0x630]                                        ; +0xac, 0x100442cc4\nMOV             X0, X20                                                ; +0xb0, 0x100442cc8\nMOV             W1, #1                                                 ; +0xb4, 0x100442ccc\nBLR             X8                                                     ; +0xb8, 0x100442cd0\nLDR             X0, [X19,#0x1B0]                                       ; +0xbc, 0x100442cd4\nLDR             X8, [X0]                                               ; +0xc0, 0x100442cd8\nLDR             X8, [X8,#0xC0]                                         ; +0xc4, 0x100442cdc\nBLR             X8                                                     ; +0xc8, 0x100442ce0\nMOV             X1, X0                                                 ; +0xcc, 0x100442ce4\nLDR             X8, [X20]                                              ; +0xd0, 0x100442ce8\nLDR             X8, [X8,#0xB8]                                         ; +0xd4, 0x100442cec\nMOV             X0, X20                                                ; +0xd8, 0x100442cf0\nBLR             X8                                                     ; +0xdc, 0x100442cf4\nLDR             X8, [X19,#0x1B0]                                       ; +0xe0, 0x100442cf8\nLDRB            W9, [X8,#0xA2C]                                        ; +0xe4, 0x100442cfc\nLDRH            W8, [X8,#0xA2A]                                        ; +0xe8, 0x100442d00\nBFI             W8, W9, #0x10, #8                                      ; +0xec, 0x100442d04\nLSR             W10, W8, #8                                            ; +0xf0, 0x100442d08\nUXTH            W9, W9                                                 ; +0xf4, 0x100442d0c\nUCVTF           S0, W9                                                 ; +0xf8, 0x100442d10\nMOV             W9, #0x437F0000                                        ; +0xfc, 0x100442d14\nDUP             V1.2S, W9                                              ; +0x100, 0x100442d18\nFMOV            S2, W9                                                 ; +0x104, 0x100442d1c\nFDIV            S0, S0, S2                                             ; +0x108, 0x100442d20\nFMOV            S2, W8                                                 ; +0x10c, 0x100442d24\nINS             V2.S[1], W10                                           ; +0x110, 0x100442d28\nMOVI            D3, #0xFF000000FF                                      ; +0x114, 0x100442d2c\nAND             V2.8B, V2.8B, V3.8B                                    ; +0x118, 0x100442d30\nUCVTF           V2.2S, V2.2S                                           ; +0x11c, 0x100442d34\nFDIV            V1.2S, V2.2S, V1.2S                                    ; +0x120, 0x100442d38\nSTR             D1, [SP,#0x40+var_38]                                  ; +0x124, 0x100442d3c\nSTR             S0, [SP,#0x40+var_30]                                  ; +0x128, 0x100442d40\nMOV             W8, #0x3F800000                                        ; +0x12c, 0x100442d44\nSTR             W8, [SP,#0x40+var_2C]                                  ; +0x130, 0x100442d48\nLDR             X8, [X20]                                              ; +0x134, 0x100442d4c\nLDR             X8, [X8,#0x550]                                        ; +0x138, 0x100442d50\nADD             X1, SP, #0x40+var_38                                   ; +0x13c, 0x100442d54\nMOV             X0, X20                                                ; +0x140, 0x100442d58\nBLR             X8                                                     ; +0x144, 0x100442d5c\nMOV             X0, X20                                                ; +0x148, 0x100442d60\nBL              cocos2d__CCParticleSystem__resetSystem                 ; +0x14c, 0x100442d64\nMOV             W8, #0x42B40000                                        ; +0x150, 0x100442d68\nFMOV            S1, W8                                                 ; +0x154, 0x100442d6c\nFMOV            S0, #10.0                                              ; +0x158, 0x100442d70\nFMOV            S2, #0.5                                               ; +0x15c, 0x100442d74\nMOV             W0, #0                                                 ; +0x160, 0x100442d78\nBL              CCCircleWave__create_1                                 ; +0x164, 0x100442d7c\nMOV             X20, X0                                                ; +0x168, 0x100442d80\nLDR             X8, [X19,#0x1B0]                                       ; +0x16c, 0x100442d84\nLDRH            W9, [X8,#0xA2A]                                        ; +0x170, 0x100442d88\nLDRB            W8, [X8,#0xA2C]                                        ; +0x174, 0x100442d8c\nSTRB            W8, [X0,#0x156]                                        ; +0x178, 0x100442d90\nSTRH            W9, [X0,#0x154]                                        ; +0x17c, 0x100442d94\nLDR             X0, [X19,#0x1B0]                                       ; +0x180, 0x100442d98\nLDR             X8, [X0]                                               ; +0x184, 0x100442d9c\nLDR             X8, [X8,#0xC0]                                         ; +0x188, 0x100442da0\nBLR             X8                                                     ; +0x18c, 0x100442da4\nMOV             X1, X0                                                 ; +0x190, 0x100442da8\nLDR             X8, [X20]                                              ; +0x194, 0x100442dac\nLDR             X8, [X8,#0xB8]                                         ; +0x198, 0x100442db0\nMOV             X0, X20                                                ; +0x19c, 0x100442db4\nBLR             X8                                                     ; +0x1a0, 0x100442db8\nLDR             X8, [X19]                                              ; +0x1a4, 0x100442dbc\nLDR             X8, [X8,#0x1D0]                                        ; +0x1a8, 0x100442dc0\nMOV             X0, X19                                                ; +0x1ac, 0x100442dc4\nMOV             X1, X20                                                ; +0x1b0, 0x100442dc8\nMOV             W2, #0                                                 ; +0x1b4, 0x100442dcc\nBLR             X8                                                     ; +0x1b8, 0x100442dd0\nMOV             X0, X19                                                ; +0x1bc, 0x100442dd4\nBL              MenuGameLayer__resetPlayer                             ; +0x1c0, 0x100442dd8\nLDP             X29, X30, [SP,#0x40+var_s0]                            ; +0x1c4, 0x100442ddc\nLDP             X20, X19, [SP,#0x40+var_10]                            ; +0x1c8, 0x100442de0\nADD             SP, SP, #0x50 ; 'P'                                    ; +0x1cc, 0x100442de4\nRET                                                                    ; +0x1d0, 0x100442de8", "xrefs": ["MenuGameLayer::ccTouchBegan @ 0x100442eec"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "arm", "bida_info": "8.3.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings"}