	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	_bbNullObject
	extrn	_bbOnDebugEnterScope
	extrn	_bbOnDebugEnterStm
	extrn	_bbOnDebugLeaveScope
	extrn	_bbStringClass
	extrn	_bbStringConcat
	extrn	_bbStringFromInt
	extrn	_brl_eventqueue_EventData
	extrn	_brl_eventqueue_EventID
	extrn	_brl_eventqueue_WaitEvent
	extrn	_brl_maxgui_CreateButton
	extrn	_brl_maxgui_CreateMenu
	extrn	_brl_maxgui_CreateWindow
	extrn	_brl_maxgui_FreeMenu
	extrn	_brl_maxgui_PopupWindowMenu
	extrn	_brl_maxgui_UpdateWindowMenu
	extrn	_brl_maxgui_WindowMenu
	extrn	_brl_standardio_Print
	public	__bb_main
	section	"code" code
__bb_main:
	push	ebp
	mov	ebp,esp
	sub	esp,44
	push	ebx
	cmp	dword [_79],0
	je	_80
	mov	eax,0
	pop	ebx
	mov	esp,ebp
	pop	ebp
	ret
_80:
	mov	dword [_79],1
	mov	dword [ebp-4],_bbNullObject
	mov	dword [ebp-8],_bbNullObject
	mov	dword [ebp-12],_bbNullObject
	mov	dword [ebp-16],_bbNullObject
	mov	dword [ebp-20],_bbNullObject
	mov	dword [ebp-24],_bbNullObject
	mov	dword [ebp-28],_bbNullObject
	mov	dword [ebp-32],_bbNullObject
	mov	dword [ebp-36],_bbNullObject
	mov	dword [ebp-40],_bbNullObject
	mov	dword [ebp-44],_bbNullObject
	push	ebp
	push	_65
	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	_27
	call	dword [_bbOnDebugEnterStm]
	add	esp,4
	push	15
	push	_bbNullObject
	push	400
	push	640
	push	100
	push	100
	push	_11
	call	_brl_maxgui_CreateWindow
	add	esp,28
	mov	dword [ebp-4],eax
	push	_30
	call	dword [_bbOnDebugEnterStm]
	add	esp,4
	push	1
	push	dword [ebp-4]
	push	20
	push	100
	push	10
	push	10
	push	_12
	call	_brl_maxgui_CreateButton
	add	esp,28
	mov	dword [ebp-8],eax
	push	_32
	call	dword [_bbOnDebugEnterStm]
	add	esp,4
	push	0
	push	0
	push	dword [ebp-4]
	call	_brl_maxgui_WindowMenu
	add	esp,4
	push	eax
	push	1
	push	_13
	call	_brl_maxgui_CreateMenu
	add	esp,20
	mov	dword [ebp-12],eax
	push	_34
	call	dword [_bbOnDebugEnterStm]
	add	esp,4
	push	0
	push	0
	push	dword [ebp-4]
	call	_brl_maxgui_WindowMenu
	add	esp,4
	push	eax
	push	2
	push	_14
	call	_brl_maxgui_CreateMenu
	add	esp,20
	mov	dword [ebp-16],eax
	push	_36
	call	dword [_bbOnDebugEnterStm]
	add	esp,4
	push	0
	push	0
	push	dword [ebp-12]
	push	101
	push	_15
	call	_brl_maxgui_CreateMenu
	add	esp,20
	mov	dword [ebp-20],eax
	push	_38
	call	dword [_bbOnDebugEnterStm]
	add	esp,4
	push	0
	push	0
	push	dword [ebp-16]
	push	102
	push	_15
	call	_brl_maxgui_CreateMenu
	add	esp,20
	mov	dword [ebp-24],eax
	push	_40
	call	dword [_bbOnDebugEnterStm]
	add	esp,4
	push	0
	push	0
	push	dword [ebp-16]
	push	103
	push	_16
	call	_brl_maxgui_CreateMenu
	add	esp,20
	mov	dword [ebp-20],eax
	push	_41
	call	dword [_bbOnDebugEnterStm]
	add	esp,4
	push	0
	push	0
	push	_bbNullObject
	push	0
	push	_1
	call	_brl_maxgui_CreateMenu
	add	esp,20
	mov	dword [ebp-28],eax
	push	_43
	call	dword [_bbOnDebugEnterStm]
	add	esp,4
	push	0
	push	0
	push	dword [ebp-28]
	push	1
	push	_17
	call	_brl_maxgui_CreateMenu
	add	esp,20
	mov	dword [ebp-32],eax
	push	_45
	call	dword [_bbOnDebugEnterStm]
	add	esp,4
	push	0
	push	0
	push	dword [ebp-28]
	push	2
	push	_18
	call	_brl_maxgui_CreateMenu
	add	esp,20
	mov	dword [ebp-36],eax
	push	_47
	call	dword [_bbOnDebugEnterStm]
	add	esp,4
	push	0
	push	0
	push	dword [ebp-32]
	push	201
	push	_19
	call	_brl_maxgui_CreateMenu
	add	esp,20
	mov	dword [ebp-40],eax
	push	_49
	call	dword [_bbOnDebugEnterStm]
	add	esp,4
	push	0
	push	0
	push	dword [ebp-36]
	push	202
	push	_19
	call	_brl_maxgui_CreateMenu
	add	esp,20
	mov	dword [ebp-44],eax
	push	_51
	call	dword [_bbOnDebugEnterStm]
	add	esp,4
	push	0
	push	0
	push	dword [ebp-36]
	push	203
	push	_20
	call	_brl_maxgui_CreateMenu
	add	esp,20
	mov	dword [ebp-40],eax
	push	_52
	call	dword [_bbOnDebugEnterStm]
	add	esp,4
	push	dword [ebp-40]
	call	_brl_maxgui_FreeMenu
	add	esp,4
	push	_53
	call	dword [_bbOnDebugEnterStm]
	add	esp,4
	push	dword [ebp-4]
	call	_brl_maxgui_UpdateWindowMenu
	add	esp,4
	push	_54
	call	dword [_bbOnDebugEnterStm]
	add	esp,4
	jmp	_21
_23:
	push	_55
	call	dword [_bbOnDebugEnterStm]
	add	esp,4
	call	_brl_eventqueue_WaitEvent
	push	_56
	call	dword [_bbOnDebugEnterStm]
	add	esp,4
	call	_brl_eventqueue_EventID
	cmp	eax,8193
	je	_59
	cmp	eax,16387
	je	_60
	cmp	eax,32769
	je	_61
	jmp	_58
_59:
	push	_62
	call	dword [_bbOnDebugEnterStm]
	add	esp,4
	push	dword [ebp-28]
	push	dword [ebp-8]
	call	_brl_maxgui_PopupWindowMenu
	add	esp,8
	jmp	_58
_60:
	push	_63
	call	dword [_bbOnDebugEnterStm]
	add	esp,4
	call	_bbEnd
	jmp	_58
_61:
	push	_64
	call	dword [_bbOnDebugEnterStm]
	add	esp,4
	call	_brl_eventqueue_EventData
	push	eax
	call	_bbStringFromInt
	add	esp,4
	push	eax
	push	_24
	call	_bbStringConcat
	add	esp,8
	push	eax
	call	_brl_standardio_Print
	add	esp,4
	jmp	_58
_58:
_21:
	mov	eax,1
	cmp	eax,0
	jne	_23
_22:
	mov	ebx,0
	jmp	_25
_25:
	call	dword [_bbOnDebugLeaveScope]
	mov	eax,ebx
	pop	ebx
	mov	esp,ebp
	pop	ebp
	ret
	section	"data" data writeable align 8
	align	4
_79:
	dd	0
_66:
	db	"menu",0
_67:
	db	"w",0
_68:
	db	":TGadget",0
_69:
	db	"b",0
_70:
	db	"wm1",0
_71:
	db	"wm2",0
_72:
	db	"o1",0
_73:
	db	"o2",0
_74:
	db	"popup",0
_75:
	db	"pm1",0
_76:
	db	"pm2",0
_77:
	db	"po1",0
_78:
	db	"po2",0
	align	4
_65:
	dd	1
	dd	_66
	dd	2
	dd	_67
	dd	_68
	dd	-4
	dd	2
	dd	_69
	dd	_68
	dd	-8
	dd	2
	dd	_70
	dd	_68
	dd	-12
	dd	2
	dd	_71
	dd	_68
	dd	-16
	dd	2
	dd	_72
	dd	_68
	dd	-20
	dd	2
	dd	_73
	dd	_68
	dd	-24
	dd	2
	dd	_74
	dd	_68
	dd	-28
	dd	2
	dd	_75
	dd	_68
	dd	-32
	dd	2
	dd	_76
	dd	_68
	dd	-36
	dd	2
	dd	_77
	dd	_68
	dd	-40
	dd	2
	dd	_78
	dd	_68
	dd	-44
	dd	0
_28:
	db	"E:/Src/BlitzMAX/mess1/menu.bmx",0
	align	4
_27:
	dd	_28
	dd	1
	dd	1
	align	4
_11:
	dd	_bbStringClass
	dd	2147483647
	dd	4
	dw	84,101,115,116
	align	4
_30:
	dd	_28
	dd	2
	dd	1
	align	4
_12:
	dd	_bbStringClass
	dd	2147483647
	dd	5
	dw	80,111,112,117,112
	align	4
_32:
	dd	_28
	dd	4
	dd	1
	align	4
_13:
	dd	_bbStringClass
	dd	2147483647
	dd	5
	dw	77,101,110,117,49
	align	4
_34:
	dd	_28
	dd	5
	dd	1
	align	4
_14:
	dd	_bbStringClass
	dd	2147483647
	dd	5
	dw	77,101,110,117,50
	align	4
_36:
	dd	_28
	dd	6
	dd	1
	align	4
_15:
	dd	_bbStringClass
	dd	2147483647
	dd	4
	dw	79,112,116,49
	align	4
_38:
	dd	_28
	dd	7
	dd	1
	align	4
_40:
	dd	_28
	dd	8
	dd	1
	align	4
_16:
	dd	_bbStringClass
	dd	2147483647
	dd	4
	dw	79,112,116,50
	align	4
_41:
	dd	_28
	dd	10
	dd	1
	align	4
_1:
	dd	_bbStringClass
	dd	2147483647
	dd	0
	align	4
_43:
	dd	_28
	dd	11
	dd	1
	align	4
_17:
	dd	_bbStringClass
	dd	2147483647
	dd	11
	dw	80,111,112,117,112,32,77,101
	dw	110,117,49
	align	4
_45:
	dd	_28
	dd	12
	dd	1
	align	4
_18:
	dd	_bbStringClass
	dd	2147483647
	dd	11
	dw	80,111,112,117,112,32,77,101
	dw	110,117,50
	align	4
_47:
	dd	_28
	dd	13
	dd	1
	align	4
_19:
	dd	_bbStringClass
	dd	2147483647
	dd	10
	dw	80,111,112,117,112,32,79,112
	dw	116,49
	align	4
_49:
	dd	_28
	dd	14
	dd	1
	align	4
_51:
	dd	_28
	dd	15
	dd	1
	align	4
_20:
	dd	_bbStringClass
	dd	2147483647
	dd	10
	dw	80,111,112,117,112,32,79,112
	dw	116,50
	align	4
_52:
	dd	_28
	dd	17
	dd	1
	align	4
_53:
	dd	_28
	dd	21
	dd	1
	align	4
_54:
	dd	_28
	dd	23
	dd	1
	align	4
_55:
	dd	_28
	dd	24
	dd	2
	align	4
_56:
	dd	_28
	dd	25
	dd	2
	align	4
_62:
	dd	_28
	dd	27
	dd	4
	align	4
_63:
	dd	_28
	dd	29
	dd	4
	align	4
_64:
	dd	_28
	dd	31
	dd	4
	align	4
_24:
	dd	_bbStringClass
	dd	2147483647
	dd	7
	dw	77,101,110,117,32,61,32
