export45012_0	= StartScreen

ExitObj::doit:
		ldi	$1
		sag	global[$32]
		ret

StartScreen::init:
		link	$b
		pushi	$94		; 148, init
		push0
		&rest	$1
		super	StaticRealmRoom, $4
		bnot
		push1
		pushi	$9ca9		; -25431
		callk	kernel_3, $2
		bnot
		pushi	$95		; 149, dispose
		push0
		class	WinDialogSet
		send	$4
		bnot
		pushi	$a6		; 166, release
		push0
		class	SpellList
		send	$4
		bnot
		pushi	$2f4		; 756, pConnected
		push1
		push0
		lag	global[$6a]
		send	$6
		bnot
		pushi	$37e		; 894, pLeader
		push0
		class	GroupList
		send	$4
		bnot
		bnt	code_0196
		pushi	$58		; 88, 'X', delete
		push1
		pushi	$37e		; 894, pLeader
		push0
		class	GroupList
		send	$4
		bnot
		push
		class	GroupList
		send	$6
		bnot
		pushi	$69		; 105, 'i', hide
		push0
		lag	global[$6]
		send	$4
		bnot
code_0196:	pushi	$95		; 149, dispose
		push0
		class	gApproveGiveList
		send	$4
		bnot
		push1
		pushi	$5		; scaleY
		callk	kernel_128, $2
		bnot
		pushi	$8d		; 141, new
		push1
		pushi	$a		; 10, inTop
		class	ByteArray
		send	$6
		bnot
		sat	temp[$8]
code_01b3:	push2
		pushi	$d		; 13, seenRect
		pushi	$71		; 113, 'q', data
		push0
		lat	temp[$8]
		send	$4
		bnot
		push
		callk	kernel_128, $4
		bnot
		bnt	code_01c9
		ldi	$0
		jmp	code_01b3

code_01c9:	pushi	$33d		; 829, flush
		push0
		class	ActionQMgr
		send	$4
		bnot
		pushi	$a6		; 166, release
		push0
		class	MovieCmdList
		send	$4
		bnot
		pushi	$95		; 149, dispose
		push0
		lat	temp[$8]
		send	$4
		bnot
		pushi	$94		; 148, init
		pushi	$3		; z
		pushi	$f5		; 245, format
		pushi	$3		; z
		lofsa	string_022c	; "Version: %d.%03d"
		push
		pushi	$323		; 803, pMajorVersion
		push0
		class	
		send	$4
		bnot
		push
		pushi	$324		; 804, pMinorVersion
		push0
		class	
		send	$4
		bnot
		push
		ldi	$10d		; 269, lowWord
		sub
		push
		class	Str
		send	$a
		bnot
		push
		pushi	$5		; scaleY
		dup
		pushi	$8d		; 141, new
		push0
		class	ShadowText
		send	$4
		bnot
		send	$a
		bnot
		pushi	$8d		; 141, new
		push0
		class	File
		send	$4
		bnot
		sat	temp[$0]
		pushi	$20		; 32, ' ', name
		push1
		lofsa	string_023d	; "UID.DAT"
		push
		lat	temp[$0]
		send	$6
		bnot
		pushi	$248		; 584, open
		push1
		push1
		lat	temp[$0]
		send	$6
		bnot
		bnt	code_025d
		pushi	$135		; 309, getWord
		push0
		lat	temp[$0]
		send	$4
		bnot
		sag	global[$d1]
		pushi	$253		; 595, close
		push0
		pushi	$95		; 149, dispose
		push0
		lat	temp[$0]
		send	$8
		bnot
code_025d:	pushi	$271		; 625, handsLevel
		push0
		lag	global[$2]
		send	$4
		bnot
		bnt	code_0273
		pushi	$276		; 630, handsOn
		push0
		lag	global[$2]
		send	$4
		bnot
		jmp	code_025d

code_0273:	lag	global[$d2]
		bnt	code_028a
		pushi	$1dd		; 477, clear
		push1
		push1
		class	InfoQueue
		send	$6
		bnot
		pushi	$1dd		; 477, clear
		push0
		lag	global[$9c]
		send	$4
		bnot
code_028a:	pushi	$8d		; 141, new
		push0
		class	LongInt
		send	$4
		bnot
		sal	local[$0]
		pushi	$8d		; 141, new
		push0
		class	LongInt
		send	$4
		bnot
		sal	local[$1]
		pushi	$8d		; 141, new
		push0
		class	LongInt
		send	$4
		bnot
		sal	local[$2]
		pushi	$8d		; 141, new
		push1
		push1
		class	LongInt
		send	$6
		bnot
		sal	local[$3]
		pushi	$8d		; 141, new
		push0
		class	LongInt
		send	$4
		bnot
		sal	local[$4]
		pushi	$8d		; 141, new
		push0
		class	Str
		send	$4
		bnot
		sal	local[$b]
		pushi	$f5		; 245, format
		push1
		lofsa	string_0245	; "router.realmserver.com"
		push
		class	Str
		send	$6
		bnot
		sal	local[$5]
		pushi	$f5		; 245, format
		push1
		lofsa	string_025c	; "7002"
		push
		class	Str
		send	$6
		bnot
		sal	local[$6]
		ldi	$1
		sat	temp[$5]
code_02ef:	lst	temp[$5]
		push1
		push0
		callk	kernel_157, $2
		bnot
		lt?
		bnt	code_042f
		push2
		push1
		lst	temp[$5]
		callk	kernel_157, $4
		bnot
		sat	temp[$7]
		pushi	$d0		; 208, with
		push1
		push
		class	Str
		send	$6
		bnot
		sat	temp[$6]
		push2
		pushi	$4		; scaleX
		lst	temp[$7]
		callk	kernel_91, $4
		bnot
		pushi	$d5		; 213, compare
		push1
		lofsa	string_0261	; "-DevServer"
		push
		lat	temp[$6]
		send	$6
		bnot
		bnt	code_0338
		pushi	$f5		; 245, format
		push1
		lofsa	string_026c	; "debug.realmserver.com"
		push
		class	Str
		send	$6
		bnot
		sal	local[$5]
code_0338:	pushi	$fe		; 254, strIndex
		push1
		lofsa	string_0282	; "-Z"
		push
		lat	temp[$6]
		send	$6
		bnot
		push
		ldi	$0
		eq?
		bnt	code_0421
		pushi	$d7		; 215, move
		pushi	$3		; z
		push0
		push2
		pushi	$ff		; 255, asInteger
		lat	temp[$6]
		send	$a
		bnot
		pushi	$d0		; 208, with
		push1
		lofsa	string_0285	; "="
		push
		class	Str
		send	$6
		bnot
		sat	temp[$2]
		pushi	$8d		; 141, new
		push0
		class	Str
		send	$4
		bnot
		sat	temp[$1]
code_0375:	pushi	$fc		; 252, getToken
		push2
		lst	temp[$2]
		lst	temp[$1]
		lat	temp[$6]
		send	$8
		bnot
		bnt	code_040f
		pushi	$d5		; 213, compare
		push1
		lofsa	string_0287	; "rs"
		push
		lat	temp[$1]
		send	$6
		bnot
		bnt	code_03a7
		pushi	$fc		; 252, getToken
		push2
		lst	temp[$2]
		lsl	local[$5]
		lat	temp[$6]
		send	$8
		bnot
		ldi	$1
		sal	local[$7]
		jmp	code_0375

code_03a7:	pushi	$d5		; 213, compare
		push1
		lofsa	string_028a	; "rp"
		push
		lat	temp[$1]
		send	$6
		bnot
		bnt	code_03c9
		pushi	$fc		; 252, getToken
		push2
		lst	temp[$2]
		lsl	local[$6]
		lat	temp[$6]
		send	$8
		bnot
		ldi	$1
		sal	local[$7]
		jmp	code_0375

code_03c9:	pushi	$d5		; 213, compare
		push1
		lofsa	string_028d	; "ln"
		push
		lat	temp[$1]
		send	$6
		bnot
		bnt	code_03eb
		pushi	$fc		; 252, getToken
		push2
		lst	temp[$2]
		lsg	global[$cf]
		lat	temp[$6]
		send	$8
		bnot
		ldi	$1
		sal	local[$7]
		jmp	code_0375

code_03eb:	pushi	$d5		; 213, compare
		push1
		lofsa	string_0290	; "pw"
		push
		lat	temp[$1]
		send	$6
		bnot
		bnt	code_0375
		pushi	$fc		; 252, getToken
		push2
		lst	temp[$2]
		lsg	global[$d0]
		lat	temp[$6]
		send	$8
		bnot
		ldi	$1
		sal	local[$7]
		jmp	code_0375

code_040f:	pushi	$95		; 149, dispose
		push0
		lat	temp[$2]
		send	$4
		bnot
		pushi	$95		; 149, dispose
		push0
		lat	temp[$1]
		send	$4
		bnot
code_0421:	pushi	$95		; 149, dispose
		push0
		lat	temp[$6]
		send	$4
		bnot
		+at	temp[$5]
		jmp	code_02ef

code_042f:	pushi	$95		; 149, dispose
		push0
		lag	global[$1]
		send	$4
		bnot
		ldi	$0
		sag	global[$1]
		pushi	$95		; 149, dispose
		push0
		class	StockCharacters
		send	$4
		bnot
		pushi	$94		; 148, init
		push0
		pushi	$9f		; 159, add
		push0
		class	StockCharacters
		send	$8
		bnot
		ldi	$0
		sag	global[$d3]
		pushi	$c9		; 201, setScript
		push1
		lofsa	connectScript
		push
		lag	global[$3]
		send	$6
		bnot
		ret

StartScreen::dispose:
		pushi	$95		; 149, dispose
		push0
		lal	local[$0]
		send	$4
		bnot
		pushi	$95		; 149, dispose
		push0
		lal	local[$1]
		send	$4
		bnot
		pushi	$95		; 149, dispose
		push0
		lal	local[$2]
		send	$4
		bnot
		pushi	$95		; 149, dispose
		push0
		lal	local[$3]
		send	$4
		bnot
		pushi	$95		; 149, dispose
		push0
		lal	local[$4]
		send	$4
		bnot
		pushi	$95		; 149, dispose
		push0
		lal	local[$5]
		send	$4
		bnot
		pushi	$95		; 149, dispose
		push0
		lal	local[$6]
		send	$4
		bnot
		pushi	$5a		; 90, 'Z', size
		push0
		class	StockCharacters
		send	$4
		bnot
		bnt	code_04b9
		pushi	$9d		; 157, eachElementDo
		push1
		pushi	$3c6		; 966, deleteFromRoom
		class	StockCharacters
		send	$6
		bnot
code_04b9:	pushi	$95		; 149, dispose
		push0
		lal	local[$b]
		send	$4
		bnot
		pushi	$95		; 149, dispose
		push0
		super	StaticRealmRoom, $4
		bnot
		ret

StartScreen::handleEvent:
		link	$1
		pushi	$2b		; 43, '+', type
		push0
		lap	param[$1]
		send	$4
		bnot
		sat	temp[$0]
		push
		ldi	$c		; 12, inBottom
		and
		bt	code_04e3
		lst	temp[$0]
		ldi	$3		; z
		and
code_04e3:	bnt	code_04ef
		pushi	$50		; 80, 'P', claimed
		push1
		push1
		lap	param[$1]
		send	$6
		bnot
		ret

code_04ef:	ret

ServerSelector::doit:
		lap	param[$1]
		sag	global[$fd]
		pushi	$bd		; 189, cycles
		push1
		push1
		lofsa	connectScript
		send	$6
		bnot
		ret

connectScript::handleError:
		ldi	$1
		aTop	cycles
		ret

connectScript::perform:
		lsp	param[$1]
		ldi	$0
		eq?
		bnt	code_0512
		ldi	$1
		sag	global[$32]
		jmp	code_0516

code_0512:	ldi	$1
		aTop	cycles
code_0516:	ret

connectScript::changeState:
		link	$13
		lap	param[$1]
		aTop	state
		push
		dup
		ldi	$0
		eq?
		bnt	code_054b
		push2
		push1
		push2
		pushi	$9		; inLeft
		lsg	global[$cf]
		callk	kernel_91, $4
		bnot
		push
		callk	kernel_92, $4
		bnot
		bnt	code_0540
		pushi	$c7		; 199, cue
		push0
		self	$4
		bnot
		jmp	code_0f06

code_0540:	push2
		pushi	$26		; 38, '&', back
		pushSelf
		callk	kernel_118, $4
		bnot
		jmp	code_0f06

code_054b:	dup
		ldi	$1
		eq?
		bnt	code_0848
		lag	global[$d2]
		not
		bnt	code_057a
		ldi	$1
		sag	global[$e2]
		push2
		pushi	$a		; 10, inTop
		lofsa	string_02b9	; "RESSCI.000"
		push
		callk	kernel_93, $4
		bnot
		not
		bt	code_0574
		push2
		pushi	$a		; 10, inTop
		lofsa	string_02c4	; "RESSCI.013"
		push
		callk	kernel_93, $4
		bnot
code_0574:	bnt	code_057a
		ldi	$3		; z
		sag	global[$e2]
code_057a:	pushi	$d0		; 208, with
		pushi	$23		; 35, '#', text
		pushi	$55		; 85, 'U', button
		pushi	$8b		; 139, numLines
		pushi	$ec		; 236, track
		pushi	$50		; 80, 'P', claimed
		pushi	$56		; 86, 'V', icon
		pushi	$57		; 87, 'W', draw
		pushi	$8b		; 139, numLines
		pushi	$f1		; 241, scale
		pushi	$8b		; 139, numLines
		pushi	$fa		; 250, lower
		pushi	$8b		; 139, numLines
		pushi	$e		; 14, view
		pushi	$90		; 144, bitGetIndex
		dup
		pushi	$89		; 137, top
		pushi	$f		; 15, loop
		pushi	$90		; 144, bitGetIndex
		dup
		pushi	$83		; 131, mirrored
		pushi	$c6		; 198, changeState
		pushi	$4		; scaleX
		pushi	$83		; 131, mirrored
		pushi	$c7		; 199, cue
		pushi	$4		; scaleX
		pushi	$c1		; 193, lastTicks
		pushi	$e9		; 233, howFar
		push2
		pushi	$41		; 65, 'A', moveSpeed
		pushi	$f3		; 243, nextEvent
		pushi	$a5		; 165, first
		pushi	$5f		; 95, '_', min
		pushi	$5e		; 94, '^', handle
		pushi	$58		; 88, 'X', delete
		pushi	$5d		; 93, ']', dataInc
		pushi	$c3		; 195, script
		class	ByteArray
		send	$4a
		bnot
		sat	temp[$11]
		pushi	$d1		; 209, newWith
		pushi	$11		; 17, bitmap
		pushi	$bd		; 189, cycles
		pushi	$55		; 85, 'U', button
		pushi	$8b		; 139, numLines
		pushi	$ec		; 236, track
		pushi	$56		; 86, 'V', icon
		pushi	$57		; 87, 'W', draw
		pushi	$53		; 83, 'S', restore
		pushi	$8b		; 139, numLines
		pushi	$f2		; 242, pCast
		pushi	$8b		; 139, numLines
		pushi	$16		; 22, lsLeft
		pushi	$81		; 129, magnifier
		pushi	$3e		; 62, '>', b_incr
		pushi	$4		; scaleX
		push0
		push0
		push0
		class	ByteArray
		send	$26
		bnot
		sat	temp[$12]
		pushi	$4b		; 75, 'K', at
		pushi	$11		; 17, bitmap
		pushi	$10		; 16, cel
		pushi	$74		; 116, 't', all
		pushi	$5		; scaleY
		pushi	$5b		; 91, '[', points
		pushi	$5f		; 95, '_', min
		pushi	$5e		; 94, '^', handle
		pushi	$5d		; 93, ']', dataInc
		pushi	$c3		; 195, script
		pushi	$90		; 144, bitGetIndex
		pushi	$83		; 131, mirrored
		pushi	$c6		; 198, changeState
		pushi	$6		; maxScale
		pushi	$8b		; 139, numLines
		pushi	$de		; 222, centerIn
		pushi	$66		; 102, 'f', flags
		pushi	$8b		; 139, numLines
		pushi	$43		; 67, 'C', heading
		send	$26
		bnot
		pushi	$4b		; 75, 'K', at
		pushi	$11		; 17, bitmap
		pushi	$20		; 32, ' ', name
		pushi	$fe		; 254, strIndex
		pushi	$83		; 131, mirrored
		pushi	$e9		; 233, howFar
		pushi	$6		; maxScale
		pushi	$c1		; 193, lastTicks
		pushi	$e9		; 233, howFar
		push2
		pushi	$28		; 40, '(', style
		pushi	$3		; z
		pushi	$80		; 128, lastKey
		pushi	$3		; z
		pushi	$39		; 57, '9', b_moveCnt
		push0
		pushi	$63		; 99, 'c', perform
		push1
		pushi	$80		; 128, lastKey
		lat	temp[$12]
		send	$26
		bnot
		pushi	$4b		; 75, 'K', at
		pushi	$11		; 17, bitmap
		pushi	$30		; 48, '0', who
		pushi	$6b		; 107, 'k', vanishingX
		push1
		pushi	$46		; 70, 'F', isBlocked
		push0
		pushi	$43		; 67, 'C', heading
		push2
		pushi	$80		; 128, lastKey
		pushi	$6b		; 107, 'k', vanishingX
		push2
		pushi	$c		; 12, inBottom
		pushi	$28		; 40, '(', style
		pushi	$63		; 99, 'c', perform
		pushi	$3		; z
		pushi	$80		; 128, lastKey
		pushi	$43		; 67, 'C', heading
		pushi	$3		; z
		lat	temp[$12]
		send	$26
		bnot
		pushi	$4b		; 75, 'K', at
		pushi	$11		; 17, bitmap
		pushi	$40		; 64, '@', yStep
		pushi	$30		; 48, '0', who
		pushi	$83		; 131, mirrored
		pushi	$c3		; 195, script
		pushi	$4		; scaleX
		pushi	$e2		; 226, heighten
		pushi	$e1		; 225, height
		pushi	$80		; 128, lastKey
		pushi	$3e		; 62, '>', b_incr
		push1
		pushi	$75		; 117, 'u', show
		pushi	$48		; 72, 'H', modifiers
		pushi	$f		; 15, loop
		pushi	$b6		; 182, put
		pushi	$4e		; 78, 'N', width
		push1
		pushi	$c1		; 193, lastTicks
		lat	temp[$12]
		send	$26
		bnot
		pushi	$4b		; 75, 'K', at
		pushi	$11		; 17, bitmap
		pushi	$50		; 80, 'P', claimed
		pushi	$e1		; 225, height
		push2
		pushi	$83		; 131, mirrored
		pushi	$c6		; 198, changeState
		push2
		pushi	$bf		; 191, lastSeconds
		push0
		push0
		push0
		push0
		pushi	$57		; 87, 'W', draw
		pushi	$f3		; 243, nextEvent
		pushi	$a5		; 165, first
		pushi	$5f		; 95, '_', min
		pushi	$f		; 15, loop
		pushi	$b6		; 182, put
		lat	temp[$12]
		send	$26
		bnot
		pushi	$4b		; 75, 'K', at
		pushi	$11		; 17, bitmap
		pushi	$60		; 96, '`', sec
		pushi	$e		; 14, view
		pushi	$46		; 70, 'F', isBlocked
		pushi	$e3		; 227, expand
		pushi	$c		; 12, inBottom
		pushi	$66		; 102, 'f', flags
		pushi	$ad		; 173, addBefore
		pushi	$25		; 37, '%', fore
		pushi	$ff		; 255, asInteger
		dup
		push0
		push0
		push1
		pushi	$3c		; 60, '<', b_di
		pushi	$7		; priority
		pushi	$e2		; 226, heighten
		pushi	$f4		; 244, curEvent
		lat	temp[$12]
		send	$26
		bnot
		pushi	$4b		; 75, 'K', at
		pushi	$11		; 17, bitmap
		pushi	$70		; 112, 'p', coordType
		pushi	$f		; 15, loop
		pushi	$b6		; 182, put
		pushi	$e		; 14, view
		pushi	$46		; 70, 'F', isBlocked
		pushi	$e3		; 227, expand
		pushi	$18		; 24, lsRight
		pushi	$66		; 102, 'f', flags
		pushi	$ad		; 173, addBefore
		pushi	$25		; 37, '%', fore
		pushi	$ff		; 255, asInteger
		dup
		push0
		push0
		pushi	$bb		; 187, start
		push0
		push0
		lat	temp[$12]
		send	$26
		bnot
		pushi	$4b		; 75, 'K', at
		pushi	$11		; 17, bitmap
		pushi	$80		; 128, lastKey
		push0
		push0
		pushi	$2b		; 43, '+', type
		pushi	$df		; 223, centerOn
		pushi	$2b		; 43, '+', type
		pushi	$d8		; 216, callKernel
		pushi	$83		; 131, mirrored
		pushi	$eb		; 235, onMe
		pushi	$5		; scaleY
		pushi	$89		; 137, top
		pushi	$1c		; 28, brLeft
		pushi	$7		; priority
		pushi	$e2		; 226, heighten
		pushi	$e8		; 232, intersects
		pushi	$5b		; 91, '[', points
		pushi	$5f		; 95, '_', min
		lat	temp[$12]
		send	$26
		bnot
		pushi	$4b		; 75, 'K', at
		pushi	$11		; 17, bitmap
		pushi	$90		; 144, bitGetIndex
		pushi	$5e		; 94, '^', handle
		pushi	$5d		; 93, ']', dataInc
		pushi	$c3		; 195, script
		pushi	$f		; 15, loop
		pushi	$b6		; 182, put
		pushi	$4e		; 78, 'N', width
		push1
		pushi	$c1		; 193, lastTicks
		pushi	$e1		; 225, height
		push2
		pushi	$83		; 131, mirrored
		pushi	$c6		; 198, changeState
		push2
		pushi	$bf		; 191, lastSeconds
		push0
		push0
		lat	temp[$12]
		send	$26
		bnot
		pushi	$4b		; 75, 'K', at
		pushi	$11		; 17, bitmap
		pushi	$a0		; 160, firstTrue
		push0
		push0
		pushi	$57		; 87, 'W', draw
		pushi	$f3		; 243, nextEvent
		pushi	$a5		; 165, first
		pushi	$5f		; 95, '_', min
		pushi	$f		; 15, loop
		pushi	$b6		; 182, put
		pushi	$e		; 14, view
		pushi	$46		; 70, 'F', isBlocked
		pushi	$e3		; 227, expand
		pushi	$c		; 12, inBottom
		pushi	$66		; 102, 'f', flags
		pushi	$ad		; 173, addBefore
		pushi	$25		; 37, '%', fore
		pushi	$ff		; 255, asInteger
		lat	temp[$12]
		send	$26
		bnot
		pushi	$4b		; 75, 'K', at
		pushi	$e		; 14, view
		pushi	$b0		; 176, intersection
		pushi	$ff		; 255, asInteger
		push0
		push0
		push1
		pushi	$3c		; 60, '<', b_di
		pushi	$7		; priority
		pushi	$e2		; 226, heighten
		pushi	$f4		; 244, curEvent
		pushi	$5b		; 91, '[', points
		pushi	$5f		; 95, '_', min
		pushi	$5e		; 94, '^', handle
		pushi	$5d		; 93, ']', dataInc
		pushi	$c3		; 195, script
		lat	temp[$12]
		send	$20
		bnot
		pushi	$6		; maxScale
		pushi	$10		; 16, cel
		pushi	$71		; 113, 'q', data
		push0
		lat	temp[$11]
		send	$4
		bnot
		push
		pushi	$71		; 113, 'q', data
		push0
		lat	temp[$12]
		send	$4
		bnot
		push
		pushi	$756		; 1878, BAD SELECTOR
		pushi	$79e		; 1950, BAD SELECTOR
		pushi	$77e		; 1918, BAD SELECTOR
		callk	kernel_128, $c
		bnot
		pushi	$95		; 149, dispose
		push0
		lat	temp[$11]
		send	$4
		bnot
		pushi	$95		; 149, dispose
		push0
		lat	temp[$12]
		send	$4
		bnot
		ldi	$1
		aTop	cycles
		jmp	code_0f06

code_0848:	dup
		ldi	$2
		eq?
		bnt	code_086c
		lag	global[$d2]
		not
		bnt	code_085e
		pushi	$9f		; 159, add
		push0
		class	StockCharacters
		send	$4
		bnot
		jmp	code_0865

code_085e:	push1
		pushi	$5		; scaleY
		callk	kernel_128, $2
		bnot
code_0865:	ldi	$1
		aTop	cycles
		jmp	code_0f06

code_086c:	dup
		ldi	$3		; z
		eq?
		bnt	code_08c3
		lag	global[$d2]
		not
		bnt	code_08bc
		pushi	$33		; 51, '3', play
		push1
		lofsa	string_02cf	; "start.mid"
		push
		class	MusicMgr
		send	$6
		bnot
		pushi	$4		; scaleX
		pushi	$b		; 11, inRight
		pushi	$3		; z
		lofsa	string_02d9	; "Info"
		push
		lofsa	string_02de	; "Connecting to the routing server."
		push
		callk	kernel_118, $8
		bnot
		push0
		callk	kernel_33, $0
		bnot
		push1
		pushi	$5		; scaleY
		callk	kernel_128, $2
		bnot
		pushi	$3		; z
		push1
		pushi	$71		; 113, 'q', data
		push0
		lal	local[$5]
		send	$4
		bnot
		push
		pushi	$71		; 113, 'q', data
		push0
		lal	local[$6]
		send	$4
		bnot
		push
		callk	kernel_128, $6
		bnot
		sal	local[$a]
code_08bc:	ldi	$1
		aTop	cycles
		jmp	code_0f06

code_08c3:	dup
		ldi	$4		; scaleX
		eq?
		bnt	code_08ec
		lag	global[$d2]
		not
		bnt	code_08e5
		lal	local[$a]
		not
		bnt	code_08e5
		push2
		lofsa	string_0300	; "NETERR: Could not make connection with %s. Either the server is down or you are not connected to the network. Check your connection or try again in 10 minutes."
		push
		pushi	$71		; 113, 'q', data
		push0
		lal	local[$5]
		send	$4
		bnot
		push
		callk	kernel_132, $4
		bnot
code_08e5:	ldi	$1
		aTop	cycles
		jmp	code_0f06

code_08ec:	dup
		ldi	$5		; scaleY
		eq?
		bnt	code_093a
		lag	global[$d2]
		not
		bnt	code_0933
		pushi	$f5		; 245, format
		pushi	$3		; z
		lofsa	string_03a0	; "updates %d %d"
		push
		pushi	$323		; 803, pMajorVersion
		push0
		class	
		send	$4
		bnot
		push
		pushi	$324		; 804, pMinorVersion
		push0
		class	
		send	$4
		bnot
		push
		class	Str
		send	$a
		bnot
		sat	temp[$0]
		pushi	$5b1		; 1457, getRoute
		push2
		push
		pushSelf
		lag	global[$6a]
		send	$8
		bnot
		pushi	$95		; 149, dispose
		push0
		lat	temp[$0]
		send	$4
		bnot
		jmp	code_0f06

code_0933:	ldi	$1
		aTop	cycles
		jmp	code_0f06

code_093a:	dup
		ldi	$6		; maxScale
		eq?
		bnt	code_0985
		lag	global[$d2]
		not
		bnt	code_097e
		push1
		pushi	$c		; 12, inBottom
		callk	kernel_118, $2
		bnot
		pushi	$4		; scaleX
		pushi	$b		; 11, inRight
		pushi	$3		; z
		lofsa	string_02d9	; "Info"
		push
		lofsa	string_03ae	; "Connecting to the update server."
		push
		callk	kernel_118, $8
		bnot
		push1
		pushi	$5		; scaleY
		callk	kernel_128, $2
		bnot
		pushi	$3		; z
		push1
		pushi	$71		; 113, 'q', data
		push0
		lag	global[$e9]
		send	$4
		bnot
		push
		pushi	$71		; 113, 'q', data
		push0
		lag	global[$ea]
		send	$4
		bnot
		push
		callk	kernel_128, $6
		bnot
code_097e:	ldi	$1
		aTop	cycles
		jmp	code_0f06

code_0985:	dup
		ldi	$7		; priority
		eq?
		bnt	code_09ad
		lag	global[$d2]
		not
		bnt	code_09a6
		push1
		pushi	$c		; 12, inBottom
		callk	kernel_118, $2
		bnot
		pushi	$5ae		; 1454, requestPatch
		push2
		lsl	local[$1]
		pushSelf
		lag	global[$6a]
		send	$8
		bnot
		jmp	code_0f06

code_09a6:	ldi	$1
		aTop	cycles
		jmp	code_0f06

code_09ad:	dup
		ldi	$8		; fixPriority
		eq?
		bnt	code_09f9
		lag	global[$d2]
		not
		bnt	code_09f2
		pushi	$276		; 630, handsOn
		push0
		lag	global[$2]
		send	$4
		bnot
		pushi	$111		; 273, sub
		push1
		pushi	$324		; 804, pMinorVersion
		push0
		class	
		send	$4
		bnot
		push
		lal	local[$1]
		send	$6
		bnot
		pushi	$10f		; 271, setLong
		push1
		lsl	local[$1]
		lal	local[$4]
		send	$6
		bnot
		pushi	$b5		; 181, set
		push1
		pushi	$324		; 804, pMinorVersion
		push0
		class	
		send	$4
		bnot
		push
		lal	local[$2]
		send	$6
		bnot
code_09f2:	ldi	$1
		aTop	cycles
		jmp	code_0f06

code_09f9:	dup
		ldi	$9		; inLeft
		eq?
		bnt	code_0a50
		lag	global[$d2]
		not
		bnt	code_0a49
		pushi	$12d		; 301, greater
		push1
		push0
		lal	local[$1]
		send	$6
		bnot
		bnt	code_0a32
		dpToa	state
		pushi	$111		; 273, sub
		push1
		push1
		lal	local[$1]
		send	$6
		bnot
		pushi	$c9		; 201, setScript
		push2
		pushi	$8d		; 141, new
		push0
		lofsa	GetPatchScript
		send	$4
		bnot
		push
		pushSelf
		self	$8
		bnot
		jmp	code_0f06

code_0a32:	pushi	$12d		; 301, greater
		push1
		push1
		lal	local[$3]
		send	$6
		bnot
		bnt	code_0a42
		ldi	$1
		sag	global[$32]
code_0a42:	ldi	$1
		aTop	cycles
		jmp	code_0f06

code_0a49:	ldi	$1
		aTop	cycles
		jmp	code_0f06

code_0a50:	dup
		ldi	$a		; 10, inTop
		eq?
		bnt	code_0a7d
		push1
		pushi	$5		; scaleY
		callk	kernel_128, $2
		bnot
		pushi	$3		; z
		push1
		pushi	$71		; 113, 'q', data
		push0
		lal	local[$5]
		send	$4
		bnot
		push
		pushi	$71		; 113, 'q', data
		push0
		lal	local[$6]
		send	$4
		bnot
		push
		callk	kernel_128, $6
		bnot
		ldi	$1
		aTop	cycles
		jmp	code_0f06

code_0a7d:	dup
		ldi	$b		; 11, inRight
		eq?
		bnt	code_0ab0
		push1
		pushi	$c		; 12, inBottom
		callk	kernel_118, $2
		bnot
		pushi	$f5		; 245, format
		push1
		lofsa	string_03cf	; "gamelist "
		push
		class	Str
		send	$6
		bnot
		sat	temp[$0]
		pushi	$5b2		; 1458, getRouteList
		push2
		push
		pushSelf
		lag	global[$6a]
		send	$8
		bnot
		pushi	$95		; 149, dispose
		push0
		lat	temp[$0]
		send	$4
		bnot
		jmp	code_0f06

code_0ab0:	dup
		ldi	$c		; 12, inBottom
		eq?
		bnt	code_0ae0
		pushi	$636		; 1590, connect
		push1
		pushSelf
		lag	global[$6a]
		send	$6
		bnot
		pushi	$3		; z
		push1
		pushi	$62a		; 1578, pIP
		push0
		class	ServerInfo
		send	$4
		bnot
		push
		pushi	$62b		; 1579, pPort
		push0
		class	ServerInfo
		send	$4
		bnot
		push
		callk	kernel_128, $6
		bnot
		jmp	code_0f06

code_0ae0:	dup
		ldi	$d		; 13, seenRect
		eq?
		bnt	code_0b1e
		lag	global[$d2]
		not
		bnt	code_0b08
		push1
		pushi	$c		; 12, inBottom
		callk	kernel_118, $2
		bnot
		pushi	$7		; priority
		pushi	$b		; 11, inRight
		pushi	$6		; maxScale
		pushSelf
		lsg	global[$cf]
		lsg	global[$d0]
		lsl	local[$0]
		lsl	local[$b]
		callk	kernel_118, $e
		bnot
		jmp	code_0f06

code_0b08:	pushi	$5		; scaleY
		pushi	$b		; 11, inRight
		pushi	$9		; inLeft
		pushSelf
		lsl	local[$0]
		lsl	local[$b]
		callk	kernel_118, $a
		bnot
		ldi	$1
		aTop	cycles
		jmp	code_0f06

code_0b1e:	dup
		ldi	$e		; 14, view
		eq?
		bnt	code_0b57
		pushi	$24e		; 590, handsOff
		push0
		lag	global[$2]
		send	$4
		bnot
		pushi	$4		; scaleX
		pushi	$1c		; 28, brLeft
		push0
		lofsa	string_03d9	; "Logging In"
		push
		lofsa	string_03e4	; "\n"
		push
		callk	kernel_118, $8
		bnot
		pushi	$5aa		; 1450, checkLogin
		pushi	$6		; maxScale
		lsg	global[$cf]
		lsg	global[$d0]
		lsl	local[$0]
		pTos	scratch
		lsl	local[$b]
		pushSelf
		lag	global[$6a]
		send	$10
		bnot
		jmp	code_0f06

code_0b57:	dup
		ldi	$f		; 15, loop
		eq?
		bnt	code_0c0c
		pushi	$276		; 630, handsOn
		push0
		lag	global[$2]
		send	$4
		bnot
		ldi	$ff		; 255, asInteger
		sag	global[$d1]
		pushi	$10d		; 269, lowWord
		push0
		lal	local[$0]
		send	$4
		bnot
		push
		dup
		ldi	$ff		; 255, asInteger
		eq?
		bnt	code_0c04
		+al	local[$9]
		push
		ldi	$3		; z
		ge?
		bnt	code_0bb7
		push1
		pushi	$5		; scaleY
		callk	kernel_128, $2
		bnot
		push1
		pushi	$c		; 12, inBottom
		callk	kernel_118, $2
		bnot
		push2
		pushi	$1c		; 28, brLeft
		push2
		callk	kernel_118, $4
		bnot
		pushi	$7		; priority
		pushi	$b		; 11, inRight
		push2
		lofsa	string_02d9	; "Info"
		push
		lofsa	string_0406	; "Three strikes and you're out. Please call back when you have your information ready to type in."
		push
		lofsa	string_0466	; "Ok"
		push
		lofsa	ExitObj
		push
		pushi	$45		; 69, 'E', doit
		callk	kernel_118, $e
		bnot
		jmp	code_0c08

code_0bb7:	push1
		pushi	$c		; 12, inBottom
		callk	kernel_118, $2
		bnot
		push2
		pushi	$1c		; 28, brLeft
		push2
		callk	kernel_118, $4
		bnot
		pushi	$7		; priority
		pushi	$b		; 11, inRight
		push2
		lofsa	string_02d9	; "Info"
		push
		lsl	local[$b]
		lofsa	string_0466	; "Ok"
		push
		pushSelf
		pushi	$c7		; 199, cue
		callk	kernel_118, $e
		bnot
		pushi	$d0		; 208, with
		push1
		lofsa	string_0469	; ""
		push
		class	Str
		send	$6
		bnot
		sag	global[$cf]
		pushi	$d0		; 208, with
		push1
		lofsa	string_0469	; ""
		push
		class	Str
		send	$6
		bnot
		sag	global[$d0]
		pTos	state
		ldi	$3		; z
		sub
		aTop	state
		jmp	code_0c08

code_0c04:	ldi	$1
		aTop	cycles
code_0c08:	toss
		jmp	code_0f06

code_0c0c:	dup
		ldi	$10		; 16, cel
		eq?
		bnt	code_0c55
		pushi	$20		; 32, ' ', name
		push1
		lofsa	string_046a	; "login.lst"
		push
		pushi	$248		; 584, open
		push1
		push2
		pushi	$8d		; 141, new
		push0
		class	File
		send	$4
		bnot
		sat	temp[$3]
		send	$c
		bnot
		pushi	$27b		; 635, writeString
		push1
		lsg	global[$cf]
		lat	temp[$3]
		send	$6
		bnot
		pushi	$95		; 149, dispose
		push0
		lat	temp[$3]
		send	$4
		bnot
		pushi	$3		; z
		pushi	$e		; 14, view
		lofsa	string_0474	; "t"
		push
		pushi	$f		; 15, loop
		callk	kernel_128, $6
		bnot
		ldi	$1
		aTop	cycles
		jmp	code_0f06

code_0c55:	dup
		ldi	$11		; 17, bitmap
		eq?
		bnt	code_0e37
		pushi	$277		; 631, controlOff
		push0
		lag	global[$2]
		send	$4
		bnot
		pushi	$20		; 32, ' ', name
		push1
		lofsa	string_0476	; "fatal.log"
		push
		pushi	$248		; 584, open
		push1
		push1
		pushi	$8d		; 141, new
		push0
		class	File
		send	$4
		bnot
		sat	temp[$3]
		send	$c
		bnot
		pushi	$5e		; 94, '^', handle
		push0
		lat	temp[$3]
		send	$4
		bnot
		bnt	code_0e27
		pushi	$4		; scaleX
		pushi	$1c		; 28, brLeft
		push1
		lofsa	string_0480	; "Uploading debugging information from last crash...\n"
		push
		push0
		callk	kernel_118, $8
		bnot
		pushi	$133		; 307, pIsBigEndian
		push1
		push1
		pushi	$13f		; 319, putString
		push1
		lsg	global[$cf]
		pushi	$8d		; 141, new
		push0
		class	PackedData
		send	$4
		bnot
		sat	temp[$2]
		send	$c
		bnot
		pushi	$8d		; 141, new
		push0
		class	List
		send	$4
		bnot
		sat	temp[$1]
		pushi	$8d		; 141, new
		push1
		pushi	$64		; 100, 'd', moveDone
		class	Str
		send	$6
		bnot
		sat	temp[$0]
		ldi	$0
		sat	temp[$5]
code_0ccd:	pushi	$27a		; 634, readString
		push2
		lst	temp[$0]
		pushi	$50		; 80, 'P', claimed
		lat	temp[$3]
		send	$8
		bnot
		bnt	code_0d80
		pushi	$fe		; 254, strIndex
		push1
		lofsa	string_04b5	; "NETERR:"
		push
		lat	temp[$0]
		send	$6
		bnot
		push
		ldi	$ff		; 255, asInteger
		ne?
		bt	code_0d62
		pushi	$fe		; 254, strIndex
		push1
		lofsa	string_04bd	; "Error 142"
		push
		lat	temp[$0]
		send	$6
		bnot
		push
		ldi	$ff		; 255, asInteger
		ne?
		bt	code_0d62
		pushi	$fe		; 254, strIndex
		push1
		lofsa	string_04c7	; "Error 141"
		push
		lat	temp[$0]
		send	$6
		bnot
		push
		ldi	$ff		; 255, asInteger
		ne?
		bt	code_0d62
		pushi	$fe		; 254, strIndex
		push1
		lofsa	string_04d1	; "Error 140"
		push
		lat	temp[$0]
		send	$6
		bnot
		push
		ldi	$ff		; 255, asInteger
		ne?
		bt	code_0d62
		pushi	$fe		; 254, strIndex
		push1
		lofsa	string_04db	; "Error 105"
		push
		lat	temp[$0]
		send	$6
		bnot
		push
		ldi	$ff		; 255, asInteger
		ne?
		bt	code_0d62
		pushi	$fe		; 254, strIndex
		push1
		lofsa	string_04e5	; "Out of Memory:"
		push
		lat	temp[$0]
		send	$6
		bnot
		push
		ldi	$ff		; 255, asInteger
		ne?
		bt	code_0d62
		pushi	$fe		; 254, strIndex
		push1
		lofsa	string_04f4	; "Out of memory"
		push
		lat	temp[$0]
		send	$6
		bnot
		push
		ldi	$ff		; 255, asInteger
		ne?
code_0d62:	bnt	code_0d68
		ldi	$1
		sat	temp[$5]
code_0d68:	pushi	$9f		; 159, add
		push1
		pushi	$d0		; 208, with
		push1
		lst	temp[$0]
		class	Str
		send	$6
		bnot
		push
		lat	temp[$1]
		send	$6
		bnot
		jmp	code_0ccd

code_0d80:	pushi	$13b		; 315, putWord
		push2
		pushi	$323		; 803, pMajorVersion
		push0
		class	
		send	$4
		bnot
		push
		pushi	$324		; 804, pMinorVersion
		push0
		class	
		send	$4
		bnot
		push
		lat	temp[$2]
		send	$8
		bnot
		pushi	$13a		; 314, putByte
		push1
		pushi	$5a		; 90, 'Z', size
		push0
		lat	temp[$1]
		send	$4
		bnot
		push
		lat	temp[$2]
		send	$6
		bnot
		ldi	$0
		sat	temp[$4]
code_0db3:	lst	temp[$4]
		pushi	$5a		; 90, 'Z', size
		push0
		lat	temp[$1]
		send	$4
		bnot
		lt?
		bnt	code_0dd8
		pushi	$13f		; 319, putString
		push1
		pushi	$4b		; 75, 'K', at
		push1
		lst	temp[$4]
		lat	temp[$1]
		send	$6
		bnot
		push
		lat	temp[$2]
		send	$6
		bnot
		+at	temp[$4]
		jmp	code_0db3

code_0dd8:	lat	temp[$5]
		bnt	code_0deb
		pushi	$95		; 149, dispose
		push0
		lat	temp[$2]
		send	$4
		bnot
		ldi	$1
		aTop	cycles
		jmp	code_0e0b

code_0deb:	pushi	$99		; 153, respondsTo
		push1
		pushi	$5b5		; 1461, sendFatalData
		lag	global[$6a]
		send	$6
		bnot
		bnt	code_0e07
		pushi	$5b5		; 1461, sendFatalData
		push2
		lst	temp[$2]
		pushSelf
		lag	global[$6a]
		send	$8
		bnot
		jmp	code_0e0b

code_0e07:	ldi	$1
		aTop	seconds
code_0e0b:	pushi	$58		; 88, 'X', delete
		push0
		lat	temp[$3]
		send	$4
		bnot
		pushi	$95		; 149, dispose
		push0
		lat	temp[$1]
		send	$4
		bnot
		pushi	$95		; 149, dispose
		push0
		lat	temp[$0]
		send	$4
		bnot
		jmp	code_0e2b

code_0e27:	ldi	$1
		aTop	cycles
code_0e2b:	pushi	$95		; 149, dispose
		push0
		lat	temp[$3]
		send	$4
		bnot
		jmp	code_0f06

code_0e37:	dup
		ldi	$12		; 18, nsLeft
		eq?
		bnt	code_0e56
		lag	global[$fc]
		not
		bnt	code_0e4f
		pushi	$5b8		; 1464, registerPlayer
		push1
		pushSelf
		lag	global[$6a]
		send	$6
		bnot
		jmp	code_0f06

code_0e4f:	ldi	$1
		aTop	cycles
		jmp	code_0f06

code_0e56:	dup
		ldi	$13		; 19, nsTop
		eq?
		bnt	code_0e82
		pushi	$276		; 630, handsOn
		push0
		lag	global[$2]
		send	$4
		bnot
		pushi	$4		; scaleX
		pushi	$1c		; 28, brLeft
		push1
		lofsa	string_0502	; "You are currently waiting in line to play The Realm. Please be patient...\n"
		push
		push0
		callk	kernel_118, $8
		bnot
		pushi	$59f		; 1439, login
		push2
		lsl	local[$0]
		pushSelf
		lag	global[$6a]
		send	$8
		bnot
		jmp	code_0f06

code_0e82:	dup
		ldi	$14		; 20, nsRight
		eq?
		bnt	code_0eaf
		pushi	$24e		; 590, handsOff
		push0
		lag	global[$2]
		send	$4
		bnot
		pushi	$4		; scaleX
		pushi	$1c		; 28, brLeft
		push1
		lofsa	string_054e	; "Getting character information...\n"
		push
		push0
		callk	kernel_118, $8
		bnot
		pushi	$5a4		; 1444, queryCharacters
		push2
		class	StockCharacters
		push
		pushSelf
		lag	global[$6a]
		send	$8
		bnot
		jmp	code_0f06

code_0eaf:	dup
		ldi	$15		; 21, nsBottom
		eq?
		bnt	code_0f06
		pushi	$276		; 630, handsOn
		push0
		lag	global[$2]
		send	$4
		bnot
		pushi	$2f4		; 756, pConnected
		push0
		lag	global[$6a]
		send	$4
		bnot
		bnt	code_0ed7
		ldi	$1
		sag	global[$d2]
		pushi	$95		; 149, dispose
		push0
		self	$4
		bnot
		jmp	code_0ef7

code_0ed7:	push1
		pushi	$c		; 12, inBottom
		callk	kernel_118, $2
		bnot
		pushi	$7		; priority
		pushi	$b		; 11, inRight
		push2
		lofsa	string_02d9	; "Info"
		push
		lofsa	string_0571	; "Error establishing connection."
		push
		lofsa	string_0466	; "Ok"
		push
		pushSelf
		pushi	$95		; 149, dispose
		callk	kernel_118, $e
		bnot
code_0ef7:	push1
		pushi	$c		; 12, inBottom
		callk	kernel_118, $2
		bnot
		push2
		pushi	$1c		; 28, brLeft
		push2
		callk	kernel_118, $4
		bnot
code_0f06:	toss
		ret

connectScript::dispose:
		pushi	$24e		; 590, handsOff
		push0
		lag	global[$2]
		send	$4
		bnot
		push1
		pushi	$c		; 12, inBottom
		callk	kernel_118, $2
		bnot
		ldi	$afd6		; -20522
		sag	global[$36]
		pushi	$95		; 149, dispose
		push0
		&rest	$1
		super	Script, $4
		bnot
		ret

ProgressItem::setValue:
		link	$1
		lap	param[$1]
		aTop	pValue
		pTos	pValue
		pToa	pMax
		gt?
		bnt	code_0f39
		pToa	pMax
		aTop	pValue
code_0f39:	pTos	pValue
		ldi	$0
		lt?
		bnt	code_0f44
		ldi	$0
		aTop	pValue
code_0f44:	push1
		pTos	text
		calle	export60000_0, $2
		bnot
		bnt	code_0f5d
		pushi	$95		; 149, dispose
		push0
		pToa	text
		send	$4
		bnot
		ldi	$0
		aTop	text
code_0f5d:	pushi	$f5		; 245, format
		pushi	$3		; z
		lofsa	string_05a9	; "%d of %d"
		push
		pTos	pValue
		pTos	pMax
		class	Str
		send	$a
		bnot
		aTop	text
		pushi	$8d		; 141, new
		push0
		class	LongInt
		send	$4
		bnot
		sat	temp[$0]
		pushi	$b5		; 181, set
		push1
		pTos	pValue
		send	$6
		bnot
		pushi	$113		; 275, mul
		push1
		pushi	$64		; 100, 'd', moveDone
		lat	temp[$0]
		send	$6
		bnot
		pushi	$115		; 277, div
		push1
		pTos	pMax
		lat	temp[$0]
		send	$6
		bnot
		pushi	$113		; 275, mul
		push1
		push1
		pushSelf
		callk	kernel_22, $2
		bnot
		push
		lat	temp[$0]
		send	$6
		bnot
		pushi	$115		; 277, div
		push1
		pushi	$64		; 100, 'd', moveDone
		lat	temp[$0]
		send	$6
		bnot
		pushi	$10d		; 269, lowWord
		push0
		lat	temp[$0]
		send	$4
		bnot
		push
		ldi	$1
		sub
		aTop	cel
		pTos	cel
		ldi	$0
		lt?
		bnt	code_0fd1
		ldi	$0
		aTop	cel
code_0fd1:	pushi	$95		; 149, dispose
		push0
		lat	temp[$0]
		send	$4
		bnot
		pushi	$57		; 87, 'W', draw
		push0
		self	$4
		bnot
		ret

ProgressItem::addValue:
		pushi	$3d5		; 981, setValue
		push1
		pTos	pValue
		lap	param[$1]
		add
		push
		self	$6
		bnot
		ret

ProgressItem::subValue:
		pushi	$3d5		; 981, setValue
		push1
		pTos	pValue
		lap	param[$1]
		sub
		push
		self	$6
		bnot
		ret

ProgressItem::draw:
		link	$1
		push1
		pTos	text
		calle	export60000_0, $2
		bnot
		not
		bt	code_1019
		pushi	$97		; 151, isKindOf
		push1
		class	Str
		push
		pToa	text
		send	$6
		bnot
		not
code_1019:	bnt	code_1030
		pushi	$f5		; 245, format
		pushi	$3		; z
		lofsa	string_05a9	; "%d of %d"
		push
		pTos	pValue
		pTos	pMax
		class	Str
		send	$a
		bnot
		aTop	text
code_1030:	pToa	bitmap
		sat	temp[$0]
		bnt	code_1047
		push1
		pushSelf
		callk	kernel_31, $2
		bnot
		pushi	$9f		; 159, add
		push1
		pTos	bitmap
		lag	global[$66]
		send	$6
		bnot
code_1047:	pushi	$6		; maxScale
		pushi	$9		; inLeft
		pTos	view
		pTos	loop
		pTos	cel
		pushi	$ff		; 255, asInteger
		dup
		callk	kernel_35, $c
		bnot
		aTop	bitmap
		pushi	$f		; 15, loop
		pushi	$4		; scaleX
		pTos	bitmap
		push2
		pushi	$9		; inLeft
		pTos	text
		callk	kernel_91, $4
		bnot
		push
		push0
		pushi	$7		; priority
		pushi	$4e		; 78, 'N', width
		push0
		self	$4
		bnot
		push
		pushi	$e1		; 225, height
		push0
		self	$4
		bnot
		push
		pTos	fore
		pTos	back
		pTos	skip
		pTos	font
		pTos	mode
		pTos	borderColor
		pTos	dimmed
		push0
		callk	kernel_35, $1e
		bnot
		lat	temp[$0]
		bnt	code_1099
		push1
		pushSelf
		callk	kernel_30, $2
		bnot
code_1099:	ret

GetPatchScript::init:
		link	$1
		pushi	$20		; 32, ' ', name
		push1
		lofsa	string_0476	; "fatal.log"
		push
		pushi	$58		; 88, 'X', delete
		push0
		pushi	$8d		; 141, new
		push0
		class	File
		send	$4
		bnot
		sat	temp[$0]
		send	$a
		bnot
		pushi	$95		; 149, dispose
		push0
		lat	temp[$0]
		send	$4
		bnot
		pushi	$8d		; 141, new
		push0
		class	LongInt
		send	$4
		bnot
		aTop	pSize
		pushi	$8d		; 141, new
		push0
		class	LongInt
		send	$4
		bnot
		aTop	pBlockSize
		pushi	$8d		; 141, new
		push0
		class	LongInt
		send	$4
		bnot
		aTop	pBlockNum
		pushi	$8d		; 141, new
		push0
		class	List
		send	$4
		bnot
		aTop	pBlockList
		pushi	$94		; 148, init
		push0
		&rest	$1
		super	Script, $4
		bnot
		ret

GetPatchScript::dispose:
		pushi	$95		; 149, dispose
		push0
		pToa	pSize
		send	$4
		bnot
		ldi	$0
		aTop	pSize
		pushi	$95		; 149, dispose
		push0
		pToa	pBlockSize
		send	$4
		bnot
		ldi	$0
		aTop	pBlockSize
		pushi	$95		; 149, dispose
		push0
		pToa	pBlockNum
		send	$4
		bnot
		ldi	$0
		aTop	pBlockNum
		pushi	$95		; 149, dispose
		push0
		pToa	pBlockList
		send	$4
		bnot
		ldi	$0
		aTop	pBlockList
		pushi	$95		; 149, dispose
		push0
		&rest	$1
		super	Script, $4
		bnot
		ret

GetPatchScript::perform:
		pushi	$7		; priority
		lofsa	string_05cc	; "Are you sure you want to cancel patch downloading?"
		push
		pushi	$77		; 119, 'w', textTop
		lofsa	string_05ff	; "Yes"
		push
		push1
		pushi	$77		; 119, 'w', textTop
		lofsa	string_0603	; "No"
		push
		push0
		calle	export60029_0, $e
		bnot
		bnt	code_115e
		push1
		pushi	$5		; scaleY
		callk	kernel_128, $2
		bnot
		ldi	$1
		sag	global[$32]
		ldi	$0
		ret

code_115e:	ldi	$ff		; 255, asInteger
		ret

GetPatchScript::changeState:
		link	$4
		lap	param[$1]
		aTop	state
		push
		dup
		ldi	$0
		eq?
		bnt	code_1181
		pushi	$5af		; 1455, getPatchInfo
		pushi	$3		; z
		lsl	local[$2]
		pTos	pSize
		pushSelf
		lag	global[$6a]
		send	$a
		bnot
		jmp	code_130f

code_1181:	dup
		ldi	$1
		eq?
		bnt	code_119d
		pushi	$5		; scaleY
		pushi	$22		; 34, '"', time
		push0
		lsl	local[$3]
		lsl	local[$4]
		pTos	pSize
		callk	kernel_118, $a
		bnot
		ldi	$1
		aTop	cycles
		jmp	code_130f

code_119d:	dup
		ldi	$2
		eq?
		bnt	code_11d0
		pushi	$8d		; 141, new
		push0
		class	ByteArray
		send	$4
		bnot
		aTop	pBlock
		pushi	$9f		; 159, add
		push1
		pTos	pBlock
		pToa	pBlockList
		send	$6
		bnot
		pushi	$5b0		; 1456, getPatchBlock
		pushi	$5		; scaleY
		lsl	local[$2]
		pTos	pBlockNum
		pTos	pBlock
		pTos	pBlockSize
		pushSelf
		lag	global[$6a]
		send	$e
		bnot
		jmp	code_130f

code_11d0:	dup
		ldi	$3		; z
		eq?
		bnt	code_1220
		push2
		pushi	$22		; 34, '"', time
		push1
		callk	kernel_118, $4
		bnot
		pushi	$8c		; 140, scratch
		push1
		pushi	$10d		; 269, lowWord
		push0
		pToa	pBlockSize
		send	$4
		bnot
		push
		pToa	pBlock
		send	$6
		bnot
		pushi	$111		; 273, sub
		push1
		push1
		pToa	pSize
		send	$6
		bnot
		pushi	$9f		; 159, add
		push1
		push1
		pToa	pBlockNum
		send	$6
		bnot
		pushi	$12d		; 301, greater
		push1
		push0
		pToa	pSize
		send	$6
		bnot
		bnt	code_1219
		pTos	state
		ldi	$2
		sub
		aTop	state
code_1219:	ldi	$1
		aTop	cycles
		jmp	code_130f

code_1220:	dup
		ldi	$4		; scaleX
		eq?
		bnt	code_12ee
		pushi	$8d		; 141, new
		push0
		class	File
		send	$4
		bnot
		aTop	pFile
		pushi	$20		; 32, ' ', name
		push1
		pushi	$f5		; 245, format
		push2
		lofsa	string_0606	; "patch%02d.rtp"
		push
		pushi	$10d		; 269, lowWord
		push0
		lal	local[$3]
		send	$4
		bnot
		push
		class	Str
		send	$8
		bnot
		push
		pToa	pFile
		send	$6
		bnot
		pushi	$248		; 584, open
		push1
		push2
		pToa	pFile
		send	$6
		bnot
		pushi	$58		; 88, 'X', delete
		push0
		pToa	pFile
		send	$4
		bnot
		ldi	$0
		sat	temp[$2]
code_1268:	lst	temp[$2]
		pushi	$5a		; 90, 'Z', size
		push0
		pToa	pBlockList
		send	$4
		bnot
		lt?
		bnt	code_12d0
		pushi	$27c		; 636, write
		push2
		pushi	$4b		; 75, 'K', at
		push1
		lst	temp[$2]
		pToa	pBlockList
		send	$6
		bnot
		push
		pushi	$8c		; 140, scratch
		push0
		pushi	$4b		; 75, 'K', at
		push1
		lst	temp[$2]
		pToa	pBlockList
		send	$6
		bnot
		send	$4
		bnot
		push
		pToa	pFile
		send	$8
		bnot
		push
		pushi	$8c		; 140, scratch
		push0
		pushi	$4b		; 75, 'K', at
		push1
		lst	temp[$2]
		pToa	pBlockList
		send	$6
		bnot
		send	$4
		bnot
		ne?
		bnt	code_12cc
		pushi	$7		; priority
		pushi	$b		; 11, inRight
		push2
		lofsa	string_02d9	; "Info"
		push
		lofsa	string_0614	; "You don't have enough disk space to write the update file. Free up some more space and try again."
		push
		lofsa	string_0466	; "Ok"
		push
		lofsa	ExitObj
		push
		pushi	$45		; 69, 'E', doit
		callk	kernel_118, $e
		bnot
code_12cc:	+at	temp[$2]
		jmp	code_1268

code_12d0:	pushi	$253		; 595, close
		push0
		pToa	pFile
		send	$4
		bnot
		pushi	$95		; 149, dispose
		push0
		pushi	$20		; 32, ' ', name
		push0
		pToa	pFile
		send	$4
		bnot
		send	$4
		bnot
		ldi	$1
		aTop	cycles
		jmp	code_130f

code_12ee:	dup
		ldi	$5		; scaleY
		eq?
		bnt	code_130f
		pushi	$9f		; 159, add
		push1
		push1
		lal	local[$2]
		send	$6
		bnot
		pushi	$9f		; 159, add
		push1
		push1
		lal	local[$3]
		send	$6
		bnot
		pushi	$95		; 149, dispose
		push0
		self	$4
		bnot
code_130f:	toss
		ret

		pushi	$10		; 16, cel
		lsp	param[$0]
		ldi	$3		; z
		ge?
		bnt	code_131e
		lap	param[$3]
		jmp	code_1321

code_131e:	lofsa	string_0469	; ""
code_1321:	push
		pushi	$76		; 118, 'v', textLeft
		lsp	param[$1]
		lsp	param[$2]
		pushi	$fdf5		; -523
		lsg	global[$55]
		pushi	$fdf4		; -524
		pushi	$2a		; 42, '*', font
		pushi	$8b		; 139, numLines
		push1
		pushi	$77		; 119, 'w', textTop
		lofsa	string_0685	; " OK "
		push
		push1
		pushi	$77		; 119, 'w', textTop
		lofsa	string_068a	; "Cancel"
		push
		push0
		&rest	$4		; scaleX
		calle	export60029_0, $20
		bnot
		bnt	code_135b
		pushi	$5a		; 90, 'Z', size
		push0
		lap	param[$1]
		send	$4
		bnot
		push
		ldi	$0
		gt?
code_135b:	ret

