	format	MS COFF
	extrn	___bb_appstub_appstub
	extrn	___bb_audio_audio
	extrn	___bb_blitz_blitz
	extrn	___bb_bmploader_bmploader
	extrn	___bb_d3d7max2d_d3d7max2d
	extrn	___bb_directsoundaudio_directsoundaudio
	extrn	___bb_eventqueue_eventqueue
	extrn	___bb_freeaudioaudio_freeaudioaudio
	extrn	___bb_freejoy_freejoy
	extrn	___bb_freeprocess_freeprocess
	extrn	___bb_freetypefont_freetypefont
	extrn	___bb_glew_glew
	extrn	___bb_gnet_gnet
	extrn	___bb_jpgloader_jpgloader
	extrn	___bb_macos_macos
	extrn	___bb_maxutil_maxutil
	extrn	___bb_oggloader_oggloader
	extrn	___bb_openalaudio_openalaudio
	extrn	___bb_pngloader_pngloader
	extrn	___bb_reflection_reflection
	extrn	___bb_retro_retro
	extrn	___bb_simplegui_simplegui
	extrn	___bb_tgaloader_tgaloader
	extrn	___bb_timer_timer
	extrn	___bb_wavloader_wavloader
	extrn	__noddybox_simplegui_TSGUIFont_font
	extrn	_bbArrayNew1D
	extrn	_bbEmptyString
	extrn	_bbEnd
	extrn	_bbFloatToInt
	extrn	_bbGCFree
	extrn	_bbIncbinAdd
	extrn	_bbNullObject
	extrn	_bbObjectDowncast
	extrn	_bbStringClass
	extrn	_bbStringCompare
	extrn	_bbStringConcat
	extrn	_bbStringFromInt
	extrn	_brl_blitz_NullFunctionError
	extrn	_brl_glmax2d_GLMax2DDriver
	extrn	_brl_graphics_EndGraphics
	extrn	_brl_graphics_Flip
	extrn	_brl_graphics_Graphics
	extrn	_brl_graphics_SetGraphicsDriver
	extrn	_brl_max2d_Cls
	extrn	_brl_max2d_DrawRect
	extrn	_brl_max2d_SetBlend
	extrn	_brl_max2d_SetColor
	extrn	_brl_polledinput_KeyHit
	extrn	_brl_polledinput_MouseX
	extrn	_brl_polledinput_MouseY
	extrn	_noddybox_bitmapfont_TBitmapFont
	extrn	_noddybox_simplegui_GUIDialog
	extrn	_noddybox_simplegui_GUIFileSelect
	extrn	_noddybox_simplegui_GUIMenu
	extrn	_noddybox_simplegui_GUINotify
	extrn	_noddybox_simplegui_GUIYesNo
	extrn	_noddybox_simplegui_TButton
	extrn	_noddybox_simplegui_TButtonList
	extrn	_noddybox_simplegui_TCheckbox
	extrn	_noddybox_simplegui_TGUIHandler
	extrn	_noddybox_simplegui_TLabel
	extrn	_noddybox_simplegui_TNumberDouble
	extrn	_noddybox_simplegui_TNumberInt
	extrn	_noddybox_simplegui_TPanel
	extrn	_noddybox_simplegui_TScrollbar
	extrn	_noddybox_simplegui_TText
	extrn	_noddybox_simplegui_TTextList
	public	__bb_main
	public	_bb_ButtonCallback
	public	_bb_CheckCallback
	public	_bb_LoadCallback
	public	_bb_Menu
	public	_bb_SaveCallback
	public	_bb_ScrollCallback
	public	_bb_TextCallback
	public	_bb_TextEnsureCallback
	public	_bb_TextListCallback
	public	_bb_TextListScrollCallback
	public	_bb_TextTopCallback
	public	_bb_button1
	public	_bb_button2
	public	_bb_buttonlist
	public	_bb_check1
	public	_bb_check2
	public	_bb_dcan
	public	_bb_dialog
	public	_bb_dlab
	public	_bb_dnum
	public	_bb_dok
	public	_bb_dpanel
	public	_bb_fname
	public	_bb_font
	public	_bb_gui
	public	_bb_hscroll
	public	_bb_hscroll2
	public	_bb_label1
	public	_bb_label2
	public	_bb_numberf
	public	_bb_numberi
	public	_bb_quit
	public	_bb_text1
	public	_bb_text2
	public	_bb_textlist
	public	_bb_tlscroll
	public	_bb_vscroll
	section	"code" code
__bb_main:
	push	ebp
	mov	ebp,esp
	sub	esp,4
	push	ebx
	push	esi
	cmp	dword [_196],0
	je	_197
	mov	eax,0
	pop	esi
	pop	ebx
	mov	esp,ebp
	pop	ebp
	ret
_197:
	mov	dword [_196],1
	mov	eax,_113
	sub	eax,_112
	push	eax
	push	_112
	push	_111
	call	_bbIncbinAdd
	add	esp,12
	mov	ebx,0
	call	___bb_blitz_blitz
	call	___bb_simplegui_simplegui
	call	___bb_appstub_appstub
	call	___bb_audio_audio
	call	___bb_bmploader_bmploader
	call	___bb_d3d7max2d_d3d7max2d
	call	___bb_directsoundaudio_directsoundaudio
	call	___bb_eventqueue_eventqueue
	call	___bb_freeaudioaudio_freeaudioaudio
	call	___bb_freetypefont_freetypefont
	call	___bb_gnet_gnet
	call	___bb_jpgloader_jpgloader
	call	___bb_maxutil_maxutil
	call	___bb_oggloader_oggloader
	call	___bb_openalaudio_openalaudio
	call	___bb_pngloader_pngloader
	call	___bb_reflection_reflection
	call	___bb_retro_retro
	call	___bb_tgaloader_tgaloader
	call	___bb_timer_timer
	call	___bb_wavloader_wavloader
	call	___bb_freejoy_freejoy
	call	___bb_freeprocess_freeprocess
	call	___bb_glew_glew
	call	___bb_macos_macos
	push	2
	call	_brl_glmax2d_GLMax2DDriver
	push	eax
	call	_brl_graphics_SetGraphicsDriver
	add	esp,8
	push	0
	push	60
	push	32
	push	600
	push	800
	call	_brl_graphics_Graphics
	add	esp,20
	mov	eax,dword [_115]
	and	eax,1
	cmp	eax,0
	jne	_116
	push	0
	push	_18
	call	dword [_noddybox_bitmapfont_TBitmapFont+48]
	add	esp,8
	inc	dword [eax+4]
	mov	dword [_bb_font],eax
	or	dword [_115],1
_116:
	mov	esi,dword [_bb_font]
	inc	dword [esi+4]
	mov	eax,dword [__noddybox_simplegui_TSGUIFont_font]
	dec	dword [eax+4]
	jnz	_120
	push	eax
	call	_bbGCFree
	add	esp,4
_120:
	mov	dword [__noddybox_simplegui_TSGUIFont_font],esi
	mov	eax,dword [_115]
	and	eax,2
	cmp	eax,0
	jne	_122
	call	dword [_noddybox_simplegui_TGUIHandler+48]
	inc	dword [eax+4]
	mov	dword [_bb_gui],eax
	or	dword [_115],2
_122:
	mov	eax,dword [_115]
	and	eax,4
	cmp	eax,0
	jne	_124
	push	_19
	push	0
	push	0
	push	dword [_bb_gui]
	call	dword [_noddybox_simplegui_TLabel+80]
	add	esp,16
	inc	dword [eax+4]
	mov	dword [_bb_label1],eax
	or	dword [_115],4
_124:
	mov	eax,dword [_115]
	and	eax,8
	cmp	eax,0
	jne	_126
	push	_20
	push	20
	push	0
	push	dword [_bb_gui]
	call	dword [_noddybox_simplegui_TLabel+80]
	add	esp,16
	inc	dword [eax+4]
	mov	dword [_bb_label2],eax
	or	dword [_115],8
_126:
	mov	eax,dword [_115]
	and	eax,16
	cmp	eax,0
	jne	_128
	push	_bb_TextCallback
	push	0
	push	20
	push	_21
	push	0
	mov	eax,dword [_bb_label1]
	push	dword [eax+28]
	push	dword [_bb_gui]
	call	dword [_noddybox_simplegui_TText+80]
	add	esp,28
	inc	dword [eax+4]
	mov	dword [_bb_text1],eax
	or	dword [_115],16
_128:
	mov	eax,dword [_115]
	and	eax,32
	cmp	eax,0
	jne	_130
	push	_brl_blitz_NullFunctionError
	push	0
	push	30
	push	_22
	push	20
	mov	eax,dword [_bb_label2]
	push	dword [eax+28]
	push	dword [_bb_gui]
	call	dword [_noddybox_simplegui_TText+80]
	add	esp,28
	inc	dword [eax+4]
	mov	dword [_bb_text2],eax
	or	dword [_115],32
_130:
	mov	eax,dword [_115]
	and	eax,64
	cmp	eax,0
	jne	_132
	push	_bb_CheckCallback
	push	_23
	push	0
	push	400
	push	dword [_bb_gui]
	call	dword [_noddybox_simplegui_TCheckbox+80]
	add	esp,20
	inc	dword [eax+4]
	mov	dword [_bb_check1],eax
	or	dword [_115],64
_132:
	mov	eax,dword [_115]
	and	eax,128
	cmp	eax,0
	jne	_134
	push	_brl_blitz_NullFunctionError
	push	_24
	push	20
	push	400
	push	dword [_bb_gui]
	call	dword [_noddybox_simplegui_TCheckbox+80]
	add	esp,20
	inc	dword [eax+4]
	mov	dword [_bb_check2],eax
	or	dword [_115],128
_134:
	mov	eax,dword [_115]
	and	eax,256
	cmp	eax,0
	jne	_136
	push	_bb_ButtonCallback
	push	_25
	push	30
	push	100
	push	360
	push	0
	push	dword [_bb_gui]
	call	dword [_noddybox_simplegui_TButton+80]
	add	esp,28
	inc	dword [eax+4]
	mov	dword [_bb_button1],eax
	or	dword [_115],256
_136:
	mov	eax,dword [_115]
	and	eax,512
	cmp	eax,0
	jne	_138
	push	_bb_ButtonCallback
	push	_26
	push	30
	push	100
	push	360
	push	110
	push	dword [_bb_gui]
	call	dword [_noddybox_simplegui_TButton+80]
	add	esp,28
	inc	dword [eax+4]
	mov	dword [_bb_button2],eax
	or	dword [_115],512
_138:
	mov	eax,dword [_115]
	and	eax,1024
	cmp	eax,0
	jne	_145
	push	3
	push	_140
	call	_bbArrayNew1D
	add	esp,8
	mov	edx,_27
	inc	dword [edx+4]
	mov	dword [eax+24],edx
	mov	edx,_28
	inc	dword [edx+4]
	mov	dword [eax+28],edx
	mov	edx,_29
	inc	dword [edx+4]
	mov	dword [eax+32],edx
	push	_brl_blitz_NullFunctionError
	push	0
	push	eax
	push	0
	push	500
	push	dword [_bb_gui]
	call	dword [_noddybox_simplegui_TButtonList+80]
	add	esp,24
	inc	dword [eax+4]
	mov	dword [_bb_buttonlist],eax
	or	dword [_115],1024
_145:
	mov	eax,dword [_115]
	and	eax,2048
	cmp	eax,0
	jne	_147
	push	_bb_ScrollCallback
	push	200
	push	20
	push	20
	push	780
	push	dword [_bb_gui]
	call	dword [_noddybox_simplegui_TScrollbar+80]
	add	esp,24
	inc	dword [eax+4]
	mov	dword [_bb_vscroll],eax
	or	dword [_115],2048
_147:
	mov	eax,dword [_115]
	and	eax,4096
	cmp	eax,0
	jne	_149
	push	_bb_ScrollCallback
	push	20
	push	200
	push	220
	push	600
	push	dword [_bb_gui]
	call	dword [_noddybox_simplegui_TScrollbar+80]
	add	esp,24
	inc	dword [eax+4]
	mov	dword [_bb_hscroll],eax
	or	dword [_115],4096
_149:
	mov	eax,dword [_115]
	and	eax,8192
	cmp	eax,0
	jne	_151
	push	_bb_ScrollCallback
	push	20
	push	200
	push	250
	push	600
	push	dword [_bb_gui]
	call	dword [_noddybox_simplegui_TScrollbar+80]
	add	esp,24
	inc	dword [eax+4]
	mov	dword [_bb_hscroll2],eax
	or	dword [_115],8192
_151:
	push	_30
	push	60
	push	0
	push	dword [_bb_gui]
	call	dword [_noddybox_simplegui_TLabel+80]
	add	esp,16
	mov	eax,dword [_115]
	and	eax,16384
	cmp	eax,0
	jne	_153
	push	_brl_blitz_NullFunctionError
	push	60
	push	80
	push	dword [_bb_gui]
	call	dword [_noddybox_simplegui_TNumberDouble+80]
	add	esp,16
	inc	dword [eax+4]
	mov	dword [_bb_numberf],eax
	or	dword [_115],16384
_153:
	push	_31
	push	80
	push	0
	push	dword [_bb_gui]
	call	dword [_noddybox_simplegui_TLabel+80]
	add	esp,16
	mov	eax,dword [_115]
	and	eax,32768
	cmp	eax,0
	jne	_155
	push	_brl_blitz_NullFunctionError
	push	80
	push	80
	push	dword [_bb_gui]
	call	dword [_noddybox_simplegui_TNumberInt+80]
	add	esp,16
	inc	dword [eax+4]
	mov	dword [_bb_numberi],eax
	or	dword [_115],32768
_155:
	mov	eax,dword [_bb_vscroll]
	fld1
	sub	esp,8
	fstp	qword [esp]
	fld	qword [_243]
	sub	esp,8
	fstp	qword [esp]
	fldz
	sub	esp,8
	fstp	qword [esp]
	push	eax
	mov	eax,dword [eax]
	call	dword [eax+84]
	add	esp,28
	mov	eax,dword [_bb_hscroll]
	fld1
	sub	esp,8
	fstp	qword [esp]
	fld	qword [_244]
	sub	esp,8
	fstp	qword [esp]
	fldz
	sub	esp,8
	fstp	qword [esp]
	push	eax
	mov	eax,dword [eax]
	call	dword [eax+84]
	add	esp,28
	mov	eax,dword [_bb_hscroll2]
	fld1
	sub	esp,8
	fstp	qword [esp]
	fld1
	sub	esp,8
	fstp	qword [esp]
	fldz
	sub	esp,8
	fstp	qword [esp]
	push	eax
	mov	eax,dword [eax]
	call	dword [eax+84]
	add	esp,28
	mov	eax,dword [_bb_numberf]
	fldz
	fstp	qword [eax+80]
	mov	eax,dword [_bb_numberf]
	fld	qword [_245]
	fstp	qword [eax+72]
	mov	eax,dword [_bb_numberf]
	fld1
	fstp	qword [eax+64]
	push	_32
	push	100
	push	0
	push	dword [_bb_gui]
	call	dword [_noddybox_simplegui_TLabel+80]
	add	esp,16
	push	_brl_blitz_NullFunctionError
	push	1
	push	20
	push	_1
	push	100
	push	100
	push	dword [_bb_gui]
	call	dword [_noddybox_simplegui_TText+80]
	add	esp,28
	push	_33
	push	110
	push	0
	push	dword [_bb_gui]
	call	dword [_noddybox_simplegui_TLabel+80]
	add	esp,16
	push	_brl_blitz_NullFunctionError
	push	5
	push	20
	push	_1
	push	110
	push	100
	push	dword [_bb_gui]
	call	dword [_noddybox_simplegui_TText+80]
	add	esp,28
	push	_34
	push	120
	push	0
	push	dword [_bb_gui]
	call	dword [_noddybox_simplegui_TLabel+80]
	add	esp,16
	push	_brl_blitz_NullFunctionError
	push	3
	push	20
	push	_1
	push	120
	push	100
	push	dword [_bb_gui]
	call	dword [_noddybox_simplegui_TText+80]
	add	esp,28
	push	_35
	push	130
	push	0
	push	dword [_bb_gui]
	call	dword [_noddybox_simplegui_TLabel+80]
	add	esp,16
	push	_brl_blitz_NullFunctionError
	push	7
	push	20
	push	_1
	push	130
	push	100
	push	dword [_bb_gui]
	call	dword [_noddybox_simplegui_TText+80]
	add	esp,28
	mov	eax,dword [_115]
	and	eax,65536
	cmp	eax,0
	jne	_160
	push	_bb_TextListCallback
	push	5
	push	100
	push	400
	push	0
	push	dword [_bb_gui]
	call	dword [_noddybox_simplegui_TTextList+80]
	add	esp,24
	inc	dword [eax+4]
	mov	dword [_bb_textlist],eax
	or	dword [_115],65536
_160:
	mov	eax,dword [_115]
	and	eax,131072
	cmp	eax,0
	jne	_162
	push	_bb_TextListScrollCallback
	mov	eax,dword [_bb_textlist]
	push	dword [eax+32]
	push	10
	push	400
	push	101
	push	dword [_bb_gui]
	call	dword [_noddybox_simplegui_TScrollbar+80]
	add	esp,24
	inc	dword [eax+4]
	mov	dword [_bb_tlscroll],eax
	or	dword [_115],131072
_162:
	push	_bb_TextTopCallback
	push	_36
	push	30
	push	100
	push	501
	push	0
	push	dword [_bb_gui]
	call	dword [_noddybox_simplegui_TButton+80]
	add	esp,28
	push	_bb_TextEnsureCallback
	push	_37
	push	30
	push	100
	push	501
	push	110
	push	dword [_bb_gui]
	call	dword [_noddybox_simplegui_TButton+80]
	add	esp,28
	mov	esi,dword [_bb_textlist]
	push	13
	push	_140
	call	_bbArrayNew1D
	add	esp,8
	mov	edx,_38
	inc	dword [edx+4]
	mov	dword [eax+24],edx
	mov	edx,_39
	inc	dword [edx+4]
	mov	dword [eax+28],edx
	mov	edx,_40
	inc	dword [edx+4]
	mov	dword [eax+32],edx
	mov	edx,_41
	inc	dword [edx+4]
	mov	dword [eax+36],edx
	mov	edx,_42
	inc	dword [edx+4]
	mov	dword [eax+40],edx
	mov	edx,_43
	inc	dword [edx+4]
	mov	dword [eax+44],edx
	mov	edx,_44
	inc	dword [edx+4]
	mov	dword [eax+48],edx
	mov	edx,_45
	inc	dword [edx+4]
	mov	dword [eax+52],edx
	mov	edx,_46
	inc	dword [edx+4]
	mov	dword [eax+56],edx
	mov	edx,_47
	inc	dword [edx+4]
	mov	dword [eax+60],edx
	mov	edx,_48
	inc	dword [edx+4]
	mov	dword [eax+64],edx
	mov	edx,_49
	inc	dword [edx+4]
	mov	dword [eax+68],edx
	mov	edx,_50
	inc	dword [edx+4]
	mov	dword [eax+72],edx
	push	eax
	push	esi
	mov	eax,dword [esi]
	call	dword [eax+84]
	add	esp,8
	mov	eax,dword [_bb_tlscroll]
	fld1
	sub	esp,8
	fstp	qword [esp]
	fld	qword [_246]
	sub	esp,8
	fstp	qword [esp]
	fldz
	sub	esp,8
	fstp	qword [esp]
	push	eax
	mov	eax,dword [eax]
	call	dword [eax+84]
	add	esp,28
	mov	eax,dword [_115]
	and	eax,262144
	cmp	eax,0
	jne	_180
	call	dword [_noddybox_simplegui_TGUIHandler+48]
	inc	dword [eax+4]
	mov	dword [_bb_dialog],eax
	or	dword [_115],262144
_180:
	mov	eax,dword [_115]
	and	eax,524288
	cmp	eax,0
	jne	_182
	push	300
	push	400
	push	-1
	push	-1
	push	dword [_bb_dialog]
	call	dword [_noddybox_simplegui_TPanel+80]
	add	esp,20
	inc	dword [eax+4]
	mov	dword [_bb_dpanel],eax
	or	dword [_115],524288
_182:
	mov	eax,dword [_115]
	and	eax,1048576
	cmp	eax,0
	jne	_184
	push	_51
	mov	eax,dword [_bb_dpanel]
	mov	eax,dword [eax+24]
	add	eax,5
	push	eax
	mov	eax,dword [_bb_dpanel]
	mov	eax,dword [eax+20]
	add	eax,5
	push	eax
	push	dword [_bb_dialog]
	call	dword [_noddybox_simplegui_TLabel+80]
	add	esp,16
	inc	dword [eax+4]
	mov	dword [_bb_dlab],eax
	or	dword [_115],1048576
_184:
	mov	eax,dword [_115]
	and	eax,2097152
	cmp	eax,0
	jne	_186
	push	_brl_blitz_NullFunctionError
	mov	eax,dword [_bb_dpanel]
	mov	eax,dword [eax+24]
	add	eax,25
	push	eax
	mov	eax,dword [_bb_dpanel]
	mov	eax,dword [eax+20]
	add	eax,25
	push	eax
	push	dword [_bb_dialog]
	call	dword [_noddybox_simplegui_TNumberInt+80]
	add	esp,16
	inc	dword [eax+4]
	mov	dword [_bb_dnum],eax
	or	dword [_115],2097152
_186:
	mov	eax,dword [_115]
	and	eax,4194304
	cmp	eax,0
	jne	_188
	push	_brl_blitz_NullFunctionError
	push	_52
	push	20
	mov	eax,dword [_bb_dpanel]
	mov	eax,dword [eax+28]
	cdq
	and	edx,1
	add	eax,edx
	sar	eax,1
	sub	eax,10
	push	eax
	mov	eax,dword [_bb_dpanel]
	mov	eax,dword [eax+24]
	mov	edx,dword [_bb_dpanel]
	add	eax,dword [edx+32]
	sub	eax,25
	push	eax
	mov	eax,dword [_bb_dpanel]
	mov	eax,dword [eax+20]
	add	eax,5
	push	eax
	push	dword [_bb_dialog]
	call	dword [_noddybox_simplegui_TButton+80]
	add	esp,28
	inc	dword [eax+4]
	mov	dword [_bb_dok],eax
	or	dword [_115],4194304
_188:
	mov	eax,dword [_115]
	and	eax,8388608
	cmp	eax,0
	jne	_190
	push	_brl_blitz_NullFunctionError
	push	_53
	push	20
	mov	eax,dword [_bb_dpanel]
	mov	eax,dword [eax+28]
	cdq
	and	edx,1
	add	eax,edx
	sar	eax,1
	sub	eax,10
	push	eax
	mov	eax,dword [_bb_dpanel]
	mov	eax,dword [eax+24]
	mov	edx,dword [_bb_dpanel]
	add	eax,dword [edx+32]
	sub	eax,25
	push	eax
	mov	eax,dword [_bb_dpanel]
	mov	ecx,dword [eax+20]
	mov	eax,dword [_bb_dpanel]
	mov	eax,dword [eax+28]
	cdq
	and	edx,1
	add	eax,edx
	sar	eax,1
	add	ecx,eax
	add	ecx,5
	push	ecx
	push	dword [_bb_dialog]
	call	dword [_noddybox_simplegui_TButton+80]
	add	esp,28
	inc	dword [eax+4]
	mov	dword [_bb_dcan],eax
	or	dword [_115],8388608
_190:
	push	_bb_LoadCallback
	push	_54
	push	30
	push	100
	push	501
	push	300
	push	dword [_bb_gui]
	call	dword [_noddybox_simplegui_TButton+80]
	add	esp,28
	push	_bb_SaveCallback
	push	_55
	push	30
	push	100
	push	501
	push	410
	push	dword [_bb_gui]
	call	dword [_noddybox_simplegui_TButton+80]
	add	esp,28
	push	3
	call	_brl_max2d_SetBlend
	add	esp,4
	jmp	_56
_58:
	call	_brl_max2d_Cls
	mov	eax,dword [_bb_gui]
	push	eax
	mov	eax,dword [eax]
	call	dword [eax+84]
	add	esp,4
	push	ebx
	call	_brl_polledinput_KeyHit
	add	esp,4
	cmp	eax,0
	je	_195
	call	_bb_Menu
_195:
	push	0
	push	0
	push	255
	call	_brl_max2d_SetColor
	add	esp,12
	mov	eax,dword [_bb_numberf]
	fld	qword [eax+56]
	sub	esp,4
	fstp	dword [esp]
	push	1092616192
	push	1133903872
	push	1136852992
	call	_brl_max2d_DrawRect
	add	esp,16
	push	0
	push	255
	push	0
	call	_brl_max2d_SetColor
	add	esp,12
	mov	eax,dword [_bb_numberi]
	mov	eax,dword [eax+52]
	mov	dword [ebp+-4],eax
	fild	dword [ebp+-4]
	sub	esp,4
	fstp	dword [esp]
	push	1092616192
	push	1133903872
	push	1137180672
	call	_brl_max2d_DrawRect
	add	esp,16
	push	-1
	call	_brl_graphics_Flip
	add	esp,4
_56:
	push	27
	call	_brl_polledinput_KeyHit
	add	esp,4
	cmp	eax,0
	sete	al
	movzx	eax,al
	cmp	eax,0
	je	_191
	mov	eax,dword [_bb_quit]
	cmp	eax,0
	sete	al
	movzx	eax,al
_191:
	cmp	eax,0
	jne	_58
_57:
	call	_brl_graphics_EndGraphics
	call	_bbEnd
	push	_bb_TextTopCallback
	push	_36
	push	30
	push	100
	push	501
	push	0
	push	dword [_bb_gui]
	call	dword [_noddybox_simplegui_TButton+80]
	add	esp,28
	push	_bb_TextEnsureCallback
	push	_37
	push	30
	push	100
	push	501
	push	110
	push	dword [_bb_gui]
	call	dword [_noddybox_simplegui_TButton+80]
	add	esp,28
	mov	eax,0
	jmp	_77
_77:
	pop	esi
	pop	ebx
	mov	esp,ebp
	pop	ebp
	ret
_bb_TextCallback:
	push	ebp
	mov	ebp,esp
	mov	eax,dword [ebp+8]
	push	_bbNullObject
	push	dword [eax+16]
	call	_noddybox_simplegui_GUINotify
	add	esp,8
	mov	eax,0
	jmp	_80
_80:
	mov	esp,ebp
	pop	ebp
	ret
_bb_CheckCallback:
	push	ebp
	mov	ebp,esp
	mov	eax,dword [ebp+8]
	push	_noddybox_simplegui_TCheckbox
	push	eax
	call	_bbObjectDowncast
	add	esp,8
	mov	ecx,dword [_bb_check2]
	mov	edx,dword [eax+52]
	mov	dword [ecx+12],edx
	mov	ecx,dword [_bb_text2]
	mov	edx,dword [eax+52]
	mov	dword [ecx+12],edx
	mov	edx,dword [_bb_button2]
	mov	eax,dword [eax+52]
	mov	dword [edx+12],eax
	mov	eax,0
	jmp	_83
_83:
	mov	esp,ebp
	pop	ebp
	ret
_bb_ButtonCallback:
	push	ebp
	mov	ebp,esp
	push	ebx
	mov	ebx,dword [ebp+8]
	push	_26
	push	dword [ebx+16]
	call	_bbStringCompare
	add	esp,8
	cmp	eax,0
	jne	_199
	push	_bbNullObject
	push	_59
	call	_noddybox_simplegui_GUIYesNo
	add	esp,8
	mov	dword [_bb_quit],eax
	jmp	_200
_199:
	push	_bbNullObject
	push	_60
	push	dword [ebx+16]
	call	_bbStringConcat
	add	esp,8
	push	eax
	call	_noddybox_simplegui_GUINotify
	add	esp,8
	push	_bbNullObject
	push	_61
	call	_noddybox_simplegui_GUINotify
	add	esp,8
	push	_bbNullObject
	push	_62
	call	_noddybox_simplegui_GUIYesNo
	add	esp,8
	cmp	eax,0
	je	_201
	push	_bbNullObject
	push	_63
	call	_noddybox_simplegui_GUINotify
	add	esp,8
	jmp	_202
_201:
	push	_bbNullObject
	push	_64
	call	_noddybox_simplegui_GUINotify
	add	esp,8
_202:
	push	_bbNullObject
	push	_65
	call	_noddybox_simplegui_GUIYesNo
	add	esp,8
	cmp	eax,0
	je	_203
	push	_bbNullObject
	push	_63
	call	_noddybox_simplegui_GUINotify
	add	esp,8
	jmp	_204
_203:
	push	_bbNullObject
	push	_64
	call	_noddybox_simplegui_GUINotify
	add	esp,8
_204:
_200:
	mov	eax,0
	jmp	_86
_86:
	pop	ebx
	mov	esp,ebp
	pop	ebp
	ret
_bb_Menu:
	push	ebp
	mov	ebp,esp
	push	ebx
	push	4
	push	_140
	call	_bbArrayNew1D
	add	esp,8
	mov	ebx,eax
	mov	eax,_67
	inc	dword [eax+4]
	mov	dword [ebx+24],eax
	mov	eax,_68
	inc	dword [eax+4]
	mov	dword [ebx+28],eax
	mov	eax,_69
	inc	dword [eax+4]
	mov	dword [ebx+32],eax
	mov	eax,_70
	inc	dword [eax+4]
	mov	dword [ebx+36],eax
	push	_bbNullObject
	call	_brl_polledinput_MouseY
	push	eax
	call	_brl_polledinput_MouseX
	push	eax
	push	ebx
	push	_66
	call	_noddybox_simplegui_GUIMenu
	add	esp,20
	cmp	eax,-1
	jle	_211
	cmp	eax,0
	jne	_212
	mov	edx,dword [_bb_dnum]
	mov	eax,dword [_bb_numberi]
	mov	eax,dword [eax+52]
	mov	dword [edx+52],eax
	push	_bbNullObject
	push	dword [_bb_dcan]
	push	dword [_bb_dok]
	push	dword [_bb_dialog]
	call	_noddybox_simplegui_GUIDialog
	add	esp,16
	cmp	eax,0
	je	_213
	mov	edx,dword [_bb_numberi]
	mov	eax,dword [_bb_dnum]
	mov	eax,dword [eax+52]
	mov	dword [edx+52],eax
_213:
	jmp	_214
_212:
	push	_bbNullObject
	push	eax
	call	_bbStringFromInt
	add	esp,4
	push	eax
	push	_71
	call	_bbStringConcat
	add	esp,8
	push	eax
	call	_noddybox_simplegui_GUINotify
	add	esp,8
_214:
_211:
	mov	eax,0
	jmp	_88
_88:
	pop	ebx
	mov	esp,ebp
	pop	ebp
	ret
_bb_ScrollCallback:
	push	ebp
	mov	ebp,esp
	push	ebx
	mov	eax,dword [ebp+8]
	push	_noddybox_simplegui_TScrollbar
	push	eax
	call	_bbObjectDowncast
	add	esp,8
	mov	ebx,dword [_bb_numberf]
	push	eax
	mov	eax,dword [eax]
	call	dword [eax+88]
	add	esp,4
	fstp	qword [ebx+56]
	mov	eax,0
	jmp	_91
_91:
	pop	ebx
	mov	esp,ebp
	pop	ebp
	ret
_bb_TextListCallback:
	push	ebp
	mov	ebp,esp
	push	ebx
	push	esi
	mov	eax,dword [ebp+8]
	push	_noddybox_simplegui_TTextList
	push	eax
	call	_bbObjectDowncast
	add	esp,8
	mov	esi,eax
	push	esi
	mov	eax,dword [esi]
	call	dword [eax+92]
	add	esp,4
	mov	ebx,eax
	push	esi
	mov	eax,dword [esi]
	call	dword [eax+88]
	add	esp,4
	push	_bbNullObject
	push	eax
	call	_bbStringFromInt
	add	esp,4
	push	eax
	push	_73
	push	ebx
	mov	eax,dword [ebx]
	call	dword [eax+24]
	add	esp,4
	push	eax
	push	_72
	call	_bbStringConcat
	add	esp,8
	push	eax
	call	_bbStringConcat
	add	esp,8
	push	eax
	call	_bbStringConcat
	add	esp,8
	push	eax
	call	_noddybox_simplegui_GUINotify
	add	esp,8
	mov	eax,0
	jmp	_94
_94:
	pop	esi
	pop	ebx
	mov	esp,ebp
	pop	ebp
	ret
_bb_TextListScrollCallback:
	push	ebp
	mov	ebp,esp
	push	ebx
	mov	eax,dword [ebp+8]
	push	_noddybox_simplegui_TScrollbar
	push	eax
	call	_bbObjectDowncast
	add	esp,8
	mov	ebx,dword [_bb_textlist]
	push	eax
	mov	eax,dword [eax]
	call	dword [eax+88]
	add	esp,4
	sub	esp,8
	fstp	qword [esp]
	call	_bbFloatToInt
	add	esp,8
	push	eax
	push	ebx
	mov	eax,dword [ebx]
	call	dword [eax+96]
	add	esp,8
	mov	eax,0
	jmp	_97
_97:
	pop	ebx
	mov	esp,ebp
	pop	ebp
	ret
_bb_TextTopCallback:
	push	ebp
	mov	ebp,esp
	mov	eax,dword [_bb_textlist]
	push	3
	push	eax
	mov	eax,dword [eax]
	call	dword [eax+96]
	add	esp,8
	mov	eax,dword [_bb_tlscroll]
	fld	qword [_296]
	sub	esp,8
	fstp	qword [esp]
	push	eax
	mov	eax,dword [eax]
	call	dword [eax+92]
	add	esp,12
	mov	eax,0
	jmp	_100
_100:
	mov	esp,ebp
	pop	ebp
	ret
_bb_TextEnsureCallback:
	push	ebp
	mov	ebp,esp
	sub	esp,4
	push	ebx
	mov	eax,dword [_bb_textlist]
	push	6
	push	eax
	mov	eax,dword [eax]
	call	dword [eax+104]
	add	esp,8
	mov	ebx,dword [_bb_tlscroll]
	mov	eax,dword [_bb_textlist]
	push	eax
	mov	eax,dword [eax]
	call	dword [eax+100]
	add	esp,4
	mov	dword [ebp+-4],eax
	fild	dword [ebp+-4]
	sub	esp,8
	fstp	qword [esp]
	push	ebx
	mov	eax,dword [ebx]
	call	dword [eax+92]
	add	esp,12
	mov	eax,0
	jmp	_103
_103:
	pop	ebx
	mov	esp,ebp
	pop	ebp
	ret
_bb_LoadCallback:
	push	ebp
	mov	ebp,esp
	push	ebx
	push	_bbNullObject
	push	0
	push	dword [_bb_fname]
	push	_74
	call	_noddybox_simplegui_GUIFileSelect
	add	esp,16
	mov	ebx,eax
	push	_bbEmptyString
	push	ebx
	call	_bbStringCompare
	add	esp,8
	cmp	eax,0
	je	_232
	push	_bbNullObject
	push	ebx
	push	_75
	call	_bbStringConcat
	add	esp,8
	push	eax
	call	_noddybox_simplegui_GUINotify
	add	esp,8
	inc	dword [ebx+4]
	mov	eax,dword [_bb_fname]
	dec	dword [eax+4]
	jnz	_236
	push	eax
	call	_bbGCFree
	add	esp,4
_236:
	mov	dword [_bb_fname],ebx
_232:
	mov	eax,0
	jmp	_106
_106:
	pop	ebx
	mov	esp,ebp
	pop	ebp
	ret
_bb_SaveCallback:
	push	ebp
	mov	ebp,esp
	push	ebx
	push	_bbNullObject
	push	1
	push	dword [_bb_fname]
	push	_76
	call	_noddybox_simplegui_GUIFileSelect
	add	esp,16
	mov	ebx,eax
	push	_bbEmptyString
	push	ebx
	call	_bbStringCompare
	add	esp,8
	cmp	eax,0
	je	_238
	push	_bbNullObject
	push	ebx
	push	_75
	call	_bbStringConcat
	add	esp,8
	push	eax
	call	_noddybox_simplegui_GUINotify
	add	esp,8
	inc	dword [ebx+4]
	mov	eax,dword [_bb_fname]
	dec	dword [eax+4]
	jnz	_242
	push	eax
	call	_bbGCFree
	add	esp,4
_242:
	mov	dword [_bb_fname],ebx
_238:
	mov	eax,0
	jmp	_109
_109:
	pop	ebx
	mov	esp,ebp
	pop	ebp
	ret
	section	"data" data writeable align 8
	align	4
_196:
	dd	0
	align	4
_112:
	file	"E:/Src/BlitzMAX/BlitzMAXMods/simplegui/font.bmf"
_113:
	align	4
_111:
	dd	_bbStringClass
	dd	2147483647
	dd	8
	dw	102,111,110,116,46,98,109,102
	align	4
_115:
	dd	0
	align	4
_18:
	dd	_bbStringClass
	dd	2147483647
	dd	16
	dw	105,110,99,98,105,110,58,58,102,111,110,116,46,98,109,102
	align	4
_bb_font:
	dd	_bbNullObject
	align	4
_bb_gui:
	dd	_bbNullObject
	align	4
_19:
	dd	_bbStringClass
	dd	2147483647
	dd	7
	dw	84,101,120,116,32,49,58
	align	4
_bb_label1:
	dd	_bbNullObject
	align	4
_20:
	dd	_bbStringClass
	dd	2147483647
	dd	7
	dw	84,101,120,116,32,50,58
	align	4
_bb_label2:
	dd	_bbNullObject
	align	4
_21:
	dd	_bbStringClass
	dd	2147483647
	dd	12
	dw	84,101,120,116,32,101,110,116,114,121,32,49
	align	4
_bb_text1:
	dd	_bbNullObject
	align	4
_22:
	dd	_bbStringClass
	dd	2147483647
	dd	12
	dw	84,101,120,116,32,101,110,116,114,121,32,50
	align	4
_bb_text2:
	dd	_bbNullObject
	align	4
_23:
	dd	_bbStringClass
	dd	2147483647
	dd	7
	dw	67,104,101,99,107,32,49
	align	4
_bb_check1:
	dd	_bbNullObject
	align	4
_24:
	dd	_bbStringClass
	dd	2147483647
	dd	7
	dw	67,104,101,99,107,32,50
	align	4
_bb_check2:
	dd	_bbNullObject
	align	4
_25:
	dd	_bbStringClass
	dd	2147483647
	dd	11
	dw	84,101,115,116,32,65,108,101,114,116,115
	align	4
_bb_button1:
	dd	_bbNullObject
	align	4
_26:
	dd	_bbStringClass
	dd	2147483647
	dd	4
	dw	81,117,105,116
	align	4
_bb_button2:
	dd	_bbNullObject
_140:
	db	"$",0
	align	4
_27:
	dd	_bbStringClass
	dd	2147483647
	dd	6
	dw	72,105,100,100,101,110
	align	4
_28:
	dd	_bbStringClass
	dd	2147483647
	dd	8
	dw	71,108,111,98,97,108,108,121
	align	4
_29:
	dd	_bbStringClass
	dd	2147483647
	dd	7
	dw	87,105,100,103,101,116,115
	align	4
_bb_buttonlist:
	dd	_bbNullObject
	align	4
_bb_vscroll:
	dd	_bbNullObject
	align	4
_bb_hscroll:
	dd	_bbNullObject
	align	4
_bb_hscroll2:
	dd	_bbNullObject
	align	4
_30:
	dd	_bbStringClass
	dd	2147483647
	dd	6
	dw	70,108,111,97,116,58
	align	4
_bb_numberf:
	dd	_bbNullObject
	align	4
_31:
	dd	_bbStringClass
	dd	2147483647
	dd	4
	dw	73,110,116,58
	align	4
_bb_numberi:
	dd	_bbNullObject
	align	8
_243:
	dd	0x0,0x40340000
	align	8
_244:
	dd	0x0,0x40240000
	align	8
_245:
	dd	0x0,0x40590000
	align	4
_32:
	dd	_bbStringClass
	dd	2147483647
	dd	5
	dw	70,108,111,97,116
	align	4
_1:
	dd	_bbStringClass
	dd	2147483647
	dd	0
	align	4
_33:
	dd	_bbStringClass
	dd	2147483647
	dd	9
	dw	70,108,111,97,116,32,112,111,115
	align	4
_34:
	dd	_bbStringClass
	dd	2147483647
	dd	3
	dw	73,110,116
	align	4
_35:
	dd	_bbStringClass
	dd	2147483647
	dd	7
	dw	73,110,116,32,112,111,115
	align	4
_bb_textlist:
	dd	_bbNullObject
	align	4
_bb_tlscroll:
	dd	_bbNullObject
	align	4
_36:
	dd	_bbStringClass
	dd	2147483647
	dd	12
	dw	84,111,112,32,82,111,119,32,116,111,32,51
	align	4
_37:
	dd	_bbStringClass
	dd	2147483647
	dd	14
	dw	69,110,115,46,32,86,105,115,46,32,116,111,32,54
	align	4
_38:
	dd	_bbStringClass
	dd	2147483647
	dd	25
	dw	65,32,108,111,110,103,44,32,108,111,110,103,32,108,111,110
	dw	103,32,105,110,100,101,120,32,48
	align	4
_39:
	dd	_bbStringClass
	dd	2147483647
	dd	1
	dw	49
	align	4
_40:
	dd	_bbStringClass
	dd	2147483647
	dd	1
	dw	50
	align	4
_41:
	dd	_bbStringClass
	dd	2147483647
	dd	1
	dw	51
	align	4
_42:
	dd	_bbStringClass
	dd	2147483647
	dd	1
	dw	52
	align	4
_43:
	dd	_bbStringClass
	dd	2147483647
	dd	1
	dw	53
	align	4
_44:
	dd	_bbStringClass
	dd	2147483647
	dd	1
	dw	54
	align	4
_45:
	dd	_bbStringClass
	dd	2147483647
	dd	1
	dw	55
	align	4
_46:
	dd	_bbStringClass
	dd	2147483647
	dd	1
	dw	56
	align	4
_47:
	dd	_bbStringClass
	dd	2147483647
	dd	1
	dw	57
	align	4
_48:
	dd	_bbStringClass
	dd	2147483647
	dd	2
	dw	49,48
	align	4
_49:
	dd	_bbStringClass
	dd	2147483647
	dd	2
	dw	49,49
	align	4
_50:
	dd	_bbStringClass
	dd	2147483647
	dd	2
	dw	49,50
	align	8
_246:
	dd	0x0,0x40220000
	align	4
_bb_dialog:
	dd	_bbNullObject
	align	4
_bb_dpanel:
	dd	_bbNullObject
	align	4
_51:
	dd	_bbStringClass
	dd	2147483647
	dd	15
	dw	69,110,116,101,114,32,97,32,110,117,109,98,101,114,58
	align	4
_bb_dlab:
	dd	_bbNullObject
	align	4
_bb_dnum:
	dd	_bbNullObject
	align	4
_52:
	dd	_bbStringClass
	dd	2147483647
	dd	2
	dw	79,75
	align	4
_bb_dok:
	dd	_bbNullObject
	align	4
_53:
	dd	_bbStringClass
	dd	2147483647
	dd	6
	dw	67,97,110,99,101,108
	align	4
_bb_dcan:
	dd	_bbNullObject
	align	4
_bb_fname:
	dd	_bbEmptyString
	align	4
_54:
	dd	_bbStringClass
	dd	2147483647
	dd	4
	dw	76,111,97,100
	align	4
_55:
	dd	_bbStringClass
	dd	2147483647
	dd	4
	dw	83,97,118,101
	align	4
_bb_quit:
	dd	0
	align	4
_59:
	dd	_bbStringClass
	dd	2147483647
	dd	55
	dw	82,101,97,108,108,121,32,113,117,105,116,32,116,104,105,115
	dw	32,114,101,97,108,108,121,32,114,97,116,104,101,114,32,105
	dw	109,112,114,101,115,115,105,118,101,32,40,99,111,117,103,104
	dw	41,32,100,101,109,111,63
	align	4
_60:
	dd	_bbStringClass
	dd	2147483647
	dd	8
	dw	32,112,114,101,115,115,101,100
	align	4
_61:
	dd	_bbStringClass
	dd	2147483647
	dd	11
	dw	72,101,108,108,111,124,87,111,114,108,100
	align	4
_62:
	dd	_bbStringClass
	dd	2147483647
	dd	12
	dw	84,101,115,116,32,121,101,115,47,110,111,63
	align	4
_63:
	dd	_bbStringClass
	dd	2147483647
	dd	3
	dw	121,101,115
	align	4
_64:
	dd	_bbStringClass
	dd	2147483647
	dd	2
	dw	110,111
	align	4
_65:
	dd	_bbStringClass
	dd	2147483647
	dd	57
	dw	84,101,115,116,32,121,101,115,47,110,111,124,119,105,116,104
	dw	32,115,111,109,101,32,118,101,114,121,32,118,101,114,121,32
	dw	118,101,114,121,32,108,111,110,103,124,109,117,108,116,105,112
	dw	108,101,32,108,105,110,101,115,63
	align	4
_67:
	dd	_bbStringClass
	dd	2147483647
	dd	11
	dw	84,101,115,116,32,68,105,97,108,111,103
	align	4
_68:
	dd	_bbStringClass
	dd	2147483647
	dd	8
	dw	79,112,116,105,111,110,32,49
	align	4
_69:
	dd	_bbStringClass
	dd	2147483647
	dd	8
	dw	79,112,116,105,111,110,32,50
	align	4
_70:
	dd	_bbStringClass
	dd	2147483647
	dd	8
	dw	79,112,116,105,111,110,32,51
	align	4
_66:
	dd	_bbStringClass
	dd	2147483647
	dd	16
	dw	65,32,108,111,110,103,32,108,111,110,103,32,77,101,110,117
	align	4
_71:
	dd	_bbStringClass
	dd	2147483647
	dd	9
	dw	83,101,108,101,99,116,101,100,32
	align	4
_73:
	dd	_bbStringClass
	dd	2147483647
	dd	7
	dw	124,105,110,100,101,120,61
	align	4
_72:
	dd	_bbStringClass
	dd	2147483647
	dd	5
	dw	73,116,101,109,61
	align	8
_296:
	dd	0x0,0x40080000
	align	4
_74:
	dd	_bbStringClass
	dd	2147483647
	dd	11
	dw	76,111,97,100,32,97,32,102,105,108,101
	align	4
_75:
	dd	_bbStringClass
	dd	2147483647
	dd	5
	dw	112,97,116,104,61
	align	4
_76:
	dd	_bbStringClass
	dd	2147483647
	dd	11
	dw	83,97,118,101,32,97,32,102,105,108,101
