* SPICE netlist
V-Vcc_low 0 -Vcc_low {Vcc_low}
V+VCC +VCC_lim 0 {VCC_lim}
V+Vcc_low +Vcc_low 0 {Vcc_low}
V-VCC 0 -VCC_lim {VCC_lim}
D1 +Vcc_low N005 MBR1645
D3 N009 N004 D1N746
Q3 N005 N010 N012 0 MJE340
Q4 N005 N012 N013 0 2SC3281
R2 N013 realim 0R22
R3 realim N012 100R
R4 realim N022 0R22
Q5 N026 N020 N022 0 2SA1302
Q6 N026 N024 N020 0 MJE350
D4 N028 N023 D1N746
D6 N026 -Vcc_low MBR1645
R6 N010 N009 100R
R7 N024 N023 100R
Q9 N028 N030 N031 0 MJE340
R8 N031 -VCC_lim {rvas}
Q10 0 N027 N030 0 MPSA42
R9 N020 realim 100R
R11 N008 realim 10k
R12 N007 0 10k
C_comp_1 N028 N027 {c_mull}
Q13 0 N003 N002 0 MPSA92
Q14 N004 N002 N001 0 MJE350
C_comp_2 N004 N003 {c_mull}
R13 +VCC_lim N001 {rvas}
Q15 N009 N014 N016 0 MJE340
Q16 N023 N018 N016 0 MJE350
Rmvbe N014 N018 300
R18 N018 N023 150
R19 N009 N014 150
V+Vreg 0 -Vreg {Vreg}
Q_curr1 N011 N015 N021 0 MMPQ2222A
Q17 N006 N007 N011 0 MMPQ2222A
Q18 +Vreg N008 N011 0 MMPQ2222A
R_led1 0 N015 6.8k
RE_curr1 N021 -Vreg {rcurr}
D_1 N015 -Vreg LED18
RC1 +VCC_lim N003 {RC}
Q19 N003 +Vreg N006 0 MMPQ2222A
RE_curr2 +Vreg N017 {rcurr}
Q_curr2 N025 N019 N017 0 MMPQ2907A
Q20 N029 N007 N025 0 MMPQ2907A
Q21 N027 -Vreg N029 0 MMPQ2907A
RC2 N027 -VCC_lim {RC}
Q22 -Vreg N008 N025 0 MMPQ2907A
D_2 +Vreg N019 LED18
R_led2 N019 0 6.8k
RECC2 N030 -VCC_lim 1k
RECC1 +VCC_lim N002 1k
V-Vreg +Vreg 0 {Vreg}
V2 +VCC_real 0 {Vcc_real}
V3 0 -VCC_real {Vcc_real}
.tran 0 20m 0
.fourier 1k 20 v(realim)
;tran 0 12m 1m 20n; distorsion
;ac oct 20 0.1 1g
.param Vcc_low=23.5
.param Vreg=12
.param RC=2.4k
.param rvas=33
.param rcurr=560
;tran 0 62m 50m 100n
;.param rcurr=840
.param c_mull=40p
.param VCC_lim=68
.param VCC_real=70

* LTspice schematic (.asc)
Version 4
SHEET 1 4576 1792
WIRE 1344 -880 1344 -896
WIRE 1344 -880 1232 -880
WIRE 1456 -880 1344 -880
WIRE 1456 -864 1456 -880
WIRE 1232 -832 1232 -880
WIRE 16 -816 16 -880
WIRE 1456 -768 1456 -784
WIRE 1232 -720 1232 -752
WIRE 1392 -720 1232 -720
WIRE 16 -688 16 -736
WIRE 944 -688 16 -688
WIRE 1232 -672 1232 -720
WIRE 16 -624 16 -688
WIRE 944 -624 944 -688
WIRE 1152 -624 944 -624
WIRE 1168 -624 1152 -624
WIRE 160 -576 160 -624
WIRE 160 -576 80 -576
WIRE 288 -576 160 -576
WIRE 1232 -544 1232 -576
WIRE 1152 -432 1152 -624
WIRE 1280 -432 1152 -432
WIRE 1456 -432 1456 -672
WIRE 1456 -432 1344 -432
WIRE 1456 -384 1456 -432
WIRE 1936 -368 1936 -384
WIRE 1936 -368 1712 -368
WIRE 2144 -368 1936 -368
WIRE 2272 -368 2208 -368
WIRE 16 -352 16 -528
WIRE 288 -352 288 -576
WIRE 1712 -336 1712 -368
WIRE -48 -304 -576 -304
WIRE 432 -304 352 -304
WIRE 1456 -288 1456 -320
WIRE 1520 -288 1456 -288
WIRE 1648 -288 1600 -288
WIRE 1936 -240 1936 -368
WIRE 16 -224 16 -256
WIRE 160 -224 16 -224
WIRE 288 -224 288 -256
WIRE 288 -224 160 -224
WIRE 1456 -224 1456 -288
WIRE 1456 -224 1360 -224
WIRE 1552 -224 1456 -224
WIRE 1552 -208 1552 -224
WIRE 1712 -192 1712 -240
WIRE 1872 -192 1712 -192
WIRE 1456 -144 1456 -224
WIRE 736 -128 736 -192
WIRE -192 -112 -192 -144
WIRE -192 -112 -352 -112
WIRE 0 -112 0 -160
WIRE 1712 -112 1712 -192
WIRE 1712 -112 1680 -112
WIRE 1776 -112 1712 -112
WIRE 1936 -112 1936 -144
WIRE 1552 -96 1552 -128
WIRE 1552 -96 1520 -96
WIRE 1776 -96 1776 -112
WIRE -192 -80 -192 -112
WIRE -352 -64 -352 -112
WIRE 1552 -48 1552 -96
WIRE 160 -32 160 -224
WIRE 1776 0 1776 -16
WIRE 1936 0 1936 -32
WIRE 1936 0 1776 0
WIRE 2032 0 1936 0
WIRE 0 16 0 -32
WIRE 96 16 0 16
WIRE 1776 16 1776 0
WIRE 1936 32 1936 0
WIRE -576 48 -576 -304
WIRE -576 48 -656 48
WIRE 432 48 432 -304
WIRE 736 48 736 -48
WIRE 736 48 432 48
WIRE 1456 48 1456 -48
WIRE 2032 48 2032 0
WIRE 2096 48 2032 48
WIRE -192 64 -192 0
WIRE 1552 96 1552 32
WIRE 1552 96 1520 96
WIRE -352 112 -352 0
WIRE -256 112 -352 112
WIRE 0 112 0 16
WIRE 1776 112 1776 96
WIRE 1776 112 1712 112
WIRE -656 128 -656 48
WIRE 1552 128 1552 96
WIRE -352 144 -352 112
WIRE 160 144 160 64
WIRE 1936 144 1936 112
WIRE 1712 192 1712 112
WIRE 1872 192 1712 192
WIRE 1456 224 1456 144
WIRE 1552 224 1552 208
WIRE 1552 224 1456 224
WIRE -656 240 -656 208
WIRE -352 240 -352 224
WIRE 0 240 0 176
WIRE 160 240 160 224
WIRE 160 240 0 240
WIRE 1712 240 1712 192
WIRE 160 272 160 240
WIRE 1456 288 1456 224
WIRE 1520 288 1456 288
WIRE 1648 288 1600 288
WIRE -192 304 -192 160
WIRE -192 304 -320 304
WIRE -64 304 -192 304
WIRE -2016 320 -2064 320
WIRE -1632 320 -1632 288
WIRE 1456 320 1456 288
WIRE -2064 336 -2064 320
WIRE -1344 336 -1344 240
WIRE -2016 368 -2016 320
WIRE -320 368 -320 304
WIRE -64 368 -64 304
WIRE 1712 368 1712 336
WIRE 1936 368 1936 240
WIRE 1936 368 1712 368
WIRE 2112 368 1936 368
WIRE 2288 368 2176 368
WIRE -1712 384 -1712 352
WIRE -576 416 -576 48
WIRE -384 416 -576 416
WIRE 432 416 432 48
WIRE 432 416 0 416
WIRE 1280 432 1152 432
WIRE 1456 432 1456 384
WIRE 1456 432 1344 432
WIRE -1632 464 -1632 400
WIRE -1632 464 -1712 464
WIRE -1568 464 -1632 464
WIRE -1344 464 -1344 416
WIRE -1344 464 -1568 464
WIRE -1568 480 -1568 464
WIRE -1632 512 -1632 464
WIRE -1632 512 -1696 512
WIRE -320 512 -320 464
WIRE -2240 528 -2288 528
WIRE -1696 528 -1696 512
WIRE -1344 528 -1344 464
WIRE 1232 544 1232 512
WIRE -2240 560 -2240 528
WIRE -144 560 -256 560
WIRE -64 560 -64 464
WIRE -64 560 -144 560
WIRE -2016 576 -2016 448
WIRE -2016 576 -2064 576
WIRE -1632 592 -1632 512
WIRE 1152 592 1152 432
WIRE 1152 592 944 592
WIRE 1168 592 1152 592
WIRE -144 608 -144 560
WIRE -1696 640 -1696 608
WIRE 1456 672 1456 432
WIRE -320 688 -320 608
WIRE 944 688 944 592
WIRE 944 688 -320 688
WIRE -1632 704 -1632 672
WIRE -1344 704 -1344 608
WIRE 1232 720 1232 640
WIRE 1392 720 1232 720
WIRE -2240 736 -2240 640
WIRE -320 736 -320 688
WIRE 1232 768 1232 720
WIRE 1456 784 1456 768
WIRE -320 880 -320 816
WIRE 1232 880 1232 848
WIRE 1344 880 1232 880
WIRE 1456 880 1456 864
WIRE 1456 880 1344 880
WIRE 1344 896 1344 880
FLAG -1568 480 0
FLAG -1632 288 +VCC_lim
FLAG -1712 352 +Vcc_low
FLAG -1696 640 -Vcc_low
FLAG -1632 704 -VCC_lim
FLAG 2288 368 -Vcc_low
IOPIN 2736 496 In
FLAG 2272 -368 +Vcc_low
IOPIN 2720 -240 In
FLAG 2096 48 realim
FLAG -656 240 0
FLAG 1232 -544 0
FLAG 1232 512 0
FLAG -2288 528 +Vreg
FLAG -2064 576 -Vreg
FLAG 160 -624 +Vreg
FLAG 160 272 -Vreg
FLAG -192 -144 +Vreg
FLAG -144 608 -Vreg
FLAG -352 240 0
FLAG 0 -160 0
FLAG -2240 736 0
FLAG -2064 336 0
FLAG 1344 -896 +VCC_lim
FLAG 1344 896 -VCC_lim
FLAG 16 -880 +VCC_lim
FLAG -320 880 -VCC_lim
FLAG -1344 240 +VCC_real
FLAG -1344 704 -VCC_real
FLAG 736 -192 realim
SYMBOL voltage -1696 512 R0
SYMATTR InstName V-Vcc_low
SYMATTR Value {Vcc_low}
SYMBOL voltage -1632 304 R0
SYMATTR InstName V+VCC
SYMATTR Value {VCC_lim}
SYMBOL voltage -1712 368 R0
SYMATTR InstName V+Vcc_low
SYMATTR Value {Vcc_low}
SYMBOL voltage -1632 576 R0
SYMATTR InstName V-VCC
SYMATTR Value {VCC_lim}
SYMBOL diode 2208 -352 M270
SYMATTR InstName D1
SYMATTR Value MBR1645
SYMBOL zener 1472 -320 R180
SYMATTR InstName D3
SYMATTR Value D1N746
SYMBOL npn 1648 -336 R0
SYMATTR InstName Q3
SYMATTR Value MJE340
SYMBOL npn 1872 -240 R0
SYMATTR InstName Q4
SYMATTR Value 2SC3281
SYMBOL res 1920 -128 R0
SYMATTR InstName R2
SYMATTR Value 0R22
SYMBOL res 1792 0 R180
SYMATTR InstName R3
SYMATTR Value 100R
SYMBOL res 1920 16 R0
SYMATTR InstName R4
SYMATTR Value 0R22
SYMBOL pnp 1872 240 M180
SYMATTR InstName Q5
SYMATTR Value 2SA1302
SYMBOL pnp 1648 336 M180
SYMATTR InstName Q6
SYMATTR Value MJE350
SYMBOL zener 1472 384 R180
SYMATTR InstName D4
SYMATTR Value D1N746
SYMBOL diode 2112 384 R270
SYMATTR InstName D6
SYMATTR Value MBR1645
SYMBOL res 1616 -304 R90
SYMATTR InstName R6
SYMATTR Value 100R
SYMBOL res 1616 272 R90
SYMATTR InstName R7
SYMATTR Value 100R
SYMBOL npn 1392 672 R0
SYMATTR InstName Q9
SYMATTR Value MJE340
SYMBOL res 1440 768 R0
SYMATTR InstName R8
SYMATTR Value {rvas}
SYMBOL npn 1168 544 R0
SYMATTR InstName Q10
SYMATTR Value MPSA42
SYMBOL res 1792 112 R180
SYMATTR InstName R9
SYMATTR Value 100R
SYMBOL res 752 -32 R180
SYMATTR InstName R11
SYMATTR Value 10k
SYMBOL res -672 112 R0
SYMATTR InstName R12
SYMATTR Value 10k
SYMBOL cap 1344 416 R90
SYMATTR InstName C_comp_1
SYMATTR Value {c_mull}
SYMBOL pnp 1168 -576 M180
SYMATTR InstName Q13
SYMATTR Value MPSA92
SYMBOL pnp 1392 -672 M180
SYMATTR InstName Q14
SYMATTR Value MJE350
SYMBOL cap 1344 -448 R90
SYMATTR InstName C_comp_2
SYMATTR Value {c_mull}
SYMBOL res 1440 -880 R0
SYMATTR InstName R13
SYMATTR Value {rvas}
SYMBOL npn 1520 -144 M0
SYMATTR InstName Q15
SYMATTR Value MJE340
SYMBOL pnp 1520 144 R180
SYMATTR InstName Q16
SYMATTR Value MJE350
SYMBOL res 1536 -64 R0
SYMATTR InstName Rmvbe
SYMATTR Value 300
SYMBOL res 1536 112 R0
SYMATTR InstName R18
SYMATTR Value 150
SYMBOL res 1536 -224 R0
SYMATTR InstName R19
SYMATTR Value 150
SYMBOL voltage -2016 352 R0
SYMATTR InstName V+Vreg
SYMATTR Value {Vreg}
SYMBOL npn 96 -32 R0
SYMATTR InstName Q_curr1
SYMATTR Value MMPQ2222A
SYMBOL npn -48 -352 R0
SYMATTR InstName Q17
SYMATTR Value MMPQ2222A
SYMBOL npn 352 -352 M0
SYMATTR InstName Q18
SYMATTR Value MMPQ2222A
SYMBOL res -16 -128 R0
SYMATTR InstName R_led1
SYMATTR Value 6.8k
SYMBOL res 144 128 R0
SYMATTR InstName RE_curr1
SYMATTR Value {rcurr}
SYMBOL LED -16 112 R0
SYMATTR InstName D_1
SYMATTR Value LED18
SYMBOL res 0 -832 R0
SYMATTR InstName RC1
SYMATTR Value {RC}
SYMBOL npn 80 -624 M0
SYMATTR InstName Q19
SYMATTR Value MMPQ2222A
SYMBOL res -208 -96 R0
SYMATTR InstName RE_curr2
SYMATTR Value {rcurr}
SYMBOL pnp -256 160 M180
SYMATTR InstName Q_curr2
SYMATTR Value MMPQ2907A
SYMBOL pnp -384 464 M180
SYMATTR InstName Q20
SYMATTR Value MMPQ2907A
SYMBOL pnp -256 608 R180
SYMATTR InstName Q21
SYMATTR Value MMPQ2907A
SYMBOL res -336 720 R0
SYMATTR InstName RC2
SYMATTR Value {RC}
SYMBOL pnp 0 464 R180
SYMATTR InstName Q22
SYMATTR Value MMPQ2907A
SYMBOL LED -368 -64 R0
SYMATTR InstName D_2
SYMATTR Value LED18
SYMBOL res -368 128 R0
SYMATTR InstName R_led2
SYMATTR Value 6.8k
SYMBOL res 1216 752 R0
SYMATTR InstName RECC2
SYMATTR Value 1k
SYMBOL res 1216 -848 R0
SYMATTR InstName RECC1
SYMATTR Value 1k
SYMBOL voltage -2240 544 R0
SYMATTR InstName V-Vreg
SYMATTR Value {Vreg}
SYMBOL voltage -1344 320 R0
SYMATTR InstName V2
SYMATTR Value {Vcc_real}
SYMBOL voltage -1344 512 R0
SYMATTR InstName V3
SYMATTR Value {Vcc_real}