	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function xan_wc3_copy_pixel_run
_xan_wc3_copy_pixel_run:                ## @xan_wc3_copy_pixel_run
	.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
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r15d
	movq	%rdi, %rdx
	movl	16(%rbp), %edi
	movl	%edi, %r12d
	addl	%ecx, %r12d
	js	LBB0_11
## %bb.1:
	movq	8(%rdx), %rax
	cmpl	4(%rax), %r12d
	jge	LBB0_11
## %bb.2:
	movl	%r9d, %r14d
	addl	%r15d, %r14d
	js	LBB0_11
## %bb.3:
	movl	(%rax), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	cmpl	%eax, %r14d
	jge	LBB0_11
## %bb.4:
	movl	%ecx, %r13d
	movq	(%rsi), %rax
	movq	8(%rsi), %rcx
	movq	(%rcx), %rsi
	movq	16(%rdx), %rcx
	movq	(%rcx), %rcx
	movq	(%rcx), %rcx
	testq	%rcx, %rcx
	cmoveq	%rsi, %rcx
	movl	(%rax), %ebx
	movq	%rsi, -80(%rbp)                 ## 8-byte Spill
	movq	%rcx, -72(%rbp)                 ## 8-byte Spill
	cmpq	%rsi, %rcx
	jne	LBB0_6
## %bb.5:
	imull	-44(%rbp), %edi                 ## 4-byte Folded Reload
	addl	%r9d, %edi
	movl	%r8d, -48(%rbp)                 ## 4-byte Spill
	movq	%rdx, -56(%rbp)                 ## 8-byte Spill
	callq	_FFABS
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	movl	-48(%rbp), %r8d                 ## 4-byte Reload
	cmpl	%r8d, %eax
	jge	LBB0_6
## %bb.12:
	movq	8(%rdx), %rdi
	leaq	L_.str(%rip), %rsi
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_avpriv_request_sample          ## TAILCALL
LBB0_6:
	testl	%r8d, %r8d
	je	LBB0_11
## %bb.7:
	movl	%ebx, %eax
	subl	-44(%rbp), %eax                 ## 4-byte Folded Reload
	movl	%eax, -60(%rbp)                 ## 4-byte Spill
	imull	%ebx, %r13d
	addl	%r15d, %r13d
	imull	%ebx, %r12d
	addl	%r14d, %r12d
	movq	%rdx, -56(%rbp)                 ## 8-byte Spill
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%rdx), %eax
	cmpl	%eax, %r13d
	jge	LBB0_11
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=1
	cmpl	%eax, %r12d
	jge	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_8 Depth=1
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, %esi
	subl	%r15d, %esi
	movl	%eax, %edx
	subl	%r14d, %edx
	movl	%r8d, %edi
	movl	%r8d, -48(%rbp)                 ## 4-byte Spill
	callq	_FFMIN3
	movl	%eax, %ebx
	movslq	%r13d, %rax
	movq	-80(%rbp), %rcx                 ## 8-byte Reload
	leaq	(%rcx,%rax,4), %rdi
	movslq	%r12d, %rax
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	leaq	(%rcx,%rax,4), %rsi
	movl	%ebx, %edx
	callq	_memcpy
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	movl	-48(%rbp), %r8d                 ## 4-byte Reload
	addl	%ebx, %r13d
	addl	%ebx, %r12d
	addl	%ebx, %r15d
	addl	%ebx, %r14d
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	cmpl	%edi, %r15d
	movl	$0, %esi
	cmovgel	%esi, %r15d
	movl	-60(%rbp), %ecx                 ## 4-byte Reload
	movl	%ecx, %eax
	cmovll	%esi, %eax
	addl	%eax, %r13d
	cmpl	%edi, %r14d
	cmovgel	%esi, %r14d
	movl	%ecx, %eax
	cmovll	%esi, %eax
	addl	%eax, %r12d
	subl	%ebx, %r8d
	jne	LBB0_8
LBB0_11:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Overlapping copy"

	.no_dead_strip	_xan_wc3_copy_pixel_run
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function xan_wc3_copy_pixel_run
_xan_wc3_copy_pixel_run:                ; @xan_wc3_copy_pixel_run
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	adds	w26, w6, w3
	b.mi	LBB0_11
; %bb.1:
	mov	x20, x0
	ldr	x8, [x0, #8]
	ldr	w9, [x8, #4]
	cmp	w26, w9
	b.ge	LBB0_11
; %bb.2:
	mov	x21, x2
	adds	w23, w5, w2
	b.mi	LBB0_11
; %bb.3:
	ldr	w24, [x8]
	cmp	w23, w24
	b.ge	LBB0_11
; %bb.4:
	mov	x19, x4
	mov	x22, x3
	ldp	x9, x8, [x1]
	ldr	x25, [x8]
	ldr	x8, [x20, #16]
	ldr	x8, [x8]
	ldr	x8, [x8]
	cmp	x8, #0
	csel	x8, x25, x8, eq
	ldr	w27, [x9]
	str	x8, [sp, #8]                    ; 8-byte Folded Spill
	cmp	x8, x25
	b.ne	LBB0_7
; %bb.5:
	madd	w0, w24, w6, w5
	bl	_FFABS
	cmp	w0, w19
	b.ge	LBB0_7
; %bb.6:
	ldr	x0, [x20, #8]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	b	_avpriv_request_sample
LBB0_7:
	cbz	w19, LBB0_11
; %bb.8:
	mov	x8, x27
	sub	w27, w27, w24
	madd	w28, w8, w22, w21
	madd	w26, w8, w26, w23
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x20]
	cmp	w28, w8
	ccmp	w26, w8, #0, lt
	b.ge	LBB0_11
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=1
	sub	w1, w24, w21
	sub	w2, w24, w23
	mov	x0, x19
	bl	_FFMIN3
	mov	x22, x0
	add	x0, x25, w28, sxtw #2
	ldr	x8, [sp, #8]                    ; 8-byte Folded Reload
	add	x1, x8, w26, sxtw #2
	mov	x2, x22
	bl	_memcpy
	add	w8, w22, w21
	cmp	w8, w24
	csel	w21, w8, wzr, lt
	csel	w8, wzr, w27, lt
	add	w9, w22, w28
	add	w28, w9, w8
	add	w8, w22, w23
	cmp	w8, w24
	csel	w23, w8, wzr, lt
	csel	w8, wzr, w27, lt
	add	w9, w22, w26
	add	w26, w9, w8
	sub	w19, w19, w22
	cbnz	w19, LBB0_9
LBB0_11:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Overlapping copy"

	.no_dead_strip	_xan_wc3_copy_pixel_run
.subsections_via_symbols
