	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function copy_fields
_copy_fields:                           ## @copy_fields
	.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	%ecx, -52(%rbp)                 ## 4-byte Spill
	movq	%rsi, -72(%rbp)                 ## 8-byte Spill
	movq	%rdi, -64(%rbp)                 ## 8-byte Spill
	xorl	%ebx, %ebx
	movq	%rdx, -48(%rbp)                 ## 8-byte Spill
	movq	-64(%rbp), %r15                 ## 8-byte Reload
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%rdx), %rax
	cmpq	$0, (%rax,%rbx,8)
	je	LBB0_4
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	(%rdx), %rax
	cmpl	$0, (%rax,%rbx,4)
	je	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	%r15, %rdi
	movq	%rdx, %rsi
	movl	%ebx, %edx
	callq	_get_height
	movl	%eax, %esi
	sarl	%esi
	andl	$1, %eax
	movl	-52(%rbp), %edx                 ## 4-byte Reload
	testl	%edx, %edx
	movl	$0, %ecx
	cmovnel	%ecx, %eax
	addl	%eax, %esi
	movl	%esi, -56(%rbp)                 ## 4-byte Spill
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	movq	(%rcx), %rax
	movq	8(%rcx), %rcx
	movl	(%rax,%rbx,4), %r14d
	movl	%r14d, %eax
	imull	%edx, %eax
	cltq
	addq	(%rcx,%rbx,8), %rax
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	addl	%r14d, %r14d
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rax
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movq	8(%rcx), %rcx
	movl	(%rax,%rbx,4), %r13d
	movl	%r13d, %eax
	imull	%edx, %eax
	movslq	%eax, %r12
	addq	(%rcx,%rbx,8), %r12
	addl	%r13d, %r13d
	movq	%r15, %rdi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	movl	%ebx, %edx
	callq	_get_width
	imull	(%r15), %eax
	movq	-80(%rbp), %rdi                 ## 8-byte Reload
	movl	%r14d, %esi
	movq	%r12, %rdx
	movl	%r13d, %ecx
	movl	%eax, %r8d
	movl	-56(%rbp), %r9d                 ## 4-byte Reload
	callq	_av_image_copy_plane
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	incq	%rbx
	cmpq	$4, %rbx
	jne	LBB0_1
LBB0_4:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_copy_fields
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function copy_fields
_copy_fields:                           ; @copy_fields
	.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
	mov	x19, x3
	mov	x20, x2
	mov	x21, x1
	mov	x22, x0
	mov	x23, #0
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x20, #8]
	ldr	x8, [x8, x23, lsl #3]
	cbz	x8, LBB0_4
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	ldr	x8, [x20]
	ldr	w8, [x8, x23, lsl #2]
	cbz	w8, LBB0_4
; %bb.3:                                ;   in Loop: Header=BB0_1 Depth=1
	mov	x0, x22
	mov	x1, x20
	mov	x2, x23
	bl	_get_height
	and	w8, w0, #0x1
	cmp	w19, #0
	csel	w8, w8, wzr, eq
	add	w24, w8, w0, asr #1
	lsl	x8, x23, #3
	ldp	x10, x9, [x21]
	ldr	x9, [x9, x8]
	lsl	x11, x23, #2
	ldr	w10, [x10, x11]
	mul	w12, w10, w19
	add	x25, x9, w12, sxtw
	ldp	x12, x9, [x20]
	ldr	x8, [x9, x8]
	lsl	w26, w10, #1
	ldr	w9, [x12, x11]
	mul	w10, w9, w19
	add	x27, x8, w10, sxtw
	lsl	w28, w9, #1
	mov	x0, x22
	mov	x1, x20
	mov	x2, x23
	bl	_get_width
	ldr	w8, [x22]
	mul	w4, w8, w0
	mov	x0, x25
	mov	x1, x26
	mov	x2, x27
	mov	x3, x28
	mov	x5, x24
	bl	_av_image_copy_plane
	add	x23, x23, #1
	cmp	x23, #4
	b.ne	LBB0_1
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	_copy_fields
.subsections_via_symbols
