	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function xan_wc3_output_pixel_run
_xan_wc3_output_pixel_run:              ## @xan_wc3_output_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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	testl	%r9d, %r9d
	je	LBB0_4
## %bb.1:
	movl	%r9d, %r14d
	movl	%r8d, %ebx
	movl	%ecx, %r15d
	movq	%rdx, %r12
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	8(%rax), %rax
	movl	(%rax), %edx
	movq	(%rsi), %rax
	movq	8(%rsi), %rcx
	movq	(%rcx), %rcx
	movq	%rcx, -64(%rbp)                 ## 8-byte Spill
	movl	(%rax), %eax
	imull	%eax, %ebx
	movl	%edx, -44(%rbp)                 ## 4-byte Spill
	subl	%edx, %eax
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	addl	%r15d, %ebx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	cmpl	(%rax), %ebx
	jge	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	subl	%r15d, %esi
	movl	%r14d, %edi
	callq	_FFMIN
	movl	%eax, %r13d
	movslq	%ebx, %rax
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	leaq	(%rcx,%rax,4), %rdi
	movq	%r12, %rsi
	movl	%r13d, %edx
	callq	_memcpy
	addl	%r13d, %ebx
	addl	%r13d, %r15d
	cmpl	-44(%rbp), %r15d                ## 4-byte Folded Reload
	movl	$0, %ecx
	cmovgel	%ecx, %r15d
	movl	-48(%rbp), %eax                 ## 4-byte Reload
	cmovll	%ecx, %eax
	addl	%eax, %ebx
	movslq	%r13d, %rax
	leaq	(%r12,%rax,4), %r12
	subl	%r13d, %r14d
	jne	LBB0_2
LBB0_4:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_xan_wc3_output_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_output_pixel_run
_xan_wc3_output_pixel_run:              ; @xan_wc3_output_pixel_run
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	cbz	w5, LBB0_4
; %bb.1:
	mov	x19, x5
	mov	x22, x3
	mov	x20, x2
	mov	x21, x0
	ldr	x8, [x0, #8]
	ldr	w24, [x8]
	ldp	x9, x8, [x1]
	ldr	x25, [x8]
	ldr	w8, [x9]
	sub	w26, w8, w24
	madd	w27, w8, w4, w3
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x21]
	cmp	w27, w8
	b.ge	LBB0_4
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	sub	w1, w24, w22
	mov	x0, x19
	bl	_FFMIN
	mov	x23, x0
	add	x0, x25, w27, sxtw #2
	mov	x1, x20
	mov	x2, x23
	bl	_memcpy
	add	x20, x20, w23, sxtw #2
	add	w8, w23, w22
	cmp	w8, w24
	csel	w22, w8, wzr, lt
	csel	w8, wzr, w26, lt
	add	w9, w23, w27
	add	w27, w9, w8
	sub	w19, w19, w23
	cbnz	w19, LBB0_2
LBB0_4:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_xan_wc3_output_pixel_run
.subsections_via_symbols
