	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_CheckDeviceType                ## -- Begin function CheckDeviceType
	.p2align	4, 0x90
_CheckDeviceType:                       ## @CheckDeviceType
	.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	%rcx, -48(%rbp)                 ## 8-byte Spill
	movq	%rdx, %r12
	movq	%rsi, %rbx
	movl	%edi, %r15d
	movq	_FALSE@GOTPCREL(%rip), %r14
	movq	(%r14), %r13
	movq	_D3DFORMAT_OP_DISPLAYMODE@GOTPCREL(%rip), %rax
	movq	_D3DFORMAT_OP_3DACCELERATION@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	orl	(%rax), %edx
	callq	_IsSupportedFormatOp
	movq	_D3DERR_NOTAVAILABLE@GOTPCREL(%rip), %rcx
	cmpq	%rax, %r13
	je	LBB0_10
## %bb.1:
	movq	(%r14), %r13
	cmpq	%r12, %rbx
	jne	LBB0_4
## %bb.2:
	movq	_D3DFORMAT_OP_SAME_FORMAT_RENDERTARGET@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	%r15d, %edi
	movq	%rbx, %rsi
	movq	%rcx, %rbx
	callq	_IsSupportedFormatOp
	movq	%rbx, %rcx
	cmpq	%rax, %r13
	je	LBB0_10
LBB0_3:
	movq	_D3D_OK@GOTPCREL(%rip), %rcx
	jmp	LBB0_10
LBB0_4:
	cmpq	-48(%rbp), %r13                 ## 8-byte Folded Reload
	je	LBB0_10
## %bb.5:
	movq	_D3DFORMAT_OP_OFFSCREEN_RENDERTARGET@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	%r15d, %edi
	movq	%r12, %rsi
	callq	_IsSupportedFormatOp
	cmpq	%rax, %r13
	je	LBB0_6
## %bb.7:
	movq	(%r14), %rbx
	movq	_D3DFORMAT_OP_CONVERT_TO_ARGB@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	%r15d, %edi
	movq	%r12, %rsi
	callq	_IsSupportedFormatOp
	cmpq	%rax, %rbx
	jne	LBB0_9
LBB0_6:
	movq	_D3DERR_NOTAVAILABLE@GOTPCREL(%rip), %rcx
LBB0_10:
	movl	(%rcx), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	movq	(%r14), %rbx
	movq	_D3DFORMAT_MEMBEROFGROUP_ARGB@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	%r15d, %edi
	movq	%r12, %rsi
	callq	_IsSupportedFormatOp
	cmpq	%rax, %rbx
	movq	_D3DERR_NOTAVAILABLE@GOTPCREL(%rip), %rcx
	jne	LBB0_3
	jmp	LBB0_10
	.cfi_endproc
                                        ## -- End function
	.comm	_FALSE,8,3                      ## @FALSE
	.comm	_D3DFORMAT_OP_DISPLAYMODE,4,2   ## @D3DFORMAT_OP_DISPLAYMODE
	.comm	_D3DFORMAT_OP_3DACCELERATION,4,2 ## @D3DFORMAT_OP_3DACCELERATION
	.comm	_D3DERR_NOTAVAILABLE,4,2        ## @D3DERR_NOTAVAILABLE
	.comm	_D3DFMT_X8R8G8B8,8,3            ## @D3DFMT_X8R8G8B8
	.comm	_D3DFMT_A8R8G8B8,8,3            ## @D3DFMT_A8R8G8B8
	.comm	_D3DFMT_X1R5G5B5,8,3            ## @D3DFMT_X1R5G5B5
	.comm	_D3DFMT_A1R5G5B5,8,3            ## @D3DFMT_A1R5G5B5
	.comm	_D3DFORMAT_OP_SAME_FORMAT_UP_TO_ALPHA_RENDERTARGET,4,2 ## @D3DFORMAT_OP_SAME_FORMAT_UP_TO_ALPHA_RENDERTARGET
	.comm	_D3D_OK,4,2                     ## @D3D_OK
	.comm	_D3DFORMAT_OP_OFFSCREEN_RENDERTARGET,4,2 ## @D3DFORMAT_OP_OFFSCREEN_RENDERTARGET
	.comm	_D3DFORMAT_OP_CONVERT_TO_ARGB,4,2 ## @D3DFORMAT_OP_CONVERT_TO_ARGB
	.comm	_D3DFORMAT_MEMBEROFGROUP_ARGB,4,2 ## @D3DFORMAT_MEMBEROFGROUP_ARGB
	.comm	_D3DFORMAT_OP_SAME_FORMAT_RENDERTARGET,4,2 ## @D3DFORMAT_OP_SAME_FORMAT_RENDERTARGET
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_CheckDeviceType                ; -- Begin function CheckDeviceType
	.p2align	2
_CheckDeviceType:                       ; @CheckDeviceType
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x22, x3
	mov	x20, x2
	mov	x21, x1
	mov	x19, x0
Lloh0:
	adrp	x23, _FALSE@GOTPAGE
Lloh1:
	ldr	x23, [x23, _FALSE@GOTPAGEOFF]
Lloh2:
	adrp	x8, _D3DFORMAT_OP_DISPLAYMODE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _D3DFORMAT_OP_DISPLAYMODE@GOTPAGEOFF]
	ldr	x24, [x23]
Lloh4:
	ldr	w8, [x8]
Lloh5:
	adrp	x9, _D3DFORMAT_OP_3DACCELERATION@GOTPAGE
Lloh6:
	ldr	x9, [x9, _D3DFORMAT_OP_3DACCELERATION@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	orr	w2, w9, w8
	bl	_IsSupportedFormatOp
	cmp	x24, x0
	b.eq	LBB0_8
; %bb.1:
	ldr	x24, [x23]
	cmp	x21, x20
	b.ne	LBB0_4
; %bb.2:
Lloh8:
	adrp	x8, _D3DFORMAT_OP_SAME_FORMAT_RENDERTARGET@GOTPAGE
Lloh9:
	ldr	x8, [x8, _D3DFORMAT_OP_SAME_FORMAT_RENDERTARGET@GOTPAGEOFF]
Lloh10:
	ldr	w2, [x8]
	mov	x0, x19
	mov	x1, x21
	bl	_IsSupportedFormatOp
	cmp	x24, x0
	b.eq	LBB0_8
LBB0_3:
Lloh11:
	adrp	x8, _D3D_OK@GOTPAGE
Lloh12:
	ldr	x8, [x8, _D3D_OK@GOTPAGEOFF]
	b	LBB0_9
LBB0_4:
	cmp	x24, x22
	b.eq	LBB0_8
; %bb.5:
Lloh13:
	adrp	x8, _D3DFORMAT_OP_OFFSCREEN_RENDERTARGET@GOTPAGE
Lloh14:
	ldr	x8, [x8, _D3DFORMAT_OP_OFFSCREEN_RENDERTARGET@GOTPAGEOFF]
Lloh15:
	ldr	w2, [x8]
	mov	x0, x19
	mov	x1, x20
	bl	_IsSupportedFormatOp
	cmp	x24, x0
	b.eq	LBB0_8
; %bb.6:
	ldr	x21, [x23]
Lloh16:
	adrp	x8, _D3DFORMAT_OP_CONVERT_TO_ARGB@GOTPAGE
Lloh17:
	ldr	x8, [x8, _D3DFORMAT_OP_CONVERT_TO_ARGB@GOTPAGEOFF]
Lloh18:
	ldr	w2, [x8]
	mov	x0, x19
	mov	x1, x20
	bl	_IsSupportedFormatOp
	cmp	x21, x0
	b.eq	LBB0_8
; %bb.7:
	ldr	x21, [x23]
Lloh19:
	adrp	x8, _D3DFORMAT_MEMBEROFGROUP_ARGB@GOTPAGE
Lloh20:
	ldr	x8, [x8, _D3DFORMAT_MEMBEROFGROUP_ARGB@GOTPAGEOFF]
Lloh21:
	ldr	w2, [x8]
	mov	x0, x19
	mov	x1, x20
	bl	_IsSupportedFormatOp
	cmp	x21, x0
	b.ne	LBB0_3
LBB0_8:
Lloh22:
	adrp	x8, _D3DERR_NOTAVAILABLE@GOTPAGE
Lloh23:
	ldr	x8, [x8, _D3DERR_NOTAVAILABLE@GOTPAGEOFF]
LBB0_9:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.comm	_FALSE,8,3                      ; @FALSE
	.comm	_D3DFORMAT_OP_DISPLAYMODE,4,2   ; @D3DFORMAT_OP_DISPLAYMODE
	.comm	_D3DFORMAT_OP_3DACCELERATION,4,2 ; @D3DFORMAT_OP_3DACCELERATION
	.comm	_D3DERR_NOTAVAILABLE,4,2        ; @D3DERR_NOTAVAILABLE
	.comm	_D3DFMT_X8R8G8B8,8,3            ; @D3DFMT_X8R8G8B8
	.comm	_D3DFMT_A8R8G8B8,8,3            ; @D3DFMT_A8R8G8B8
	.comm	_D3DFMT_X1R5G5B5,8,3            ; @D3DFMT_X1R5G5B5
	.comm	_D3DFMT_A1R5G5B5,8,3            ; @D3DFMT_A1R5G5B5
	.comm	_D3DFORMAT_OP_SAME_FORMAT_UP_TO_ALPHA_RENDERTARGET,4,2 ; @D3DFORMAT_OP_SAME_FORMAT_UP_TO_ALPHA_RENDERTARGET
	.comm	_D3D_OK,4,2                     ; @D3D_OK
	.comm	_D3DFORMAT_OP_OFFSCREEN_RENDERTARGET,4,2 ; @D3DFORMAT_OP_OFFSCREEN_RENDERTARGET
	.comm	_D3DFORMAT_OP_CONVERT_TO_ARGB,4,2 ; @D3DFORMAT_OP_CONVERT_TO_ARGB
	.comm	_D3DFORMAT_MEMBEROFGROUP_ARGB,4,2 ; @D3DFORMAT_MEMBEROFGROUP_ARGB
	.comm	_D3DFORMAT_OP_SAME_FORMAT_RENDERTARGET,4,2 ; @D3DFORMAT_OP_SAME_FORMAT_RENDERTARGET
.subsections_via_symbols
