	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function copyadd_block
_copyadd_block:                         ## @copyadd_block
	.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
                                        ## kill: def $r9d killed $r9d def $r9
                                        ## kill: def $r8d killed $r8d def $r8
	movl	%ecx, %r10d
	testl	%ecx, %ecx
	setg	%cl
	testl	%r9d, %r9d
	js	LBB0_15
## %bb.1:
	testl	%r8d, %r8d
	js	LBB0_15
## %bb.2:
	movl	16(%rbp), %r11d
	addl	%r8d, %r11d
	js	LBB0_15
## %bb.3:
	movl	24(%rbp), %r14d
	addl	%r9d, %r14d
	js	LBB0_15
## %bb.4:
	movl	32(%rbp), %ebx
	leal	(%rbx,%r8), %eax
	movl	(%rdi), %r15d
	sarl	%cl, %r15d
	cmpl	%r15d, %eax
	jle	LBB0_5
LBB0_15:
	movq	_AVERROR_INVALIDDATA@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_14:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	leal	(%rbx,%r9), %eax
	movl	4(%rdi), %edi
	sarl	%cl, %edi
	cmpl	%edi, %eax
	jg	LBB0_15
## %bb.6:
	leal	(%r11,%rbx), %eax
	cmpl	%r15d, %eax
	jg	LBB0_15
## %bb.7:
	leal	(%r14,%rbx), %eax
	cmpl	%edi, %eax
	jg	LBB0_15
## %bb.8:
	testl	%ebx, %ebx
	jle	LBB0_13
## %bb.9:
	movl	40(%rbp), %r13d
	movslq	%r10d, %rax
	movq	(%rdx), %rcx
	movq	8(%rdx), %rdx
	movslq	(%rcx,%rax,4), %rdi
	movq	(%rsi), %rcx
	movq	8(%rsi), %rsi
	movslq	(%rcx,%rax,4), %rcx
	imull	%edi, %r14d
	addl	%r11d, %r14d
	movq	(%rdx,%rax,8), %r10
	imull	%ecx, %r9d
	addl	%r8d, %r9d
	movq	(%rsi,%rax,8), %rax
	movslq	%r14d, %rdx
	movslq	%r9d, %rsi
	movl	%ebx, %ebx
	leaq	(%rax,%rsi,4), %r14
	shlq	$2, %rcx
	movq	%rcx, -48(%rbp)                 ## 8-byte Spill
	leaq	(%r10,%rdx,4), %r15
	shlq	$2, %rdi
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	xorl	%ecx, %ecx
	.p2align	4, 0x90
LBB0_10:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_11 Depth 2
	movq	%rcx, -64(%rbp)                 ## 8-byte Spill
	xorl	%r12d, %r12d
	.p2align	4, 0x90
LBB0_11:                                ##   Parent Loop BB0_10 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	(%r15,%r12,4), %edi
	addl	%r13d, %edi
	callq	_av_clip_uint8
	movl	%eax, (%r14,%r12,4)
	incq	%r12
	cmpq	%r12, %rbx
	jne	LBB0_11
## %bb.12:                              ##   in Loop: Header=BB0_10 Depth=1
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	incl	%ecx
	addq	-48(%rbp), %r14                 ## 8-byte Folded Reload
	addq	-56(%rbp), %r15                 ## 8-byte Folded Reload
	movl	32(%rbp), %eax
	cmpl	%eax, %ecx
	jne	LBB0_10
LBB0_13:
	xorl	%eax, %eax
	jmp	LBB0_14
	.cfi_endproc
                                        ## -- End function
	.comm	_AVERROR_INVALIDDATA,4,2        ## @AVERROR_INVALIDDATA
	.no_dead_strip	_copyadd_block
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function copyadd_block
_copyadd_block:                         ; @copyadd_block
	.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
                                        ; kill: def $w3 killed $w3 def $x3
	cmp	w3, #0
	cset	w10, gt
	tbnz	w5, #31, LBB0_5
; %bb.1:
	tbnz	w4, #31, LBB0_5
; %bb.2:
	add	w8, w6, w4
	tbnz	w8, #31, LBB0_5
; %bb.3:
	add	w9, w7, w5
	tbnz	w9, #31, LBB0_5
; %bb.4:
	ldr	w19, [x29, #16]
	ldr	w11, [x0]
	asr	w11, w11, w10
	add	w12, w19, w4
	cmp	w12, w11
	b.le	LBB0_7
LBB0_5:
Lloh0:
	adrp	x8, _AVERROR_INVALIDDATA@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AVERROR_INVALIDDATA@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
LBB0_6:
	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
LBB0_7:
	ldr	w12, [x0, #4]
	asr	w10, w12, w10
	add	w12, w19, w5
	cmp	w12, w10
	b.gt	LBB0_5
; %bb.8:
	add	w12, w8, w19
	cmp	w12, w11
	b.gt	LBB0_5
; %bb.9:
	add	w11, w9, w19
	cmp	w11, w10
	b.gt	LBB0_5
; %bb.10:
	cmp	w19, #1
	b.lt	LBB0_15
; %bb.11:
	mov	w20, #0
	sbfiz	x10, x3, #2, #32
	ldp	x11, x12, [x2]
	ldrsw	x11, [x11, x10]
	ldp	x13, x14, [x1]
	ldrsw	x10, [x13, x10]
	ldr	w21, [x29, #20]
	sbfiz	x13, x3, #3, #32
	ldr	x12, [x12, x13]
	ldr	x13, [x14, x13]
	madd	w14, w10, w5, w4
	add	x22, x13, w14, sxtw #2
	madd	w8, w11, w9, w8
	lsl	x23, x10, #2
	add	x24, x12, w8, sxtw #2
	lsl	x25, x11, #2
LBB0_12:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_13 Depth 2
	mov	x26, x19
	mov	x27, x24
	mov	x28, x22
LBB0_13:                                ;   Parent Loop BB0_12 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	w8, [x27], #4
	add	w0, w8, w21
	bl	_av_clip_uint8
	str	w0, [x28], #4
	subs	x26, x26, #1
	b.ne	LBB0_13
; %bb.14:                               ;   in Loop: Header=BB0_12 Depth=1
	add	w20, w20, #1
	add	x22, x22, x23
	add	x24, x24, x25
	cmp	w20, w19
	b.ne	LBB0_12
LBB0_15:
	mov	w0, #0
	b	LBB0_6
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_AVERROR_INVALIDDATA,4,2        ; @AVERROR_INVALIDDATA
	.no_dead_strip	_copyadd_block
.subsections_via_symbols
