	format	MS COFF
	extrn	___bb_blitz_blitz
	extrn	___bb_d3d11graphics_d3d11graphics
	extrn	___bb_max2d_max2d
	extrn	___bb_textstream_textstream
	extrn	__brl_max2d_TImageFrame_Delete
	extrn	__brl_max2d_TImageFrame_New
	extrn	__brl_max2d_TMax2DDriver_Delete
	extrn	__brl_max2d_TMax2DDriver_New
	extrn	_bbArrayNew1D
	extrn	_bbArraySlice
	extrn	_bbCeil
	extrn	_bbCos
	extrn	_bbEmptyArray
	extrn	_bbEmptyString
	extrn	_bbEnd
	extrn	_bbExThrow
	extrn	_bbFloatAbs
	extrn	_bbFloatMax
	extrn	_bbFloatMin
	extrn	_bbFloatMod
	extrn	_bbFloatToInt
	extrn	_bbFloor
	extrn	_bbGCCollect
	extrn	_bbGCFree
	extrn	_bbIncbinAdd
	extrn	_bbIntMax
	extrn	_bbIntMin
	extrn	_bbMemCopy
	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	_bbSin
	extrn	_bbStringClass
	extrn	_bbStringCompare
	extrn	_bbStringConcat
	extrn	_bbStringFromCString
	extrn	_bbStringFromInt
	extrn	_bbStringSlice
	extrn	_bbStringToCString
	extrn	_bbWriteStdout
	extrn	_brl_graphics_GetGraphicsDriver
	extrn	_brl_graphics_GraphicsHeight
	extrn	_brl_graphics_GraphicsSeq
	extrn	_brl_graphics_GraphicsWidth
	extrn	_brl_linkedlist_TList
	extrn	_brl_max2d_SetRotation
	extrn	_brl_max2d_SetScale
	extrn	_brl_max2d_TImageFrame
	extrn	_brl_max2d_TMax2DDriver
	extrn	_brl_max2d_TMax2DGraphics
	extrn	_brl_max2d__max2dDriver
	extrn	_brl_pixmap_ConvertPixmap
	extrn	_brl_pixmap_CreatePixmap
	extrn	_brl_pixmap_ResizePixmap
	extrn	_brl_system_Notify
	extrn	_brl_textstream_LoadText
	extrn	_srs_d3d11graphics_D3D11GetFeatureLevel
	extrn	_srs_d3d11graphics_D3D11GraphicsDriver
	extrn	_srs_d3d11graphics_TD3D11Graphics
	extrn	_srs_directx11_D3D11CalcSubresource
	extrn	_srs_directx11_D3D11_BLEND_DESC
	extrn	_srs_directx11_D3D11_BUFFER_DESC
	extrn	_srs_directx11_D3D11_DEPTH_STENCIL_DESC
	extrn	_srs_directx11_D3D11_MAPPED_SUBRESOURCE
	extrn	_srs_directx11_D3D11_RASTERIZER_DESC
	extrn	_srs_directx11_D3D11_SAMPLER_DESC
	extrn	_srs_directx11_D3D11_SHADER_RESOURCE_VIEW_DESC
	extrn	_srs_directx11_D3D11_SUBRESOURCE_DATA
	extrn	_srs_directx11_D3D11_TEXTURE2D_DESC
	extrn	_srs_directx11_D3DCompile
	public	___bb_d3d11max2d_d3d11max2d
	public	__srs_d3d11max2d_TBatchImageGlobals_Delete
	public	__srs_d3d11max2d_TBatchImageGlobals_FreeResources
	public	__srs_d3d11max2d_TBatchImageGlobals_New
	public	__srs_d3d11max2d_TBatchImage_Create
	public	__srs_d3d11max2d_TBatchImage_Delete
	public	__srs_d3d11max2d_TBatchImage_Destroy
	public	__srs_d3d11max2d_TBatchImage_Draw
	public	__srs_d3d11max2d_TBatchImage_New
	public	__srs_d3d11max2d_TBatchImage_Update
	public	__srs_d3d11max2d_TD3D11ImageFrame_Create
	public	__srs_d3d11max2d_TD3D11ImageFrame_Delete
	public	__srs_d3d11max2d_TD3D11ImageFrame_Destroy
	public	__srs_d3d11max2d_TD3D11ImageFrame_Draw
	public	__srs_d3d11max2d_TD3D11ImageFrame_New
	public	__srs_d3d11max2d_TD3D11Max2DDriver_AdjustScreenRotationScale
	public	__srs_d3d11max2d_TD3D11Max2DDriver_AttachGraphics
	public	__srs_d3d11max2d_TD3D11Max2DDriver_Cls
	public	__srs_d3d11max2d_TD3D11Max2DDriver_Create
	public	__srs_d3d11max2d_TD3D11Max2DDriver_CreateFrameFromPixmap
	public	__srs_d3d11max2d_TD3D11Max2DDriver_CreateGraphics
	public	__srs_d3d11max2d_TD3D11Max2DDriver_Delete
	public	__srs_d3d11max2d_TD3D11Max2DDriver_DrawLine
	public	__srs_d3d11max2d_TD3D11Max2DDriver_DrawOval
	public	__srs_d3d11max2d_TD3D11Max2DDriver_DrawPixmap
	public	__srs_d3d11max2d_TD3D11Max2DDriver_DrawPoly
	public	__srs_d3d11max2d_TD3D11Max2DDriver_DrawRect
	public	__srs_d3d11max2d_TD3D11Max2DDriver_Flip
	public	__srs_d3d11max2d_TD3D11Max2DDriver_GrabPixmap
	public	__srs_d3d11max2d_TD3D11Max2DDriver_GraphicsModes
	public	__srs_d3d11max2d_TD3D11Max2DDriver_New
	public	__srs_d3d11max2d_TD3D11Max2DDriver_Plot
	public	__srs_d3d11max2d_TD3D11Max2DDriver_ResetScreenRotationScale
	public	__srs_d3d11max2d_TD3D11Max2DDriver_SetAlpha
	public	__srs_d3d11max2d_TD3D11Max2DDriver_SetBlend
	public	__srs_d3d11max2d_TD3D11Max2DDriver_SetClsColor
	public	__srs_d3d11max2d_TD3D11Max2DDriver_SetColor
	public	__srs_d3d11max2d_TD3D11Max2DDriver_SetFocus
	public	__srs_d3d11max2d_TD3D11Max2DDriver_SetGraphics
	public	__srs_d3d11max2d_TD3D11Max2DDriver_SetLineWidth
	public	__srs_d3d11max2d_TD3D11Max2DDriver_SetResolution
	public	__srs_d3d11max2d_TD3D11Max2DDriver_SetScreenRotation
	public	__srs_d3d11max2d_TD3D11Max2DDriver_SetTransform
	public	__srs_d3d11max2d_TD3D11Max2DDriver_SetViewport
	public	__srs_d3d11max2d_TD3D11Max2DDriver_SetZoom
	public	__srs_d3d11max2d_TD3D11Max2DDriver_ToString
	public	__srs_d3d11max2d_TD3D11Max2DDriver_TransformPoint
	public	__srs_d3d11max2d_TD3D11Max2DDriver_UpdateTransform
	public	__srs_d3d11max2d_TD3D11Max2DShaders_Delete
	public	__srs_d3d11max2d_TD3D11Max2DShaders_New
	public	__srs_d3d11max2d_TD3D11RingBuffer_Allocate
	public	__srs_d3d11max2d_TD3D11RingBuffer_Create
	public	__srs_d3d11max2d_TD3D11RingBuffer_Delete
	public	__srs_d3d11max2d_TD3D11RingBuffer_Destroy
	public	__srs_d3d11max2d_TD3D11RingBuffer_New
	public	_srs_d3d11max2d_BackBuffer
	public	_srs_d3d11max2d_CreateBatchImage
	public	_srs_d3d11max2d_D3D11Max2DDriver
	public	_srs_d3d11max2d_DestroyBatchImage
	public	_srs_d3d11max2d_DrawBatchImage
	public	_srs_d3d11max2d_DrawImageTiled
	public	_srs_d3d11max2d_DrawLines
	public	_srs_d3d11max2d_FreeBatchResources
	public	_srs_d3d11max2d_ImageBuffer
	public	_srs_d3d11max2d_PlotPoints
	public	_srs_d3d11max2d_SetBuffer
	public	_srs_d3d11max2d_SetScreenFocusD3D11
	public	_srs_d3d11max2d_SetScreenRotationD3D11
	public	_srs_d3d11max2d_SetScreenZoomD3D11
	public	_srs_d3d11max2d_TBatchImage
	public	_srs_d3d11max2d_TD3D11ImageFrame
	public	_srs_d3d11max2d_TD3D11Max2DDriver
	public	_srs_d3d11max2d_UpdateBatchImage
	public	_srs_d3d11max2d_VerifyD3D11Max2DDriver
	section	"code" code
___bb_d3d11max2d_d3d11max2d:
	push	ebp
	mov	ebp,esp
	cmp	dword [_705],0
	je	_706
	mov	eax,0
	mov	esp,ebp
	pop	ebp
	ret
_706:
	mov	dword [_705],1
	mov	eax,_633
	sub	eax,_632
	push	eax
	push	_632
	push	_631
	call	_bbIncbinAdd
	add	esp,12
	mov	eax,_636
	sub	eax,_635
	push	eax
	push	_635
	push	_634
	call	_bbIncbinAdd
	add	esp,12
	mov	eax,_701
	sub	eax,_700
	push	eax
	push	_700
	push	_699
	call	_bbIncbinAdd
	add	esp,12
	mov	eax,_704
	sub	eax,_703
	push	eax
	push	_703
	push	_702
	call	_bbIncbinAdd
	add	esp,12
	call	___bb_blitz_blitz
	call	___bb_max2d_max2d
	call	___bb_textstream_textstream
	call	___bb_d3d11graphics_d3d11graphics
	push	_12
	call	_bbObjectRegisterType
	add	esp,4
	push	_srs_d3d11max2d_TBatchImage
	call	_bbObjectRegisterType
	add	esp,4
	push	_64
	call	_bbObjectRegisterType
	add	esp,4
	push	_68
	call	_bbObjectRegisterType
	add	esp,4
	push	_srs_d3d11max2d_TD3D11ImageFrame
	call	_bbObjectRegisterType
	add	esp,4
	push	_srs_d3d11max2d_TD3D11Max2DDriver
	call	_bbObjectRegisterType
	add	esp,4
	mov	eax,dword [_648]
	and	eax,1
	cmp	eax,0
	jne	_649
	push	4
	push	_216
	call	_bbArrayNew1D
	add	esp,8
	fldz
	fstp	dword [eax+24]
	fldz
	fstp	dword [eax+28]
	fldz
	fstp	dword [eax+32]
	fld1
	fstp	dword [eax+36]
	inc	dword [eax+4]
	mov	dword [_646],eax
	or	dword [_648],1
_649:
	mov	eax,dword [_648]
	and	eax,2
	cmp	eax,0
	jne	_687
	push	8
	push	_684
	call	_bbArrayNew1D
	add	esp,8
	inc	dword [eax+4]
	mov	dword [_685],eax
	or	dword [_648],2
_687:
	mov	eax,dword [_648]
	and	eax,4
	cmp	eax,0
	jne	_691
	push	16
	push	_688
	call	_bbArrayNew1D
	add	esp,8
	inc	dword [eax+4]
	mov	dword [_689],eax
	or	dword [_648],4
_691:
	mov	eax,0
	jmp	_280
_280:
	mov	esp,ebp
	pop	ebp
	ret
__srs_d3d11max2d_TBatchImageGlobals_New:
	push	ebp
	mov	ebp,esp
	push	ebx
	mov	ebx,dword [ebp+8]
	push	ebx
	call	_bbObjectCtor
	add	esp,4
	mov	dword [ebx],_12
	push	32
	push	_707
	call	_bbArrayNew1D
	add	esp,8
	inc	dword [eax+4]
	mov	dword [ebx+8],eax
	mov	dword [ebx+12],0
	mov	dword [ebx+16],0
	push	_13
	call	_brl_textstream_LoadText
	add	esp,4
	inc	dword [eax+4]
	mov	dword [ebx+20],eax
	push	_14
	call	_brl_textstream_LoadText
	add	esp,4
	inc	dword [eax+4]
	mov	dword [ebx+24],eax
	mov	dword [ebx+28],0
	mov	eax,0
	jmp	_283
_283:
	pop	ebx
	mov	esp,ebp
	pop	ebp
	ret
__srs_d3d11max2d_TBatchImageGlobals_Delete:
	push	ebp
	mov	ebp,esp
	push	ebx
	mov	ebx,dword [ebp+8]
_286:
	mov	eax,dword [ebx+24]
	dec	dword [eax+4]
	jnz	_713
	push	eax
	call	_bbGCFree
	add	esp,4
_713:
	mov	eax,dword [ebx+20]
	dec	dword [eax+4]
	jnz	_715
	push	eax
	call	_bbGCFree
	add	esp,4
_715:
	mov	eax,dword [ebx+8]
	dec	dword [eax+4]
	jnz	_717
	push	eax
	call	_bbGCFree
	add	esp,4
_717:
	mov	eax,0
	jmp	_711
_711:
	pop	ebx
	mov	esp,ebp
	pop	ebp
	ret
__srs_d3d11max2d_TBatchImageGlobals_FreeResources:
	push	ebp
	mov	ebp,esp
	push	ebx
	push	esi
	mov	ebx,dword [ebp+8]
	mov	esi,0
	jmp	_719
_17:
	mov	eax,dword [ebx+8]
	lea	eax,dword [eax+esi*4+24]
	push	eax
	call	_67
	add	esp,4
_15:
	add	esi,1
_719:
	cmp	esi,32
	jl	_17
_16:
	lea	eax,dword [ebx+12]
	push	eax
	call	_67
	add	esp,4
	lea	eax,dword [ebx+16]
	push	eax
	call	_67
	add	esp,4
	mov	eax,0
	jmp	_289
_289:
	pop	esi
	pop	ebx
	mov	esp,ebp
	pop	ebp
	ret
__srs_d3d11max2d_TBatchImage_New:
	push	ebp
	mov	ebp,esp
	push	ebx
	mov	ebx,dword [ebp+8]
	push	ebx
	call	_bbObjectCtor
	add	esp,4
	mov	dword [ebx],_srs_d3d11max2d_TBatchImage
	mov	dword [ebx+8],0
	mov	dword [ebx+12],0
	mov	dword [ebx+16],0
	mov	eax,_bbNullObject
	inc	dword [eax+4]
	mov	dword [ebx+20],eax
	mov	dword [ebx+24],0
	mov	dword [ebx+28],0
	mov	dword [ebx+32],0
	mov	dword [ebx+36],0
	mov	dword [ebx+40],0
	mov	dword [ebx+44],0
	mov	dword [ebx+48],0
	mov	dword [ebx+52],0
	mov	dword [ebx+56],0
	mov	dword [ebx+60],0
	mov	dword [ebx+64],0
	mov	dword [ebx+68],0
	mov	dword [ebx+72],0
	mov	eax,_bbEmptyArray
	inc	dword [eax+4]
	mov	dword [ebx+76],eax
	mov	eax,_bbEmptyArray
	inc	dword [eax+4]
	mov	dword [ebx+80],eax
	mov	eax,_bbEmptyArray
	inc	dword [eax+4]
	mov	dword [ebx+84],eax
	mov	eax,0
	jmp	_292
_292:
	pop	ebx
	mov	esp,ebp
	pop	ebp
	ret
__srs_d3d11max2d_TBatchImage_Delete:
	push	ebp
	mov	ebp,esp
	push	ebx
	mov	ebx,dword [ebp+8]
_295:
	mov	eax,dword [ebx+84]
	dec	dword [eax+4]
	jnz	_726
	push	eax
	call	_bbGCFree
	add	esp,4
_726:
	mov	eax,dword [ebx+80]
	dec	dword [eax+4]
	jnz	_728
	push	eax
	call	_bbGCFree
	add	esp,4
_728:
	mov	eax,dword [ebx+76]
	dec	dword [eax+4]
	jnz	_730
	push	eax
	call	_bbGCFree
	add	esp,4
_730:
	mov	eax,dword [ebx+20]
	dec	dword [eax+4]
	jnz	_732
	push	eax
	call	_bbGCFree
	add	esp,4
_732:
	mov	eax,0
	jmp	_724
_724:
	pop	ebx
	mov	esp,ebp
	pop	ebp
	ret
__srs_d3d11max2d_TBatchImage_Create:
	push	ebp
	mov	ebp,esp
	sub	esp,68
	push	ebx
	push	esi
	push	edi
	cmp	dword [_658],0
	jne	_733
	mov	eax,_bbNullObject
	jmp	_304
_733:
	mov	eax,dword [_637]
	cmp	eax,_bbNullObject
	setne	al
	movzx	eax,al
	cmp	eax,0
	jne	_734
	push	_12
	call	_bbObjectNew
	add	esp,4
	mov	ebx,eax
	inc	dword [ebx+4]
	mov	eax,dword [_637]
	dec	dword [eax+4]
	jnz	_738
	push	eax
	call	_bbGCFree
	add	esp,4
_738:
	mov	dword [_637],ebx
_734:
	mov	eax,dword [ebp+12]
	push	_srs_d3d11max2d_TD3D11ImageFrame
	push	0
	push	eax
	mov	eax,dword [eax]
	call	dword [eax+52]
	add	esp,8
	push	eax
	call	_bbObjectDowncast
	add	esp,8
	mov	dword [ebp-64],eax
	cmp	dword [ebp-64],_bbNullObject
	jne	_741
	mov	eax,_bbNullObject
	jmp	_304
_741:
	mov	ebx,dword [ebp+12]
	inc	dword [ebx+4]
	mov	eax,dword [ebp+8]
	mov	eax,dword [eax+20]
	dec	dword [eax+4]
	jnz	_745
	push	eax
	call	_bbGCFree
	add	esp,4
_745:
	mov	eax,dword [ebp+8]
	mov	dword [eax+20],ebx
	mov	eax,dword [ebp+12]
	mov	eax,dword [eax+44]
	mov	edx,dword [eax+20]
	mov	eax,dword [ebp+8]
	mov	dword [eax+16],edx
	mov	eax,dword [ebp-64]
	mov	edx,dword [eax+20]
	mov	eax,dword [ebp+8]
	mov	dword [eax+28],edx
	push	_srs_directx11_D3D11_TEXTURE2D_DESC
	call	_bbObjectNew
	add	esp,4
	mov	dword [ebp-4],eax
	mov	eax,dword [ebp-64]
	mov	edx,dword [eax+8]
	mov	eax,dword [ebp-4]
	lea	eax,dword [eax+8]
	push	eax
	push	edx
	mov	eax,dword [edx]
	call	dword [eax+40]
	mov	edx,dword [ebp-4]
	mov	eax,dword [ebp+8]
	mov	eax,dword [eax+16]
	mov	dword [edx+20],eax
	mov	eax,dword [ebp-4]
	mov	dword [eax+36],0
	mov	edx,dword [_639]
	mov	eax,dword [ebp+8]
	lea	eax,dword [eax+24]
	push	eax
	push	0
	mov	eax,dword [ebp-4]
	lea	eax,dword [eax+8]
	push	eax
	push	edx
	mov	eax,dword [edx]
	call	dword [eax+20]
	cmp	eax,0
	jge	_749
	push	1
	push	_18
	call	_brl_system_Notify
	add	esp,8
	call	_bbEnd
_749:
	mov	dword [ebp-36],0
	mov	eax,dword [ebp+8]
	mov	eax,dword [eax+16]
	mov	dword [ebp-56],eax
	jmp	_751
_21:
	mov	eax,dword [ebp+12]
	push	_srs_d3d11max2d_TD3D11ImageFrame
	push	dword [ebp-36]
	push	eax
	mov	eax,dword [eax]
	call	dword [eax+52]
	add	esp,8
	push	eax
	call	_bbObjectDowncast
	add	esp,8
	mov	edi,eax
	cmp	edi,_bbNullObject
	setne	al
	movzx	eax,al
	cmp	eax,0
	jne	_755
	jmp	_19
_755:
	mov	esi,0
	mov	eax,dword [ebp-4]
	mov	ebx,dword [eax+16]
	jmp	_758
_24:
	mov	eax,dword [ebp-4]
	push	dword [eax+16]
	push	dword [ebp-36]
	push	esi
	call	_srs_directx11_D3D11CalcSubresource
	add	esp,12
	mov	edx,dword [_640]
	push	0
	push	esi
	push	dword [edi+8]
	push	0
	push	0
	push	0
	push	eax
	mov	eax,dword [ebp+8]
	push	dword [eax+24]
	push	edx
	mov	eax,dword [edx]
	call	dword [eax+184]
_22:
	add	esi,1
_758:
	cmp	esi,ebx
	jl	_24
_23:
_756:
_19:
	add	dword [ebp-36],1
_751:
	mov	eax,dword [ebp-56]
	cmp	dword [ebp-36],eax
	jl	_21
_20:
	mov	edx,dword [_639]
	mov	eax,dword [ebp+8]
	lea	eax,dword [eax+32]
	push	eax
	push	0
	mov	eax,dword [ebp+8]
	push	dword [eax+24]
	push	edx
	mov	eax,dword [edx]
	call	dword [eax+28]
	cmp	eax,0
	jge	_763
	push	1
	push	_25
	call	_brl_system_Notify
	add	esp,8
	call	_bbEnd
_763:
	mov	eax,dword [ebp-64]
	fld	dword [eax+24]
	mov	eax,dword [ebp+12]
	mov	eax,dword [eax+8]
	mov	dword [ebp+-68],eax
	fild	dword [ebp+-68]
	fmulp	st1,st0
	fstp	dword [ebp-44]
	mov	eax,dword [ebp-64]
	fld	dword [eax+28]
	mov	eax,dword [ebp+12]
	mov	eax,dword [eax+12]
	mov	dword [ebp+-68],eax
	fild	dword [ebp+-68]
	fmulp	st1,st0
	fstp	dword [ebp-40]
	push	16
	push	_766
	call	_bbArrayNew1D
	add	esp,8
	mov	dword [ebp-8],eax
	mov	eax,dword [ebp+12]
	fld	dword [eax+32]
	fchs
	mov	eax,dword [_644]
	fadd	dword [eax+84]
	mov	eax,dword [ebp+12]
	fld	dword [eax+36]
	fchs
	mov	eax,dword [_644]
	fadd	dword [eax+88]
	fld	st1
	mov	eax,dword [ebp+12]
	mov	eax,dword [eax+8]
	mov	dword [ebp+-68],eax
	fild	dword [ebp+-68]
	faddp	st1,st0
	fld	st1
	mov	eax,dword [ebp+12]
	mov	eax,dword [eax+12]
	mov	dword [ebp+-68],eax
	fild	dword [ebp+-68]
	faddp	st1,st0
	mov	eax,dword [ebp-8]
	fxch	st3
	fst	dword [eax+24]
	mov	eax,dword [ebp-8]
	fxch	st2
	fst	dword [eax+4+24]
	mov	eax,dword [ebp-8]
	fldz
	fstp	dword [eax+8+24]
	mov	eax,dword [ebp-8]
	fldz
	fstp	dword [eax+12+24]
	mov	eax,dword [ebp-8]
	fxch	st1
	fst	dword [eax+16+24]
	mov	eax,dword [ebp-8]
	fxch	st1
	fstp	dword [eax+20+24]
	mov	eax,dword [ebp-8]
	fld	dword [ebp-44]
	fstp	dword [eax+24+24]
	mov	eax,dword [ebp-8]
	fldz
	fstp	dword [eax+28+24]
	mov	eax,dword [ebp-8]
	fxch	st1
	fstp	dword [eax+32+24]
	mov	eax,dword [ebp-8]
	fxch	st1
	fst	dword [eax+36+24]
	mov	eax,dword [ebp-8]
	fldz
	fstp	dword [eax+40+24]
	mov	eax,dword [ebp-8]
	fld	dword [ebp-40]
	fstp	dword [eax+44+24]
	mov	eax,dword [ebp-8]
	fxch	st1
	fstp	dword [eax+48+24]
	mov	eax,dword [ebp-8]
	fstp	dword [eax+52+24]
	mov	eax,dword [ebp-8]
	fld	dword [ebp-44]
	fstp	dword [eax+56+24]
	mov	eax,dword [ebp-8]
	fld	dword [ebp-40]
	fstp	dword [eax+60+24]
	push	_26
	mov	eax,dword [ebp-8]
	lea	eax,byte [eax+24]
	push	eax
	push	0
	push	1
	push	1
	mov	eax,dword [ebp-8]
	push	dword [eax+16]
	mov	eax,dword [ebp+8]
	lea	eax,dword [eax+44]
	push	eax
	call	_71
	add	esp,28
	mov	eax,dword [ebp+8]
	mov	dword [eax+36],-1
	mov	eax,dword [ebp+16]
	shl	eax,4
	mov	edx,dword [ebp+20]
	shl	edx,3
	add	eax,edx
	mov	edx,dword [ebp+24]
	shl	edx,2
	add	eax,edx
	mov	edx,dword [ebp+28]
	shl	edx,1
	add	eax,edx
	add	eax,dword [ebp+32]
	mov	edx,dword [ebp+8]
	mov	dword [edx+40],eax
	mov	eax,dword [_637]
	mov	edx,dword [eax+8]
	mov	eax,dword [ebp+8]
	mov	eax,dword [eax+40]
	mov	eax,dword [edx+eax*4+24]
	cmp	eax,0
	setne	al
	movzx	eax,al
	cmp	eax,0
	jne	_772
	mov	dword [ebp-16],0
	mov	dword [ebp-20],0
	push	10
	push	_776
	call	_bbArrayNew1D
	add	esp,8
	mov	dword [ebp-12],eax
	mov	dword [ebp-60],0
	cmp	dword [ebp+16],0
	je	_779
	mov	ebx,dword [ebp-12]
	push	_27
	call	_bbStringToCString
	add	esp,4
	mov	edx,eax
	mov	eax,dword [ebp-60]
	mov	dword [ebx+eax*4+24],edx
	mov	esi,dword [ebp-12]
	mov	ebx,dword [ebp-60]
	add	ebx,1
	push	_28
	call	_bbStringToCString
	add	esp,4
	mov	eax,eax
	mov	dword [esi+ebx*4+24],eax
	add	dword [ebp-60],2
_779:
	cmp	dword [ebp+20],0
	je	_780
	mov	ebx,dword [ebp-12]
	push	_29
	call	_bbStringToCString
	add	esp,4
	mov	edx,eax
	mov	eax,dword [ebp-60]
	mov	dword [ebx+eax*4+24],edx
	mov	esi,dword [ebp-12]
	mov	ebx,dword [ebp-60]
	add	ebx,1
	push	_28
	call	_bbStringToCString
	add	esp,4
	mov	eax,eax
	mov	dword [esi+ebx*4+24],eax
	add	dword [ebp-60],2
_780:
	cmp	dword [ebp+24],0
	je	_781
	mov	ebx,dword [ebp-12]
	push	_30
	call	_bbStringToCString
	add	esp,4
	mov	edx,eax
	mov	eax,dword [ebp-60]
	mov	dword [ebx+eax*4+24],edx
	mov	esi,dword [ebp-12]
	mov	ebx,dword [ebp-60]
	add	ebx,1
	push	_28
	call	_bbStringToCString
	add	esp,4
	mov	eax,eax
	mov	dword [esi+ebx*4+24],eax
	add	dword [ebp-60],2
_781:
	cmp	dword [ebp+28],0
	je	_782
	mov	ebx,dword [ebp-12]
	push	_31
	call	_bbStringToCString
	add	esp,4
	mov	edx,eax
	mov	eax,dword [ebp-60]
	mov	dword [ebx+eax*4+24],edx
	mov	esi,dword [ebp-12]
	mov	ebx,dword [ebp-60]
	add	ebx,1
	push	_28
	call	_bbStringToCString
	add	esp,4
	mov	eax,eax
	mov	dword [esi+ebx*4+24],eax
	add	dword [ebp-60],2
_782:
	mov	edx,dword [ebp-12]
	mov	eax,dword [ebp-60]
	mov	dword [edx+eax*4+24],0
	mov	edx,dword [ebp-12]
	mov	eax,dword [ebp-60]
	add	eax,1
	mov	dword [edx+eax*4+24],0
	mov	eax,dword [_637]
	push	dword [eax+20]
	call	_bbStringToCString
	add	esp,4
	mov	edi,eax
	push	_32
	call	_bbStringToCString
	add	esp,4
	mov	esi,eax
	push	_33
	call	_bbStringToCString
	add	esp,4
	mov	ebx,eax
	lea	eax,dword [ebp-20]
	push	eax
	lea	eax,dword [ebp-16]
	push	eax
	push	0
	push	32768
	push	ebx
	push	esi
	push	0
	mov	eax,dword [ebp-12]
	lea	eax,byte [eax+24]
	push	eax
	push	0
	mov	eax,dword [_637]
	mov	eax,dword [eax+20]
	push	dword [eax+8]
	push	edi
	call	dword [_srs_directx11_D3DCompile]
	mov	dword [ebp-52],eax
	push	edi
	call	_bbMemFree
	add	esp,4
	push	esi
	call	_bbMemFree
	add	esp,4
	push	ebx
	call	_bbMemFree
	add	esp,4
	mov	ebx,dword [ebp-52]
	cmp	dword [ebp-20],0
	je	_787
	mov	eax,dword [ebp-20]
	push	eax
	mov	eax,dword [eax]
	call	dword [eax+12]
	push	eax
	call	_bbStringFromCString
	add	esp,4
	push	eax
	call	_bbWriteStdout
	add	esp,4
	lea	eax,dword [ebp-20]
	push	eax
	call	_67
	add	esp,4
_787:
	cmp	ebx,0
	jge	_790
	push	_34
	call	_bbWriteStdout
	add	esp,4
	call	_bbEnd
_790:
	mov	esi,dword [_639]
	mov	ebx,dword [ebp-16]
	mov	edx,dword [ebp-16]
	mov	eax,dword [_637]
	mov	eax,dword [eax+8]
	mov	ecx,dword [ebp+8]
	mov	ecx,dword [ecx+40]
	lea	eax,dword [eax+ecx*4+24]
	push	eax
	push	0
	push	edx
	mov	eax,dword [edx]
	call	dword [eax+16]
	push	eax
	push	ebx
	mov	eax,dword [ebx]
	call	dword [eax+12]
	push	eax
	push	esi
	mov	eax,dword [esi]
	call	dword [eax+48]
	cmp	eax,0
	jge	_794
	push	_36
	mov	eax,dword [ebp+8]
	push	dword [eax+40]
	call	_bbStringFromInt
	add	esp,4
	push	eax
	push	_35
	call	_bbStringConcat
	add	esp,8
	push	eax
	call	_bbStringConcat
	add	esp,8
	push	eax
	call	_bbWriteStdout
	add	esp,4
	call	_bbEnd
_794:
	mov	esi,0
	mov	ebx,dword [ebp-60]
	sub	ebx,2
	jmp	_796
_39:
	mov	eax,dword [ebp-12]
	mov	eax,dword [eax+esi*4+24]
	push	eax
	call	_bbMemFree
	add	esp,4
_37:
	add	esi,1
_796:
	cmp	esi,ebx
	jl	_39
_38:
	mov	eax,dword [_637]
	mov	eax,dword [eax+16]
	cmp	eax,0
	setne	al
	movzx	eax,al
	cmp	eax,0
	jne	_798
	push	56
	push	_156
	call	_bbArrayNew1D
	add	esp,8
	mov	dword [eax+24],0
	mov	dword [eax+28],0
	mov	dword [eax+32],2
	mov	dword [eax+36],0
	mov	dword [eax+40],-1
	mov	dword [eax+44],0
	mov	dword [eax+48],0
	mov	dword [eax+52],0
	mov	dword [eax+56],0
	mov	dword [eax+60],2
	mov	dword [eax+64],1
	mov	dword [eax+68],-1
	mov	dword [eax+72],1
	mov	dword [eax+76],1
	mov	dword [eax+80],0
	mov	dword [eax+84],1
	mov	dword [eax+88],2
	mov	dword [eax+92],2
	mov	dword [eax+96],-1
	mov	dword [eax+100],1
	mov	dword [eax+104],1
	mov	dword [eax+108],0
	mov	dword [eax+112],2
	mov	dword [eax+116],2
	mov	dword [eax+120],2
	mov	dword [eax+124],-1
	mov	dword [eax+128],1
	mov	dword [eax+132],1
	mov	dword [eax+136],0
	mov	dword [eax+140],3
	mov	dword [eax+144],16
	mov	dword [eax+148],3
	mov	dword [eax+152],-1
	mov	dword [eax+156],1
	mov	dword [eax+160],1
	mov	dword [eax+164],0
	mov	dword [eax+168],4
	mov	dword [eax+172],16
	mov	dword [eax+176],4
	mov	dword [eax+180],-1
	mov	dword [eax+184],1
	mov	dword [eax+188],1
	mov	dword [eax+192],0
	mov	dword [eax+196],5
	mov	dword [eax+200],41
	mov	dword [eax+204],5
	mov	dword [eax+208],-1
	mov	dword [eax+212],1
	mov	dword [eax+216],1
	mov	dword [eax+220],0
	mov	dword [eax+224],6
	mov	dword [eax+228],42
	mov	dword [eax+232],6
	mov	dword [eax+236],-1
	mov	dword [eax+240],1
	mov	dword [eax+244],1
	mov	dword [ebp-24],eax
	mov	ebx,dword [ebp-24]
	push	_40
	call	_bbStringToCString
	add	esp,4
	mov	eax,eax
	mov	dword [ebx+24],eax
	mov	ebx,dword [ebp-24]
	push	_41
	call	_bbStringToCString
	add	esp,4
	mov	eax,eax
	mov	dword [ebx+28+24],eax
	mov	ebx,dword [ebp-24]
	push	_41
	call	_bbStringToCString
	add	esp,4
	mov	eax,eax
	mov	dword [ebx+56+24],eax
	mov	ebx,dword [ebp-24]
	push	_41
	call	_bbStringToCString
	add	esp,4
	mov	eax,eax
	mov	dword [ebx+84+24],eax
	mov	ebx,dword [ebp-24]
	push	_41
	call	_bbStringToCString
	add	esp,4
	mov	eax,eax
	mov	dword [ebx+112+24],eax
	mov	ebx,dword [ebp-24]
	push	_41
	call	_bbStringToCString
	add	esp,4
	mov	eax,eax
	mov	dword [ebx+140+24],eax
	mov	ebx,dword [ebp-24]
	push	_41
	call	_bbStringToCString
	add	esp,4
	mov	eax,eax
	mov	dword [ebx+168+24],eax
	mov	ebx,dword [ebp-24]
	push	_41
	call	_bbStringToCString
	add	esp,4
	mov	eax,eax
	mov	dword [ebx+196+24],eax
	mov	esi,dword [_639]
	mov	ebx,dword [ebp-16]
	mov	edx,dword [ebp-16]
	mov	eax,dword [_637]
	lea	eax,dword [eax+16]
	push	eax
	push	edx
	mov	eax,dword [edx]
	call	dword [eax+16]
	push	eax
	push	ebx
	mov	eax,dword [ebx]
	call	dword [eax+12]
	push	eax
	push	8
	mov	eax,dword [ebp-24]
	lea	eax,byte [eax+24]
	push	eax
	push	esi
	mov	eax,dword [esi]
	call	dword [eax+44]
	cmp	eax,0
	jge	_804
	push	0
	push	_42
	call	_brl_system_Notify
	add	esp,8
	call	_bbEnd
_804:
	mov	eax,dword [ebp-24]
	mov	eax,dword [eax+24]
	push	eax
	call	_bbMemFree
	add	esp,4
	mov	eax,dword [ebp-24]
	mov	eax,dword [eax+28+24]
	push	eax
	call	_bbMemFree
	add	esp,4
	mov	eax,dword [ebp-24]
	mov	eax,dword [eax+56+24]
	push	eax
	call	_bbMemFree
	add	esp,4
	mov	eax,dword [ebp-24]
	mov	eax,dword [eax+84+24]
	push	eax
	call	_bbMemFree
	add	esp,4
	mov	eax,dword [ebp-24]
	mov	eax,dword [eax+112+24]
	push	eax
	call	_bbMemFree
	add	esp,4
	mov	eax,dword [ebp-24]
	mov	eax,dword [eax+140+24]
	push	eax
	call	_bbMemFree
	add	esp,4
	mov	eax,dword [ebp-24]
	mov	eax,dword [eax+168+24]
	push	eax
	call	_bbMemFree
	add	esp,4
	mov	eax,dword [ebp-24]
	mov	eax,dword [eax+196+24]
	push	eax
	call	_bbMemFree
	add	esp,4
_798:
_772:
	mov	eax,dword [_637]
	mov	eax,dword [eax+12]
	cmp	eax,0
	setne	al
	movzx	eax,al
	cmp	eax,0
	jne	_805
	mov	dword [ebp-28],0
	mov	dword [ebp-32],0
	mov	eax,dword [_637]
	push	dword [eax+24]
	call	_bbStringToCString
	add	esp,4
	mov	edi,eax
	push	_43
	call	_bbStringToCString
	add	esp,4
	mov	esi,eax
	push	_44
	call	_bbStringToCString
	add	esp,4
	mov	ebx,eax
	lea	eax,dword [ebp-32]
	push	eax
	lea	eax,dword [ebp-28]
	push	eax
	push	0
	push	32768
	push	ebx
	push	esi
	push	0
	push	0
	push	0
	mov	eax,dword [_637]
	mov	eax,dword [eax+24]
	push	dword [eax+8]
	push	edi
	call	dword [_srs_directx11_D3DCompile]
	mov	dword [ebp-48],eax
	push	edi
	call	_bbMemFree
	add	esp,4
	push	esi
	call	_bbMemFree
	add	esp,4
	push	ebx
	call	_bbMemFree
	add	esp,4
	mov	ebx,dword [ebp-48]
	cmp	dword [ebp-32],0
	je	_813
	mov	eax,dword [ebp-32]
	push	eax
	mov	eax,dword [eax]
	call	dword [eax+12]
	push	eax
	call	_bbStringFromCString
	add	esp,4
	push	eax
	call	_bbWriteStdout
	add	esp,4
	lea	eax,dword [ebp-32]
	push	eax
	call	_67
	add	esp,4
_813:
	cmp	ebx,0
	jge	_816
	push	0
	push	_45
	call	_brl_system_Notify
	add	esp,8
	call	_bbEnd
_816:
	mov	esi,dword [_639]
	mov	ebx,dword [ebp-28]
	mov	edx,dword [ebp-28]
	mov	eax,dword [_637]
	lea	eax,dword [eax+12]
	push	eax
	push	0
	push	edx
	mov	eax,dword [edx]
	call	dword [eax+16]
	push	eax
	push	ebx
	mov	eax,dword [ebx]
	call	dword [eax+12]
	push	eax
	push	esi
	mov	eax,dword [esi]
	call	dword [eax+60]
	cmp	eax,0
	jge	_820
	push	1
	push	_46
	call	_brl_system_Notify
	add	esp,8
	call	_bbEnd
_820:
_805:
	mov	eax,dword [_637]
	mov	edx,dword [eax+8]
	mov	eax,dword [ebp+8]
	mov	eax,dword [eax+40]
	mov	edx,dword [edx+eax*4+24]
	mov	eax,dword [ebp+8]
	mov	dword [eax+72],edx
	mov	eax,dword [ebp+8]
	mov	dword [eax+12],1
	mov	eax,dword [ebp+8]
	jmp	_304
_304:
	pop	edi
	pop	esi
	pop	ebx
	mov	esp,ebp
	pop	ebp
	ret
__srs_d3d11max2d_TBatchImage_Update:
	push	ebp
	mov	ebp,esp
	sub	esp,4
	push	ebx
	push	esi
	push	edi
	mov	esi,dword [ebp+8]
	mov	edx,dword [ebp+12]
	mov	ebx,dword [ebp+16]
	mov	edi,dword [ebp+20]
	mov	eax,dword [ebx]
	cmp	eax,_bbEmptyArray
	setne	al
	movzx	eax,al
	shl	eax,4
	mov	ecx,eax
	mov	eax,dword [edi]
	cmp	eax,_bbEmptyArray
	setne	al
	movzx	eax,al
	shl	eax,3
	add	ecx,eax
	mov	eax,dword [ebp+24]
	mov	eax,dword [eax]
	cmp	eax,_bbEmptyArray
	setne	al
	movzx	eax,al
	shl	eax,2
	add	ecx,eax
	mov	eax,dword [ebp+28]
	mov	eax,dword [eax]
	cmp	eax,_bbEmptyArray
	setne	al
	movzx	eax,al
	shl	eax,1
	add	ecx,eax
	mov	eax,dword [ebp+32]
	mov	eax,dword [eax]
	cmp	eax,_bbEmptyArray
	setne	al
	movzx	eax,al
	add	ecx,eax
	mov	eax,ecx
	cmp	eax,dword [esi+40]
	je	_822
	mov	eax,0
	jmp	_313
_822:
	mov	eax,dword [edx]
	cmp	dword [eax+16],0
	jne	_823
	mov	eax,0
	jmp	_313
_823:
	mov	eax,dword [edx]
	mov	eax,dword [eax+20]
	cmp	eax,2
	setl	al
	movzx	eax,al
	cmp	eax,0
	jne	_824
	mov	eax,dword [edx]
	mov	eax,dword [eax+20]
	and	eax,1
_824:
	cmp	eax,0
	je	_826
	mov	eax,0
	jmp	_313
_826:
	cmp	dword [esi+36],1
	jge	_827
	mov	eax,dword [edx]
	mov	eax,dword [eax+20]
	mov	dword [esi+36],eax
_827:
	mov	eax,dword [edx]
	mov	eax,dword [eax+20]
	cmp	dword [esi+36],eax
	je	_828
	mov	eax,0
	jmp	_313
_828:
	cmp	dword [esi+48],0
	je	_829
	push	_47
	mov	eax,dword [edx]
	push	dword [eax+16]
	mov	eax,dword [edx]
	lea	eax,byte [eax+24]
	push	eax
	push	0
	push	4
	push	0
	lea	eax,dword [esi+48]
	push	eax
	call	_74
	add	esp,28
	jmp	_830
_829:
	push	_48
	mov	eax,dword [edx]
	lea	eax,byte [eax+24]
	push	eax
	push	65536
	push	1
	push	2
	mov	eax,dword [edx]
	push	dword [eax+16]
	lea	eax,dword [esi+48]
	push	eax
	call	_71
	add	esp,28
_830:
	mov	eax,dword [ebx]
	cmp	dword [eax+16],0
	je	_831
	mov	edx,dword [ebx]
	mov	eax,dword [esi+36]
	shl	eax,1
	cmp	dword [edx+20],eax
	je	_832
	mov	eax,0
	jmp	_313
_832:
	cmp	dword [esi+52],0
	je	_833
	push	_49
	mov	eax,dword [ebx]
	push	dword [eax+16]
	mov	eax,dword [ebx]
	lea	eax,byte [eax+24]
	push	eax
	push	0
	push	4
	push	0
	lea	eax,dword [esi+52]
	push	eax
	call	_74
	add	esp,28
	jmp	_834
_833:
	push	_50
	mov	eax,dword [ebx]
	lea	eax,byte [eax+24]
	push	eax
	push	65536
	push	1
	push	2
	mov	eax,dword [ebx]
	push	dword [eax+16]
	lea	eax,dword [esi+52]
	push	eax
	call	_71
	add	esp,28
_834:
	jmp	_835
_831:
	mov	eax,dword [esi+52]
	cmp	eax,0
	setne	al
	movzx	eax,al
	cmp	eax,0
	jne	_836
	push	_51
	push	0
	push	0
	push	1
	push	0
	mov	eax,dword [esi+36]
	shl	eax,1
	push	eax
	lea	eax,dword [esi+52]
	push	eax
	call	_71
	add	esp,28
_836:
_835:
	mov	eax,dword [edi]
	cmp	dword [eax+16],0
	je	_837
	mov	eax,dword [edi]
	mov	eax,dword [eax+20]
	mov	dword [ebp+-4],eax
	fild	dword [ebp+-4]
	mov	eax,dword [esi+36]
	mov	dword [ebp+-4],eax
	fild	dword [ebp+-4]
	fmul	dword [_1585]
	fxch	st1
	fucompp
	fnstsw	ax
	sahf
	setz	al
	movzx	eax,al
	cmp	eax,0
	jne	_838
	mov	eax,0
	jmp	_313
_838:
	cmp	dword [esi+56],0
	je	_839
	push	_52
	mov	eax,dword [edi]
	push	dword [eax+16]
	mov	eax,dword [edi]
	lea	eax,byte [eax+24]
	push	eax
	push	0
	push	4
	push	0
	lea	eax,dword [esi+56]
	push	eax
	call	_74
	add	esp,28
	jmp	_840
_839:
	push	_53
	mov	eax,dword [edi]
	lea	eax,byte [eax+24]
	push	eax
	push	65536
	push	1
	push	2
	mov	eax,dword [edi]
	push	dword [eax+16]
	lea	eax,dword [esi+56]
	push	eax
	call	_71
	add	esp,28
_840:
	jmp	_841
_837:
	mov	eax,dword [esi+56]
	cmp	eax,0
	setne	al
	movzx	eax,al
	cmp	eax,0
	jne	_842
	push	_54
	push	0
	push	0
	push	1
	push	0
	mov	eax,dword [esi+36]
	mov	dword [ebp+-4],eax
	fild	dword [ebp+-4]
	fmul	dword [_1586]
	sub	esp,8
	fstp	qword [esp]
	call	_bbFloatToInt
	add	esp,8
	push	eax
	lea	eax,dword [esi+56]
	push	eax
	call	_71
	add	esp,28
_842:
_841:
	mov	eax,dword [ebp+24]
	mov	eax,dword [eax]
	cmp	dword [eax+16],0
	je	_843
	mov	eax,dword [ebp+24]
	mov	edx,dword [eax]
	mov	eax,dword [esi+36]
	cmp	dword [edx+20],eax
	je	_844
	mov	eax,0
	jmp	_313
_844:
	cmp	dword [esi+60],0
	je	_845
	push	_55
	mov	eax,dword [ebp+24]
	mov	eax,dword [eax]
	push	dword [eax+16]
	mov	eax,dword [ebp+24]
	mov	eax,dword [eax]
	lea	eax,byte [eax+24]
	push	eax
	push	0
	push	4
	push	0
	lea	eax,dword [esi+60]
	push	eax
	call	_74
	add	esp,28
	jmp	_846
_845:
	push	_56
	mov	eax,dword [ebp+24]
	mov	eax,dword [eax]
	lea	eax,byte [eax+24]
	push	eax
	push	65536
	push	1
	push	2
	mov	eax,dword [ebp+24]
	mov	eax,dword [eax]
	push	dword [eax+16]
	lea	eax,dword [esi+60]
	push	eax
	call	_71
	add	esp,28
_846:
	jmp	_847
_843:
	mov	eax,dword [esi+60]
	cmp	eax,0
	setne	al
	movzx	eax,al
	cmp	eax,0
	jne	_848
	push	_57
	push	0
	push	0
	push	1
	push	0
	push	dword [esi+36]
	lea	eax,dword [esi+60]
	push	eax
	call	_71
	add	esp,28
_848:
_847:
	mov	eax,dword [ebp+28]
	mov	eax,dword [eax]
	cmp	dword [eax+16],0
	je	_849
	mov	eax,dword [ebp+28]
	mov	edx,dword [eax]
	mov	eax,dword [esi+36]
	shl	eax,2
	cmp	dword [edx+20],eax
	je	_850
	mov	eax,0
	jmp	_313
_850:
	cmp	dword [esi+68],0
	je	_851
	push	_58
	mov	eax,dword [ebp+28]
	mov	eax,dword [eax]
	push	dword [eax+16]
	mov	eax,dword [ebp+28]
	mov	eax,dword [eax]
	lea	eax,byte [eax+24]
	push	eax
	push	0
	push	4
	push	0
	lea	eax,dword [esi+68]
	push	eax
	call	_74
	add	esp,28
	jmp	_852
_851:
	push	_59
	mov	eax,dword [ebp+28]
	mov	eax,dword [eax]
	lea	eax,byte [eax+24]
	push	eax
	push	65536
	push	1
	push	2
	mov	eax,dword [ebp+28]
	mov	eax,dword [eax]
	push	dword [eax+16]
	lea	eax,dword [esi+68]
	push	eax
	call	_71
	add	esp,28
_852:
	jmp	_853
_849:
	mov	eax,dword [esi+68]
	cmp	eax,0
	setne	al
	movzx	eax,al
	cmp	eax,0
	jne	_854
	push	_60
	push	0
	push	0
	push	1
	push	0
	mov	eax,dword [esi+36]
	shl	eax,2
	push	eax
	lea	eax,dword [esi+68]
	push	eax
	call	_71
	add	esp,28
_854:
_853:
	mov	eax,dword [ebp+32]
	mov	eax,dword [eax]
	cmp	dword [eax+16],0
	je	_855
	mov	eax,dword [ebp+32]
	mov	eax,dword [eax]
	mov	eax,dword [eax+20]
	mov	dword [ebp+-4],eax
	fild	dword [ebp+-4]
	mov	eax,dword [esi+36]
	mov	dword [ebp+-4],eax
	fild	dword [ebp+-4]
	fmul	dword [_1587]
	fxch	st1
	fucompp
	fnstsw	ax
	sahf
	setz	al
	movzx	eax,al
	cmp	eax,0
	jne	_856
	mov	eax,0
	jmp	_313
_856:
	cmp	dword [esi+64],0
	je	_857
	push	_61
	mov	eax,dword [ebp+32]
	mov	eax,dword [eax]
	push	dword [eax+16]
	mov	eax,dword [ebp+32]
	mov	eax,dword [eax]
	lea	eax,byte [eax+24]
	push	eax
	push	0
	push	4
	push	0
	lea	eax,dword [esi+64]
	push	eax
	call	_74
	add	esp,28
	jmp	_858
_857:
	push	_62
	mov	eax,dword [ebp+32]
	mov	eax,dword [eax]
	lea	eax,byte [eax+24]
	push	eax
	push	65536
	push	1
	push	2
	mov	eax,dword [ebp+32]
	mov	eax,dword [eax]
	push	dword [eax+16]
	lea	eax,dword [esi+64]
	push	eax
	call	_71
	add	esp,28
_858:
	jmp	_859
_855:
	mov	eax,dword [esi+64]
	cmp	eax,0
	setne	al
	movzx	eax,al
	cmp	eax,0
	jne	_860
	push	_63
	push	0
	push	0
	push	1
	push	0
	mov	eax,dword [esi+36]
	mov	dword [ebp+-4],eax
	fild	dword [ebp+-4]
	fmul	dword [_1588]
	sub	esp,8
	fstp	qword [esp]
	call	_bbFloatToInt
	add	esp,8
	push	eax
	lea	eax,dword [esi+64]
	push	eax
	call	_71
	add	esp,28
_860:
_859:
	push	7
	push	_156
	call	_bbArrayNew1D
	add	esp,8
	mov	ebx,eax
	mov	dword [ebx+24],16
	mov	dword [ebx+28],16
	mov	dword [ebx+32],32
	mov	dword [ebx+36],8
	mov	dword [ebx+40],8
	mov	dword [ebx+44],4
	mov	dword [ebx+48],4
	inc	dword [ebx+4]
	mov	eax,dword [esi+76]
	dec	dword [eax+4]
	jnz	_865
	push	eax
	call	_bbGCFree
	add	esp,4
_865:
	mov	dword [esi+76],ebx
	push	7
	push	_156
	call	_bbArrayNew1D
	add	esp,8
	mov	ebx,eax
	mov	dword [ebx+24],0
	mov	dword [ebx+28],0
	mov	dword [ebx+32],0
	mov	dword [ebx+36],0
	mov	dword [ebx+40],0
	mov	dword [ebx+44],0
	mov	dword [ebx+48],0
	inc	dword [ebx+4]
	mov	eax,dword [esi+80]
	dec	dword [eax+4]
	jnz	_870
	push	eax
	call	_bbGCFree
	add	esp,4
_870:
	mov	dword [esi+80],ebx
	push	7
	push	_872
	call	_bbArrayNew1D
	add	esp,8
	mov	ebx,eax
	mov	eax,dword [esi+44]
	mov	dword [ebx+24],eax
	mov	eax,dword [esi+52]
	mov	dword [ebx+28],eax
	mov	eax,dword [esi+68]
	mov	dword [ebx+32],eax
	mov	eax,dword [esi+48]
	mov	dword [ebx+36],eax
	mov	eax,dword [esi+60]
	mov	dword [ebx+40],eax
	mov	eax,dword [esi+56]
	mov	dword [ebx+44],eax
	mov	eax,dword [esi+64]
	mov	dword [ebx+48],eax
	inc	dword [ebx+4]
	mov	eax,dword [esi+84]
	dec	dword [eax+4]
	jnz	_876
	push	eax
	call	_bbGCFree
	add	esp,4
_876:
	mov	dword [esi+84],ebx
	mov	dword [esi+8],1
	mov	eax,0
	jmp	_313
_313:
	pop	edi
	pop	esi
	pop	ebx
	mov	esp,ebp
	pop	ebp
	ret
__srs_d3d11max2d_TBatchImage_Draw:
	push	ebp
	mov	ebp,esp
	sub	esp,4
	push	ebx
	push	esi
	push	edi
	mov	esi,dword [ebp+8]
	mov	edx,dword [ebp+12]
	cmp	dword [esi+8],0
	jne	_877
	mov	eax,0
	jmp	_317
_877:
	cmp	dword [_658],0
	jne	_878
	mov	eax,0
	jmp	_317
_878:
	mov	eax,dword [esi+16]
	sub	eax,1
	cmp	edx,eax
	jle	_879
	mov	eax,0
	jmp	_317
_879:
	cmp	edx,0
	jl	_880
	mov	eax,dword [esi+20]
	push	_srs_d3d11max2d_TD3D11ImageFrame
	push	edx
	push	eax
	mov	eax,dword [eax]
	call	dword [eax+52]
	add	esp,8
	push	eax
	call	_bbObjectDowncast
	add	esp,8
	mov	edx,dword [_640]
	lea	eax,dword [eax+12]
	push	eax
	push	1
	push	0
	push	edx
	mov	eax,dword [edx]
	call	dword [eax+32]
	jmp	_884
_880:
	mov	edx,dword [_640]
	lea	eax,dword [esi+32]
	push	eax
	push	1
	push	0
	push	edx
	mov	eax,dword [edx]
	call	dword [eax+32]
_884:
	mov	eax,dword [esi+28]
	cmp	dword [_661],eax
	je	_886
	mov	edx,dword [_640]
	lea	eax,dword [esi+28]
	push	eax
	push	1
	push	0
	push	edx
	mov	eax,dword [edx]
	call	dword [eax+40]
	mov	eax,dword [esi+28]
	mov	dword [_661],eax
_886:
	mov	eax,dword [_640]
	mov	edx,dword [esi+80]
	lea	edx,byte [edx+24]
	push	edx
	mov	edx,dword [esi+76]
	lea	edx,byte [edx+24]
	push	edx
	mov	edx,dword [esi+84]
	lea	edx,byte [edx+24]
	push	edx
	push	7
	push	0
	push	eax
	mov	eax,dword [eax]
	call	dword [eax+72]
	mov	edx,dword [_640]
	mov	eax,dword [_637]
	push	dword [eax+16]
	push	edx
	mov	eax,dword [edx]
	call	dword [eax+68]
	mov	eax,dword [_640]
	push	0
	push	0
	push	dword [esi+72]
	push	eax
	mov	eax,dword [eax]
	call	dword [eax+44]
	mov	edx,dword [_640]
	push	0
	push	0
	mov	eax,dword [_637]
	push	dword [eax+12]
	push	edx
	mov	eax,dword [edx]
	call	dword [eax+36]
	mov	eax,dword [_640]
	push	5
	push	eax
	mov	eax,dword [eax]
	call	dword [eax+96]
	mov	ebx,dword [_640]
	push	0
	push	0
	mov	eax,dword [esi+36]
	mov	dword [ebp+-4],eax
	fild	dword [ebp+-4]
	fmul	dword [_1618]
	sub	esp,8
	fstp	qword [esp]
	call	_bbFloatToInt
	add	esp,8
	push	eax
	push	4
	push	ebx
	mov	eax,dword [ebx]
	call	dword [eax+84]
	mov	eax,0
	jmp	_317
_317:
	pop	edi
	pop	esi
	pop	ebx
	mov	esp,ebp
	pop	ebp
	ret
__srs_d3d11max2d_TBatchImage_Destroy:
	push	ebp
	mov	ebp,esp
	push	ebx
	mov	ebx,dword [ebp+8]
	lea	eax,dword [ebx+24]
	push	eax
	call	_67
	add	esp,4
	lea	eax,dword [ebx+32]
	push	eax
	call	_67
	add	esp,4
	lea	eax,dword [ebx+44]
	push	eax
	call	_67
	add	esp,4
	lea	eax,dword [ebx+48]
	push	eax
	call	_67
	add	esp,4
	lea	eax,dword [ebx+52]
	push	eax
	call	_67
	add	esp,4
	lea	eax,dword [ebx+56]
	push	eax
	call	_67
	add	esp,4
	lea	eax,dword [ebx+60]
	push	eax
	call	_67
	add	esp,4
	lea	eax,dword [ebx+64]
	push	eax
	call	_67
	add	esp,4
	lea	eax,dword [ebx+68]
	push	eax
	call	_67
	add	esp,4
	mov	eax,0
	jmp	_320
_320:
	pop	ebx
	mov	esp,ebp
	pop	ebp
	ret
_srs_d3d11max2d_CreateBatchImage:
	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]
	call	_srs_d3d11max2d_VerifyD3D11Max2DDriver
	cmp	eax,0
	jne	_894
	mov	eax,_bbNullObject
	jmp	_328
_894:
	mov	eax,dword [esi]
	cmp	eax,_bbNullObject
	setne	al
	movzx	eax,al
	cmp	eax,0
	jne	_895
	mov	eax,_bbNullObject
	jmp	_328
_895:
	push	_srs_d3d11max2d_TBatchImage
	call	_bbObjectNew
	add	esp,4
	push	dword [ebp+28]
	push	dword [ebp+24]
	push	dword [ebp+20]
	push	edi
	push	ebx
	push	dword [esi]
	push	eax
	mov	eax,dword [eax]
	call	dword [eax+48]
	add	esp,28
	jmp	_328
_328:
	pop	edi
	pop	esi
	pop	ebx
	mov	esp,ebp
	pop	ebp
	ret
_srs_d3d11max2d_UpdateBatchImage:
	push	ebp
	mov	ebp,esp
	sub	esp,24
	mov	edx,dword [ebp+8]
	mov	eax,dword [ebp+12]
	mov	dword [ebp-4],eax
	mov	eax,dword [ebp+16]
	mov	dword [ebp-8],eax
	mov	eax,dword [ebp+20]
	mov	dword [ebp-12],eax
	mov	eax,dword [ebp+24]
	mov	dword [ebp-16],eax
	mov	eax,dword [ebp+28]
	mov	dword [ebp-20],eax
	mov	eax,dword [ebp+32]
	mov	dword [ebp-24],eax
	cmp	edx,_bbNullObject
	setne	al
	movzx	eax,al
	cmp	eax,0
	jne	_897
	mov	eax,0
	jmp	_337
_897:
	cmp	dword [edx+12],0
	jne	_898
	mov	eax,0
	jmp	_337
_898:
	mov	eax,dword [ebp-4]
	inc	dword [eax+4]
	mov	eax,dword [ebp-8]
	inc	dword [eax+4]
	mov	eax,dword [ebp-12]
	inc	dword [eax+4]
	mov	eax,dword [ebp-16]
	inc	dword [eax+4]
	mov	eax,dword [ebp-20]
	inc	dword [eax+4]
	mov	eax,dword [ebp-24]
	inc	dword [eax+4]
	lea	eax,dword [ebp-24]
	push	eax
	lea	eax,dword [ebp-20]
	push	eax
	lea	eax,dword [ebp-16]
	push	eax
	lea	eax,dword [ebp-12]
	push	eax
	lea	eax,dword [ebp-8]
	push	eax
	lea	eax,dword [ebp-4]
	push	eax
	push	edx
	mov	eax,dword [edx]
	call	dword [eax+52]
	add	esp,28
	mov	eax,dword [ebp-4]
	dec	dword [eax+4]
	jnz	_900
	push	dword [ebp-4]
	call	_bbGCFree
	add	esp,4
_900:
	mov	eax,dword [ebp-8]
	dec	dword [eax+4]
	jnz	_901
	push	dword [ebp-8]
	call	_bbGCFree
	add	esp,4
_901:
	mov	eax,dword [ebp-12]
	dec	dword [eax+4]
	jnz	_902
	push	dword [ebp-12]
	call	_bbGCFree
	add	esp,4
_902:
	mov	eax,dword [ebp-16]
	dec	dword [eax+4]
	jnz	_903
	push	dword [ebp-16]
	call	_bbGCFree
	add	esp,4
_903:
	mov	eax,dword [ebp-20]
	dec	dword [eax+4]
	jnz	_904
	push	dword [ebp-20]
	call	_bbGCFree
	add	esp,4
_904:
	mov	eax,dword [ebp-24]
	dec	dword [eax+4]
	jnz	_905
	push	dword [ebp-24]
	call	_bbGCFree
	add	esp,4
_905:
	mov	eax,0
	jmp	_337
_337:
	mov	esp,ebp
	pop	ebp
	ret
_srs_d3d11max2d_DrawBatchImage:
	push	ebp
	mov	ebp,esp
	mov	ecx,dword [ebp+8]
	mov	edx,dword [ebp+12]
	mov	eax,dword [ecx]
	cmp	eax,_bbNullObject
	setne	al
	movzx	eax,al
	cmp	eax,0
	jne	_907
	mov	eax,0
	jmp	_341
_907:
	mov	eax,dword [ecx]
	cmp	dword [eax+12],0
	jne	_908
	mov	eax,0
	jmp	_341
_908:
	mov	eax,dword [ecx]
	push	edx
	push	eax
	mov	eax,dword [eax]
	call	dword [eax+56]
	add	esp,8
	mov	eax,0
	jmp	_341
_341:
	mov	esp,ebp
	pop	ebp
	ret
_srs_d3d11max2d_DestroyBatchImage:
	push	ebp
	mov	ebp,esp
	push	ebx
	push	esi
	mov	esi,dword [ebp+8]
	mov	eax,dword [esi]
	cmp	eax,_bbNullObject
	setne	al
	movzx	eax,al
	cmp	eax,0
	jne	_910
	mov	eax,0
	jmp	_344
_910:
	mov	eax,dword [esi]
	cmp	dword [eax+12],0
	jne	_911
	mov	eax,0
	jmp	_344
_911:
	mov	eax,dword [esi]
	push	eax
	mov	eax,dword [eax]
	call	dword [eax+60]
	add	esp,4
	mov	ebx,_bbNullObject
	inc	dword [ebx+4]
	mov	eax,dword [esi]
	dec	dword [eax+4]
	jnz	_916
	push	eax
	call	_bbGCFree
	add	esp,4
_916:
	mov	dword [esi],ebx
	mov	eax,0
	jmp	_344
_344:
	pop	esi
	pop	ebx
	mov	esp,ebp
	pop	ebp
	ret
_srs_d3d11max2d_FreeBatchResources:
	push	ebp
	mov	ebp,esp
	push	ebx
	cmp	dword [_637],_bbNullObject
	je	_917
	mov	eax,dword [_637]
	push	eax
	mov	eax,dword [eax]
	call	dword [eax+48]
	add	esp,4
_917:
	mov	ebx,_bbNullObject
	inc	dword [ebx+4]
	mov	eax,dword [_637]
	dec	dword [eax+4]
	jnz	_922
	push	eax
	call	_bbGCFree
	add	esp,4
_922:
	mov	dword [_637],ebx
	mov	eax,0
	jmp	_346
_346:
	pop	ebx
	mov	esp,ebp
	pop	ebp
	ret
_srs_d3d11max2d_ImageBuffer:
	push	ebp
	mov	ebp,esp
	mov	eax,dword [ebp+8]
	mov	edx,dword [ebp+12]
	push	_srs_d3d11max2d_TD3D11ImageFrame
	push	edx
	push	eax
	mov	eax,dword [eax]
	call	dword [eax+52]
	add	esp,8
	push	eax
	call	_bbObjectDowncast
	add	esp,8
	mov	eax,dword [eax+16]
	jmp	_350
_350:
	mov	esp,ebp
	pop	ebp
	ret
_srs_d3d11max2d_BackBuffer:
	push	ebp
	mov	ebp,esp
	mov	eax,dword [_643]
	push	eax
	mov	eax,dword [eax]
	call	dword [eax+88]
	add	esp,4
	jmp	_352
_352:
	mov	esp,ebp
	pop	ebp
	ret
_srs_d3d11max2d_SetBuffer:
	push	ebp
	mov	ebp,esp
	sub	esp,4
	push	ebx
	push	esi
	push	edi
	mov	eax,dword [ebp+8]
	mov	dword [ebp-4],eax
	cmp	dword [ebp-4],0
	je	_926
	mov	eax,dword [ebp-4]
	mov	dword [_641],eax
	mov	edx,dword [_640]
	push	0
	lea	eax,dword [ebp-4]
	push	eax
	push	1
	push	edx
	mov	eax,dword [edx]
	call	dword [eax+132]
_926:
	mov	eax,0
	jmp	_355
_355:
	pop	edi
	pop	esi
	pop	ebx
	mov	esp,ebp
	pop	ebp
	ret
__srs_d3d11max2d_TD3D11Max2DShaders_New:
	push	ebp
	mov	ebp,esp
	push	ebx
	mov	ebx,dword [ebp+8]
	push	ebx
	call	_bbObjectCtor
	add	esp,4
	mov	dword [ebx],_64
	push	_65
	call	_brl_textstream_LoadText
	add	esp,4
	inc	dword [eax+4]
	mov	dword [ebx+8],eax
	push	_66
	call	_brl_textstream_LoadText
	add	esp,4
	inc	dword [eax+4]
	mov	dword [ebx+12],eax
	mov	eax,0
	jmp	_358
_358:
	pop	ebx
	mov	esp,ebp
	pop	ebp
	ret
__srs_d3d11max2d_TD3D11Max2DShaders_Delete:
	push	ebp
	mov	ebp,esp
	push	ebx
	mov	ebx,dword [ebp+8]
_361:
	mov	eax,dword [ebx+12]
	dec	dword [eax+4]
	jnz	_932
	push	eax
	call	_bbGCFree
	add	esp,4
_932:
	mov	eax,dword [ebx+8]
	dec	dword [eax+4]
	jnz	_934
	push	eax
	call	_bbGCFree
	add	esp,4
_934:
	mov	eax,0
	jmp	_930
_930:
	pop	ebx
	mov	esp,ebp
	pop	ebp
	ret
_67:
	push	ebp
	mov	ebp,esp
	push	ebx
	push	esi
	push	edi
	mov	ebx,dword [ebp+8]
	cmp	dword [ebx],0
	je	_935
	mov	eax,dword [ebx]
	push	eax
	mov	eax,dword [eax]
	call	dword [eax+8]
_935:
	mov	dword [ebx],0
	mov	eax,0
	jmp	_364
_364:
	pop	edi
	pop	esi
	pop	ebx
	mov	esp,ebp
	pop	ebp
	ret
__srs_d3d11max2d_TD3D11RingBuffer_New:
	push	ebp
	mov	ebp,esp
	push	ebx
	mov	ebx,dword [ebp+8]
	push	ebx
	call	_bbObjectCtor
	add	esp,4
	mov	dword [ebx],_68
	mov	dword [ebx+8],0
	mov	dword [ebx+12],0
	mov	eax,0
	jmp	_367
_367:
	pop	ebx
	mov	esp,ebp
	pop	ebp
	ret
__srs_d3d11max2d_TD3D11RingBuffer_Delete:
	push	ebp
	mov	ebp,esp
_370:
	mov	eax,0
	jmp	_937
_937:
	mov	esp,ebp
	pop	ebp
	ret
__srs_d3d11max2d_TD3D11RingBuffer_Create:
	push	ebp
	mov	ebp,esp
	sub	esp,4
	push	ebx
	push	esi
	push	edi
	mov	ebx,dword [ebp+8]
	push	_srs_directx11_D3D11_BUFFER_DESC
	call	_bbObjectNew
	add	esp,4
	mov	dword [ebp-4],eax
	mov	eax,dword [ebp-4]
	mov	dword [eax+8],1048576
	mov	eax,dword [ebp-4]
	mov	dword [eax+12],2
	mov	eax,dword [ebp-4]
	mov	dword [eax+16],1
	mov	eax,dword [ebp-4]
	mov	dword [eax+20],65536
	mov	edx,dword [_639]
	lea	eax,dword [ebx+8]
	push	eax
	push	0
	mov	eax,dword [ebp-4]
	lea	eax,dword [eax+8]
	push	eax
	push	edx
	mov	eax,dword [edx]
	call	dword [eax+12]
	cmp	eax,0
	jge	_940
	push	_69
	call	_bbExThrow
	add	esp,4
_940:
	mov	eax,ebx
	jmp	_373
_373:
	pop	edi
	pop	esi
	pop	ebx
	mov	esp,ebp
	pop	ebp
	ret
__srs_d3d11max2d_TD3D11RingBuffer_Allocate:
	push	ebp
	mov	ebp,esp
	sub	esp,8
	push	ebx
	push	esi
	push	edi
	mov	ebx,dword [ebp+8]
	mov	eax,dword [ebp+12]
	mov	dword [ebp-8],eax
	push	_srs_directx11_D3D11_MAPPED_SUBRESOURCE
	call	_bbObjectNew
	add	esp,4
	mov	dword [ebp-4],eax
	mov	eax,5
	mov	ecx,dword [ebx+12]
	mov	edx,dword [ebp-8]
	add	ecx,dword [edx+16]
	cmp	ecx,1048576
	jle	_943
	mov	eax,4
	mov	dword [ebx+12],0
_943:
	mov	ecx,dword [_640]
	mov	edx,dword [ebp-4]
	lea	edx,dword [edx+8]
	push	edx
	push	0
	push	eax
	push	0
	push	dword [ebx+8]
	push	ecx
	mov	eax,dword [ecx]
	call	dword [eax+56]
	cmp	eax,0
	jge	_945
	push	0
	push	_70
	call	_brl_system_Notify
	add	esp,8
	call	_bbEnd
_945:
	mov	eax,dword [ebp-8]
	push	dword [eax+16]
	mov	eax,dword [ebp-8]
	lea	eax,byte [eax+24]
	push	eax
	mov	eax,dword [ebp-4]
	mov	eax,dword [eax+8]
	add	eax,dword [ebx+12]
	push	eax
	call	_bbMemCopy
	add	esp,12
	mov	eax,dword [_640]
	push	0
	push	dword [ebx+8]
	push	eax
	mov	eax,dword [eax]
	call	dword [eax+60]
	mov	eax,dword [ebp-8]
	mov	eax,dword [eax+16]
	add	dword [ebx+12],eax
	mov	eax,dword [ebx+12]
	mov	edx,dword [ebp-8]
	sub	eax,dword [edx+16]
	jmp	_377
_377:
	pop	edi
	pop	esi
	pop	ebx
	mov	esp,ebp
	pop	ebp
	ret
__srs_d3d11max2d_TD3D11RingBuffer_Destroy:
	push	ebp
	mov	ebp,esp
	push	ebx
	push	esi
	push	edi
	mov	eax,dword [ebp+8]
	cmp	dword [eax+8],0
	je	_947
	mov	eax,dword [eax+8]
	push	eax
	mov	eax,dword [eax]
	call	dword [eax+8]
_947:
	mov	eax,0
	jmp	_380
_380:
	pop	edi
	pop	esi
	pop	ebx
	mov	esp,ebp
	pop	ebp
	ret
_71:
	push	ebp
	mov	ebp,esp
	sub	esp,8
	push	ebx
	push	esi
	push	edi
	mov	esi,dword [ebp+8]
	mov	edi,dword [ebp+12]
	mov	ebx,dword [ebp+28]
	mov	dword [ebp-8],_bbNullObject
	push	_srs_directx11_D3D11_BUFFER_DESC
	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	edx,dword [ebp-4]
	mov	eax,dword [ebp+20]
	mov	dword [edx+16],eax
	mov	edx,dword [ebp-4]
	mov	eax,dword [ebp+24]
	mov	dword [edx+20],eax
	cmp	ebx,0
	je	_952
	push	_srs_directx11_D3D11_SUBRESOURCE_DATA
	call	_bbObjectNew
	add	esp,4
	mov	dword [ebp-8],eax
	mov	eax,dword [ebp-8]
	mov	dword [eax+8],ebx
	mov	eax,dword [_639]
	lea	edx,dword [esi]
	push	edx
	mov	edx,dword [ebp-8]
	lea	edx,dword [edx+8]
	push	edx
	mov	edx,dword [ebp-4]
	lea	edx,dword [edx+8]
	push	edx
	push	eax
	mov	eax,dword [eax]
	call	dword [eax+12]
	jmp	_954
_952:
	mov	edx,dword [_639]
	lea	eax,dword [esi]
	push	eax
	push	0
	mov	eax,dword [ebp-4]
	lea	eax,dword [eax+8]
	push	eax
	push	edx
	mov	eax,dword [edx]
	call	dword [eax+12]
_954:
	cmp	eax,0
	jge	_956
	push	_73
	push	dword [ebp+32]
	push	_72
	call	_bbStringConcat
	add	esp,8
	push	eax
	call	_bbStringConcat
	add	esp,8
	push	eax
	call	_bbWriteStdout
	add	esp,4
	mov	eax,-1
	jmp	_389
_956:
	mov	eax,1
	jmp	_389
_389:
	pop	edi
	pop	esi
	pop	ebx
	mov	esp,ebp
	pop	ebp
	ret
_74:
	push	ebp
	mov	ebp,esp
	sub	esp,4
	push	ebx
	push	esi
	push	edi
	mov	esi,dword [ebp+8]
	mov	ebx,dword [ebp+16]
	mov	edi,dword [ebp+20]
	mov	eax,dword [esi]
	cmp	eax,0
	setne	al
	movzx	eax,al
	cmp	eax,0
	jne	_958
	mov	eax,0
	jmp	_398
_958:
	push	_srs_directx11_D3D11_MAPPED_SUBRESOURCE
	call	_bbObjectNew
	add	esp,4
	mov	dword [ebp-4],eax
	mov	eax,dword [_640]
	mov	edx,dword [ebp-4]
	lea	edx,dword [edx+8]
	push	edx
	push	edi
	push	ebx
	push	dword [ebp+12]
	push	dword [esi]
	push	eax
	mov	eax,dword [eax]
	call	dword [eax+56]
	cmp	eax,0
	jge	_961
	push	0
	push	_76
	push	dword [ebp+32]
	push	_75
	call	_bbStringConcat
	add	esp,8
	push	eax
	call	_bbStringConcat
	add	esp,8
	push	eax
	call	_brl_system_Notify
	add	esp,8
	call	_bbEnd
	jmp	_962
_961:
	push	dword [ebp+28]
	push	dword [ebp+24]
	mov	eax,dword [ebp-4]
	push	dword [eax+8]
	call	_bbMemCopy
	add	esp,12
	mov	eax,dword [_640]
	push	dword [ebp+12]
	push	dword [esi]
	push	eax
	mov	eax,dword [eax]
	call	dword [eax+60]
_962:
	mov	eax,1
	jmp	_398
_398:
	pop	edi
	pop	esi
	pop	ebx
	mov	esp,ebp
	pop	ebp
	ret
_77:
	push	ebp
	mov	ebp,esp
	mov	eax,dword [_685]
	fld	dword [eax+16+24]
	fld1
	fxch	st1
	fucompp
	fnstsw	ax
	sahf
	setnz	al
	movzx	eax,al
	cmp	eax,0
	jne	_964
	mov	eax,0
	jmp	_400
_964:
	mov	eax,dword [_685]
	fld1
	fstp	dword [eax+16+24]
	push	_1
	mov	eax,dword [_685]
	push	dword [eax+16]
	mov	eax,dword [_685]
	lea	eax,byte [eax+24]
	push	eax
	push	0
	push	4
	push	0
	lea	eax,dword [_672]
	push	eax
	call	_74
	add	esp,28
	mov	eax,0
	jmp	_400
_400:
	mov	esp,ebp
	pop	ebp
	ret
_78:
	push	ebp
	mov	ebp,esp
	mov	eax,dword [_685]
	fld	dword [eax+16+24]
	fldz
	fxch	st1
	fucompp
	fnstsw	ax
	sahf
	setnz	al
	movzx	eax,al
	cmp	eax,0
	jne	_965
	mov	eax,0
	jmp	_402
_965:
	mov	eax,dword [_685]
	fldz
	fstp	dword [eax+16+24]
	push	_1
	mov	eax,dword [_685]
	push	dword [eax+16]
	mov	eax,dword [_685]
	lea	eax,byte [eax+24]
	push	eax
	push	0
	push	4
	push	0
	lea	eax,dword [_672]
	push	eax
	call	_74
	add	esp,28
	mov	eax,0
	jmp	_402
_402:
	mov	esp,ebp
	pop	ebp
	ret
_79:
	push	ebp
	mov	ebp,esp
	sub	esp,56
	push	ebx
	push	esi
	push	edi
	cmp	dword [_658],0
	je	_966
	mov	eax,0
	jmp	_404
_966:
	mov	eax,dword [_638]
	cmp	eax,_bbNullObject
	setne	al
	movzx	eax,al
	cmp	eax,0
	jne	_967
	push	_64
	call	_bbObjectNew
	add	esp,4
	mov	ebx,eax
	inc	dword [ebx+4]
	mov	eax,dword [_638]
	dec	dword [eax+4]
	jnz	_971
	push	eax
	call	_bbGCFree
	add	esp,4
_971:
	mov	dword [_638],ebx
_967:
	push	_68
	call	_bbObjectNew
	add	esp,4
	push	eax
	mov	eax,dword [eax]
	call	dword [eax+48]
	add	esp,4
	mov	ebx,eax
	inc	dword [ebx+4]
	mov	eax,dword [_697]
	dec	dword [eax+4]
	jnz	_976
	push	eax
	call	_bbGCFree
	add	esp,4
_976:
	mov	dword [_697],ebx
	push	_srs_directx11_D3D11_DEPTH_STENCIL_DESC
	call	_bbObjectNew
	add	esp,4
	mov	dword [ebp-4],eax
	mov	eax,dword [ebp-4]
	mov	dword [eax+8],0
	mov	eax,dword [ebp-4]
	mov	dword [eax+20],0
	mov	dword [ebp-8],0
	mov	edx,dword [_639]
	lea	eax,dword [ebp-8]
	push	eax
	mov	eax,dword [ebp-4]
	lea	eax,dword [eax+8]
	push	eax
	push	edx
	mov	eax,dword [edx]
	call	dword [eax+84]
	cmp	eax,0
	jge	_980
	push	_80
	call	_bbWriteStdout
	add	esp,4
	mov	eax,0
	jmp	_404
_980:
	mov	eax,dword [_640]
	push	0
	push	dword [ebp-8]
	push	eax
	mov	eax,dword [eax]
	call	dword [eax+144]
	mov	eax,dword [_643]
	push	dword [ebp-8]
	push	eax
	mov	eax,dword [eax]
	call	dword [eax+96]
	add	esp,8
	push	_srs_directx11_D3D11_RASTERIZER_DESC
	call	_bbObjectNew
	add	esp,4
	mov	dword [ebp-12],eax
	mov	eax,dword [ebp-12]
	mov	dword [eax+8],3
	mov	eax,dword [ebp-12]
	mov	dword [eax+12],1
	mov	eax,dword [ebp-12]
	mov	dword [eax+36],1
	mov	edx,dword [_639]
	lea	eax,dword [_664]
	push	eax
	mov	eax,dword [ebp-12]
	lea	eax,dword [eax+8]
	push	eax
	push	edx
	mov	eax,dword [edx]
	call	dword [eax+88]
	cmp	eax,0
	jge	_985
	push	_81
	call	_bbWriteStdout
	add	esp,4
	mov	eax,0
	jmp	_404
_985:
	mov	esi,dword [_640]
	push	4
	push	_156
	call	_bbArrayNew1D
	add	esp,8
	mov	ebx,eax
	mov	dword [ebx+24],0
	mov	dword [ebx+28],0
	call	_brl_graphics_GraphicsWidth
	mov	dword [ebx+32],eax
	call	_brl_graphics_GraphicsHeight
	mov	dword [ebx+36],eax
	mov	dword [ebp-16],ebx
	mov	eax,dword [ebp-16]
	lea	eax,byte [eax+24]
	push	eax
	push	1
	push	esi
	mov	eax,dword [esi]
	call	dword [eax+180]
	mov	eax,dword [_640]
	push	dword [_664]
	push	eax
	mov	eax,dword [eax]
	call	dword [eax+172]
	mov	eax,dword [_643]
	push	dword [_664]
	push	eax
	mov	eax,dword [eax]
	call	dword [eax+96]
	add	esp,8
	mov	dword [ebp-20],0
	mov	dword [ebp-32],0
	mov	dword [ebp-24],0
	mov	eax,dword [_638]
	push	dword [eax+8]
	call	_bbStringToCString
	add	esp,4
	mov	edi,eax
	push	_82
	call	_bbStringToCString
	add	esp,4
	mov	esi,eax
	push	_33
	call	_bbStringToCString
	add	esp,4
	mov	ebx,eax
	lea	eax,dword [ebp-24]
	push	eax
	lea	eax,dword [ebp-20]
	push	eax
	push	0
	push	32768
	push	ebx
	push	esi
	push	0
	push	0
	push	0
	mov	eax,dword [_638]
	mov	eax,dword [eax+8]
	push	dword [eax+8]
	push	edi
	call	dword [_srs_directx11_D3DCompile]
	mov	dword [ebp-44],eax
	push	edi
	call	_bbMemFree
	add	esp,4
	push	esi
	call	_bbMemFree
	add	esp,4
	push	ebx
	call	_bbMemFree
	add	esp,4
	mov	ebx,dword [ebp-44]
	cmp	dword [ebp-24],0
	je	_999
	mov	eax,dword [ebp-24]
	push	eax
	mov	eax,dword [eax]
	call	dword [eax+12]
	push	eax
	call	_bbStringFromCString
	add	esp,4
	push	eax
	call	_bbWriteStdout
	add	esp,4
	lea	eax,dword [ebp-24]
	push	eax
	call	_67
	add	esp,4
_999:
	cmp	ebx,0
	jge	_1002
	push	_83
	call	_bbWriteStdout
	add	esp,4
	mov	eax,0
	jmp	_404
_1002:
	mov	esi,dword [_639]
	mov	ebx,dword [ebp-20]
	mov	edx,dword [ebp-20]
	lea	eax,dword [_665]
	push	eax
	push	0
	push	edx
	mov	eax,dword [edx]
	call	dword [eax+16]
	push	eax
	push	ebx
	mov	eax,dword [ebx]
	call	dword [eax+12]
	push	eax
	push	esi
	mov	eax,dword [esi]
	call	dword [eax+48]
	cmp	eax,0
	jge	_1006
	push	_84
	call	_bbWriteStdout
	add	esp,4
	mov	eax,0
	jmp	_404
_1006:
	push	14
	push	_156
	call	_bbArrayNew1D
	add	esp,8
	mov	dword [eax+24],0
	mov	dword [eax+28],0
	mov	dword [eax+32],16
	mov	dword [eax+36],0
	mov	dword [eax+40],-1
	mov	dword [eax+44],0
	mov	dword [eax+48],0
	mov	dword [eax+52],0
	mov	dword [eax+56],0
	mov	dword [eax+60],16
	mov	dword [eax+64],0
	mov	dword [eax+68],-1
	mov	dword [eax+72],0
	mov	dword [eax+76],0
	mov	dword [ebp-28],eax
	mov	ebx,dword [ebp-28]
	push	_40
	call	_bbStringToCString
	add	esp,4
	mov	eax,eax
	mov	dword [ebx+24],eax
	mov	ebx,dword [ebp-28]
	push	_41
	call	_bbStringToCString
	add	esp,4
	mov	eax,eax
	mov	dword [ebx+28+24],eax
	mov	esi,dword [_639]
	mov	ebx,dword [ebp-20]
	mov	edx,dword [ebp-20]
	lea	eax,dword [_669]
	push	eax
	push	edx
	mov	eax,dword [edx]
	call	dword [eax+16]
	push	eax
	push	ebx
	mov	eax,dword [ebx]
	call	dword [eax+12]
	push	eax
	push	2
	mov	eax,dword [ebp-28]
	lea	eax,byte [eax+24]
	push	eax
	push	esi
	mov	eax,dword [esi]
	call	dword [eax+44]
	mov	ebx,eax
	mov	eax,dword [ebp-28]
	mov	eax,dword [eax+24]
	push	eax
	call	_bbMemFree
	add	esp,4
	mov	eax,dword [ebp-28]
	mov	eax,dword [eax+28+24]
	push	eax
	call	_bbMemFree
	add	esp,4
	cmp	ebx,0
	jge	_1012
	push	_85
	call	_bbWriteStdout
	add	esp,4
	mov	eax,0
	jmp	_404
_1012:
	mov	eax,dword [_638]
	push	dword [eax+12]
	call	_bbStringToCString
	add	esp,4
	mov	edi,eax
	push	_86
	call	_bbStringToCString
	add	esp,4
	mov	esi,eax
	push	_44
	call	_bbStringToCString
	add	esp,4
	mov	ebx,eax
	lea	eax,dword [ebp-24]
	push	eax
	lea	eax,dword [ebp-32]
	push	eax
	push	0
	push	32768
	push	ebx
	push	esi
	push	0
	push	0
	push	0
	mov	eax,dword [_638]
	mov	eax,dword [eax+12]
	push	dword [eax+8]
	push	edi
	call	dword [_srs_directx11_D3DCompile]
	mov	dword [ebp-48],eax
	push	edi
	call	_bbMemFree
	add	esp,4
	push	esi
	call	_bbMemFree
	add	esp,4
	push	ebx
	call	_bbMemFree
	add	esp,4
	mov	ebx,dword [ebp-48]
	cmp	dword [ebp-24],0
	je	_1017
	mov	eax,dword [ebp-24]
	push	eax
	mov	eax,dword [eax]
	call	dword [eax+12]
	push	eax
	call	_bbStringFromCString
	add	esp,4
	push	eax
	call	_bbWriteStdout
	add	esp,4
	lea	eax,dword [ebp-24]
	push	eax
	call	_67
	add	esp,4
_1017:
	cmp	ebx,0
	jge	_1020
	push	0
	push	_87
	call	_brl_system_Notify
	add	esp,8
	call	_bbEnd
_1020:
	mov	esi,dword [_639]
	mov	ebx,dword [ebp-32]
	mov	edx,dword [ebp-32]
	lea	eax,dword [_666]
	push	eax
	push	0
	push	edx
	mov	eax,dword [edx]
	call	dword [eax+16]
	push	eax
	push	ebx
	mov	eax,dword [ebx]
	call	dword [eax+12]
	push	eax
	push	esi
	mov	eax,dword [esi]
	call	dword [eax+60]
	cmp	eax,0
	jge	_1024
	push	1
	push	_88
	call	_brl_system_Notify
	add	esp,8
	call	_bbEnd
_1024:
	mov	eax,dword [_638]
	push	dword [eax+12]
	call	_bbStringToCString
	add	esp,4
	mov	edi,eax
	push	_89
	call	_bbStringToCString
	add	esp,4
	mov	esi,eax
	push	_44
	call	_bbStringToCString
	add	esp,4
	mov	ebx,eax
	lea	eax,dword [ebp-24]
	push	eax
	lea	eax,dword [ebp-32]
	push	eax
	push	0
	push	32768
	push	ebx
	push	esi
	push	0
	push	0
	push	0
	mov	eax,dword [_638]
	mov	eax,dword [eax+12]
	push	dword [eax+8]
	push	edi
	call	dword [_srs_directx11_D3DCompile]
	mov	dword [ebp-52],eax
	push	edi
	call	_bbMemFree
	add	esp,4
	push	esi
	call	_bbMemFree
	add	esp,4
	push	ebx
	call	_bbMemFree
	add	esp,4
	mov	ebx,dword [ebp-52]
	cmp	dword [ebp-24],0
	je	_1029
	mov	eax,dword [ebp-24]
	push	eax
	mov	eax,dword [eax]
	call	dword [eax+12]
	push	eax
	call	_bbStringFromCString
	add	esp,4
	push	eax
	call	_bbWriteStdout
	add	esp,4
	lea	eax,dword [ebp-24]
	push	eax
	call	_67
	add	esp,4
_1029:
	cmp	ebx,0
	jge	_1032
	push	0
	push	_45
	call	_brl_system_Notify
	add	esp,8
	call	_bbEnd
_1032:
	mov	esi,dword [_639]
	mov	ebx,dword [ebp-32]
	mov	edx,dword [ebp-32]
	lea	eax,dword [_667]
	push	eax
	push	0
	push	edx
	mov	eax,dword [edx]
	call	dword [eax+16]
	push	eax
	push	ebx
	mov	eax,dword [ebx]
	call	dword [eax+12]
	push	eax
	push	esi
	mov	eax,dword [esi]
	call	dword [eax+60]
	cmp	eax,0
	jge	_1036
	push	1
	push	_46
	call	_brl_system_Notify
	add	esp,8
	call	_bbEnd
_1036:
	mov	eax,dword [_638]
	push	dword [eax+12]
	call	_bbStringToCString
	add	esp,4
	mov	edi,eax
	push	_90
	call	_bbStringToCString
	add	esp,4
	mov	esi,eax
	push	_44
	call	_bbStringToCString
	add	esp,4
	mov	ebx,eax
	lea	eax,dword [ebp-24]
	push	eax
	lea	eax,dword [ebp-32]
	push	eax
	push	0
	push	32768
	push	ebx
	push	esi
	push	0
	push	0
	push	0
	mov	eax,dword [_638]
	mov	eax,dword [eax+12]
	push	dword [eax+8]
	push	edi
	call	dword [_srs_directx11_D3DCompile]
	mov	dword [ebp-56],eax
	push	edi
	call	_bbMemFree
	add	esp,4
	push	esi
	call	_bbMemFree
	add	esp,4
	push	ebx
	call	_bbMemFree
	add	esp,4
	mov	ebx,dword [ebp-56]
	cmp	dword [ebp-24],0
	je	_1041
	mov	eax,dword [ebp-24]
	push	eax
	mov	eax,dword [eax]
	call	dword [eax+12]
	push	eax
	call	_bbStringFromCString
	add	esp,4
	push	eax
	call	_bbWriteStdout
	add	esp,4
	lea	eax,dword [ebp-24]
	push	eax
	call	_67
	add	esp,4
_1041:
	cmp	ebx,0
	jge	_1044
	push	0
	push	_91
	call	_brl_system_Notify
	add	esp,8
	call	_bbEnd
_1044:
	mov	esi,dword [_639]
	mov	ebx,dword [ebp-32]
	mov	edx,dword [ebp-32]
	lea	eax,dword [_668]
	push	eax
	push	0
	push	edx
	mov	eax,dword [edx]
	call	dword [eax+16]
	push	eax
	push	ebx
	mov	eax,dword [ebx]
	call	dword [eax+12]
	push	eax
	push	esi
	mov	eax,dword [esi]
	call	dword [eax+60]
	cmp	eax,0
	jge	_1048
	push	1
	push	_92
	call	_brl_system_Notify
	add	esp,8
	call	_bbEnd
_1048:
	lea	eax,dword [ebp-20]
	push	eax
	call	_67
	add	esp,4
	lea	eax,dword [ebp-32]
	push	eax
	call	_67
	add	esp,4
	lea	eax,dword [ebp-24]
	push	eax
	call	_67
	add	esp,4
	push	_93
	push	0
	push	65536
	push	1
	push	2
	push	64
	lea	eax,dword [_671]
	push	eax
	call	_71
	add	esp,28
	push	16
	push	_216
	call	_bbArrayNew1D
	add	esp,8
	mov	ebx,eax
	fld	dword [_1696]
	fdiv	dword [_655]
	fstp	dword [ebx+24]
	fldz
	fstp	dword [ebx+28]
	fldz
	fstp	dword [ebx+32]
	fld	dword [_1697]
	fld	dword [_1698]
	fdiv	dword [_655]
	fsubp	st1,st0
	fld	dword [_1699]
	fdiv	dword [_655]
	faddp	st1,st0
	fstp	dword [ebx+36]
	fldz
	fstp	dword [ebx+40]
	fld	dword [_1700]
	fdiv	dword [_656]
	fstp	dword [ebx+44]
	fldz
	fstp	dword [ebx+48]
	fld	dword [_1701]
	fld	dword [_1702]
	fdiv	dword [_656]
	faddp	st1,st0
	fld	dword [_1703]
	fdiv	dword [_656]
	fsubp	st1,st0
	fstp	dword [ebx+52]
	fldz
	fstp	dword [ebx+56]
	fldz
	fstp	dword [ebx+60]
	fld1
	fstp	dword [ebx+64]
	fldz
	fstp	dword [ebx+68]
	fldz
	fstp	dword [ebx+72]
	fldz
	fstp	dword [ebx+76]
	fldz
	fstp	dword [ebx+80]
	fld1
	fstp	dword [ebx+84]
	inc	dword [ebx+4]
	mov	eax,dword [_689]
	dec	dword [eax+4]
	jnz	_1053
	push	eax
	call	_bbGCFree
	add	esp,4
_1053:
	mov	dword [_689],ebx
	push	_94
	mov	eax,dword [_689]
	lea	eax,byte [eax+24]
	push	eax
	push	65536
	push	4
	push	2
	push	64
	lea	eax,dword [_677]
	push	eax
	call	_71
	add	esp,28
	push	8
	push	_216
	call	_bbArrayNew1D
	add	esp,8
	mov	ebx,eax
	fld1
	fstp	dword [ebx+24]
	fld1
	fstp	dword [ebx+28]
	fld1
	fstp	dword [ebx+32]
	fld1
	fstp	dword [ebx+36]
	fld1
	fstp	dword [ebx+40]
	fldz
	fstp	dword [ebx+44]
	fldz
	fstp	dword [ebx+48]
	fldz
	fstp	dword [ebx+52]
	inc	dword [ebx+4]
	mov	eax,dword [_685]
	dec	dword [eax+4]
	jnz	_1058
	push	eax
	call	_bbGCFree
	add	esp,4
_1058:
	mov	dword [_685],ebx
	push	_95
	mov	eax,dword [_685]
	lea	eax,byte [eax+24]
	push	eax
	push	65536
	push	4
	push	2
	push	32
	lea	eax,dword [_672]
	push	eax
	call	_71
	add	esp,28
	push	_srs_directx11_D3D11_SAMPLER_DESC
	call	_bbObjectNew
	add	esp,4
	mov	dword [ebp-36],eax
	mov	eax,dword [ebp-36]
	mov	dword [eax+8],0
	mov	eax,dword [ebp-36]
	mov	dword [eax+12],3
	mov	eax,dword [ebp-36]
	mov	dword [eax+16],3
	mov	eax,dword [ebp-36]
	mov	dword [eax+20],3
	mov	eax,dword [ebp-36]
	fldz
	fstp	dword [eax+24]
	mov	eax,dword [ebp-36]
	mov	dword [eax+28],1
	mov	eax,dword [ebp-36]
	mov	dword [eax+32],7
	mov	eax,dword [ebp-36]
	fldz
	fstp	dword [eax+36]
	mov	eax,dword [ebp-36]
	fldz
	fstp	dword [eax+40]
	mov	eax,dword [ebp-36]
	fldz
	fstp	dword [eax+44]
	mov	eax,dword [ebp-36]
	fldz
	fstp	dword [eax+48]
	mov	eax,dword [ebp-36]
	fldz
	fstp	dword [eax+52]
	mov	eax,dword [ebp-36]
	fld	dword [_1704]
	fstp	dword [eax+56]
	mov	edx,dword [_639]
	lea	eax,dword [_662]
	push	eax
	mov	eax,dword [ebp-36]
	lea	eax,dword [eax+8]
	push	eax
	push	edx
	mov	eax,dword [edx]
	call	dword [eax+92]
	cmp	eax,0
	jge	_1061
	push	1
	push	_96
	call	_brl_system_Notify
	add	esp,8
	call	_bbEnd
_1061:
	mov	eax,dword [ebp-36]
	mov	dword [eax+8],21
	mov	edx,dword [_639]
	lea	eax,dword [_663]
	push	eax
	mov	eax,dword [ebp-36]
	lea	eax,dword [eax+8]
	push	eax
	push	edx
	mov	eax,dword [edx]
	call	dword [eax+92]
	cmp	eax,0
	jge	_1063
	push	1
	push	_97
	call	_brl_system_Notify
	add	esp,8
	call	_bbEnd
_1063:
	mov	eax,dword [_640]
	push	dword [_669]
	push	eax
	mov	eax,dword [eax]
	call	dword [eax+68]
	mov	eax,dword [_640]
	push	0
	push	0
	push	dword [_665]
	push	eax
	mov	eax,dword [eax]
	call	dword [eax+44]
	mov	edx,dword [_640]
	lea	eax,dword [_677]
	push	eax
	push	1
	push	0
	push	edx
	mov	eax,dword [edx]
	call	dword [eax+28]
	mov	eax,dword [_640]
	push	0
	push	0
	push	dword [_666]
	push	eax
	mov	eax,dword [eax]
	call	dword [eax+36]
	mov	edx,dword [_640]
	lea	eax,dword [_662]
	push	eax
	push	1
	push	0
	push	edx
	mov	eax,dword [edx]
	call	dword [eax+40]
	mov	edx,dword [_640]
	lea	eax,dword [_672]
	push	eax
	push	1
	push	0
	push	edx
	mov	eax,dword [edx]
	call	dword [eax+64]
	push	_srs_directx11_D3D11_BLEND_DESC
	call	_bbObjectNew
	add	esp,4
	mov	dword [ebp-40],eax
	mov	eax,dword [ebp-40]
	mov	dword [eax+12],1
	mov	eax,dword [ebp-40]
	mov	dword [eax+16],0
	mov	eax,dword [ebp-40]
	mov	dword [eax+20],2
	mov	eax,dword [ebp-40]
	mov	dword [eax+24],1
	mov	eax,dword [ebp-40]
	mov	dword [eax+28],1
	mov	eax,dword [ebp-40]
	mov	dword [eax+32],2
	mov	eax,dword [ebp-40]
	mov	dword [eax+36],1
	mov	eax,dword [ebp-40]
	mov	dword [eax+40],1
	mov	eax,dword [ebp-40]
	mov	dword [eax+44],15
	mov	edx,dword [_639]
	lea	eax,dword [_679]
	push	eax
	mov	eax,dword [ebp-40]
	lea	eax,dword [eax+8]
	push	eax
	push	edx
	mov	eax,dword [edx]
	call	dword [eax+80]
	mov	eax,dword [ebp-40]
	mov	dword [eax+16],0
	mov	edx,dword [_639]
	lea	eax,dword [_680]
	push	eax
	mov	eax,dword [ebp-40]
	lea	eax,dword [eax+8]
	push	eax
	push	edx
	mov	eax,dword [edx]
	call	dword [eax+80]
	mov	eax,dword [ebp-40]
	mov	dword [eax+16],1
	mov	eax,dword [ebp-40]
	mov	dword [eax+20],5
	mov	eax,dword [ebp-40]
	mov	dword [eax+24],6
	mov	edx,dword [_639]
	lea	eax,dword [_681]
	push	eax
	mov	eax,dword [ebp-40]
	lea	eax,dword [eax+8]
	push	eax
	push	edx
	mov	eax,dword [edx]
	call	dword [eax+80]
	mov	eax,dword [ebp-40]
	mov	dword [eax+16],1
	mov	eax,dword [ebp-40]
	mov	dword [eax+20],5
	mov	eax,dword [ebp-40]
	mov	dword [eax+24],2
	mov	edx,dword [_639]
	lea	eax,dword [_682]
	push	eax
	mov	eax,dword [ebp-40]
	lea	eax,dword [eax+8]
	push	eax
	push	edx
	mov	eax,dword [edx]
	call	dword [eax+80]
	mov	eax,dword [ebp-40]
	mov	dword [eax+16],1
	mov	eax,dword [ebp-40]
	mov	dword [eax+20],1
	mov	eax,dword [ebp-40]
	mov	dword [eax+24],3
	mov	edx,dword [_639]
	lea	eax,dword [_683]
	push	eax
	mov	eax,dword [ebp-40]
	lea	eax,dword [eax+8]
	push	eax
	push	edx
	mov	eax,dword [edx]
	call	dword [eax+80]
	mov	dword [_657],2
	mov	eax,dword [_643]
	push	eax
	mov	eax,dword [eax]
	call	dword [eax+88]
	add	esp,4
	mov	dword [_641],eax
	mov	dword [_658],1
	mov	eax,1
	jmp	_404
_404:
	pop	edi
	pop	esi
	pop	ebx
	mov	esp,ebp
	pop	ebp
	ret
_98:
	push	ebp
	mov	ebp,esp
	call	_srs_d3d11max2d_FreeBatchResources
	lea	eax,dword [_665]
	push	eax
	call	_67
	add	esp,4
	lea	eax,dword [_668]
	push	eax
	call	_67
	add	esp,4
	lea	eax,dword [_666]
	push	eax
	call	_67
	add	esp,4
	lea	eax,dword [_667]
	push	eax
	call	_67
	add	esp,4
	lea	eax,dword [_669]
	push	eax
	call	_67
	add	esp,4
	lea	eax,dword [_671]
	push	eax
	call	_67
	add	esp,4
	lea	eax,dword [_662]
	push	eax
	call	_67
	add	esp,4
	lea	eax,dword [_663]
	push	eax
	call	_67
	add	esp,4
	lea	eax,dword [_672]
	push	eax
	call	_67
	add	esp,4
	lea	eax,dword [_673]
	push	eax
	call	_67
	add	esp,4
	lea	eax,dword [_675]
	push	eax
	call	_67
	add	esp,4
	lea	eax,dword [_674]
	push	eax
	call	_67
	add	esp,4
	lea	eax,dword [_677]
	push	eax
	call	_67
	add	esp,4
	lea	eax,dword [_679]
	push	eax
	call	_67
	add	esp,4
	lea	eax,dword [_680]
	push	eax
	call	_67
	add	esp,4
	lea	eax,dword [_681]
	push	eax
	call	_67
	add	esp,4
	lea	eax,dword [_682]
	push	eax
	call	_67
	add	esp,4
	lea	eax,dword [_683]
	push	eax
	call	_67
	add	esp,4
	cmp	dword [_697],_bbNullObject
	je	_1077
	mov	eax,dword [_697]
	push	eax
	mov	eax,dword [eax]
	call	dword [eax+56]
	add	esp,4
_1077:
	mov	dword [_660],0
	mov	dword [_658],0
	mov	eax,0
	jmp	_406
_406:
	mov	esp,ebp
	pop	ebp
	ret
__srs_d3d11max2d_TD3D11ImageFrame_New:
	push	ebp
	mov	ebp,esp
	push	ebx
	mov	ebx,dword [ebp+8]
	push	ebx
	call	__brl_max2d_TImageFrame_New
	add	esp,4
	mov	dword [ebx],_srs_d3d11max2d_TD3D11ImageFrame
	mov	dword [ebx+8],0
	mov	dword [ebx+12],0
	mov	dword [ebx+16],0
	mov	dword [ebx+20],0
	fldz
	fstp	dword [ebx+24]
	fldz
	fstp	dword [ebx+28]
	mov	dword [ebx+32],0
	mov	eax,0
	jmp	_409
_409:
	pop	ebx
	mov	esp,ebp
	pop	ebp
	ret
__srs_d3d11max2d_TD3D11ImageFrame_Delete:
	push	ebp
	mov	ebp,esp
	mov	eax,dword [ebp+8]
_412:
	mov	dword [eax],_brl_max2d_TImageFrame
	push	eax
	call	__brl_max2d_TImageFrame_Delete
	add	esp,4
	mov	eax,0
	jmp	_1079
_1079:
	mov	esp,ebp
	pop	ebp
	ret
__srs_d3d11max2d_TD3D11ImageFrame_Create:
	push	ebp
	mov	ebp,esp
	sub	esp,28
	push	ebx
	push	esi
	push	edi
	mov	esi,dword [ebp+12]
	cmp	dword [_658],0
	jne	_1080
	mov	eax,_bbNullObject
	jmp	_417
_1080:
	mov	eax,dword [_698]
	cmp	eax,_bbNullObject
	setne	al
	movzx	eax,al
	cmp	eax,0
	jne	_1081
	push	_brl_linkedlist_TList
	call	_bbObjectNew
	add	esp,4
	mov	ebx,eax
	inc	dword [ebx+4]
	mov	eax,dword [_698]
	dec	dword [eax+4]
	jnz	_1085
	push	eax
	call	_bbGCFree
	add	esp,4
_1085:
	mov	dword [_698],ebx
_1081:
	mov	eax,dword [esi+12]
	mov	dword [ebp+-28],eax
	fild	dword [ebp+-28]
	fstp	dword [ebp-24]
	mov	eax,dword [esi+16]
	mov	dword [ebp+-28],eax
	fild	dword [ebp+-28]
	fstp	dword [ebp-20]
	mov	eax,dword [ebp+16]
	and	eax,4
	cmp	eax,4
	sete	al
	movzx	eax,al
	mov	edi,eax
	push	3
	push	_1089
	call	_bbArrayNew1D
	add	esp,8
	mov	dword [ebp-8],eax
	mov	ebx,0
	cmp	dword [esi+24],6
	je	_1092
	mov	eax,esi
	push	6
	push	eax
	mov	eax,dword [eax]
	call	dword [eax+68]
	add	esp,8
	mov	esi,eax
_1092:
	jmp	_99
_101:
	mov	edx,dword [ebp-8]
	mov	eax,dword [esi+8]
	mov	dword [edx+ebx*4+24],eax
	mov	ecx,dword [ebp-8]
	mov	edx,ebx
	add	edx,1
	mov	eax,dword [esi+20]
	mov	dword [ecx+edx*4+24],eax
	mov	ecx,dword [ebp-8]
	mov	edx,ebx
	add	edx,2
	mov	eax,dword [esi+28]
	mov	dword [ecx+edx*4+24],eax
	cmp	edi,0
	jne	_1096
	jmp	_100
_1096:
	mov	eax,dword [esi+12]
	cmp	eax,1
	setg	al
	movzx	eax,al
	cmp	eax,0
	je	_1097
	mov	eax,dword [esi+16]
	cmp	eax,1
	setg	al
	movzx	eax,al
_1097:
	cmp	eax,0
	je	_1099
	mov	eax,dword [esi+16]
	cdq
	and	edx,1
	add	eax,edx
	sar	eax,1
	push	eax
	mov	eax,dword [esi+12]
	cdq
	and	edx,1
	add	eax,edx
	sar	eax,1
	push	eax
	push	esi
	call	_brl_pixmap_ResizePixmap
	add	esp,12
	mov	esi,eax
	jmp	_1100
_1099:
	mov	eax,dword [esi+12]
	cmp	eax,1
	setg	al
	movzx	eax,al
	cmp	eax,0
	je	_1101
	mov	eax,dword [esi+16]
	cmp	eax,1
	sete	al
	movzx	eax,al
_1101:
	cmp	eax,0
	je	_1103
	push	dword [esi+16]
	mov	eax,dword [esi+12]
	cdq
	and	edx,1
	add	eax,edx
	sar	eax,1
	push	eax
	push	esi
	call	_brl_pixmap_ResizePixmap
	add	esp,12
	mov	esi,eax
	jmp	_1104
_1103:
	mov	eax,dword [esi+16]
	cdq
	and	edx,1
	add	eax,edx
	sar	eax,1
	push	eax
	push	dword [esi+12]
	push	esi
	call	_brl_pixmap_ResizePixmap
	add	esp,12
	mov	esi,eax
_1104:
_1100:
	mov	eax,dword [ebp-8]
	mov	eax,dword [eax+20]
	add	eax,3
	push	eax
	push	0
	push	dword [ebp-8]
	push	_156
	call	_bbArraySlice
	add	esp,16
	mov	dword [ebp-8],eax
	add	ebx,3
_99:
	mov	eax,dword [esi+12]
	cmp	eax,0
	setg	al
	movzx	eax,al
	cmp	eax,0
	je	_1094
	mov	eax,dword [esi+16]
	cmp	eax,0
	setg	al
	movzx	eax,al
_1094:
	cmp	eax,0
	jne	_101
_100:
	fld	dword [_1734]
	fdiv	dword [ebp-24]
	mov	eax,dword [ebp+8]
	fstp	dword [eax+24]
	fld	dword [_1735]
	fdiv	dword [ebp-20]
	mov	eax,dword [ebp+8]
	fstp	dword [eax+28]
	push	_srs_directx11_D3D11_TEXTURE2D_DESC
	call	_bbObjectNew
	add	esp,4
	mov	dword [ebp-4],eax
	mov	ebx,dword [ebp-4]
	fld	dword [ebp-24]
	sub	esp,8
	fstp	qword [esp]
	call	_bbFloatToInt
	add	esp,8
	mov	dword [ebx+8],eax
	mov	ebx,dword [ebp-4]
	fld	dword [ebp-20]
	sub	esp,8
	fstp	qword [esp]
	call	_bbFloatToInt
	add	esp,8
	mov	dword [ebx+12],eax
	mov	edx,dword [ebp-4]
	mov	eax,dword [ebp+16]
	and	eax,4
	cmp	eax,0
	sete	al
	movzx	eax,al
	mov	dword [edx+16],eax
	mov	eax,dword [ebp-4]
	mov	dword [eax+20],1
	mov	eax,dword [ebp-4]
	mov	dword [eax+24],28
	mov	eax,dword [ebp-4]
	mov	dword [eax+28],1
	mov	eax,dword [ebp-4]
	mov	dword [eax+32],0
	mov	eax,dword [ebp-4]
	mov	dword [eax+36],0
	mov	edx,8
	cmp	edi,0
	jne	_1107
	mov	eax,dword [ebp+16]
	and	eax,16
	cmp	eax,0
	je	_1108
	or	edx,32
_1108:
_1107:
	mov	eax,dword [ebp-4]
	mov	dword [eax+40],edx
	mov	eax,dword [ebp-4]
	mov	dword [eax+44],0
	mov	edx,dword [_639]
	mov	eax,dword [ebp+8]
	lea	eax,dword [eax+8]
	push	eax
	mov	eax,dword [ebp-8]
	lea	eax,byte [eax+24]
	push	eax
	mov	eax,dword [ebp-4]
	lea	eax,dword [eax+8]
	push	eax
	push	edx
	mov	eax,dword [edx]
	call	dword [eax+20]
	cmp	eax,0
	jge	_1110
	push	_102
	call	_bbWriteStdout
	add	esp,4
	mov	eax,_bbNullObject
	jmp	_417
_1110:
	push	_srs_directx11_D3D11_SHADER_RESOURCE_VIEW_DESC
	call	_bbObjectNew
	add	esp,4
	mov	dword [ebp-12],eax
	mov	edx,dword [ebp-12]
	mov	eax,dword [ebp-4]
	mov	eax,dword [eax+24]
	mov	dword [edx+8],eax
	mov	eax,dword [ebp-12]
	mov	dword [eax+12],4
	mov	eax,dword [ebp-12]
	mov	dword [eax+16],0
	mov	ecx,dword [ebp-12]
	mov	edx,edi
	mov	eax,dword [ebp+16]
	and	eax,4
	cmp	eax,0
	sete	al
	movzx	eax,al
	add	edx,eax
	imul	edx,-1
	mov	dword [ecx+20],edx
	mov	edx,dword [_639]
	mov	eax,dword [ebp+8]
	lea	eax,dword [eax+12]
	push	eax
	mov	eax,dword [ebp-12]
	lea	eax,dword [eax+8]
	push	eax
	mov	eax,dword [ebp+8]
	push	dword [eax+8]
	push	edx
	mov	eax,dword [edx]
	call	dword [eax+28]
	cmp	eax,0
	jge	_1113
	push	_103
	call	_bbWriteStdout
	add	esp,4
	mov	eax,_bbNullObject
	jmp	_417
_1113:
	cmp	edi,0
	jne	_1114
	mov	eax,dword [ebp+16]
	and	eax,16
	cmp	eax,0
	je	_1115
	mov	edx,dword [_639]
	mov	eax,dword [ebp+8]
	lea	eax,dword [eax+16]
	push	eax
	push	0
	mov	eax,dword [ebp+8]
	push	dword [eax+8]
	push	edx
	mov	eax,dword [edx]
	call	dword [eax+36]
	cmp	eax,0
	jge	_1117
	push	_104
	call	_bbWriteStdout
	add	esp,4
	mov	eax,_bbNullObject
	jmp	_417
_1117:
	mov	ebx,dword [_640]
	push	4
	push	_216
	call	_bbArrayNew1D
	add	esp,8
	fldz
	fstp	dword [eax+24]
	fldz
	fstp	dword [eax+28]
	fldz
	fstp	dword [eax+32]
	fldz
	fstp	dword [eax+36]
	mov	dword [ebp-16],eax
	mov	eax,dword [ebp-16]
	lea	eax,byte [eax+24]
	push	eax
	mov	eax,dword [ebp+8]
	push	dword [eax+16]
	push	ebx
	mov	eax,dword [ebx]
	call	dword [eax+200]
_1118:
_1115:
_1114:
	mov	edx,dword [_brl_graphics_GraphicsSeq]
	mov	eax,dword [ebp+8]
	mov	dword [eax+32],edx
	mov	eax,dword [ebp+16]
	and	eax,2
	cmp	eax,0
	je	_1122
	mov	edx,dword [_663]
	mov	eax,dword [ebp+8]
	mov	dword [eax+20],edx
	jmp	_1123
_1122:
	mov	edx,dword [_662]
	mov	eax,dword [ebp+8]
	mov	dword [eax+20],edx
_1123:
	mov	eax,dword [_698]
	push	dword [ebp+8]
	push	eax
	mov	eax,dword [eax]
	call	dword [eax+68]
	add	esp,8
	mov	eax,dword [ebp+8]
	jmp	_417
_417:
	pop	edi
	pop	esi
	pop	ebx
	mov	esp,ebp
	pop	ebp
	ret
__srs_d3d11max2d_TD3D11ImageFrame_Destroy:
	push	ebp
	mov	ebp,esp
	push	ebx
	mov	ebx,dword [ebp+8]
	lea	eax,dword [ebx+8]
	push	eax
	call	_67
	add	esp,4
	lea	eax,dword [ebx+12]
	push	eax
	call	_67
	add	esp,4
	lea	eax,dword [ebx+16]
	push	eax
	call	_67
	add	esp,4
	mov	eax,0
	jmp	_420
_420:
	pop	ebx
	mov	esp,ebp
	pop	ebp
	ret
__srs_d3d11max2d_TD3D11ImageFrame_Draw:
	push	ebp
	mov	ebp,esp
	sub	esp,36
	push	ebx
	push	esi
	push	edi
	mov	ebx,dword [ebp+8]
	fld	dword [ebp+28]
	fstp	dword [ebp-4]
	fld	dword [ebp+32]
	fstp	dword [ebp-8]
	mov	edx,dword [_642]
	lea	eax,dword [ebp-8]
	push	eax
	lea	eax,dword [ebp-4]
	push	eax
	push	edx
	mov	eax,dword [edx]
	call	dword [eax+136]
	add	esp,12
	cmp	dword [_658],0
	jne	_1126
	mov	eax,0
	jmp	_433
_1126:
	fld	dword [ebp+36]
	fmul	dword [ebx+24]
	fstp	dword [ebp-36]
	fld	dword [ebp+40]
	fmul	dword [ebx+28]
	fstp	dword [ebp-32]
	fld	dword [ebp+36]
	fadd	dword [ebp+44]
	fmul	dword [ebx+24]
	fstp	dword [ebp-28]
	fld	dword [ebp+40]
	fadd	dword [ebp+48]
	fmul	dword [ebx+28]
	fstp	dword [ebp-24]
	push	16
	push	_1131
	call	_bbArrayNew1D
	add	esp,8
	mov	dword [ebp-12],eax
	mov	eax,dword [ebp-12]
	fld	dword [ebp+12]
	fmul	dword [_650]
	fld	dword [ebp+16]
	fmul	dword [_651]
	faddp	st1,st0
	fadd	dword [ebp-4]
	fstp	dword [eax+24]
	mov	eax,dword [ebp-12]
	fld	dword [ebp+12]
	fmul	dword [_652]
	fld	dword [ebp+16]
	fmul	dword [_653]
	faddp	st1,st0
	fadd	dword [ebp-8]
	fstp	dword [eax+4+24]
	mov	eax,dword [ebp-12]
	fld	dword [ebp-36]
	fstp	dword [eax+8+24]
	mov	eax,dword [ebp-12]
	fld	dword [ebp-32]
	fstp	dword [eax+12+24]
	mov	eax,dword [ebp-12]
	fld	dword [ebp+20]
	fmul	dword [_650]
	fld	dword [ebp+16]
	fmul	dword [_651]
	faddp	st1,st0
	fadd	dword [ebp-4]
	fstp	dword [eax+16+24]
	mov	eax,dword [ebp-12]
	fld	dword [ebp+20]
	fmul	dword [_652]
	fld	dword [ebp+16]
	fmul	dword [_653]
	faddp	st1,st0
	fadd	dword [ebp-8]
	fstp	dword [eax+20+24]
	mov	eax,dword [ebp-12]
	fld	dword [ebp-28]
	fstp	dword [eax+24+24]
	mov	eax,dword [ebp-12]
	fld	dword [ebp-32]
	fstp	dword [eax+28+24]
	mov	eax,dword [ebp-12]
	fld	dword [ebp+12]
	fmul	dword [_650]
	fld	dword [ebp+24]
	fmul	dword [_651]
	faddp	st1,st0
	fadd	dword [ebp-4]
	fstp	dword [eax+32+24]
	mov	eax,dword [ebp-12]
	fld	dword [ebp+12]
	fmul	dword [_652]
	fld	dword [ebp+24]
	fmul	dword [_653]
	faddp	st1,st0
	fadd	dword [ebp-8]
	fstp	dword [eax+36+24]
	mov	eax,dword [ebp-12]
	fld	dword [ebp-36]
	fstp	dword [eax+40+24]
	mov	eax,dword [ebp-12]
	fld	dword [ebp-24]
	fstp	dword [eax+44+24]
	mov	eax,dword [ebp-12]
	fld	dword [ebp+20]
	fmul	dword [_650]
	fld	dword [ebp+24]
	fmul	dword [_651]
	faddp	st1,st0
	fadd	dword [ebp-4]
	fstp	dword [eax+48+24]
	mov	eax,dword [ebp-12]
	fld	dword [ebp+20]
	fmul	dword [_652]
	fld	dword [ebp+24]
	fmul	dword [_653]
	faddp	st1,st0
	fadd	dword [ebp-8]
	fstp	dword [eax+52+24]
	mov	eax,dword [ebp-12]
	fld	dword [ebp-28]
	fstp	dword [eax+56+24]
	mov	eax,dword [ebp-12]
	fld	dword [ebp-24]
	fstp	dword [eax+60+24]
	mov	dword [ebp-16],16
	mov	dword [ebp-20],0
	push	_1
	mov	eax,dword [ebp-12]
	push	dword [eax+16]
	mov	eax,dword [ebp-12]
	lea	eax,byte [eax+24]
	push	eax
	push	0
	push	4
	push	0
	lea	eax,dword [_671]
	push	eax
	call	_74
	add	esp,28
	mov	eax,dword [_640]
	push	0
	push	0
	push	dword [_665]
	push	eax
	mov	eax,dword [eax]
	call	dword [eax+44]
	mov	eax,dword [_640]
	push	0
	push	0
	push	dword [_666]
	push	eax
	mov	eax,dword [eax]
	call	dword [eax+36]
	mov	edx,dword [_640]
	lea	eax,dword [ebx+20]
	push	eax
	push	1
	push	0
	push	edx
	mov	eax,dword [edx]
	call	dword [eax+40]
	mov	edx,dword [_640]
	lea	eax,dword [ebx+12]
	push	eax
	push	1
	push	0
	push	edx
	mov	eax,dword [edx]
	call	dword [eax+32]
	mov	edx,dword [_640]
	lea	eax,dword [_672]
	push	eax
	push	1
	push	0
	push	edx
	mov	eax,dword [edx]
	call	dword [eax+64]
	mov	eax,dword [_640]
	push	dword [_669]
	push	eax
	mov	eax,dword [eax]
	call	dword [eax+68]
	mov	edx,dword [_640]
	lea	eax,dword [ebp-20]
	push	eax
	lea	eax,dword [ebp-16]
	push	eax
	lea	eax,dword [_671]
	push	eax
	push	1
	push	0
	push	edx
	mov	eax,dword [edx]
	call	dword [eax+72]
	mov	eax,dword [_640]
	push	5
	push	eax
	mov	eax,dword [eax]
	call	dword [eax+96]
	mov	eax,dword [_640]
	push	0
	push	4
	push	eax
	mov	eax,dword [eax]
	call	dword [eax+52]
	mov	eax,dword [_642]
	push	eax
	mov	eax,dword [eax]
	call	dword [eax+140]
	add	esp,4
	mov	eax,0
	jmp	_433
_433:
	pop	edi
	pop	esi
	pop	ebx
	mov	esp,ebp
	pop	ebp
	ret
__srs_d3d11max2d_TD3D11Max2DDriver_New:
	push	ebp
	mov	ebp,esp
	push	ebx
	mov	ebx,dword [ebp+8]
	push	ebx
	call	__brl_max2d_TMax2DDriver_New
	add	esp,4
	mov	dword [ebx],_srs_d3d11max2d_TD3D11Max2DDriver
	fldz
	fstp	dword [ebx+8]
	fldz
	fstp	dword [ebx+12]
	fldz
	fstp	dword [ebx+16]
	fldz
	fstp	dword [ebx+20]
	fldz
	fstp	dword [ebx+24]
	fldz
	fstp	dword [ebx+28]
	fldz
	fstp	dword [ebx+32]
	fldz
	fstp	dword [ebx+36]
	fldz
	fstp	dword [ebx+40]
	fldz
	fstp	dword [ebx+44]
	fldz
	fstp	dword [ebx+48]
	mov	eax,0
	jmp	_436
_436:
	pop	ebx
	mov	esp,ebp
	pop	ebp
	ret
__srs_d3d11max2d_TD3D11Max2DDriver_Delete:
	push	ebp
	mov	ebp,esp
	mov	eax,dword [ebp+8]
_439:
	mov	dword [eax],_brl_max2d_TMax2DDriver
	push	eax
	call	__brl_max2d_TMax2DDriver_Delete
	add	esp,4
	mov	eax,0
	jmp	_1145
_1145:
	mov	esp,ebp
	pop	ebp
	ret
__srs_d3d11max2d_TD3D11Max2DDriver_AdjustScreenRotationScale:
	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,dword [_644]
	fld	dword [eax+40]
	fstp	dword [esi+32]
	mov	eax,dword [_644]
	fld	dword [eax+44]
	fstp	dword [esi+36]
	mov	eax,dword [_644]
	fld	dword [eax+48]
	fstp	dword [esi+40]
	fld	dword [esi+32]
	mov	eax,dword [_642]
	fsub	dword [eax+8]
	sub	esp,4
	fstp	dword [esp]
	call	_brl_max2d_SetRotation
	add	esp,4
	fld	dword [esi+40]
	fmul	dword [esi+12]
	sub	esp,4
	fstp	dword [esp]
	fld	dword [esi+36]
	fmul	dword [esi+12]
	sub	esp,4
	fstp	dword [esp]
	call	_brl_max2d_SetScale
	add	esp,8
	mov	eax,esi
	lea	edx,dword [edi]
	push	edx
	lea	edx,dword [ebx]
	push	edx
	push	eax
	mov	eax,dword [eax]
	call	dword [eax+160]
	add	esp,12
	fld	dword [ebx]
	fadd	dword [esi+44]
	fstp	dword [ebx]
	fld	dword [edi]
	fadd	dword [esi+48]
	fstp	dword [edi]
	mov	eax,0
	jmp	_444
_444:
	pop	edi
	pop	esi
	pop	ebx
	mov	esp,ebp
	pop	ebp
	ret
__srs_d3d11max2d_TD3D11Max2DDriver_ResetScreenRotationScale:
	push	ebp
	mov	ebp,esp
	push	ebx
	mov	ebx,dword [ebp+8]
	push	dword [ebx+32]
	call	_brl_max2d_SetRotation
	add	esp,4
	push	dword [ebx+40]
	push	dword [ebx+36]
	call	_brl_max2d_SetScale
	add	esp,8
	mov	eax,0
	jmp	_447
_447:
	pop	ebx
	mov	esp,ebp
	pop	ebp
	ret
__srs_d3d11max2d_TD3D11Max2DDriver_SetScreenRotation:
	push	ebp
	mov	ebp,esp
	mov	eax,dword [ebp+8]
	fld	dword [ebp+12]
	fstp	dword [eax+8]
	push	eax
	mov	eax,dword [eax]
	call	dword [eax+156]
	add	esp,4
	mov	eax,0
	jmp	_451
_451:
	mov	esp,ebp
	pop	ebp
	ret
__srs_d3d11max2d_TD3D11Max2DDriver_SetZoom:
	push	ebp
	mov	ebp,esp
	mov	eax,dword [ebp+8]
	fld	dword [ebp+12]
	fstp	dword [eax+12]
	push	eax
	mov	eax,dword [eax]
	call	dword [eax+156]
	add	esp,4
	mov	eax,0
	jmp	_455
_455:
	mov	esp,ebp
	pop	ebp
	ret
__srs_d3d11max2d_TD3D11Max2DDriver_SetFocus:
	push	ebp
	mov	ebp,esp
	mov	eax,dword [ebp+8]
	fld	dword [ebp+12]
	fld	dword [ebp+16]
	fxch	st1
	fstp	dword [eax+44]
	fstp	dword [eax+48]
	mov	eax,0
	jmp	_460
_460:
	mov	esp,ebp
	pop	ebp
	ret
__srs_d3d11max2d_TD3D11Max2DDriver_UpdateTransform:
	push	ebp
	mov	ebp,esp
	sub	esp,4
	push	ebx
	mov	ebx,dword [ebp+8]
	fld	dword [ebx+8]
	fchs
	sub	esp,8
	fstp	qword [esp]
	call	_bbSin
	add	esp,8
	fstp	dword [ebp-4]
	fld	dword [ebx+8]
	fchs
	sub	esp,8
	fstp	qword [esp]
	call	_bbCos
	add	esp,8
	fld	st0
	fmul	dword [ebx+12]
	fstp	dword [ebx+16]
	fld	dword [ebp-4]
	fchs
	fmul	dword [ebx+12]
	fstp	dword [ebx+20]
	fld	dword [ebp-4]
	fmul	dword [ebx+12]
	fstp	dword [ebx+24]
	fmul	dword [ebx+12]
	fstp	dword [ebx+28]
	mov	eax,0
	jmp	_463
_463:
	pop	ebx
	mov	esp,ebp
	pop	ebp
	ret
__srs_d3d11max2d_TD3D11Max2DDriver_TransformPoint:
	push	ebp
	mov	ebp,esp
	mov	ecx,dword [ebp+8]
	mov	edx,dword [ebp+12]
	mov	eax,dword [ebp+16]
	fld	dword [edx]
	fld	dword [edx]
	fmul	dword [ecx+16]
	fld	dword [eax]
	fmul	dword [ecx+20]
	faddp	st1,st0
	fstp	dword [edx]
	fmul	dword [ecx+24]
	fld	dword [eax]
	fmul	dword [ecx+28]
	faddp	st1,st0
	fstp	dword [eax]
	mov	eax,0
	jmp	_468
_468:
	mov	esp,ebp
	pop	ebp
	ret
__srs_d3d11max2d_TD3D11Max2DDriver_ToString:
	push	ebp
	mov	ebp,esp
	push	ebx
	mov	ebx,_bbEmptyString
	call	_srs_d3d11graphics_D3D11GetFeatureLevel
	cmp	eax,40960
	je	_1156
	cmp	eax,41216
	je	_1157
	cmp	eax,45056
	je	_1158
	cmp	eax,45312
	je	_1159
	cmp	eax,0
	je	_1160
	jmp	_1155
_1156:
	mov	ebx,_105
	jmp	_1155
_1157:
	mov	ebx,_106
	jmp	_1155
_1158:
	mov	ebx,_107
	jmp	_1155
_1159:
	mov	ebx,_108
	jmp	_1155
_1160:
	mov	ebx,_109
	jmp	_1155
_1155:
	push	ebx
	push	_110
	call	_bbStringConcat
	add	esp,8
	jmp	_471
_471:
	pop	ebx
	mov	esp,ebp
	pop	ebp
	ret
__srs_d3d11max2d_TD3D11Max2DDriver_GraphicsModes:
	push	ebp
	mov	ebp,esp
	call	_srs_d3d11graphics_D3D11GraphicsDriver
	push	eax
	mov	eax,dword [eax]
	call	dword [eax+48]
	add	esp,4
	jmp	_474
_474:
	mov	esp,ebp
	pop	ebp
	ret
__srs_d3d11max2d_TD3D11Max2DDriver_AttachGraphics:
	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]
	call	_srs_d3d11graphics_D3D11GraphicsDriver
	push	edi
	push	ebx
	push	eax
	mov	eax,dword [eax]
	call	dword [eax+52]
	add	esp,12
	cmp	eax,_bbNullObject
	je	_1164
	push	esi
	push	eax
	call	dword [_brl_max2d_TMax2DGraphics+80]
	add	esp,8
	jmp	_479
_1164:
	mov	eax,_bbNullObject
	jmp	_479
_479:
	pop	edi
	pop	esi
	pop	ebx
	mov	esp,ebp
	pop	ebp
	ret
__srs_d3d11max2d_TD3D11Max2DDriver_CreateGraphics:
	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]
	call	_srs_d3d11graphics_D3D11GraphicsDriver
	push	dword [ebp+28]
	push	dword [ebp+24]
	push	dword [ebp+20]
	push	edi
	push	ebx
	push	eax
	mov	eax,dword [eax]
	call	dword [eax+56]
	add	esp,24
	mov	edx,eax
	cmp	edx,_bbNullObject
	setne	al
	movzx	eax,al
	cmp	eax,0
	jne	_1167
	mov	eax,_bbNullObject
	jmp	_487
_1167:
	push	esi
	push	edx
	call	dword [_brl_max2d_TMax2DGraphics+80]
	add	esp,8
	jmp	_487
_487:
	pop	edi
	pop	esi
	pop	ebx
	mov	esp,ebp
	pop	ebp
	ret
__srs_d3d11max2d_TD3D11Max2DDriver_SetGraphics:
	push	ebp
	mov	ebp,esp
	sub	esp,4
	push	ebx
	push	esi
	push	edi
	mov	edx,dword [ebp+12]
	cmp	edx,_bbNullObject
	setne	al
	movzx	eax,al
	cmp	eax,0
	jne	_1168
	call	_98
	cmp	dword [_698],_bbNullObject
	je	_1169
	mov	esi,dword [_698]
	push	esi
	mov	eax,dword [esi]
	call	dword [eax+140]
	add	esp,4
	mov	ebx,eax
	jmp	_111
_113:
	push	_srs_d3d11max2d_TD3D11ImageFrame
	push	ebx
	mov	eax,dword [ebx]
	call	dword [eax+52]
	add	esp,4
	push	eax
	call	_bbObjectDowncast
	add	esp,8
	cmp	eax,_bbNullObject
	je	_111
	push	eax
	mov	eax,dword [eax]
	call	dword [eax+56]
	add	esp,4
_111:
	push	ebx
	mov	eax,dword [ebx]
	call	dword [eax+48]
	add	esp,4
	cmp	eax,0
	jne	_113
_112:
_1169:
	mov	ebx,_bbNullObject
	inc	dword [ebx+4]
	mov	eax,dword [_698]
	dec	dword [eax+4]
	jnz	_1180
	push	eax
	call	_bbGCFree
	add	esp,4
_1180:
	mov	dword [_698],ebx
	cmp	dword [_639],0
	je	_1181
	cmp	dword [_640],0
	je	_1182
	mov	eax,dword [_640]
	push	eax
	mov	eax,dword [eax]
	call	dword [eax+440]
	mov	dword [_640],0
_1182:
	mov	dword [_639],0
_1181:
	mov	ebx,_bbNullObject
	inc	dword [ebx+4]
	mov	eax,dword [_643]
	dec	dword [eax+4]
	jnz	_1187
	push	eax
	call	_bbGCFree
	add	esp,4
_1187:
	mov	dword [_643],ebx
	call	dword [_brl_max2d_TMax2DGraphics+72]
	call	_srs_d3d11graphics_D3D11GraphicsDriver
	push	_bbNullObject
	push	eax
	mov	eax,dword [eax]
	call	dword [eax+60]
	add	esp,8
	mov	eax,0
	jmp	_491
_1168:
	push	_brl_max2d_TMax2DGraphics
	push	edx
	call	_bbObjectDowncast
	add	esp,8
	inc	dword [eax+4]
	mov	ebx,eax
	mov	eax,dword [_644]
	dec	dword [eax+4]
	jnz	_1192
	push	eax
	call	_bbGCFree
	add	esp,4
_1192:
	mov	dword [_644],ebx
	push	_srs_d3d11graphics_TD3D11Graphics
	mov	eax,dword [_644]
	push	dword [eax+132]
	call	_bbObjectDowncast
	add	esp,8
	inc	dword [eax+4]
	mov	ebx,eax
	mov	eax,dword [_643]
	dec	dword [eax+4]
	jnz	_1196
	push	eax
	call	_bbGCFree
	add	esp,4
_1196:
	mov	dword [_643],ebx
	mov	eax,dword [_643]
	push	eax
	mov	eax,dword [eax]
	call	dword [eax+64]
	add	esp,4
	mov	dword [_639],eax
	mov	eax,dword [_643]
	push	eax
	mov	eax,dword [eax]
	call	dword [eax+68]
	add	esp,4
	mov	dword [_640],eax
	call	_srs_d3d11graphics_D3D11GraphicsDriver
	push	dword [_643]
	push	eax
	mov	eax,dword [eax]
	call	dword [eax+60]
	add	esp,8
	mov	eax,dword [_643]
	push	eax
	mov	eax,dword [eax]
	call	dword [eax+88]
	add	esp,4
	mov	dword [_641],eax
	call	_79
	mov	eax,dword [_644]
	push	eax
	mov	eax,dword [eax]
	call	dword [eax+68]
	add	esp,4
	push	_srs_d3d11max2d_TD3D11Max2DDriver
	push	dword [_brl_max2d__max2dDriver]
	call	_bbObjectDowncast
	add	esp,8
	inc	dword [eax+4]
	mov	ebx,eax
	mov	eax,dword [_642]
	dec	dword [eax+4]
	jnz	_1207
	push	eax
	call	_bbGCFree
	add	esp,4
_1207:
	mov	dword [_642],ebx
	call	_brl_graphics_GraphicsWidth
	mov	dword [ebp+-4],eax
	fild	dword [ebp+-4]
	fstp	dword [_655]
	call	_brl_graphics_GraphicsHeight
	mov	dword [ebp+-4],eax
	fild	dword [ebp+-4]
	fstp	dword [_656]
	mov	eax,0
	jmp	_491
_491:
	pop	edi
	pop	esi
	pop	ebx
	mov	esp,ebp
	pop	ebp
	ret
__srs_d3d11max2d_TD3D11Max2DDriver_Flip:
	push	ebp
	mov	ebp,esp
	push	ebx
	mov	ebx,dword [ebp+12]
	call	_srs_d3d11graphics_D3D11GraphicsDriver
	push	ebx
	push	eax
	mov	eax,dword [eax]
	call	dword [eax+64]
	add	esp,8
	mov	eax,0
	jmp	_495
_495:
	pop	ebx
	mov	esp,ebp
	pop	ebp
	ret
__srs_d3d11max2d_TD3D11Max2DDriver_CreateFrameFromPixmap:
	push	ebp
	mov	ebp,esp
	push	ebx
	push	esi
	mov	esi,dword [ebp+12]
	mov	ebx,dword [ebp+16]
	push	_srs_d3d11max2d_TD3D11ImageFrame
	call	_bbObjectNew
	add	esp,4
	push	ebx
	push	esi
	push	eax
	mov	eax,dword [eax]
	call	dword [eax+52]
	add	esp,12
	jmp	_500
_500:
	pop	esi
	pop	ebx
	mov	esp,ebp
	pop	ebp
	ret
__srs_d3d11max2d_TD3D11Max2DDriver_SetBlend:
	push	ebp
	mov	ebp,esp
	sub	esp,4
	push	ebx
	push	esi
	push	edi
	mov	ebx,dword [ebp+12]
	cmp	dword [_657],ebx
	jne	_1210
	mov	eax,0
	jmp	_504
_1210:
	push	4
	push	_216
	call	_bbArrayNew1D
	add	esp,8
	fldz
	fstp	dword [eax+24]
	fldz
	fstp	dword [eax+28]
	fldz
	fstp	dword [eax+32]
	fldz
	fstp	dword [eax+36]
	mov	dword [ebp-4],eax
	cmp	ebx,2
	je	_1215
	cmp	ebx,3
	je	_1216
	cmp	ebx,5
	je	_1217
	cmp	ebx,4
	je	_1218
	cmp	ebx,1
	je	_1219
	jmp	_1214
_1215:
	mov	edx,dword [_640]
	push	-1
	mov	eax,dword [ebp-4]
	lea	eax,byte [eax+24]
	push	eax
	push	dword [_679]
	push	edx
	mov	eax,dword [edx]
	call	dword [eax+140]
	call	_78
	jmp	_1214
_1216:
	mov	edx,dword [_640]
	push	-1
	mov	eax,dword [ebp-4]
	lea	eax,byte [eax+24]
	push	eax
	push	dword [_681]
	push	edx
	mov	eax,dword [edx]
	call	dword [eax+140]
	call	_78
	jmp	_1214
_1217:
	mov	edx,dword [_640]
	push	-1
	mov	eax,dword [ebp-4]
	lea	eax,byte [eax+24]
	push	eax
	push	dword [_683]
	push	edx
	mov	eax,dword [edx]
	call	dword [eax+140]
	call	_78
	jmp	_1214
_1218:
	mov	edx,dword [_640]
	push	-1
	mov	eax,dword [ebp-4]
	lea	eax,byte [eax+24]
	push	eax
	push	dword [_682]
	push	edx
	mov	eax,dword [edx]
	call	dword [eax+140]
	call	_78
	jmp	_1214
_1219:
	mov	edx,dword [_640]
	push	-1
	mov	eax,dword [ebp-4]
	lea	eax,byte [eax+24]
	push	eax
	push	dword [_680]
	push	edx
	mov	eax,dword [edx]
	call	dword [eax+140]
	call	_77
	jmp	_1214
_1214:
	mov	dword [_657],ebx
	mov	eax,0
	jmp	_504
_504:
	pop	edi
	pop	esi
	pop	ebx
	mov	esp,ebp
	pop	ebp
	ret
__srs_d3d11max2d_TD3D11Max2DDriver_SetAlpha:
	push	ebp
	mov	ebp,esp
	fld	dword [ebp+12]
	mov	eax,dword [_685]
	fld	dword [eax+12+24]
	fxch	st1
	fucom	st1
	fxch	st1
	fstp	st0
	fnstsw	ax
	sahf
	setnz	al
	movzx	eax,al
	cmp	eax,0
	jne	_1225
	fstp	st0
	mov	eax,0
	jmp	_508
_1225:
	fldz
	sub	esp,8
	fstp	qword [esp]
	fld1
	sub	esp,8
	fstp	qword [esp]
	sub	esp,8
	fstp	qword [esp]
	call	_bbFloatMin
	add	esp,16
	sub	esp,8
	fstp	qword [esp]
	call	_bbFloatMax
	add	esp,16
	mov	eax,dword [_685]
	fstp	dword [eax+12+24]
	push	_1
	mov	eax,dword [_685]
	push	dword [eax+16]
	mov	eax,dword [_685]
	lea	eax,byte [eax+24]
	push	eax
	push	0
	push	4
	push	0
	lea	eax,dword [_672]
	push	eax
	call	_74
	add	esp,28
	mov	eax,0
	jmp	_508
_508:
	mov	esp,ebp
	pop	ebp
	ret
__srs_d3d11max2d_TD3D11Max2DDriver_SetColor:
	push	ebp
	mov	ebp,esp
	sub	esp,4
	push	ebx
	push	esi
	push	edi
	mov	eax,dword [ebp+12]
	mov	esi,dword [ebp+16]
	mov	ebx,dword [ebp+20]
	push	0
	push	255
	push	eax
	call	_bbIntMin
	add	esp,8
	push	eax
	call	_bbIntMax
	add	esp,8
	mov	edi,eax
	push	0
	push	255
	push	esi
	call	_bbIntMin
	add	esp,8
	push	eax
	call	_bbIntMax
	add	esp,8
	mov	esi,eax
	push	0
	push	255
	push	ebx
	call	_bbIntMin
	add	esp,8
	push	eax
	call	_bbIntMax
	add	esp,8
	mov	edx,dword [_685]
	fld	dword [_1821]
	mov	dword [ebp+-4],edi
	fild	dword [ebp+-4]
	fmulp	st1,st0
	fstp	dword [edx+24]
	mov	edx,dword [_685]
	fld	dword [_1822]
	mov	dword [ebp+-4],esi
	fild	dword [ebp+-4]
	fmulp	st1,st0
	fstp	dword [edx+4+24]
	mov	edx,dword [_685]
	fld	dword [_1823]
	mov	dword [ebp+-4],eax
	fild	dword [ebp+-4]
	fmulp	st1,st0
	fstp	dword [edx+8+24]
	push	_1
	mov	eax,dword [_685]
	push	dword [eax+16]
	mov	eax,dword [_685]
	lea	eax,byte [eax+24]
	push	eax
	push	0
	push	4
	push	0
	lea	eax,dword [_672]
	push	eax
	call	_74
	add	esp,28
	mov	eax,0
	jmp	_514
_514:
	pop	edi
	pop	esi
	pop	ebx
	mov	esp,ebp
	pop	ebp
	ret
__srs_d3d11max2d_TD3D11Max2DDriver_SetClsColor:
	push	ebp
	mov	ebp,esp
	sub	esp,4
	push	ebx
	push	esi
	push	edi
	mov	eax,dword [ebp+12]
	mov	esi,dword [ebp+16]
	mov	ebx,dword [ebp+20]
	push	0
	push	255
	push	eax
	call	_bbIntMin
	add	esp,8
	push	eax
	call	_bbIntMax
	add	esp,8
	mov	edi,eax
	push	0
	push	255
	push	esi
	call	_bbIntMin
	add	esp,8
	push	eax
	call	_bbIntMax
	add	esp,8
	mov	esi,eax
	push	0
	push	255
	push	ebx
	call	_bbIntMin
	add	esp,8
	push	eax
	call	_bbIntMax
	add	esp,8
	mov	edx,dword [_646]
	fld	dword [_1826]
	mov	dword [ebp+-4],edi
	fild	dword [ebp+-4]
	fmulp	st1,st0
	fstp	dword [edx+24]
	mov	edx,dword [_646]
	fld	dword [_1827]
	mov	dword [ebp+-4],esi
	fild	dword [ebp+-4]
	fmulp	st1,st0
	fstp	dword [edx+4+24]
	mov	edx,dword [_646]
	fld	dword [_1828]
	mov	dword [ebp+-4],eax
	fild	dword [ebp+-4]
	fmulp	st1,st0
	fstp	dword [edx+8+24]
	mov	eax,0
	jmp	_520
_520:
	pop	edi
	pop	esi
	pop	ebx
	mov	esp,ebp
	pop	ebp
	ret
__srs_d3d11max2d_TD3D11Max2DDriver_SetViewport:
	push	ebp
	mov	ebp,esp
	sub	esp,4
	push	ebx
	push	esi
	push	edi
	mov	esi,dword [ebp+12]
	mov	ebx,dword [ebp+16]
	mov	edi,dword [_640]
	push	4
	push	_156
	call	_bbArrayNew1D
	add	esp,8
	mov	dword [eax+24],esi
	mov	dword [eax+28],ebx
	mov	edx,esi
	add	edx,dword [ebp+20]
	mov	dword [eax+32],edx
	mov	edx,ebx
	add	edx,dword [ebp+24]
	mov	dword [eax+36],edx
	mov	dword [ebp-4],eax
	mov	eax,dword [ebp-4]
	lea	eax,byte [eax+24]
	push	eax
	push	1
	push	edi
	mov	eax,dword [edi]
	call	dword [eax+180]
	mov	eax,0
	jmp	_527
_527:
	pop	edi
	pop	esi
	pop	ebx
	mov	esp,ebp
	pop	ebp
	ret
__srs_d3d11max2d_TD3D11Max2DDriver_SetTransform:
	push	ebp
	mov	ebp,esp
	fld	dword [ebp+12]
	fld	dword [ebp+16]
	fld	dword [ebp+20]
	fld	dword [ebp+24]
	fxch	st3
	fstp	dword [_650]
	fxch	st1
	fstp	dword [_651]
	fstp	dword [_652]
	fstp	dword [_653]
	mov	eax,0
	jmp	_534
_534:
	mov	esp,ebp
	pop	ebp
	ret
__srs_d3d11max2d_TD3D11Max2DDriver_SetLineWidth:
	push	ebp
	mov	ebp,esp
	fld	dword [ebp+12]
	fstp	dword [_654]
	mov	eax,0
	jmp	_538
_538:
	mov	esp,ebp
	pop	ebp
	ret
__srs_d3d11max2d_TD3D11Max2DDriver_Cls:
	push	ebp
	mov	ebp,esp
	push	ebx
	push	esi
	push	edi
	mov	edx,dword [_640]
	mov	eax,dword [_646]
	lea	eax,byte [eax+24]
	push	eax
	push	dword [_641]
	push	edx
	mov	eax,dword [edx]
	call	dword [eax+200]
	mov	eax,0
	jmp	_541
_541:
	pop	edi
	pop	esi
	pop	ebx
	mov	esp,ebp
	pop	ebp
	ret
__srs_d3d11max2d_TD3D11Max2DDriver_Plot:
	push	ebp
	mov	ebp,esp
	sub	esp,20
	push	ebx
	push	esi
	push	edi
	mov	ebx,dword [ebp+8]
	fld	dword [ebp+12]
	fstp	dword [ebp-4]
	fld	dword [ebp+16]
	fstp	dword [ebp-8]
	lea	eax,dword [ebp-8]
	push	eax
	lea	eax,dword [ebp-4]
	push	eax
	push	ebx
	mov	eax,dword [ebx]
	call	dword [eax+160]
	add	esp,12
	fld	dword [ebp-4]
	fadd	dword [ebx+44]
	fstp	dword [ebp-4]
	fld	dword [ebp-8]
	fadd	dword [ebx+48]
	fstp	dword [ebp-8]
	push	4
	push	_1237
	call	_bbArrayNew1D
	add	esp,8
	mov	dword [ebp-12],eax
	mov	eax,dword [ebp-12]
	fld	dword [ebp-4]
	fstp	dword [eax+24]
	mov	eax,dword [ebp-12]
	fld	dword [ebp-8]
	fstp	dword [eax+4+24]
	mov	dword [ebp-16],16
	mov	dword [ebp-20],0
	push	_1
	mov	eax,dword [ebp-12]
	push	dword [eax+16]
	mov	eax,dword [ebp-12]
	lea	eax,byte [eax+24]
	push	eax
	push	0
	push	4
	push	0
	lea	eax,dword [_671]
	push	eax
	call	_74
	add	esp,28
	mov	eax,dword [_640]
	push	dword [_669]
	push	eax
	mov	eax,dword [eax]
	call	dword [eax+68]
	mov	eax,dword [_640]
	push	0
	push	0
	push	dword [_665]
	push	eax
	mov	eax,dword [eax]
	call	dword [eax+44]
	mov	eax,dword [_640]
	push	0
	push	0
	push	dword [_667]
	push	eax
	mov	eax,dword [eax]
	call	dword [eax+36]
	mov	edx,dword [_640]
	lea	eax,dword [_672]
	push	eax
	push	1
	push	0
	push	edx
	mov	eax,dword [edx]
	call	dword [eax+64]
	mov	edx,dword [_640]
	lea	eax,dword [ebp-20]
	push	eax
	lea	eax,dword [ebp-16]
	push	eax
	lea	eax,dword [_671]
	push	eax
	push	1
	push	0
	push	edx
	mov	eax,dword [edx]
	call	dword [eax+72]
	mov	eax,dword [_640]
	push	1
	push	eax
	mov	eax,dword [eax]
	call	dword [eax+96]
	mov	eax,dword [_640]
	push	0
	push	1
	push	eax
	mov	eax,dword [eax]
	call	dword [eax+52]
	mov	eax,0
	jmp	_546
_546:
	pop	edi
	pop	esi
	pop	ebx
	mov	esp,ebp
	pop	ebp
	ret
__srs_d3d11max2d_TD3D11Max2DDriver_DrawLine:
	push	ebp
	mov	ebp,esp
	sub	esp,68
	push	ebx
	push	esi
	push	edi
	mov	ebx,dword [ebp+8]
	fld	dword [ebp+12]
	fstp	dword [ebp-4]
	fld	dword [ebp+16]
	fstp	dword [ebp-8]
	fld	dword [ebp+20]
	fstp	dword [ebp-12]
	fld	dword [ebp+24]
	fstp	dword [ebp-16]
	fld	dword [ebp+28]
	fstp	dword [ebp-20]
	fld	dword [ebp+32]
	fstp	dword [ebp-24]
	push	16
	push	_1248
	call	_bbArrayNew1D
	add	esp,8
	mov	dword [ebp-28],eax
	lea	eax,dword [ebp-8]
	push	eax
	lea	eax,dword [ebp-4]
	push	eax
	push	ebx
	mov	eax,dword [ebx]
	call	dword [eax+160]
	add	esp,12
	lea	eax,dword [ebp-16]
	push	eax
	lea	eax,dword [ebp-12]
	push	eax
	push	ebx
	mov	eax,dword [ebx]
	call	dword [eax+160]
	add	esp,12
	lea	eax,dword [ebp-24]
	push	eax
	lea	eax,dword [ebp-20]
	push	eax
	push	ebx
	mov	eax,dword [ebx]
	call	dword [eax+160]
	add	esp,12
	fld	dword [ebp-20]
	fadd	dword [ebx+44]
	fstp	dword [ebp-20]
	fld	dword [ebp-24]
	fadd	dword [ebx+48]
	fstp	dword [ebp-24]
	fld	dword [ebp-4]
	fmul	dword [_650]
	fld	dword [ebp-8]
	fmul	dword [_651]
	faddp	st1,st0
	fadd	dword [ebp-20]
	fstp	dword [ebp-56]
	fld	dword [ebp-4]
	fmul	dword [_652]
	fld	dword [ebp-8]
	fmul	dword [_653]
	faddp	st1,st0
	fadd	dword [ebp-24]
	fstp	dword [ebp-52]
	fld	dword [ebp-12]
	fmul	dword [_650]
	fld	dword [ebp-16]
	fmul	dword [_651]
	faddp	st1,st0
	fadd	dword [ebp-20]
	fstp	dword [ebp-64]
	fld	dword [ebp-12]
	fmul	dword [_652]
	fld	dword [ebp-16]
	fmul	dword [_653]
	faddp	st1,st0
	fadd	dword [ebp-24]
	fstp	dword [ebp-60]
	mov	eax,dword [_640]
	push	0
	push	0
	push	dword [_665]
	push	eax
	mov	eax,dword [eax]
	call	dword [eax+44]
	mov	eax,dword [_640]
	push	0
	push	0
	push	dword [_667]
	push	eax
	mov	eax,dword [eax]
	call	dword [eax+36]
	mov	edx,dword [_640]
	lea	eax,dword [_672]
	push	eax
	push	1
	push	0
	push	edx
	mov	eax,dword [edx]
	call	dword [eax+64]
	mov	eax,dword [_640]
	push	dword [_669]
	push	eax
	mov	eax,dword [eax]
	call	dword [eax+68]
	fld	dword [_654]
	fld1
	fxch	st1
	fucompp
	fnstsw	ax
	sahf
	seta	al
	movzx	eax,al
	cmp	eax,0
	jne	_1261
	mov	eax,dword [ebp-28]
	fld	dword [ebp-56]
	fstp	dword [eax+24]
	mov	eax,dword [ebp-28]
	fld	dword [ebp-52]
	fstp	dword [eax+4+24]
	mov	eax,dword [ebp-28]
	fld	dword [ebp-64]
	fstp	dword [eax+16+24]
	mov	eax,dword [ebp-28]
	fld	dword [ebp-60]
	fstp	dword [eax+20+24]
	mov	dword [ebp-32],16
	mov	dword [ebp-36],0
	push	_1
	mov	eax,dword [ebp-28]
	push	dword [eax+16]
	mov	eax,dword [ebp-28]
	lea	eax,byte [eax+24]
	push	eax
	push	0
	push	4
	push	0
	lea	eax,dword [_671]
	push	eax
	call	_74
	add	esp,28
	mov	edx,dword [_640]
	lea	eax,dword [ebp-36]
	push	eax
	lea	eax,dword [ebp-32]
	push	eax
	lea	eax,dword [_671]
	push	eax
	push	1
	push	0
	push	edx
	mov	eax,dword [edx]
	call	dword [eax+72]
	mov	eax,dword [_640]
	push	2
	push	eax
	mov	eax,dword [eax]
	call	dword [eax+96]
	mov	eax,dword [_640]
	push	0
	push	2
	push	eax
	mov	eax,dword [eax]
	call	dword [eax+52]
	mov	eax,0
	jmp	_555
_1261:
	fld	dword [_654]
	fstp	dword [ebp-48]
	fld	dword [ebp-60]
	fsub	dword [ebp-52]
	sub	esp,8
	fstp	qword [esp]
	call	_bbFloatAbs
	add	esp,8
	fstp	dword [ebp-68]
	fld	dword [ebp-64]
	fsub	dword [ebp-56]
	sub	esp,8
	fstp	qword [esp]
	call	_bbFloatAbs
	add	esp,8
	fld	dword [ebp-68]
	fucompp
	fnstsw	ax
	sahf
	setbe	al
	movzx	eax,al
	cmp	eax,0
	jne	_1268
	mov	eax,dword [ebp-28]
	fld	dword [ebp-56]
	fsub	dword [ebp-48]
	fstp	dword [eax+24]
	mov	eax,dword [ebp-28]
	fld	dword [ebp-52]
	fstp	dword [eax+4+24]
	mov	eax,dword [ebp-28]
	fld	dword [ebp-56]
	fadd	dword [ebp-48]
	fstp	dword [eax+16+24]
	mov	eax,dword [ebp-28]
	fld	dword [ebp-52]
	fstp	dword [eax+20+24]
	mov	eax,dword [ebp-28]
	fld	dword [ebp-64]
	fsub	dword [ebp-48]
	fstp	dword [eax+32+24]
	mov	eax,dword [ebp-28]
	fld	dword [ebp-60]
	fstp	dword [eax+36+24]
	mov	eax,dword [ebp-28]
	fld	dword [ebp-64]
	fadd	dword [ebp-48]
	fstp	dword [eax+48+24]
	mov	eax,dword [ebp-28]
	fld	dword [ebp-60]
	fstp	dword [eax+52+24]
	jmp	_1269
_1268:
	mov	eax,dword [ebp-28]
	fld	dword [ebp-56]
	fstp	dword [eax+24]
	mov	eax,dword [ebp-28]
	fld	dword [ebp-52]
	fsub	dword [ebp-48]
	fstp	dword [eax+4+24]
	mov	eax,dword [ebp-28]
	fld	dword [ebp-56]
	fstp	dword [eax+16+24]
	mov	eax,dword [ebp-28]
	fld	dword [ebp-52]
	fadd	dword [ebp-48]
	fstp	dword [eax+20+24]
	mov	eax,dword [ebp-28]
	fld	dword [ebp-64]
	fstp	dword [eax+32+24]
	mov	eax,dword [ebp-28]
	fld	dword [ebp-60]
	fsub	dword [ebp-48]
	fstp	dword [eax+36+24]
	mov	eax,dword [ebp-28]
	fld	dword [ebp-64]
	fstp	dword [eax+48+24]
	mov	eax,dword [ebp-28]
	fld	dword [ebp-60]
	fadd	dword [ebp-48]
	fstp	dword [eax+52+24]
_1269:
	push	_1
	mov	eax,dword [ebp-28]
	push	dword [eax+16]
	mov	eax,dword [ebp-28]
	lea	eax,byte [eax+24]
	push	eax
	push	0
	push	4
	push	0
	lea	eax,dword [_671]
	push	eax
	call	_74
	add	esp,28
	mov	dword [ebp-40],16
	mov	dword [ebp-44],0
	mov	edx,dword [_640]
	lea	eax,dword [ebp-44]
	push	eax
	lea	eax,dword [ebp-40]
	push	eax
	lea	eax,dword [_671]
	push	eax
	push	1
	push	0
	push	edx
	mov	eax,dword [edx]
	call	dword [eax+72]
	mov	eax,dword [_640]
	push	5
	push	eax
	mov	eax,dword [eax]
	call	dword [eax+96]
	mov	eax,dword [_640]
	push	0
	push	4
	push	eax
	mov	eax,dword [eax]
	call	dword [eax+52]
	mov	eax,0
	jmp	_555
_555:
	pop	edi
	pop	esi
	pop	ebx
	mov	esp,ebp
	pop	ebp
	ret
__srs_d3d11max2d_TD3D11Max2DDriver_DrawRect:
	push	ebp
	mov	ebp,esp
	sub	esp,20
	push	ebx
	push	esi
	push	edi
	mov	ebx,dword [ebp+8]
	fld	dword [ebp+28]
	fstp	dword [ebp-4]
	fld	dword [ebp+32]
	fstp	dword [ebp-8]
	push	16
	push	_1275
	call	_bbArrayNew1D
	add	esp,8
	mov	dword [ebp-12],eax
	lea	eax,dword [ebp-8]
	push	eax
	lea	eax,dword [ebp-4]
	push	eax
	push	ebx
	mov	eax,dword [ebx]
	call	dword [eax+136]
	add	esp,12
	mov	eax,dword [ebp-12]
	fld	dword [ebp+12]
	fmul	dword [_650]
	fld	dword [ebp+16]
	fmul	dword [_651]
	faddp	st1,st0
	fadd	dword [ebp-4]
	fstp	dword [eax+24]
	mov	eax,dword [ebp-12]
	fld	dword [ebp+12]
	fmul	dword [_652]
	fld	dword [ebp+16]
	fmul	dword [_653]
	faddp	st1,st0
	fadd	dword [ebp-8]
	fstp	dword [eax+4+24]
	mov	eax,dword [ebp-12]
	fld	dword [ebp+20]
	fmul	dword [_650]
	fld	dword [ebp+16]
	fmul	dword [_651]
	faddp	st1,st0
	fadd	dword [ebp-4]
	fstp	dword [eax+16+24]
	mov	eax,dword [ebp-12]
	fld	dword [ebp+20]
	fmul	dword [_652]
	fld	dword [ebp+16]
	fmul	dword [_653]
	faddp	st1,st0
	fadd	dword [ebp-8]
	fstp	dword [eax+20+24]
	mov	eax,dword [ebp-12]
	fld	dword [ebp+12]
	fmul	dword [_650]
	fld	dword [ebp+24]
	fmul	dword [_651]
	faddp	st1,st0
	fadd	dword [ebp-4]
	fstp	dword [eax+32+24]
	mov	eax,dword [ebp-12]
	fld	dword [ebp+12]
	fmul	dword [_652]
	fld	dword [ebp+24]
	fmul	dword [_653]
	faddp	st1,st0
	fadd	dword [ebp-8]
	fstp	dword [eax+36+24]
	mov	eax,dword [ebp-12]
	fld	dword [ebp+20]
	fmul	dword [_650]
	fld	dword [ebp+24]
	fmul	dword [_651]
	faddp	st1,st0
	fadd	dword [ebp-4]
	fstp	dword [eax+48+24]
	mov	eax,dword [ebp-12]
	fld	dword [ebp+20]
	fmul	dword [_652]
	fld	dword [ebp+24]
	fmul	dword [_653]
	faddp	st1,st0
	fadd	dword [ebp-8]
	fstp	dword [eax+52+24]
	push	_1
	mov	eax,dword [ebp-12]
	push	dword [eax+16]
	mov	eax,dword [ebp-12]
	lea	eax,byte [eax+24]
	push	eax
	push	0
	push	4
	push	0
	lea	eax,dword [_671]
	push	eax
	call	_74
	add	esp,28
	mov	dword [ebp-16],16
	mov	dword [ebp-20],0
	mov	eax,dword [_640]
	push	0
	push	0
	push	dword [_665]
	push	eax
	mov	eax,dword [eax]
	call	dword [eax+44]
	mov	eax,dword [_640]
	push	0
	push	0
	push	dword [_667]
	push	eax
	mov	eax,dword [eax]
	call	dword [eax+36]
	mov	edx,dword [_640]
	lea	eax,dword [_672]
	push	eax
	push	1
	push	0
	push	edx
	mov	eax,dword [edx]
	call	dword [eax+64]
	mov	eax,dword [_640]
	push	dword [_669]
	push	eax
	mov	eax,dword [eax]
	call	dword [eax+68]
	mov	edx,dword [_640]
	lea	eax,dword [ebp-20]
	push	eax
	lea	eax,dword [ebp-16]
	push	eax
	lea	eax,dword [_671]
	push	eax
	push	1
	push	0
	push	edx
	mov	eax,dword [edx]
	call	dword [eax+72]
	mov	eax,dword [_640]
	push	5
	push	eax
	mov	eax,dword [eax]
	call	dword [eax+96]
	mov	eax,dword [_640]
	push	0
	push	4
	push	eax
	mov	eax,dword [eax]
	call	dword [eax+52]
	push	ebx
	mov	eax,dword [ebx]
	call	dword [eax+140]
	add	esp,4
	mov	eax,0
	jmp	_564
_564:
	pop	edi
	pop	esi
	pop	ebx
	mov	esp,ebp
	pop	ebp
	ret
__srs_d3d11max2d_TD3D11Max2DDriver_DrawOval:
	push	ebp
	mov	ebp,esp
	sub	esp,84
	push	ebx
	push	esi
	push	edi
	fld	dword [ebp+28]
	fstp	dword [ebp-4]
	fld	dword [ebp+32]
	fstp	dword [ebp-8]
	mov	edi,0
	mov	edx,dword [ebp+8]
	lea	eax,dword [ebp-8]
	push	eax
	lea	eax,dword [ebp-4]
	push	eax
	push	edx
	mov	eax,dword [edx]
	call	dword [eax+136]
	add	esp,12
	fld	dword [ebp+20]
	fsub	dword [ebp+12]
	fmul	dword [_1847]
	fstp	dword [ebp-80]
	fld	dword [ebp+24]
	fsub	dword [ebp+16]
	fmul	dword [_1848]
	fstp	dword [ebp-76]
	fld	dword [ebp-80]
	sub	esp,8
	fstp	qword [esp]
	call	_bbFloatAbs
	add	esp,8
	fstp	dword [ebp-64]
	fld	dword [ebp-76]
	sub	esp,8
	fstp	qword [esp]
	call	_bbFloatAbs
	add	esp,8
	fld	dword [ebp-64]
	faddp	st1,st0
	fstp	dword [ebp-64]
	fld	dword [ebp-64]
	sub	esp,8
	fstp	qword [esp]
	call	_bbFloatToInt
	add	esp,8
	mov	esi,eax
	push	12
	push	esi
	call	_bbIntMax
	add	esp,8
	and	eax,-4
	mov	esi,eax
	mov	edx,dword [_694]
	mov	eax,esi
	imul	eax,12
	cmp	dword [edx+20],eax
	je	_1293
	mov	ebx,_bbEmptyArray
	inc	dword [ebx+4]
	mov	eax,dword [_694]
	dec	dword [eax+4]
	jnz	_1297
	push	eax
	call	_bbGCFree
	add	esp,4
_1297:
	mov	dword [_694],ebx
	call	_bbGCCollect
	mov	eax,esi
	imul	eax,12
	push	eax
	push	0
	push	dword [_694]
	push	_216
	call	_bbArraySlice
	add	esp,16
	mov	ebx,eax
	inc	dword [ebx+4]
	mov	eax,dword [_694]
	dec	dword [eax+4]
	jnz	_1301
	push	eax
	call	_bbGCFree
	add	esp,4
_1301:
	mov	dword [_694],ebx
	mov	edi,1
_1293:
	fld	dword [ebp+12]
	fadd	dword [ebp-80]
	fstp	dword [ebp+12]
	fld	dword [ebp+16]
	fadd	dword [ebp-76]
	fstp	dword [ebp+16]
	fld	dword [ebp+12]
	fadd	dword [ebp-4]
	fstp	dword [ebp-68]
	fld	dword [ebp+16]
	fadd	dword [ebp-8]
	fstp	dword [ebp-72]
	fld	dword [_1849]
	fstp	dword [ebp-60]
	mov	ebx,0
_117:
	mov	eax,dword [_694]
	fld	dword [ebp-68]
	fstp	dword [eax+ebx*4+24]
	mov	edx,dword [_694]
	mov	eax,ebx
	add	eax,1
	fld	dword [ebp-72]
	fstp	dword [edx+eax*4+24]
	fld	dword [ebp-60]
	fchs
	fmul	dword [_1850]
	mov	dword [ebp+-84],esi
	fild	dword [ebp+-84]
	fdivp	st1,st0
	fstp	dword [ebp-24]
	fld	dword [ebp+12]
	fstp	qword [ebp-40]
	fld	dword [ebp-24]
	sub	esp,8
	fstp	qword [esp]
	call	_bbCos
	add	esp,8
	fld	dword [ebp-80]
	fmulp	st1,st0
	fld	qword [ebp-40]
	faddp	st1,st0
	fstp	qword [ebp-40]
	fld	qword [ebp-40]
	fstp	dword [ebp-20]
	fld	dword [ebp+16]
	fstp	qword [ebp-48]
	fld	dword [ebp-24]
	sub	esp,8
	fstp	qword [esp]
	call	_bbSin
	add	esp,8
	fld	dword [ebp-76]
	fmulp	st1,st0
	fld	qword [ebp-48]
	fsubrp	st1,st0
	fstp	qword [ebp-48]
	fld	qword [ebp-48]
	fld	dword [ebp-20]
	fmul	dword [_650]
	fld	st1
	fmul	dword [_651]
	faddp	st1,st0
	fadd	dword [ebp-4]
	fld	dword [ebp-20]
	fmul	dword [_652]
	fxch	st2
	fmul	dword [_653]
	faddp	st2,st0
	fxch	st1
	fadd	dword [ebp-8]
	mov	edx,dword [_694]
	mov	eax,ebx
	add	eax,4
	fxch	st1
	fstp	dword [edx+eax*4+24]
	mov	edx,dword [_694]
	mov	eax,ebx
	add	eax,5
	fstp	dword [edx+eax*4+24]
	fld	dword [ebp-60]
	fadd	dword [_1851]
	fstp	dword [ebp-60]
	fld	dword [ebp-60]
	fchs
	fmul	dword [_1852]
	mov	dword [ebp+-84],esi
	fild	dword [ebp+-84]
	fdivp	st1,st0
	fstp	dword [ebp-24]
	fld	dword [ebp+12]
	fstp	qword [ebp-32]
	fld	dword [ebp-24]
	sub	esp,8
	fstp	qword [esp]
	call	_bbCos
	add	esp,8
	fld	dword [ebp-80]
	fmulp	st1,st0
	fld	qword [ebp-32]
	faddp	st1,st0
	fstp	qword [ebp-32]
	fld	qword [ebp-32]
	fstp	dword [ebp-20]
	fld	dword [ebp+16]
	fstp	qword [ebp-56]
	fld	dword [ebp-24]
	sub	esp,8
	fstp	qword [esp]
	call	_bbSin
	add	esp,8
	fld	dword [ebp-76]
	fmulp	st1,st0
	fld	qword [ebp-56]
	fsubrp	st1,st0
	fstp	qword [ebp-56]
	fld	qword [ebp-56]
	fld	dword [ebp-20]
	fmul	dword [_650]
	fld	st1
	fmul	dword [_651]
	faddp	st1,st0
	fadd	dword [ebp-4]
	fld	dword [ebp-20]
	fmul	dword [_652]
	fxch	st2
	fmul	dword [_653]
	faddp	st2,st0
	fxch	st1
	fadd	dword [ebp-8]
	mov	edx,dword [_694]
	mov	eax,ebx
	add	eax,8
	fxch	st1
	fstp	dword [edx+eax*4+24]
	mov	edx,dword [_694]
	mov	eax,ebx
	add	eax,9
	fstp	dword [edx+eax*4+24]
	add	ebx,12
_115:
	mov	dword [ebp+-84],esi
	fild	dword [ebp+-84]
	fld	dword [ebp-60]
	fucompp
	fnstsw	ax
	sahf
	setnz	al
	movzx	eax,al
	cmp	eax,0
	jne	_117
_116:
	cmp	edi,0
	jne	_1311
	push	_1
	mov	eax,dword [_694]
	push	dword [eax+16]
	mov	eax,dword [_694]
	lea	eax,byte [eax+24]
	push	eax
	push	0
	push	4
	push	0
	lea	eax,dword [_674]
	push	eax
	call	_74
	add	esp,28
	jmp	_1312
_1311:
	lea	eax,dword [_674]
	push	eax
	call	_67
	add	esp,4
	push	_118
	mov	eax,dword [_694]
	lea	eax,byte [eax+24]
	push	eax
	push	65536
	push	1
	push	2
	mov	eax,dword [_694]
	push	dword [eax+16]
	lea	eax,dword [_674]
	push	eax
	call	_71
	add	esp,28
_1312:
	mov	dword [ebp-12],16
	mov	dword [ebp-16],0
	mov	eax,dword [_640]
	push	0
	push	0
	push	dword [_665]
	push	eax
	mov	eax,dword [eax]
	call	dword [eax+44]
	mov	eax,dword [_640]
	push	0
	push	0
	push	dword [_667]
	push	eax
	mov	eax,dword [eax]
	call	dword [eax+36]
	mov	edx,dword [_640]
	lea	eax,dword [_672]
	push	eax
	push	1
	push	0
	push	edx
	mov	eax,dword [edx]
	call	dword [eax+64]
	mov	eax,dword [_640]
	push	dword [_669]
	push	eax
	mov	eax,dword [eax]
	call	dword [eax+68]
	mov	edx,dword [_640]
	lea	eax,dword [ebp-16]
	push	eax
	lea	eax,dword [ebp-12]
	push	eax
	lea	eax,dword [_674]
	push	eax
	push	1
	push	0
	push	edx
	mov	eax,dword [edx]
	call	dword [eax+72]
	mov	eax,dword [_640]
	push	4
	push	eax
	mov	eax,dword [eax]
	call	dword [eax+96]
	mov	edx,dword [_640]
	push	0
	mov	eax,esi
	imul	eax,3
	push	eax
	push	edx
	mov	eax,dword [edx]
	call	dword [eax+52]
	mov	eax,dword [ebp+8]
	push	eax
	mov	eax,dword [eax]
	call	dword [eax+140]
	add	esp,4
	mov	eax,0
	jmp	_573
_573:
	pop	edi
	pop	esi
	pop	ebx
	mov	esp,ebp
	pop	ebp
	ret
__srs_d3d11max2d_TD3D11Max2DDriver_DrawPoly:
	push	ebp
	mov	ebp,esp
	sub	esp,24
	push	ebx
	push	esi
	push	edi
	mov	ebx,dword [ebp+12]
	fld	dword [ebp+24]
	fstp	dword [ebp-4]
	fld	dword [ebp+28]
	fstp	dword [ebp-8]
	mov	edx,dword [ebp+8]
	lea	eax,dword [ebp-8]
	push	eax
	lea	eax,dword [ebp-4]
	push	eax
	push	edx
	mov	eax,dword [edx]
	call	dword [eax+136]
	add	esp,12
	mov	eax,dword [ebx+20]
	cmp	eax,6
	setl	al
	movzx	eax,al
	cmp	eax,0
	jne	_1324
	mov	eax,dword [ebx+20]
	and	eax,1
_1324:
	cmp	eax,0
	je	_1326
	mov	eax,0
	jmp	_581
_1326:
	mov	eax,dword [ebx+20]
	cdq
	and	edx,1
	add	eax,edx
	sar	eax,1
	sub	eax,2
	mov	edi,eax
	mov	dword [ebp-24],0
	mov	edx,dword [_693]
	mov	eax,edi
	imul	eax,12
	cmp	dword [edx+20],eax
	je	_1330
	mov	eax,_bbEmptyArray
	inc	dword [eax+4]
	mov	esi,eax
	mov	eax,dword [_693]
	dec	dword [eax+4]
	jnz	_1334
	push	eax
	call	_bbGCFree
	add	esp,4
_1334:
	mov	dword [_693],esi
	call	_bbGCCollect
	mov	eax,edi
	imul	eax,12
	push	eax
	push	0
	push	dword [_693]
	push	_216
	call	_bbArraySlice
	add	esp,16
	inc	dword [eax+4]
	mov	esi,eax
	mov	eax,dword [_693]
	dec	dword [eax+4]
	jnz	_1338
	push	eax
	call	_bbGCFree
	add	esp,4
_1338:
	mov	dword [_693],esi
	mov	dword [ebp-24],1
_1330:
	fld	dword [ebx+24]
	fadd	dword [ebp+16]
	fstp	dword [ebp-20]
	fld	dword [ebx+4+24]
	fadd	dword [ebp+20]
	mov	edx,1
	mov	eax,0
_121:
	mov	ecx,edx
	shl	ecx,1
	fld	dword [ebx+ecx*4+24]
	fadd	dword [ebp+16]
	mov	ecx,edx
	shl	ecx,1
	add	ecx,1
	fld	dword [ebx+ecx*4+24]
	fadd	dword [ebp+20]
	mov	ecx,edx
	shl	ecx,1
	add	ecx,2
	fld	dword [ebx+ecx*4+24]
	fadd	dword [ebp+16]
	mov	ecx,edx
	shl	ecx,1
	add	ecx,3
	fld	dword [ebx+ecx*4+24]
	fadd	dword [ebp+20]
	mov	esi,dword [_693]
	mov	ecx,eax
	imul	ecx,12
	fld	dword [ebp-20]
	fmul	dword [_650]
	fld	st5
	fmul	dword [_651]
	faddp	st1,st0
	fadd	dword [ebp-4]
	fstp	dword [esi+ecx*4+24]
	mov	ecx,dword [_693]
	mov	esi,eax
	imul	esi,12
	add	esi,1
	fld	dword [ebp-20]
	fmul	dword [_652]
	fld	st5
	fmul	dword [_653]
	faddp	st1,st0
	fadd	dword [ebp-8]
	fstp	dword [ecx+esi*4+24]
	mov	ecx,dword [_693]
	mov	esi,eax
	imul	esi,12
	add	esi,4
	fld	st3
	fmul	dword [_650]
	fld	st3
	fmul	dword [_651]
	faddp	st1,st0
	fadd	dword [ebp-4]
	fstp	dword [ecx+esi*4+24]
	mov	ecx,dword [_693]
	mov	esi,eax
	imul	esi,12
	add	esi,5
	fxch	st3
	fmul	dword [_652]
	fxch	st2
	fmul	dword [_653]
	faddp	st2,st0
	fxch	st1
	fadd	dword [ebp-8]
	fstp	dword [ecx+esi*4+24]
	mov	ecx,dword [_693]
	mov	esi,eax
	imul	esi,12
	add	esi,8
	fld	st0
	fmul	dword [_650]
	fld	st2
	fmul	dword [_651]
	faddp	st1,st0
	fadd	dword [ebp-4]
	fstp	dword [ecx+esi*4+24]
	mov	ecx,dword [_693]
	mov	esi,eax
	imul	esi,12
	add	esi,9
	fmul	dword [_652]
	fxch	st1
	fmul	dword [_653]
	faddp	st1,st0
	fadd	dword [ebp-8]
	fstp	dword [ecx+esi*4+24]
	add	edx,1
	add	eax,1
_119:
	cmp	eax,edi
	jne	_121
	fstp	st0
_120:
	cmp	dword [ebp-24],0
	jne	_1347
	push	_1
	mov	eax,dword [_693]
	push	dword [eax+16]
	mov	eax,dword [_693]
	lea	eax,byte [eax+24]
	push	eax
	push	0
	push	4
	push	0
	lea	eax,dword [_673]
	push	eax
	call	_74
	add	esp,28
	jmp	_1348
_1347:
	lea	eax,dword [_673]
	push	eax
	call	_67
	add	esp,4
	push	_122
	mov	eax,dword [_693]
	lea	eax,byte [eax+24]
	push	eax
	push	65536
	push	1
	push	2
	mov	eax,dword [_693]
	push	dword [eax+16]
	lea	eax,dword [_673]
	push	eax
	call	_71
	add	esp,28
_1348:
	mov	dword [ebp-12],16
	mov	dword [ebp-16],0
	mov	eax,dword [_640]
	push	0
	push	0
	push	dword [_665]
	push	eax
	mov	eax,dword [eax]
	call	dword [eax+44]
	mov	eax,dword [_640]
	push	0
	push	0
	push	dword [_667]
	push	eax
	mov	eax,dword [eax]
	call	dword [eax+36]
	mov	edx,dword [_640]
	lea	eax,dword [_672]
	push	eax
	push	1
	push	0
	push	edx
	mov	eax,dword [edx]
	call	dword [eax+64]
	mov	eax,dword [_640]
	push	dword [_669]
	push	eax
	mov	eax,dword [eax]
	call	dword [eax+68]
	mov	edx,dword [_640]
	lea	eax,dword [ebp-16]
	push	eax
	lea	eax,dword [ebp-12]
	push	eax
	lea	eax,dword [_673]
	push	eax
	push	1
	push	0
	push	edx
	mov	eax,dword [edx]
	call	dword [eax+72]
	mov	eax,dword [_640]
	push	4
	push	eax
	mov	eax,dword [eax]
	call	dword [eax+96]
	mov	edx,dword [_640]
	push	0
	mov	eax,edi
	imul	eax,3
	push	eax
	push	edx
	mov	eax,dword [edx]
	call	dword [eax+52]
	mov	eax,dword [ebp+8]
	push	eax
	mov	eax,dword [eax]
	call	dword [eax+140]
	add	esp,4
	mov	eax,0
	jmp	_581
_581:
	pop	edi
	pop	esi
	pop	ebx
	mov	esp,ebp
	pop	ebp
	ret
__srs_d3d11max2d_TD3D11Max2DDriver_DrawPixmap:
	push	ebp
	mov	ebp,esp
	sub	esp,36
	push	ebx
	push	esi
	push	edi
	mov	esi,dword [ebp+12]
	mov	edi,dword [ebp+16]
	mov	ebx,dword [ebp+20]
	mov	dword [ebp-12],0
	push	_srs_directx11_D3D11_TEXTURE2D_DESC
	call	_bbObjectNew
	add	esp,4
	mov	dword [ebp-4],eax
	cmp	dword [esi+24],6
	je	_1361
	push	6
	push	esi
	call	_brl_pixmap_ConvertPixmap
	add	esp,8
	mov	esi,eax
_1361:
	mov	edx,dword [ebp-4]
	mov	eax,dword [esi+12]
	mov	dword [edx+8],eax
	mov	edx,dword [ebp-4]
	mov	eax,dword [esi+16]
	mov	dword [edx+12],eax
	mov	eax,dword [ebp-4]
	mov	dword [eax+16],1
	mov	eax,dword [ebp-4]
	mov	dword [eax+20],1
	mov	eax,dword [ebp-4]
	mov	dword [eax+24],28
	mov	eax,dword [ebp-4]
	mov	dword [eax+28],1
	mov	eax,dword [ebp-4]
	mov	dword [eax+32],0
	mov	eax,dword [ebp-4]
	mov	dword [eax+36],0
	mov	eax,dword [ebp-4]
	mov	dword [eax+40],8
	mov	eax,dword [ebp-4]
	mov	dword [eax+44],0
	mov	eax,dword [ebp-4]
	mov	dword [eax+48],0
	push	3
	push	_1362
	call	_bbArrayNew1D
	add	esp,8
	mov	dword [ebp-8],eax
	mov	edx,dword [ebp-8]
	mov	eax,dword [esi+8]
	mov	dword [edx+24],eax
	mov	edx,dword [ebp-8]
	mov	eax,dword [esi+20]
	mov	dword [edx+4+24],eax
	mov	edx,dword [ebp-8]
	mov	eax,dword [esi+20]
	imul	eax,dword [esi+16]
	mov	dword [edx+8+24],eax
	mov	eax,dword [_639]
	lea	edx,dword [ebp-12]
	push	edx
	mov	edx,dword [ebp-8]
	lea	edx,byte [edx+24]
	push	edx
	mov	edx,dword [ebp-4]
	lea	edx,dword [edx+8]
	push	edx
	push	eax
	mov	eax,dword [eax]
	call	dword [eax+20]
	cmp	eax,0
	jge	_1365
	push	_123
	call	_bbWriteStdout
	add	esp,4
	mov	eax,0
	jmp	_587
_1365:
	push	16
	push	_216
	call	_bbArrayNew1D
	add	esp,8
	mov	dword [ebp+-36],edi
	fild	dword [ebp+-36]
	fstp	dword [eax+24]
	mov	dword [ebp+-36],ebx
	fild	dword [ebp+-36]
	fstp	dword [eax+28]
	fldz
	fstp	dword [eax+32]
	fldz
	fstp	dword [eax+36]
	mov	edx,edi
	add	edx,dword [esi+12]
	mov	dword [ebp+-36],edx
	fild	dword [ebp+-36]
	fstp	dword [eax+40]
	mov	dword [ebp+-36],ebx
	fild	dword [ebp+-36]
	fstp	dword [eax+44]
	fld1
	fstp	dword [eax+48]
	fldz
	fstp	dword [eax+52]
	mov	dword [ebp+-36],edi
	fild	dword [ebp+-36]
	fstp	dword [eax+56]
	mov	edx,ebx
	add	edx,dword [esi+16]
	mov	dword [ebp+-36],edx
	fild	dword [ebp+-36]
	fstp	dword [eax+60]
	fldz
	fstp	dword [eax+64]
	fld1
	fstp	dword [eax+68]
	mov	edx,edi
	add	edx,dword [esi+12]
	mov	dword [ebp+-36],edx
	fild	dword [ebp+-36]
	fstp	dword [eax+72]
	mov	edx,ebx
	add	edx,dword [esi+16]
	mov	dword [ebp+-36],edx
	fild	dword [ebp+-36]
	fstp	dword [eax+76]
	fld1
	fstp	dword [eax+80]
	fld1
	fstp	dword [eax+84]
	mov	dword [ebp-16],eax
	push	_1
	mov	eax,dword [ebp-16]
	push	dword [eax+16]
	mov	eax,dword [ebp-16]
	lea	eax,byte [eax+24]
	push	eax
	push	0
	push	4
	push	0
	lea	eax,dword [_671]
	push	eax
	call	_74
	add	esp,28
	push	_srs_directx11_D3D11_SHADER_RESOURCE_VIEW_DESC
	call	_bbObjectNew
	add	esp,4
	mov	dword [ebp-20],eax
	mov	dword [ebp-24],0
	mov	eax,dword [ebp-20]
	mov	dword [eax+8],28
	mov	eax,dword [ebp-20]
	mov	dword [eax+12],4
	mov	eax,dword [ebp-20]
	mov	dword [eax+16],0
	mov	eax,dword [ebp-20]
	mov	dword [eax+20],1
	mov	edx,dword [_639]
	lea	eax,dword [ebp-24]
	push	eax
	mov	eax,dword [ebp-20]
	lea	eax,dword [eax+8]
	push	eax
	push	dword [ebp-12]
	push	edx
	mov	eax,dword [edx]
	call	dword [eax+28]
	cmp	eax,0
	jge	_1371
	push	_124
	call	_bbWriteStdout
	add	esp,4
	mov	eax,0
	jmp	_587
_1371:
	mov	dword [ebp-28],16
	mov	dword [ebp-32],0
	mov	edx,dword [_640]
	lea	eax,dword [ebp-24]
	push	eax
	push	1
	push	0
	push	edx
	mov	eax,dword [edx]
	call	dword [eax+32]
	mov	eax,dword [_640]
	push	0
	push	0
	push	dword [_665]
	push	eax
	mov	eax,dword [eax]
	call	dword [eax+44]
	mov	eax,dword [_640]
	push	0
	push	0
	push	dword [_668]
	push	eax
	mov	eax,dword [eax]
	call	dword [eax+36]
	mov	edx,dword [_640]
	lea	eax,dword [_672]
	push	eax
	push	1
	push	0
	push	edx
	mov	eax,dword [edx]
	call	dword [eax+64]
	mov	eax,dword [_640]
	push	dword [_669]
	push	eax
	mov	eax,dword [eax]
	call	dword [eax+68]
	mov	edx,dword [_640]
	lea	eax,dword [ebp-32]
	push	eax
	lea	eax,dword [ebp-28]
	push	eax
	lea	eax,dword [_671]
	push	eax
	push	1
	push	0
	push	edx
	mov	eax,dword [edx]
	call	dword [eax+72]
	mov	eax,dword [_640]
	push	5
	push	eax
	mov	eax,dword [eax]
	call	dword [eax+96]
	mov	eax,dword [_640]
	push	0
	push	4
	push	eax
	mov	eax,dword [eax]
	call	dword [eax+52]
	lea	eax,dword [ebp-12]
	push	eax
	call	_67
	add	esp,4
	lea	eax,dword [ebp-24]
	push	eax
	call	_67
	add	esp,4
	mov	eax,0
	jmp	_587
_587:
	pop	edi
	pop	esi
	pop	ebx
	mov	esp,ebp
	pop	ebp
	ret
__srs_d3d11max2d_TD3D11Max2DDriver_GrabPixmap:
	push	ebp
	mov	ebp,esp
	sub	esp,28
	push	ebx
	push	esi
	push	edi
	mov	edx,dword [ebp+20]
	mov	eax,dword [ebp+24]
	push	4
	push	6
	push	eax
	push	edx
	call	_brl_pixmap_CreatePixmap
	add	esp,16
	mov	dword [ebp-24],eax
	mov	dword [ebp-4],0
	mov	dword [ebp-8],0
	mov	dword [ebp-16],0
	mov	edx,dword [_640]
	push	0
	lea	eax,dword [ebp-4]
	push	eax
	push	1
	push	edx
	mov	eax,dword [edx]
	call	dword [eax+356]
	mov	edx,dword [ebp-4]
	lea	eax,dword [ebp-8]
	push	eax
	push	edx
	mov	eax,dword [edx]
	call	dword [eax+28]
	push	_srs_directx11_D3D11_TEXTURE2D_DESC
	call	_bbObjectNew
	add	esp,4
	mov	dword [ebp-12],eax
	mov	edx,dword [ebp-8]
	mov	eax,dword [ebp-12]
	lea	eax,dword [eax+8]
	push	eax
	push	edx
	mov	eax,dword [edx]
	call	dword [eax+40]
	mov	eax,dword [ebp-12]
	mov	dword [eax+36],3
	mov	eax,dword [ebp-12]
	mov	dword [eax+40],0
	mov	eax,dword [ebp-12]
	mov	dword [eax+44],131072
	mov	eax,dword [ebp-12]
	mov	dword [eax+48],0
	mov	edx,dword [_639]
	lea	eax,dword [ebp-16]
	push	eax
	push	0
	mov	eax,dword [ebp-12]
	lea	eax,dword [eax+8]
	push	eax
	push	edx
	mov	eax,dword [edx]
	call	dword [eax+20]
	mov	eax,dword [_640]
	push	dword [ebp-8]
	push	dword [ebp-16]
	push	eax
	mov	eax,dword [eax]
	call	dword [eax+188]
	push	_srs_directx11_D3D11_MAPPED_SUBRESOURCE
	call	_bbObjectNew
	add	esp,4
	mov	dword [ebp-20],eax
	mov	edx,dword [_640]
	mov	eax,dword [ebp-20]
	lea	eax,dword [eax+8]
	push	eax
	push	0
	push	1
	push	0
	push	dword [ebp-16]
	push	edx
	mov	eax,dword [edx]
	call	dword [eax+56]
	mov	edi,0
	mov	eax,dword [ebp-24]
	mov	eax,dword [eax+16]
	mov	dword [ebp-28],eax
	jmp	_1395
_127:
	mov	eax,dword [ebp-24]
	mov	eax,dword [eax+8]
	mov	edx,edi
	mov	ecx,dword [ebp-24]
	imul	edx,dword [ecx+20]
	add	eax,edx
	mov	esi,eax
	mov	eax,dword [ebp-20]
	mov	ebx,dword [eax+8]
	mov	eax,dword [ebp+12]
	shl	eax,2
	mov	ecx,eax
	mov	edx,dword [ebp+16]
	mov	eax,dword [ebp-20]
	imul	edx,dword [eax+12]
	add	ecx,edx
	add	ebx,ecx
	mov	eax,ebx
	mov	ecx,edi
	mov	edx,dword [ebp-20]
	imul	ecx,dword [edx+12]
	add	eax,ecx
	mov	edx,dword [ebp-24]
	push	dword [edx+20]
	push	eax
	push	esi
	call	_bbMemCopy
	add	esp,12
_125:
	add	edi,1
_1395:
	cmp	edi,dword [ebp-28]
	jl	_127
_126:
	mov	eax,dword [_640]
	push	0
	push	dword [ebp-16]
	push	eax
	mov	eax,dword [eax]
	call	dword [eax+60]
	lea	eax,dword [ebp-16]
	push	eax
	call	_67
	add	esp,4
	lea	eax,dword [ebp-8]
	push	eax
	call	_67
	add	esp,4
	lea	eax,dword [ebp-4]
	push	eax
	call	_67
	add	esp,4
	mov	eax,dword [ebp-24]
	jmp	_594
_594:
	pop	edi
	pop	esi
	pop	ebx
	mov	esp,ebp
	pop	ebp
	ret
__srs_d3d11max2d_TD3D11Max2DDriver_SetResolution:
	push	ebp
	mov	ebp,esp
	push	ebx
	push	16
	push	_216
	call	_bbArrayNew1D
	add	esp,8
	fld	dword [_1871]
	fdiv	dword [ebp+12]
	fstp	dword [eax+24]
	fldz
	fstp	dword [eax+28]
	fldz
	fstp	dword [eax+32]
	fld	dword [_1872]
	fld	dword [_1873]
	fdiv	dword [ebp+12]
	fsubp	st1,st0
	fstp	dword [eax+36]
	fldz
	fstp	dword [eax+40]
	fld	dword [_1874]
	fdiv	dword [ebp+16]
	fstp	dword [eax+44]
	fldz
	fstp	dword [eax+48]
	fld	dword [_1875]
	fld	dword [_1876]
	fdiv	dword [ebp+16]
	faddp	st1,st0
	fstp	dword [eax+52]
	fldz
	fstp	dword [eax+56]
	fldz
	fstp	dword [eax+60]
	fld1
	fstp	dword [eax+64]
	fldz
	fstp	dword [eax+68]
	fldz
	fstp	dword [eax+72]
	fldz
	fstp	dword [eax+76]
	fldz
	fstp	dword [eax+80]
	fld1
	fstp	dword [eax+84]
	inc	dword [eax+4]
	mov	ebx,eax
	mov	eax,dword [_689]
	dec	dword [eax+4]
	jnz	_1404
	push	eax
	call	_bbGCFree
	add	esp,4
_1404:
	mov	dword [_689],ebx
	push	_1
	mov	eax,dword [_689]
	push	dword [eax+16]
	mov	eax,dword [_689]
	lea	eax,byte [eax+24]
	push	eax
	push	0
	push	4
	push	0
	lea	eax,dword [_677]
	push	eax
	call	_74
	add	esp,28
	mov	eax,0
	jmp	_599
_599:
	pop	ebx
	mov	esp,ebp
	pop	ebp
	ret
__srs_d3d11max2d_TD3D11Max2DDriver_Create:
	push	ebp
	mov	ebp,esp
	push	ebx
	mov	ebx,dword [ebp+8]
	call	_srs_d3d11graphics_D3D11GraphicsDriver
	cmp	eax,_bbNullObject
	setne	al
	movzx	eax,al
	cmp	eax,0
	jne	_1405
	mov	eax,_bbNullObject
	jmp	_602
_1405:
	fldz
	fstp	dword [ebx+8]
	fld1
	fstp	dword [ebx+12]
	push	ebx
	mov	eax,dword [ebx]
	call	dword [eax+156]
	add	esp,4
	mov	eax,ebx
	jmp	_602
_602:
	pop	ebx
	mov	esp,ebp
	pop	ebp
	ret
_srs_d3d11max2d_D3D11Max2DDriver:
	push	ebp
	mov	ebp,esp
	push	ebx
	cmp	dword [_1407],0
	jne	_1408
	mov	ebx,_bbNullObject
	inc	dword [ebx+4]
	mov	eax,dword [_642]
	dec	dword [eax+4]
	jnz	_1412
	push	eax
	call	_bbGCFree
	add	esp,4
_1412:
	mov	dword [_642],ebx
	push	_srs_d3d11max2d_TD3D11Max2DDriver
	call	_bbObjectNew
	add	esp,4
	push	eax
	mov	eax,dword [eax]
	call	dword [eax+164]
	add	esp,4
	inc	dword [eax+4]
	mov	ebx,eax
	mov	eax,dword [_642]
	dec	dword [eax+4]
	jnz	_1417
	push	eax
	call	_bbGCFree
	add	esp,4
_1417:
	mov	dword [_642],ebx
	mov	dword [_1407],1
_1408:
	mov	eax,dword [_642]
	jmp	_604
_604:
	pop	ebx
	mov	esp,ebp
	pop	ebp
	ret
_srs_d3d11max2d_VerifyD3D11Max2DDriver:
	push	ebp
	mov	ebp,esp
	call	_brl_graphics_GetGraphicsDriver
	push	_128
	push	9
	push	0
	push	eax
	mov	eax,dword [eax]
	call	dword [eax+24]
	add	esp,4
	push	eax
	call	_bbStringSlice
	add	esp,12
	push	eax
	call	_bbStringCompare
	add	esp,8
	cmp	eax,0
	jne	_1419
	mov	eax,1
	jmp	_606
_1419:
	mov	eax,0
	jmp	_606
_606:
	mov	esp,ebp
	pop	ebp
	ret
_srs_d3d11max2d_PlotPoints:
	push	ebp
	mov	ebp,esp
	sub	esp,20
	push	ebx
	push	esi
	push	edi
	mov	ebx,dword [ebp+8]
	call	_srs_d3d11max2d_VerifyD3D11Max2DDriver
	cmp	eax,0
	jne	_1420
	mov	eax,0
	jmp	_609
_1420:
	mov	eax,dword [ebx+20]
	cmp	eax,2
	setl	al
	movzx	eax,al
	cmp	eax,0
	jne	_1421
	mov	eax,dword [ebx+20]
	and	eax,1
_1421:
	cmp	eax,0
	je	_1423
	mov	eax,0
	jmp	_609
_1423:
	mov	edi,0
	mov	eax,dword [_644]
	fld	dword [eax+84]
	fstp	dword [ebp-16]
	mov	eax,dword [_644]
	fld	dword [eax+88]
	fstp	dword [ebp-12]
	mov	edx,dword [_692]
	mov	eax,dword [ebx+20]
	shl	eax,1
	cmp	dword [edx+20],eax
	je	_1427
	mov	esi,_bbEmptyArray
	inc	dword [esi+4]
	mov	eax,dword [_692]
	dec	dword [eax+4]
	jnz	_1431
	push	eax
	call	_bbGCFree
	add	esp,4
_1431:
	mov	dword [_692],esi
	call	_bbGCCollect
	mov	eax,dword [ebx+20]
	shl	eax,1
	push	eax
	push	0
	push	dword [_692]
	push	_216
	call	_bbArraySlice
	add	esp,16
	mov	esi,eax
	inc	dword [esi+4]
	mov	eax,dword [_692]
	dec	dword [eax+4]
	jnz	_1435
	push	eax
	call	_bbGCFree
	add	esp,4
_1435:
	mov	dword [_692],esi
	mov	edi,1
_1427:
	mov	edx,0
_131:
	mov	esi,dword [_692]
	mov	ecx,edx
	shl	ecx,2
	mov	eax,edx
	shl	eax,1
	fld	dword [ebx+eax*4+24]
	fadd	dword [ebp-16]
	fstp	dword [esi+ecx*4+24]
	mov	ecx,dword [_692]
	mov	eax,edx
	shl	eax,2
	add	eax,1
	mov	esi,edx
	shl	esi,1
	add	esi,1
	fld	dword [ebx+esi*4+24]
	fadd	dword [ebp-12]
	fstp	dword [ecx+eax*4+24]
	add	edx,1
_129:
	mov	dword [ebp+-20],edx
	fild	dword [ebp+-20]
	mov	eax,dword [ebx+20]
	mov	dword [ebp+-20],eax
	fild	dword [ebp+-20]
	fmul	dword [_1890]
	fxch	st1
	fucompp
	fnstsw	ax
	sahf
	setnz	al
	movzx	eax,al
	cmp	eax,0
	jne	_131
_130:
	cmp	edi,0
	jne	_1437
	push	_1
	mov	eax,dword [_692]
	push	dword [eax+16]
	mov	eax,dword [_692]
	lea	eax,byte [eax+24]
	push	eax
	push	0
	push	4
	push	0
	lea	eax,dword [_675]
	push	eax
	call	_74
	add	esp,28
	jmp	_1438
_1437:
	lea	eax,dword [_675]
	push	eax
	call	_67
	add	esp,4
	push	_132
	mov	eax,dword [_692]
	lea	eax,byte [eax+24]
	push	eax
	push	65536
	push	1
	push	2
	mov	eax,dword [_692]
	push	dword [eax+16]
	lea	eax,dword [_675]
	push	eax
	call	_71
	add	esp,28
_1438:
	mov	dword [ebp-4],16
	mov	dword [ebp-8],0
	mov	eax,dword [_640]
	push	0
	push	0
	push	dword [_665]
	push	eax
	mov	eax,dword [eax]
	call	dword [eax+44]
	mov	eax,dword [_640]
	push	0
	push	0
	push	dword [_667]
	push	eax
	mov	eax,dword [eax]
	call	dword [eax+36]
	mov	edx,dword [_640]
	lea	eax,dword [_672]
	push	eax
	push	1
	push	0
	push	edx
	mov	eax,dword [edx]
	call	dword [eax+64]
	mov	eax,dword [_640]
	push	dword [_669]
	push	eax
	mov	eax,dword [eax]
	call	dword [eax+68]
	mov	edx,dword [_640]
	lea	eax,dword [ebp-8]
	push	eax
	lea	eax,dword [ebp-4]
	push	eax
	lea	eax,dword [_675]
	push	eax
	push	1
	push	0
	push	edx
	mov	eax,dword [edx]
	call	dword [eax+72]
	mov	eax,dword [_640]
	push	1
	push	eax
	mov	eax,dword [eax]
	call	dword [eax+96]
	mov	esi,dword [_640]
	push	0
	mov	eax,dword [ebx+20]
	mov	dword [ebp+-20],eax
	fild	dword [ebp+-20]
	fmul	dword [_1891]
	sub	esp,8
	fstp	qword [esp]
	call	_bbFloatToInt
	add	esp,8
	push	eax
	push	esi
	mov	eax,dword [esi]
	call	dword [eax+52]
	mov	eax,0
	jmp	_609
_609:
	pop	edi
	pop	esi
	pop	ebx
	mov	esp,ebp
	pop	ebp
	ret
_srs_d3d11max2d_DrawLines:
	push	ebp
	mov	ebp,esp
	sub	esp,36
	push	ebx
	push	esi
	push	edi
	call	_srs_d3d11max2d_VerifyD3D11Max2DDriver
	cmp	eax,0
	jne	_1448
	mov	eax,0
	jmp	_613
_1448:
	mov	eax,dword [ebp+8]
	mov	eax,dword [eax+20]
	cmp	eax,4
	setl	al
	movzx	eax,al
	cmp	eax,0
	jne	_1449
	mov	eax,dword [ebp+8]
	mov	eax,dword [eax+20]
	and	eax,1
_1449:
	cmp	eax,0
	je	_1451
	mov	eax,0
	jmp	_613
_1451:
	mov	edx,dword [ebp+12]
	cmp	edx,0
	je	_1452
	mov	ecx,4
	mov	eax,dword [ebp+8]
	mov	eax,dword [eax+20]
	cdq
	idiv	ecx
_1452:
	cmp	edx,0
	je	_1454
	mov	eax,0
	jmp	_613
_1454:
	mov	dword [ebp-28],0
	mov	eax,dword [_644]
	fld	dword [eax+92]
	fstp	dword [ebp-16]
	mov	eax,dword [_644]
	fld	dword [eax+96]
	fstp	dword [ebp-12]
	mov	eax,dword [_644]
	fld	dword [eax+84]
	fstp	dword [ebp-20]
	mov	eax,dword [_644]
	fld	dword [eax+88]
	fstp	dword [ebp-24]
	mov	edx,dword [_695]
	mov	eax,dword [ebp+8]
	mov	eax,dword [eax+20]
	shl	eax,1
	cmp	dword [edx+20],eax
	je	_1460
	mov	ebx,_bbEmptyArray
	inc	dword [ebx+4]
	mov	eax,dword [_695]
	dec	dword [eax+4]
	jnz	_1464
	push	eax
	call	_bbGCFree
	add	esp,4
_1464:
	mov	dword [_695],ebx
	call	_bbGCCollect
	mov	eax,dword [ebp+8]
	mov	eax,dword [eax+20]
	shl	eax,1
	push	eax
	push	0
	push	dword [_695]
	push	_216
	call	_bbArraySlice
	add	esp,16
	inc	dword [eax+4]
	mov	ebx,eax
	mov	eax,dword [_695]
	dec	dword [eax+4]
	jnz	_1468
	push	eax
	call	_bbGCFree
	add	esp,4
_1468:
	mov	dword [_695],ebx
	mov	dword [ebp-28],1
_1460:
	mov	edi,0
	mov	esi,0
	mov	eax,dword [ebp+8]
	mov	eax,dword [eax+20]
	mov	dword [ebp-32],eax
	jmp	_1471
_135:
	mov	eax,dword [_695]
	fld	dword [ebp-16]
	mov	edx,dword [ebp+8]
	fadd	dword [edx+esi*4+24]
	fmul	dword [_650]
	fld	dword [ebp-12]
	mov	ecx,esi
	add	ecx,1
	mov	edx,dword [ebp+8]
	fadd	dword [edx+ecx*4+24]
	fmul	dword [_651]
	faddp	st1,st0
	fadd	dword [ebp-20]
	fstp	dword [eax+edi*4+24]
	mov	ebx,dword [_695]
	mov	ecx,edi
	add	ecx,1
	fld	dword [ebp-16]
	mov	eax,dword [ebp+8]
	fadd	dword [eax+esi*4+24]
	fmul	dword [_652]
	fld	dword [ebp-12]
	mov	edx,esi
	add	edx,1
	mov	eax,dword [ebp+8]
	fadd	dword [eax+edx*4+24]
	fmul	dword [_653]
	faddp	st1,st0
	fadd	dword [ebp-24]
	fstp	dword [ebx+ecx*4+24]
	add	edi,4
_133:
	add	esi,2
_1471:
	cmp	esi,dword [ebp-32]
	jl	_135
_134:
	mov	dword [ebp-4],16
	mov	dword [ebp-8],0
	cmp	dword [ebp-28],0
	jne	_1475
	push	_1
	mov	eax,dword [_695]
	push	dword [eax+16]
	mov	eax,dword [_695]
	lea	eax,byte [eax+24]
	push	eax
	push	0
	push	4
	push	0
	lea	eax,dword [_676]
	push	eax
	call	_74
	add	esp,28
	jmp	_1476
_1475:
	lea	eax,dword [_676]
	push	eax
	call	_67
	add	esp,4
	push	_136
	mov	eax,dword [_695]
	lea	eax,byte [eax+24]
	push	eax
	push	65536
	push	1
	push	2
	mov	eax,dword [_695]
	push	dword [eax+16]
	lea	eax,dword [_676]
	push	eax
	call	_71
	add	esp,28
_1476:
	mov	eax,dword [_640]
	push	0
	push	0
	push	dword [_665]
	push	eax
	mov	eax,dword [eax]
	call	dword [eax+44]
	mov	eax,dword [_640]
	push	0
	push	0
	push	dword [_667]
	push	eax
	mov	eax,dword [eax]
	call	dword [eax+36]
	mov	edx,dword [_640]
	lea	eax,dword [_672]
	push	eax
	push	1
	push	0
	push	edx
	mov	eax,dword [edx]
	call	dword [eax+64]
	mov	eax,dword [_640]
	push	dword [_669]
	push	eax
	mov	eax,dword [eax]
	call	dword [eax+68]
	mov	ecx,dword [_640]
	mov	edx,3
	mov	eax,dword [ebp+12]
	cmp	eax,1
	sete	al
	movzx	eax,al
	sub	edx,eax
	push	edx
	push	ecx
	mov	eax,dword [ecx]
	call	dword [eax+96]
	mov	edx,dword [_640]
	lea	eax,dword [ebp-8]
	push	eax
	lea	eax,dword [ebp-4]
	push	eax
	lea	eax,dword [_676]
	push	eax
	push	1
	push	0
	push	edx
	mov	eax,dword [edx]
	call	dword [eax+72]
	mov	ebx,dword [_640]
	push	0
	mov	eax,dword [ebp+8]
	mov	eax,dword [eax+20]
	mov	dword [ebp+-36],eax
	fild	dword [ebp+-36]
	fmul	dword [_1899]
	sub	esp,8
	fstp	qword [esp]
	call	_bbFloatToInt
	add	esp,8
	push	eax
	push	ebx
	mov	eax,dword [ebx]
	call	dword [eax+52]
	mov	eax,0
	jmp	_613
_613:
	pop	edi
	pop	esi
	pop	ebx
	mov	esp,ebp
	pop	ebp
	ret
_srs_d3d11max2d_DrawImageTiled:
	push	ebp
	mov	ebp,esp
	sub	esp,68
	push	ebx
	push	esi
	push	edi
	mov	ebx,dword [ebp+20]
	call	_srs_d3d11max2d_VerifyD3D11Max2DDriver
	cmp	eax,0
	jne	_1484
	mov	eax,0
	jmp	_619
_1484:
	mov	eax,dword [ebp+8]
	push	_srs_d3d11max2d_TD3D11ImageFrame
	push	ebx
	push	eax
	mov	eax,dword [eax]
	call	dword [eax+52]
	add	esp,8
	push	eax
	call	_bbObjectDowncast
	add	esp,8
	mov	dword [ebp-60],eax
	mov	eax,dword [ebp-60]
	cmp	eax,_bbNullObject
	setne	al
	movzx	eax,al
	cmp	eax,0
	jne	_1487
	mov	eax,0
	jmp	_619
_1487:
	mov	eax,dword [ebp+8]
	mov	eax,dword [eax+8]
	mov	dword [ebp-32],eax
	mov	eax,dword [ebp+8]
	mov	eax,dword [eax+12]
	mov	dword [ebp-36],eax
	mov	eax,dword [_644]
	mov	esi,dword [eax+68]
	sub	esi,dword [ebp-32]
	add	esi,1
	mov	eax,dword [_644]
	mov	ebx,dword [eax+72]
	sub	ebx,dword [ebp-36]
	add	ebx,1
	fld	dword [ebp+12]
	mov	eax,dword [_644]
	fadd	dword [eax+84]
	mov	eax,dword [ebp+8]
	fsub	dword [eax+32]
	sub	esp,8
	fstp	qword [esp]
	call	_bbFloor
	add	esp,8
	mov	dword [ebp+-68],esi
	fild	dword [ebp+-68]
	fsubp	st1,st0
	fstp	dword [ebp-16]
	fld	dword [ebp+16]
	mov	eax,dword [_644]
	fadd	dword [eax+88]
	mov	eax,dword [ebp+8]
	fsub	dword [eax+36]
	sub	esp,8
	fstp	qword [esp]
	call	_bbFloor
	add	esp,8
	mov	dword [ebp+-68],ebx
	fild	dword [ebp+-68]
	fsubp	st1,st0
	fstp	dword [ebp-12]
	fldz
	fld	dword [ebp-16]
	fucompp
	fnstsw	ax
	sahf
	setb	al
	movzx	eax,al
	cmp	eax,0
	jne	_1494
	mov	eax,dword [ebp-32]
	mov	dword [ebp+-68],eax
	fild	dword [ebp+-68]
	sub	esp,8
	fstp	qword [esp]
	fld	dword [ebp-16]
	sub	esp,8
	fstp	qword [esp]
	call	_bbFloatMod
	add	esp,16
	mov	dword [ebp+-68],esi
	fild	dword [ebp+-68]
	faddp	st1,st0
	fstp	dword [ebp-16]
	jmp	_1495
_1494:
	mov	eax,dword [ebp-32]
	mov	dword [ebp+-68],eax
	fild	dword [ebp+-68]
	fstp	dword [ebp-24]
	mov	eax,dword [ebp-32]
	mov	dword [ebp+-68],eax
	fild	dword [ebp+-68]
	sub	esp,8
	fstp	qword [esp]
	fld	dword [ebp-16]
	fchs
	sub	esp,8
	fstp	qword [esp]
	call	_bbFloatMod
	add	esp,16
	fld	dword [ebp-24]
	fsubrp	st1,st0
	fstp	dword [ebp-24]
	fld	dword [ebp-24]
	mov	dword [ebp+-68],esi
	fild	dword [ebp+-68]
	faddp	st1,st0
	fstp	dword [ebp-16]
_1495:
	fldz
	fld	dword [ebp-12]
	fucompp
	fnstsw	ax
	sahf
	setb	al
	movzx	eax,al
	cmp	eax,0
	jne	_1496
	mov	eax,dword [ebp-36]
	mov	dword [ebp+-68],eax
	fild	dword [ebp+-68]
	sub	esp,8
	fstp	qword [esp]
	fld	dword [ebp-12]
	sub	esp,8
	fstp	qword [esp]
	call	_bbFloatMod
	add	esp,16
	mov	dword [ebp+-68],ebx
	fild	dword [ebp+-68]
	faddp	st1,st0
	fstp	dword [ebp-12]
	jmp	_1497
_1496:
	mov	eax,dword [ebp-36]
	mov	dword [ebp+-68],eax
	fild	dword [ebp+-68]
	fstp	dword [ebp-28]
	mov	eax,dword [ebp-36]
	mov	dword [ebp+-68],eax
	fild	dword [ebp+-68]
	sub	esp,8
	fstp	qword [esp]
	fld	dword [ebp-12]
	fchs
	sub	esp,8
	fstp	qword [esp]
	call	_bbFloatMod
	add	esp,16
	fld	dword [ebp-28]
	fsubrp	st1,st0
	fstp	dword [ebp-28]
	fld	dword [ebp-28]
	mov	dword [ebp+-68],ebx
	fild	dword [ebp+-68]
	faddp	st1,st0
	fstp	dword [ebp-12]
_1497:
	mov	eax,dword [_644]
	mov	eax,dword [eax+68]
	mov	edx,dword [_644]
	add	eax,dword [edx+76]
	mov	edx,dword [_644]
	mov	ebx,dword [edx+72]
	mov	edx,dword [_644]
	add	ebx,dword [edx+80]
	mov	dword [ebp+-68],eax
	fild	dword [ebp+-68]
	fsub	dword [ebp-16]
	mov	eax,dword [ebp-32]
	mov	dword [ebp+-68],eax
	fild	dword [ebp+-68]
	fdivp	st1,st0
	sub	esp,8
	fstp	qword [esp]
	call	_bbCeil
	add	esp,8
	sub	esp,8
	fstp	qword [esp]
	call	_bbFloatToInt
	add	esp,8
	mov	dword [ebp-48],eax
	mov	dword [ebp+-68],ebx
	fild	dword [ebp+-68]
	fsub	dword [ebp-12]
	mov	eax,dword [ebp-36]
	mov	dword [ebp+-68],eax
	fild	dword [ebp+-68]
	fdivp	st1,st0
	sub	esp,8
	fstp	qword [esp]
	call	_bbCeil
	add	esp,8
	sub	esp,8
	fstp	qword [esp]
	call	_bbFloatToInt
	add	esp,8
	mov	ebx,eax
	mov	eax,dword [ebp-48]
	imul	eax,ebx
	mov	dword [ebp-56],eax
	mov	dword [ebp-52],0
	mov	edx,dword [_696]
	mov	eax,dword [ebp-56]
	imul	eax,24
	cmp	dword [edx+20],eax
	je	_1506
	mov	esi,_bbEmptyArray
	inc	dword [esi+4]
	mov	eax,dword [_696]
	dec	dword [eax+4]
	jnz	_1510
	push	eax
	call	_bbGCFree
	add	esp,4
_1510:
	mov	dword [_696],esi
	call	_bbGCCollect
	mov	eax,dword [ebp-56]
	imul	eax,24
	push	eax
	push	0
	push	dword [_696]
	push	_216
	call	_bbArraySlice
	add	esp,16
	mov	esi,eax
	inc	dword [esi+4]
	mov	eax,dword [_696]
	dec	dword [eax+4]
	jnz	_1514
	push	eax
	call	_bbGCFree
	add	esp,4
_1514:
	mov	dword [_696],esi
	mov	dword [ebp-52],1
_1506:
	mov	edx,0
	mov	edi,0
	mov	eax,0
	mov	ecx,dword [ebp-60]
	fld	dword [ecx+24]
	mov	ecx,dword [ebp-32]
	mov	dword [ebp+-68],ecx
	fild	dword [ebp+-68]
	fmulp	st1,st0
	mov	ecx,dword [ebp-60]
	fld	dword [ecx+28]
	mov	ecx,dword [ebp-36]
	mov	dword [ebp+-68],ecx
	fild	dword [ebp+-68]
	fmulp	st1,st0
	mov	dword [ebp-40],0
	mov	dword [ebp-44],ebx
	jmp	_1522
_139:
	mov	dword [ebp-64],0
	mov	ecx,dword [ebp-48]
	mov	dword [ebp-20],ecx
	jmp	_1525
_142:
	mov	ecx,dword [_696]
	fld	dword [ebp-16]
	mov	dword [ebp+-68],edx
	fild	dword [ebp+-68]
	faddp	st1,st0
	fstp	dword [ecx+eax*4+24]
	mov	ebx,dword [_696]
	mov	ecx,eax
	add	ecx,1
	fld	dword [ebp-12]
	mov	dword [ebp+-68],edi
	fild	dword [ebp+-68]
	faddp	st1,st0
	fstp	dword [ebx+ecx*4+24]
	mov	ebx,dword [_696]
	mov	ecx,eax
	add	ecx,2
	fldz
	fstp	dword [ebx+ecx*4+24]
	mov	ebx,dword [_696]
	mov	ecx,eax
	add	ecx,3
	fldz
	fstp	dword [ebx+ecx*4+24]
	mov	esi,dword [_696]
	mov	ebx,eax
	add	ebx,4
	fld	dword [ebp-16]
	mov	ecx,dword [ebp-32]
	mov	dword [ebp+-68],ecx
	fild	dword [ebp+-68]
	faddp	st1,st0
	mov	dword [ebp+-68],edx
	fild	dword [ebp+-68]
	faddp	st1,st0
	fstp	dword [esi+ebx*4+24]
	mov	ebx,dword [_696]
	mov	ecx,eax
	add	ecx,5
	fld	dword [ebp-12]
	mov	dword [ebp+-68],edi
	fild	dword [ebp+-68]
	faddp	st1,st0
	fstp	dword [ebx+ecx*4+24]
	mov	ebx,dword [_696]
	mov	ecx,eax
	add	ecx,6
	fxch	st1
	fst	dword [ebx+ecx*4+24]
	mov	ebx,dword [_696]
	mov	ecx,eax
	add	ecx,7
	fldz
	fstp	dword [ebx+ecx*4+24]
	mov	ebx,dword [_696]
	mov	ecx,eax
	add	ecx,8
	fld	dword [ebp-16]
	mov	dword [ebp+-68],edx
	fild	dword [ebp+-68]
	faddp	st1,st0
	fstp	dword [ebx+ecx*4+24]
	mov	esi,dword [_696]
	mov	ebx,eax
	add	ebx,9
	fld	dword [ebp-12]
	mov	ecx,dword [ebp-36]
	mov	dword [ebp+-68],ecx
	fild	dword [ebp+-68]
	faddp	st1,st0
	mov	dword [ebp+-68],edi
	fild	dword [ebp+-68]
	faddp	st1,st0
	fstp	dword [esi+ebx*4+24]
	mov	ebx,dword [_696]
	mov	ecx,eax
	add	ecx,10
	fldz
	fstp	dword [ebx+ecx*4+24]
	mov	ebx,dword [_696]
	mov	ecx,eax
	add	ecx,11
	fxch	st1
	fst	dword [ebx+ecx*4+24]
	mov	ebx,dword [_696]
	mov	ecx,eax
	add	ecx,12
	fld	dword [ebp-16]
	mov	dword [ebp+-68],edx
	fild	dword [ebp+-68]
	faddp	st1,st0
	fstp	dword [ebx+ecx*4+24]
	mov	esi,dword [_696]
	mov	ebx,eax
	add	ebx,13
	fld	dword [ebp-12]
	mov	ecx,dword [ebp-36]
	mov	dword [ebp+-68],ecx
	fild	dword [ebp+-68]
	faddp	st1,st0
	mov	dword [ebp+-68],edi
	fild	dword [ebp+-68]
	faddp	st1,st0
	fstp	dword [esi+ebx*4+24]
	mov	ebx,dword [_696]
	mov	ecx,eax
	add	ecx,14
	fldz
	fstp	dword [ebx+ecx*4+24]
	mov	ebx,dword [_696]
	mov	ecx,eax
	add	ecx,15
	fst	dword [ebx+ecx*4+24]
	mov	esi,dword [_696]
	mov	ebx,eax
	add	ebx,16
	fld	dword [ebp-16]
	mov	ecx,dword [ebp-32]
	mov	dword [ebp+-68],ecx
	fild	dword [ebp+-68]
	faddp	st1,st0
	mov	dword [ebp+-68],edx
	fild	dword [ebp+-68]
	faddp	st1,st0
	fstp	dword [esi+ebx*4+24]
	mov	ebx,dword [_696]
	mov	ecx,eax
	add	ecx,17
	fld	dword [ebp-12]
	mov	dword [ebp+-68],edi
	fild	dword [ebp+-68]
	faddp	st1,st0
	fstp	dword [ebx+ecx*4+24]
	mov	ebx,dword [_696]
	mov	ecx,eax
	add	ecx,18
	fxch	st1
	fst	dword [ebx+ecx*4+24]
	mov	ebx,dword [_696]
	mov	ecx,eax
	add	ecx,19
	fldz
	fstp	dword [ebx+ecx*4+24]
	mov	esi,dword [_696]
	mov	ebx,eax
	add	ebx,20
	fld	dword [ebp-16]
	mov	ecx,dword [ebp-32]
	mov	dword [ebp+-68],ecx
	fild	dword [ebp+-68]
	faddp	st1,st0
	mov	dword [ebp+-68],edx
	fild	dword [ebp+-68]
	faddp	st1,st0
	fstp	dword [esi+ebx*4+24]
	mov	esi,dword [_696]
	mov	ebx,eax
	add	ebx,21
	fld	dword [ebp-12]
	mov	ecx,dword [ebp-36]
	mov	dword [ebp+-68],ecx
	fild	dword [ebp+-68]
	faddp	st1,st0
	mov	dword [ebp+-68],edi
	fild	dword [ebp+-68]
	faddp	st1,st0
	fstp	dword [esi+ebx*4+24]
	mov	ebx,dword [_696]
	mov	ecx,eax
	add	ecx,22
	fst	dword [ebx+ecx*4+24]
	mov	ebx,dword [_696]
	mov	ecx,eax
	add	ecx,23
	fxch	st1
	fst	dword [ebx+ecx*4+24]
	mov	ecx,dword [ebp+8]
	add	edx,dword [ecx+8]
	add	eax,24
_140:
	add	dword [ebp-64],1
_1525:
	mov	ecx,dword [ebp-20]
	cmp	dword [ebp-64],ecx
	jl	_142
_141:
	mov	edx,0
	mov	ecx,dword [ebp+8]
	add	edi,dword [ecx+12]
_137:
	add	dword [ebp-40],1
_1522:
	mov	ecx,dword [ebp-44]
	cmp	dword [ebp-40],ecx
	jl	_139
	fstp	st0
	fstp	st0
_138:
	cmp	dword [ebp-52],0
	jne	_1527
	push	_1
	mov	eax,dword [_696]
	push	dword [eax+16]
	mov	eax,dword [_696]
	lea	eax,byte [eax+24]
	push	eax
	push	0
	push	4
	push	0
	lea	eax,dword [_678]
	push	eax
	call	_74
	add	esp,28
	jmp	_1528
_1527:
	lea	eax,dword [_678]
	push	eax
	call	_67
	add	esp,4
	push	_143
	mov	eax,dword [_696]
	lea	eax,byte [eax+24]
	push	eax
	push	65536
	push	1
	push	2
	mov	eax,dword [_696]
	push	dword [eax+16]
	lea	eax,dword [_678]
	push	eax
	call	_71
	add	esp,28
_1528:
	mov	dword [ebp-4],16
	mov	dword [ebp-8],0
	mov	eax,dword [ebp-60]
	mov	eax,dword [eax+12]
	mov	dword [_660],eax
	mov	eax,dword [_640]
	push	0
	push	0
	push	dword [_665]
	push	eax
	mov	eax,dword [eax]
	call	dword [eax+44]
	mov	eax,dword [_640]
	push	0
	push	0
	push	dword [_666]
	push	eax
	mov	eax,dword [eax]
	call	dword [eax+36]
	mov	edx,dword [_640]
	lea	eax,dword [_672]
	push	eax
	push	1
	push	0
	push	edx
	mov	eax,dword [edx]
	call	dword [eax+64]
	mov	eax,dword [_640]
	push	dword [_669]
	push	eax
	mov	eax,dword [eax]
	call	dword [eax+68]
	mov	edx,dword [_640]
	mov	eax,dword [ebp-60]
	lea	eax,dword [eax+12]
	push	eax
	push	1
	push	0
	push	edx
	mov	eax,dword [edx]
	call	dword [eax+32]
	mov	edx,dword [_640]
	lea	eax,dword [ebp-8]
	push	eax
	lea	eax,dword [ebp-4]
	push	eax
	lea	eax,dword [_678]
	push	eax
	push	1
	push	0
	push	edx
	mov	eax,dword [edx]
	call	dword [eax+72]
	mov	eax,dword [_640]
	push	4
	push	eax
	mov	eax,dword [eax]
	call	dword [eax+96]
	mov	edx,dword [_640]
	push	0
	mov	eax,dword [ebp-56]
	imul	eax,6
	push	eax
	push	edx
	mov	eax,dword [edx]
	call	dword [eax+52]
	mov	eax,0
	jmp	_619
_619:
	pop	edi
	pop	esi
	pop	ebx
	mov	esp,ebp
	pop	ebp
	ret
_srs_d3d11max2d_SetScreenRotationD3D11:
	push	ebp
	mov	ebp,esp
	call	_srs_d3d11max2d_VerifyD3D11Max2DDriver
	cmp	eax,0
	jne	_1539
	mov	eax,0
	jmp	_622
_1539:
	mov	eax,dword [_642]
	push	dword [ebp+8]
	push	eax
	mov	eax,dword [eax]
	call	dword [eax+144]
	add	esp,8
	mov	eax,0
	jmp	_622
_622:
	mov	esp,ebp
	pop	ebp
	ret
_srs_d3d11max2d_SetScreenZoomD3D11:
	push	ebp
	mov	ebp,esp
	call	_srs_d3d11max2d_VerifyD3D11Max2DDriver
	cmp	eax,0
	jne	_1541
	mov	eax,0
	jmp	_625
_1541:
	mov	eax,dword [_642]
	push	dword [ebp+8]
	push	eax
	mov	eax,dword [eax]
	call	dword [eax+148]
	add	esp,8
	mov	eax,0
	jmp	_625
_625:
	mov	esp,ebp
	pop	ebp
	ret
_srs_d3d11max2d_SetScreenFocusD3D11:
	push	ebp
	mov	ebp,esp
	call	_srs_d3d11max2d_VerifyD3D11Max2DDriver
	cmp	eax,0
	jne	_1543
	mov	eax,0
	jmp	_629
_1543:
	mov	eax,dword [_642]
	push	dword [ebp+12]
	push	dword [ebp+8]
	push	eax
	mov	eax,dword [eax]
	call	dword [eax+152]
	add	esp,12
	mov	eax,0
	jmp	_629
_629:
	mov	esp,ebp
	pop	ebp
	ret
	section	"data" data writeable align 8
	align	4
_705:
	dd	0
	align	4
_632:
	file	"E:/BlitzMax.Buildpackage/BlitzMax/mod/srs.mod/d3d11max2d.mod/batch.vs"
_633:
	align	4
_631:
	dd	_bbStringClass
	dd	2147483647
	dd	8
	dw	98,97,116,99,104,46,118,115
	align	4
_635:
	file	"E:/BlitzMax.Buildpackage/BlitzMax/mod/srs.mod/d3d11max2d.mod/batch.ps"
_636:
	align	4
_634:
	dd	_bbStringClass
	dd	2147483647
	dd	8
	dw	98,97,116,99,104,46,112,115
	align	4
_700:
	file	"E:/BlitzMax.Buildpackage/BlitzMax/mod/srs.mod/d3d11max2d.mod/max2D.vs"
_701:
	align	4
_699:
	dd	_bbStringClass
	dd	2147483647
	dd	8
	dw	109,97,120,50,68,46,118,115
	align	4
_703:
	file	"E:/BlitzMax.Buildpackage/BlitzMax/mod/srs.mod/d3d11max2d.mod/max2D.ps"
_704:
	align	4
_702:
	dd	_bbStringClass
	dd	2147483647
	dd	8
	dw	109,97,120,50,68,46,112,115
_145:
	db	"TBatchImageGlobals",0
_146:
	db	"_vshader",0
_147:
	db	"[]:ID3D11VertexShader",0
_148:
	db	"_pshader",0
_149:
	db	"?ID3D11PixelShader",0
_150:
	db	"_layout",0
_151:
	db	"?ID3D11InputLayout",0
_152:
	db	"_vs",0
_153:
	db	"$",0
_154:
	db	"_ps",0
_155:
	db	"_shaderready",0
_156:
	db	"i",0
_157:
	db	"New",0
_158:
	db	"()i",0
_159:
	db	"Delete",0
_160:
	db	"FreeResources",0
	align	4
_144:
	dd	2
	dd	_145
	dd	3
	dd	_146
	dd	_147
	dd	8
	dd	3
	dd	_148
	dd	_149
	dd	12
	dd	3
	dd	_150
	dd	_151
	dd	16
	dd	3
	dd	_152
	dd	_153
	dd	20
	dd	3
	dd	_154
	dd	_153
	dd	24
	dd	3
	dd	_155
	dd	_156
	dd	28
	dd	6
	dd	_157
	dd	_158
	dd	16
	dd	6
	dd	_159
	dd	_158
	dd	20
	dd	6
	dd	_160
	dd	_158
	dd	48
	dd	0
	align	4
_12:
	dd	_bbObjectClass
	dd	_bbObjectFree
	dd	_144
	dd	32
	dd	__srs_d3d11max2d_TBatchImageGlobals_New
	dd	__srs_d3d11max2d_TBatchImageGlobals_Delete
	dd	_bbObjectToString
	dd	_bbObjectCompare
	dd	_bbObjectSendMessage
	dd	_bbObjectReserved
	dd	_bbObjectReserved
	dd	_bbObjectReserved
	dd	__srs_d3d11max2d_TBatchImageGlobals_FreeResources
_162:
	db	"TBatchImage",0
_163:
	db	"_readytodraw",0
_164:
	db	"_isvalid",0
_165:
	db	"_numframes",0
_166:
	db	"_image",0
_167:
	db	":TImage",0
_168:
	db	"_tex",0
_169:
	db	"?ID3D11Texture2D",0
_170:
	db	"_sampler",0
_171:
	db	"?ID3D11SamplerState",0
_172:
	db	"_srv",0
_173:
	db	"?ID3D11ShaderResourceView",0
_174:
	db	"_ilength",0
_175:
	db	"_shaderindex",0
_176:
	db	"_vbuffer",0
_177:
	db	"?ID3D11Buffer",0
_178:
	db	"_dbuffer",0
_179:
	db	"_cbuffer",0
_180:
	db	"_rbuffer",0
_181:
	db	"_sbuffer",0
_182:
	db	"_fbuffer",0
_183:
	db	"_uvbuffer",0
_184:
	db	"?ID3D11VertexShader",0
_185:
	db	"_strides",0
_186:
	db	"[]i",0
_187:
	db	"_offsets",0
_188:
	db	"_buffers",0
_189:
	db	"[]:ID3D11Buffer",0
_190:
	db	"Create",0
_191:
	db	"(:TImage,i,i,i,i,i):TBatchImage",0
_192:
	db	"Update",0
_193:
	db	"(*[]f,*[]f,*[]f,*[]f,*[]f,*[]i)i",0
_194:
	db	"Draw",0
_195:
	db	"(i)i",0
_196:
	db	"Destroy",0
	align	4
_161:
	dd	2
	dd	_162
	dd	3
	dd	_163
	dd	_156
	dd	8
	dd	3
	dd	_164
	dd	_156
	dd	12
	dd	3
	dd	_165
	dd	_156
	dd	16
	dd	3
	dd	_166
	dd	_167
	dd	20
	dd	3
	dd	_168
	dd	_169
	dd	24
	dd	3
	dd	_170
	dd	_171
	dd	28
	dd	3
	dd	_172
	dd	_173
	dd	32
	dd	3
	dd	_174
	dd	_156
	dd	36
	dd	3
	dd	_175
	dd	_156
	dd	40
	dd	3
	dd	_176
	dd	_177
	dd	44
	dd	3
	dd	_178
	dd	_177
	dd	48
	dd	3
	dd	_179
	dd	_177
	dd	52
	dd	3
	dd	_180
	dd	_177
	dd	56
	dd	3
	dd	_181
	dd	_177
	dd	60
	dd	3
	dd	_182
	dd	_177
	dd	64
	dd	3
	dd	_183
	dd	_177
	dd	68
	dd	3
	dd	_146
	dd	_184
	dd	72
	dd	3
	dd	_185
	dd	_186
	dd	76
	dd	3
	dd	_187
	dd	_186
	dd	80
	dd	3
	dd	_188
	dd	_189
	dd	84
	dd	6
	dd	_157
	dd	_158
	dd	16
	dd	6
	dd	_159
	dd	_158
	dd	20
	dd	6
	dd	_190
	dd	_191
	dd	48
	dd	6
	dd	_192
	dd	_193
	dd	52
	dd	6
	dd	_194
	dd	_195
	dd	56
	dd	6
	dd	_196
	dd	_158
	dd	60
	dd	0
	align	4
_srs_d3d11max2d_TBatchImage:
	dd	_bbObjectClass
	dd	_bbObjectFree
	dd	_161
	dd	88
	dd	__srs_d3d11max2d_TBatchImage_New
	dd	__srs_d3d11max2d_TBatchImage_Delete
	dd	_bbObjectToString
	dd	_bbObjectCompare
	dd	_bbObjectSendMessage
	dd	_bbObjectReserved
	dd	_bbObjectReserved
	dd	_bbObjectReserved
	dd	__srs_d3d11max2d_TBatchImage_Create
	dd	__srs_d3d11max2d_TBatchImage_Update
	dd	__srs_d3d11max2d_TBatchImage_Draw
	dd	__srs_d3d11max2d_TBatchImage_Destroy
_198:
	db	"TD3D11Max2DShaders",0
_199:
	db	"_max2dvs",0
_200:
	db	"_max2dps",0
	align	4
_197:
	dd	2
	dd	_198
	dd	3
	dd	_199
	dd	_153
	dd	8
	dd	3
	dd	_200
	dd	_153
	dd	12
	dd	6
	dd	_157
	dd	_158
	dd	16
	dd	6
	dd	_159
	dd	_158
	dd	20
	dd	0
	align	4
_64:
	dd	_bbObjectClass
	dd	_bbObjectFree
	dd	_197
	dd	16
	dd	__srs_d3d11max2d_TD3D11Max2DShaders_New
	dd	__srs_d3d11max2d_TD3D11Max2DShaders_Delete
	dd	_bbObjectToString
	dd	_bbObjectCompare
	dd	_bbObjectSendMessage
	dd	_bbObjectReserved
	dd	_bbObjectReserved
	dd	_bbObjectReserved
_202:
	db	"TD3D11RingBuffer",0
_203:
	db	"RING_SIZE",0
	align	4
_204:
	dd	_bbStringClass
	dd	2147483646
	dd	7
	dw	49,48,52,56,53,55,54
_205:
	db	"_buffer",0
_206:
	db	"_ringPos",0
_207:
	db	"():TD3D11RingBuffer",0
_208:
	db	"Allocate",0
_209:
	db	"([]f)i",0
	align	4
_201:
	dd	2
	dd	_202
	dd	1
	dd	_203
	dd	_156
	dd	_204
	dd	3
	dd	_205
	dd	_177
	dd	8
	dd	3
	dd	_206
	dd	_156
	dd	12
	dd	6
	dd	_157
	dd	_158
	dd	16
	dd	6
	dd	_159
	dd	_158
	dd	20
	dd	6
	dd	_190
	dd	_207
	dd	48
	dd	6
	dd	_208
	dd	_209
	dd	52
	dd	6
	dd	_196
	dd	_158
	dd	56
	dd	0
	align	4
_68:
	dd	_bbObjectClass
	dd	_bbObjectFree
	dd	_201
	dd	16
	dd	__srs_d3d11max2d_TD3D11RingBuffer_New
	dd	__srs_d3d11max2d_TD3D11RingBuffer_Delete
	dd	_bbObjectToString
	dd	_bbObjectCompare
	dd	_bbObjectSendMessage
	dd	_bbObjectReserved
	dd	_bbObjectReserved
	dd	_bbObjectReserved
	dd	__srs_d3d11max2d_TD3D11RingBuffer_Create
	dd	__srs_d3d11max2d_TD3D11RingBuffer_Allocate
	dd	__srs_d3d11max2d_TD3D11RingBuffer_Destroy
_211:
	db	"TD3D11ImageFrame",0
_212:
	db	"_tex2D",0
_213:
	db	"_rtv",0
_214:
	db	"?ID3D11RenderTargetView",0
_215:
	db	"_uscale",0
_216:
	db	"f",0
_217:
	db	"_vscale",0
_218:
	db	"_seq",0
_219:
	db	"(:TPixmap,i):TImageFrame",0
_220:
	db	"(f,f,f,f,f,f,f,f,f,f)i",0
	align	4
_210:
	dd	2
	dd	_211
	dd	3
	dd	_212
	dd	_169
	dd	8
	dd	3
	dd	_172
	dd	_173
	dd	12
	dd	3
	dd	_213
	dd	_214
	dd	16
	dd	3
	dd	_170
	dd	_171
	dd	20
	dd	3
	dd	_215
	dd	_216
	dd	24
	dd	3
	dd	_217
	dd	_216
	dd	28
	dd	3
	dd	_218
	dd	_156
	dd	32
	dd	6
	dd	_157
	dd	_158
	dd	16
	dd	6
	dd	_159
	dd	_158
	dd	20
	dd	6
	dd	_190
	dd	_219
	dd	52
	dd	6
	dd	_196
	dd	_158
	dd	56
	dd	6
	dd	_194
	dd	_220
	dd	48
	dd	0
	align	4
_srs_d3d11max2d_TD3D11ImageFrame:
	dd	_brl_max2d_TImageFrame
	dd	_bbObjectFree
	dd	_210
	dd	36
	dd	__srs_d3d11max2d_TD3D11ImageFrame_New
	dd	__srs_d3d11max2d_TD3D11ImageFrame_Delete
	dd	_bbObjectToString
	dd	_bbObjectCompare
	dd	_bbObjectSendMessage
	dd	_bbObjectReserved
	dd	_bbObjectReserved
	dd	_bbObjectReserved
	dd	__srs_d3d11max2d_TD3D11ImageFrame_Draw
	dd	__srs_d3d11max2d_TD3D11ImageFrame_Create
	dd	__srs_d3d11max2d_TD3D11ImageFrame_Destroy
_222:
	db	"TD3D11Max2DDriver",0
_223:
	db	"tform_scr_rot",0
_224:
	db	"tform_scr_zoom",0
_225:
	db	"tform_scr_ix",0
_226:
	db	"tform_scr_iy",0
_227:
	db	"tform_scr_jx",0
_228:
	db	"tform_scr_jy",0
_229:
	db	"stored_scr_rot",0
_230:
	db	"stored_scale_x",0
_231:
	db	"stored_scale_y",0
_232:
	db	"focus_x",0
_233:
	db	"focus_y",0
_234:
	db	"AdjustScreenRotationScale",0
_235:
	db	"(*f,*f)i",0
_236:
	db	"ResetScreenRotationScale",0
_237:
	db	"SetScreenRotation",0
_238:
	db	"(f)i",0
_239:
	db	"SetZoom",0
_240:
	db	"SetFocus",0
_241:
	db	"(f,f)i",0
_242:
	db	"UpdateTransform",0
_243:
	db	"TransformPoint",0
_244:
	db	"ToString",0
_245:
	db	"()$",0
_246:
	db	"GraphicsModes",0
_247:
	db	"()[]:TGraphicsMode",0
_248:
	db	"AttachGraphics",0
_249:
	db	"(i,i):TGraphics",0
_250:
	db	"CreateGraphics",0
_251:
	db	"(i,i,i,i,i):TGraphics",0
_252:
	db	"SetGraphics",0
_253:
	db	"(:TGraphics)i",0
_254:
	db	"Flip",0
_255:
	db	"CreateFrameFromPixmap",0
_256:
	db	"SetBlend",0
_257:
	db	"SetAlpha",0
_258:
	db	"SetColor",0
_259:
	db	"(i,i,i)i",0
_260:
	db	"SetClsColor",0
_261:
	db	"SetViewport",0
_262:
	db	"(i,i,i,i)i",0
_263:
	db	"SetTransform",0
_264:
	db	"(f,f,f,f)i",0
_265:
	db	"SetLineWidth",0
_266:
	db	"Cls",0
_267:
	db	"Plot",0
_268:
	db	"DrawLine",0
_269:
	db	"(f,f,f,f,f,f)i",0
_270:
	db	"DrawRect",0
_271:
	db	"DrawOval",0
_272:
	db	"DrawPoly",0
_273:
	db	"([]f,f,f,f,f)i",0
_274:
	db	"DrawPixmap",0
_275:
	db	"(:TPixmap,i,i)i",0
_276:
	db	"GrabPixmap",0
_277:
	db	"(i,i,i,i):TPixmap",0
_278:
	db	"SetResolution",0
_279:
	db	"():TD3D11Max2DDriver",0
	align	4
_221:
	dd	2
	dd	_222
	dd	3
	dd	_223
	dd	_216
	dd	8
	dd	3
	dd	_224
	dd	_216
	dd	12
	dd	3
	dd	_225
	dd	_216
	dd	16
	dd	3
	dd	_226
	dd	_216
	dd	20
	dd	3
	dd	_227
	dd	_216
	dd	24
	dd	3
	dd	_228
	dd	_216
	dd	28
	dd	3
	dd	_229
	dd	_216
	dd	32
	dd	3
	dd	_230
	dd	_216
	dd	36
	dd	3
	dd	_231
	dd	_216
	dd	40
	dd	3
	dd	_232
	dd	_216
	dd	44
	dd	3
	dd	_233
	dd	_216
	dd	48
	dd	6
	dd	_157
	dd	_158
	dd	16
	dd	6
	dd	_159
	dd	_158
	dd	20
	dd	6
	dd	_234
	dd	_235
	dd	136
	dd	6
	dd	_236
	dd	_158
	dd	140
	dd	6
	dd	_237
	dd	_238
	dd	144
	dd	6
	dd	_239
	dd	_238
	dd	148
	dd	6
	dd	_240
	dd	_241
	dd	152
	dd	6
	dd	_242
	dd	_158
	dd	156
	dd	6
	dd	_243
	dd	_235
	dd	160
	dd	6
	dd	_244
	dd	_245
	dd	24
	dd	6
	dd	_246
	dd	_247
	dd	48
	dd	6
	dd	_248
	dd	_249
	dd	52
	dd	6
	dd	_250
	dd	_251
	dd	56
	dd	6
	dd	_252
	dd	_253
	dd	60
	dd	6
	dd	_254
	dd	_195
	dd	64
	dd	6
	dd	_255
	dd	_219
	dd	68
	dd	6
	dd	_256
	dd	_195
	dd	72
	dd	6
	dd	_257
	dd	_238
	dd	76
	dd	6
	dd	_258
	dd	_259
	dd	80
	dd	6
	dd	_260
	dd	_259
	dd	84
	dd	6
	dd	_261
	dd	_262
	dd	88
	dd	6
	dd	_263
	dd	_264
	dd	92
	dd	6
	dd	_265
	dd	_238
	dd	96
	dd	6
	dd	_266
	dd	_158
	dd	100
	dd	6
	dd	_267
	dd	_241
	dd	104
	dd	6
	dd	_268
	dd	_269
	dd	108
	dd	6
	dd	_270
	dd	_269
	dd	112
	dd	6
	dd	_271
	dd	_269
	dd	116
	dd	6
	dd	_272
	dd	_273
	dd	120
	dd	6
	dd	_274
	dd	_275
	dd	124
	dd	6
	dd	_276
	dd	_277
	dd	128
	dd	6
	dd	_278
	dd	_241
	dd	132
	dd	6
	dd	_190
	dd	_279
	dd	164
	dd	0
	align	4
_srs_d3d11max2d_TD3D11Max2DDriver:
	dd	_brl_max2d_TMax2DDriver
	dd	_bbObjectFree
	dd	_221
	dd	52
	dd	__srs_d3d11max2d_TD3D11Max2DDriver_New
	dd	__srs_d3d11max2d_TD3D11Max2DDriver_Delete
	dd	__srs_d3d11max2d_TD3D11Max2DDriver_ToString
	dd	_bbObjectCompare
	dd	_bbObjectSendMessage
	dd	_bbObjectReserved
	dd	_bbObjectReserved
	dd	_bbObjectReserved
	dd	__srs_d3d11max2d_TD3D11Max2DDriver_GraphicsModes
	dd	__srs_d3d11max2d_TD3D11Max2DDriver_AttachGraphics
	dd	__srs_d3d11max2d_TD3D11Max2DDriver_CreateGraphics
	dd	__srs_d3d11max2d_TD3D11Max2DDriver_SetGraphics
	dd	__srs_d3d11max2d_TD3D11Max2DDriver_Flip
	dd	__srs_d3d11max2d_TD3D11Max2DDriver_CreateFrameFromPixmap
	dd	__srs_d3d11max2d_TD3D11Max2DDriver_SetBlend
	dd	__srs_d3d11max2d_TD3D11Max2DDriver_SetAlpha
	dd	__srs_d3d11max2d_TD3D11Max2DDriver_SetColor
	dd	__srs_d3d11max2d_TD3D11Max2DDriver_SetClsColor
	dd	__srs_d3d11max2d_TD3D11Max2DDriver_SetViewport
	dd	__srs_d3d11max2d_TD3D11Max2DDriver_SetTransform
	dd	__srs_d3d11max2d_TD3D11Max2DDriver_SetLineWidth
	dd	__srs_d3d11max2d_TD3D11Max2DDriver_Cls
	dd	__srs_d3d11max2d_TD3D11Max2DDriver_Plot
	dd	__srs_d3d11max2d_TD3D11Max2DDriver_DrawLine
	dd	__srs_d3d11max2d_TD3D11Max2DDriver_DrawRect
	dd	__srs_d3d11max2d_TD3D11Max2DDriver_DrawOval
	dd	__srs_d3d11max2d_TD3D11Max2DDriver_DrawPoly
	dd	__srs_d3d11max2d_TD3D11Max2DDriver_DrawPixmap
	dd	__srs_d3d11max2d_TD3D11Max2DDriver_GrabPixmap
	dd	__srs_d3d11max2d_TD3D11Max2DDriver_SetResolution
	dd	__srs_d3d11max2d_TD3D11Max2DDriver_AdjustScreenRotationScale
	dd	__srs_d3d11max2d_TD3D11Max2DDriver_ResetScreenRotationScale
	dd	__srs_d3d11max2d_TD3D11Max2DDriver_SetScreenRotation
	dd	__srs_d3d11max2d_TD3D11Max2DDriver_SetZoom
	dd	__srs_d3d11max2d_TD3D11Max2DDriver_SetFocus
	dd	__srs_d3d11max2d_TD3D11Max2DDriver_UpdateTransform
	dd	__srs_d3d11max2d_TD3D11Max2DDriver_TransformPoint
	dd	__srs_d3d11max2d_TD3D11Max2DDriver_Create
	align	4
_637:
	dd	_bbNullObject
	align	4
_638:
	dd	_bbNullObject
	align	4
_639:
	dd	0
	align	4
_640:
	dd	0
	align	4
_641:
	dd	0
	align	4
_642:
	dd	_bbNullObject
	align	4
_643:
	dd	_bbNullObject
	align	4
_644:
	dd	_bbNullObject
	align	4
_648:
	dd	0
	align	4
_646:
	dd	_bbEmptyArray
	align	4
_650:
	dd	0x0
	align	4
_651:
	dd	0x0
	align	4
_652:
	dd	0x0
	align	4
_653:
	dd	0x0
	align	4
_654:
	dd	0x0
	align	4
_655:
	dd	0x0
	align	4
_656:
	dd	0x0
	align	4
_657:
	dd	0
	align	4
_658:
	dd	0
	align	4
_659:
	dd	0
	align	4
_660:
	dd	0
	align	4
_661:
	dd	0
	align	4
_662:
	dd	0
	align	4
_663:
	dd	0
	align	4
_664:
	dd	0
	align	4
_665:
	dd	0
	align	4
_666:
	dd	0
	align	4
_667:
	dd	0
	align	4
_668:
	dd	0
	align	4
_669:
	dd	0
	align	4
_670:
	dd	0
	align	4
_671:
	dd	0
	align	4
_672:
	dd	0
	align	4
_673:
	dd	0
	align	4
_674:
	dd	0
	align	4
_675:
	dd	0
	align	4
_676:
	dd	0
	align	4
_677:
	dd	0
	align	4
_678:
	dd	0
	align	4
_679:
	dd	0
	align	4
_680:
	dd	0
	align	4
_681:
	dd	0
	align	4
_682:
	dd	0
	align	4
_683:
	dd	0
_684:
	db	"f",0
	align	4
_685:
	dd	_bbEmptyArray
_688:
	db	"f",0
	align	4
_689:
	dd	_bbEmptyArray
	align	4
_692:
	dd	_bbEmptyArray
	align	4
_693:
	dd	_bbEmptyArray
	align	4
_694:
	dd	_bbEmptyArray
	align	4
_695:
	dd	_bbEmptyArray
	align	4
_696:
	dd	_bbEmptyArray
	align	4
_697:
	dd	_bbNullObject
	align	4
_698:
	dd	_bbNullObject
_707:
	db	"?ID3D11VertexShader",0
	align	4
_13:
	dd	_bbStringClass
	dd	2147483647
	dd	16
	dw	105,110,99,98,105,110,58,58,98,97,116,99,104,46,118,115
	align	4
_14:
	dd	_bbStringClass
	dd	2147483647
	dd	16
	dw	105,110,99,98,105,110,58,58,98,97,116,99,104,46,112,115
	align	4
_18:
	dd	_bbStringClass
	dd	2147483647
	dd	55
	dw	69,114,114,111,114,33,10,67,97,110,110,111,116,32,99,114
	dw	101,97,116,101,32,105,110,115,116,97,110,99,105,110,103,32
	dw	116,101,120,116,117,114,101,32,97,114,114,97,121,46,10,69
	dw	120,105,116,105,110,103,46
	align	4
_25:
	dd	_bbStringClass
	dd	2147483647
	dd	57
	dw	69,114,114,111,114,33,10,67,97,110,110,111,116,32,99,114
	dw	101,97,116,101,32,105,110,115,116,97,110,99,105,110,103,32
	dw	115,104,97,100,101,114,32,114,101,115,111,117,114,99,101,46
	dw	10,69,120,105,116,105,110,103,46
_766:
	db	"f",0
	align	4
_26:
	dd	_bbStringClass
	dd	2147483647
	dd	20
	dw	73,110,115,116,97,110,99,101,32,86,101,114,116,101,120,32
	dw	68,97,116,97
_776:
	db	"i",0
	align	4
_27:
	dd	_bbStringClass
	dd	2147483647
	dd	5
	dw	67,79,76,79,82
	align	4
_28:
	dd	_bbStringClass
	dd	2147483647
	dd	1
	dw	49
	align	4
_29:
	dd	_bbStringClass
	dd	2147483647
	dd	8
	dw	82,79,84,65,84,73,79,78
	align	4
_30:
	dd	_bbStringClass
	dd	2147483647
	dd	5
	dw	83,67,65,76,69
	align	4
_31:
	dd	_bbStringClass
	dd	2147483647
	dd	2
	dw	85,86
	align	4
_32:
	dd	_bbStringClass
	dd	2147483647
	dd	20
	dw	73,110,115,116,97,110,99,101,86,101,114,116,101,120,83,104
	dw	97,100,101,114
	align	4
_33:
	dd	_bbStringClass
	dd	2147483647
	dd	6
	dw	118,115,95,52,95,48
	align	4
_34:
	dd	_bbStringClass
	dd	2147483647
	dd	50
	dw	67,97,110,110,111,116,32,99,111,109,112,105,108,101,32,105
	dw	110,115,116,97,110,99,101,32,118,101,114,116,101,120,32,115
	dw	104,97,100,101,114,32,115,111,117,114,99,101,32,99,111,100
	dw	101,10
	align	4
_36:
	dd	_bbStringClass
	dd	2147483647
	dd	15
	dw	32,45,32,99,111,109,112,105,108,101,100,32,111,107,10
	align	4
_35:
	dd	_bbStringClass
	dd	2147483647
	dd	40
	dw	67,97,110,110,111,116,32,99,114,101,97,116,101,32,105,110
	dw	115,116,97,110,99,101,32,118,101,114,116,101,120,32,115,104
	dw	97,100,101,114,32,105,100,58
	align	4
_40:
	dd	_bbStringClass
	dd	2147483647
	dd	8
	dw	80,79,83,73,84,73,79,78
	align	4
_41:
	dd	_bbStringClass
	dd	2147483647
	dd	8
	dw	84,69,88,67,79,79,82,68
	align	4
_42:
	dd	_bbStringClass
	dd	2147483647
	dd	57
	dw	69,114,114,111,114,33,10,67,97,110,110,111,116,32,99,114
	dw	101,97,116,101,32,73,110,112,117,116,76,97,121,111,117,116
	dw	32,102,111,114,32,84,66,97,116,99,104,73,109,97,103,101
	dw	10,69,120,105,116,105,110,103,46
	align	4
_43:
	dd	_bbStringClass
	dd	2147483647
	dd	19
	dw	73,110,115,116,97,110,99,101,80,105,120,101,108,83,104,97
	dw	100,101,114
	align	4
_44:
	dd	_bbStringClass
	dd	2147483647
	dd	6
	dw	112,115,95,52,95,48
	align	4
_45:
	dd	_bbStringClass
	dd	2147483647
	dd	68
	dw	67,97,110,110,111,116,32,99,111,109,112,105,108,101,32,112
	dw	105,120,101,108,32,115,104,97,100,101,114,32,115,111,117,114
	dw	99,101,32,99,111,100,101,32,102,111,114,32,99,111,108,111
	dw	114,105,110,103,33,10,83,104,117,116,116,105,110,103,32,100
	dw	111,119,110,46
	align	4
_46:
	dd	_bbStringClass
	dd	2147483647
	dd	54
	dw	67,97,110,110,111,116,32,99,114,101,97,116,101,32,112,105
	dw	120,101,108,32,115,104,97,100,101,114,32,102,111,114,32,99
	dw	111,108,111,114,105,110,103,32,45,32,99,111,109,112,105,108
	dw	101,100,32,111,107,10
	align	4
_47:
	dd	_bbStringClass
	dd	2147483647
	dd	22
	dw	73,110,115,116,97,110,99,101,32,80,111,115,105,116,105,111
	dw	110,32,68,97,116,97
	align	4
_48:
	dd	_bbStringClass
	dd	2147483647
	dd	23
	dw	73,110,115,116,97,110,99,101,32,80,111,115,105,116,105,111
	dw	110,32,65,114,114,97,121
	align	4
_49:
	dd	_bbStringClass
	dd	2147483647
	dd	19
	dw	73,110,115,116,97,110,99,101,32,67,111,108,111,114,32,68
	dw	97,116,97
	align	4
_50:
	dd	_bbStringClass
	dd	2147483647
	dd	21
	dw	73,110,115,116,97,110,99,101,32,67,111,108,111,117,114,32
	dw	65,114,114,97,121
	align	4
_51:
	dd	_bbStringClass
	dd	2147483647
	dd	20
	dw	69,109,112,116,121,32,73,110,115,116,97,110,99,101,32,67
	dw	111,108,111,114
	align	4
_1585:
	dd	0x3f000000
	align	4
_52:
	dd	_bbStringClass
	dd	2147483647
	dd	22
	dw	73,110,115,116,97,110,99,101,32,82,111,116,97,116,105,111
	dw	110,32,68,97,116,97
	align	4
_53:
	dd	_bbStringClass
	dd	2147483647
	dd	23
	dw	73,110,115,116,97,110,99,101,32,82,111,116,97,116,105,111
	dw	110,32,65,114,114,97,121
	align	4
_54:
	dd	_bbStringClass
	dd	2147483647
	dd	23
	dw	69,109,112,116,121,32,73,110,115,116,97,110,99,101,32,82
	dw	111,116,97,116,105,111,110
	align	4
_1586:
	dd	0x3f000000
	align	4
_55:
	dd	_bbStringClass
	dd	2147483647
	dd	19
	dw	73,110,115,116,97,110,99,101,32,83,99,97,108,101,32,68
	dw	97,116,97
	align	4
_56:
	dd	_bbStringClass
	dd	2147483647
	dd	22
	dw	73,110,115,116,97,110,99,101,32,83,99,97,108,105,110,103
	dw	32,65,114,114,97,121
	align	4
_57:
	dd	_bbStringClass
	dd	2147483647
	dd	20
	dw	69,109,112,116,121,32,73,110,115,116,97,110,99,101,32,83
	dw	99,97,108,101
	align	4
_58:
	dd	_bbStringClass
	dd	2147483647
	dd	16
	dw	73,110,115,116,97,110,99,101,32,85,86,32,68,97,116,97
	align	4
_59:
	dd	_bbStringClass
	dd	2147483647
	dd	17
	dw	73,110,115,116,97,110,99,101,32,85,86,32,65,114,114,97
	dw	121
	align	4
_60:
	dd	_bbStringClass
	dd	2147483647
	dd	17
	dw	69,109,112,116,121,32,73,110,115,116,97,110,99,101,32,85
	dw	86
	align	4
_1587:
	dd	0x3f000000
	align	4
_61:
	dd	_bbStringClass
	dd	2147483647
	dd	19
	dw	73,110,115,116,97,110,99,101,32,70,114,97,109,101,32,68
	dw	97,116,97
	align	4
_62:
	dd	_bbStringClass
	dd	2147483647
	dd	21
	dw	73,110,115,116,97,110,99,101,32,70,114,97,109,101,115,32
	dw	65,114,114,97,121
	align	4
_63:
	dd	_bbStringClass
	dd	2147483647
	dd	21
	dw	69,109,112,116,121,32,73,110,115,116,97,110,99,101,32,70
	dw	114,97,109,101,115
	align	4
_1588:
	dd	0x3f000000
_872:
	db	":ID3D11Buffer",0
	align	4
_1618:
	dd	0x3f000000
	align	4
_65:
	dd	_bbStringClass
	dd	2147483647
	dd	16
	dw	105,110,99,98,105,110,58,58,109,97,120,50,68,46,118,115
	align	4
_66:
	dd	_bbStringClass
	dd	2147483647
	dd	16
	dw	105,110,99,98,105,110,58,58,109,97,120,50,68,46,112,115
	align	4
_69:
	dd	_bbStringClass
	dd	2147483647
	dd	41
	dw	67,97,110,110,111,116,32,99,114,101,97,116,101,32,118,101
	dw	114,116,101,120,32,114,105,110,103,32,98,117,102,102,101,114
	dw	10,69,120,105,116,105,110,103,46
	align	4
_70:
	dd	_bbStringClass
	dd	2147483647
	dd	22
	dw	67,97,110,110,111,116,32,109,97,112,32,82,105,110,103,66
	dw	117,102,102,101,114,33
	align	4
_73:
	dd	_bbStringClass
	dd	2147483647
	dd	1
	dw	10
	align	4
_72:
	dd	_bbStringClass
	dd	2147483647
	dd	27
	dw	67,97,110,110,111,116,32,99,114,101,97,116,101,32,98,117
	dw	102,102,101,114,32,102,111,114,32,58,32
	align	4
_76:
	dd	_bbStringClass
	dd	2147483647
	dd	32
	dw	10,67,97,110,110,111,116,32,109,97,112,32,100,97,116,97
	dw	32,102,111,114,32,114,101,115,111,117,114,99,101,115,33,10
	align	4
_75:
	dd	_bbStringClass
	dd	2147483647
	dd	7
	dw	69,114,114,111,114,33,32
	align	4
_1:
	dd	_bbStringClass
	dd	2147483647
	dd	0
	align	4
_80:
	dd	_bbStringClass
	dd	2147483647
	dd	34
	dw	67,97,110,110,111,116,32,99,114,101,97,116,101,32,100,101
	dw	112,116,104,32,115,116,101,110,99,105,108,32,115,116,97,116
	dw	101,10
	align	4
_81:
	dd	_bbStringClass
	dd	2147483647
	dd	31
	dw	67,97,110,110,111,116,32,99,114,101,97,116,101,32,114,97
	dw	115,116,101,114,105,122,101,114,32,115,116,97,116,101,10
	align	4
_82:
	dd	_bbStringClass
	dd	2147483647
	dd	20
	dw	83,116,97,110,100,97,114,100,86,101,114,116,101,120,83,104
	dw	97,100,101,114
	align	4
_83:
	dd	_bbStringClass
	dd	2147483647
	dd	41
	dw	67,97,110,110,111,116,32,99,111,109,112,105,108,101,32,118
	dw	101,114,116,101,120,32,115,104,97,100,101,114,32,115,111,117
	dw	114,99,101,32,99,111,100,101,10
	align	4
_84:
	dd	_bbStringClass
	dd	2147483647
	dd	42
	dw	67,97,110,110,111,116,32,99,114,101,97,116,101,32,118,101
	dw	114,116,101,120,32,115,104,97,100,101,114,32,45,32,99,111
	dw	109,112,105,108,101,100,32,111,107,10
	align	4
_85:
	dd	_bbStringClass
	dd	2147483647
	dd	34
	dw	67,97,110,110,111,116,32,99,114,101,97,116,101,32,115,104
	dw	97,100,101,114,32,105,110,112,117,116,32,108,97,121,111,117
	dw	116,10
	align	4
_86:
	dd	_bbStringClass
	dd	2147483647
	dd	18
	dw	84,101,120,116,117,114,101,80,105,120,101,108,83,104,97,100
	dw	101,114
	align	4
_87:
	dd	_bbStringClass
	dd	2147483647
	dd	69
	dw	67,97,110,110,111,116,32,99,111,109,112,105,108,101,32,112
	dw	105,120,101,108,32,115,104,97,100,101,114,32,115,111,117,114
	dw	99,101,32,99,111,100,101,32,102,111,114,32,116,101,120,116
	dw	117,114,105,110,103,33,10,83,104,117,116,116,105,110,103,32
	dw	100,111,119,110,46
	align	4
_88:
	dd	_bbStringClass
	dd	2147483647
	dd	55
	dw	67,97,110,110,111,116,32,99,114,101,97,116,101,32,112,105
	dw	120,101,108,32,115,104,97,100,101,114,32,102,111,114,32,116
	dw	101,120,116,117,114,105,110,103,32,45,32,99,111,109,112,105
	dw	108,101,100,32,111,107,10
	align	4
_89:
	dd	_bbStringClass
	dd	2147483647
	dd	16
	dw	67,111,108,111,114,80,105,120,101,108,83,104,97,100,101,114
	align	4
_90:
	dd	_bbStringClass
	dd	2147483647
	dd	17
	dw	80,105,120,109,97,112,80,105,120,101,108,83,104,97,100,101
	dw	114
	align	4
_91:
	dd	_bbStringClass
	dd	2147483647
	dd	67
	dw	67,97,110,110,111,116,32,99,111,109,112,105,108,101,32,112
	dw	105,120,101,108,32,115,104,97,100,101,114,32,115,111,117,114
	dw	99,101,32,99,111,100,101,32,102,111,114,32,112,105,120,109
	dw	97,112,115,32,10,83,104,117,116,116,105,110,103,32,100,111
	dw	119,110,46
	align	4
_92:
	dd	_bbStringClass
	dd	2147483647
	dd	53
	dw	67,97,110,110,111,116,32,99,114,101,97,116,101,32,112,105
	dw	120,101,108,32,115,104,97,100,101,114,32,102,111,114,32,112
	dw	105,120,109,97,112,115,32,45,32,99,111,109,112,105,108,101
	dw	100,32,111,107,10
	align	4
_93:
	dd	_bbStringClass
	dd	2147483647
	dd	13
	dw	86,101,114,116,101,120,32,66,117,102,102,101,114
	align	4
_1696:
	dd	0x40000000
	align	4
_1697:
	dd	0xbf800000
	align	4
_1698:
	dd	0x3f800000
	align	4
_1699:
	dd	0x3f800000
	align	4
_1700:
	dd	0xc0000000
	align	4
_1701:
	dd	0x3f800000
	align	4
_1702:
	dd	0x3f800000
	align	4
_1703:
	dd	0x3f800000
	align	4
_94:
	dd	_bbStringClass
	dd	2147483647
	dd	13
	dw	77,97,116,114,105,120,32,66,117,102,102,101,114
	align	4
_95:
	dd	_bbStringClass
	dd	2147483647
	dd	25
	dw	80,105,120,101,108,32,83,104,97,100,101,114,32,70,108,97
	dw	103,115,32,66,117,102,102,101,114
	align	4
_1704:
	dd	0x7f7fffee
	align	4
_96:
	dd	_bbStringClass
	dd	2147483647
	dd	42
	dw	67,97,110,110,111,116,32,99,114,101,97,116,101,32,112,111
	dw	105,110,116,32,115,97,109,112,108,101,114,32,115,116,97,116
	dw	101,10,69,120,105,116,105,110,103,46
	align	4
_97:
	dd	_bbStringClass
	dd	2147483647
	dd	43
	dw	67,97,110,110,111,116,32,99,114,101,97,116,101,32,108,105
	dw	110,101,97,114,32,115,97,109,112,108,101,114,32,115,116,97
	dw	116,101,10,69,120,105,116,105,110,103,46
_1089:
	db	"i",0
	align	4
_1734:
	dd	0x3f800000
	align	4
_1735:
	dd	0x3f800000
	align	4
_102:
	dd	_bbStringClass
	dd	2147483647
	dd	22
	dw	67,97,110,110,111,116,32,99,114,101,97,116,101,32,116,101
	dw	120,116,117,114,101,10
	align	4
_103:
	dd	_bbStringClass
	dd	2147483647
	dd	52
	dw	67,97,110,110,111,116,32,99,114,101,97,116,101,32,83,104
	dw	97,100,101,114,82,101,115,111,117,114,99,101,86,105,101,119
	dw	32,102,111,114,32,84,73,109,97,103,101,32,116,101,120,116
	dw	117,114,101,10
	align	4
_104:
	dd	_bbStringClass
	dd	2147483647
	dd	39
	dw	67,97,110,110,111,116,32,117,115,101,32,116,101,120,116,117
	dw	114,101,32,97,115,32,97,32,82,101,110,100,101,114,32,84
	dw	101,120,116,117,114,101,10
_1131:
	db	"f",0
	align	4
_105:
	dd	_bbStringClass
	dd	2147483647
	dd	18
	dw	85,115,105,110,103,32,68,105,114,101,99,116,88,32,49,48
	dw	46,48
	align	4
_106:
	dd	_bbStringClass
	dd	2147483647
	dd	18
	dw	85,115,105,110,103,32,68,105,114,101,99,116,88,32,49,48
	dw	46,49
	align	4
_107:
	dd	_bbStringClass
	dd	2147483647
	dd	18
	dw	85,115,105,110,103,32,68,105,114,101,99,116,88,32,49,49
	dw	46,48
	align	4
_108:
	dd	_bbStringClass
	dd	2147483647
	dd	18
	dw	85,115,105,110,103,32,68,105,114,101,99,116,88,32,49,49
	dw	46,49
	align	4
_109:
	dd	_bbStringClass
	dd	2147483647
	dd	25
	dw	32,71,114,97,112,104,105,99,115,32,78,111,116,32,73,110
	dw	105,116,105,97,108,105,115,101,100
	align	4
_110:
	dd	_bbStringClass
	dd	2147483647
	dd	12
	dw	68,105,114,101,99,116,88,49,49,32,45,32
	align	4
_1821:
	dd	0x3b808081
	align	4
_1822:
	dd	0x3b808081
	align	4
_1823:
	dd	0x3b808081
	align	4
_1826:
	dd	0x3b808081
	align	4
_1827:
	dd	0x3b808081
	align	4
_1828:
	dd	0x3b808081
_1237:
	db	"f",0
_1248:
	db	"f",0
_1275:
	db	"f",0
	align	4
_1847:
	dd	0x3f000000
	align	4
_1848:
	dd	0x3f000000
	align	4
_1849:
	dd	0x0
	align	4
_1850:
	dd	0x43b40000
	align	4
_1851:
	dd	0x3f800000
	align	4
_1852:
	dd	0x43b40000
	align	4
_118:
	dd	_bbStringClass
	dd	2147483647
	dd	10
	dw	79,118,97,108,32,65,114,114,97,121
	align	4
_122:
	dd	_bbStringClass
	dd	2147483647
	dd	10
	dw	80,111,108,121,32,65,114,114,97,121
_1362:
	db	"i",0
	align	4
_123:
	dd	_bbStringClass
	dd	2147483647
	dd	42
	dw	68,114,97,119,80,105,120,109,97,112,32,69,114,114,111,114
	dw	32,45,32,67,97,110,110,111,116,32,99,114,101,97,116,101
	dw	32,116,101,120,116,117,114,101,33,10
	align	4
_124:
	dd	_bbStringClass
	dd	2147483647
	dd	52
	dw	67,97,110,110,111,116,32,99,114,101,97,116,101,32,83,104
	dw	97,100,101,114,82,101,115,111,117,114,99,101,86,105,101,119
	dw	32,102,111,114,32,112,105,120,97,109,112,32,116,101,120,116
	dw	117,114,101,10
	align	4
_1871:
	dd	0x40000000
	align	4
_1872:
	dd	0xbf800000
	align	4
_1873:
	dd	0x3f800000
	align	4
_1874:
	dd	0xc0000000
	align	4
_1875:
	dd	0x3f800000
	align	4
_1876:
	dd	0x3f800000
	align	4
_1407:
	dd	0
	align	4
_128:
	dd	_bbStringClass
	dd	2147483647
	dd	9
	dw	68,105,114,101,99,116,88,49,49
	align	4
_1890:
	dd	0x3f000000
	align	4
_132:
	dd	_bbStringClass
	dd	2147483647
	dd	11
	dw	80,111,105,110,116,32,65,114,114,97,121
	align	4
_1891:
	dd	0x3f000000
	align	4
_136:
	dd	_bbStringClass
	dd	2147483647
	dd	10
	dw	76,105,110,101,32,65,114,114,97,121
	align	4
_1899:
	dd	0x3f000000
	align	4
_143:
	dd	_bbStringClass
	dd	2147483647
	dd	10
	dw	84,105,108,101,32,65,114,114,97,121
