	format	MS COFF
	extrn	___bb_BitRolly_types
	extrn	___bb_bitmapfont_bitmapfont
	extrn	___bb_blitz_blitz
	extrn	___bb_simplegui_simplegui
	extrn	___bb_vector_vector
	extrn	__bb_GameGFX_font
	extrn	__bb_GameGFX_smallfont
	extrn	_bbEnd
	extrn	_bbGCFree
	extrn	_bbIncbinAdd
	extrn	_bbNullObject
	extrn	_bbObjectDowncast
	extrn	_bbObjectNew
	extrn	_bbStringClass
	extrn	_bbStringConcat
	extrn	_bbStringFromInt
	extrn	_bb_TBall
	extrn	_bb_TLine
	extrn	_bb_TParticleMachine
	extrn	_brl_glmax2d_GLMax2DDriver
	extrn	_brl_graphics_SetGraphicsDriver
	extrn	_brl_linkedlist_CreateList
	extrn	_brl_max2d_Cls
	extrn	_brl_max2d_DrawText
	extrn	_brl_max2d_EndGraphics
	extrn	_brl_max2d_Flip
	extrn	_brl_max2d_Graphics
	extrn	_brl_max2d_GraphicsHeight
	extrn	_brl_max2d_HideMouse
	extrn	_brl_max2d_SetAlpha
	extrn	_brl_max2d_SetBlend
	extrn	_brl_max2d_SetColor
	extrn	_brl_random_Rand
	extrn	_brl_random_SeedRnd
	extrn	_brl_system_KeyDown
	extrn	_brl_system_KeyHit
	extrn	_brl_system_MilliSecs
	extrn	_noddybox_bitmapfont_TBitmapFont
	public	__bb_main
	public	_bb_quit
	section	"code" code
__bb_main:
	push	ebp
	mov	ebp,esp
	sub	esp,24
	push	ebx
	push	esi
	push	edi
	cmp	dword [_102],0
	je	_103
	mov	eax,0
	pop	edi
	pop	esi
	pop	ebx
	mov	esp,ebp
	pop	ebp
	ret
_103:
	mov	dword [_102],1
	call	___bb_blitz_blitz
	call	___bb_vector_vector
	call	___bb_bitmapfont_bitmapfont
	call	___bb_simplegui_simplegui
	call	___bb_BitRolly_types
	mov	eax,_40
	sub	eax,_39
	push	eax
	push	_39
	push	_38
	call	_bbIncbinAdd
	add	esp,12
	mov	eax,_43
	sub	eax,_42
	push	eax
	push	_42
	push	_41
	call	_bbIncbinAdd
	add	esp,12
	call	_brl_system_MilliSecs
	push	eax
	call	_brl_random_SeedRnd
	add	esp,4
	push	2
	call	_brl_glmax2d_GLMax2DDriver
	push	eax
	call	_brl_graphics_SetGraphicsDriver
	add	esp,8
	push	60
	push	32
	push	600
	push	800
	call	_brl_max2d_Graphics
	add	esp,16
	call	_brl_max2d_HideMouse
	push	3
	call	_brl_max2d_SetBlend
	add	esp,4
	push	1065353216
	call	_brl_max2d_SetAlpha
	add	esp,4
	mov	ebx,dword [__bb_GameGFX_font]
	push	0
	push	_12
	call	dword [_noddybox_bitmapfont_TBitmapFont+48]
	add	esp,8
	add	dword [eax+4],1
	mov	dword [__bb_GameGFX_font],eax
	sub	dword [ebx+4],1
	cmp	dword [ebx+4],0
	jne	_47
	push	ebx
	call	_bbGCFree
	add	esp,4
_47:
	mov	ebx,dword [__bb_GameGFX_smallfont]
	push	0
	push	_13
	call	dword [_noddybox_bitmapfont_TBitmapFont+48]
	add	esp,8
	add	dword [eax+4],1
	mov	dword [__bb_GameGFX_smallfont],eax
	sub	dword [ebx+4],1
	cmp	dword [ebx+4],0
	jne	_51
	push	ebx
	call	_bbGCFree
	add	esp,4
_51:
	call	dword [_bb_TParticleMachine+48]
	call	_brl_linkedlist_CreateList
	mov	dword [ebp-8],eax
	call	_brl_linkedlist_CreateList
	mov	dword [ebp-20],eax
	mov	dword [ebp-4],100
	call	_brl_max2d_GraphicsHeight
	sub	eax,50
	mov	dword [ebp-12],eax
	jmp	_55
_16:
	push	200
	push	0
	call	_brl_random_Rand
	add	esp,8
	mov	ebx,eax
	push	400
	push	300
	call	_brl_random_Rand
	add	esp,8
	mov	edi,eax
	mov	esi,dword [ebp-4]
	push	1
	push	100
	call	_brl_random_Rand
	add	esp,8
	add	esi,eax
	mov	eax,esi
	mov	esi,dword [ebp-8]
	mov	dword [ebp+-24],eax
	fild	dword [ebp+-24]
	sub	esp,8
	fstp	qword [esp]
	mov	dword [ebp+-24],edi
	fild	dword [ebp+-24]
	sub	esp,8
	fstp	qword [esp]
	mov	eax,dword [ebp-4]
	mov	dword [ebp+-24],eax
	fild	dword [ebp+-24]
	sub	esp,8
	fstp	qword [esp]
	mov	dword [ebp+-24],ebx
	fild	dword [ebp+-24]
	sub	esp,8
	fstp	qword [esp]
	call	dword [_bb_TLine+48]
	add	esp,32
	push	eax
	push	esi
	mov	eax,dword [esi]
	call	dword [eax+64]
	add	esp,8
	push	500
	push	400
	call	_brl_random_Rand
	add	esp,8
	mov	ebx,eax
	push	800
	push	600
	call	_brl_random_Rand
	add	esp,8
	mov	edi,eax
	mov	esi,dword [ebp-4]
	push	1
	push	100
	call	_brl_random_Rand
	add	esp,8
	sub	esi,eax
	mov	eax,esi
	mov	esi,dword [ebp-8]
	mov	dword [ebp+-24],eax
	fild	dword [ebp+-24]
	sub	esp,8
	fstp	qword [esp]
	mov	dword [ebp+-24],edi
	fild	dword [ebp+-24]
	sub	esp,8
	fstp	qword [esp]
	mov	eax,dword [ebp-4]
	mov	dword [ebp+-24],eax
	fild	dword [ebp+-24]
	sub	esp,8
	fstp	qword [esp]
	mov	dword [ebp+-24],ebx
	fild	dword [ebp+-24]
	sub	esp,8
	fstp	qword [esp]
	call	dword [_bb_TLine+48]
	add	esp,32
	push	eax
	push	esi
	mov	eax,dword [esi]
	call	dword [eax+64]
	add	esp,8
_14:
	add	dword [ebp-4],100
_55:
	mov	eax,dword [ebp-12]
	cmp	dword [ebp-4],eax
	jle	_16
_15:
	mov	esi,0
	jmp	_63
_19:
	mov	ebx,dword [ebp-20]
	push	_bb_TBall
	call	_bbObjectNew
	add	esp,4
	push	eax
	push	ebx
	mov	eax,dword [ebx]
	call	dword [eax+64]
	add	esp,8
_17:
	add	esi,1
_63:
	cmp	esi,5
	jle	_19
_18:
	jmp	_20
_22:
	call	_brl_max2d_Cls
	call	_brl_system_MilliSecs
	mov	dword [ebp-16],eax
	push	39
	call	_brl_system_KeyDown
	add	esp,4
	cmp	eax,0
	je	_66
	mov	ebx,dword [ebp-20]
	push	_bb_TBall
	call	_bbObjectNew
	add	esp,4
	push	eax
	push	ebx
	mov	eax,dword [ebx]
	call	dword [eax+64]
	add	esp,8
_66:
	push	37
	call	_brl_system_KeyDown
	add	esp,4
	cmp	eax,0
	je	_69
	mov	eax,dword [ebp-20]
	push	eax
	mov	eax,dword [eax]
	call	dword [eax+108]
	add	esp,4
	cmp	eax,0
	setg	al
	movzx	eax,al
_69:
	cmp	eax,0
	je	_71
	mov	eax,dword [ebp-20]
	push	eax
	mov	eax,dword [eax]
	call	dword [eax+80]
	add	esp,4
_71:
	mov	eax,dword [ebp-20]
	push	eax
	mov	eax,dword [eax]
	call	dword [eax+136]
	add	esp,4
	mov	edi,eax
	jmp	_23
_25:
	mov	eax,edi
	push	_bb_TBall
	push	eax
	mov	eax,dword [eax]
	call	dword [eax+52]
	add	esp,4
	push	eax
	call	_bbObjectDowncast
	add	esp,8
	mov	esi,eax
	cmp	esi,_bbNullObject
	je	_23
	mov	eax,dword [ebp-8]
	push	eax
	mov	eax,dword [eax]
	call	dword [eax+136]
	add	esp,4
	mov	ebx,eax
	jmp	_26
_28:
	mov	eax,ebx
	push	_bb_TLine
	push	eax
	mov	eax,dword [eax]
	call	dword [eax+52]
	add	esp,4
	push	eax
	call	_bbObjectDowncast
	add	esp,8
	cmp	eax,_bbNullObject
	je	_26
	push	esi
	push	eax
	mov	eax,dword [eax]
	call	dword [eax+52]
	add	esp,8
_26:
	mov	eax,ebx
	push	eax
	mov	eax,dword [eax]
	call	dword [eax+48]
	add	esp,4
	cmp	eax,0
	jne	_28
_27:
	mov	edx,dword [esi+24]
	mov	eax,dword [esi+24]
	fld	qword [eax+16]
	fld	qword [_104]
	faddp	st1,st0
	fstp	qword [edx+16]
	mov	eax,esi
	push	eax
	mov	eax,dword [eax]
	call	dword [eax+48]
	add	esp,4
	fld	qword [esi+8]
	fldz
	fxch	st1
	fucompp
	fnstsw	ax
	sahf
	setb	al
	movzx	eax,al
	cmp	eax,0
	jne	_85
	fld	qword [esi+8]
	fld	qword [_105]
	fxch	st1
	fucompp
	fnstsw	ax
	sahf
	seta	al
	movzx	eax,al
_85:
	cmp	eax,0
	jne	_87
	fld	qword [esi+16]
	fld	qword [_106]
	fxch	st1
	fucompp
	fnstsw	ax
	sahf
	seta	al
	movzx	eax,al
_87:
	cmp	eax,0
	je	_89
	push	800
	push	0
	call	_brl_random_Rand
	add	esp,8
	mov	dword [ebp+-24],eax
	fild	dword [ebp+-24]
	fstp	qword [esi+8]
	fldz
	fstp	qword [esi+16]
	mov	eax,dword [esi+24]
	fldz
	fstp	qword [eax+8]
	mov	eax,dword [esi+24]
	fldz
	fstp	qword [eax+16]
_89:
_23:
	mov	eax,edi
	push	eax
	mov	eax,dword [eax]
	call	dword [eax+48]
	add	esp,4
	cmp	eax,0
	jne	_25
_24:
	mov	eax,dword [ebp-8]
	push	eax
	mov	eax,dword [eax]
	call	dword [eax+136]
	add	esp,4
	mov	ebx,eax
	jmp	_29
_31:
	push	_bb_TLine
	push	ebx
	mov	eax,dword [ebx]
	call	dword [eax+52]
	add	esp,4
	push	eax
	call	_bbObjectDowncast
	add	esp,8
	cmp	eax,_bbNullObject
	je	_29
	push	eax
	mov	eax,dword [eax]
	call	dword [eax+56]
	add	esp,4
_29:
	push	ebx
	mov	eax,dword [ebx]
	call	dword [eax+48]
	add	esp,4
	cmp	eax,0
	jne	_31
_30:
	mov	eax,dword [ebp-20]
	push	eax
	mov	eax,dword [eax]
	call	dword [eax+136]
	add	esp,4
	mov	ebx,eax
	jmp	_32
_34:
	push	_bb_TBall
	push	ebx
	mov	eax,dword [ebx]
	call	dword [eax+52]
	add	esp,4
	push	eax
	call	_bbObjectDowncast
	add	esp,8
	cmp	eax,_bbNullObject
	je	_32
	push	eax
	mov	eax,dword [eax]
	call	dword [eax+52]
	add	esp,4
_32:
	push	ebx
	mov	eax,dword [ebx]
	call	dword [eax+48]
	add	esp,4
	cmp	eax,0
	jne	_34
_33:
	call	dword [_bb_TParticleMachine+64]
	call	_brl_system_MilliSecs
	sub	eax,dword [ebp-16]
	mov	dword [ebp-16],eax
	push	255
	push	255
	push	255
	call	_brl_max2d_SetColor
	add	esp,12
	push	0
	push	0
	push	_35
	push	dword [ebp-16]
	call	_bbStringFromInt
	add	esp,4
	push	eax
	call	_bbStringConcat
	add	esp,8
	push	eax
	call	_brl_max2d_DrawText
	add	esp,12
	call	_brl_max2d_Flip
_20:
	push	27
	call	_brl_system_KeyHit
	add	esp,4
	cmp	eax,0
	je	_22
_21:
	call	_brl_max2d_EndGraphics
	call	_bbEnd
	mov	eax,0
	jmp	_36
_36:
	pop	edi
	pop	esi
	pop	ebx
	mov	esp,ebp
	pop	ebp
	ret
	section	"data" data writeable
_102:
	dd	0
_39:
	file	"E:/Src/BlitzMAX/BitRolly/GFX/font.bmf"
_40:
_38:
	dd	_bbStringClass
	dd	2147483647
	dd	12
	dw	71,70,88,47,102,111,110,116
	dw	46,98,109,102
_42:
	file	"E:/Src/BlitzMAX/BitRolly/GFX/small.bmf"
_43:
_41:
	dd	_bbStringClass
	dd	2147483647
	dd	13
	dw	71,70,88,47,115,109,97,108
	dw	108,46,98,109,102
_12:
	dd	_bbStringClass
	dd	2147483647
	dd	20
	dw	105,110,99,98,105,110,58,58
	dw	71,70,88,47,102,111,110,116
	dw	46,98,109,102
_13:
	dd	_bbStringClass
	dd	2147483647
	dd	21
	dw	105,110,99,98,105,110,58,58
	dw	71,70,88,47,115,109,97,108
	dw	108,46,98,109,102
_bb_quit:
	dd	0
_104:
	dd	0xa0000000,0x3fb99999
_105:
	dd	0x0,0x40890000
_106:
	dd	0x0,0x4082c000
_35:
	dd	_bbStringClass
	dd	2147483647
	dd	3
	dw	32,109,115
