* SPICE netlist
D5 N008 7 BZX84C8V2L
R1 N003 N008 40K tol=1 pwr=0.1
D6 N007 3 1N750
D7 N007 2 1N750
D8 N007 N006 1N750
R2 N011 N014 1K tol=1 pwr=0.1
R3 N012 N013 1K tol=1 pwr=0.1
R4 N008 4 5K tol=1 pwr=0.1
Q2 N013 N011 1 0 NPN
Q1 N014 N011 5 0 NPN
R5 5 4 1K tol=1 pwr=0.1
R6 1 4 1K tol=1 pwr=0.1
Q3 8 N013 4 0 NPN
D1 N001 N005 D
D2 N005 N009 D
D3 N009 N010 D
D4 N010 N003 D
M1 N001 N001 7 7 PMOS
M2 N004 N001 7 7 PMOS
M3 N002 N001 7 7 PMOS
M4 N006 N003 N004 N004 PMOS
M5 8 N003 N002 N002 PMOS
M6 N011 3 N006 N006 PMOS
M7 N012 2 N006 N006 PMOS
M8 6 8 7 7 PMOS
M9 6 8 4 4 NMOS

* LTspice schematic (.asc)
Version 4
SHEET 1 752 896
WIRE -376 -256 -376 -448
WIRE -376 -96 -376 -192
WIRE -376 -32 -376 -96
WIRE -376 96 -376 48
WIRE -328 -96 -376 -96
WIRE -328 224 -328 -96
WIRE -328 448 -328 304
WIRE -296 -448 -376 -448
WIRE -296 -416 -296 -448
WIRE -296 -304 -296 -320
WIRE -296 -288 -296 -304
WIRE -296 -192 -296 -224
WIRE -296 -96 -296 -128
WIRE -296 0 -296 -32
WIRE -296 96 -376 96
WIRE -296 96 -296 64
WIRE -232 -256 -232 -288
WIRE -232 96 -296 96
WIRE -232 96 -232 -256
WIRE -200 -400 -248 -400
WIRE -200 -400 -200 -432
WIRE -200 -304 -296 -304
WIRE -200 -304 -200 -400
WIRE -184 0 -184 -128
WIRE -184 144 -200 144
WIRE -184 144 -184 0
WIRE -168 -400 -200 -400
WIRE -168 -256 -232 -256
WIRE -168 -128 -184 -128
WIRE -168 0 -184 0
WIRE -120 -448 -296 -448
WIRE -120 -416 -120 -448
WIRE -120 -272 -120 -320
WIRE -120 -160 -120 -176
WIRE -120 -16 -120 -32
WIRE -120 96 -120 80
WIRE -120 112 -120 96
WIRE -120 224 -120 192
WIRE -120 336 -152 336
WIRE -120 336 -120 320
WIRE -120 352 -120 336
WIRE -120 448 -328 448
WIRE -120 448 -120 432
WIRE -72 -160 -120 -160
WIRE -72 -32 -120 -32
WIRE -72 -32 -72 -160
WIRE -40 -128 -104 -128
WIRE -40 -112 -40 -128
WIRE -40 -32 -72 -32
WIRE -40 -32 -40 -48
WIRE -40 96 -120 96
WIRE -40 272 -56 272
WIRE -40 272 -40 96
WIRE -8 272 -40 272
WIRE 8 -432 -200 -432
WIRE 8 -400 8 -432
WIRE 24 -128 -40 -128
WIRE 40 -32 -40 -32
WIRE 40 -16 40 -32
WIRE 40 96 40 80
WIRE 40 192 40 176
WIRE 56 -448 -120 -448
WIRE 56 -416 56 -448
WIRE 56 192 40 192
WIRE 56 224 56 192
WIRE 56 336 40 336
WIRE 56 336 56 320
WIRE 56 352 56 336
WIRE 56 448 -120 448
WIRE 56 448 56 432
WIRE 104 -128 88 -128
WIRE 104 0 88 0
WIRE 104 0 104 -128
WIRE 104 208 -200 208
WIRE 104 208 104 0
WIRE 120 -288 -232 -288
WIRE 120 -256 120 -288
WIRE 136 192 56 192
WIRE 152 -256 120 -256
WIRE 200 -320 56 -320
WIRE 200 -272 200 -320
WIRE 200 112 200 -176
WIRE 200 144 200 112
WIRE 200 448 56 448
WIRE 200 448 200 240
WIRE 248 208 248 32
WIRE 248 288 248 240
WIRE 264 32 248 32
WIRE 296 112 200 112
WIRE 296 240 248 240
WIRE 296 240 296 112
WIRE 296 336 296 240
WIRE 328 112 296 112
WIRE 328 336 296 336
WIRE 376 -448 56 -448
WIRE 376 -288 344 -288
WIRE 376 -288 376 -448
WIRE 376 96 376 -288
WIRE 376 208 248 208
WIRE 376 208 376 192
WIRE 376 256 376 208
WIRE 376 416 344 416
WIRE 376 416 376 352
WIRE 376 448 200 448
WIRE 376 448 376 416
FLAG -200 144 3
IOPIN -48 656 In
FLAG -200 208 2
IOPIN -48 720 In
FLAG -152 336 5
IOPIN 0 848 In
FLAG 40 336 1
IOPIN 192 848 In
FLAG 248 288 8
IOPIN 400 800 In
FLAG 344 416 4
FLAG 344 -288 7
FLAG 264 32 6
IOPIN 416 544 Out
SYMBOL zener -360 -192 R180
SYMATTR InstName D5
SYMATTR Value BZX84C8V2L
SYMBOL res -360 64 R180
SYMATTR InstName R1
SYMATTR Value 40K
SYMATTR SpiceLine tol=1 pwr=0.1
SYMBOL zener -104 -144 R90
SYMATTR InstName D6
SYMATTR Value 1N750
SYMBOL zener 24 -112 R270
SYMATTR InstName D7
SYMATTR Value 1N750
SYMBOL zener -56 -112 R0
SYMATTR InstName D8
SYMATTR Value 1N750
SYMBOL res -136 96 R0
SYMATTR InstName R2
SYMATTR Value 1K
SYMATTR SpiceLine tol=1 pwr=0.1
SYMBOL res 24 80 R0
SYMATTR InstName R3
SYMATTR Value 1K
SYMATTR SpiceLine tol=1 pwr=0.1
SYMBOL res -344 208 R0
SYMATTR InstName R4
SYMATTR Value 5K
SYMATTR SpiceLine tol=1 pwr=0.1
SYMBOL npn2 -8 224 R0
SYMATTR InstName Q2
SYMBOL npn2 -56 224 M0
SYMATTR InstName Q1
SYMBOL res -136 336 R0
SYMATTR InstName R5
SYMATTR Value 1K
SYMATTR SpiceLine tol=1 pwr=0.1
SYMBOL res 40 336 R0
SYMATTR InstName R6
SYMATTR Value 1K
SYMATTR SpiceLine tol=1 pwr=0.1
SYMBOL npn2 136 144 R0
SYMATTR InstName Q3
SYMBOL diode -312 -288 R0
SYMATTR InstName D1
SYMBOL diode -312 -192 R0
SYMATTR InstName D2
SYMBOL diode -312 -96 R0
SYMATTR InstName D3
SYMBOL diode -312 0 R0
SYMATTR InstName D4
SYMBOL pmos -248 -320 R180
SYMATTR InstName M1
SYMBOL pmos -168 -320 M180
SYMATTR InstName M2
SYMBOL pmos 8 -320 M180
SYMATTR InstName M3
SYMBOL pmos -168 -176 M180
SYMATTR InstName M4
SYMBOL pmos 152 -176 M180
SYMATTR InstName M5
SYMBOL pmos -168 80 M180
SYMATTR InstName M6
SYMBOL pmos 88 80 R180
SYMATTR InstName M7
SYMBOL pmos 328 192 M180
SYMATTR InstName M8
SYMBOL nmos 328 256 R0
SYMATTR InstName M9