	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_wined3dformat_from_ddrawformat ## -- Begin function wined3dformat_from_ddrawformat
	.p2align	4, 0x90
_wined3dformat_from_ddrawformat:        ## @wined3dformat_from_ddrawformat
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %r14
	leaq	L_.str(%rip), %rdi
	callq	_TRACE
	movq	_ddraw@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_TRACE_ON
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	%r14, %rdi
	callq	_DDRAW_dump_pixelformat
LBB0_2:
	movl	(%r14), %eax
	movq	_DDPF_PALETTEINDEXED8@GOTPCREL(%rip), %rcx
	movq	_WINED3DFMT_P8_UINT@GOTPCREL(%rip), %rbx
	testl	%eax, (%rcx)
	jne	LBB0_109
## %bb.3:
	movq	_DDPF_PALETTEINDEXED1@GOTPCREL(%rip), %rcx
	movq	_DDPF_PALETTEINDEXED2@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	orl	(%rcx), %edx
	movq	_DDPF_PALETTEINDEXED4@GOTPCREL(%rip), %rcx
	orl	(%rcx), %edx
	testl	%eax, %edx
	je	LBB0_5
## %bb.4:
	leaq	L_.str.1(%rip), %rdi
	callq	_FIXME
	jmp	LBB0_109
LBB0_5:
	movq	_DDPF_RGB@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_43
## %bb.6:
	movl	40(%r14), %ecx
	addl	$-8, %ecx
	roll	$29, %ecx
	cmpl	$3, %ecx
	ja	LBB0_42
## %bb.7:
	movq	_WINED3DFMT_B2G3R3_UNORM@GOTPCREL(%rip), %rbx
	leaq	LJTI0_0(%rip), %rdx
	movslq	(%rdx,%rcx,4), %rcx
	addq	%rdx, %rcx
	jmpq	*%rcx
LBB0_8:
	movl	28(%r14), %ecx
	cmpl	$3840, %ecx                     ## imm = 0xF00
	je	LBB0_20
## %bb.9:
	cmpl	$31744, %ecx                    ## imm = 0x7C00
	je	LBB0_14
## %bb.10:
	cmpl	$63488, %ecx                    ## imm = 0xF800
	jne	LBB0_26
## %bb.11:
	cmpl	$2016, 16(%r14)                 ## imm = 0x7E0
	jne	LBB0_26
## %bb.12:
	cmpl	$31, 8(%r14)
	jne	LBB0_26
## %bb.13:
	movq	_WINED3DFMT_B5G6R5_UNORM@GOTPCREL(%rip), %rbx
	jmp	LBB0_109
LBB0_43:
	movq	_DDPF_ALPHA@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_47
## %bb.44:
	cmpl	$8, 44(%r14)
	jne	LBB0_46
## %bb.45:
	movq	_WINED3DFMT_A8_UNORM@GOTPCREL(%rip), %rbx
	jmp	LBB0_109
LBB0_47:
	movq	_DDPF_LUMINANCE@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_64
## %bb.48:
	movq	_DDPF_ALPHAPIXELS@GOTPCREL(%rip), %rcx
	movl	48(%r14), %esi
	testl	%eax, (%rcx)
	je	LBB0_58
## %bb.49:
	cmpl	$8, %esi
	je	LBB0_55
## %bb.50:
	cmpl	$6, %esi
	je	LBB0_61
## %bb.51:
	cmpl	$4, %esi
	jne	LBB0_106
## %bb.52:
	cmpl	$4, 44(%r14)
	jne	LBB0_54
## %bb.53:
	movq	_WINED3DFMT_L4A4_UNORM@GOTPCREL(%rip), %rbx
	jmp	LBB0_109
LBB0_42:
	leaq	L_.str.4(%rip), %rdi
	jmp	LBB0_107
LBB0_33:
	movq	_WINED3DFMT_B8G8R8_UNORM@GOTPCREL(%rip), %rbx
	jmp	LBB0_109
LBB0_34:
	cmpl	$16711680, 28(%r14)             ## imm = 0xFF0000
	jne	LBB0_41
## %bb.35:
	cmpl	$65280, 16(%r14)                ## imm = 0xFF00
	jne	LBB0_41
## %bb.36:
	cmpl	$255, 8(%r14)
	jne	LBB0_41
## %bb.37:
	movq	_DDPF_ALPHAPIXELS@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_40
## %bb.38:
	cmpl	$-16777216, 60(%r14)            ## imm = 0xFF000000
	jne	LBB0_40
## %bb.39:
	movq	_WINED3DFMT_B8G8R8A8_UNORM@GOTPCREL(%rip), %rbx
	jmp	LBB0_109
LBB0_46:
	leaq	L_.str.5(%rip), %rdi
	jmp	LBB0_107
LBB0_41:
	leaq	L_.str.3(%rip), %rdi
	jmp	LBB0_107
LBB0_64:
	movq	_DDPF_ZBUFFER@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_89
## %bb.65:
	movq	_DDPF_STENCILBUFFER@GOTPCREL(%rip), %rcx
	movl	52(%r14), %esi
	testl	%eax, (%rcx)
	je	LBB0_78
## %bb.66:
	cmpl	$32, %esi
	je	LBB0_71
## %bb.67:
	cmpl	$16, %esi
	jne	LBB0_76
## %bb.68:
	movl	32(%r14), %esi
	cmpl	$1, %esi
	jne	LBB0_70
## %bb.69:
	movq	_WINED3DFMT_S1_UINT_D15_UNORM@GOTPCREL(%rip), %rbx
	jmp	LBB0_109
LBB0_58:
	cmpl	$8, %esi
	je	LBB0_59
## %bb.60:
	cmpl	$6, %esi
	jne	LBB0_62
LBB0_61:
	leaq	L_.str.7(%rip), %rdi
	callq	_FIXME
	movq	_WINED3DFMT_R5G5_SNORM_L6_UNORM@GOTPCREL(%rip), %rbx
	jmp	LBB0_109
LBB0_20:
	cmpl	$240, 16(%r14)
	jne	LBB0_26
## %bb.21:
	cmpl	$15, 8(%r14)
	jne	LBB0_26
## %bb.22:
	movq	_DDPF_ALPHAPIXELS@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_25
## %bb.23:
	cmpl	$61440, 60(%r14)                ## imm = 0xF000
	jne	LBB0_25
## %bb.24:
	movq	_WINED3DFMT_B4G4R4A4_UNORM@GOTPCREL(%rip), %rbx
	jmp	LBB0_109
LBB0_14:
	cmpl	$992, 16(%r14)                  ## imm = 0x3E0
	jne	LBB0_26
## %bb.15:
	cmpl	$31, 8(%r14)
	jne	LBB0_26
## %bb.16:
	movq	_DDPF_ALPHAPIXELS@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_19
## %bb.17:
	cmpl	$32768, 60(%r14)                ## imm = 0x8000
	jne	LBB0_19
## %bb.18:
	movq	_WINED3DFMT_B5G5R5A1_UNORM@GOTPCREL(%rip), %rbx
	jmp	LBB0_109
LBB0_26:
	movq	_DDPF_ALPHAPIXELS@GOTPCREL(%rip), %rdx
	testl	%eax, (%rdx)
	je	LBB0_32
## %bb.27:
	cmpl	$65280, 60(%r14)                ## imm = 0xFF00
	jne	LBB0_32
## %bb.28:
	cmpl	$224, %ecx
	jne	LBB0_32
## %bb.29:
	cmpl	$28, 16(%r14)
	jne	LBB0_32
## %bb.30:
	cmpl	$3, 8(%r14)
	jne	LBB0_32
## %bb.31:
	movq	_WINED3DFMT_B2G3R3A8_UNORM@GOTPCREL(%rip), %rbx
	jmp	LBB0_109
LBB0_32:
	leaq	L_.str.2(%rip), %rdi
LBB0_107:
	xorl	%eax, %eax
	callq	_WARN
LBB0_108:
	movq	_WINED3DFMT_UNKNOWN@GOTPCREL(%rip), %rbx
LBB0_109:
	movl	(%rbx), %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_89:
	movq	_DDPF_FOURCC@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_91
## %bb.90:
	addq	$4, %r14
	movq	%r14, %rbx
	jmp	LBB0_109
LBB0_55:
	cmpl	$8, 44(%r14)
	jne	LBB0_57
## %bb.56:
	movq	_WINED3DFMT_L8A8_UNORM@GOTPCREL(%rip), %rbx
	jmp	LBB0_109
LBB0_78:
	cmpl	$16, %esi
	je	LBB0_79
## %bb.80:
	cmpl	$32, %esi
	je	LBB0_83
## %bb.81:
	cmpl	$24, %esi
	jne	LBB0_88
## %bb.82:
	movq	_WINED3DFMT_X8D24_UNORM@GOTPCREL(%rip), %rbx
	jmp	LBB0_109
LBB0_59:
	movq	_WINED3DFMT_L8_UNORM@GOTPCREL(%rip), %rbx
	jmp	LBB0_109
LBB0_62:
	leaq	L_.str.9(%rip), %rdi
	jmp	LBB0_63
LBB0_40:
	movq	_WINED3DFMT_B8G8R8X8_UNORM@GOTPCREL(%rip), %rbx
	jmp	LBB0_109
LBB0_91:
	movq	_DDPF_BUMPDUDV@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_106
## %bb.92:
	movl	56(%r14), %eax
	cmpl	$32, %eax
	je	LBB0_102
## %bb.93:
	cmpl	$16, %eax
	jne	LBB0_106
## %bb.94:
	movl	36(%r14), %eax
	cmpl	$31, %eax
	je	LBB0_99
## %bb.95:
	cmpl	$255, %eax
	jne	LBB0_106
## %bb.96:
	cmpl	$65280, 24(%r14)                ## imm = 0xFF00
	jne	LBB0_106
## %bb.97:
	cmpl	$0, 12(%r14)
	jne	LBB0_106
## %bb.98:
	movq	_WINED3DFMT_R8G8_SNORM@GOTPCREL(%rip), %rbx
	jmp	LBB0_109
LBB0_54:
	leaq	L_.str.6(%rip), %rdi
	jmp	LBB0_107
LBB0_71:
	movl	32(%r14), %esi
	cmpl	$8, %esi
	je	LBB0_72
## %bb.73:
	cmpl	$4, %esi
	jne	LBB0_75
## %bb.74:
	movq	_WINED3DFMT_S4X4_UINT_D24_UNORM@GOTPCREL(%rip), %rbx
	jmp	LBB0_109
LBB0_76:
	movl	32(%r14), %edx
	leaq	L_.str.12(%rip), %rdi
	jmp	LBB0_77
LBB0_57:
	leaq	L_.str.8(%rip), %rdi
	jmp	LBB0_107
LBB0_25:
	movq	_WINED3DFMT_B4G4R4X4_UNORM@GOTPCREL(%rip), %rbx
	jmp	LBB0_109
LBB0_19:
	movq	_WINED3DFMT_B5G5R5X1_UNORM@GOTPCREL(%rip), %rbx
	jmp	LBB0_109
LBB0_70:
	leaq	L_.str.10(%rip), %rdi
	jmp	LBB0_63
LBB0_79:
	movq	_WINED3DFMT_D16_UNORM@GOTPCREL(%rip), %rbx
	jmp	LBB0_109
LBB0_83:
	movl	20(%r14), %esi
	movq	_WINED3DFMT_X8D24_UNORM@GOTPCREL(%rip), %rbx
	cmpl	$-256, %esi
	je	LBB0_109
## %bb.84:
	cmpl	$16777215, %esi                 ## imm = 0xFFFFFF
	je	LBB0_109
## %bb.85:
	cmpl	$-1, %esi
	jne	LBB0_87
## %bb.86:
	movq	_WINED3DFMT_D32_UNORM@GOTPCREL(%rip), %rbx
	jmp	LBB0_109
LBB0_88:
	movl	20(%r14), %edx
	leaq	L_.str.14(%rip), %rdi
LBB0_77:
	xorl	%eax, %eax
	callq	_WARN
	jmp	LBB0_108
LBB0_72:
	movq	_WINED3DFMT_D24_UNORM_S8_UINT@GOTPCREL(%rip), %rbx
	jmp	LBB0_109
LBB0_75:
	leaq	L_.str.11(%rip), %rdi
	jmp	LBB0_63
LBB0_102:
	cmpl	$255, 36(%r14)
	jne	LBB0_106
## %bb.103:
	cmpl	$65280, 24(%r14)                ## imm = 0xFF00
	jne	LBB0_106
## %bb.104:
	cmpl	$16711680, 12(%r14)             ## imm = 0xFF0000
	jne	LBB0_106
## %bb.105:
	movq	_WINED3DFMT_R8G8_SNORM_L8X8_UNORM@GOTPCREL(%rip), %rbx
	jmp	LBB0_109
LBB0_87:
	leaq	L_.str.13(%rip), %rdi
LBB0_63:
	xorl	%eax, %eax
	callq	_WARN
	jmp	LBB0_108
LBB0_99:
	cmpl	$992, 24(%r14)                  ## imm = 0x3E0
	jne	LBB0_106
## %bb.100:
	cmpl	$64512, 12(%r14)                ## imm = 0xFC00
	jne	LBB0_106
## %bb.101:
	movq	_WINED3DFMT_R5G5_SNORM_L6_UNORM@GOTPCREL(%rip), %rbx
	jmp	LBB0_109
LBB0_106:
	leaq	L_.str.15(%rip), %rdi
	jmp	LBB0_107
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_109, LBB0_109-LJTI0_0
.set L0_0_set_8, LBB0_8-LJTI0_0
.set L0_0_set_33, LBB0_33-LJTI0_0
.set L0_0_set_34, LBB0_34-LJTI0_0
LJTI0_0:
	.long	L0_0_set_109
	.long	L0_0_set_8
	.long	L0_0_set_33
	.long	L0_0_set_34
	.end_data_region
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Convert a DirectDraw Pixelformat to a WineD3D Pixelformat\n"

	.comm	_ddraw,4,2                      ## @ddraw
	.comm	_DDPF_PALETTEINDEXED8,4,2       ## @DDPF_PALETTEINDEXED8
	.comm	_WINED3DFMT_P8_UINT,4,2         ## @WINED3DFMT_P8_UINT
	.comm	_DDPF_PALETTEINDEXED1,4,2       ## @DDPF_PALETTEINDEXED1
	.comm	_DDPF_PALETTEINDEXED2,4,2       ## @DDPF_PALETTEINDEXED2
	.comm	_DDPF_PALETTEINDEXED4,4,2       ## @DDPF_PALETTEINDEXED4
L_.str.1:                               ## @.str.1
	.asciz	"DDPF_PALETTEINDEXED1 to DDPF_PALETTEINDEXED4 are not supported by WineD3D (yet). Returning WINED3DFMT_P8\n"

	.comm	_DDPF_RGB,4,2                   ## @DDPF_RGB
	.comm	_WINED3DFMT_B2G3R3_UNORM,4,2    ## @WINED3DFMT_B2G3R3_UNORM
	.comm	_WINED3DFMT_B5G6R5_UNORM,4,2    ## @WINED3DFMT_B5G6R5_UNORM
	.comm	_DDPF_ALPHAPIXELS,4,2           ## @DDPF_ALPHAPIXELS
	.comm	_WINED3DFMT_B5G5R5A1_UNORM,4,2  ## @WINED3DFMT_B5G5R5A1_UNORM
	.comm	_WINED3DFMT_B5G5R5X1_UNORM,4,2  ## @WINED3DFMT_B5G5R5X1_UNORM
	.comm	_WINED3DFMT_B4G4R4A4_UNORM,4,2  ## @WINED3DFMT_B4G4R4A4_UNORM
	.comm	_WINED3DFMT_B4G4R4X4_UNORM,4,2  ## @WINED3DFMT_B4G4R4X4_UNORM
	.comm	_WINED3DFMT_B2G3R3A8_UNORM,4,2  ## @WINED3DFMT_B2G3R3A8_UNORM
L_.str.2:                               ## @.str.2
	.asciz	"16 bit RGB Pixel format does not match.\n"

	.comm	_WINED3DFMT_UNKNOWN,4,2         ## @WINED3DFMT_UNKNOWN
	.comm	_WINED3DFMT_B8G8R8_UNORM,4,2    ## @WINED3DFMT_B8G8R8_UNORM
	.comm	_WINED3DFMT_B8G8R8A8_UNORM,4,2  ## @WINED3DFMT_B8G8R8A8_UNORM
	.comm	_WINED3DFMT_B8G8R8X8_UNORM,4,2  ## @WINED3DFMT_B8G8R8X8_UNORM
L_.str.3:                               ## @.str.3
	.asciz	"32 bit RGB pixel format does not match.\n"

L_.str.4:                               ## @.str.4
	.asciz	"Invalid dwRGBBitCount in Pixelformat structure.\n"

	.comm	_DDPF_ALPHA,4,2                 ## @DDPF_ALPHA
	.comm	_WINED3DFMT_A8_UNORM,4,2        ## @WINED3DFMT_A8_UNORM
L_.str.5:                               ## @.str.5
	.asciz	"Invalid AlphaBitDepth in Alpha-Only Pixelformat.\n"

	.comm	_DDPF_LUMINANCE,4,2             ## @DDPF_LUMINANCE
	.comm	_WINED3DFMT_L4A4_UNORM,4,2      ## @WINED3DFMT_L4A4_UNORM
L_.str.6:                               ## @.str.6
	.asciz	"Unknown Alpha / Luminance bit depth combination.\n"

L_.str.7:                               ## @.str.7
	.asciz	"A luminance Pixelformat shouldn't have 6 luminance bits. Returning D3DFMT_L6V5U5 for now.\n"

	.comm	_WINED3DFMT_R5G5_SNORM_L6_UNORM,4,2 ## @WINED3DFMT_R5G5_SNORM_L6_UNORM
	.comm	_WINED3DFMT_L8A8_UNORM,4,2      ## @WINED3DFMT_L8A8_UNORM
L_.str.8:                               ## @.str.8
	.asciz	"Unknown Alpha / Lumincase bit depth combination.\n"

	.comm	_WINED3DFMT_L8_UNORM,4,2        ## @WINED3DFMT_L8_UNORM
L_.str.9:                               ## @.str.9
	.asciz	"Unknown luminance-only bit depth 0x%x.\n"

	.comm	_DDPF_ZBUFFER,4,2               ## @DDPF_ZBUFFER
	.comm	_DDPF_STENCILBUFFER,4,2         ## @DDPF_STENCILBUFFER
	.comm	_WINED3DFMT_S1_UINT_D15_UNORM,4,2 ## @WINED3DFMT_S1_UINT_D15_UNORM
L_.str.10:                              ## @.str.10
	.asciz	"Unknown depth stencil format: 16 z bits, %u stencil bits.\n"

	.comm	_WINED3DFMT_D24_UNORM_S8_UINT,4,2 ## @WINED3DFMT_D24_UNORM_S8_UINT
	.comm	_WINED3DFMT_S4X4_UINT_D24_UNORM,4,2 ## @WINED3DFMT_S4X4_UINT_D24_UNORM
L_.str.11:                              ## @.str.11
	.asciz	"Unknown depth stencil format: 32 z bits, %u stencil bits.\n"

L_.str.12:                              ## @.str.12
	.asciz	"Unknown depth stencil format: %u z bits, %u stencil bits.\n"

	.comm	_WINED3DFMT_D16_UNORM,4,2       ## @WINED3DFMT_D16_UNORM
	.comm	_WINED3DFMT_X8D24_UNORM,4,2     ## @WINED3DFMT_X8D24_UNORM
	.comm	_WINED3DFMT_D32_UNORM,4,2       ## @WINED3DFMT_D32_UNORM
L_.str.13:                              ## @.str.13
	.asciz	"Unknown depth-only format: 32 z bits, mask 0x%08x\n"

L_.str.14:                              ## @.str.14
	.asciz	"Unknown depth-only format: %u z bits, mask 0x%08x\n"

	.comm	_DDPF_FOURCC,4,2                ## @DDPF_FOURCC
	.comm	_DDPF_BUMPDUDV,4,2              ## @DDPF_BUMPDUDV
	.comm	_WINED3DFMT_R8G8_SNORM,4,2      ## @WINED3DFMT_R8G8_SNORM
	.comm	_WINED3DFMT_R8G8_SNORM_L8X8_UNORM,4,2 ## @WINED3DFMT_R8G8_SNORM_L8X8_UNORM
L_.str.15:                              ## @.str.15
	.asciz	"Unknown Pixelformat.\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_wined3dformat_from_ddrawformat ; -- Begin function wined3dformat_from_ddrawformat
	.p2align	2
_wined3dformat_from_ddrawformat:        ; @wined3dformat_from_ddrawformat
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_TRACE
Lloh2:
	adrp	x8, _ddraw@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ddraw@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
	bl	_TRACE_ON
	cbz	x0, LBB0_2
; %bb.1:
	mov	x0, x19
	bl	_DDRAW_dump_pixelformat
LBB0_2:
	ldr	w9, [x19]
Lloh5:
	adrp	x8, _DDPF_PALETTEINDEXED8@GOTPAGE
Lloh6:
	ldr	x8, [x8, _DDPF_PALETTEINDEXED8@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	tst	w8, w9
	b.ne	LBB0_5
; %bb.3:
Lloh8:
	adrp	x8, _DDPF_PALETTEINDEXED1@GOTPAGE
Lloh9:
	ldr	x8, [x8, _DDPF_PALETTEINDEXED1@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
Lloh11:
	adrp	x10, _DDPF_PALETTEINDEXED2@GOTPAGE
Lloh12:
	ldr	x10, [x10, _DDPF_PALETTEINDEXED2@GOTPAGEOFF]
Lloh13:
	ldr	w10, [x10]
	orr	w8, w10, w8
Lloh14:
	adrp	x10, _DDPF_PALETTEINDEXED4@GOTPAGE
Lloh15:
	ldr	x10, [x10, _DDPF_PALETTEINDEXED4@GOTPAGEOFF]
Lloh16:
	ldr	w10, [x10]
	orr	w8, w8, w10
	tst	w8, w9
	b.eq	LBB0_7
; %bb.4:
Lloh17:
	adrp	x0, l_.str.1@PAGE
Lloh18:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_FIXME
LBB0_5:
Lloh19:
	adrp	x8, _WINED3DFMT_P8_UINT@GOTPAGE
Lloh20:
	ldr	x8, [x8, _WINED3DFMT_P8_UINT@GOTPAGEOFF]
LBB0_6:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
LBB0_7:
Lloh21:
	adrp	x8, _DDPF_RGB@GOTPAGE
Lloh22:
	ldr	x8, [x8, _DDPF_RGB@GOTPAGEOFF]
Lloh23:
	ldr	w8, [x8]
	tst	w8, w9
	b.eq	LBB0_16
; %bb.8:
	ldr	w8, [x19, #40]
	sub	w8, w8, #8
	ror	w10, w8, #3
	cmp	w10, #3
	b.hi	LBB0_26
; %bb.9:
Lloh24:
	adrp	x8, _WINED3DFMT_B2G3R3_UNORM@GOTPAGE
Lloh25:
	ldr	x8, [x8, _WINED3DFMT_B2G3R3_UNORM@GOTPAGEOFF]
Lloh26:
	adrp	x11, lJTI0_0@PAGE
Lloh27:
	add	x11, x11, lJTI0_0@PAGEOFF
	adr	x12, LBB0_6
	ldrb	w13, [x11, x10]
	add	x12, x12, x13, lsl #2
	br	x12
LBB0_10:
	ldr	w8, [x19, #28]
	cmp	w8, #3840
	b.eq	LBB0_46
; %bb.11:
	mov	w10, #31744
	cmp	w8, w10
	b.eq	LBB0_51
; %bb.12:
	mov	w10, #63488
	cmp	w8, w10
	b.ne	LBB0_56
; %bb.13:
	ldr	w10, [x19, #16]
	cmp	w10, #2016
	b.ne	LBB0_56
; %bb.14:
	ldr	w10, [x19, #8]
	cmp	w10, #31
	b.ne	LBB0_56
; %bb.15:
Lloh28:
	adrp	x8, _WINED3DFMT_B5G6R5_UNORM@GOTPAGE
Lloh29:
	ldr	x8, [x8, _WINED3DFMT_B5G6R5_UNORM@GOTPAGEOFF]
	b	LBB0_6
LBB0_16:
Lloh30:
	adrp	x8, _DDPF_ALPHA@GOTPAGE
Lloh31:
	ldr	x8, [x8, _DDPF_ALPHA@GOTPAGEOFF]
Lloh32:
	ldr	w8, [x8]
	tst	w8, w9
	b.eq	LBB0_19
; %bb.17:
	ldr	w8, [x19, #44]
	cmp	w8, #8
	b.ne	LBB0_34
; %bb.18:
Lloh33:
	adrp	x8, _WINED3DFMT_A8_UNORM@GOTPAGE
Lloh34:
	ldr	x8, [x8, _WINED3DFMT_A8_UNORM@GOTPAGEOFF]
	b	LBB0_6
LBB0_19:
Lloh35:
	adrp	x8, _DDPF_LUMINANCE@GOTPAGE
Lloh36:
	ldr	x8, [x8, _DDPF_LUMINANCE@GOTPAGEOFF]
Lloh37:
	ldr	w8, [x8]
	tst	w8, w9
	b.eq	LBB0_36
; %bb.20:
Lloh38:
	adrp	x8, _DDPF_ALPHAPIXELS@GOTPAGE
Lloh39:
	ldr	x8, [x8, _DDPF_ALPHAPIXELS@GOTPAGEOFF]
Lloh40:
	ldr	w10, [x8]
	ldr	w8, [x19, #48]
	tst	w10, w9
	b.eq	LBB0_42
; %bb.21:
	cmp	w8, #8
	b.eq	LBB0_66
; %bb.22:
	cmp	w8, #6
	b.eq	LBB0_44
; %bb.23:
	cmp	w8, #4
	b.ne	LBB0_107
; %bb.24:
	ldr	w8, [x19, #44]
	cmp	w8, #4
	b.ne	LBB0_83
; %bb.25:
Lloh41:
	adrp	x8, _WINED3DFMT_L4A4_UNORM@GOTPAGE
Lloh42:
	ldr	x8, [x8, _WINED3DFMT_L4A4_UNORM@GOTPAGEOFF]
	b	LBB0_6
LBB0_26:
Lloh43:
	adrp	x0, l_.str.4@PAGE
Lloh44:
	add	x0, x0, l_.str.4@PAGEOFF
	b	LBB0_63
LBB0_27:
Lloh45:
	adrp	x8, _WINED3DFMT_B8G8R8_UNORM@GOTPAGE
Lloh46:
	ldr	x8, [x8, _WINED3DFMT_B8G8R8_UNORM@GOTPAGEOFF]
	b	LBB0_6
LBB0_28:
	ldr	w8, [x19, #28]
	cmp	w8, #4080, lsl #12              ; =16711680
	b.ne	LBB0_35
; %bb.29:
	ldr	w8, [x19, #16]
	mov	w10, #65280
	cmp	w8, w10
	b.ne	LBB0_35
; %bb.30:
	ldr	w8, [x19, #8]
	cmp	w8, #255
	b.ne	LBB0_35
; %bb.31:
Lloh47:
	adrp	x8, _DDPF_ALPHAPIXELS@GOTPAGE
Lloh48:
	ldr	x8, [x8, _DDPF_ALPHAPIXELS@GOTPAGEOFF]
Lloh49:
	ldr	w8, [x8]
	tst	w8, w9
	b.eq	LBB0_74
; %bb.32:
	ldr	w8, [x19, #60]
	mov	w9, #-16777216
	cmp	w8, w9
	b.ne	LBB0_74
; %bb.33:
Lloh50:
	adrp	x8, _WINED3DFMT_B8G8R8A8_UNORM@GOTPAGE
Lloh51:
	ldr	x8, [x8, _WINED3DFMT_B8G8R8A8_UNORM@GOTPAGEOFF]
	b	LBB0_6
LBB0_34:
Lloh52:
	adrp	x0, l_.str.5@PAGE
Lloh53:
	add	x0, x0, l_.str.5@PAGEOFF
	b	LBB0_63
LBB0_35:
Lloh54:
	adrp	x0, l_.str.3@PAGE
Lloh55:
	add	x0, x0, l_.str.3@PAGEOFF
	b	LBB0_63
LBB0_36:
Lloh56:
	adrp	x8, _DDPF_ZBUFFER@GOTPAGE
Lloh57:
	ldr	x8, [x8, _DDPF_ZBUFFER@GOTPAGEOFF]
Lloh58:
	ldr	w8, [x8]
	tst	w8, w9
	b.eq	LBB0_64
; %bb.37:
Lloh59:
	adrp	x8, _DDPF_STENCILBUFFER@GOTPAGE
Lloh60:
	ldr	x8, [x8, _DDPF_STENCILBUFFER@GOTPAGEOFF]
Lloh61:
	ldr	w10, [x8]
	ldr	w8, [x19, #52]
	tst	w10, w9
	b.eq	LBB0_68
; %bb.38:
	cmp	w8, #32
	b.eq	LBB0_84
; %bb.39:
	cmp	w8, #16
	b.ne	LBB0_87
; %bb.40:
	ldr	w8, [x19, #32]
	cmp	w8, #1
	b.ne	LBB0_91
; %bb.41:
Lloh62:
	adrp	x8, _WINED3DFMT_S1_UINT_D15_UNORM@GOTPAGE
Lloh63:
	ldr	x8, [x8, _WINED3DFMT_S1_UINT_D15_UNORM@GOTPAGEOFF]
	b	LBB0_6
LBB0_42:
	cmp	w8, #8
	b.eq	LBB0_72
; %bb.43:
	cmp	w8, #6
	b.ne	LBB0_73
LBB0_44:
Lloh64:
	adrp	x0, l_.str.7@PAGE
Lloh65:
	add	x0, x0, l_.str.7@PAGEOFF
	bl	_FIXME
LBB0_45:
Lloh66:
	adrp	x8, _WINED3DFMT_R5G5_SNORM_L6_UNORM@GOTPAGE
Lloh67:
	ldr	x8, [x8, _WINED3DFMT_R5G5_SNORM_L6_UNORM@GOTPAGEOFF]
	b	LBB0_6
LBB0_46:
	ldr	w10, [x19, #16]
	cmp	w10, #240
	b.ne	LBB0_56
; %bb.47:
	ldr	w10, [x19, #8]
	cmp	w10, #15
	b.ne	LBB0_56
; %bb.48:
Lloh68:
	adrp	x8, _DDPF_ALPHAPIXELS@GOTPAGE
Lloh69:
	ldr	x8, [x8, _DDPF_ALPHAPIXELS@GOTPAGEOFF]
Lloh70:
	ldr	w8, [x8]
	tst	w8, w9
	b.eq	LBB0_89
; %bb.49:
	ldr	w8, [x19, #60]
	cmp	w8, #15, lsl #12                ; =61440
	b.ne	LBB0_89
; %bb.50:
Lloh71:
	adrp	x8, _WINED3DFMT_B4G4R4A4_UNORM@GOTPAGE
Lloh72:
	ldr	x8, [x8, _WINED3DFMT_B4G4R4A4_UNORM@GOTPAGEOFF]
	b	LBB0_6
LBB0_51:
	ldr	w10, [x19, #16]
	cmp	w10, #992
	b.ne	LBB0_56
; %bb.52:
	ldr	w10, [x19, #8]
	cmp	w10, #31
	b.ne	LBB0_56
; %bb.53:
Lloh73:
	adrp	x8, _DDPF_ALPHAPIXELS@GOTPAGE
Lloh74:
	ldr	x8, [x8, _DDPF_ALPHAPIXELS@GOTPAGEOFF]
Lloh75:
	ldr	w8, [x8]
	tst	w8, w9
	b.eq	LBB0_90
; %bb.54:
	ldr	w8, [x19, #60]
	cmp	w8, #8, lsl #12                 ; =32768
	b.ne	LBB0_90
; %bb.55:
Lloh76:
	adrp	x8, _WINED3DFMT_B5G5R5A1_UNORM@GOTPAGE
Lloh77:
	ldr	x8, [x8, _WINED3DFMT_B5G5R5A1_UNORM@GOTPAGEOFF]
	b	LBB0_6
LBB0_56:
Lloh78:
	adrp	x10, _DDPF_ALPHAPIXELS@GOTPAGE
Lloh79:
	ldr	x10, [x10, _DDPF_ALPHAPIXELS@GOTPAGEOFF]
Lloh80:
	ldr	w10, [x10]
	tst	w10, w9
	b.eq	LBB0_62
; %bb.57:
	ldr	w9, [x19, #60]
	mov	w10, #65280
	cmp	w9, w10
	b.ne	LBB0_62
; %bb.58:
	cmp	w8, #224
	b.ne	LBB0_62
; %bb.59:
	ldr	w8, [x19, #16]
	cmp	w8, #28
	b.ne	LBB0_62
; %bb.60:
	ldr	w8, [x19, #8]
	cmp	w8, #3
	b.ne	LBB0_62
; %bb.61:
Lloh81:
	adrp	x8, _WINED3DFMT_B2G3R3A8_UNORM@GOTPAGE
Lloh82:
	ldr	x8, [x8, _WINED3DFMT_B2G3R3A8_UNORM@GOTPAGEOFF]
	b	LBB0_6
LBB0_62:
Lloh83:
	adrp	x0, l_.str.2@PAGE
Lloh84:
	add	x0, x0, l_.str.2@PAGEOFF
LBB0_63:
	bl	_WARN
Lloh85:
	adrp	x8, _WINED3DFMT_UNKNOWN@GOTPAGE
Lloh86:
	ldr	x8, [x8, _WINED3DFMT_UNKNOWN@GOTPAGEOFF]
	b	LBB0_6
LBB0_64:
Lloh87:
	adrp	x8, _DDPF_FOURCC@GOTPAGE
Lloh88:
	ldr	x8, [x8, _DDPF_FOURCC@GOTPAGEOFF]
Lloh89:
	ldr	w8, [x8]
	tst	w8, w9
	b.eq	LBB0_75
; %bb.65:
	add	x8, x19, #4
	b	LBB0_6
LBB0_66:
	ldr	w8, [x19, #44]
	cmp	w8, #8
	b.ne	LBB0_88
; %bb.67:
Lloh90:
	adrp	x8, _WINED3DFMT_L8A8_UNORM@GOTPAGE
Lloh91:
	ldr	x8, [x8, _WINED3DFMT_L8A8_UNORM@GOTPAGEOFF]
	b	LBB0_6
LBB0_68:
	cmp	w8, #16
	b.eq	LBB0_92
; %bb.69:
	cmp	w8, #32
	b.eq	LBB0_93
; %bb.70:
	cmp	w8, #24
	b.ne	LBB0_97
; %bb.71:
Lloh92:
	adrp	x8, _WINED3DFMT_X8D24_UNORM@GOTPAGE
Lloh93:
	ldr	x8, [x8, _WINED3DFMT_X8D24_UNORM@GOTPAGEOFF]
	b	LBB0_6
LBB0_72:
Lloh94:
	adrp	x8, _WINED3DFMT_L8_UNORM@GOTPAGE
Lloh95:
	ldr	x8, [x8, _WINED3DFMT_L8_UNORM@GOTPAGEOFF]
	b	LBB0_6
LBB0_73:
	str	x8, [sp]
Lloh96:
	adrp	x0, l_.str.9@PAGE
Lloh97:
	add	x0, x0, l_.str.9@PAGEOFF
	b	LBB0_63
LBB0_74:
Lloh98:
	adrp	x8, _WINED3DFMT_B8G8R8X8_UNORM@GOTPAGE
Lloh99:
	ldr	x8, [x8, _WINED3DFMT_B8G8R8X8_UNORM@GOTPAGEOFF]
	b	LBB0_6
LBB0_75:
Lloh100:
	adrp	x8, _DDPF_BUMPDUDV@GOTPAGE
Lloh101:
	ldr	x8, [x8, _DDPF_BUMPDUDV@GOTPAGEOFF]
Lloh102:
	ldr	w8, [x8]
	tst	w8, w9
	b.eq	LBB0_107
; %bb.76:
	ldr	w8, [x19, #56]
	cmp	w8, #32
	b.eq	LBB0_100
; %bb.77:
	cmp	w8, #16
	b.ne	LBB0_107
; %bb.78:
	ldr	w8, [x19, #36]
	cmp	w8, #31
	b.eq	LBB0_105
; %bb.79:
	cmp	w8, #255
	b.ne	LBB0_107
; %bb.80:
	ldr	w8, [x19, #24]
	mov	w9, #65280
	cmp	w8, w9
	b.ne	LBB0_107
; %bb.81:
	ldr	w8, [x19, #12]
	cbnz	w8, LBB0_107
; %bb.82:
Lloh103:
	adrp	x8, _WINED3DFMT_R8G8_SNORM@GOTPAGE
Lloh104:
	ldr	x8, [x8, _WINED3DFMT_R8G8_SNORM@GOTPAGEOFF]
	b	LBB0_6
LBB0_83:
Lloh105:
	adrp	x0, l_.str.6@PAGE
Lloh106:
	add	x0, x0, l_.str.6@PAGEOFF
	b	LBB0_63
LBB0_84:
	ldr	w8, [x19, #32]
	cmp	w8, #8
	b.eq	LBB0_98
; %bb.85:
	cmp	w8, #4
	b.ne	LBB0_99
; %bb.86:
Lloh107:
	adrp	x8, _WINED3DFMT_S4X4_UINT_D24_UNORM@GOTPAGE
Lloh108:
	ldr	x8, [x8, _WINED3DFMT_S4X4_UINT_D24_UNORM@GOTPAGEOFF]
	b	LBB0_6
LBB0_87:
	ldr	w9, [x19, #32]
	stp	x8, x9, [sp]
Lloh109:
	adrp	x0, l_.str.12@PAGE
Lloh110:
	add	x0, x0, l_.str.12@PAGEOFF
	b	LBB0_63
LBB0_88:
Lloh111:
	adrp	x0, l_.str.8@PAGE
Lloh112:
	add	x0, x0, l_.str.8@PAGEOFF
	b	LBB0_63
LBB0_89:
Lloh113:
	adrp	x8, _WINED3DFMT_B4G4R4X4_UNORM@GOTPAGE
Lloh114:
	ldr	x8, [x8, _WINED3DFMT_B4G4R4X4_UNORM@GOTPAGEOFF]
	b	LBB0_6
LBB0_90:
Lloh115:
	adrp	x8, _WINED3DFMT_B5G5R5X1_UNORM@GOTPAGE
Lloh116:
	ldr	x8, [x8, _WINED3DFMT_B5G5R5X1_UNORM@GOTPAGEOFF]
	b	LBB0_6
LBB0_91:
	str	x8, [sp]
Lloh117:
	adrp	x0, l_.str.10@PAGE
Lloh118:
	add	x0, x0, l_.str.10@PAGEOFF
	b	LBB0_63
LBB0_92:
Lloh119:
	adrp	x8, _WINED3DFMT_D16_UNORM@GOTPAGE
Lloh120:
	ldr	x8, [x8, _WINED3DFMT_D16_UNORM@GOTPAGEOFF]
	b	LBB0_6
LBB0_93:
	ldr	w9, [x19, #20]
Lloh121:
	adrp	x8, _WINED3DFMT_X8D24_UNORM@GOTPAGE
Lloh122:
	ldr	x8, [x8, _WINED3DFMT_X8D24_UNORM@GOTPAGEOFF]
	cmn	w9, #256
	b.eq	LBB0_6
; %bb.94:
	mov	w10, #16777215
	cmp	w9, w10
	b.eq	LBB0_6
; %bb.95:
	cmn	w9, #1
	b.ne	LBB0_104
; %bb.96:
Lloh123:
	adrp	x8, _WINED3DFMT_D32_UNORM@GOTPAGE
Lloh124:
	ldr	x8, [x8, _WINED3DFMT_D32_UNORM@GOTPAGEOFF]
	b	LBB0_6
LBB0_97:
	ldr	w9, [x19, #20]
                                        ; kill: def $w8 killed $w8 killed $x8 def $x8
	stp	x8, x9, [sp]
Lloh125:
	adrp	x0, l_.str.14@PAGE
Lloh126:
	add	x0, x0, l_.str.14@PAGEOFF
	b	LBB0_63
LBB0_98:
Lloh127:
	adrp	x8, _WINED3DFMT_D24_UNORM_S8_UINT@GOTPAGE
Lloh128:
	ldr	x8, [x8, _WINED3DFMT_D24_UNORM_S8_UINT@GOTPAGEOFF]
	b	LBB0_6
LBB0_99:
	str	x8, [sp]
Lloh129:
	adrp	x0, l_.str.11@PAGE
Lloh130:
	add	x0, x0, l_.str.11@PAGEOFF
	b	LBB0_63
LBB0_100:
	ldr	w8, [x19, #36]
	cmp	w8, #255
	b.ne	LBB0_107
; %bb.101:
	ldr	w8, [x19, #24]
	mov	w9, #65280
	cmp	w8, w9
	b.ne	LBB0_107
; %bb.102:
	ldr	w8, [x19, #12]
	cmp	w8, #4080, lsl #12              ; =16711680
	b.ne	LBB0_107
; %bb.103:
Lloh131:
	adrp	x8, _WINED3DFMT_R8G8_SNORM_L8X8_UNORM@GOTPAGE
Lloh132:
	ldr	x8, [x8, _WINED3DFMT_R8G8_SNORM_L8X8_UNORM@GOTPAGEOFF]
	b	LBB0_6
LBB0_104:
	str	x9, [sp]
Lloh133:
	adrp	x0, l_.str.13@PAGE
Lloh134:
	add	x0, x0, l_.str.13@PAGEOFF
	b	LBB0_63
LBB0_105:
	ldr	w8, [x19, #24]
	cmp	w8, #992
	b.ne	LBB0_107
; %bb.106:
	ldr	w8, [x19, #12]
	mov	w9, #64512
	cmp	w8, w9
	b.eq	LBB0_45
LBB0_107:
Lloh135:
	adrp	x0, l_.str.15@PAGE
Lloh136:
	add	x0, x0, l_.str.15@PAGEOFF
	b	LBB0_63
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGot	Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGot	Lloh41, Lloh42
	.loh AdrpAdd	Lloh43, Lloh44
	.loh AdrpLdrGot	Lloh45, Lloh46
	.loh AdrpLdrGotLdr	Lloh47, Lloh48, Lloh49
	.loh AdrpLdrGot	Lloh50, Lloh51
	.loh AdrpAdd	Lloh52, Lloh53
	.loh AdrpAdd	Lloh54, Lloh55
	.loh AdrpLdrGotLdr	Lloh56, Lloh57, Lloh58
	.loh AdrpLdrGotLdr	Lloh59, Lloh60, Lloh61
	.loh AdrpLdrGot	Lloh62, Lloh63
	.loh AdrpAdd	Lloh64, Lloh65
	.loh AdrpLdrGot	Lloh66, Lloh67
	.loh AdrpLdrGotLdr	Lloh68, Lloh69, Lloh70
	.loh AdrpLdrGot	Lloh71, Lloh72
	.loh AdrpLdrGotLdr	Lloh73, Lloh74, Lloh75
	.loh AdrpLdrGot	Lloh76, Lloh77
	.loh AdrpLdrGotLdr	Lloh78, Lloh79, Lloh80
	.loh AdrpLdrGot	Lloh81, Lloh82
	.loh AdrpAdd	Lloh83, Lloh84
	.loh AdrpLdrGot	Lloh85, Lloh86
	.loh AdrpLdrGotLdr	Lloh87, Lloh88, Lloh89
	.loh AdrpLdrGot	Lloh90, Lloh91
	.loh AdrpLdrGot	Lloh92, Lloh93
	.loh AdrpLdrGot	Lloh94, Lloh95
	.loh AdrpAdd	Lloh96, Lloh97
	.loh AdrpLdrGot	Lloh98, Lloh99
	.loh AdrpLdrGotLdr	Lloh100, Lloh101, Lloh102
	.loh AdrpLdrGot	Lloh103, Lloh104
	.loh AdrpAdd	Lloh105, Lloh106
	.loh AdrpLdrGot	Lloh107, Lloh108
	.loh AdrpAdd	Lloh109, Lloh110
	.loh AdrpAdd	Lloh111, Lloh112
	.loh AdrpLdrGot	Lloh113, Lloh114
	.loh AdrpLdrGot	Lloh115, Lloh116
	.loh AdrpAdd	Lloh117, Lloh118
	.loh AdrpLdrGot	Lloh119, Lloh120
	.loh AdrpLdrGot	Lloh121, Lloh122
	.loh AdrpLdrGot	Lloh123, Lloh124
	.loh AdrpAdd	Lloh125, Lloh126
	.loh AdrpLdrGot	Lloh127, Lloh128
	.loh AdrpAdd	Lloh129, Lloh130
	.loh AdrpLdrGot	Lloh131, Lloh132
	.loh AdrpAdd	Lloh133, Lloh134
	.loh AdrpAdd	Lloh135, Lloh136
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_6-LBB0_6)>>2
	.byte	(LBB0_10-LBB0_6)>>2
	.byte	(LBB0_27-LBB0_6)>>2
	.byte	(LBB0_28-LBB0_6)>>2
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Convert a DirectDraw Pixelformat to a WineD3D Pixelformat\n"

	.comm	_ddraw,4,2                      ; @ddraw
	.comm	_DDPF_PALETTEINDEXED8,4,2       ; @DDPF_PALETTEINDEXED8
	.comm	_WINED3DFMT_P8_UINT,4,2         ; @WINED3DFMT_P8_UINT
	.comm	_DDPF_PALETTEINDEXED1,4,2       ; @DDPF_PALETTEINDEXED1
	.comm	_DDPF_PALETTEINDEXED2,4,2       ; @DDPF_PALETTEINDEXED2
	.comm	_DDPF_PALETTEINDEXED4,4,2       ; @DDPF_PALETTEINDEXED4
l_.str.1:                               ; @.str.1
	.asciz	"DDPF_PALETTEINDEXED1 to DDPF_PALETTEINDEXED4 are not supported by WineD3D (yet). Returning WINED3DFMT_P8\n"

	.comm	_DDPF_RGB,4,2                   ; @DDPF_RGB
	.comm	_WINED3DFMT_B2G3R3_UNORM,4,2    ; @WINED3DFMT_B2G3R3_UNORM
	.comm	_WINED3DFMT_B5G6R5_UNORM,4,2    ; @WINED3DFMT_B5G6R5_UNORM
	.comm	_DDPF_ALPHAPIXELS,4,2           ; @DDPF_ALPHAPIXELS
	.comm	_WINED3DFMT_B5G5R5A1_UNORM,4,2  ; @WINED3DFMT_B5G5R5A1_UNORM
	.comm	_WINED3DFMT_B5G5R5X1_UNORM,4,2  ; @WINED3DFMT_B5G5R5X1_UNORM
	.comm	_WINED3DFMT_B4G4R4A4_UNORM,4,2  ; @WINED3DFMT_B4G4R4A4_UNORM
	.comm	_WINED3DFMT_B4G4R4X4_UNORM,4,2  ; @WINED3DFMT_B4G4R4X4_UNORM
	.comm	_WINED3DFMT_B2G3R3A8_UNORM,4,2  ; @WINED3DFMT_B2G3R3A8_UNORM
l_.str.2:                               ; @.str.2
	.asciz	"16 bit RGB Pixel format does not match.\n"

	.comm	_WINED3DFMT_UNKNOWN,4,2         ; @WINED3DFMT_UNKNOWN
	.comm	_WINED3DFMT_B8G8R8_UNORM,4,2    ; @WINED3DFMT_B8G8R8_UNORM
	.comm	_WINED3DFMT_B8G8R8A8_UNORM,4,2  ; @WINED3DFMT_B8G8R8A8_UNORM
	.comm	_WINED3DFMT_B8G8R8X8_UNORM,4,2  ; @WINED3DFMT_B8G8R8X8_UNORM
l_.str.3:                               ; @.str.3
	.asciz	"32 bit RGB pixel format does not match.\n"

l_.str.4:                               ; @.str.4
	.asciz	"Invalid dwRGBBitCount in Pixelformat structure.\n"

	.comm	_DDPF_ALPHA,4,2                 ; @DDPF_ALPHA
	.comm	_WINED3DFMT_A8_UNORM,4,2        ; @WINED3DFMT_A8_UNORM
l_.str.5:                               ; @.str.5
	.asciz	"Invalid AlphaBitDepth in Alpha-Only Pixelformat.\n"

	.comm	_DDPF_LUMINANCE,4,2             ; @DDPF_LUMINANCE
	.comm	_WINED3DFMT_L4A4_UNORM,4,2      ; @WINED3DFMT_L4A4_UNORM
l_.str.6:                               ; @.str.6
	.asciz	"Unknown Alpha / Luminance bit depth combination.\n"

l_.str.7:                               ; @.str.7
	.asciz	"A luminance Pixelformat shouldn't have 6 luminance bits. Returning D3DFMT_L6V5U5 for now.\n"

	.comm	_WINED3DFMT_R5G5_SNORM_L6_UNORM,4,2 ; @WINED3DFMT_R5G5_SNORM_L6_UNORM
	.comm	_WINED3DFMT_L8A8_UNORM,4,2      ; @WINED3DFMT_L8A8_UNORM
l_.str.8:                               ; @.str.8
	.asciz	"Unknown Alpha / Lumincase bit depth combination.\n"

	.comm	_WINED3DFMT_L8_UNORM,4,2        ; @WINED3DFMT_L8_UNORM
l_.str.9:                               ; @.str.9
	.asciz	"Unknown luminance-only bit depth 0x%x.\n"

	.comm	_DDPF_ZBUFFER,4,2               ; @DDPF_ZBUFFER
	.comm	_DDPF_STENCILBUFFER,4,2         ; @DDPF_STENCILBUFFER
	.comm	_WINED3DFMT_S1_UINT_D15_UNORM,4,2 ; @WINED3DFMT_S1_UINT_D15_UNORM
l_.str.10:                              ; @.str.10
	.asciz	"Unknown depth stencil format: 16 z bits, %u stencil bits.\n"

	.comm	_WINED3DFMT_D24_UNORM_S8_UINT,4,2 ; @WINED3DFMT_D24_UNORM_S8_UINT
	.comm	_WINED3DFMT_S4X4_UINT_D24_UNORM,4,2 ; @WINED3DFMT_S4X4_UINT_D24_UNORM
l_.str.11:                              ; @.str.11
	.asciz	"Unknown depth stencil format: 32 z bits, %u stencil bits.\n"

l_.str.12:                              ; @.str.12
	.asciz	"Unknown depth stencil format: %u z bits, %u stencil bits.\n"

	.comm	_WINED3DFMT_D16_UNORM,4,2       ; @WINED3DFMT_D16_UNORM
	.comm	_WINED3DFMT_X8D24_UNORM,4,2     ; @WINED3DFMT_X8D24_UNORM
	.comm	_WINED3DFMT_D32_UNORM,4,2       ; @WINED3DFMT_D32_UNORM
l_.str.13:                              ; @.str.13
	.asciz	"Unknown depth-only format: 32 z bits, mask 0x%08x\n"

l_.str.14:                              ; @.str.14
	.asciz	"Unknown depth-only format: %u z bits, mask 0x%08x\n"

	.comm	_DDPF_FOURCC,4,2                ; @DDPF_FOURCC
	.comm	_DDPF_BUMPDUDV,4,2              ; @DDPF_BUMPDUDV
	.comm	_WINED3DFMT_R8G8_SNORM,4,2      ; @WINED3DFMT_R8G8_SNORM
	.comm	_WINED3DFMT_R8G8_SNORM_L8X8_UNORM,4,2 ; @WINED3DFMT_R8G8_SNORM_L8X8_UNORM
l_.str.15:                              ; @.str.15
	.asciz	"Unknown Pixelformat.\n"

.subsections_via_symbols
