	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_d3dcaps_from_wined3dcaps       ## -- Begin function d3dcaps_from_wined3dcaps
	.p2align	4, 0x90
_d3dcaps_from_wined3dcaps:              ## @d3dcaps_from_wined3dcaps
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	movq	224(%rsi), %rax
	movq	%rax, 216(%rdi)
	movl	220(%rsi), %eax
	movl	%eax, 212(%rdi)
	movl	216(%rsi), %eax
	movl	%eax, 208(%rdi)
	movl	212(%rsi), %eax
	movl	%eax, 204(%rdi)
	movups	196(%rsi), %xmm0
	movups	%xmm0, 188(%rdi)
	movups	180(%rsi), %xmm0
	movups	%xmm0, 172(%rdi)
	movups	164(%rsi), %xmm0
	movups	%xmm0, 156(%rdi)
	movups	148(%rsi), %xmm0
	movups	%xmm0, 140(%rdi)
	movups	132(%rsi), %xmm0
	movups	%xmm0, 124(%rdi)
	movups	116(%rsi), %xmm0
	movups	%xmm0, 108(%rdi)
	movups	100(%rsi), %xmm0
	movups	%xmm0, 92(%rdi)
	movl	88(%rsi), %eax
	movl	%eax, (%rdi)
	movsd	92(%rsi), %xmm0                 ## xmm0 = mem[0],zero
	movsd	80(%rsi), %xmm1                 ## xmm1 = mem[0],zero
	movlhps	%xmm0, %xmm1                    ## xmm1 = xmm1[0],xmm0[0]
	movups	%xmm1, 76(%rdi)
	movups	64(%rsi), %xmm0
	movups	%xmm0, 60(%rdi)
	movups	48(%rsi), %xmm0
	movups	%xmm0, 44(%rdi)
	movups	32(%rsi), %xmm0
	movups	%xmm0, 28(%rdi)
	movq	24(%rsi), %rax
	movq	%rax, 8(%rdi)
	movl	16(%rsi), %eax
	movl	%eax, 4(%rdi)
	movq	8(%rsi), %rax
	movq	%rax, 16(%rdi)
	movl	(%rsi), %ecx
	movl	%ecx, 24(%rdi)
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movl	$1, %edi
	movl	$4, %esi
	jmp	LBB0_3
LBB0_2:
	xorl	%edi, %edi
	xorl	%esi, %esi
LBB0_3:
	callq	_D3DPS_VERSION
	movq	%rax, 16(%rbx)
	cmpq	$0, 8(%rbx)
	je	LBB0_5
## %bb.4:
	movl	$1, %edi
	movl	$1, %esi
	jmp	LBB0_6
LBB0_5:
	xorl	%edi, %edi
	xorl	%esi, %esi
LBB0_6:
	callq	_D3DVS_VERSION
	movq	%rax, 8(%rbx)
	movq	_D3D8_MAX_VERTEX_SHADER_CONSTANTF@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	4(%rbx), %esi
	callq	_min
	movl	%eax, 4(%rbx)
	movq	_WINED3DSTENCILCAPS_TWOSIDED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	andl	%eax, (%rbx)
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_D3D8_MAX_VERTEX_SHADER_CONSTANTF,4,2 ## @D3D8_MAX_VERTEX_SHADER_CONSTANTF
	.comm	_WINED3DSTENCILCAPS_TWOSIDED,4,2 ## @WINED3DSTENCILCAPS_TWOSIDED
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_d3dcaps_from_wined3dcaps       ; -- Begin function d3dcaps_from_wined3dcaps
	.p2align	2
_d3dcaps_from_wined3dcaps:              ; @d3dcaps_from_wined3dcaps
	.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, x0
	ldr	x8, [x1, #224]
	str	x8, [x0, #216]
	ldr	w8, [x1, #220]
	str	w8, [x0, #212]
	ldur	d0, [x1, #212]
	stur	d0, [x0, #204]
	ldur	q0, [x1, #196]
	stur	q0, [x0, #188]
	ldur	q0, [x1, #180]
	stur	q0, [x0, #172]
	ldur	q0, [x1, #164]
	stur	q0, [x0, #156]
	ldur	q0, [x1, #148]
	stur	q0, [x0, #140]
	ldur	q0, [x1, #132]
	stur	q0, [x0, #124]
	ldur	q0, [x1, #116]
	stur	q0, [x0, #108]
	ldur	q0, [x1, #100]
	stur	q0, [x0, #92]
	ldr	w8, [x1, #88]
	str	w8, [x0]
	ldur	d0, [x1, #92]
	ldr	d1, [x1, #80]
	mov.d	v1[1], v0[0]
	stur	q1, [x0, #76]
	ldr	q0, [x1, #64]
	stur	q0, [x0, #60]
	ldr	q0, [x1, #48]
	stur	q0, [x0, #44]
	ldr	q0, [x1, #32]
	stur	q0, [x0, #28]
	ldr	x8, [x1, #24]
	ldr	w9, [x1, #16]
	str	w9, [x0, #4]
	ldr	x9, [x1, #8]
	stp	x8, x9, [x0, #8]
	ldr	w8, [x1]
	str	w8, [x0, #24]
	cbz	x9, LBB0_2
; %bb.1:
	mov	w0, #1
	mov	w1, #4
	b	LBB0_3
LBB0_2:
	mov	w0, #0
	mov	w1, #0
LBB0_3:
	bl	_D3DPS_VERSION
	str	x0, [x19, #16]
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_5
; %bb.4:
	mov	w0, #1
	mov	w1, #1
	b	LBB0_6
LBB0_5:
	mov	w0, #0
	mov	w1, #0
LBB0_6:
	bl	_D3DVS_VERSION
	str	x0, [x19, #8]
Lloh0:
	adrp	x8, _D3D8_MAX_VERTEX_SHADER_CONSTANTF@GOTPAGE
Lloh1:
	ldr	x8, [x8, _D3D8_MAX_VERTEX_SHADER_CONSTANTF@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	ldr	w1, [x19, #4]
	bl	_min
Lloh3:
	adrp	x8, _WINED3DSTENCILCAPS_TWOSIDED@GOTPAGE
Lloh4:
	ldr	x8, [x8, _WINED3DSTENCILCAPS_TWOSIDED@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	ldr	w9, [x19]
	bic	w8, w9, w8
	stp	w8, w0, [x19]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_D3D8_MAX_VERTEX_SHADER_CONSTANTF,4,2 ; @D3D8_MAX_VERTEX_SHADER_CONSTANTF
	.comm	_WINED3DSTENCILCAPS_TWOSIDED,4,2 ; @WINED3DSTENCILCAPS_TWOSIDED
.subsections_via_symbols
