	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_d3d7max2d_d3d7max2d
	extrn	___bb_d3d9max2d_d3d9max2d
	extrn	___bb_data_data
	extrn	___bb_directsoundaudio_directsoundaudio
	extrn	___bb_eventqueue_eventqueue
	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_macos_macos
	extrn	___bb_map_map
	extrn	___bb_maxlua_maxlua
	extrn	___bb_maxutil_maxutil
	extrn	___bb_oggloader_oggloader
	extrn	___bb_openalaudio_openalaudio
	extrn	___bb_pngloader_pngloader
	extrn	___bb_retro_retro
	extrn	___bb_tgaloader_tgaloader
	extrn	___bb_threads_threads
	extrn	___bb_timer_timer
	extrn	___bb_wavloader_wavloader
	extrn	_bbFloatToInt
	extrn	_bbMilliSecs
	extrn	_bbOnDebugEnterScope
	extrn	_bbOnDebugEnterStm
	extrn	_bbOnDebugLeaveScope
	public	__bb_main
	public	_bb_Get_Current_Fps
	public	_bb_Get_User_Fps
	public	_bb_update_FPS
	section	"code" code
__bb_main:
	push	ebp
	mov	ebp,esp
	push	ebx
	cmp	dword [_51],0
	je	_52
	mov	eax,0
	pop	ebx
	mov	esp,ebp
	pop	ebp
	ret
_52:
	mov	dword [_51],1
	push	ebp
	push	_42
	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_d3d7max2d_d3d7max2d
	call	___bb_d3d9max2d_d3d9max2d
	call	___bb_data_data
	call	___bb_directsoundaudio_directsoundaudio
	call	___bb_eventqueue_eventqueue
	call	___bb_freeaudioaudio_freeaudioaudio
	call	___bb_freetypefont_freetypefont
	call	___bb_gnet_gnet
	call	___bb_jpgloader_jpgloader
	call	___bb_map_map
	call	___bb_maxlua_maxlua
	call	___bb_maxutil_maxutil
	call	___bb_oggloader_oggloader
	call	___bb_openalaudio_openalaudio
	call	___bb_pngloader_pngloader
	call	___bb_retro_retro
	call	___bb_tgaloader_tgaloader
	call	___bb_threads_threads
	call	___bb_timer_timer
	call	___bb_wavloader_wavloader
	call	___bb_freejoy_freejoy
	call	___bb_freeprocess_freeprocess
	call	___bb_glew_glew
	call	___bb_macos_macos
	push	_31
	call	dword [_bbOnDebugEnterStm]
	add	esp,4
	push	_34
	call	dword [_bbOnDebugEnterStm]
	add	esp,4
	push	_36
	call	dword [_bbOnDebugEnterStm]
	add	esp,4
	push	_38
	call	dword [_bbOnDebugEnterStm]
	add	esp,4
	push	_40
	call	dword [_bbOnDebugEnterStm]
	add	esp,4
	mov	ebx,0
	jmp	_22
_22:
	call	dword [_bbOnDebugLeaveScope]
	mov	eax,ebx
	pop	ebx
	mov	esp,ebp
	pop	ebp
	ret
_bb_update_FPS:
	push	ebp
	mov	ebp,esp
	sub	esp,20
	mov	eax,dword [ebp+8]
	mov	dword [ebp-4],eax
	mov	dword [ebp-8],0
	mov	dword [ebp-12],0
	push	ebp
	push	_74
	call	dword [_bbOnDebugEnterScope]
	add	esp,8
	push	_53
	call	dword [_bbOnDebugEnterStm]
	add	esp,4
	mov	dword [ebp-8],0
	mov	dword [ebp-12],0
	push	_56
	call	dword [_bbOnDebugEnterStm]
	add	esp,4
	add	dword [_33],1
	push	_57
	call	dword [_bbOnDebugEnterStm]
	add	esp,4
	cmp	dword [_37],0
	jne	_58
	push	_59
	call	dword [_bbOnDebugEnterStm]
	add	esp,4
	call	_bbMilliSecs
	mov	dword [_37],eax
_58:
	push	_60
	call	dword [_bbOnDebugEnterStm]
	add	esp,4
	mov	eax,dword [_37]
	mov	dword [ebp-12],eax
	push	_61
	call	dword [_bbOnDebugEnterStm]
	add	esp,4
	call	_bbMilliSecs
	mov	dword [_37],eax
	push	_62
	call	dword [_bbOnDebugEnterStm]
	add	esp,4
	mov	eax,dword [_37]
	sub	eax,dword [ebp-12]
	cmp	eax,0
	je	_63
	push	_64
	call	dword [_bbOnDebugEnterStm]
	add	esp,4
	fld	dword [_88]
	mov	eax,dword [_37]
	sub	eax,dword [ebp-12]
	mov	dword [ebp+-20],eax
	fild	dword [ebp+-20]
	fdivp	st1,st0
	fstp	dword [_41]
	jmp	_65
_63:
	push	_66
	call	dword [_bbOnDebugEnterStm]
	add	esp,4
	fld	dword [_39]
	fstp	dword [_41]
_65:
	push	_67
	call	dword [_bbOnDebugEnterStm]
	add	esp,4
	mov	eax,dword [_35]
	add	eax,dword [ebp-4]
	cmp	dword [_37],eax
	jle	_68
	push	_69
	call	dword [_bbOnDebugEnterStm]
	add	esp,4
	mov	eax,dword [_37]
	sub	eax,dword [_35]
	mov	dword [ebp-8],eax
	push	_70
	call	dword [_bbOnDebugEnterStm]
	add	esp,4
	mov	eax,dword [_37]
	mov	dword [_35],eax
	push	_71
	call	dword [_bbOnDebugEnterStm]
	add	esp,4
	mov	eax,dword [_33]
	mov	dword [ebp+-20],eax
	fild	dword [ebp+-20]
	fmul	dword [_89]
	mov	eax,dword [ebp-8]
	mov	dword [ebp+-20],eax
	fild	dword [ebp+-20]
	fdivp	st1,st0
	fstp	dword [_39]
	push	_72
	call	dword [_bbOnDebugEnterStm]
	add	esp,4
	mov	dword [_33],0
_68:
	push	_73
	call	dword [_bbOnDebugEnterStm]
	add	esp,4
	fld	dword [_41]
	fstp	dword [ebp-16]
	jmp	_25
_25:
	call	dword [_bbOnDebugLeaveScope]
	fld	dword [ebp-16]
	mov	esp,ebp
	pop	ebp
	ret
_bb_Get_User_Fps:
	push	ebp
	mov	ebp,esp
	push	ebx
	push	ebp
	push	_80
	call	dword [_bbOnDebugEnterScope]
	add	esp,8
	push	_79
	call	dword [_bbOnDebugEnterStm]
	add	esp,4
	fld	dword [_39]
	sub	esp,8
	fstp	qword [esp]
	call	_bbFloatToInt
	add	esp,8
	mov	ebx,eax
	jmp	_27
_27:
	call	dword [_bbOnDebugLeaveScope]
	mov	eax,ebx
	pop	ebx
	mov	esp,ebp
	pop	ebp
	ret
_bb_Get_Current_Fps:
	push	ebp
	mov	ebp,esp
	sub	esp,4
	push	ebp
	push	_83
	call	dword [_bbOnDebugEnterScope]
	add	esp,8
	push	_82
	call	dword [_bbOnDebugEnterStm]
	add	esp,4
	fld	dword [_41]
	fstp	dword [ebp-4]
	jmp	_29
_29:
	call	dword [_bbOnDebugLeaveScope]
	fld	dword [ebp-4]
	mov	esp,ebp
	pop	ebp
	ret
	section	"data" data writeable align 8
	align	4
_51:
	dd	0
_43:
	db	"fps",0
_44:
	db	"FPS_zahler",0
_45:
	db	"i",0
	align	4
_33:
	dd	0
_46:
	db	"FPS_Start_Time",0
	align	4
_35:
	dd	0
_47:
	db	"FPS_Time",0
	align	4
_37:
	dd	0
_48:
	db	"FPS",0
_49:
	db	"f",0
	align	4
_39:
	dd	0x0
_50:
	db	"FPS_Aktuell",0
	align	4
_41:
	dd	0x0
	align	4
_42:
	dd	1
	dd	_43
	dd	4
	dd	_44
	dd	_45
	dd	_33
	dd	4
	dd	_46
	dd	_45
	dd	_35
	dd	4
	dd	_47
	dd	_45
	dd	_37
	dd	4
	dd	_48
	dd	_49
	dd	_39
	dd	4
	dd	_50
	dd	_49
	dd	_41
	dd	0
_32:
	db	"C:/Users/Fobsi/Desktop/AgeOfEmpires/game/lib/fps.bmx",0
	align	4
_31:
	dd	_32
	dd	5
	dd	1
	align	4
_34:
	dd	_32
	dd	6
	dd	1
	align	4
_36:
	dd	_32
	dd	7
	dd	1
	align	4
_38:
	dd	_32
	dd	8
	dd	1
	align	4
_40:
	dd	_32
	dd	9
	dd	1
_75:
	db	"update_FPS",0
_76:
	db	"checktime",0
_77:
	db	"Righttime",0
_78:
	db	"Time_old",0
	align	4
_74:
	dd	1
	dd	_75
	dd	2
	dd	_76
	dd	_45
	dd	-4
	dd	2
	dd	_77
	dd	_45
	dd	-8
	dd	2
	dd	_78
	dd	_45
	dd	-12
	dd	0
	align	4
_53:
	dd	_32
	dd	15
	dd	4
	align	4
_56:
	dd	_32
	dd	17
	dd	4
	align	4
_57:
	dd	_32
	dd	19
	dd	4
	align	4
_59:
	dd	_32
	dd	19
	dd	24
	align	4
_60:
	dd	_32
	dd	21
	dd	4
	align	4
_61:
	dd	_32
	dd	23
	dd	4
	align	4
_62:
	dd	_32
	dd	25
	dd	4
	align	4
_64:
	dd	_32
	dd	26
	dd	7
	align	4
_88:
	dd	0x447a0000
	align	4
_66:
	dd	_32
	dd	28
	dd	7
	align	4
_67:
	dd	_32
	dd	32
	dd	4
	align	4
_69:
	dd	_32
	dd	34
	dd	7
	align	4
_70:
	dd	_32
	dd	35
	dd	7
	align	4
_71:
	dd	_32
	dd	36
	dd	7
	align	4
_89:
	dd	0x447a0000
	align	4
_72:
	dd	_32
	dd	37
	dd	7
	align	4
_73:
	dd	_32
	dd	41
	dd	4
_81:
	db	"Get_User_Fps",0
	align	4
_80:
	dd	1
	dd	_81
	dd	0
	align	4
_79:
	dd	_32
	dd	46
	dd	4
_84:
	db	"Get_Current_Fps",0
	align	4
_83:
	dd	1
	dd	_84
	dd	0
	align	4
_82:
	dd	_32
	dd	50
	dd	4
