It looks like the sprites have stopped working, so I brought my own. Also, shinyskarmory, -Spe natures always round down, so Trapinch's speed is 8, not 9. I'll be surprised if that makes a difference here, but still.
38 HP
65 Energy
Vs.
90 HP
100 Energy
And Hydra the Deino hangs on by a hair!
2 HP
35 Energy
Vs.
77 HP
82 Energy
Toxic (2 DPA)
Obbmud99, your orders, please!

38 HP
65 Energy
Vs.

90 HP
100 Energy
And Hydra the Deino hangs on by a hair!
Trapinch
Earthquake
RNG roll to crit; 159 = no crit
[7.5 BAP + 3 STAB + (5 Atk - 1 Def)*1.5] = 16.5 (rounded to 17) Damage, 6 Energy
-1 HP, toxic
Rock Slide
RNG roll to hit; 77 = hit
RNG roll to crit; 334 = no crit
[8 BAP + (5 Atk - 1 Def)*1.5] = 14 Damage, 6 Energy
-1 HP, toxic
Earthquake
RNG roll to crit; 949 = no crit
[10 BAP + 3 STAB + (5 Atk - 1 Def)*1.5] = 19 Damage, 6 Energy
-1 HP, toxic
Deino
Toxic
7 Energy
Head Smash
RNG roll to hit; 849 = hit
RNG roll to crit; 318 = no crit
[12 BAP + 2 weight class boost + (3 Atk - 2 Def)*1.5]*2/3 resist = 10.33 (rounded to 10) Damage, 5 recoil, 9 + 2/2.5 = 9.8 (rounded to 10) Energy
Protect
7 + (19/3) = 13.33 (rounded to 13) Energy
Earthquake
RNG roll to crit; 159 = no crit
[7.5 BAP + 3 STAB + (5 Atk - 1 Def)*1.5] = 16.5 (rounded to 17) Damage, 6 Energy
-1 HP, toxic
Rock Slide
RNG roll to hit; 77 = hit
RNG roll to crit; 334 = no crit
[8 BAP + (5 Atk - 1 Def)*1.5] = 14 Damage, 6 Energy
-1 HP, toxic
Earthquake
RNG roll to crit; 949 = no crit
[10 BAP + 3 STAB + (5 Atk - 1 Def)*1.5] = 19 Damage, 6 Energy
-1 HP, toxic
Deino
Toxic
7 Energy
Head Smash
RNG roll to hit; 849 = hit
RNG roll to crit; 318 = no crit
[12 BAP + 2 weight class boost + (3 Atk - 2 Def)*1.5]*2/3 resist = 10.33 (rounded to 10) Damage, 5 recoil, 9 + 2/2.5 = 9.8 (rounded to 10) Energy
Protect
7 + (19/3) = 13.33 (rounded to 13) Energy

2 HP
35 Energy
Vs.

77 HP
82 Energy
Toxic (2 DPA)
Obbmud99, your orders, please!