	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_wined3d_clip_blit              ## -- Begin function wined3d_clip_blit
	.p2align	4, 0x90
_wined3d_clip_blit:                     ## @wined3d_clip_blit
	.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
	subq	$128, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdx, %r14
	movq	%rsi, %rbx
	movq	%rdi, %rdx
	movss	(%rsi), %xmm0                   ## xmm0 = mem[0],zero,zero,zero
	movaps	%xmm0, -144(%rbp)               ## 16-byte Spill
	movss	4(%rsi), %xmm0                  ## xmm0 = mem[0],zero,zero,zero
	movaps	%xmm0, -112(%rbp)               ## 16-byte Spill
	movss	8(%rsi), %xmm0                  ## xmm0 = mem[0],zero,zero,zero
	movaps	%xmm0, -96(%rbp)                ## 16-byte Spill
	movss	12(%rsi), %xmm0                 ## xmm0 = mem[0],zero,zero,zero
	movaps	%xmm0, -128(%rbp)               ## 16-byte Spill
	movss	(%r14), %xmm0                   ## xmm0 = mem[0],zero,zero,zero
	movaps	%xmm0, -80(%rbp)                ## 16-byte Spill
	movss	4(%r14), %xmm0                  ## xmm0 = mem[0],zero,zero,zero
	movaps	%xmm0, -64(%rbp)                ## 16-byte Spill
	movss	8(%r14), %xmm0                  ## xmm0 = mem[0],zero,zero,zero
	movaps	%xmm0, -32(%rbp)                ## 16-byte Spill
	movss	12(%r14), %xmm0                 ## xmm0 = mem[0],zero,zero,zero
	movaps	%xmm0, -48(%rbp)                ## 16-byte Spill
	movq	%rsi, %rdi
	callq	_IntersectRect
	movq	%rbx, %rdi
	callq	_IsRectEmpty
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	%r14, %rdi
	callq	_SetRectEmpty
	movq	_FALSE@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_2:
	movaps	-144(%rbp), %xmm2               ## 16-byte Reload
	movaps	%xmm2, %xmm0
	movaps	-96(%rbp), %xmm5                ## 16-byte Reload
	insertps	$16, %xmm5, %xmm0               ## xmm0 = xmm0[0],xmm5[0],xmm0[2,3]
	movaps	-112(%rbp), %xmm4               ## 16-byte Reload
	movaps	%xmm4, %xmm1
	movaps	-128(%rbp), %xmm3               ## 16-byte Reload
	insertps	$16, %xmm3, %xmm1               ## xmm1 = xmm1[0],xmm3[0],xmm1[2,3]
	subps	%xmm1, %xmm0
	movaps	-80(%rbp), %xmm1                ## 16-byte Reload
	insertps	$16, -32(%rbp), %xmm1           ## 16-byte Folded Reload
                                        ## xmm1 = xmm1[0],mem[0],xmm1[2,3]
	movaps	-64(%rbp), %xmm6                ## 16-byte Reload
	insertps	$16, -48(%rbp), %xmm6           ## 16-byte Folded Reload
                                        ## xmm6 = xmm6[0],mem[0],xmm6[2,3]
	subps	%xmm6, %xmm1
	insertps	$16, 4(%rbx), %xmm2             ## xmm2 = xmm2[0],mem[0],xmm2[2,3]
	divps	%xmm1, %xmm0
	insertps	$32, %xmm5, %xmm2               ## xmm2 = xmm2[0,1],xmm5[0],xmm2[3]
	insertps	$48, 12(%rbx), %xmm2            ## xmm2 = xmm2[0,1,2],mem[0]
	movss	(%rbx), %xmm1                   ## xmm1 = mem[0],zero,zero,zero
	insertps	$16, %xmm4, %xmm1               ## xmm1 = xmm1[0],xmm4[0],xmm1[2,3]
	insertps	$32, 8(%rbx), %xmm1             ## xmm1 = xmm1[0,1],mem[0],xmm1[3]
	unpcklps	%xmm0, %xmm0                    ## xmm0 = xmm0[0,0,1,1]
	insertps	$48, %xmm3, %xmm1               ## xmm1 = xmm1[0,1,2],xmm3[0]
	subps	%xmm1, %xmm2
	divps	%xmm0, %xmm2
	movups	(%r14), %xmm0
	addsubps	%xmm2, %xmm0
	movups	%xmm0, (%r14)
	movq	_TRUE@GOTPCREL(%rip), %rax
LBB0_3:
	movl	(%rax), %eax
	addq	$128, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_FALSE,4,2                      ## @FALSE
	.comm	_TRUE,4,2                       ## @TRUE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_wined3d_clip_blit              ; -- Begin function wined3d_clip_blit
	.p2align	2
_wined3d_clip_blit:                     ; @wined3d_clip_blit
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #160
	.cfi_def_cfa_offset 160
	stp	x20, x19, [sp, #128]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #144]            ; 16-byte Folded Spill
	add	x29, sp, #144
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x2
	mov	x20, x1
	mov	x2, x0
	ldr	s0, [x1]
	stur	q0, [x29, #-32]                 ; 16-byte Folded Spill
	ldr	s0, [x1, #4]
	stur	q0, [x29, #-64]                 ; 16-byte Folded Spill
	ldr	s0, [x1, #8]
	str	q0, [sp, #64]                   ; 16-byte Folded Spill
	ldr	s0, [x1, #12]
	stur	q0, [x29, #-48]                 ; 16-byte Folded Spill
	ldr	s1, [x19]
	ldr	s0, [x19, #4]
	stp	q0, q1, [sp, #32]               ; 32-byte Folded Spill
	ldr	s1, [x19, #8]
	ldr	s0, [x19, #12]
	stp	q1, q0, [sp]                    ; 32-byte Folded Spill
	mov	x0, x1
	bl	_IntersectRect
	mov	x0, x20
	bl	_IsRectEmpty
	cbz	x0, LBB0_2
; %bb.1:
	mov	x0, x19
	bl	_SetRectEmpty
Lloh0:
	adrp	x8, _FALSE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _FALSE@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:
	ldp	q4, q3, [x29, #-48]             ; 32-byte Folded Reload
	mov.16b	v0, v3
	ldp	q2, q6, [sp, #48]               ; 32-byte Folded Reload
	mov.s	v0[1], v6[0]
	ldur	q5, [x29, #-64]                 ; 16-byte Folded Reload
	mov.16b	v1, v5
	mov.s	v1[1], v4[0]
	ldp	q7, q16, [sp]                   ; 32-byte Folded Reload
	mov.s	v2[1], v7[0]
	ldr	q7, [sp, #32]                   ; 16-byte Folded Reload
	mov.s	v7[1], v16[0]
	fsub.2s	v0, v0, v1
	fsub.2s	v1, v2, v7
	add	x8, x20, #4
	add	x9, x20, #12
	ldr	s2, [x20]
	add	x10, x20, #8
	fdiv.2s	v0, v0, v1
	zip1.4s	v0, v0, v0
	ld1.s	{ v3 }[1], [x8]
	mov.s	v3[2], v6[0]
	ld1.s	{ v3 }[3], [x9]
	mov.s	v2[1], v5[0]
	ld1.s	{ v2 }[2], [x10]
	mov.s	v2[3], v4[0]
	fsub.4s	v1, v3, v2
	fdiv.4s	v0, v1, v0
	ldr	q1, [x19]
	fsub.4s	v2, v1, v0
	fadd.4s	v0, v1, v0
	rev64.4s	v1, v2
	trn2.4s	v0, v1, v0
	str	q0, [x19]
Lloh2:
	adrp	x8, _TRUE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _TRUE@GOTPAGEOFF]
LBB0_3:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #144]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #128]            ; 16-byte Folded Reload
	add	sp, sp, #160
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_FALSE,4,2                      ; @FALSE
	.comm	_TRUE,4,2                       ; @TRUE
.subsections_via_symbols
