To be mended or repaired by hell; a literal (and rare) reading in which 'hell' is imagined to restore or correct a person.
2.
United KingdomScotlandIrelandidiomaticvulgarinformal
An exclamation of exasperation wishing that someone suffer the consequences of their heedless or reckless behavior; used when a person ignores warnings and is likely to get into trouble.