	format	MS COFF
	extrn	___bb_appstub_appstub
	extrn	___bb_audio_audio
	extrn	___bb_bank_bank
	extrn	___bb_bankstream_bankstream
	extrn	___bb_basic_basic
	extrn	___bb_blitz_blitz
	extrn	___bb_bmploader_bmploader
	extrn	___bb_cocoamaxgui_cocoamaxgui
	extrn	___bb_d3d7max2d_d3d7max2d
	extrn	___bb_eventqueue_eventqueue
	extrn	___bb_fltkmaxgui_fltkmaxgui
	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_lua_lua
	extrn	___bb_luascript_luascript
	extrn	___bb_maxgui_maxgui
	extrn	___bb_maxutil_maxutil
	extrn	___bb_oggloader_oggloader
	extrn	___bb_pngloader_pngloader
	extrn	___bb_retro_retro
	extrn	___bb_tgaloader_tgaloader
	extrn	___bb_timer_timer
	extrn	___bb_wavloader_wavloader
	extrn	___bb_win32maxgui_win32maxgui
	extrn	_bbEnd
	extrn	_bbGCFree
	extrn	_bbNullObject
	extrn	_bbObjectClass
	extrn	_bbObjectCompare
	extrn	_bbObjectCtor
	extrn	_bbObjectDowncast
	extrn	_bbObjectDtor
	extrn	_bbObjectFree
	extrn	_bbObjectNew
	extrn	_bbObjectReserved
	extrn	_bbObjectSendMessage
	extrn	_bbObjectToString
	extrn	_bbOnDebugEnterScope
	extrn	_bbOnDebugEnterStm
	extrn	_bbOnDebugLeaveScope
	extrn	_bbStringClass
	extrn	_brl_blitz_NullMethodError
	extrn	_brl_blitz_NullObjectError
	extrn	_brl_event_EmitEvent
	extrn	_brl_event_EmitEventHook
	extrn	_brl_event_TEvent
	extrn	_brl_eventqueue_CurrentEvent
	extrn	_brl_eventqueue_WaitEvent
	extrn	_brl_graphics_Flip
	extrn	_brl_graphics_SetGraphics
	extrn	_brl_hook_AddHook
	extrn	_brl_linkedlist_CreateList
	extrn	_brl_max2d_Cls
	extrn	_brl_max2d_Plot
	extrn	_brl_max2d_SetColor
	extrn	_brl_maxgui_CanvasGraphics
	extrn	_brl_maxgui_CreateCanvas
	extrn	_brl_maxgui_CreateWindow
	public	__bb_TCanvas_Create
	public	__bb_TCanvas_Delete
	public	__bb_TCanvas_Handle
	public	__bb_TCanvas_New
	public	__bb_TManagedGadget_Delete
	public	__bb_TManagedGadget_New
	public	__bb_TWindow_Create
	public	__bb_TWindow_Delete
	public	__bb_TWindow_Handle
	public	__bb_TWindow_New
	public	__bb_main
	public	_bb_EventHandler
	public	_bb_TCanvas
	public	_bb_TManagedGadget
	public	_bb_TWindow
	public	_bb_gadgets
	section	"code" code
__bb_main:
	push	ebp
	mov	ebp,esp
	sub	esp,8
	push	ebx
	cmp	dword [_102],0
	je	_103
	mov	eax,0
	pop	ebx
	mov	esp,ebp
	pop	ebp
	ret
_103:
	mov	dword [_102],1
	mov	dword [ebp-4],_bbNullObject
	mov	dword [ebp-8],_bbNullObject
	push	ebp
	push	_94
	call	dword [_bbOnDebugEnterScope]
	add	esp,8
	call	___bb_blitz_blitz
	call	___bb_appstub_appstub
	call	___bb_audio_audio
	call	___bb_bank_bank
	call	___bb_bankstream_bankstream
	call	___bb_basic_basic
	call	___bb_bmploader_bmploader
	call	___bb_cocoamaxgui_cocoamaxgui
	call	___bb_d3d7max2d_d3d7max2d
	call	___bb_eventqueue_eventqueue
	call	___bb_fltkmaxgui_fltkmaxgui
	call	___bb_freeaudioaudio_freeaudioaudio
	call	___bb_freetypefont_freetypefont
	call	___bb_gnet_gnet
	call	___bb_jpgloader_jpgloader
	call	___bb_maxgui_maxgui
	call	___bb_maxutil_maxutil
	call	___bb_oggloader_oggloader
	call	___bb_pngloader_pngloader
	call	___bb_retro_retro
	call	___bb_tgaloader_tgaloader
	call	___bb_timer_timer
	call	___bb_wavloader_wavloader
	call	___bb_win32maxgui_win32maxgui
	call	___bb_freejoy_freejoy
	call	___bb_freeprocess_freeprocess
	call	___bb_glew_glew
	call	___bb_lua_lua
	call	___bb_luascript_luascript
	push	_77
	call	dword [_bbOnDebugEnterStm]
	add	esp,4
	mov	eax,dword [_80]
	and	eax,1
	cmp	eax,0
	jne	_81
	call	_brl_linkedlist_CreateList
	inc	dword [eax+4]
	mov	dword [_bb_gadgets],eax
	or	dword [_80],1
_81:
	push	_82
	call	dword [_bbOnDebugEnterStm]
	add	esp,4
	push	37
	push	_bbNullObject
	push	600
	push	800
	push	100
	push	100
	push	_14
	call	dword [_bb_TWindow+52]
	add	esp,28
	mov	dword [ebp-4],eax
	push	_84
	call	dword [_bbOnDebugEnterStm]
	add	esp,4
	push	dword [ebp-4]
	push	600
	push	800
	push	0
	push	0
	call	dword [_bb_TCanvas+52]
	add	esp,20
	mov	dword [ebp-8],eax
	push	_86
	call	dword [_bbOnDebugEnterStm]
	add	esp,4
	push	0
	push	_bbNullObject
	push	_bb_EventHandler
	push	dword [_brl_event_EmitEventHook]
	call	_brl_hook_AddHook
	add	esp,16
	push	_87
	call	dword [_bbOnDebugEnterStm]
	add	esp,4
	jmp	_15
_17:
	push	ebp
	push	_92
	call	dword [_bbOnDebugEnterScope]
	add	esp,8
	push	_90
	call	dword [_bbOnDebugEnterStm]
	add	esp,4
	call	_brl_eventqueue_WaitEvent
	push	_91
	call	dword [_bbOnDebugEnterStm]
	add	esp,4
	push	dword [_brl_eventqueue_CurrentEvent]
	call	_brl_event_EmitEvent
	add	esp,4
	call	dword [_bbOnDebugLeaveScope]
_15:
	mov	ebx,dword [ebp-4]
	cmp	ebx,_bbNullObject
	jne	_89
	call	_brl_blitz_NullObjectError
_89:
	cmp	dword [ebx+12],0
	je	_17
_16:
	push	_93
	call	dword [_bbOnDebugEnterStm]
	add	esp,4
	call	_bbEnd
	mov	ebx,0
	jmp	_28
_28:
	call	dword [_bbOnDebugLeaveScope]
	mov	eax,ebx
	pop	ebx
	mov	esp,ebp
	pop	ebp
	ret
__bb_TManagedGadget_New:
	push	ebp
	mov	ebp,esp
	sub	esp,4
	push	ebx
	mov	eax,dword [ebp+8]
	mov	dword [ebp-4],eax
	push	ebp
	push	_111
	call	dword [_bbOnDebugEnterScope]
	add	esp,8
	push	dword [ebp-4]
	call	_bbObjectCtor
	add	esp,4
	mov	eax,dword [ebp-4]
	mov	dword [eax],_bb_TManagedGadget
	push	ebp
	push	_109
	call	dword [_bbOnDebugEnterScope]
	add	esp,8
	push	_104
	call	dword [_bbOnDebugEnterStm]
	add	esp,4
	mov	ebx,dword [ebp-4]
	cmp	ebx,_bbNullObject
	jne	_106
	call	_brl_blitz_NullObjectError
_106:
	mov	eax,_bbNullObject
	inc	dword [eax+4]
	mov	dword [ebx+8],eax
	call	dword [_bbOnDebugLeaveScope]
	push	ebp
	push	_110
	call	dword [_bbOnDebugEnterScope]
	add	esp,8
	call	dword [_bbOnDebugLeaveScope]
	mov	ebx,0
	jmp	_31
_31:
	call	dword [_bbOnDebugLeaveScope]
	mov	eax,ebx
	pop	ebx
	mov	esp,ebp
	pop	ebp
	ret
__bb_TManagedGadget_Delete:
	push	ebp
	mov	ebp,esp
	sub	esp,4
	push	ebx
	mov	eax,dword [ebp+8]
	mov	dword [ebp-4],eax
	push	ebp
	push	_119
	call	dword [_bbOnDebugEnterScope]
	add	esp,8
	push	ebp
	push	_115
	call	dword [_bbOnDebugEnterScope]
	add	esp,8
	call	dword [_bbOnDebugLeaveScope]
_34:
	mov	eax,dword [ebp-4]
	mov	eax,dword [eax+8]
	dec	dword [eax+4]
	jnz	_118
	push	eax
	call	_bbGCFree
	add	esp,4
_118:
	mov	eax,dword [ebp-4]
	mov	dword [eax],_bbObjectClass
	push	dword [ebp-4]
	call	_bbObjectDtor
	add	esp,4
	mov	ebx,0
	jmp	_116
_116:
	call	dword [_bbOnDebugLeaveScope]
	mov	eax,ebx
	pop	ebx
	mov	esp,ebp
	pop	ebp
	ret
__bb_TWindow_New:
	push	ebp
	mov	ebp,esp
	sub	esp,4
	push	ebx
	mov	eax,dword [ebp+8]
	mov	dword [ebp-4],eax
	push	ebp
	push	_127
	call	dword [_bbOnDebugEnterScope]
	add	esp,8
	push	dword [ebp-4]
	call	__bb_TManagedGadget_New
	add	esp,4
	mov	eax,dword [ebp-4]
	mov	dword [eax],_bb_TWindow
	push	ebp
	push	_125
	call	dword [_bbOnDebugEnterScope]
	add	esp,8
	push	_121
	call	dword [_bbOnDebugEnterStm]
	add	esp,4
	mov	ebx,dword [ebp-4]
	cmp	ebx,_bbNullObject
	jne	_123
	call	_brl_blitz_NullObjectError
_123:
	mov	dword [ebx+12],0
	call	dword [_bbOnDebugLeaveScope]
	push	ebp
	push	_126
	call	dword [_bbOnDebugEnterScope]
	add	esp,8
	call	dword [_bbOnDebugLeaveScope]
	mov	ebx,0
	jmp	_37
_37:
	call	dword [_bbOnDebugLeaveScope]
	mov	eax,ebx
	pop	ebx
	mov	esp,ebp
	pop	ebp
	ret
__bb_TWindow_Delete:
	push	ebp
	mov	ebp,esp
	sub	esp,4
	push	ebx
	mov	eax,dword [ebp+8]
	mov	dword [ebp-4],eax
	push	ebp
	push	_130
	call	dword [_bbOnDebugEnterScope]
	add	esp,8
	push	ebp
	push	_128
	call	dword [_bbOnDebugEnterScope]
	add	esp,8
	call	dword [_bbOnDebugLeaveScope]
_40:
	mov	eax,dword [ebp-4]
	mov	dword [eax],_bb_TManagedGadget
	push	dword [ebp-4]
	call	__bb_TManagedGadget_Delete
	add	esp,4
	mov	ebx,0
	jmp	_129
_129:
	call	dword [_bbOnDebugLeaveScope]
	mov	eax,ebx
	pop	ebx
	mov	esp,ebp
	pop	ebp
	ret
__bb_TWindow_Create:
	push	ebp
	mov	ebp,esp
	sub	esp,32
	push	ebx
	push	esi
	mov	eax,dword [ebp+8]
	mov	dword [ebp-4],eax
	mov	eax,dword [ebp+12]
	mov	dword [ebp-8],eax
	mov	eax,dword [ebp+16]
	mov	dword [ebp-12],eax
	mov	eax,dword [ebp+20]
	mov	dword [ebp-16],eax
	mov	eax,dword [ebp+24]
	mov	dword [ebp-20],eax
	mov	eax,dword [ebp+28]
	mov	dword [ebp-24],eax
	mov	eax,dword [ebp+32]
	mov	dword [ebp-28],eax
	mov	dword [ebp-32],_bbNullObject
	push	ebp
	push	_164
	call	dword [_bbOnDebugEnterScope]
	add	esp,8
	push	_131
	call	dword [_bbOnDebugEnterStm]
	add	esp,4
	push	_bb_TWindow
	call	_bbObjectNew
	add	esp,4
	mov	dword [ebp-32],eax
	push	_133
	call	dword [_bbOnDebugEnterStm]
	add	esp,4
	mov	ebx,dword [ebp-32]
	cmp	ebx,_bbNullObject
	jne	_135
	call	_brl_blitz_NullObjectError
_135:
	mov	dword [ebx+12],0
	push	_137
	call	dword [_bbOnDebugEnterStm]
	add	esp,4
	cmp	dword [ebp-24],_bbNullObject
	je	_138
	push	ebp
	push	_149
	call	dword [_bbOnDebugEnterScope]
	add	esp,8
	push	_139
	call	dword [_bbOnDebugEnterStm]
	add	esp,4
	mov	ebx,dword [ebp-32]
	cmp	ebx,_bbNullObject
	jne	_141
	call	_brl_blitz_NullObjectError
_141:
	mov	esi,dword [ebp-24]
	cmp	esi,_bbNullObject
	jne	_144
	call	_brl_blitz_NullObjectError
_144:
	push	dword [ebp-28]
	push	dword [esi+8]
	push	dword [ebp-20]
	push	dword [ebp-16]
	push	dword [ebp-12]
	push	dword [ebp-8]
	push	dword [ebp-4]
	call	_brl_maxgui_CreateWindow
	add	esp,28
	inc	dword [eax+4]
	mov	esi,eax
	mov	eax,dword [ebx+8]
	dec	dword [eax+4]
	jnz	_148
	push	eax
	call	_bbGCFree
	add	esp,4
_148:
	mov	dword [ebx+8],esi
	call	dword [_bbOnDebugLeaveScope]
	jmp	_150
_138:
	push	ebp
	push	_159
	call	dword [_bbOnDebugEnterScope]
	add	esp,8
	push	_151
	call	dword [_bbOnDebugEnterStm]
	add	esp,4
	mov	ebx,dword [ebp-32]
	cmp	ebx,_bbNullObject
	jne	_153
	call	_brl_blitz_NullObjectError
_153:
	push	dword [ebp-28]
	push	_bbNullObject
	push	dword [ebp-20]
	push	dword [ebp-16]
	push	dword [ebp-12]
	push	dword [ebp-8]
	push	dword [ebp-4]
	call	_brl_maxgui_CreateWindow
	add	esp,28
	inc	dword [eax+4]
	mov	esi,eax
	mov	eax,dword [ebx+8]
	dec	dword [eax+4]
	jnz	_158
	push	eax
	call	_bbGCFree
	add	esp,4
_158:
	mov	dword [ebx+8],esi
	call	dword [_bbOnDebugLeaveScope]
_150:
	push	_160
	call	dword [_bbOnDebugEnterStm]
	add	esp,4
	mov	ebx,dword [_bb_gadgets]
	cmp	ebx,_bbNullObject
	jne	_162
	call	_brl_blitz_NullObjectError
_162:
	push	dword [ebp-32]
	push	ebx
	mov	eax,dword [ebx]
	call	dword [eax+68]
	add	esp,8
	push	_163
	call	dword [_bbOnDebugEnterStm]
	add	esp,4
	mov	ebx,dword [ebp-32]
	jmp	_49
_49:
	call	dword [_bbOnDebugLeaveScope]
	mov	eax,ebx
	pop	esi
	pop	ebx
	mov	esp,ebp
	pop	ebp
	ret
__bb_TWindow_Handle:
	push	ebp
	mov	ebp,esp
	sub	esp,8
	push	ebx
	mov	eax,dword [ebp+8]
	mov	dword [ebp-4],eax
	mov	eax,dword [ebp+12]
	mov	dword [ebp-8],eax
	push	ebp
	push	_183
	call	dword [_bbOnDebugEnterScope]
	add	esp,8
	push	_174
	call	dword [_bbOnDebugEnterStm]
	add	esp,4
	mov	ebx,dword [ebp-8]
	cmp	ebx,_bbNullObject
	jne	_176
	call	_brl_blitz_NullObjectError
_176:
	cmp	dword [ebx+8],16387
	jne	_177
	push	ebp
	push	_182
	call	dword [_bbOnDebugEnterScope]
	add	esp,8
	push	_178
	call	dword [_bbOnDebugEnterStm]
	add	esp,4
	mov	ebx,dword [ebp-4]
	cmp	ebx,_bbNullObject
	jne	_180
	call	_brl_blitz_NullObjectError
_180:
	mov	dword [ebx+12],1
	call	dword [_bbOnDebugLeaveScope]
_177:
	mov	ebx,0
	jmp	_53
_53:
	call	dword [_bbOnDebugLeaveScope]
	mov	eax,ebx
	pop	ebx
	mov	esp,ebp
	pop	ebp
	ret
__bb_TCanvas_New:
	push	ebp
	mov	ebp,esp
	sub	esp,4
	push	ebx
	mov	eax,dword [ebp+8]
	mov	dword [ebp-4],eax
	push	ebp
	push	_189
	call	dword [_bbOnDebugEnterScope]
	add	esp,8
	push	dword [ebp-4]
	call	__bb_TManagedGadget_New
	add	esp,4
	mov	eax,dword [ebp-4]
	mov	dword [eax],_bb_TCanvas
	push	ebp
	push	_187
	call	dword [_bbOnDebugEnterScope]
	add	esp,8
	call	dword [_bbOnDebugLeaveScope]
	push	ebp
	push	_188
	call	dword [_bbOnDebugEnterScope]
	add	esp,8
	call	dword [_bbOnDebugLeaveScope]
	mov	ebx,0
	jmp	_56
_56:
	call	dword [_bbOnDebugLeaveScope]
	mov	eax,ebx
	pop	ebx
	mov	esp,ebp
	pop	ebp
	ret
__bb_TCanvas_Delete:
	push	ebp
	mov	ebp,esp
	sub	esp,4
	push	ebx
	mov	eax,dword [ebp+8]
	mov	dword [ebp-4],eax
	push	ebp
	push	_192
	call	dword [_bbOnDebugEnterScope]
	add	esp,8
	push	ebp
	push	_190
	call	dword [_bbOnDebugEnterScope]
	add	esp,8
	call	dword [_bbOnDebugLeaveScope]
_59:
	mov	eax,dword [ebp-4]
	mov	dword [eax],_bb_TManagedGadget
	push	dword [ebp-4]
	call	__bb_TManagedGadget_Delete
	add	esp,4
	mov	ebx,0
	jmp	_191
_191:
	call	dword [_bbOnDebugLeaveScope]
	mov	eax,ebx
	pop	ebx
	mov	esp,ebp
	pop	ebp
	ret
__bb_TCanvas_Create:
	push	ebp
	mov	ebp,esp
	sub	esp,24
	push	ebx
	push	esi
	mov	eax,dword [ebp+8]
	mov	dword [ebp-4],eax
	mov	eax,dword [ebp+12]
	mov	dword [ebp-8],eax
	mov	eax,dword [ebp+16]
	mov	dword [ebp-12],eax
	mov	eax,dword [ebp+20]
	mov	dword [ebp-16],eax
	mov	eax,dword [ebp+24]
	mov	dword [ebp-20],eax
	mov	dword [ebp-24],_bbNullObject
	push	ebp
	push	_209
	call	dword [_bbOnDebugEnterScope]
	add	esp,8
	push	_193
	call	dword [_bbOnDebugEnterStm]
	add	esp,4
	push	_bb_TCanvas
	call	_bbObjectNew
	add	esp,4
	mov	dword [ebp-24],eax
	push	_195
	call	dword [_bbOnDebugEnterStm]
	add	esp,4
	mov	ebx,dword [ebp-24]
	cmp	ebx,_bbNullObject
	jne	_197
	call	_brl_blitz_NullObjectError
_197:
	mov	esi,dword [ebp-20]
	cmp	esi,_bbNullObject
	jne	_200
	call	_brl_blitz_NullObjectError
_200:
	push	2
	push	0
	push	dword [esi+8]
	push	dword [ebp-16]
	push	dword [ebp-12]
	push	dword [ebp-8]
	push	dword [ebp-4]
	call	_brl_maxgui_CreateCanvas
	add	esp,28
	inc	dword [eax+4]
	mov	esi,eax
	mov	eax,dword [ebx+8]
	dec	dword [eax+4]
	jnz	_204
	push	eax
	call	_bbGCFree
	add	esp,4
_204:
	mov	dword [ebx+8],esi
	push	_205
	call	dword [_bbOnDebugEnterStm]
	add	esp,4
	mov	ebx,dword [_bb_gadgets]
	cmp	ebx,_bbNullObject
	jne	_207
	call	_brl_blitz_NullObjectError
_207:
	push	dword [ebp-24]
	push	ebx
	mov	eax,dword [ebx]
	call	dword [eax+68]
	add	esp,8
	push	_208
	call	dword [_bbOnDebugEnterStm]
	add	esp,4
	mov	ebx,dword [ebp-24]
	jmp	_66
_66:
	call	dword [_bbOnDebugLeaveScope]
	mov	eax,ebx
	pop	esi
	pop	ebx
	mov	esp,ebp
	pop	ebp
	ret
__bb_TCanvas_Handle:
	push	ebp
	mov	ebp,esp
	sub	esp,20
	push	ebx
	push	esi
	mov	eax,dword [ebp+8]
	mov	dword [ebp-4],eax
	mov	eax,dword [ebp+12]
	mov	dword [ebp-8],eax
	mov	dword [ebp-12],_bbNullObject
	mov	dword [ebp-16],_bbNullObject
	push	ebp
	push	_240
	call	dword [_bbOnDebugEnterScope]
	add	esp,8
	push	_210
	call	dword [_bbOnDebugEnterStm]
	add	esp,4
	mov	ebx,dword [ebp-8]
	cmp	ebx,_bbNullObject
	jne	_212
	call	_brl_blitz_NullObjectError
_212:
	mov	eax,dword [ebx+8]
	cmp	eax,8194
	je	_215
	cmp	eax,1027
	je	_216
	jmp	_214
_215:
	push	ebp
	push	_224
	call	dword [_bbOnDebugEnterScope]
	add	esp,8
	push	_217
	call	dword [_bbOnDebugEnterStm]
	add	esp,4
	mov	ebx,dword [ebp-4]
	cmp	ebx,_bbNullObject
	jne	_219
	call	_brl_blitz_NullObjectError
_219:
	push	dword [ebx+8]
	call	_brl_maxgui_CanvasGraphics
	add	esp,4
	mov	dword [ebp-12],eax
	push	_221
	call	dword [_bbOnDebugEnterStm]
	add	esp,4
	push	dword [ebp-12]
	call	_brl_graphics_SetGraphics
	add	esp,4
	push	_222
	call	dword [_bbOnDebugEnterStm]
	add	esp,4
	call	_brl_max2d_Cls
	push	_223
	call	dword [_bbOnDebugEnterStm]
	add	esp,4
	push	-1
	call	_brl_graphics_Flip
	add	esp,4
	call	dword [_bbOnDebugLeaveScope]
	jmp	_214
_216:
	push	ebp
	push	_239
	call	dword [_bbOnDebugEnterScope]
	add	esp,8
	push	_227
	call	dword [_bbOnDebugEnterStm]
	add	esp,4
	mov	ebx,dword [ebp-4]
	cmp	ebx,_bbNullObject
	jne	_229
	call	_brl_blitz_NullObjectError
_229:
	push	dword [ebx+8]
	call	_brl_maxgui_CanvasGraphics
	add	esp,4
	mov	dword [ebp-16],eax
	push	_231
	call	dword [_bbOnDebugEnterStm]
	add	esp,4
	push	dword [ebp-16]
	call	_brl_graphics_SetGraphics
	add	esp,4
	push	_232
	call	dword [_bbOnDebugEnterStm]
	add	esp,4
	push	255
	push	255
	push	255
	call	_brl_max2d_SetColor
	add	esp,12
	push	_233
	call	dword [_bbOnDebugEnterStm]
	add	esp,4
	mov	ebx,dword [ebp-8]
	cmp	ebx,_bbNullObject
	jne	_235
	call	_brl_blitz_NullObjectError
_235:
	mov	esi,dword [ebp-8]
	cmp	esi,_bbNullObject
	jne	_237
	call	_brl_blitz_NullObjectError
_237:
	mov	eax,dword [esi+28]
	mov	dword [ebp+-20],eax
	fild	dword [ebp+-20]
	sub	esp,4
	fstp	dword [esp]
	mov	eax,dword [ebx+24]
	mov	dword [ebp+-20],eax
	fild	dword [ebp+-20]
	sub	esp,4
	fstp	dword [esp]
	call	_brl_max2d_Plot
	add	esp,8
	push	_238
	call	dword [_bbOnDebugEnterStm]
	add	esp,4
	push	-1
	call	_brl_graphics_Flip
	add	esp,4
	call	dword [_bbOnDebugLeaveScope]
	jmp	_214
_214:
	mov	ebx,0
	jmp	_70
_70:
	call	dword [_bbOnDebugLeaveScope]
	mov	eax,ebx
	pop	esi
	pop	ebx
	mov	esp,ebp
	pop	ebp
	ret
_bb_EventHandler:
	push	ebp
	mov	ebp,esp
	sub	esp,24
	push	ebx
	push	esi
	push	edi
	mov	eax,dword [ebp+8]
	mov	dword [ebp-4],eax
	mov	eax,dword [ebp+12]
	mov	dword [ebp-8],eax
	mov	eax,dword [ebp+16]
	mov	dword [ebp-12],eax
	mov	dword [ebp-16],_bbNullObject
	mov	dword [ebp-20],_bbNullObject
	mov	eax,ebp
	push	eax
	push	_274
	call	dword [_bbOnDebugEnterScope]
	add	esp,8
	push	_241
	call	dword [_bbOnDebugEnterStm]
	add	esp,4
	push	_brl_event_TEvent
	push	dword [ebp-8]
	call	_bbObjectDowncast
	add	esp,8
	mov	dword [ebp-16],eax
	push	_243
	call	dword [_bbOnDebugEnterStm]
	add	esp,4
	cmp	dword [ebp-16],_bbNullObject
	je	_244
	mov	eax,ebp
	push	eax
	push	_272
	call	dword [_bbOnDebugEnterScope]
	add	esp,8
	push	_245
	call	dword [_bbOnDebugEnterStm]
	add	esp,4
	mov	dword [ebp-20],_bbNullObject
	mov	eax,dword [_bb_gadgets]
	mov	dword [ebp-24],eax
	mov	ebx,dword [ebp-24]
	cmp	ebx,_bbNullObject
	jne	_249
	call	_brl_blitz_NullObjectError
_249:
	push	ebx
	mov	eax,dword [ebx]
	call	dword [eax+140]
	add	esp,4
	mov	edi,eax
	jmp	_11
_13:
	mov	ebx,edi
	cmp	ebx,_bbNullObject
	jne	_254
	call	_brl_blitz_NullObjectError
_254:
	push	_bb_TManagedGadget
	push	ebx
	mov	eax,dword [ebx]
	call	dword [eax+52]
	add	esp,4
	push	eax
	call	_bbObjectDowncast
	add	esp,8
	mov	dword [ebp-20],eax
	cmp	dword [ebp-20],_bbNullObject
	je	_11
	mov	eax,ebp
	push	eax
	push	_271
	call	dword [_bbOnDebugEnterScope]
	add	esp,8
	push	_255
	call	dword [_bbOnDebugEnterStm]
	add	esp,4
	mov	eax,dword [ebp-20]
	cmp	eax,_bbNullObject
	setne	al
	movzx	eax,al
	cmp	eax,0
	je	_258
	mov	ebx,dword [ebp-20]
	cmp	ebx,_bbNullObject
	jne	_257
	call	_brl_blitz_NullObjectError
_257:
	mov	eax,dword [ebx+8]
	cmp	eax,_bbNullObject
	setne	al
	movzx	eax,al
_258:
	cmp	eax,0
	je	_264
	mov	esi,dword [ebp-20]
	cmp	esi,_bbNullObject
	jne	_261
	call	_brl_blitz_NullObjectError
_261:
	mov	ebx,dword [ebp-16]
	cmp	ebx,_bbNullObject
	jne	_263
	call	_brl_blitz_NullObjectError
_263:
	mov	eax,dword [esi+8]
	cmp	eax,dword [ebx+12]
	sete	al
	movzx	eax,al
_264:
	cmp	eax,0
	je	_266
	mov	eax,ebp
	push	eax
	push	_270
	call	dword [_bbOnDebugEnterScope]
	add	esp,8
	push	_267
	call	dword [_bbOnDebugEnterStm]
	add	esp,4
	mov	ebx,dword [ebp-20]
	cmp	ebx,_bbNullObject
	jne	_269
	call	_brl_blitz_NullObjectError
_269:
	push	dword [ebp-16]
	push	ebx
	mov	eax,dword [ebx]
	call	dword [eax+48]
	add	esp,8
	call	dword [_bbOnDebugLeaveScope]
_266:
	call	dword [_bbOnDebugLeaveScope]
_11:
	mov	ebx,edi
	cmp	ebx,_bbNullObject
	jne	_252
	call	_brl_blitz_NullObjectError
_252:
	push	ebx
	mov	eax,dword [ebx]
	call	dword [eax+48]
	add	esp,4
	cmp	eax,0
	jne	_13
_12:
	call	dword [_bbOnDebugLeaveScope]
_244:
	push	_273
	call	dword [_bbOnDebugEnterStm]
	add	esp,4
	mov	ebx,_bbNullObject
	jmp	_75
_75:
	call	dword [_bbOnDebugLeaveScope]
	mov	eax,ebx
	pop	edi
	pop	esi
	pop	ebx
	mov	esp,ebp
	pop	ebp
	ret
	section	"data" data writeable align 8
	align	4
_102:
	dd	0
_95:
	db	"guitest",0
_96:
	db	"gadgets",0
_97:
	db	":TList",0
	align	4
_bb_gadgets:
	dd	_bbNullObject
_98:
	db	"w",0
_99:
	db	":TWindow",0
_100:
	db	"c",0
_101:
	db	":TCanvas",0
	align	4
_94:
	dd	1
	dd	_95
	dd	4
	dd	_96
	dd	_97
	dd	_bb_gadgets
	dd	2
	dd	_98
	dd	_99
	dd	-4
	dd	2
	dd	_100
	dd	_101
	dd	-8
	dd	0
_78:
	db	"E:/Src/BlitzMAX/guitest/guitest.bmx",0
	align	4
_77:
	dd	_78
	dd	3
	dd	1
	align	4
_80:
	dd	0
	align	4
_82:
	dd	_78
	dd	70
	dd	1
	align	4
_14:
	dd	_bbStringClass
	dd	2147483647
	dd	4
	dw	84,101,115,116
_19:
	db	"TManagedGadget",0
_20:
	db	"gadget",0
_21:
	db	":TGadget",0
	align	4
_18:
	dd	2
	dd	_19
	dd	3
	dd	_20
	dd	_21
	dd	8
	dd	0
	align	4
_bb_TManagedGadget:
	dd	_bbObjectClass
	dd	_bbObjectFree
	dd	_18
	dd	12
	dd	__bb_TManagedGadget_New
	dd	__bb_TManagedGadget_Delete
	dd	_bbObjectToString
	dd	_bbObjectCompare
	dd	_bbObjectSendMessage
	dd	_bbObjectReserved
	dd	_bbObjectReserved
	dd	_bbObjectReserved
	dd	_brl_blitz_NullMethodError
_23:
	db	"TWindow",0
_24:
	db	"closed",0
_25:
	db	"i",0
	align	4
_22:
	dd	2
	dd	_23
	dd	3
	dd	_24
	dd	_25
	dd	12
	dd	0
	align	4
_bb_TWindow:
	dd	_bb_TManagedGadget
	dd	_bbObjectFree
	dd	_22
	dd	16
	dd	__bb_TWindow_New
	dd	__bb_TWindow_Delete
	dd	_bbObjectToString
	dd	_bbObjectCompare
	dd	_bbObjectSendMessage
	dd	_bbObjectReserved
	dd	_bbObjectReserved
	dd	_bbObjectReserved
	dd	__bb_TWindow_Handle
	dd	__bb_TWindow_Create
	align	4
_84:
	dd	_78
	dd	71
	dd	1
_27:
	db	"TCanvas",0
	align	4
_26:
	dd	2
	dd	_27
	dd	0
	align	4
_bb_TCanvas:
	dd	_bb_TManagedGadget
	dd	_bbObjectFree
	dd	_26
	dd	12
	dd	__bb_TCanvas_New
	dd	__bb_TCanvas_Delete
	dd	_bbObjectToString
	dd	_bbObjectCompare
	dd	_bbObjectSendMessage
	dd	_bbObjectReserved
	dd	_bbObjectReserved
	dd	_bbObjectReserved
	dd	__bb_TCanvas_Handle
	dd	__bb_TCanvas_Create
	align	4
_86:
	dd	_78
	dd	73
	dd	1
	align	4
_87:
	dd	_78
	dd	75
	dd	1
	align	4
_92:
	dd	3
	dd	0
	dd	0
	align	4
_90:
	dd	_78
	dd	76
	dd	2
	align	4
_91:
	dd	_78
	dd	77
	dd	2
	align	4
_93:
	dd	_78
	dd	80
	dd	1
_112:
	db	"New",0
_113:
	db	"Self",0
_114:
	db	":TManagedGadget",0
	align	4
_111:
	dd	1
	dd	_112
	dd	2
	dd	_113
	dd	_114
	dd	-4
	dd	0
	align	4
_109:
	dd	3
	dd	0
	dd	0
	align	4
_104:
	dd	_78
	dd	6
	dd	2
	align	4
_110:
	dd	3
	dd	0
	dd	0
_120:
	db	"Delete",0
	align	4
_119:
	dd	1
	dd	_120
	dd	2
	dd	_113
	dd	_114
	dd	-4
	dd	0
	align	4
_115:
	dd	3
	dd	0
	dd	0
	align	4
_127:
	dd	1
	dd	_112
	dd	2
	dd	_113
	dd	_99
	dd	-4
	dd	0
	align	4
_125:
	dd	3
	dd	0
	dd	0
	align	4
_121:
	dd	_78
	dd	11
	dd	2
	align	4
_126:
	dd	3
	dd	0
	dd	0
	align	4
_130:
	dd	1
	dd	_120
	dd	2
	dd	_113
	dd	_99
	dd	-4
	dd	0
	align	4
_128:
	dd	3
	dd	0
	dd	0
_165:
	db	"Create",0
_166:
	db	"name",0
_167:
	db	"$",0
_168:
	db	"x",0
_169:
	db	"y",0
_170:
	db	"h",0
_171:
	db	"group",0
_172:
	db	"flags",0
_173:
	db	"o",0
	align	4
_164:
	dd	1
	dd	_165
	dd	2
	dd	_166
	dd	_167
	dd	-4
	dd	2
	dd	_168
	dd	_25
	dd	-8
	dd	2
	dd	_169
	dd	_25
	dd	-12
	dd	2
	dd	_98
	dd	_25
	dd	-16
	dd	2
	dd	_170
	dd	_25
	dd	-20
	dd	2
	dd	_171
	dd	_114
	dd	-24
	dd	2
	dd	_172
	dd	_25
	dd	-28
	dd	2
	dd	_173
	dd	_99
	dd	-32
	dd	0
	align	4
_131:
	dd	_78
	dd	14
	dd	3
	align	4
_133:
	dd	_78
	dd	15
	dd	3
	align	4
_137:
	dd	_78
	dd	16
	dd	3
	align	4
_149:
	dd	3
	dd	0
	dd	0
	align	4
_139:
	dd	_78
	dd	17
	dd	4
	align	4
_159:
	dd	3
	dd	0
	dd	0
	align	4
_151:
	dd	_78
	dd	19
	dd	4
	align	4
_160:
	dd	_78
	dd	21
	dd	3
	align	4
_163:
	dd	_78
	dd	22
	dd	3
_184:
	db	"Handle",0
_185:
	db	"e",0
_186:
	db	":TEvent",0
	align	4
_183:
	dd	1
	dd	_184
	dd	2
	dd	_113
	dd	_99
	dd	-4
	dd	2
	dd	_185
	dd	_186
	dd	-8
	dd	0
	align	4
_174:
	dd	_78
	dd	26
	dd	3
	align	4
_182:
	dd	3
	dd	0
	dd	0
	align	4
_178:
	dd	_78
	dd	27
	dd	4
	align	4
_189:
	dd	1
	dd	_112
	dd	2
	dd	_113
	dd	_101
	dd	-4
	dd	0
	align	4
_187:
	dd	3
	dd	0
	dd	0
	align	4
_188:
	dd	3
	dd	0
	dd	0
	align	4
_192:
	dd	1
	dd	_120
	dd	2
	dd	_113
	dd	_101
	dd	-4
	dd	0
	align	4
_190:
	dd	3
	dd	0
	dd	0
	align	4
_209:
	dd	1
	dd	_165
	dd	2
	dd	_168
	dd	_25
	dd	-4
	dd	2
	dd	_169
	dd	_25
	dd	-8
	dd	2
	dd	_98
	dd	_25
	dd	-12
	dd	2
	dd	_170
	dd	_25
	dd	-16
	dd	2
	dd	_171
	dd	_114
	dd	-20
	dd	2
	dd	_173
	dd	_101
	dd	-24
	dd	0
	align	4
_193:
	dd	_78
	dd	34
	dd	3
	align	4
_195:
	dd	_78
	dd	35
	dd	3
	align	4
_205:
	dd	_78
	dd	36
	dd	3
	align	4
_208:
	dd	_78
	dd	37
	dd	3
	align	4
_240:
	dd	1
	dd	_184
	dd	2
	dd	_113
	dd	_101
	dd	-4
	dd	2
	dd	_185
	dd	_186
	dd	-8
	dd	0
	align	4
_210:
	dd	_78
	dd	41
	dd	3
_225:
	db	"g",0
_226:
	db	":TGraphics",0
	align	4
_224:
	dd	3
	dd	0
	dd	2
	dd	_225
	dd	_226
	dd	-12
	dd	0
	align	4
_217:
	dd	_78
	dd	43
	dd	5
	align	4
_221:
	dd	_78
	dd	44
	dd	5
	align	4
_222:
	dd	_78
	dd	45
	dd	5
	align	4
_223:
	dd	_78
	dd	46
	dd	5
	align	4
_239:
	dd	3
	dd	0
	dd	2
	dd	_225
	dd	_226
	dd	-16
	dd	0
	align	4
_227:
	dd	_78
	dd	48
	dd	5
	align	4
_231:
	dd	_78
	dd	49
	dd	5
	align	4
_232:
	dd	_78
	dd	50
	dd	5
	align	4
_233:
	dd	_78
	dd	51
	dd	5
	align	4
_238:
	dd	_78
	dd	52
	dd	5
_275:
	db	"EventHandler",0
_276:
	db	"id",0
_277:
	db	"data",0
_278:
	db	":Object",0
_279:
	db	"context",0
	align	4
_274:
	dd	1
	dd	_275
	dd	2
	dd	_276
	dd	_25
	dd	-4
	dd	2
	dd	_277
	dd	_278
	dd	-8
	dd	2
	dd	_279
	dd	_278
	dd	-12
	dd	2
	dd	_185
	dd	_186
	dd	-16
	dd	0
	align	4
_241:
	dd	_78
	dd	58
	dd	2
	align	4
_243:
	dd	_78
	dd	60
	dd	2
	align	4
_272:
	dd	3
	dd	0
	dd	0
	align	4
_245:
	dd	_78
	dd	61
	dd	3
	align	4
_271:
	dd	3
	dd	0
	dd	2
	dd	_225
	dd	_114
	dd	-20
	dd	0
	align	4
_255:
	dd	_78
	dd	62
	dd	4
	align	4
_270:
	dd	3
	dd	0
	dd	0
	align	4
_267:
	dd	_78
	dd	63
	dd	5
	align	4
_273:
	dd	_78
	dd	67
	dd	2
