	format	MS COFF
	extrn	_AdjustWindowRect@12
	extrn	_CreateWindowExW@48
	extrn	_DefWindowProcW@16
	extrn	_DestroyWindow@4
	extrn	_GetClientRect@8
	extrn	_GetDesktopWindow@0
	extrn	_GetModuleHandleA@4
	extrn	_GetModuleHandleW@4
	extrn	_GetWindowRect@8
	extrn	_LoadCursorW@8
	extrn	_RegisterClassW@4
	extrn	___bb_blitz_blitz
	extrn	___bb_directx_directx
	extrn	___bb_graphics_graphics
	extrn	___bb_linkedlist_linkedlist
	extrn	__brl_graphics_TGraphicsDriver_Delete
	extrn	__brl_graphics_TGraphicsDriver_New
	extrn	__brl_graphics_TGraphics_Delete
	extrn	__brl_graphics_TGraphics_New
	extrn	__brl_graphics_TGraphics__pad
	extrn	_bbAppTitle
	extrn	_bbArrayNew1D
	extrn	_bbArraySlice
	extrn	_bbEmptyArray
	extrn	_bbExThrow
	extrn	_bbGCFree
	extrn	_bbIntMax
	extrn	_bbMemFree
	extrn	_bbNullObject
	extrn	_bbObjectClass
	extrn	_bbObjectCompare
	extrn	_bbObjectCtor
	extrn	_bbObjectDowncast
	extrn	_bbObjectFree
	extrn	_bbObjectNew
	extrn	_bbObjectRegisterType
	extrn	_bbObjectReserved
	extrn	_bbObjectSendMessage
	extrn	_bbObjectToString
	extrn	_bbStringClass
	extrn	_bbStringToWString
	extrn	_bbSystemEmitOSEvent
	extrn	_brl_blitz_DebugLog
	extrn	_brl_graphics_TGraphics
	extrn	_brl_graphics_TGraphicsDriver
	extrn	_brl_graphics_TGraphicsMode
	extrn	_brl_linkedlist_TList
	extrn	_pub_directx_D3DCAPS9
	extrn	_pub_directx_D3DDISPLAYMODE
	extrn	_pub_directx_D3DPRESENT_PARAMETERS
	extrn	_pub_directx_Direct3DCreate9
	extrn	_pub_directx_d3d9Lib
	extrn	_pub_win32_WNDCLASSW
	public	___bb_dxgraphics_d3d9graphics
	public	__brl_dxgraphics_TD3D9AutoRelease_Delete
	public	__brl_dxgraphics_TD3D9AutoRelease_New
	public	__brl_dxgraphics_TD3D9GraphicsDriver_AttachGraphics
	public	__brl_dxgraphics_TD3D9GraphicsDriver_Create
	public	__brl_dxgraphics_TD3D9GraphicsDriver_CreateGraphics
	public	__brl_dxgraphics_TD3D9GraphicsDriver_Delete
	public	__brl_dxgraphics_TD3D9GraphicsDriver_Flip
	public	__brl_dxgraphics_TD3D9GraphicsDriver_GetDirect3D
	public	__brl_dxgraphics_TD3D9GraphicsDriver_Graphics
	public	__brl_dxgraphics_TD3D9GraphicsDriver_GraphicsModes
	public	__brl_dxgraphics_TD3D9GraphicsDriver_New
	public	__brl_dxgraphics_TD3D9GraphicsDriver_SetGraphics
	public	__brl_dxgraphics_TD3D9Graphics_Attach
	public	__brl_dxgraphics_TD3D9Graphics_AutoRelease
	public	__brl_dxgraphics_TD3D9Graphics_Close
	public	__brl_dxgraphics_TD3D9Graphics_Create
	public	__brl_dxgraphics_TD3D9Graphics_Delete
	public	__brl_dxgraphics_TD3D9Graphics_Driver
	public	__brl_dxgraphics_TD3D9Graphics_Flip
	public	__brl_dxgraphics_TD3D9Graphics_GetDirect3DDevice
	public	__brl_dxgraphics_TD3D9Graphics_GetSettings
	public	__brl_dxgraphics_TD3D9Graphics_New
	public	__brl_dxgraphics_TD3D9Graphics_ReleaseNow
	public	__brl_dxgraphics_TD3D9Graphics_ValidateSize
	public	_brl_dxgraphics_D3D9GraphicsDriver
	public	_brl_dxgraphics_TD3D9Graphics
	public	_brl_dxgraphics_TD3D9GraphicsDriver
	public	_brl_dxgraphics_UseDX9RenderLagFix
	section	"code" code
___bb_dxgraphics_d3d9graphics:
	push	ebp
	mov	ebp,esp
	cmp	dword [_219],0
	je	_220
	mov	eax,0
	mov	esp,ebp
	pop	ebp
	ret
_220:
	mov	dword [_219],1
	call	___bb_blitz_blitz
	call	___bb_graphics_graphics
	call	___bb_directx_directx
	call	___bb_linkedlist_linkedlist
	push	_19
	call	_bbObjectRegisterType
	add	esp,4
	push	_brl_dxgraphics_TD3D9Graphics
	call	_bbObjectRegisterType
	add	esp,4
	push	_brl_dxgraphics_TD3D9GraphicsDriver
	call	_bbObjectRegisterType
	add	esp,4
	mov	eax,0
	jmp	_87
_87:
	mov	esp,ebp
	pop	ebp
	ret
__brl_dxgraphics_TD3D9AutoRelease_New:
	push	ebp
	mov	ebp,esp
	push	ebx
	mov	ebx,dword [ebp+8]
	push	ebx
	call	_bbObjectCtor
	add	esp,4
	mov	dword [ebx],_19
	mov	dword [ebx+8],0
	mov	eax,0
	jmp	_90
_90:
	pop	ebx
	mov	esp,ebp
	pop	ebp
	ret
__brl_dxgraphics_TD3D9AutoRelease_Delete:
	push	ebp
	mov	ebp,esp
_93:
	mov	eax,0
	jmp	_221
_221:
	mov	esp,ebp
	pop	ebp
	ret
_20:
	push	ebp
	mov	ebp,esp
	push	ebx
	push	esi
	push	edi
	mov	edi,dword [ebp+8]
	mov	esi,dword [ebp+12]
	mov	ebx,dword [ebp+16]
	push	_bbNullObject
	push	dword [ebp+20]
	push	ebx
	push	esi
	push	edi
	call	_bbSystemEmitOSEvent
	add	esp,20
	mov	eax,esi
	cmp	eax,16
	je	_224
	cmp	eax,260
	je	_225
	jmp	_223
_224:
	mov	eax,0
	jmp	_99
_225:
	cmp	ebx,115
	je	_226
	mov	eax,0
	jmp	_99
_226:
	jmp	_223
_223:
	push	dword [ebp+20]
	push	ebx
	push	esi
	push	edi
	call	_DefWindowProcW@16
	jmp	_99
_99:
	pop	edi
	pop	esi
	pop	ebx
	mov	esp,ebp
	pop	ebp
	ret	16
_21:
	push	ebp
	mov	ebp,esp
	sub	esp,4
	push	ebx
	push	esi
	push	edi
	mov	edi,dword [ebp+12]
	mov	edx,dword [ebp+20]
	cmp	dword [_214],0
	je	_227
	mov	eax,dword [_215]
	cmp	dword [eax+40],0
	jne	_228
	mov	eax,0
	jmp	_107
_228:
	cmp	edx,0
	je	_229
	mov	eax,0
	jmp	_107
_229:
	add	dword [_214],1
	mov	eax,1
	jmp	_107
_227:
	cmp	edx,0
	sete	al
	movzx	eax,al
	mov	esi,eax
	cmp	edx,0
	setne	al
	movzx	eax,al
	mov	ebx,eax
	push	_pub_directx_D3DPRESENT_PARAMETERS
	call	_bbObjectNew
	add	esp,4
	mov	dword [ebp-4],eax
	mov	eax,dword [ebp-4]
	mov	dword [eax+8],edi
	mov	edx,dword [ebp-4]
	mov	eax,dword [ebp+16]
	mov	dword [edx+12],eax
	mov	eax,dword [ebp-4]
	mov	dword [eax+20],1
	mov	edx,dword [ebp-4]
	mov	eax,ebx
	imul	eax,22
	mov	dword [edx+16],eax
	mov	eax,dword [ebp-4]
	mov	dword [eax+24],0
	mov	ecx,dword [ebp-4]
	mov	edx,ebx
	mov	eax,esi
	imul	eax,3
	add	edx,eax
	mov	dword [ecx+32],edx
	mov	edx,dword [ebp-4]
	mov	eax,dword [ebp+8]
	mov	dword [edx+36],eax
	mov	eax,dword [ebp-4]
	mov	dword [eax+40],esi
	mov	eax,dword [ebp-4]
	mov	dword [eax+52],1
	mov	edx,dword [ebp-4]
	mov	eax,dword [ebp+24]
	imul	eax,ebx
	mov	dword [edx+56],eax
	mov	eax,dword [ebp-4]
	mov	dword [eax+60],1
	mov	eax,dword [ebp+28]
	and	eax,8
	cmp	eax,0
	jne	_233
	mov	eax,dword [ebp+28]
	and	eax,16
_233:
	cmp	eax,0
	je	_235
	mov	eax,dword [ebp-4]
	mov	dword [eax+44],1
	mov	eax,dword [ebp+28]
	and	eax,16
	cmp	eax,0
	je	_236
	push	75
	call	_22
	add	esp,4
	cmp	eax,0
	jne	_237
	push	83
	call	_22
	add	esp,4
	cmp	eax,0
	jne	_238
	push	79
	call	_22
	add	esp,4
	cmp	eax,0
	jne	_239
	push	73
	call	_22
	add	esp,4
	cmp	eax,0
	jne	_240
	mov	eax,0
	jmp	_107
_240:
	mov	eax,dword [ebp-4]
	mov	dword [eax+48],73
_241:
	jmp	_242
_239:
	mov	eax,dword [ebp-4]
	mov	dword [eax+48],79
_242:
	jmp	_243
_238:
	mov	eax,dword [ebp-4]
	mov	dword [eax+48],83
_243:
	jmp	_244
_237:
	mov	eax,dword [ebp-4]
	mov	dword [eax+48],75
_244:
	jmp	_245
_236:
	push	71
	call	_22
	add	esp,4
	cmp	eax,0
	jne	_246
	push	77
	call	_22
	add	esp,4
	cmp	eax,0
	jne	_247
	push	80
	call	_22
	add	esp,4
	cmp	eax,0
	jne	_248
	mov	eax,0
	jmp	_107
_248:
	mov	eax,dword [ebp-4]
	mov	dword [eax+48],80
_249:
	jmp	_250
_247:
	mov	eax,dword [ebp-4]
	mov	dword [eax+48],77
_250:
	jmp	_251
_246:
	mov	eax,dword [ebp-4]
	mov	dword [eax+48],71
_251:
_245:
_235:
	mov	ebx,2
	mov	eax,ebx
	or	eax,80
	mov	edx,dword [_210]
	lea	ecx,dword [_213]
	push	ecx
	mov	ecx,dword [ebp-4]
	lea	ecx,dword [ecx+8]
	push	ecx
	push	eax
	push	dword [ebp+8]
	push	1
	push	0
	push	edx
	mov	eax,dword [edx]
	call	dword [eax+64]
	cmp	eax,0
	jge	_255
	mov	eax,ebx
	or	eax,128
	mov	edx,dword [_210]
	lea	ecx,dword [_213]
	push	ecx
	mov	ecx,dword [ebp-4]
	lea	ecx,dword [ecx+8]
	push	ecx
	push	eax
	push	dword [ebp+8]
	push	1
	push	0
	push	edx
	mov	eax,dword [edx]
	call	dword [eax+64]
	cmp	eax,0
	jge	_257
	or	ebx,32
	mov	eax,ebx
	mov	ecx,dword [_210]
	lea	edx,dword [_213]
	push	edx
	mov	edx,dword [ebp-4]
	lea	edx,dword [edx+8]
	push	edx
	push	eax
	push	dword [ebp+8]
	push	1
	push	0
	push	ecx
	mov	eax,dword [ecx]
	call	dword [eax+64]
	cmp	eax,0
	jge	_259
	mov	eax,0
	jmp	_107
_259:
_257:
_255:
	mov	ebx,dword [ebp-4]
	inc	dword [ebx+4]
	mov	eax,dword [_215]
	dec	dword [eax+4]
	jnz	_263
	push	eax
	call	_bbGCFree
	add	esp,4
_263:
	mov	dword [_215],ebx
	add	dword [_214],1
	push	_brl_linkedlist_TList
	call	_bbObjectNew
	add	esp,4
	mov	ebx,eax
	inc	dword [ebx+4]
	mov	eax,dword [_217]
	dec	dword [eax+4]
	jnz	_267
	push	eax
	call	_bbGCFree
	add	esp,4
_267:
	mov	dword [_217],ebx
	mov	eax,dword [_218]
	cmp	eax,0
	setne	al
	movzx	eax,al
	cmp	eax,0
	jne	_268
	mov	edx,dword [_213]
	lea	eax,dword [_218]
	push	eax
	push	9
	push	edx
	mov	eax,dword [edx]
	call	dword [eax+472]
	cmp	eax,0
	jge	_270
	push	_23
	call	_brl_blitz_DebugLog
	add	esp,4
_270:
_268:
	cmp	dword [_218],0
	je	_271
	mov	eax,dword [_218]
	push	2
	push	eax
	mov	eax,dword [eax]
	call	dword [eax+24]
_271:
	mov	eax,1
	jmp	_107
_107:
	pop	edi
	pop	esi
	pop	ebx
	mov	esp,ebp
	pop	ebp
	ret
_22:
	push	ebp
	mov	ebp,esp
	push	ebx
	push	esi
	push	edi
	mov	edx,dword [ebp+8]
	mov	eax,dword [_210]
	push	edx
	push	1
	push	2
	push	22
	push	1
	push	0
	push	eax
	mov	eax,dword [eax]
	call	dword [eax+40]
	cmp	eax,0
	sete	al
	movzx	eax,al
	jmp	_110
_110:
	pop	edi
	pop	esi
	pop	ebx
	mov	esp,ebp
	pop	ebp
	ret
_24:
	push	ebp
	mov	ebp,esp
	push	ebx
	push	esi
	push	edi
	sub	dword [_214],1
	cmp	dword [_214],0
	jne	_274
	mov	esi,dword [_217]
	push	esi
	mov	eax,dword [esi]
	call	dword [eax+140]
	add	esp,4
	mov	ebx,eax
	jmp	_25
_27:
	push	_19
	push	ebx
	mov	eax,dword [ebx]
	call	dword [eax+52]
	add	esp,4
	push	eax
	call	_bbObjectDowncast
	add	esp,8
	cmp	eax,_bbNullObject
	je	_25
	mov	eax,dword [eax+8]
	push	eax
	mov	eax,dword [eax]
	call	dword [eax+8]
_25:
	push	ebx
	mov	eax,dword [ebx]
	call	dword [eax+48]
	add	esp,4
	cmp	eax,0
	jne	_27
_26:
	mov	ebx,_bbNullObject
	inc	dword [ebx+4]
	mov	eax,dword [_217]
	dec	dword [eax+4]
	jnz	_285
	push	eax
	call	_bbGCFree
	add	esp,4
_285:
	mov	dword [_217],ebx
	cmp	dword [_218],0
	je	_286
	mov	eax,dword [_218]
	push	eax
	mov	eax,dword [eax]
	call	dword [eax+8]
_286:
	mov	dword [_218],0
	mov	eax,dword [_213]
	push	eax
	mov	eax,dword [eax]
	call	dword [eax+8]
	mov	dword [_213],0
	mov	ebx,_bbNullObject
	inc	dword [ebx+4]
	mov	eax,dword [_215]
	dec	dword [eax+4]
	jnz	_292
	push	eax
	call	_bbGCFree
	add	esp,4
_292:
	mov	dword [_215],ebx
_274:
	mov	eax,0
	jmp	_112
_112:
	pop	edi
	pop	esi
	pop	ebx
	mov	esp,ebp
	pop	ebp
	ret
_28:
	push	ebp
	mov	ebp,esp
	push	ebx
	push	esi
	push	edi
	cmp	dword [_218],0
	je	_293
	mov	eax,dword [_218]
	push	eax
	mov	eax,dword [eax]
	call	dword [eax+8]
_293:
	mov	edx,dword [_213]
	mov	eax,dword [_215]
	lea	eax,dword [eax+8]
	push	eax
	push	edx
	mov	eax,dword [edx]
	call	dword [eax+64]
	cmp	eax,0
	jge	_296
	push	_29
	call	_bbExThrow
	add	esp,4
_296:
	mov	edx,dword [_213]
	lea	eax,dword [_218]
	push	eax
	push	9
	push	edx
	mov	eax,dword [edx]
	call	dword [eax+472]
	cmp	eax,0
	jge	_298
	push	_23
	call	_brl_blitz_DebugLog
	add	esp,4
_298:
	cmp	dword [_218],0
	je	_299
	mov	eax,dword [_218]
	push	2
	push	eax
	mov	eax,dword [eax]
	call	dword [eax+24]
_299:
	mov	eax,0
	jmp	_114
_114:
	pop	edi
	pop	esi
	pop	ebx
	mov	esp,ebp
	pop	ebp
	ret
__brl_dxgraphics_TD3D9Graphics_New:
	push	ebp
	mov	ebp,esp
	push	ebx
	mov	ebx,dword [ebp+8]
	push	ebx
	call	__brl_graphics_TGraphics_New
	add	esp,4
	mov	dword [ebx],_brl_dxgraphics_TD3D9Graphics
	mov	dword [ebx+8],0
	mov	dword [ebx+12],0
	mov	dword [ebx+16],0
	mov	dword [ebx+20],0
	mov	dword [ebx+24],0
	mov	dword [ebx+28],0
	mov	dword [ebx+32],0
	mov	eax,0
	jmp	_117
_117:
	pop	ebx
	mov	esp,ebp
	pop	ebp
	ret
__brl_dxgraphics_TD3D9Graphics_Delete:
	push	ebp
	mov	ebp,esp
	mov	eax,dword [ebp+8]
_120:
	mov	dword [eax],_brl_graphics_TGraphics
	push	eax
	call	__brl_graphics_TGraphics_Delete
	add	esp,4
	mov	eax,0
	jmp	_301
_301:
	mov	esp,ebp
	pop	ebp
	ret
__brl_dxgraphics_TD3D9Graphics_Attach:
	push	ebp
	mov	ebp,esp
	sub	esp,12
	push	ebx
	push	esi
	push	edi
	mov	esi,dword [ebp+8]
	mov	ebx,dword [ebp+12]
	mov	edi,dword [ebp+16]
	push	4
	push	_302
	call	_bbArrayNew1D
	add	esp,8
	mov	dword [ebp-4],eax
	mov	eax,dword [ebp-4]
	lea	eax,dword [eax+24]
	push	eax
	push	ebx
	call	_GetClientRect@8
	mov	eax,dword [ebp-4]
	mov	edx,dword [eax+8+24]
	mov	eax,dword [ebp-4]
	sub	edx,dword [eax+24]
	mov	dword [ebp-12],edx
	mov	eax,dword [ebp-4]
	mov	edx,dword [eax+12+24]
	mov	eax,dword [ebp-4]
	sub	edx,dword [eax+4+24]
	mov	dword [ebp-8],edx
	push	edi
	push	0
	push	0
	push	dword [ebp-8]
	push	dword [ebp-12]
	push	ebx
	call	_21
	add	esp,24
	mov	dword [esi+8],ebx
	mov	eax,dword [ebp-12]
	mov	dword [esi+12],eax
	mov	eax,dword [ebp-8]
	mov	dword [esi+16],eax
	mov	dword [esi+28],edi
	mov	dword [esi+32],1
	mov	eax,esi
	jmp	_125
_125:
	pop	edi
	pop	esi
	pop	ebx
	mov	esp,ebp
	pop	ebp
	ret
__brl_dxgraphics_TD3D9Graphics_Create:
	push	ebp
	mov	ebp,esp
	sub	esp,8
	push	ebx
	push	esi
	push	edi
	cmp	dword [ebp+20],0
	je	_307
	mov	edi,-1879048192
	jmp	_308
_307:
	mov	edi,281673728
_308:
	push	4
	push	_309
	call	_bbArrayNew1D
	add	esp,8
	mov	dword [ebp-8],eax
	cmp	dword [ebp+20],0
	jne	_311
	push	4
	push	_312
	call	_bbArrayNew1D
	add	esp,8
	mov	dword [ebp-4],eax
	mov	eax,dword [ebp-4]
	lea	eax,dword [eax+24]
	push	eax
	call	_GetDesktopWindow@0
	push	eax
	call	_GetWindowRect@8
	mov	ebx,dword [ebp-8]
	mov	eax,dword [ebp-4]
	mov	eax,dword [eax+8+24]
	cdq
	and	edx,1
	add	eax,edx
	sar	eax,1
	mov	ecx,eax
	mov	eax,dword [ebp+12]
	cdq
	and	edx,1
	add	eax,edx
	sar	eax,1
	sub	ecx,eax
	mov	dword [ebx+24],ecx
	mov	ebx,dword [ebp-8]
	mov	eax,dword [ebp-4]
	mov	eax,dword [eax+12+24]
	cdq
	and	edx,1
	add	eax,edx
	sar	eax,1
	mov	ecx,eax
	mov	eax,dword [ebp+16]
	cdq
	and	edx,1
	add	eax,edx
	sar	eax,1
	sub	ecx,eax
	mov	dword [ebx+4+24],ecx
	mov	edx,dword [ebp-8]
	mov	eax,dword [ebp-8]
	mov	eax,dword [eax+24]
	add	eax,dword [ebp+12]
	mov	dword [edx+8+24],eax
	mov	edx,dword [ebp-8]
	mov	eax,dword [ebp-8]
	mov	eax,dword [eax+4+24]
	add	eax,dword [ebp+16]
	mov	dword [edx+12+24],eax
	push	0
	push	edi
	mov	eax,dword [ebp-8]
	lea	eax,dword [eax+24]
	push	eax
	call	_AdjustWindowRect@12
_311:
	push	dword [_208]
	call	_bbStringToWString
	add	esp,4
	mov	esi,eax
	push	dword [_bbAppTitle]
	call	_bbStringToWString
	add	esp,4
	mov	ebx,eax
	push	0
	push	0
	call	_GetModuleHandleA@4
	push	eax
	push	0
	push	0
	mov	eax,dword [ebp-8]
	mov	edx,dword [eax+12+24]
	mov	eax,dword [ebp-8]
	sub	edx,dword [eax+4+24]
	push	edx
	mov	eax,dword [ebp-8]
	mov	edx,dword [eax+8+24]
	mov	eax,dword [ebp-8]
	sub	edx,dword [eax+24]
	push	edx
	mov	eax,dword [ebp-8]
	push	dword [eax+4+24]
	mov	eax,dword [ebp-8]
	push	dword [eax+24]
	push	edi
	push	ebx
	push	esi
	push	0
	call	_CreateWindowExW@48
	mov	edi,eax
	push	esi
	call	_bbMemFree
	add	esp,4
	push	ebx
	call	_bbMemFree
	add	esp,4
	mov	ebx,edi
	cmp	ebx,0
	jne	_318
	mov	eax,_bbNullObject
	jmp	_133
_318:
	cmp	dword [ebp+20],0
	jne	_319
	mov	eax,dword [ebp-8]
	lea	eax,dword [eax+24]
	push	eax
	push	ebx
	call	_GetClientRect@8
	mov	eax,dword [ebp-8]
	mov	edx,dword [eax+8+24]
	mov	eax,dword [ebp-8]
	sub	edx,dword [eax+24]
	mov	dword [ebp+12],edx
	mov	eax,dword [ebp-8]
	mov	edx,dword [eax+12+24]
	mov	eax,dword [ebp-8]
	sub	edx,dword [eax+4+24]
	mov	dword [ebp+16],edx
_319:
	push	dword [ebp+28]
	push	dword [ebp+24]
	push	dword [ebp+20]
	push	dword [ebp+16]
	push	dword [ebp+12]
	push	ebx
	call	_21
	add	esp,24
	cmp	eax,0
	jne	_320
	push	ebx
	call	_DestroyWindow@4
	mov	eax,_bbNullObject
	jmp	_133
_320:
	mov	eax,dword [ebp+8]
	mov	dword [eax+8],ebx
	mov	edx,dword [ebp+8]
	mov	eax,dword [ebp+12]
	mov	dword [edx+12],eax
	mov	edx,dword [ebp+8]
	mov	eax,dword [ebp+16]
	mov	dword [edx+16],eax
	mov	edx,dword [ebp+8]
	mov	eax,dword [ebp+20]
	mov	dword [edx+20],eax
	mov	edx,dword [ebp+8]
	mov	eax,dword [ebp+24]
	mov	dword [edx+24],eax
	mov	edx,dword [ebp+8]
	mov	eax,dword [ebp+28]
	mov	dword [edx+28],eax
	mov	eax,dword [ebp+8]
	jmp	_133
_133:
	pop	edi
	pop	esi
	pop	ebx
	mov	esp,ebp
	pop	ebp
	ret
__brl_dxgraphics_TD3D9Graphics_GetDirect3DDevice:
	push	ebp
	mov	ebp,esp
	mov	eax,dword [_213]
	jmp	_136
_136:
	mov	esp,ebp
	pop	ebp
	ret
__brl_dxgraphics_TD3D9Graphics_ValidateSize:
	push	ebp
	mov	ebp,esp
	sub	esp,4
	push	ebx
	push	esi
	push	edi
	mov	esi,dword [ebp+8]
	cmp	dword [esi+32],0
	je	_321
	push	4
	push	_322
	call	_bbArrayNew1D
	add	esp,8
	mov	dword [ebp-4],eax
	mov	eax,dword [ebp-4]
	lea	eax,dword [eax+24]
	push	eax
	push	dword [esi+8]
	call	_GetClientRect@8
	mov	eax,dword [ebp-4]
	mov	edx,dword [eax+8+24]
	mov	eax,dword [ebp-4]
	sub	edx,dword [eax+24]
	mov	dword [esi+12],edx
	mov	eax,dword [ebp-4]
	mov	edx,dword [eax+12+24]
	mov	eax,dword [ebp-4]
	sub	edx,dword [eax+4+24]
	mov	dword [esi+16],edx
	mov	edx,dword [esi+12]
	mov	eax,dword [_215]
	cmp	edx,dword [eax+8]
	setg	al
	movzx	eax,al
	cmp	eax,0
	jne	_324
	mov	edx,dword [esi+16]
	mov	eax,dword [_215]
	cmp	edx,dword [eax+12]
	setg	al
	movzx	eax,al
_324:
	cmp	eax,0
	je	_326
	mov	ebx,dword [_215]
	mov	eax,dword [_215]
	push	dword [eax+8]
	push	dword [esi+12]
	call	_bbIntMax
	add	esp,8
	mov	dword [ebx+8],eax
	mov	ebx,dword [_215]
	mov	eax,dword [_215]
	push	dword [eax+12]
	push	dword [esi+16]
	call	_bbIntMax
	add	esp,8
	mov	dword [ebx+12],eax
	call	_28
_326:
_321:
	mov	eax,0
	jmp	_139
_139:
	pop	edi
	pop	esi
	pop	ebx
	mov	esp,ebp
	pop	ebp
	ret
__brl_dxgraphics_TD3D9Graphics_Flip:
	push	ebp
	mov	ebp,esp
	sub	esp,4
	push	ebx
	push	esi
	push	edi
	mov	ebx,dword [ebp+8]
	mov	edx,dword [ebp+12]
	mov	esi,0
	cmp	edx,0
	je	_328
	mov	edx,1
	jmp	_329
_328:
	mov	edx,-2147483648
_329:
	mov	eax,dword [_215]
	cmp	edx,dword [eax+60]
	je	_330
	mov	eax,dword [_215]
	mov	dword [eax+60],edx
	mov	esi,1
_330:
	mov	eax,dword [_213]
	push	eax
	mov	eax,dword [eax]
	call	dword [eax+12]
	cmp	eax,-2005530585
	je	_334
	cmp	eax,0
	je	_335
	cmp	eax,-2005530519
	je	_336
	jmp	_333
_334:
	push	_30
	call	_bbExThrow
	add	esp,4
	jmp	_333
_335:
	cmp	esi,0
	je	_337
	call	_28
	jmp	_338
_337:
	cmp	dword [ebx+32],0
	je	_339
	push	4
	push	_50
	call	_bbArrayNew1D
	add	esp,8
	mov	dword [eax+24],0
	mov	dword [eax+28],0
	mov	edx,dword [ebx+12]
	mov	dword [eax+32],edx
	mov	edx,dword [ebx+16]
	mov	dword [eax+36],edx
	mov	dword [ebp-4],eax
	mov	eax,dword [_213]
	push	0
	push	dword [ebx+8]
	mov	edx,dword [ebp-4]
	lea	edx,byte [edx+24]
	push	edx
	mov	edx,dword [ebp-4]
	lea	edx,byte [edx+24]
	push	edx
	push	eax
	mov	eax,dword [eax]
	call	dword [eax+68]
	cmp	eax,0
	setge	al
	movzx	eax,al
	jmp	_143
_339:
	mov	eax,dword [_213]
	push	0
	push	dword [ebx+8]
	push	0
	push	0
	push	eax
	mov	eax,dword [eax]
	call	dword [eax+68]
	cmp	eax,0
	setge	al
	movzx	eax,al
	jmp	_143
_338:
	jmp	_333
_336:
	call	_28
	jmp	_333
_333:
	mov	eax,0
	jmp	_143
_143:
	pop	edi
	pop	esi
	pop	ebx
	mov	esp,ebp
	pop	ebp
	ret
__brl_dxgraphics_TD3D9Graphics_Driver:
	push	ebp
	mov	ebp,esp
	mov	eax,dword [_209]
	jmp	_146
_146:
	mov	esp,ebp
	pop	ebp
	ret
__brl_dxgraphics_TD3D9Graphics_GetSettings:
	push	ebp
	mov	ebp,esp
	push	ebx
	push	esi
	push	edi
	mov	esi,dword [ebp+8]
	mov	ebx,dword [ebp+12]
	mov	edi,dword [ebp+16]
	mov	eax,esi
	push	eax
	mov	eax,dword [eax]
	call	dword [eax+76]
	add	esp,4
	mov	eax,dword [esi+12]
	mov	dword [ebx],eax
	mov	eax,dword [esi+16]
	mov	dword [edi],eax
	mov	edx,dword [esi+20]
	mov	eax,dword [ebp+20]
	mov	dword [eax],edx
	mov	edx,dword [esi+24]
	mov	eax,dword [ebp+24]
	mov	dword [eax],edx
	mov	edx,dword [esi+28]
	mov	eax,dword [ebp+28]
	mov	dword [eax],edx
	mov	eax,0
	jmp	_154
_154:
	pop	edi
	pop	esi
	pop	ebx
	mov	esp,ebp
	pop	ebp
	ret
__brl_dxgraphics_TD3D9Graphics_Close:
	push	ebp
	mov	ebp,esp
	push	ebx
	push	esi
	push	edi
	mov	ebx,dword [ebp+8]
	cmp	dword [ebx+8],0
	jne	_346
	mov	eax,0
	jmp	_157
_346:
	call	_24
	cmp	dword [ebx+32],0
	jne	_347
	push	dword [ebx+8]
	call	_DestroyWindow@4
_347:
	mov	dword [ebx+8],0
	mov	eax,0
	jmp	_157
_157:
	pop	edi
	pop	esi
	pop	ebx
	mov	esp,ebp
	pop	ebp
	ret
__brl_dxgraphics_TD3D9Graphics_AutoRelease:
	push	ebp
	mov	ebp,esp
	push	ebx
	mov	ebx,dword [ebp+12]
	push	_19
	call	_bbObjectNew
	add	esp,4
	mov	dword [eax+8],ebx
	mov	edx,dword [_217]
	push	eax
	push	edx
	mov	eax,dword [edx]
	call	dword [eax+68]
	add	esp,8
	mov	eax,0
	jmp	_161
_161:
	pop	ebx
	mov	esp,ebp
	pop	ebp
	ret
__brl_dxgraphics_TD3D9Graphics_ReleaseNow:
	push	ebp
	mov	ebp,esp
	push	ebx
	push	esi
	push	edi
	mov	ebx,dword [_217]
	mov	eax,ebx
	push	eax
	mov	eax,dword [eax]
	call	dword [eax+140]
	add	esp,4
	mov	edi,eax
	jmp	_31
_33:
	mov	eax,edi
	push	_19
	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	_31
	mov	eax,dword [ebp+12]
	cmp	dword [esi+8],eax
	jne	_356
	mov	eax,dword [ebp+12]
	push	eax
	mov	eax,dword [eax]
	call	dword [eax+8]
	mov	eax,dword [_217]
	push	esi
	push	eax
	mov	eax,dword [eax]
	call	dword [eax+116]
	add	esp,8
	mov	eax,0
	jmp	_165
_356:
_31:
	mov	eax,edi
	push	eax
	mov	eax,dword [eax]
	call	dword [eax+48]
	add	esp,4
	cmp	eax,0
	jne	_33
_32:
	mov	eax,0
	jmp	_165
_165:
	pop	edi
	pop	esi
	pop	ebx
	mov	esp,ebp
	pop	ebp
	ret
__brl_dxgraphics_TD3D9GraphicsDriver_New:
	push	ebp
	mov	ebp,esp
	push	ebx
	mov	ebx,dword [ebp+8]
	push	ebx
	call	__brl_graphics_TGraphicsDriver_New
	add	esp,4
	mov	dword [ebx],_brl_dxgraphics_TD3D9GraphicsDriver
	mov	eax,0
	jmp	_168
_168:
	pop	ebx
	mov	esp,ebp
	pop	ebp
	ret
__brl_dxgraphics_TD3D9GraphicsDriver_Delete:
	push	ebp
	mov	ebp,esp
	mov	eax,dword [ebp+8]
_171:
	mov	dword [eax],_brl_graphics_TGraphicsDriver
	push	eax
	call	__brl_graphics_TGraphicsDriver_Delete
	add	esp,4
	mov	eax,0
	jmp	_359
_359:
	mov	esp,ebp
	pop	ebp
	ret
__brl_dxgraphics_TD3D9GraphicsDriver_Create:
	push	ebp
	mov	ebp,esp
	sub	esp,12
	push	ebx
	push	esi
	push	edi
	cmp	dword [_pub_directx_d3d9Lib],0
	jne	_360
	mov	eax,_bbNullObject
	jmp	_174
_360:
	push	32
	call	dword [_pub_directx_Direct3DCreate9]
	mov	dword [_210],eax
	mov	eax,dword [_210]
	cmp	eax,0
	setne	al
	movzx	eax,al
	cmp	eax,0
	jne	_361
	mov	eax,_bbNullObject
	jmp	_174
_361:
	push	_pub_directx_D3DCAPS9
	call	_bbObjectNew
	add	esp,4
	mov	ebx,eax
	inc	dword [ebx+4]
	mov	eax,dword [_211]
	dec	dword [eax+4]
	jnz	_365
	push	eax
	call	_bbGCFree
	add	esp,4
_365:
	mov	dword [_211],ebx
	mov	edx,dword [_210]
	mov	eax,dword [_211]
	lea	eax,dword [eax+8]
	push	eax
	push	1
	push	0
	push	edx
	mov	eax,dword [edx]
	call	dword [eax+56]
	cmp	eax,0
	jge	_367
	mov	eax,dword [_210]
	push	eax
	mov	eax,dword [eax]
	call	dword [eax+8]
	mov	dword [_210],0
	mov	eax,_bbNullObject
	jmp	_174
_367:
	mov	eax,dword [_210]
	push	22
	push	0
	push	eax
	mov	eax,dword [eax]
	call	dword [eax+24]
	mov	ebx,eax
	push	ebx
	push	_371
	call	_bbArrayNew1D
	add	esp,8
	mov	esi,eax
	inc	dword [esi+4]
	mov	eax,dword [_212]
	dec	dword [eax+4]
	jnz	_375
	push	eax
	call	_bbGCFree
	add	esp,4
_375:
	mov	dword [_212],esi
	mov	esi,0
	mov	edi,0
	mov	dword [ebp-12],ebx
	jmp	_378
_36:
	push	_pub_directx_D3DDISPLAYMODE
	call	_bbObjectNew
	add	esp,4
	mov	dword [ebp-4],eax
	mov	edx,dword [_210]
	mov	eax,dword [ebp-4]
	lea	eax,dword [eax+8]
	push	eax
	push	edi
	push	22
	push	0
	push	edx
	mov	eax,dword [edx]
	call	dword [eax+28]
	cmp	eax,0
	jge	_382
	jmp	_34
_382:
	push	_brl_graphics_TGraphicsMode
	call	_bbObjectNew
	add	esp,4
	mov	edx,dword [ebp-4]
	mov	edx,dword [edx+8]
	mov	dword [eax+8],edx
	mov	edx,dword [ebp-4]
	mov	edx,dword [edx+12]
	mov	dword [eax+12],edx
	mov	edx,dword [ebp-4]
	mov	edx,dword [edx+16]
	mov	dword [eax+20],edx
	mov	dword [eax+16],32
	inc	dword [eax+4]
	mov	ebx,eax
	mov	eax,dword [_212]
	mov	eax,dword [eax+esi*4+24]
	dec	dword [eax+4]
	jnz	_387
	push	eax
	call	_bbGCFree
	add	esp,4
_387:
	mov	eax,dword [_212]
	mov	dword [eax+esi*4+24],ebx
	add	esi,1
_34:
	add	edi,1
_378:
	cmp	edi,dword [ebp-12]
	jl	_36
_35:
	push	esi
	push	0
	push	dword [_212]
	push	_388
	call	_bbArraySlice
	add	esp,16
	mov	ebx,eax
	inc	dword [ebx+4]
	mov	eax,dword [_212]
	dec	dword [eax+4]
	jnz	_392
	push	eax
	call	_bbGCFree
	add	esp,4
_392:
	mov	dword [_212],ebx
	push	_pub_win32_WNDCLASSW
	call	_bbObjectNew
	add	esp,4
	mov	dword [ebp-8],eax
	mov	ebx,dword [ebp-8]
	push	0
	call	_GetModuleHandleW@4
	mov	dword [ebx+24],eax
	mov	eax,dword [ebp-8]
	mov	dword [eax+12],_20
	mov	ebx,dword [ebp-8]
	mov	eax,32512
	push	eax
	push	0
	call	_LoadCursorW@8
	mov	dword [ebx+32],eax
	mov	ebx,dword [ebp-8]
	push	dword [_208]
	call	_bbStringToWString
	add	esp,4
	mov	dword [ebx+44],eax
	mov	eax,dword [ebp-8]
	lea	eax,dword [eax+8]
	push	eax
	call	_RegisterClassW@4
	mov	eax,dword [ebp-8]
	push	dword [eax+44]
	call	_bbMemFree
	add	esp,4
	mov	eax,dword [ebp+8]
	jmp	_174
_174:
	pop	edi
	pop	esi
	pop	ebx
	mov	esp,ebp
	pop	ebp
	ret
__brl_dxgraphics_TD3D9GraphicsDriver_GraphicsModes:
	push	ebp
	mov	ebp,esp
	mov	eax,dword [_212]
	jmp	_177
_177:
	mov	esp,ebp
	pop	ebp
	ret
__brl_dxgraphics_TD3D9GraphicsDriver_AttachGraphics:
	push	ebp
	mov	ebp,esp
	push	ebx
	push	esi
	mov	esi,dword [ebp+12]
	mov	ebx,dword [ebp+16]
	push	_brl_dxgraphics_TD3D9Graphics
	call	_bbObjectNew
	add	esp,4
	push	ebx
	push	esi
	push	eax
	mov	eax,dword [eax]
	call	dword [eax+64]
	add	esp,12
	jmp	_182
_182:
	pop	esi
	pop	ebx
	mov	esp,ebp
	pop	ebp
	ret
__brl_dxgraphics_TD3D9GraphicsDriver_CreateGraphics:
	push	ebp
	mov	ebp,esp
	push	ebx
	push	esi
	push	edi
	mov	esi,dword [ebp+12]
	mov	ebx,dword [ebp+16]
	mov	edi,dword [ebp+20]
	push	_brl_dxgraphics_TD3D9Graphics
	call	_bbObjectNew
	add	esp,4
	push	dword [ebp+28]
	push	dword [ebp+24]
	push	edi
	push	ebx
	push	esi
	push	eax
	mov	eax,dword [eax]
	call	dword [eax+68]
	add	esp,24
	jmp	_190
_190:
	pop	edi
	pop	esi
	pop	ebx
	mov	esp,ebp
	pop	ebp
	ret
__brl_dxgraphics_TD3D9GraphicsDriver_Graphics:
	push	ebp
	mov	ebp,esp
	mov	eax,dword [_216]
	jmp	_193
_193:
	mov	esp,ebp
	pop	ebp
	ret
__brl_dxgraphics_TD3D9GraphicsDriver_SetGraphics:
	push	ebp
	mov	ebp,esp
	push	ebx
	mov	eax,dword [ebp+12]
	push	_brl_dxgraphics_TD3D9Graphics
	push	eax
	call	_bbObjectDowncast
	add	esp,8
	inc	dword [eax+4]
	mov	ebx,eax
	mov	eax,dword [_216]
	dec	dword [eax+4]
	jnz	_399
	push	eax
	call	_bbGCFree
	add	esp,4
_399:
	mov	dword [_216],ebx
	mov	eax,0
	jmp	_197
_197:
	pop	ebx
	mov	esp,ebp
	pop	ebp
	ret
__brl_dxgraphics_TD3D9GraphicsDriver_Flip:
	push	ebp
	mov	ebp,esp
	sub	esp,4
	push	ebx
	push	esi
	push	edi
	mov	edx,dword [ebp+12]
	mov	eax,dword [_216]
	push	edx
	push	eax
	mov	eax,dword [eax]
	call	dword [eax+80]
	add	esp,8
	mov	ebx,eax
	cmp	dword [_brl_dxgraphics_UseDX9RenderLagFix],0
	je	_402
	mov	dword [ebp-4],0
	cmp	dword [_218],0
	je	_404
	mov	eax,dword [_218]
	push	1
	push	eax
	mov	eax,dword [eax]
	call	dword [eax+24]
	jmp	_37
_39:
	mov	edx,dword [_218]
	push	1
	push	4
	lea	eax,dword [ebp-4]
	push	eax
	push	edx
	mov	eax,dword [edx]
	call	dword [eax+28]
	cmp	eax,0
	jge	_408
	jmp	_38
_408:
_37:
	mov	edx,dword [_218]
	push	1
	push	4
	lea	eax,dword [ebp-4]
	push	eax
	push	edx
	mov	eax,dword [edx]
	call	dword [eax+28]
	cmp	eax,1
	je	_39
_38:
	mov	eax,dword [_218]
	push	2
	push	eax
	mov	eax,dword [eax]
	call	dword [eax+24]
_404:
_402:
	mov	eax,ebx
	jmp	_201
_201:
	pop	edi
	pop	esi
	pop	ebx
	mov	esp,ebp
	pop	ebp
	ret
__brl_dxgraphics_TD3D9GraphicsDriver_GetDirect3D:
	push	ebp
	mov	ebp,esp
	mov	eax,dword [_210]
	jmp	_204
_204:
	mov	esp,ebp
	pop	ebp
	ret
_brl_dxgraphics_D3D9GraphicsDriver:
	push	ebp
	mov	ebp,esp
	push	ebx
	cmp	dword [_410],0
	jne	_411
	push	_brl_dxgraphics_TD3D9GraphicsDriver
	call	_bbObjectNew
	add	esp,4
	push	eax
	mov	eax,dword [eax]
	call	dword [eax+68]
	add	esp,4
	inc	dword [eax+4]
	mov	ebx,eax
	mov	eax,dword [_209]
	dec	dword [eax+4]
	jnz	_416
	push	eax
	call	_bbGCFree
	add	esp,4
_416:
	mov	dword [_209],ebx
	mov	dword [_410],1
_411:
	mov	eax,dword [_209]
	jmp	_206
_206:
	pop	ebx
	mov	esp,ebp
	pop	ebp
	ret
	section	"data" data writeable align 8
	align	4
_219:
	dd	0
_41:
	db	"TD3D9AutoRelease",0
_42:
	db	"unk",0
_43:
	db	"?IUnknown",0
_44:
	db	"New",0
_45:
	db	"()i",0
_46:
	db	"Delete",0
	align	4
_40:
	dd	2
	dd	_41
	dd	3
	dd	_42
	dd	_43
	dd	8
	dd	6
	dd	_44
	dd	_45
	dd	16
	dd	6
	dd	_46
	dd	_45
	dd	20
	dd	0
	align	4
_19:
	dd	_bbObjectClass
	dd	_bbObjectFree
	dd	_40
	dd	12
	dd	__brl_dxgraphics_TD3D9AutoRelease_New
	dd	__brl_dxgraphics_TD3D9AutoRelease_Delete
	dd	_bbObjectToString
	dd	_bbObjectCompare
	dd	_bbObjectSendMessage
	dd	_bbObjectReserved
	dd	_bbObjectReserved
	dd	_bbObjectReserved
_48:
	db	"TD3D9Graphics",0
_49:
	db	"_hwnd",0
_50:
	db	"i",0
_51:
	db	"_width",0
_52:
	db	"_height",0
_53:
	db	"_depth",0
_54:
	db	"_hertz",0
_55:
	db	"_flags",0
_56:
	db	"_attached",0
_57:
	db	"Attach",0
_58:
	db	"(i,i):TD3D9Graphics",0
_59:
	db	"Create",0
_60:
	db	"(i,i,i,i,i):TD3D9Graphics",0
_61:
	db	"GetDirect3DDevice",0
_62:
	db	"():IDirect3DDevice9",0
_63:
	db	"ValidateSize",0
_64:
	db	"Flip",0
_65:
	db	"(i)i",0
_66:
	db	"Driver",0
_67:
	db	"():TGraphicsDriver",0
_68:
	db	"GetSettings",0
_69:
	db	"(*i,*i,*i,*i,*i)i",0
_70:
	db	"Close",0
_71:
	db	"AutoRelease",0
_72:
	db	"(:IUnknown)i",0
_73:
	db	"ReleaseNow",0
	align	4
_47:
	dd	2
	dd	_48
	dd	3
	dd	_49
	dd	_50
	dd	8
	dd	3
	dd	_51
	dd	_50
	dd	12
	dd	3
	dd	_52
	dd	_50
	dd	16
	dd	3
	dd	_53
	dd	_50
	dd	20
	dd	3
	dd	_54
	dd	_50
	dd	24
	dd	3
	dd	_55
	dd	_50
	dd	28
	dd	3
	dd	_56
	dd	_50
	dd	32
	dd	6
	dd	_44
	dd	_45
	dd	16
	dd	6
	dd	_46
	dd	_45
	dd	20
	dd	6
	dd	_57
	dd	_58
	dd	64
	dd	6
	dd	_59
	dd	_60
	dd	68
	dd	6
	dd	_61
	dd	_62
	dd	72
	dd	6
	dd	_63
	dd	_45
	dd	76
	dd	6
	dd	_64
	dd	_65
	dd	80
	dd	6
	dd	_66
	dd	_67
	dd	52
	dd	6
	dd	_68
	dd	_69
	dd	56
	dd	6
	dd	_70
	dd	_45
	dd	60
	dd	6
	dd	_71
	dd	_72
	dd	84
	dd	6
	dd	_73
	dd	_72
	dd	88
	dd	0
	align	4
_brl_dxgraphics_TD3D9Graphics:
	dd	_brl_graphics_TGraphics
	dd	_bbObjectFree
	dd	_47
	dd	36
	dd	__brl_dxgraphics_TD3D9Graphics_New
	dd	__brl_dxgraphics_TD3D9Graphics_Delete
	dd	_bbObjectToString
	dd	_bbObjectCompare
	dd	_bbObjectSendMessage
	dd	_bbObjectReserved
	dd	_bbObjectReserved
	dd	_bbObjectReserved
	dd	__brl_graphics_TGraphics__pad
	dd	__brl_dxgraphics_TD3D9Graphics_Driver
	dd	__brl_dxgraphics_TD3D9Graphics_GetSettings
	dd	__brl_dxgraphics_TD3D9Graphics_Close
	dd	__brl_dxgraphics_TD3D9Graphics_Attach
	dd	__brl_dxgraphics_TD3D9Graphics_Create
	dd	__brl_dxgraphics_TD3D9Graphics_GetDirect3DDevice
	dd	__brl_dxgraphics_TD3D9Graphics_ValidateSize
	dd	__brl_dxgraphics_TD3D9Graphics_Flip
	dd	__brl_dxgraphics_TD3D9Graphics_AutoRelease
	dd	__brl_dxgraphics_TD3D9Graphics_ReleaseNow
_75:
	db	"TD3D9GraphicsDriver",0
_76:
	db	"():TD3D9GraphicsDriver",0
_77:
	db	"GraphicsModes",0
_78:
	db	"()[]:TGraphicsMode",0
_79:
	db	"AttachGraphics",0
_80:
	db	"CreateGraphics",0
_81:
	db	"Graphics",0
_82:
	db	"():TD3D9Graphics",0
_83:
	db	"SetGraphics",0
_84:
	db	"(:TGraphics)i",0
_85:
	db	"GetDirect3D",0
_86:
	db	"():IDirect3D9",0
	align	4
_74:
	dd	2
	dd	_75
	dd	6
	dd	_44
	dd	_45
	dd	16
	dd	6
	dd	_46
	dd	_45
	dd	20
	dd	6
	dd	_59
	dd	_76
	dd	68
	dd	6
	dd	_77
	dd	_78
	dd	48
	dd	6
	dd	_79
	dd	_58
	dd	52
	dd	6
	dd	_80
	dd	_60
	dd	56
	dd	6
	dd	_81
	dd	_82
	dd	72
	dd	6
	dd	_83
	dd	_84
	dd	60
	dd	6
	dd	_64
	dd	_65
	dd	64
	dd	6
	dd	_85
	dd	_86
	dd	76
	dd	0
	align	4
_brl_dxgraphics_TD3D9GraphicsDriver:
	dd	_brl_graphics_TGraphicsDriver
	dd	_bbObjectFree
	dd	_74
	dd	8
	dd	__brl_dxgraphics_TD3D9GraphicsDriver_New
	dd	__brl_dxgraphics_TD3D9GraphicsDriver_Delete
	dd	_bbObjectToString
	dd	_bbObjectCompare
	dd	_bbObjectSendMessage
	dd	_bbObjectReserved
	dd	_bbObjectReserved
	dd	_bbObjectReserved
	dd	__brl_dxgraphics_TD3D9GraphicsDriver_GraphicsModes
	dd	__brl_dxgraphics_TD3D9GraphicsDriver_AttachGraphics
	dd	__brl_dxgraphics_TD3D9GraphicsDriver_CreateGraphics
	dd	__brl_dxgraphics_TD3D9GraphicsDriver_SetGraphics
	dd	__brl_dxgraphics_TD3D9GraphicsDriver_Flip
	dd	__brl_dxgraphics_TD3D9GraphicsDriver_Create
	dd	__brl_dxgraphics_TD3D9GraphicsDriver_Graphics
	dd	__brl_dxgraphics_TD3D9GraphicsDriver_GetDirect3D
	align	4
_18:
	dd	_bbStringClass
	dd	2147483647
	dd	24
	dw	66,66,68,88,57,68,101,118,105,99,101,32,87,105,110,100
	dw	111,119,32,67,108,97,115,115
	align	4
_208:
	dd	_18
	align	4
_209:
	dd	_bbNullObject
	align	4
_210:
	dd	0
	align	4
_211:
	dd	_bbNullObject
	align	4
_212:
	dd	_bbEmptyArray
	align	4
_213:
	dd	0
	align	4
_214:
	dd	0
	align	4
_215:
	dd	_bbNullObject
	align	4
_216:
	dd	_bbNullObject
	align	4
_217:
	dd	_bbNullObject
	align	4
_218:
	dd	0
	align	4
_brl_dxgraphics_UseDX9RenderLagFix:
	dd	0
	align	4
_23:
	dd	_bbStringClass
	dd	2147483647
	dd	31
	dw	67,97,110,110,111,116,32,99,114,101,97,116,101,32,79,99
	dw	99,108,117,115,115,105,111,110,32,81,117,101,114,121,33
	align	4
_29:
	dd	_bbStringClass
	dd	2147483647
	dd	20
	dw	95,100,51,100,68,101,118,46,82,101,115,101,116,32,102,97
	dw	105,108,101,100
_302:
	db	"i",0
_309:
	db	"i",0
_312:
	db	"i",0
_322:
	db	"i",0
	align	4
_30:
	dd	_bbStringClass
	dd	2147483647
	dd	18
	dw	68,51,68,32,73,110,116,101,114,110,97,108,32,69,114,114
	dw	111,114
_371:
	db	":TGraphicsMode",0
_388:
	db	":TGraphicsMode",0
	align	4
_410:
	dd	0
