	.reference	___bb_blitz_blitz
	.reference	___bb_imports_aspect
	.reference	___bb_imports_constants
	.reference	___bb_imports_gamemode
	.reference	_bbAppTitle
	.reference	_bbGCFree
	.reference	_bbMilliSecs
	.reference	_bbOnDebugEnterScope
	.reference	_bbOnDebugEnterStm
	.reference	_bbOnDebugLeaveScope
	.reference	_bbStringClass
	.reference	_bb_TGameMode
	.reference	_brl_graphics_EndGraphics
	.reference	_brl_random_SeedRnd
	.globl	__bb_main
	.globl	_bb_gContinue
	.globl	_bb_gFpsCountTargetTime
	.globl	_bb_gLastNumTicks
	.globl	_bb_gLastTime
	.globl	_bb_gLogicFPS
	.globl	_bb_gLogicFrames
	.globl	_bb_gNumTicks
	.globl	_bb_gRenderFPS
	.globl	_bb_gRenderFrames
	.globl	_bb_gTempMS
	.text	
__bb_main:
	push	%ebp
	mov	%esp,%ebp
	sub	$4,%esp
	push	%ebx
	sub	$16,%esp
	cmpl	$0,_96
	je	_97
	mov	$0,%eax
	add	$16,%esp
	pop	%ebx
	mov	%ebp,%esp
	pop	%ebp
	ret
_97:
	movl	$1,_96
	movl	$0,-4(%ebp)
	mov	%ebp,%eax
	movl	%eax,4(%esp)
	movl	$_72,(%esp)
	calll	*_bbOnDebugEnterScope
	call	___bb_blitz_blitz
	call	___bb_imports_aspect
	call	___bb_imports_constants
	call	___bb_imports_gamemode
	movl	$_19,(%esp)
	calll	*_bbOnDebugEnterStm
	mov	$_7,%ebx
	incl	4(%ebx)
	movl	_bbAppTitle,%eax
	decl	4(%eax)
	jnz	_24
	movl	%eax,(%esp)
	call	_bbGCFree
_24:
	movl	%ebx,_bbAppTitle
	movl	$_25,(%esp)
	calll	*_bbOnDebugEnterStm
	calll	*_bb_TGameMode+52
	movl	$_26,(%esp)
	calll	*_bbOnDebugEnterStm
	call	_bbMilliSecs
	movl	%eax,(%esp)
	call	_brl_random_SeedRnd
	movl	$_27,(%esp)
	calll	*_bbOnDebugEnterStm
	movl	_28,%eax
	and	$1,%eax
	cmp	$0,%eax
	jne	_29
	call	_bbMilliSecs
	add	$1000,%eax
	movl	%eax,_bb_gFpsCountTargetTime
	orl	$1,_28
_29:
	movl	$_30,(%esp)
	calll	*_bbOnDebugEnterStm
	movl	$_31,(%esp)
	calll	*_bbOnDebugEnterStm
	movl	$_32,(%esp)
	calll	*_bbOnDebugEnterStm
	movl	$_33,(%esp)
	calll	*_bbOnDebugEnterStm
	movl	$_34,(%esp)
	calll	*_bbOnDebugEnterStm
	movl	_28,%eax
	and	$2,%eax
	cmp	$0,%eax
	jne	_35
	mov	$5,%ebx
	call	_bbMilliSecs
	cdq
	idiv	%ebx
	movl	%eax,_bb_gLastTime
	orl	$2,_28
_35:
	movl	$_36,(%esp)
	calll	*_bbOnDebugEnterStm
	movl	$_37,(%esp)
	calll	*_bbOnDebugEnterStm
	movl	$_38,(%esp)
	calll	*_bbOnDebugEnterStm
	movl	$_39,(%esp)
	calll	*_bbOnDebugEnterStm
	movl	$_40,(%esp)
	calll	*_bbOnDebugEnterStm
	movl	$1,_bb_gContinue
	movl	$_41,(%esp)
	calll	*_bbOnDebugEnterStm
	calll	*_bb_TGameMode+48
	movl	$_42,(%esp)
	calll	*_bbOnDebugEnterStm
	jmp	_8
_10:
	mov	%ebp,%eax
	movl	%eax,4(%esp)
	movl	$_70,(%esp)
	calll	*_bbOnDebugEnterScope
	movl	$_43,(%esp)
	calll	*_bbOnDebugEnterStm
_13:
	mov	%ebp,%eax
	movl	%eax,4(%esp)
	movl	$_50,(%esp)
	calll	*_bbOnDebugEnterScope
	movl	$_44,(%esp)
	calll	*_bbOnDebugEnterStm
	mov	$5,%ebx
	call	_bbMilliSecs
	cdq
	idiv	%ebx
	movl	%eax,_bb_gTempMS
	movl	$_45,(%esp)
	calll	*_bbOnDebugEnterStm
	movl	_bb_gLastTime,%eax
	cmpl	%eax,_bb_gTempMS
	jge	_46
	mov	%ebp,%eax
	movl	%eax,4(%esp)
	movl	$_48,(%esp)
	calll	*_bbOnDebugEnterScope
	movl	$_47,(%esp)
	calll	*_bbOnDebugEnterStm
	movl	_bb_gTempMS,%eax
	subl	_bb_gLastNumTicks,%eax
	movl	%eax,_bb_gLastTime
	calll	*_bbOnDebugLeaveScope
_46:
	movl	$_49,(%esp)
	calll	*_bbOnDebugEnterStm
	movl	_bb_gTempMS,%eax
	subl	_bb_gLastTime,%eax
	movl	%eax,_bb_gNumTicks
	calll	*_bbOnDebugLeaveScope
_11:
	cmpl	$0,_bb_gNumTicks
	jle	_13
_12:
	movl	$_51,(%esp)
	calll	*_bbOnDebugEnterStm
	movl	_bb_gTempMS,%eax
	movl	%eax,_bb_gLastTime
	movl	$_52,(%esp)
	calll	*_bbOnDebugEnterStm
	cmpl	$20,_bb_gNumTicks
	jle	_53
	mov	%ebp,%eax
	movl	%eax,4(%esp)
	movl	$_55,(%esp)
	calll	*_bbOnDebugEnterScope
	movl	$_54,(%esp)
	calll	*_bbOnDebugEnterStm
	movl	_bb_gLastNumTicks,%eax
	movl	%eax,_bb_gNumTicks
	calll	*_bbOnDebugLeaveScope
_53:
	movl	$_56,(%esp)
	calll	*_bbOnDebugEnterStm
	movl	_bb_gNumTicks,%eax
	movl	%eax,_bb_gLastNumTicks
	movl	$_57,(%esp)
	calll	*_bbOnDebugEnterStm
	movl	$0,-4(%ebp)
	movl	$1,-4(%ebp)
	movl	_bb_gNumTicks,%ebx
	jmp	_59
_16:
	mov	%ebp,%eax
	movl	%eax,4(%esp)
	movl	$_67,(%esp)
	calll	*_bbOnDebugEnterScope
	movl	$_61,(%esp)
	calll	*_bbOnDebugEnterStm
	calll	*_bb_TGameMode+100
	movl	%eax,_bb_gContinue
	movl	$_62,(%esp)
	calll	*_bbOnDebugEnterStm
	cmpl	$0,_bb_gContinue
	jne	_63
	mov	%ebp,%eax
	movl	%eax,4(%esp)
	movl	$_65,(%esp)
	calll	*_bbOnDebugEnterScope
	movl	$_64,(%esp)
	calll	*_bbOnDebugEnterStm
	movl	_bb_gNumTicks,%eax
	movl	%eax,-4(%ebp)
	calll	*_bbOnDebugLeaveScope
_63:
	movl	$_66,(%esp)
	calll	*_bbOnDebugEnterStm
	addl	$1,_bb_gLogicFrames
	calll	*_bbOnDebugLeaveScope
_14:
	addl	$1,-4(%ebp)
_59:
	cmpl	%ebx,-4(%ebp)
	jle	_16
_15:
	movl	$_69,(%esp)
	calll	*_bbOnDebugEnterStm
	calll	*_bb_TGameMode+120
	calll	*_bbOnDebugLeaveScope
_8:
	cmpl	$0,_bb_gContinue
	jne	_10
_9:
	movl	$_71,(%esp)
	calll	*_bbOnDebugEnterStm
	call	_brl_graphics_EndGraphics
	mov	$0,%ebx
	jmp	_17
_17:
	calll	*_bbOnDebugLeaveScope
	mov	%ebx,%eax
	add	$16,%esp
	pop	%ebx
	mov	%ebp,%esp
	pop	%ebp
	ret
	.data	
	.align	4
_96:
	.long	0
_73:
	.asciz	"grandprix"
_74:
	.asciz	"ASPECT_KEEP"
_68:
	.asciz	"i"
	.align	4
_75:
	.long	_bbStringClass
	.long	2147483646
	.long	1
	.short	49
_76:
	.asciz	"ASPECT_STRETCH"
	.align	4
_77:
	.long	_bbStringClass
	.long	2147483646
	.long	1
	.short	48
_78:
	.asciz	"ASPECT_LETTERBOX_FILL"
	.align	4
_79:
	.long	_bbStringClass
	.long	2147483646
	.long	1
	.short	50
_80:
	.asciz	"ASPECT_LETTERBOX_BORDER"
	.align	4
_81:
	.long	_bbStringClass
	.long	2147483646
	.long	1
	.short	51
_82:
	.asciz	"ASPECT_BESTFIT_FILL"
	.align	4
_83:
	.long	_bbStringClass
	.long	2147483646
	.long	1
	.short	52
_84:
	.asciz	"ASPECT_BESTFIT_BORDER"
	.align	4
_85:
	.long	_bbStringClass
	.long	2147483646
	.long	1
	.short	53
_86:
	.asciz	"gFpsCountTargetTime"
	.align	4
_bb_gFpsCountTargetTime:
	.long	0
_87:
	.asciz	"gRenderFrames"
	.align	4
_bb_gRenderFrames:
	.long	0
_88:
	.asciz	"gRenderFPS"
	.align	4
_bb_gRenderFPS:
	.long	0
_89:
	.asciz	"gLogicFrames"
	.align	4
_bb_gLogicFrames:
	.long	0
_90:
	.asciz	"gLogicFPS"
	.align	4
_bb_gLogicFPS:
	.long	0
_91:
	.asciz	"gLastTime"
	.align	4
_bb_gLastTime:
	.long	0
_92:
	.asciz	"gNumTicks"
	.align	4
_bb_gNumTicks:
	.long	0
_93:
	.asciz	"gTempMS"
	.align	4
_bb_gTempMS:
	.long	0
_94:
	.asciz	"gLastNumTicks"
	.align	4
_bb_gLastNumTicks:
	.long	1
_95:
	.asciz	"gContinue"
	.align	4
_bb_gContinue:
	.long	0
	.align	4
_72:
	.long	1
	.long	_73
	.long	1
	.long	_74
	.long	_68
	.long	_75
	.long	1
	.long	_76
	.long	_68
	.long	_77
	.long	1
	.long	_78
	.long	_68
	.long	_79
	.long	1
	.long	_80
	.long	_68
	.long	_81
	.long	1
	.long	_82
	.long	_68
	.long	_83
	.long	1
	.long	_84
	.long	_68
	.long	_85
	.long	4
	.long	_86
	.long	_68
	.long	_bb_gFpsCountTargetTime
	.long	4
	.long	_87
	.long	_68
	.long	_bb_gRenderFrames
	.long	4
	.long	_88
	.long	_68
	.long	_bb_gRenderFPS
	.long	4
	.long	_89
	.long	_68
	.long	_bb_gLogicFrames
	.long	4
	.long	_90
	.long	_68
	.long	_bb_gLogicFPS
	.long	4
	.long	_91
	.long	_68
	.long	_bb_gLastTime
	.long	4
	.long	_92
	.long	_68
	.long	_bb_gNumTicks
	.long	4
	.long	_93
	.long	_68
	.long	_bb_gTempMS
	.long	4
	.long	_94
	.long	_68
	.long	_bb_gLastNumTicks
	.long	4
	.long	_95
	.long	_68
	.long	_bb_gContinue
	.long	0
_20:
	.asciz	"/Users/macbook/Downloads/grandprix_win/grandprix.bmx"
	.align	4
_19:
	.long	_20
	.long	31
	.long	1
	.align	4
_7:
	.long	_bbStringClass
	.long	2147483647
	.long	10
	.short	71,114,97,110,100,32,80,114,105,120
	.align	4
_25:
	.long	_20
	.long	33
	.long	1
	.align	4
_26:
	.long	_20
	.long	35
	.long	1
	.align	4
_27:
	.long	_20
	.long	41
	.long	1
	.align	4
_28:
	.long	0
	.align	4
_30:
	.long	_20
	.long	42
	.long	1
	.align	4
_31:
	.long	_20
	.long	43
	.long	1
	.align	4
_32:
	.long	_20
	.long	44
	.long	1
	.align	4
_33:
	.long	_20
	.long	45
	.long	1
	.align	4
_34:
	.long	_20
	.long	46
	.long	1
	.align	4
_36:
	.long	_20
	.long	47
	.long	1
	.align	4
_37:
	.long	_20
	.long	48
	.long	1
	.align	4
_38:
	.long	_20
	.long	49
	.long	1
	.align	4
_39:
	.long	_20
	.long	50
	.long	1
	.align	4
_40:
	.long	_20
	.long	56
	.long	1
	.align	4
_41:
	.long	_20
	.long	58
	.long	1
	.align	4
_42:
	.long	_20
	.long	60
	.long	1
	.align	4
_70:
	.long	3
	.long	0
	.long	0
	.align	4
_43:
	.long	_20
	.long	69
	.long	2
	.align	4
_50:
	.long	3
	.long	0
	.long	0
	.align	4
_44:
	.long	_20
	.long	64
	.long	3
	.align	4
_45:
	.long	_20
	.long	65
	.long	3
	.align	4
_48:
	.long	3
	.long	0
	.long	0
	.align	4
_47:
	.long	_20
	.long	66
	.long	4
	.align	4
_49:
	.long	_20
	.long	68
	.long	3
	.align	4
_51:
	.long	_20
	.long	70
	.long	2
	.align	4
_52:
	.long	_20
	.long	71
	.long	2
	.align	4
_55:
	.long	3
	.long	0
	.long	0
	.align	4
_54:
	.long	_20
	.long	72
	.long	3
	.align	4
_56:
	.long	_20
	.long	74
	.long	2
	.align	4
_57:
	.long	_20
	.long	77
	.long	2
	.align	4
_67:
	.long	3
	.long	0
	.long	2
	.long	_68
	.long	_68
	.long	-4
	.long	0
	.align	4
_61:
	.long	_20
	.long	78
	.long	3
	.align	4
_62:
	.long	_20
	.long	79
	.long	3
	.align	4
_65:
	.long	3
	.long	0
	.long	0
	.align	4
_64:
	.long	_20
	.long	80
	.long	4
	.align	4
_66:
	.long	_20
	.long	82
	.long	3
	.align	4
_69:
	.long	_20
	.long	86
	.long	2
	.align	4
_71:
	.long	_20
	.long	89
	.long	1
