	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ff_copy_rectangle              ## -- Begin function ff_copy_rectangle
	.p2align	4, 0x90
_ff_copy_rectangle:                     ## @ff_copy_rectangle
	.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	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r9d, -52(%rbp)                 ## 4-byte Spill
	movq	%r8, -88(%rbp)                  ## 8-byte Spill
	movq	%rcx, -104(%rbp)                ## 8-byte Spill
	movq	%rdx, -96(%rbp)                 ## 8-byte Spill
	movq	%rdi, -72(%rbp)                 ## 8-byte Spill
	xorl	%eax, %eax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	%rsi, -80(%rbp)                 ## 8-byte Spill
	movq	-104(%rbp), %r12                ## 8-byte Reload
	jmp	LBB0_1
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	incq	%rcx
	movq	%rcx, %rax
	movq	%rcx, -48(%rbp)                 ## 8-byte Spill
	cmpq	$4, %rcx
	je	LBB0_6
LBB0_1:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_4 Depth 2
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	cmpq	$0, (%rax,%rcx,8)
	je	LBB0_6
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	decl	%eax
	cmpl	$2, %eax
	movl	$0, %r14d
	cmovbl	-52(%rbp), %r14d                ## 4-byte Folded Reload
	movl	$0, %r15d
	cmovbl	16(%rbp), %r15d
	movl	48(%rbp), %edi
	movl	%r14d, %esi
	callq	_AV_CEIL_RSHIFT
	movl	%eax, -60(%rbp)                 ## 4-byte Spill
	movl	56(%rbp), %edi
	movl	%r15d, %esi
	callq	_AV_CEIL_RSHIFT
	movq	-80(%rbp), %rsi                 ## 8-byte Reload
	testl	%eax, %eax
	movq	-88(%rbp), %r10                 ## 8-byte Reload
	movq	-96(%rbp), %r9                  ## 8-byte Reload
	jle	LBB0_5
## %bb.3:                               ##   in Loop: Header=BB0_1 Depth=1
	movl	%eax, %edi
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movslq	(%rsi,%rbx,4), %rax
	movl	32(%rbp), %edx
	movl	%r15d, %ecx
	sarl	%cl, %edx
	movslq	%edx, %r13
	imulq	%rax, %r13
	shlq	$2, %r13
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	addq	(%rax,%rbx,8), %r13
	movl	24(%rbp), %ebx
	movl	%r14d, %ecx
	sarl	%cl, %ebx
	movl	%ebx, -56(%rbp)                 ## 4-byte Spill
	movl	40(%rbp), %eax
	movl	%eax, %r14d
	movl	%r15d, %ecx
	sarl	%cl, %r14d
	.p2align	4, 0x90
LBB0_4:                                 ##   Parent Loop BB0_1 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	%edi, -64(%rbp)                 ## 4-byte Spill
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movl	(%r10,%rbx,4), %edx
	movl	%edx, %eax
	imull	-56(%rbp), %eax                 ## 4-byte Folded Reload
	cltq
	leaq	(,%rax,4), %rdi
	addq	%r13, %rdi
	movslq	(%r12,%rbx,4), %rsi
	movslq	%r14d, %r14
	imulq	%r14, %rsi
	shlq	$2, %rsi
	addq	(%r9,%rbx,8), %rsi
	imull	-60(%rbp), %edx                 ## 4-byte Folded Reload
	movq	%r9, %r15
	callq	_memcpy
	movl	-64(%rbp), %edi                 ## 4-byte Reload
	movq	%r15, %r9
	movq	-88(%rbp), %r10                 ## 8-byte Reload
	movq	-80(%rbp), %rsi                 ## 8-byte Reload
	movslq	(%rsi,%rbx,4), %rax
	leaq	(%r13,%rax,4), %r13
	incl	%r14d
	decl	%edi
	jne	LBB0_4
	jmp	LBB0_5
LBB0_6:
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ff_copy_rectangle              ; -- Begin function ff_copy_rectangle
	.p2align	2
_ff_copy_rectangle:                     ; @ff_copy_rectangle
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #176
	.cfi_def_cfa_offset 176
	stp	x28, x27, [sp, #80]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #96]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #112]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #128]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #144]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #160]            ; 16-byte Folded Spill
	add	x29, sp, #160
	.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
	str	w7, [sp, #20]                   ; 4-byte Folded Spill
	stp	w5, w6, [sp, #56]               ; 8-byte Folded Spill
	stp	x3, x4, [sp, #40]               ; 16-byte Folded Spill
	str	x2, [sp, #32]                   ; 8-byte Folded Spill
	mov	x19, x1
	str	x0, [sp, #64]                   ; 8-byte Folded Spill
	mov	x28, #0
	ldr	w8, [x29, #28]
	str	w8, [sp, #28]                   ; 4-byte Folded Spill
	ldr	w8, [x29, #24]
	str	w8, [sp, #24]                   ; 4-byte Folded Spill
	ldr	w8, [x29, #20]
	str	w8, [sp, #16]                   ; 4-byte Folded Spill
	ldr	w8, [x29, #16]
	str	w8, [sp, #12]                   ; 4-byte Folded Spill
	mov	x23, x4
	mov	x24, x3
	mov	x25, x2
	b	LBB0_2
LBB0_1:                                 ;   in Loop: Header=BB0_2 Depth=1
	add	x28, x28, #1
	cmp	x28, #4
	b.eq	LBB0_6
LBB0_2:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_5 Depth 2
	ldr	x8, [sp, #64]                   ; 8-byte Folded Reload
	ldr	x8, [x8, x28, lsl #3]
	cbz	x8, LBB0_6
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	sub	w8, w28, #1
	cmp	w8, #2
	ldr	w8, [sp, #56]                   ; 4-byte Folded Reload
	csel	w21, w8, wzr, lo
	ldr	w8, [sp, #60]                   ; 4-byte Folded Reload
	csel	w27, w8, wzr, lo
	ldr	w0, [sp, #24]                   ; 4-byte Folded Reload
	mov	x1, x21
	bl	_AV_CEIL_RSHIFT
	str	w0, [sp, #76]                   ; 4-byte Folded Spill
	ldr	w0, [sp, #28]                   ; 4-byte Folded Reload
	mov	x1, x27
	bl	_AV_CEIL_RSHIFT
	cmp	w0, #1
	b.lt	LBB0_1
; %bb.4:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x20, x0
	ldr	x8, [sp, #64]                   ; 8-byte Folded Reload
	ldr	x8, [x8, x28, lsl #3]
	ldr	w9, [x19, x28, lsl #2]
	ldr	w10, [sp, #12]                  ; 4-byte Folded Reload
	asr	w10, w10, w27
	mul	w9, w9, w10
	add	x26, x8, w9, sxtw #2
	ldr	w8, [sp, #20]                   ; 4-byte Folded Reload
	asr	w21, w8, w21
	ldr	w8, [sp, #16]                   ; 4-byte Folded Reload
	asr	w27, w8, w27
LBB0_5:                                 ;   Parent Loop BB0_2 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	lsl	x22, x28, #2
	ldr	w8, [x23, x22]
	mul	w9, w8, w21
	ldr	x10, [x25, x28, lsl #3]
	add	x0, x26, w9, sxtw #2
	ldr	w9, [x24, x22]
	mul	w9, w9, w27
	add	x1, x10, w9, sxtw #2
	ldr	w9, [sp, #76]                   ; 4-byte Folded Reload
	mul	w2, w8, w9
	bl	_memcpy
	ldrsw	x8, [x19, x22]
	add	x26, x26, x8, lsl #2
	add	w27, w27, #1
	subs	w20, w20, #1
	b.ne	LBB0_5
	b	LBB0_1
LBB0_6:
	ldp	x29, x30, [sp, #160]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #144]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #128]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #112]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #96]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #80]             ; 16-byte Folded Reload
	add	sp, sp, #176
	ret
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
