	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function CopyDriverCaps
_CopyDriverCaps:                        ## @CopyDriverCaps
	.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	%rsi, %rbx
	movq	%rdi, %r14
	movl	32(%rdi), %eax
	movl	%eax, 32(%rsi)
	movups	(%rdi), %xmm0
	movups	16(%rdi), %xmm1
	movups	%xmm1, 16(%rsi)
	movups	%xmm0, (%rsi)
	movq	_D3D9_CAPS1@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	(%rdi), %eax
	movl	%eax, (%rsi)
	xorl	%eax, %eax
	callq	_IsWindowsXPorLaterCompatible
	testq	%rax, %rax
	jne	LBB0_1
## %bb.2:
	movq	_D3D9_PRE_XP_CAPS2@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_1:
	movq	_D3D9_XP_OR_LATER_CAPS2@GOTPCREL(%rip), %rax
LBB0_3:
	movl	(%rax), %eax
	andl	4(%r14), %eax
	movl	%eax, 4(%rbx)
	movq	_D3D9_CAPS3@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	8(%r14), %eax
	movl	%eax, 8(%rbx)
	movq	_D3D9_DEVCAPS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	12(%r14), %eax
	movl	%eax, 12(%rbx)
	movq	_D3DPRESENT_INTERVAL_ONE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%rbx)
	movl	4(%r14), %ecx
	movq	_D3DCAPS2_PRESENT_INTERVAL_SEVERAL@GOTPCREL(%rip), %rdx
	testl	%ecx, (%rdx)
	je	LBB0_5
## %bb.4:
	movq	_D3DPRESENT_INTERVAL_TWO@GOTPCREL(%rip), %rdx
	movq	_D3DPRESENT_INTERVAL_THREE@GOTPCREL(%rip), %rsi
	orl	(%rdx), %eax
	orl	(%rsi), %eax
	movq	_D3DPRESENT_INTERVAL_FOUR@GOTPCREL(%rip), %rdx
	orl	(%rdx), %eax
	movl	%eax, 16(%rbx)
LBB0_5:
	movq	_D3DCAPS2_PRESENT_INTERVAL_IMMEDIATE@GOTPCREL(%rip), %rdx
	testl	%ecx, (%rdx)
	je	LBB0_7
## %bb.6:
	movq	_D3DPRESENT_INTERVAL_IMMEDIATE@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movl	%eax, 16(%rbx)
LBB0_7:
	movq	_D3DPMISCCAPS_FOGINFVF@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	andl	20(%r14), %eax
	movl	%eax, 20(%rbx)
	movq	_D3DVTXPCAPS_FOGVERTEX@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 24(%r14)
	je	LBB0_9
## %bb.8:
	movq	_D3DPRASTERCAPS_FOGVERTEX@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	%ecx, 32(%rbx)
	notl	%eax
	andl	%eax, 24(%rbx)
LBB0_9:
	xorps	%xmm0, %xmm0
	ucomiss	28(%r14), %xmm0
	jbe	LBB0_11
## %bb.10:
	movl	$1065353216, 28(%rbx)           ## imm = 0x3F800000
LBB0_11:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_D3D9_CAPS1,4,2                 ## @D3D9_CAPS1
	.comm	_D3D9_XP_OR_LATER_CAPS2,4,2     ## @D3D9_XP_OR_LATER_CAPS2
	.comm	_D3D9_PRE_XP_CAPS2,4,2          ## @D3D9_PRE_XP_CAPS2
	.comm	_D3D9_CAPS3,4,2                 ## @D3D9_CAPS3
	.comm	_D3D9_DEVCAPS,4,2               ## @D3D9_DEVCAPS
	.comm	_D3DPRESENT_INTERVAL_ONE,4,2    ## @D3DPRESENT_INTERVAL_ONE
	.comm	_D3DCAPS2_PRESENT_INTERVAL_SEVERAL,4,2 ## @D3DCAPS2_PRESENT_INTERVAL_SEVERAL
	.comm	_D3DPRESENT_INTERVAL_TWO,4,2    ## @D3DPRESENT_INTERVAL_TWO
	.comm	_D3DPRESENT_INTERVAL_THREE,4,2  ## @D3DPRESENT_INTERVAL_THREE
	.comm	_D3DPRESENT_INTERVAL_FOUR,4,2   ## @D3DPRESENT_INTERVAL_FOUR
	.comm	_D3DCAPS2_PRESENT_INTERVAL_IMMEDIATE,4,2 ## @D3DCAPS2_PRESENT_INTERVAL_IMMEDIATE
	.comm	_D3DPRESENT_INTERVAL_IMMEDIATE,4,2 ## @D3DPRESENT_INTERVAL_IMMEDIATE
	.comm	_D3DPMISCCAPS_FOGINFVF,4,2      ## @D3DPMISCCAPS_FOGINFVF
	.comm	_D3DVTXPCAPS_FOGVERTEX,4,2      ## @D3DVTXPCAPS_FOGVERTEX
	.comm	_D3DPRASTERCAPS_FOGVERTEX,4,2   ## @D3DPRASTERCAPS_FOGVERTEX
	.no_dead_strip	_CopyDriverCaps
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function CopyDriverCaps
_CopyDriverCaps:                        ; @CopyDriverCaps
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x1
	mov	x20, x0
	ldp	q0, q1, [x0]
	ldr	w8, [x0, #32]
	str	w8, [x1, #32]
	stp	q0, q1, [x1]
	ldr	w8, [x0]
Lloh0:
	adrp	x9, _D3D9_CAPS1@GOTPAGE
Lloh1:
	ldr	x9, [x9, _D3D9_CAPS1@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	and	w8, w9, w8
	str	w8, [x1]
	bl	_IsWindowsXPorLaterCompatible
	ldr	w8, [x20, #4]
Lloh3:
	adrp	x9, _D3D9_PRE_XP_CAPS2@GOTPAGE
Lloh4:
	ldr	x9, [x9, _D3D9_PRE_XP_CAPS2@GOTPAGEOFF]
Lloh5:
	adrp	x10, _D3D9_XP_OR_LATER_CAPS2@GOTPAGE
Lloh6:
	ldr	x10, [x10, _D3D9_XP_OR_LATER_CAPS2@GOTPAGEOFF]
	cmp	x0, #0
	csel	x9, x9, x10, eq
	ldr	w9, [x9]
	and	w8, w9, w8
	str	w8, [x19, #4]
Lloh7:
	adrp	x8, _D3D9_CAPS3@GOTPAGE
Lloh8:
	ldr	x8, [x8, _D3D9_CAPS3@GOTPAGEOFF]
Lloh9:
	ldr	w9, [x8]
	ldp	w8, w10, [x20, #4]
	and	w9, w9, w10
	ldr	w10, [x20, #12]
Lloh10:
	adrp	x11, _D3D9_DEVCAPS@GOTPAGE
Lloh11:
	ldr	x11, [x11, _D3D9_DEVCAPS@GOTPAGEOFF]
Lloh12:
	ldr	w11, [x11]
	and	w10, w11, w10
	stp	w9, w10, [x19, #8]
Lloh13:
	adrp	x9, _D3DPRESENT_INTERVAL_ONE@GOTPAGE
Lloh14:
	ldr	x9, [x9, _D3DPRESENT_INTERVAL_ONE@GOTPAGEOFF]
Lloh15:
	ldr	w9, [x9]
	str	w9, [x19, #16]
Lloh16:
	adrp	x10, _D3DCAPS2_PRESENT_INTERVAL_SEVERAL@GOTPAGE
Lloh17:
	ldr	x10, [x10, _D3DCAPS2_PRESENT_INTERVAL_SEVERAL@GOTPAGEOFF]
Lloh18:
	ldr	w10, [x10]
	tst	w10, w8
	b.eq	LBB0_2
; %bb.1:
Lloh19:
	adrp	x10, _D3DPRESENT_INTERVAL_TWO@GOTPAGE
Lloh20:
	ldr	x10, [x10, _D3DPRESENT_INTERVAL_TWO@GOTPAGEOFF]
Lloh21:
	ldr	w10, [x10]
Lloh22:
	adrp	x11, _D3DPRESENT_INTERVAL_THREE@GOTPAGE
Lloh23:
	ldr	x11, [x11, _D3DPRESENT_INTERVAL_THREE@GOTPAGEOFF]
Lloh24:
	adrp	x12, _D3DPRESENT_INTERVAL_FOUR@GOTPAGE
Lloh25:
	ldr	x12, [x12, _D3DPRESENT_INTERVAL_FOUR@GOTPAGEOFF]
Lloh26:
	ldr	w11, [x11]
Lloh27:
	ldr	w12, [x12]
	orr	w9, w10, w9
	orr	w9, w9, w11
	orr	w9, w9, w12
	str	w9, [x19, #16]
LBB0_2:
Lloh28:
	adrp	x10, _D3DCAPS2_PRESENT_INTERVAL_IMMEDIATE@GOTPAGE
Lloh29:
	ldr	x10, [x10, _D3DCAPS2_PRESENT_INTERVAL_IMMEDIATE@GOTPAGEOFF]
Lloh30:
	ldr	w10, [x10]
	tst	w10, w8
	b.eq	LBB0_4
; %bb.3:
Lloh31:
	adrp	x8, _D3DPRESENT_INTERVAL_IMMEDIATE@GOTPAGE
Lloh32:
	ldr	x8, [x8, _D3DPRESENT_INTERVAL_IMMEDIATE@GOTPAGEOFF]
Lloh33:
	ldr	w8, [x8]
	orr	w8, w9, w8
	str	w8, [x19, #16]
LBB0_4:
Lloh34:
	adrp	x8, _D3DPMISCCAPS_FOGINFVF@GOTPAGE
Lloh35:
	ldr	x8, [x8, _D3DPMISCCAPS_FOGINFVF@GOTPAGEOFF]
Lloh36:
	ldr	w8, [x8]
	ldp	w9, w10, [x20, #20]
	bic	w8, w9, w8
	str	w8, [x19, #20]
Lloh37:
	adrp	x8, _D3DVTXPCAPS_FOGVERTEX@GOTPAGE
Lloh38:
	ldr	x8, [x8, _D3DVTXPCAPS_FOGVERTEX@GOTPAGEOFF]
Lloh39:
	ldr	w8, [x8]
	tst	w8, w10
	b.eq	LBB0_6
; %bb.5:
Lloh40:
	adrp	x9, _D3DPRASTERCAPS_FOGVERTEX@GOTPAGE
Lloh41:
	ldr	x9, [x9, _D3DPRASTERCAPS_FOGVERTEX@GOTPAGEOFF]
Lloh42:
	ldr	w9, [x9]
	ldr	w10, [x19, #32]
	orr	w9, w10, w9
	str	w9, [x19, #32]
	ldr	w9, [x19, #24]
	bic	w8, w9, w8
	str	w8, [x19, #24]
LBB0_6:
	ldr	s0, [x20, #28]
	fcmp	s0, #0.0
	b.pl	LBB0_8
; %bb.7:
	mov	w8, #1065353216
	str	w8, [x19, #28]
LBB0_8:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh27
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh26
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.cfi_endproc
                                        ; -- End function
	.comm	_D3D9_CAPS1,4,2                 ; @D3D9_CAPS1
	.comm	_D3D9_XP_OR_LATER_CAPS2,4,2     ; @D3D9_XP_OR_LATER_CAPS2
	.comm	_D3D9_PRE_XP_CAPS2,4,2          ; @D3D9_PRE_XP_CAPS2
	.comm	_D3D9_CAPS3,4,2                 ; @D3D9_CAPS3
	.comm	_D3D9_DEVCAPS,4,2               ; @D3D9_DEVCAPS
	.comm	_D3DPRESENT_INTERVAL_ONE,4,2    ; @D3DPRESENT_INTERVAL_ONE
	.comm	_D3DCAPS2_PRESENT_INTERVAL_SEVERAL,4,2 ; @D3DCAPS2_PRESENT_INTERVAL_SEVERAL
	.comm	_D3DPRESENT_INTERVAL_TWO,4,2    ; @D3DPRESENT_INTERVAL_TWO
	.comm	_D3DPRESENT_INTERVAL_THREE,4,2  ; @D3DPRESENT_INTERVAL_THREE
	.comm	_D3DPRESENT_INTERVAL_FOUR,4,2   ; @D3DPRESENT_INTERVAL_FOUR
	.comm	_D3DCAPS2_PRESENT_INTERVAL_IMMEDIATE,4,2 ; @D3DCAPS2_PRESENT_INTERVAL_IMMEDIATE
	.comm	_D3DPRESENT_INTERVAL_IMMEDIATE,4,2 ; @D3DPRESENT_INTERVAL_IMMEDIATE
	.comm	_D3DPMISCCAPS_FOGINFVF,4,2      ; @D3DPMISCCAPS_FOGINFVF
	.comm	_D3DVTXPCAPS_FOGVERTEX,4,2      ; @D3DVTXPCAPS_FOGVERTEX
	.comm	_D3DPRASTERCAPS_FOGVERTEX,4,2   ; @D3DPRASTERCAPS_FOGVERTEX
	.no_dead_strip	_CopyDriverCaps
.subsections_via_symbols
