* SPICE netlist
R1 N011 N010 5k
V1 N010 0 SINE(0 1 1k)
Q1 N005 N011 N013 0 NPN
Q2 N003 N012 N013 0 NPN
Q3 N013 N009 N014 0 mynpn
V2 0 N014 10
Q4 N005 N002 N001 0 mypnp
Q5 N003 N002 N001 0 mypnp
Q7 N004 N002 N001 0 mypnp
Q8 N007 N006 N005 0 PNP
Q9 N008 N006 N003 0 PNP
Q10 N007 N007 N014 0 mynpn
Q11 N008 N007 N014 0 mynpn
Q14 N014 N008 N004 0 mypnp
Q15 N014 N004 Vout 0 mypnp
Q16 N001 N004 Vout 0 mynpn
R2 Vout 0 100
R4 Vout N012 10k
Q17 N009 N009 N014 0 mynpn
R5 N002 N009 32k
Q6 N002 N002 N001 0 mypnp
V4 N001 0 10
R3 N012 0 10k
R6 N001 N006 900k
R7 N006 N014 1100k
.tran 0 5m 0
;op
.fourier 1k V(Vout)

* LTspice schematic (.asc)
Version 4
SHEET 1 4144 1600
WIRE -1896 -720 -2072 -720
WIRE -1656 -720 -1896 -720
WIRE -872 -720 -1656 -720
WIRE -344 -720 -872 -720
WIRE -24 -720 -344 -720
WIRE 1048 -720 -24 -720
WIRE 1384 -720 1048 -720
WIRE 2072 -720 1384 -720
WIRE -1656 -624 -1656 -720
WIRE -344 -624 -344 -720
WIRE -24 -624 -24 -720
WIRE 1048 -624 1048 -720
WIRE 920 -592 72 -592
WIRE -1512 -576 -1592 -576
WIRE -408 -576 -1512 -576
WIRE -88 -576 -408 -576
WIRE 72 -576 72 -592
WIRE 72 -576 -88 -576
WIRE 920 -576 920 -592
WIRE 984 -576 920 -576
WIRE 1384 -544 1384 -720
WIRE -8 -528 -24 -528
WIRE -8 -496 -8 -528
WIRE 152 -496 -8 -496
WIRE 1320 -496 1208 -496
WIRE -344 -480 -344 -528
WIRE -344 -480 -920 -480
WIRE -1656 -464 -1656 -528
WIRE -1512 -464 -1512 -576
WIRE -1512 -464 -1656 -464
WIRE -344 -432 -344 -480
WIRE -328 -432 -344 -432
WIRE -8 -432 -8 -496
WIRE -8 -432 -88 -432
WIRE 1048 -400 1048 -528
WIRE 1208 -400 1208 -496
WIRE 1208 -400 1048 -400
WIRE -200 -384 -264 -384
WIRE -152 -384 -200 -384
WIRE 1384 -384 1384 -448
WIRE 1688 -384 1384 -384
WIRE 1976 -384 1688 -384
WIRE 2072 -384 1976 -384
WIRE -328 -336 -344 -336
WIRE -1896 -288 -1896 -720
WIRE 1384 -272 1384 -384
WIRE 1976 -272 1976 -384
WIRE 1208 -224 1208 -400
WIRE 1320 -224 1208 -224
WIRE 152 -208 152 -496
WIRE 152 -208 -712 -208
WIRE 1048 -208 1048 -400
WIRE 1048 -208 872 -208
WIRE -1896 -144 -1896 -208
WIRE -200 -144 -200 -384
WIRE -200 -144 -1896 -144
WIRE -1896 -96 -1896 -144
WIRE -344 -96 -344 -336
WIRE -216 -96 -344 -96
WIRE 872 -96 872 -208
WIRE -88 -80 -88 -336
WIRE 632 -80 -88 -80
WIRE 632 -48 632 -80
WIRE 808 -48 632 -48
WIRE 1976 -48 1976 -192
WIRE -344 -32 -344 -96
WIRE -88 -32 -88 -80
WIRE -1656 0 -1656 -464
WIRE -216 16 -216 -96
WIRE -216 16 -280 16
WIRE -152 16 -216 16
WIRE -136 16 -152 16
WIRE -1656 288 -1656 80
WIRE -1496 288 -1656 288
WIRE -920 288 -920 -480
WIRE -712 288 -712 -208
WIRE -1128 336 -1176 336
WIRE -984 336 -1048 336
WIRE 88 336 -648 336
WIRE 376 336 88 336
WIRE 1688 336 1688 -384
WIRE 1688 336 456 336
WIRE -1656 352 -1656 288
WIRE 88 368 88 336
WIRE -808 384 -920 384
WIRE -712 384 -808 384
WIRE -1496 400 -1496 288
WIRE -1496 400 -1592 400
WIRE -1176 416 -1176 336
WIRE -808 480 -808 384
WIRE -1496 528 -1496 400
WIRE -872 528 -1496 528
WIRE -1496 544 -1496 528
WIRE -1896 704 -1896 -16
WIRE -1896 704 -2072 704
WIRE -1656 704 -1656 448
WIRE -1656 704 -1896 704
WIRE -808 704 -808 576
WIRE -808 704 -1656 704
WIRE -344 704 -344 64
WIRE -344 704 -808 704
WIRE -88 704 -88 64
WIRE -88 704 -344 704
WIRE 264 704 -88 704
WIRE 872 704 872 0
WIRE 872 704 264 704
WIRE 1384 704 1384 -176
WIRE 1384 704 872 704
WIRE 2072 704 1384 704
FLAG -1176 496 0
FLAG 264 784 0
FLAG 1976 -48 0
FLAG 2072 -384 Vout
FLAG -872 -800 0
FLAG 88 448 0
SYMBOL res -1032 320 R90
SYMATTR InstName R1
SYMATTR Value 5k
SYMBOL voltage -1176 400 R0
SYMATTR InstName V1
SYMATTR Value SINE(0 1 1k)
SYMBOL npn -984 288 R0
SYMATTR InstName Q1
SYMBOL npn -648 288 M0
SYMATTR InstName Q2
SYMBOL npn -872 480 R0
SYMATTR InstName Q3
SYMATTR Value mynpn
SYMBOL voltage 264 800 R180
SYMATTR InstName V2
SYMATTR Value 10
SYMBOL pnp -408 -528 M180
SYMATTR InstName Q4
SYMATTR Value mypnp
SYMBOL pnp -88 -528 M180
SYMATTR InstName Q5
SYMATTR Value mypnp
SYMBOL pnp 984 -528 M180
SYMATTR InstName Q7
SYMATTR Value mypnp
SYMBOL pnp -264 -336 R180
SYMATTR InstName Q8
SYMBOL pnp -152 -336 M180
SYMATTR InstName Q9
SYMBOL npn -280 -32 M0
SYMATTR InstName Q10
SYMATTR Value mynpn
SYMBOL npn -152 -32 R0
SYMATTR InstName Q11
SYMATTR Value mynpn
SYMBOL pnp 808 0 M180
SYMATTR InstName Q14
SYMATTR Value mypnp
SYMBOL pnp 1320 -176 M180
SYMATTR InstName Q15
SYMATTR Value mypnp
SYMBOL npn 1320 -544 R0
SYMATTR InstName Q16
SYMATTR Value mynpn
SYMBOL res 1960 -288 R0
SYMATTR InstName R2
SYMATTR Value 100
SYMBOL res 472 320 R90
SYMATTR InstName R4
SYMATTR Value 10k
SYMBOL npn -1592 352 M0
SYMATTR InstName Q17
SYMATTR Value mynpn
SYMBOL res -1672 -16 R0
SYMATTR InstName R5
SYMATTR Value 32k
SYMBOL pnp -1592 -528 R180
SYMATTR InstName Q6
SYMATTR Value mypnp
SYMBOL voltage -872 -704 R180
SYMATTR InstName V4
SYMATTR Value 10
SYMBOL res 72 352 R0
SYMATTR InstName R3
SYMATTR Value 10k
SYMBOL res -1912 -304 R0
SYMATTR InstName R6
SYMATTR Value 900k
SYMBOL res -1912 -112 R0
SYMATTR InstName R7
SYMATTR Value 1100k