	format	MS COFF
	extrn	___bb_bitmapfont_bitmapfont
	extrn	___bb_blitz_blitz
	extrn	___bb_d3d7max2d_d3d7max2d
	extrn	___bb_glmax2d_glmax2d
	extrn	___bb_keysyms_keysyms
	extrn	___bb_max2d_max2d
	extrn	___bb_missilelock_gametypes
	extrn	___bb_missilelock_global
	extrn	___bb_showlicense_showlicense
	extrn	__bb_GFX_font
	extrn	__bb_GFX_ship
	extrn	__bb_GFX_title
	extrn	__bb_GameConfig_accepted
	extrn	__bb_GameConfig_kleft
	extrn	__bb_GameConfig_kpause
	extrn	__bb_GameConfig_kright
	extrn	__bb_GameConfig_kthrust
	extrn	__bb_GameConfig_maxlevel
	extrn	__bb_GameState_ang
	extrn	__bb_GameState_bonus_timer
	extrn	__bb_GameState_game_over
	extrn	__bb_GameState_gonads
	extrn	__bb_GameState_hit
	extrn	__bb_GameState_level
	extrn	__bb_GameState_pause
	extrn	__bb_GameState_shield
	extrn	__bb_GameState_x
	extrn	__bb_GameState_y
	extrn	_bbAppArgs
	extrn	_bbEnd
	extrn	_bbFloatToInt
	extrn	_bbIncbinAdd
	extrn	_bbIntMax
	extrn	_bbMilliSecs
	extrn	_bbNullObject
	extrn	_bbObjectDowncast
	extrn	_bbStringClass
	extrn	_bbStringCompare
	extrn	_bbStringConcat
	extrn	_bbStringFromInt
	extrn	_bbStringToUpper
	extrn	_bb_AsteroidSet
	extrn	_bb_Backdrop
	extrn	_bb_GFX
	extrn	_bb_GameConfig
	extrn	_bb_GameState
	extrn	_bb_Missile
	extrn	_bb_MissileSet
	extrn	_bb_Number
	extrn	_bb_Particles
	extrn	_bb_SFX
	extrn	_bb_Scroller
	extrn	_bb_TFadeScreen
	extrn	_bb_Thanks
	extrn	_bb_Trail
	extrn	_brl_d3d7max2d_D3D7Max2DDriver
	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_CollideImage
	extrn	_brl_max2d_DrawImage
	extrn	_brl_max2d_ResetCollisions
	extrn	_brl_max2d_SetAlpha
	extrn	_brl_max2d_SetBlend
	extrn	_brl_max2d_SetColor
	extrn	_brl_max2d_SetRotation
	extrn	_brl_max2d_SetScale
	extrn	_brl_polledinput_FlushKeys
	extrn	_brl_polledinput_KeyHit
	extrn	_brl_random_Rand
	extrn	_brl_random_SeedRnd
	extrn	_brl_system_HideMouse
	extrn	_noddybox_keysyms_KeySym
	extrn	_noddybox_showlicense_ShowLicense
	public	__bb_main
	public	_bb_Menu
	public	_bb_Switch
	public	_bb_quit
	public	_bb_start_level
	section	"code" code
__bb_main:
	push	ebp
	mov	ebp,esp
	sub	esp,20
	push	ebx
	push	esi
	push	edi
	cmp	dword [_160],0
	je	_161
	mov	eax,0
	pop	edi
	pop	esi
	pop	ebx
	mov	esp,ebp
	pop	ebp
	ret
_161:
	mov	dword [_160],1
	mov	eax,_91
	sub	eax,_90
	push	eax
	push	_90
	push	_89
	call	_bbIncbinAdd
	add	esp,12
	mov	eax,_94
	sub	eax,_93
	push	eax
	push	_93
	push	_92
	call	_bbIncbinAdd
	add	esp,12
	call	___bb_blitz_blitz
	call	___bb_max2d_max2d
	call	___bb_glmax2d_glmax2d
	call	___bb_d3d7max2d_d3d7max2d
	call	___bb_bitmapfont_bitmapfont
	call	___bb_keysyms_keysyms
	call	___bb_showlicense_showlicense
	call	___bb_missilelock_global
	call	___bb_missilelock_gametypes
	call	_bbMilliSecs
	push	eax
	call	_brl_random_SeedRnd
	add	esp,4
	push	_18
	call	_bb_Switch
	add	esp,4
	cmp	eax,0
	je	_95
	push	2
	call	_brl_d3d7max2d_D3D7Max2DDriver
	push	eax
	call	_brl_graphics_SetGraphicsDriver
	add	esp,8
	jmp	_96
_95:
	push	2
	call	_brl_glmax2d_GLMax2DDriver
	push	eax
	call	_brl_graphics_SetGraphicsDriver
	add	esp,8
_96:
	push	0
	push	70
	push	32
	push	600
	push	800
	call	_brl_graphics_Graphics
	add	esp,20
	call	_brl_system_HideMouse
	push	3
	call	_brl_max2d_SetBlend
	add	esp,4
	push	1065353216
	call	_brl_max2d_SetAlpha
	add	esp,4
	call	dword [_bb_GFX+56]
	call	dword [_bb_SFX+52]
	call	dword [_bb_GameConfig+48]
	cmp	dword [__bb_GameConfig_accepted],0
	jne	_97
	push	_21
	push	_20
	push	_19
	call	_noddybox_showlicense_ShowLicense
	add	esp,12
	cmp	eax,0
	jne	_98
	call	_brl_graphics_EndGraphics
	call	_bbEnd
_98:
	mov	dword [__bb_GameConfig_accepted],1
	call	dword [_bb_GameConfig+52]
_97:
	call	dword [_bb_Scroller+48]
	call	dword [_bb_Thanks+48]
	call	dword [_bb_Particles+48]
	call	dword [_bb_Backdrop+48]
	call	dword [_bb_Trail+48]
	call	dword [_bb_MissileSet+48]
	call	dword [_bb_AsteroidSet+48]
	call	_bb_Menu
	call	_brl_polledinput_FlushKeys
	jmp	_22
_24:
	mov	eax,dword [_bb_start_level]
	sub	eax,1
	imul	eax,1000
	mov	dword [ebp-20],eax
	call	dword [_bb_GameState+48]
	push	dword [_bb_start_level]
	call	dword [_bb_GameState+68]
	add	esp,4
	call	dword [_bb_MissileSet+52]
	call	dword [_bb_AsteroidSet+52]
	jmp	_25
_27:
	mov	dword [ebp-4],200
	call	dword [_bb_SFX+56]
	jmp	_28
_30:
	call	_brl_max2d_Cls
	cmp	dword [ebp-4],0
	je	_103
	sub	dword [ebp-4],1
	mov	ecx,60
	mov	eax,dword [ebp-4]
	cdq
	idiv	ecx
	mov	eax,edx
	cmp	eax,30
	jge	_104
	mov	eax,dword [__bb_GFX_font]
	push	0
	push	0
	push	255
	push	300
	push	_31
	push	eax
	mov	eax,dword [eax]
	call	dword [eax+56]
	add	esp,24
_104:
_103:
	push	0
	call	_brl_max2d_ResetCollisions
	add	esp,4
	call	dword [_bb_Backdrop+52]
	call	dword [_bb_Particles+72]
	call	dword [_bb_Trail+60]
	call	dword [_bb_GameState+72]
	call	dword [_bb_GameState+76]
	fld	qword [__bb_GameState_ang]
	sub	esp,4
	fstp	dword [esp]
	call	_brl_max2d_SetRotation
	add	esp,4
	cmp	dword [__bb_GameState_shield],0
	je	_106
	push	255
	push	0
	call	_brl_random_Rand
	add	esp,8
	push	eax
	push	255
	push	0
	call	_brl_random_Rand
	add	esp,8
	push	eax
	push	255
	push	0
	call	_brl_random_Rand
	add	esp,8
	push	eax
	call	_brl_max2d_SetColor
	add	esp,12
	jmp	_107
_106:
	push	255
	push	255
	push	255
	call	_brl_max2d_SetColor
	add	esp,12
_107:
	push	0
	fld	qword [__bb_GameState_y]
	sub	esp,4
	fstp	dword [esp]
	fld	qword [__bb_GameState_x]
	sub	esp,4
	fstp	dword [esp]
	push	dword [__bb_GFX_ship]
	call	_brl_max2d_DrawImage
	add	esp,16
	push	0
	call	_brl_max2d_SetRotation
	add	esp,4
	call	dword [_bb_MissileSet+60]
	call	dword [_bb_AsteroidSet+56]
	push	_bbNullObject
	push	0
	push	3
	push	0
	fld	qword [__bb_GameState_y]
	sub	esp,8
	fstp	qword [esp]
	call	_bbFloatToInt
	add	esp,8
	push	eax
	fld	qword [__bb_GameState_x]
	sub	esp,8
	fstp	qword [esp]
	call	_bbFloatToInt
	add	esp,8
	push	eax
	push	dword [__bb_GFX_ship]
	call	_brl_max2d_CollideImage
	add	esp,28
	mov	ebx,eax
	cmp	dword [__bb_GameState_shield],0
	jne	_109
	cmp	dword [ebx+16],0
	je	_110
	call	dword [_bb_GameState+56]
	fld	qword [__bb_GameState_y]
	sub	esp,8
	fstp	qword [esp]
	fld	qword [__bb_GameState_x]
	sub	esp,8
	fstp	qword [esp]
	call	dword [_bb_Particles+64]
	add	esp,16
	mov	esi,ebx
	mov	eax,esi
	add	eax,24
	mov	ebx,eax
	mov	eax,ebx
	add	eax,dword [esi+16]
	mov	edi,eax
	jmp	_32
_34:
	push	_bb_Missile
	push	dword [ebx]
	call	_bbObjectDowncast
	add	esp,8
	add	ebx,4
	cmp	eax,_bbNullObject
	je	_32
	cmp	eax,_bbNullObject
	je	_116
	push	eax
	call	dword [_bb_MissileSet+68]
	add	esp,4
	push	dword [__bb_GameState_level]
	call	dword [_bb_GameState+60]
	add	esp,4
	jmp	_33
_116:
_32:
	cmp	ebx,edi
	jne	_34
_33:
_110:
_109:
	cmp	dword [__bb_GameState_pause],0
	je	_117
	mov	eax,dword [__bb_GFX_font]
	push	0
	push	255
	push	255
	push	300
	push	_35
	push	eax
	mov	eax,dword [eax]
	call	dword [eax+56]
	add	esp,24
_117:
	call	dword [_bb_GameState+80]
	push	1
	call	_brl_graphics_Flip
	add	esp,4
	cmp	dword [__bb_GameState_pause],0
	je	_119
	mov	dword [__bb_GameState_pause],0
	jmp	_36
_38:
_36:
	push	dword [__bb_GameConfig_kpause]
	call	_brl_polledinput_KeyHit
	add	esp,4
	cmp	eax,0
	sete	al
	movzx	eax,al
	cmp	eax,0
	je	_120
	push	27
	call	_brl_polledinput_KeyHit
	add	esp,4
	cmp	eax,0
	sete	al
	movzx	eax,al
_120:
	cmp	eax,0
	jne	_38
_37:
_119:
_28:
	mov	eax,dword [__bb_GameState_game_over]
	cmp	eax,0
	sete	al
	movzx	eax,al
	cmp	eax,0
	je	_101
	call	dword [_bb_MissileSet+72]
	cmp	eax,0
	sete	al
	movzx	eax,al
_101:
	cmp	eax,0
	jne	_30
_29:
	cmp	dword [__bb_GameState_game_over],0
	jne	_122
	call	dword [_bb_AsteroidSet+60]
	mov	eax,dword [__bb_GameState_level]
	imul	eax,100
	mov	dword [ebp-16],eax
	mov	edi,0
	mov	ecx,10
	mov	eax,dword [ebp-16]
	cdq
	idiv	ecx
	add	eax,210
	push	eax
	push	350
	call	_bbIntMax
	add	esp,8
	mov	dword [ebp-8],eax
	mov	dword [ebp-12],0
	cmp	dword [__bb_GameState_gonads],0
	je	_127
	mov	eax,dword [__bb_GameState_level]
	sub	eax,1
	imul	eax,10000
	add	eax,9999
	push	eax
	call	dword [_bb_GameState+60]
	add	esp,4
_127:
	cmp	dword [__bb_GameState_hit],0
	jne	_128
	mov	eax,dword [__bb_GameState_level]
	imul	eax,500
	push	eax
	call	dword [_bb_GameState+60]
	add	esp,4
_128:
	cmp	dword [ebp-20],0
	je	_129
	push	dword [ebp-20]
	call	dword [_bb_GameState+60]
	add	esp,4
_129:
	cmp	dword [__bb_GameState_bonus_timer],0
	je	_130
	mov	eax,dword [__bb_GameState_bonus_timer]
	add	dword [ebp-16],eax
	mov	eax,dword [__bb_GameState_bonus_timer]
	mov	dword [ebp-12],eax
_130:
	mov	dword [__bb_GameState_bonus_timer],0
	jmp	_39
_41:
	call	_brl_max2d_Cls
	push	0
	call	_brl_max2d_ResetCollisions
	add	esp,4
	call	dword [_bb_GameState+52]
	call	dword [_bb_Backdrop+52]
	call	dword [_bb_Particles+72]
	call	dword [_bb_Trail+60]
	call	dword [_bb_GameState+72]
	call	dword [_bb_GameState+76]
	fld	qword [__bb_GameState_ang]
	sub	esp,4
	fstp	dword [esp]
	call	_brl_max2d_SetRotation
	add	esp,4
	cmp	dword [__bb_GameState_shield],0
	je	_133
	push	255
	push	0
	call	_brl_random_Rand
	add	esp,8
	push	eax
	push	255
	push	0
	call	_brl_random_Rand
	add	esp,8
	push	eax
	push	255
	push	0
	call	_brl_random_Rand
	add	esp,8
	push	eax
	call	_brl_max2d_SetColor
	add	esp,12
	jmp	_134
_133:
	push	255
	push	255
	push	255
	call	_brl_max2d_SetColor
	add	esp,12
_134:
	push	0
	fld	qword [__bb_GameState_y]
	sub	esp,4
	fstp	dword [esp]
	fld	qword [__bb_GameState_x]
	sub	esp,4
	fstp	dword [esp]
	push	dword [__bb_GFX_ship]
	call	_brl_max2d_DrawImage
	add	esp,16
	push	0
	call	_brl_max2d_SetRotation
	add	esp,4
	mov	ebx,dword [__bb_GFX_font]
	push	0
	push	255
	push	255
	push	200
	push	_43
	push	dword [__bb_GameState_level]
	call	_bbStringFromInt
	add	esp,4
	push	eax
	push	_42
	call	_bbStringConcat
	add	esp,8
	push	eax
	call	_bbStringConcat
	add	esp,8
	push	eax
	push	ebx
	mov	eax,dword [ebx]
	call	dword [eax+56]
	add	esp,24
	mov	ebx,dword [__bb_GFX_font]
	push	0
	push	255
	push	255
	push	400
	push	_45
	push	edi
	call	dword [_bb_Number+48]
	add	esp,4
	push	eax
	push	_44
	call	_bbStringConcat
	add	esp,8
	push	eax
	call	_bbStringConcat
	add	esp,8
	push	eax
	push	ebx
	mov	eax,dword [ebx]
	call	dword [eax+56]
	add	esp,24
	cmp	dword [ebp-12],0
	je	_137
	mov	ebx,dword [__bb_GFX_font]
	push	0
	push	255
	push	255
	push	420
	push	_45
	push	dword [ebp-12]
	call	_bbStringFromInt
	add	esp,4
	push	eax
	push	_46
	call	_bbStringConcat
	add	esp,8
	push	eax
	call	_bbStringConcat
	add	esp,8
	push	eax
	push	ebx
	mov	eax,dword [ebx]
	call	dword [eax+56]
	add	esp,24
_137:
	mov	ebx,440
	cmp	dword [__bb_GameState_hit],0
	jne	_140
	mov	esi,dword [__bb_GFX_font]
	push	0
	push	255
	push	255
	push	ebx
	push	_45
	mov	eax,dword [__bb_GameState_level]
	imul	eax,500
	push	eax
	call	_bbStringFromInt
	add	esp,4
	push	eax
	push	_47
	call	_bbStringConcat
	add	esp,8
	push	eax
	call	_bbStringConcat
	add	esp,8
	push	eax
	push	esi
	mov	eax,dword [esi]
	call	dword [eax+56]
	add	esp,24
	add	ebx,20
_140:
	cmp	dword [ebp-20],0
	je	_142
	mov	esi,dword [__bb_GFX_font]
	push	0
	push	255
	push	255
	push	ebx
	push	_45
	push	dword [ebp-20]
	call	_bbStringFromInt
	add	esp,4
	push	eax
	push	_48
	call	_bbStringConcat
	add	esp,8
	push	eax
	call	_bbStringConcat
	add	esp,8
	push	eax
	push	esi
	mov	eax,dword [esi]
	call	dword [eax+56]
	add	esp,24
	add	ebx,20
_142:
	cmp	dword [__bb_GameState_gonads],0
	je	_144
	mov	esi,dword [__bb_GFX_font]
	push	0
	push	255
	push	255
	push	ebx
	push	_45
	mov	eax,dword [__bb_GameState_level]
	sub	eax,1
	imul	eax,10000
	add	eax,9999
	push	eax
	call	_bbStringFromInt
	add	esp,4
	push	eax
	push	_49
	call	_bbStringConcat
	add	esp,8
	push	eax
	call	_bbStringConcat
	add	esp,8
	push	eax
	push	esi
	mov	eax,dword [esi]
	call	dword [eax+56]
	add	esp,24
_144:
	cmp	edi,dword [ebp-16]
	jge	_146
	push	10
	call	dword [_bb_GameState+60]
	add	esp,4
	add	edi,10
_146:
	cmp	dword [ebp-8],140
	jge	_147
	mov	eax,dword [__bb_GFX_font]
	push	255
	push	255
	push	255
	push	300
	push	_50
	push	eax
	mov	eax,dword [eax]
	call	dword [eax+56]
	add	esp,24
_147:
	cmp	dword [__bb_GameState_pause],0
	je	_149
	mov	eax,dword [__bb_GFX_font]
	push	0
	push	255
	push	255
	push	300
	push	_35
	push	eax
	mov	eax,dword [eax]
	call	dword [eax+56]
	add	esp,24
_149:
	call	dword [_bb_GameState+80]
	push	1
	call	_brl_graphics_Flip
	add	esp,4
	cmp	dword [__bb_GameState_pause],0
	je	_151
	mov	dword [__bb_GameState_pause],0
	jmp	_51
_53:
_51:
	push	dword [__bb_GameConfig_kpause]
	call	_brl_polledinput_KeyHit
	add	esp,4
	cmp	eax,0
	sete	al
	movzx	eax,al
	cmp	eax,0
	je	_152
	push	27
	call	_brl_polledinput_KeyHit
	add	esp,4
	cmp	eax,0
	sete	al
	movzx	eax,al
_152:
	cmp	eax,0
	jne	_53
_52:
_151:
	sub	dword [ebp-8],1
_39:
	mov	eax,dword [ebp-8]
	cmp	eax,0
	je	_131
	push	27
	call	_brl_polledinput_KeyHit
	add	esp,4
	cmp	eax,0
	sete	al
	movzx	eax,al
_131:
	cmp	eax,0
	jne	_41
_40:
	mov	dword [ebp-20],0
	mov	eax,dword [ebp-16]
	sub	eax,edi
	push	eax
	call	dword [_bb_GameState+60]
	add	esp,4
	call	dword [_bb_GameState+64]
	call	dword [_bb_MissileSet+52]
	call	dword [_bb_AsteroidSet+52]
_122:
_25:
	cmp	dword [__bb_GameState_game_over],0
	je	_27
_26:
	push	dword [__bb_GameConfig_maxlevel]
	push	dword [__bb_GameState_level]
	call	_bbIntMax
	add	esp,8
	mov	dword [__bb_GameConfig_maxlevel],eax
	call	dword [_bb_GameConfig+52]
	call	dword [_bb_MissileSet+64]
	call	dword [_bb_AsteroidSet+60]
	fld	qword [__bb_GameState_y]
	sub	esp,8
	fstp	qword [esp]
	fld	qword [__bb_GameState_x]
	sub	esp,8
	fstp	qword [esp]
	call	dword [_bb_Particles+68]
	add	esp,16
	call	_brl_polledinput_FlushKeys
	mov	ebx,0
	jmp	_54
_56:
	call	_brl_max2d_Cls
	call	dword [_bb_Backdrop+52]
	call	dword [_bb_Particles+72]
	call	dword [_bb_Trail+60]
	call	dword [_bb_GameState+80]
	push	1077936128
	push	1077936128
	call	_brl_max2d_SetScale
	add	esp,8
	mov	eax,dword [__bb_GFX_font]
	push	255
	push	255
	push	255
	push	280
	push	_57
	push	eax
	mov	eax,dword [eax]
	call	dword [eax+56]
	add	esp,24
	push	1065353216
	push	1065353216
	call	_brl_max2d_SetScale
	add	esp,8
	push	1
	call	_brl_graphics_Flip
	add	esp,4
	add	ebx,1
_54:
	push	32
	call	_brl_polledinput_KeyHit
	add	esp,4
	cmp	eax,0
	sete	al
	movzx	eax,al
	cmp	eax,0
	je	_155
	push	27
	call	_brl_polledinput_KeyHit
	add	esp,4
	cmp	eax,0
	sete	al
	movzx	eax,al
_155:
	cmp	eax,0
	je	_157
	cmp	ebx,350
	setl	al
	movzx	eax,al
_157:
	cmp	eax,0
	jne	_56
_55:
	call	dword [_bb_TFadeScreen+64]
	call	_bb_Menu
_22:
	cmp	dword [_bb_quit],0
	je	_24
_23:
	call	_brl_graphics_EndGraphics
	call	_bbEnd
	mov	eax,0
	jmp	_82
_82:
	pop	edi
	pop	esi
	pop	ebx
	mov	esp,ebp
	pop	ebp
	ret
_bb_Switch:
	push	ebp
	mov	ebp,esp
	sub	esp,4
	push	ebx
	push	esi
	push	edi
	mov	edi,dword [ebp+8]
	mov	esi,dword [_bbAppArgs]
	mov	eax,esi
	add	eax,24
	mov	ebx,eax
	mov	eax,ebx
	add	eax,dword [esi+16]
	mov	dword [ebp-4],eax
	jmp	_58
_60:
	mov	eax,dword [ebx]
	add	ebx,4
	cmp	eax,_bbNullObject
	je	_58
	push	edi
	push	eax
	call	_bbStringCompare
	add	esp,8
	cmp	eax,0
	jne	_167
	mov	eax,1
	jmp	_85
_167:
_58:
	cmp	ebx,dword [ebp-4]
	jne	_60
_59:
	mov	eax,0
	jmp	_85
_85:
	pop	edi
	pop	esi
	pop	ebx
	mov	esp,ebp
	pop	ebp
	ret
_bb_Menu:
	push	ebp
	mov	ebp,esp
	sub	esp,24
	push	ebx
	push	esi
	push	edi
	call	dword [_bb_TFadeScreen+56]
	mov	dword [ebp-20],eax
	mov	dword [ebp-24],0
	mov	dword [ebp-16],0
	call	dword [_bb_Particles+52]
	jmp	_61
_63:
	call	_brl_max2d_Cls
	call	dword [_bb_Backdrop+52]
	call	dword [_bb_Particles+72]
	push	560
	call	dword [_bb_Scroller+52]
	add	esp,4
	push	255
	push	255
	push	255
	call	_brl_max2d_SetColor
	add	esp,12
	push	0
	push	0
	push	0
	push	dword [__bb_GFX_title]
	call	_brl_max2d_DrawImage
	add	esp,16
	cmp	dword [ebp-16],0
	jle	_171
	cmp	dword [ebp-16],5
	jne	_172
	mov	eax,dword [__bb_GFX_font]
	push	255
	push	255
	push	255
	push	380
	push	_64
	push	eax
	mov	eax,dword [eax]
	call	dword [eax+56]
	add	esp,24
	jmp	_174
_172:
	mov	eax,dword [__bb_GFX_font]
	push	255
	push	255
	push	255
	push	350
	push	_65
	push	eax
	mov	eax,dword [eax]
	call	dword [eax+56]
	add	esp,24
	mov	eax,dword [__bb_GFX_font]
	push	255
	push	255
	push	255
	push	380
	push	_66
	push	eax
	mov	eax,dword [eax]
	call	dword [eax+56]
	add	esp,24
_174:
	mov	eax,dword [ebp-16]
	cmp	eax,1
	sete	al
	movzx	eax,al
	shl	eax,7
	add	eax,128
	mov	dword [ebp-4],eax
	mov	eax,dword [ebp-16]
	cmp	eax,2
	sete	al
	movzx	eax,al
	shl	eax,7
	add	eax,128
	mov	edi,eax
	mov	eax,dword [ebp-16]
	cmp	eax,3
	sete	al
	movzx	eax,al
	shl	eax,7
	add	eax,128
	mov	esi,eax
	mov	eax,dword [ebp-16]
	cmp	eax,4
	sete	al
	movzx	eax,al
	shl	eax,7
	add	eax,128
	mov	ebx,eax
	mov	eax,dword [__bb_GFX_font]
	push	dword [ebp-4]
	push	dword [ebp-4]
	push	dword [ebp-4]
	push	200
	push	250
	push	_67
	push	eax
	mov	eax,dword [eax]
	call	dword [eax+52]
	add	esp,28
	mov	eax,dword [__bb_GFX_font]
	push	edi
	push	edi
	push	edi
	push	220
	push	250
	push	_68
	push	eax
	mov	eax,dword [eax]
	call	dword [eax+52]
	add	esp,28
	mov	eax,dword [__bb_GFX_font]
	push	esi
	push	esi
	push	esi
	push	240
	push	250
	push	_69
	push	eax
	mov	eax,dword [eax]
	call	dword [eax+52]
	add	esp,28
	mov	eax,dword [__bb_GFX_font]
	push	ebx
	push	ebx
	push	ebx
	push	260
	push	250
	push	_70
	push	eax
	mov	eax,dword [eax]
	call	dword [eax+52]
	add	esp,28
	mov	eax,dword [__bb_GFX_font]
	mov	dword [ebp-12],eax
	push	0
	push	dword [ebp-4]
	push	dword [ebp-4]
	push	200
	push	500
	push	dword [__bb_GameConfig_kleft]
	call	_noddybox_keysyms_KeySym
	add	esp,4
	push	eax
	push	dword [ebp-12]
	mov	eax,dword [ebp-12]
	mov	eax,dword [eax]
	call	dword [eax+52]
	add	esp,28
	mov	eax,dword [__bb_GFX_font]
	mov	dword [ebp-8],eax
	push	0
	push	edi
	push	edi
	push	220
	push	500
	push	dword [__bb_GameConfig_kright]
	call	_noddybox_keysyms_KeySym
	add	esp,4
	push	eax
	push	dword [ebp-8]
	mov	eax,dword [ebp-8]
	mov	eax,dword [eax]
	call	dword [eax+52]
	add	esp,28
	mov	edi,dword [__bb_GFX_font]
	push	0
	push	esi
	push	esi
	push	240
	push	500
	push	dword [__bb_GameConfig_kthrust]
	call	_noddybox_keysyms_KeySym
	add	esp,4
	push	eax
	push	edi
	mov	eax,dword [edi]
	call	dword [eax+52]
	add	esp,28
	mov	esi,dword [__bb_GFX_font]
	push	0
	push	ebx
	push	ebx
	push	260
	push	500
	push	dword [__bb_GameConfig_kpause]
	call	_noddybox_keysyms_KeySym
	add	esp,4
	push	eax
	push	esi
	mov	eax,dword [esi]
	call	dword [eax+52]
	add	esp,28
	mov	esi,-1
	mov	ebx,0
	jmp	_191
_73:
	push	ebx
	call	_brl_polledinput_KeyHit
	add	esp,4
	cmp	eax,0
	je	_192
	mov	esi,ebx
	jmp	_71
_192:
_71:
	add	ebx,1
_191:
	cmp	ebx,255
	jle	_73
_72:
	cmp	esi,27
	jne	_193
	call	dword [_bb_GameConfig+48]
	mov	dword [ebp-16],0
	call	_brl_polledinput_FlushKeys
	jmp	_194
_193:
	cmp	esi,-1
	je	_195
	mov	eax,dword [ebp-16]
	cmp	eax,1
	je	_198
	cmp	eax,2
	je	_199
	cmp	eax,3
	je	_200
	cmp	eax,4
	je	_201
	jmp	_197
_198:
	mov	dword [__bb_GameConfig_kleft],esi
	jmp	_197
_199:
	mov	dword [__bb_GameConfig_kright],esi
	jmp	_197
_200:
	mov	dword [__bb_GameConfig_kthrust],esi
	jmp	_197
_201:
	mov	dword [__bb_GameConfig_kpause],esi
	jmp	_197
_197:
	add	dword [ebp-16],1
	cmp	dword [ebp-16],6
	jne	_202
	call	dword [_bb_GameConfig+52]
	mov	dword [ebp-16],0
	call	_brl_polledinput_FlushKeys
_202:
_195:
_194:
	jmp	_203
_171:
	push	27
	call	_brl_polledinput_KeyHit
	add	esp,4
	cmp	eax,0
	je	_204
	mov	dword [ebp-24],1
	mov	dword [_bb_quit],1
_204:
	push	dword [__bb_GameConfig_kthrust]
	call	_brl_polledinput_KeyHit
	add	esp,4
	cmp	eax,0
	je	_205
	mov	dword [ebp-24],1
_205:
	push	82
	call	_brl_polledinput_KeyHit
	add	esp,4
	cmp	eax,0
	je	_206
	mov	dword [ebp-16],1
	call	_brl_polledinput_FlushKeys
_206:
	cmp	dword [__bb_GameConfig_maxlevel],1
	jle	_207
	push	37
	call	_brl_polledinput_KeyHit
	add	esp,4
	cmp	eax,0
	jne	_208
	push	40
	call	_brl_polledinput_KeyHit
	add	esp,4
_208:
	cmp	eax,0
	je	_210
	sub	dword [_bb_start_level],1
	cmp	dword [_bb_start_level],1
	jge	_211
	mov	eax,dword [__bb_GameConfig_maxlevel]
	mov	dword [_bb_start_level],eax
_211:
	jmp	_212
_210:
	push	39
	call	_brl_polledinput_KeyHit
	add	esp,4
	cmp	eax,0
	jne	_213
	push	38
	call	_brl_polledinput_KeyHit
	add	esp,4
_213:
	cmp	eax,0
	je	_215
	add	dword [_bb_start_level],1
	mov	eax,dword [__bb_GameConfig_maxlevel]
	cmp	dword [_bb_start_level],eax
	jle	_216
	mov	dword [_bb_start_level],1
_216:
_215:
_212:
_207:
	mov	eax,dword [__bb_GFX_font]
	push	255
	push	255
	push	255
	push	200
	push	_74
	push	eax
	mov	eax,dword [eax]
	call	dword [eax+56]
	add	esp,24
	mov	eax,dword [__bb_GFX_font]
	push	255
	push	255
	push	255
	push	226
	push	_75
	push	eax
	mov	eax,dword [eax]
	call	dword [eax+56]
	add	esp,24
	mov	eax,dword [__bb_GFX_font]
	push	255
	push	255
	push	255
	push	300
	push	_76
	push	eax
	mov	eax,dword [eax]
	call	dword [eax+56]
	add	esp,24
	push	326
	call	dword [_bb_Thanks+52]
	add	esp,4
	mov	ebx,dword [__bb_GFX_font]
	push	255
	push	255
	push	255
	push	400
	push	_78
	push	dword [__bb_GameConfig_kthrust]
	call	_noddybox_keysyms_KeySym
	add	esp,4
	push	eax
	call	_bbStringToUpper
	add	esp,4
	push	eax
	push	_77
	call	_bbStringConcat
	add	esp,8
	push	eax
	call	_bbStringConcat
	add	esp,8
	push	eax
	push	ebx
	mov	eax,dword [ebx]
	call	dword [eax+56]
	add	esp,24
	cmp	dword [__bb_GameConfig_maxlevel],1
	jle	_221
	mov	ebx,dword [__bb_GFX_font]
	push	255
	push	255
	push	255
	push	450
	push	dword [_bb_start_level]
	call	_bbStringFromInt
	add	esp,4
	push	eax
	push	_79
	call	_bbStringConcat
	add	esp,8
	push	eax
	push	ebx
	mov	eax,dword [ebx]
	call	dword [eax+56]
	add	esp,24
_221:
	mov	eax,dword [__bb_GFX_font]
	push	255
	push	255
	push	255
	push	480
	push	_80
	push	eax
	mov	eax,dword [eax]
	call	dword [eax+56]
	add	esp,24
	mov	eax,dword [__bb_GFX_font]
	push	255
	push	255
	push	255
	push	500
	push	_81
	push	eax
	mov	eax,dword [eax]
	call	dword [eax+56]
	add	esp,24
_203:
	cmp	dword [ebp-20],_bbNullObject
	je	_225
	mov	eax,dword [ebp-20]
	push	eax
	mov	eax,dword [eax]
	call	dword [eax+68]
	add	esp,4
	cmp	eax,0
	je	_227
	mov	eax,dword [ebp-20]
	push	eax
	mov	eax,dword [eax]
	call	dword [eax+72]
	add	esp,4
	jmp	_229
_227:
	mov	dword [ebp-20],_bbNullObject
_229:
_225:
	call	dword [_bb_GameState+80]
	push	1
	call	_brl_graphics_Flip
	add	esp,4
_61:
	cmp	dword [ebp-24],0
	je	_63
_62:
	call	dword [_bb_Particles+52]
	call	dword [_bb_TFadeScreen+64]
	mov	eax,0
	jmp	_87
_87:
	pop	edi
	pop	esi
	pop	ebx
	mov	esp,ebp
	pop	ebp
	ret
	section	"data" data writeable align 8
	align	4
_160:
	dd	0
	align	4
_90:
	file	"C:/devel/Src/BlitzMAX/MissileLock/short_license.txt"
_91:
	align	4
_89:
	dd	_bbStringClass
	dd	2147483647
	dd	17
	dw	115,104,111,114,116,95,108,105,99,101,110,115,101,46,116,120
	dw	116
	align	4
_93:
	file	"C:/devel/Src/BlitzMAX/MissileLock/license.txt"
_94:
	align	4
_92:
	dd	_bbStringClass
	dd	2147483647
	dd	11
	dw	108,105,99,101,110,115,101,46,116,120,116
	align	4
_18:
	dd	_bbStringClass
	dd	2147483647
	dd	9
	dw	45,45,100,105,114,101,99,116,120
	align	4
_21:
	dd	_bbStringClass
	dd	2147483647
	dd	19
	dw	105,110,99,98,105,110,58,58,108,105,99,101,110,115,101,46
	dw	116,120,116
	align	4
_20:
	dd	_bbStringClass
	dd	2147483647
	dd	25
	dw	105,110,99,98,105,110,58,58,115,104,111,114,116,95,108,105
	dw	99,101,110,115,101,46,116,120,116
	align	4
_19:
	dd	_bbStringClass
	dd	2147483647
	dd	23
	dw	77,73,83,83,73,76,69,32,76,79,67,75,32,45,45,32
	dw	76,73,67,69,78,83,69
	align	4
_bb_quit:
	dd	0
	align	4
_bb_start_level:
	dd	1
	align	4
_31:
	dd	_bbStringClass
	dd	2147483647
	dd	10
	dw	82,69,68,32,65,76,69,82,84,33
	align	4
_35:
	dd	_bbStringClass
	dd	2147483647
	dd	7
	dw	80,65,85,83,69,68,33
	align	4
_43:
	dd	_bbStringClass
	dd	2147483647
	dd	11
	dw	32,67,79,77,80,76,69,84,69,68,33
	align	4
_42:
	dd	_bbStringClass
	dd	2147483647
	dd	6
	dw	76,69,86,69,76,32
	align	4
_45:
	dd	_bbStringClass
	dd	2147483647
	dd	3
	dw	33,33,33
	align	4
_44:
	dd	_bbStringClass
	dd	2147483647
	dd	6
	dw	66,79,78,85,83,32
	align	4
_46:
	dd	_bbStringClass
	dd	2147483647
	dd	12
	dw	84,73,77,69,82,32,66,79,78,85,83,32
	align	4
_47:
	dd	_bbStringClass
	dd	2147483647
	dd	14
	dw	80,69,82,70,69,67,84,32,66,79,78,85,83,32
	align	4
_48:
	dd	_bbStringClass
	dd	2147483647
	dd	21
	dw	83,84,65,82,84,73,78,71,32,76,69,86,69,76,32,66
	dw	79,78,85,83,32
	align	4
_49:
	dd	_bbStringClass
	dd	2147483647
	dd	29
	dw	83,69,67,82,69,84,32,71,79,78,65,68,83,32,79,70
	dw	32,83,84,69,69,76,32,66,79,78,85,83,32
	align	4
_50:
	dd	_bbStringClass
	dd	2147483647
	dd	10
	dw	71,69,84,32,82,69,65,68,89,33
	align	4
_57:
	dd	_bbStringClass
	dd	2147483647
	dd	10
	dw	71,65,77,69,32,79,86,69,82,33
	align	4
_64:
	dd	_bbStringClass
	dd	2147483647
	dd	34
	dw	80,82,69,83,83,32,65,32,75,69,89,32,84,79,32,71
	dw	79,32,66,65,67,75,32,84,79,32,84,72,69,32,77,69
	dw	78,85
	align	4
_65:
	dd	_bbStringClass
	dd	2147483647
	dd	11
	dw	68,69,70,73,78,69,32,75,69,89,83
	align	4
_66:
	dd	_bbStringClass
	dd	2147483647
	dd	22
	dw	80,82,69,83,83,32,69,83,67,65,80,69,32,84,79,32
	dw	67,65,78,67,69,76
	align	4
_67:
	dd	_bbStringClass
	dd	2147483647
	dd	4
	dw	76,69,70,84
	align	4
_68:
	dd	_bbStringClass
	dd	2147483647
	dd	5
	dw	82,73,71,72,84
	align	4
_69:
	dd	_bbStringClass
	dd	2147483647
	dd	6
	dw	84,72,82,85,83,84
	align	4
_70:
	dd	_bbStringClass
	dd	2147483647
	dd	5
	dw	80,65,85,83,69
	align	4
_74:
	dd	_bbStringClass
	dd	2147483647
	dd	27
	dw	67,79,80,89,82,73,71,72,84,32,40,67,41,32,78,79
	dw	68,68,89,66,79,88,32,50,48,48,54
	align	4
_75:
	dd	_bbStringClass
	dd	2147483647
	dd	26
	dw	72,84,84,80,58,47,47,87,87,87,46,78,79,68,68,89
	dw	66,79,88,46,67,79,46,85,75,47
	align	4
_76:
	dd	_bbStringClass
	dd	2147483647
	dd	9
	dw	84,72,65,78,75,83,32,84,79
	align	4
_78:
	dd	_bbStringClass
	dd	2147483647
	dd	8
	dw	32,84,79,32,80,76,65,89
	align	4
_77:
	dd	_bbStringClass
	dd	2147483647
	dd	6
	dw	80,82,69,83,83,32
	align	4
_79:
	dd	_bbStringClass
	dd	2147483647
	dd	34
	dw	67,85,82,83,79,82,83,32,84,79,32,83,69,76,69,67
	dw	84,32,83,84,65,82,84,73,78,71,32,76,69,86,69,76
	dw	58,32
	align	4
_80:
	dd	_bbStringClass
	dd	2147483647
	dd	24
	dw	80,82,69,83,83,32,82,32,84,79,32,82,69,68,69,70
	dw	73,78,69,32,75,69,89,83
	align	4
_81:
	dd	_bbStringClass
	dd	2147483647
	dd	20
	dw	80,82,69,83,83,32,69,83,67,65,80,69,32,84,79,32
	dw	81,85,73,84
