* SPICE netlist
C1 N011 0 .01
C2 N015 0 4.7
C3 N020 N022 .001
M1 N016 N018 N019 N019 BSC42DN25NS3
R1 N019 0 .05
R2 N014 N017 200K
R3 N017 N021 40.2K
R4 N021 0 16.2K
L1 N001 N016 80
L2 0 N006 5
L3 0 N007 5
C4 N006 N010 4.7p Rser=2K
C5 N004 0 10
R7 N001 N009 1Meg
R8 N009 0 6.34K
D1 N006 N004 1N4148
R9 N001 N004 200K
D2 N016 N013 GSD2004W-V
D3 N001 N013 DFLZ33 N=4
D4 N007 N008 MBRS360
C6 N008 0 112
D5 N008 0 L1HZ-5780100000000 N=6 M=2
I1 0 N004 pwl(0 0 10u 28 20u 0)
R10 N012 0 4.99K
R11 N006 N012 100K
D6 N002 N001 1N4007
D7 0 N003 1N4007
D8 0 N002 1N4007
D9 N003 N001 1N4007
V1 N002 N003 SINE(0 167 600)
C7 N001 0 .01
C8 N001 N005 .022
R12 N005 0 200
XU1 N017 N017 N021 N017 N014 N011 N020 N022 N012 N010 N004 MP_01 N015 N018 N019 N009 0 LT3799-1 ;pnba Ctrl1)Ctrl2)Ctrl3)Vref)_Fault)Ct)Comp+)Comp-)FB)DCM)Vin))INTVcc)Gate)Sense)Vin_sense)GND
K1 L1 L2 L3 1.
.tran 5m

* LTspice schematic (.asc)
Version 4
SHEET 1 1744 928
WIRE -600 -464 -760 -464
WIRE -520 -464 -600 -464
WIRE -440 -464 -520 -464
WIRE -72 -464 -440 -464
WIRE 344 -464 -72 -464
WIRE -600 -448 -600 -464
WIRE -520 -448 -520 -464
WIRE -72 -448 -72 -464
WIRE -840 -416 -872 -416
WIRE -760 -416 -760 -464
WIRE -760 -416 -776 -416
WIRE -744 -416 -760 -416
WIRE -648 -416 -680 -416
WIRE -296 -400 -312 -400
WIRE -104 -400 -216 -400
WIRE -600 -368 -600 -384
WIRE -520 -368 -520 -384
WIRE -168 -352 -184 -352
WIRE -72 -352 -104 -400
WIRE -72 -352 -72 -368
WIRE -72 -352 -104 -352
WIRE 8 -352 -72 -352
WIRE 248 -352 72 -352
WIRE 536 -352 248 -352
WIRE 536 -336 536 -352
WIRE -440 -320 -440 -464
WIRE -872 -304 -872 -416
WIRE -808 -304 -872 -304
WIRE -648 -304 -648 -416
WIRE -648 -304 -728 -304
WIRE -520 -272 -520 -288
WIRE -72 -272 -72 -352
WIRE 664 -256 600 -256
WIRE 776 -256 728 -256
WIRE 872 -256 776 -256
WIRE 536 -240 536 -256
WIRE 600 -240 600 -256
WIRE 776 -240 776 -256
WIRE 872 -240 872 -256
WIRE -440 -224 -440 -240
WIRE -232 -224 -440 -224
WIRE 120 -224 88 -224
WIRE 248 -224 248 -352
WIRE 248 -224 184 -224
WIRE -440 -208 -440 -224
WIRE 344 -208 344 -464
WIRE 536 -208 344 -208
WIRE -872 -192 -872 -304
WIRE -840 -192 -872 -192
WIRE -760 -192 -776 -192
WIRE -744 -192 -760 -192
WIRE -648 -192 -648 -304
WIRE -648 -192 -680 -192
WIRE 344 -192 344 -208
WIRE 536 -160 536 -208
WIRE 600 -144 600 -160
WIRE 776 -144 776 -176
WIRE 872 -144 872 -176
WIRE -760 -128 -760 -192
WIRE -312 -128 -328 -128
WIRE -232 -128 -248 -128
WIRE 248 -128 248 -144
WIRE 248 -128 88 -128
WIRE -440 -112 -440 -128
WIRE 248 -112 248 -128
WIRE 344 -112 344 -128
WIRE -232 -32 -328 -32
WIRE 104 -32 88 -32
WIRE 184 -32 168 -32
WIRE 344 -32 344 -48
WIRE 536 -32 536 -80
WIRE 536 -32 344 -32
WIRE -328 -16 -328 -32
WIRE 248 -16 248 -32
WIRE 344 -16 344 -32
WIRE -248 64 -328 64
WIRE -232 64 -248 64
WIRE 296 64 88 64
WIRE -248 160 -248 64
WIRE -232 160 -248 160
WIRE 344 160 344 80
WIRE 344 160 88 160
WIRE 344 176 344 160
WIRE -328 256 -328 64
WIRE -248 256 -248 160
WIRE -232 256 -248 256
WIRE 120 256 88 256
WIRE 120 272 120 256
WIRE 344 272 344 256
WIRE -328 352 -328 336
WIRE -232 352 -328 352
WIRE 120 352 120 336
WIRE 120 352 88 352
WIRE -328 368 -328 352
WIRE -72 416 -72 400
WIRE -328 464 -328 448
FLAG -72 416 0
FLAG -328 -128 0
FLAG 184 -32 0
FLAG 344 272 0
FLAG -328 464 0
FLAG -184 -352 0
FLAG -440 -112 0
FLAG 536 -240 0
FLAG 600 -144 0
FLAG 872 -144 0
FLAG 776 -144 0
FLAG -312 -400 0
FLAG 248 -16 0
FLAG -760 -128 0
FLAG -600 -368 0
FLAG -520 -272 0
SYMBOL cap -248 -144 R90
SYMATTR InstName C1
SYMATTR Value .01
SYMBOL cap 104 -16 R270
SYMATTR InstName C2
SYMATTR Value 4.7
SYMBOL cap 104 272 R0
SYMATTR InstName C3
SYMATTR Value .001
SYMBOL nmos 296 -16 R0
SYMATTR InstName M1
SYMATTR Value BSC42DN25NS3
SYMBOL res 328 160 R0
SYMATTR InstName R1
SYMATTR Value .05
SYMBOL res -344 -32 R0
SYMATTR InstName R2
SYMATTR Value 200K
SYMBOL res -344 240 R0
SYMATTR InstName R3
SYMATTR Value 40.2K
SYMBOL res -344 352 R0
SYMATTR InstName R4
SYMATTR Value 16.2K
SYMBOL ind2 520 -176 R0
SYMATTR InstName L1
SYMATTR Value 80
SYMATTR Type ind
SYMBOL ind2 520 -240 M180
SYMATTR InstName L2
SYMATTR Value 5
SYMATTR Type ind
SYMBOL ind2 616 -144 R180
SYMATTR InstName L3
SYMATTR Value 5
SYMATTR Type ind
SYMBOL cap 184 -240 R90
SYMATTR InstName C4
SYMATTR Value 4.7p
SYMATTR SpiceLine Rser=2K
SYMBOL cap -104 -368 R90
SYMATTR InstName C5
SYMATTR Value 10
SYMBOL res -456 -336 R0
SYMATTR InstName R7
SYMATTR Value 1Meg
SYMBOL res -456 -224 R0
SYMATTR InstName R8
SYMATTR Value 6.34K
SYMBOL diode 72 -368 R90
SYMATTR InstName D1
SYMATTR Value 1N4148
SYMBOL res -88 -464 R0
SYMATTR InstName R9
SYMATTR Value 200K
SYMBOL diode 328 -48 M180
SYMATTR InstName D2
SYMATTR Value GSD2004W-V
SYMBOL zener 328 -192 R0
SYMATTR InstName D3
SYMATTR Value DFLZ33
SYMATTR Value2 N=4
SYMATTR Description Diode
SYMATTR Type diode
SYMBOL schottky 664 -240 R270
SYMATTR InstName D4
SYMATTR Value MBRS360
SYMATTR Description Diode
SYMATTR Type diode
SYMBOL cap 760 -240 R0
SYMATTR InstName C6
SYMATTR Value 112
SYMBOL LED 856 -240 R0
SYMATTR Value2 N=6 M=2
SYMATTR InstName D5
SYMATTR Value L1HZ-5780100000000
SYMATTR Description Diode
SYMATTR Type diode
SYMBOL current -296 -400 M90
SYMATTR InstName I1
SYMATTR Value pwl(0 0
SYMATTR Value2 10u 28
SYMATTR SpiceLine 20u 0)
SYMBOL res 232 -128 R0
SYMATTR InstName R10
SYMATTR Value 4.99K
SYMBOL res 232 -240 R0
SYMATTR InstName R11
SYMATTR Value 100K
SYMBOL diode -840 -400 R270
SYMATTR Value 1N4007
SYMATTR InstName D6
SYMBOL diode -744 -176 R270
SYMATTR InstName D7
SYMATTR Value 1N4007
SYMBOL diode -776 -176 M270
SYMATTR InstName D8
SYMATTR Value 1N4007
SYMBOL diode -680 -400 M270
SYMATTR InstName D9
SYMATTR Value 1N4007
SYMBOL voltage -824 -304 R270
SYMATTR InstName V1
SYMATTR Value SINE(0 167 600)
SYMBOL cap -616 -448 R0
SYMATTR Value .01
SYMATTR InstName C7
SYMBOL cap -536 -448 R0
SYMATTR InstName C8
SYMATTR Value .022
SYMBOL res -536 -384 R0
SYMATTR InstName R12
SYMATTR Value 200
SYMBOL PowerProducts\\LT3799-1 -72 64 R0
SYMATTR InstName U1