	format	MS COFF
	extrn	___bb_appstub_appstub
	extrn	___bb_audio_audio
	extrn	___bb_bitmapfont_bitmapfont
	extrn	___bb_blitz_blitz
	extrn	___bb_bmploader_bmploader
	extrn	___bb_d3d7max2d_d3d7max2d
	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_maxutil_maxutil
	extrn	___bb_oggloader_oggloader
	extrn	___bb_openalaudio_openalaudio
	extrn	___bb_pngloader_pngloader
	extrn	___bb_reflection_reflection
	extrn	___bb_retro_retro
	extrn	___bb_tgaloader_tgaloader
	extrn	___bb_timer_timer
	extrn	___bb_wavloader_wavloader
	extrn	_bbEmptyString
	extrn	_bbFloatToInt
	extrn	_bbGCFree
	extrn	_bbNullObject
	extrn	_bbObjectClass
	extrn	_bbObjectCompare
	extrn	_bbObjectCtor
	extrn	_bbObjectDowncast
	extrn	_bbObjectDtor
	extrn	_bbObjectFree
	extrn	_bbObjectNew
	extrn	_bbObjectRegisterType
	extrn	_bbObjectReserved
	extrn	_bbObjectSendMessage
	extrn	_bbObjectToString
	extrn	_brl_linkedlist_TList
	extrn	_brl_max2d_GetAlpha
	extrn	_brl_max2d_SetAlpha
	public	___bb_nuttershoot_font_fade
	public	__bb_FontFadeEnt_Delete
	public	__bb_FontFadeEnt_New
	public	__bb_TFontFade_Add
	public	__bb_TFontFade_Centre
	public	__bb_TFontFade_Clear
	public	__bb_TFontFade_Count
	public	__bb_TFontFade_Create
	public	__bb_TFontFade_Delete
	public	__bb_TFontFade_IsEmpty
	public	__bb_TFontFade_New
	public	__bb_TFontFade_Process
	public	_bb_FontFadeEnt
	public	_bb_TFontFade
	section	"code" code
___bb_nuttershoot_font_fade:
	push	ebp
	mov	ebp,esp
	cmp	dword [_105],0
	je	_106
	mov	eax,0
	mov	esp,ebp
	pop	ebp
	ret
_106:
	mov	dword [_105],1
	call	___bb_blitz_blitz
	call	___bb_bitmapfont_bitmapfont
	call	___bb_appstub_appstub
	call	___bb_audio_audio
	call	___bb_bmploader_bmploader
	call	___bb_d3d7max2d_d3d7max2d
	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_maxutil_maxutil
	call	___bb_oggloader_oggloader
	call	___bb_openalaudio_openalaudio
	call	___bb_pngloader_pngloader
	call	___bb_reflection_reflection
	call	___bb_retro_retro
	call	___bb_tgaloader_tgaloader
	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	_bb_TFontFade
	call	_bbObjectRegisterType
	add	esp,4
	push	_bb_FontFadeEnt
	call	_bbObjectRegisterType
	add	esp,4
	mov	eax,0
	jmp	_56
_56:
	mov	esp,ebp
	pop	ebp
	ret
__bb_TFontFade_New:
	push	ebp
	mov	ebp,esp
	push	ebx
	mov	ebx,dword [ebp+8]
	push	ebx
	call	_bbObjectCtor
	add	esp,4
	mov	dword [ebx],_bb_TFontFade
	mov	eax,_bbNullObject
	inc	dword [eax+4]
	mov	dword [ebx+8],eax
	mov	eax,_bbNullObject
	inc	dword [eax+4]
	mov	dword [ebx+12],eax
	mov	eax,0
	jmp	_59
_59:
	pop	ebx
	mov	esp,ebp
	pop	ebp
	ret
__bb_TFontFade_Delete:
	push	ebp
	mov	ebp,esp
	push	ebx
	mov	ebx,dword [ebp+8]
_62:
	mov	eax,dword [ebx+12]
	dec	dword [eax+4]
	jnz	_111
	push	eax
	call	_bbGCFree
	add	esp,4
_111:
	mov	eax,dword [ebx+8]
	dec	dword [eax+4]
	jnz	_113
	push	eax
	call	_bbGCFree
	add	esp,4
_113:
	mov	dword [ebx],_bbObjectClass
	push	ebx
	call	_bbObjectDtor
	add	esp,4
	mov	eax,0
	jmp	_109
_109:
	pop	ebx
	mov	esp,ebp
	pop	ebp
	ret
__bb_TFontFade_Create:
	push	ebp
	mov	ebp,esp
	push	ebx
	push	esi
	push	edi
	mov	edi,dword [ebp+8]
	push	_bb_TFontFade
	call	_bbObjectNew
	add	esp,4
	mov	esi,eax
	push	_brl_linkedlist_TList
	call	_bbObjectNew
	add	esp,4
	inc	dword [eax+4]
	mov	ebx,eax
	mov	eax,dword [esi+8]
	dec	dword [eax+4]
	jnz	_118
	push	eax
	call	_bbGCFree
	add	esp,4
_118:
	mov	dword [esi+8],ebx
	mov	ebx,edi
	inc	dword [ebx+4]
	mov	eax,dword [esi+12]
	dec	dword [eax+4]
	jnz	_122
	push	eax
	call	_bbGCFree
	add	esp,4
_122:
	mov	dword [esi+12],ebx
	mov	eax,esi
	jmp	_65
_65:
	pop	edi
	pop	esi
	pop	ebx
	mov	esp,ebp
	pop	ebp
	ret
__bb_TFontFade_Add:
	push	ebp
	mov	ebp,esp
	push	ebx
	push	esi
	push	edi
	mov	edi,dword [ebp+12]
	mov	esi,dword [ebp+24]
	push	_bb_FontFadeEnt
	call	_bbObjectNew
	add	esp,4
	mov	ebx,eax
	mov	eax,edi
	inc	dword [eax+4]
	mov	edi,eax
	mov	eax,dword [ebx+8]
	dec	dword [eax+4]
	jnz	_127
	push	eax
	call	_bbGCFree
	add	esp,4
_127:
	mov	dword [ebx+8],edi
	fld	dword [ebp+16]
	fstp	dword [ebx+12]
	fld	dword [ebp+20]
	fstp	dword [ebx+16]
	fld	dword [ebp+36]
	fstp	dword [ebx+20]
	fld	dword [ebp+40]
	fstp	dword [ebx+24]
	mov	eax,esi
	and	eax,16711680
	shr	eax,16
	mov	dword [ebx+28],eax
	mov	eax,esi
	and	eax,65280
	shr	eax,8
	mov	dword [ebx+32],eax
	mov	eax,esi
	and	eax,255
	mov	dword [ebx+28],eax
	fld	dword [ebp+28]
	fstp	dword [ebx+40]
	fld	dword [ebp+32]
	fstp	dword [ebx+44]
	mov	dword [ebx+48],0
	mov	eax,dword [ebp+8]
	mov	eax,dword [eax+8]
	push	ebx
	push	eax
	mov	eax,dword [eax]
	call	dword [eax+68]
	add	esp,8
	mov	eax,0
	jmp	_76
_76:
	pop	edi
	pop	esi
	pop	ebx
	mov	esp,ebp
	pop	ebp
	ret
__bb_TFontFade_Centre:
	push	ebp
	mov	ebp,esp
	push	ebx
	push	esi
	push	edi
	mov	edi,dword [ebp+12]
	mov	esi,dword [ebp+20]
	push	_bb_FontFadeEnt
	call	_bbObjectNew
	add	esp,4
	mov	ebx,eax
	mov	eax,edi
	inc	dword [eax+4]
	mov	edi,eax
	mov	eax,dword [ebx+8]
	dec	dword [eax+4]
	jnz	_133
	push	eax
	call	_bbGCFree
	add	esp,4
_133:
	mov	dword [ebx+8],edi
	fldz
	fstp	dword [ebx+12]
	fld	dword [ebp+16]
	fstp	dword [ebx+16]
	fldz
	fstp	dword [ebx+20]
	fld	dword [ebp+32]
	fstp	dword [ebx+24]
	mov	eax,esi
	and	eax,16711680
	shr	eax,16
	mov	dword [ebx+28],eax
	mov	eax,esi
	and	eax,65280
	shr	eax,8
	mov	dword [ebx+32],eax
	mov	eax,esi
	and	eax,255
	mov	dword [ebx+36],eax
	fld	dword [ebp+24]
	fstp	dword [ebx+40]
	fld	dword [ebp+28]
	fstp	dword [ebx+44]
	mov	dword [ebx+48],1
	mov	eax,dword [ebp+8]
	mov	eax,dword [eax+8]
	push	ebx
	push	eax
	mov	eax,dword [eax]
	call	dword [eax+68]
	add	esp,8
	mov	eax,0
	jmp	_85
_85:
	pop	edi
	pop	esi
	pop	ebx
	mov	esp,ebp
	pop	ebp
	ret
__bb_TFontFade_Clear:
	push	ebp
	mov	ebp,esp
	mov	eax,dword [ebp+8]
	mov	eax,dword [eax+8]
	push	eax
	mov	eax,dword [eax]
	call	dword [eax+52]
	add	esp,4
	mov	eax,0
	jmp	_88
_88:
	mov	esp,ebp
	pop	ebp
	ret
__bb_TFontFade_IsEmpty:
	push	ebp
	mov	ebp,esp
	mov	eax,dword [ebp+8]
	mov	eax,dword [eax+8]
	push	eax
	mov	eax,dword [eax]
	call	dword [eax+56]
	add	esp,4
	jmp	_91
_91:
	mov	esp,ebp
	pop	ebp
	ret
__bb_TFontFade_Count:
	push	ebp
	mov	ebp,esp
	mov	eax,dword [ebp+8]
	mov	eax,dword [eax+8]
	push	eax
	mov	eax,dword [eax]
	call	dword [eax+112]
	add	esp,4
	jmp	_94
_94:
	mov	esp,ebp
	pop	ebp
	ret
__bb_TFontFade_Process:
	push	ebp
	mov	ebp,esp
	sub	esp,12
	push	ebx
	push	esi
	push	edi
	mov	edi,dword [ebp+8]
	call	_brl_max2d_GetAlpha
	fstp	dword [ebp-12]
	mov	eax,dword [edi+8]
	mov	dword [ebp-4],eax
	mov	eax,dword [ebp-4]
	push	eax
	mov	eax,dword [eax]
	call	dword [eax+140]
	add	esp,4
	mov	dword [ebp-8],eax
	jmp	_18
_20:
	mov	eax,dword [ebp-8]
	push	_bb_FontFadeEnt
	push	eax
	mov	eax,dword [eax]
	call	dword [eax+52]
	add	esp,4
	push	eax
	call	_bbObjectDowncast
	add	esp,8
	mov	ebx,eax
	cmp	ebx,_bbNullObject
	je	_18
	fld	dword [ebx+40]
	fld	dword [_182]
	fxch	st1
	fucompp
	fnstsw	ax
	sahf
	setb	al
	movzx	eax,al
	cmp	eax,0
	je	_145
	fld	dword [ebx+44]
	fldz
	fxch	st1
	fucompp
	fnstsw	ax
	sahf
	setb	al
	movzx	eax,al
_145:
	cmp	eax,0
	je	_147
	mov	eax,dword [edi+8]
	push	ebx
	push	eax
	mov	eax,dword [eax]
	call	dword [eax+116]
	add	esp,8
	jmp	_149
_147:
	push	dword [ebx+40]
	call	_brl_max2d_SetAlpha
	add	esp,4
	cmp	dword [ebx+48],0
	je	_150
	mov	esi,dword [edi+12]
	push	dword [ebx+36]
	push	dword [ebx+32]
	push	dword [ebx+28]
	fld	dword [ebx+16]
	sub	esp,8
	fstp	qword [esp]
	call	_bbFloatToInt
	add	esp,8
	push	eax
	push	dword [ebx+8]
	push	esi
	mov	eax,dword [esi]
	call	dword [eax+56]
	add	esp,24
	jmp	_152
_150:
	mov	esi,dword [edi+12]
	push	dword [ebx+36]
	push	dword [ebx+32]
	push	dword [ebx+28]
	fld	dword [ebx+16]
	sub	esp,8
	fstp	qword [esp]
	call	_bbFloatToInt
	add	esp,8
	push	eax
	fld	dword [ebx+12]
	sub	esp,8
	fstp	qword [esp]
	call	_bbFloatToInt
	add	esp,8
	push	eax
	push	dword [ebx+8]
	push	esi
	mov	eax,dword [esi]
	call	dword [eax+52]
	add	esp,28
_152:
	fld	dword [ebx+40]
	fadd	dword [ebx+44]
	fstp	dword [ebx+40]
	fld	dword [ebx+12]
	fadd	dword [ebx+20]
	fstp	dword [ebx+12]
	fld	dword [ebx+16]
	fadd	dword [ebx+24]
	fstp	dword [ebx+16]
	fld	dword [ebx+40]
	fld1
	fxch	st1
	fucompp
	fnstsw	ax
	sahf
	setbe	al
	movzx	eax,al
	cmp	eax,0
	jne	_154
	fld1
	fstp	dword [ebx+40]
	fld	dword [ebx+44]
	fchs
	fstp	dword [ebx+44]
_154:
_149:
_18:
	mov	eax,dword [ebp-8]
	push	eax
	mov	eax,dword [eax]
	call	dword [eax+48]
	add	esp,4
	cmp	eax,0
	jne	_20
_19:
	push	dword [ebp-12]
	call	_brl_max2d_SetAlpha
	add	esp,4
	mov	eax,0
	jmp	_97
_97:
	pop	edi
	pop	esi
	pop	ebx
	mov	esp,ebp
	pop	ebp
	ret
__bb_FontFadeEnt_New:
	push	ebp
	mov	ebp,esp
	push	ebx
	mov	ebx,dword [ebp+8]
	push	ebx
	call	_bbObjectCtor
	add	esp,4
	mov	dword [ebx],_bb_FontFadeEnt
	mov	eax,_bbEmptyString
	inc	dword [eax+4]
	mov	dword [ebx+8],eax
	fldz
	fstp	dword [ebx+12]
	fldz
	fstp	dword [ebx+16]
	fldz
	fstp	dword [ebx+20]
	fldz
	fstp	dword [ebx+24]
	mov	dword [ebx+28],0
	mov	dword [ebx+32],0
	mov	dword [ebx+36],0
	fldz
	fstp	dword [ebx+40]
	fldz
	fstp	dword [ebx+44]
	mov	dword [ebx+48],0
	mov	eax,0
	jmp	_100
_100:
	pop	ebx
	mov	esp,ebp
	pop	ebp
	ret
__bb_FontFadeEnt_Delete:
	push	ebp
	mov	ebp,esp
	push	ebx
	mov	ebx,dword [ebp+8]
_103:
	mov	eax,dword [ebx+8]
	dec	dword [eax+4]
	jnz	_158
	push	eax
	call	_bbGCFree
	add	esp,4
_158:
	mov	dword [ebx],_bbObjectClass
	push	ebx
	call	_bbObjectDtor
	add	esp,4
	mov	eax,0
	jmp	_156
_156:
	pop	ebx
	mov	esp,ebp
	pop	ebp
	ret
	section	"data" data writeable align 8
	align	4
_105:
	dd	0
_22:
	db	"TFontFade",0
_23:
	db	"list",0
_24:
	db	":brl.linkedlist.TList",0
_25:
	db	"font",0
_26:
	db	":noddybox.bitmapfont.TBitmapFont",0
_27:
	db	"New",0
_28:
	db	"()i",0
_29:
	db	"Delete",0
_30:
	db	"Create",0
_31:
	db	"(:noddybox.bitmapfont.TBitmapFont):TFontFade",0
_32:
	db	"Add",0
_33:
	db	"($,f,f,i,f,f,f,f)i",0
_34:
	db	"Centre",0
_35:
	db	"($,f,i,f,f,f)i",0
_36:
	db	"Clear",0
_37:
	db	"IsEmpty",0
_38:
	db	"Count",0
_39:
	db	"Process",0
	align	4
_21:
	dd	2
	dd	_22
	dd	3
	dd	_23
	dd	_24
	dd	8
	dd	3
	dd	_25
	dd	_26
	dd	12
	dd	6
	dd	_27
	dd	_28
	dd	16
	dd	6
	dd	_29
	dd	_28
	dd	20
	dd	7
	dd	_30
	dd	_31
	dd	48
	dd	6
	dd	_32
	dd	_33
	dd	52
	dd	6
	dd	_34
	dd	_35
	dd	56
	dd	6
	dd	_36
	dd	_28
	dd	60
	dd	6
	dd	_37
	dd	_28
	dd	64
	dd	6
	dd	_38
	dd	_28
	dd	68
	dd	6
	dd	_39
	dd	_28
	dd	72
	dd	0
	align	4
_bb_TFontFade:
	dd	_bbObjectClass
	dd	_bbObjectFree
	dd	_21
	dd	16
	dd	__bb_TFontFade_New
	dd	__bb_TFontFade_Delete
	dd	_bbObjectToString
	dd	_bbObjectCompare
	dd	_bbObjectSendMessage
	dd	_bbObjectReserved
	dd	_bbObjectReserved
	dd	_bbObjectReserved
	dd	__bb_TFontFade_Create
	dd	__bb_TFontFade_Add
	dd	__bb_TFontFade_Centre
	dd	__bb_TFontFade_Clear
	dd	__bb_TFontFade_IsEmpty
	dd	__bb_TFontFade_Count
	dd	__bb_TFontFade_Process
_41:
	db	"FontFadeEnt",0
_42:
	db	"s",0
_43:
	db	"$",0
_44:
	db	"x",0
_45:
	db	"f",0
_46:
	db	"y",0
_47:
	db	"dx",0
_48:
	db	"dy",0
_49:
	db	"r",0
_50:
	db	"i",0
_51:
	db	"g",0
_52:
	db	"b",0
_53:
	db	"a",0
_54:
	db	"ai",0
_55:
	db	"centre",0
	align	4
_40:
	dd	2
	dd	_41
	dd	3
	dd	_42
	dd	_43
	dd	8
	dd	3
	dd	_44
	dd	_45
	dd	12
	dd	3
	dd	_46
	dd	_45
	dd	16
	dd	3
	dd	_47
	dd	_45
	dd	20
	dd	3
	dd	_48
	dd	_45
	dd	24
	dd	3
	dd	_49
	dd	_50
	dd	28
	dd	3
	dd	_51
	dd	_50
	dd	32
	dd	3
	dd	_52
	dd	_50
	dd	36
	dd	3
	dd	_53
	dd	_45
	dd	40
	dd	3
	dd	_54
	dd	_45
	dd	44
	dd	3
	dd	_55
	dd	_50
	dd	48
	dd	6
	dd	_27
	dd	_28
	dd	16
	dd	6
	dd	_29
	dd	_28
	dd	20
	dd	0
	align	4
_bb_FontFadeEnt:
	dd	_bbObjectClass
	dd	_bbObjectFree
	dd	_40
	dd	52
	dd	__bb_FontFadeEnt_New
	dd	__bb_FontFadeEnt_Delete
	dd	_bbObjectToString
	dd	_bbObjectCompare
	dd	_bbObjectSendMessage
	dd	_bbObjectReserved
	dd	_bbObjectReserved
	dd	_bbObjectReserved
	align	4
_182:
	dd	0x3a83126f
