	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_CheckDeviceFormatConversion    ## -- Begin function CheckDeviceFormatConversion
	.p2align	4, 0x90
_CheckDeviceFormatConversion:           ## @CheckDeviceFormatConversion
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r15
	movq	%rsi, %r12
	movq	%rdi, %r14
	movq	%rsi, %rdi
	callq	_RemoveAlphaChannel
	movq	%rax, %rbx
	movq	%r15, %rdi
	callq	_RemoveAlphaChannel
	movq	_D3D_OK@GOTPCREL(%rip), %r13
	cmpq	%rax, %rbx
	je	LBB0_8
## %bb.1:
	movq	_FALSE@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	movq	%r12, %rdi
	callq	_IsFourCCFormat
	cmpq	%rax, %rbx
	jne	LBB0_4
## %bb.2:
	leaq	-128(%r12), %rax
	cmpq	$6, %rax
	jb	LBB0_5
	jmp	LBB0_3
LBB0_4:
	cmpq	$0, (%r14)
	je	LBB0_8
LBB0_5:
	movq	_FALSE@GOTPCREL(%rip), %r13
	movq	(%r13), %rbx
	movq	_D3DFORMAT_OP_CONVERT_TO_ARGB@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	movq	%r12, %rsi
	callq	_IsSupportedFormatOp
	cmpq	%rax, %rbx
	je	LBB0_3
## %bb.6:
	movq	(%r13), %rbx
	movq	_D3DFORMAT_MEMBEROFGROUP_ARGB@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_IsSupportedFormatOp
	cmpq	%rax, %rbx
	jne	LBB0_7
LBB0_3:
	movq	_D3DERR_NOTAVAILABLE@GOTPCREL(%rip), %r13
LBB0_8:
	movl	(%r13), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	movq	_D3D_OK@GOTPCREL(%rip), %r13
	jmp	LBB0_8
	.cfi_endproc
                                        ## -- End function
	.comm	_D3D_OK,4,2                     ## @D3D_OK
	.comm	_FALSE,8,3                      ## @FALSE
	.comm	_D3DERR_NOTAVAILABLE,4,2        ## @D3DERR_NOTAVAILABLE
	.comm	_D3DFORMAT_OP_CONVERT_TO_ARGB,4,2 ## @D3DFORMAT_OP_CONVERT_TO_ARGB
	.comm	_D3DFORMAT_MEMBEROFGROUP_ARGB,4,2 ## @D3DFORMAT_MEMBEROFGROUP_ARGB
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_CheckDeviceFormatConversion    ; -- Begin function CheckDeviceFormatConversion
	.p2align	2
_CheckDeviceFormatConversion:           ; @CheckDeviceFormatConversion
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x2
	mov	x21, x1
	mov	x20, x0
	mov	x0, x1
	bl	_RemoveAlphaChannel
	mov	x22, x0
	mov	x0, x19
	bl	_RemoveAlphaChannel
Lloh0:
	adrp	x23, _D3D_OK@GOTPAGE
Lloh1:
	ldr	x23, [x23, _D3D_OK@GOTPAGEOFF]
	mov	x24, x23
	cmp	x22, x0
	b.eq	LBB0_8
; %bb.1:
Lloh2:
	adrp	x22, _FALSE@GOTPAGE
Lloh3:
	ldr	x22, [x22, _FALSE@GOTPAGEOFF]
	ldr	x24, [x22]
	mov	x0, x21
	bl	_IsFourCCFormat
	cmp	x24, x0
	b.ne	LBB0_4
; %bb.2:
	sub	x8, x21, #128
	cmp	x8, #6
	b.lo	LBB0_5
; %bb.3:
Lloh4:
	adrp	x24, _D3DERR_NOTAVAILABLE@GOTPAGE
Lloh5:
	ldr	x24, [x24, _D3DERR_NOTAVAILABLE@GOTPAGEOFF]
	b	LBB0_8
LBB0_4:
	ldr	x8, [x20]
	cbz	x8, LBB0_7
LBB0_5:
	ldr	x25, [x22]
Lloh6:
	adrp	x8, _D3DFORMAT_OP_CONVERT_TO_ARGB@GOTPAGE
Lloh7:
	ldr	x8, [x8, _D3DFORMAT_OP_CONVERT_TO_ARGB@GOTPAGEOFF]
Lloh8:
	ldr	w2, [x8]
	mov	x0, x20
	mov	x1, x21
	bl	_IsSupportedFormatOp
Lloh9:
	adrp	x24, _D3DERR_NOTAVAILABLE@GOTPAGE
Lloh10:
	ldr	x24, [x24, _D3DERR_NOTAVAILABLE@GOTPAGEOFF]
	cmp	x25, x0
	b.eq	LBB0_8
; %bb.6:
	ldr	x21, [x22]
Lloh11:
	adrp	x8, _D3DFORMAT_MEMBEROFGROUP_ARGB@GOTPAGE
Lloh12:
	ldr	x8, [x8, _D3DFORMAT_MEMBEROFGROUP_ARGB@GOTPAGEOFF]
Lloh13:
	ldr	w2, [x8]
	mov	x0, x20
	mov	x1, x19
	bl	_IsSupportedFormatOp
	cmp	x21, x0
	csel	x24, x24, x23, eq
	b	LBB0_8
LBB0_7:
Lloh14:
	adrp	x24, _D3D_OK@GOTPAGE
Lloh15:
	ldr	x24, [x24, _D3D_OK@GOTPAGEOFF]
LBB0_8:
	ldr	w0, [x24]
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_D3D_OK,4,2                     ; @D3D_OK
	.comm	_FALSE,8,3                      ; @FALSE
	.comm	_D3DERR_NOTAVAILABLE,4,2        ; @D3DERR_NOTAVAILABLE
	.comm	_D3DFORMAT_OP_CONVERT_TO_ARGB,4,2 ; @D3DFORMAT_OP_CONVERT_TO_ARGB
	.comm	_D3DFORMAT_MEMBEROFGROUP_ARGB,4,2 ; @D3DFORMAT_MEMBEROFGROUP_ARGB
.subsections_via_symbols
