	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function copy_picture_field
_copy_picture_field:                    ## @copy_picture_field
	.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	$120, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, %r12
	movq	%rcx, -144(%rbp)                ## 8-byte Spill
	movq	%rdx, -136(%rbp)                ## 8-byte Spill
	movq	%rsi, -128(%rbp)                ## 8-byte Spill
	movq	%rdi, -88(%rbp)                 ## 8-byte Spill
	movl	32(%rbp), %r14d
	movl	%r9d, %edi
	callq	_av_pix_fmt_desc_get
	movq	_FIELD_UPPER_AND_LOWER@GOTPCREL(%rip), %rdx
	xorl	%ecx, %ecx
	cmpl	%r14d, (%rdx)
	sete	%dl
	movq	%rax, -112(%rbp)                ## 8-byte Spill
	cmpl	$0, 8(%rax)
	jle	LBB0_11
## %bb.1:
	movq	-112(%rbp), %rax                ## 8-byte Reload
	movl	(%rax), %esi
	movl	%esi, -96(%rbp)                 ## 4-byte Spill
	movl	4(%rax), %eax
	movl	%eax, -92(%rbp)                 ## 4-byte Spill
	movb	%dl, %cl
	movl	$2, %eax
	movl	$2, %edx
	subl	%ecx, %edx
	movl	%edx, -104(%rbp)                ## 4-byte Spill
	xorl	%ecx, %ecx
	cmpl	$0, 40(%rbp)
	setne	-41(%rbp)                       ## 1-byte Folded Spill
	sete	%cl
	subl	%ecx, %eax
	movl	%eax, %eax
	movq	%rax, -120(%rbp)                ## 8-byte Spill
	xorl	%r13d, %r13d
	movq	%r12, -160(%rbp)                ## 8-byte Spill
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_2 Depth=1
	cmpl	$9, -48(%rbp)                   ## 4-byte Folded Reload
	setge	%cl
	movl	-52(%rbp), %r8d                 ## 4-byte Reload
	shll	%cl, %r8d
	movl	%r10d, %esi
	movl	%r11d, %ecx
	movl	%r13d, %r9d
	callq	_av_image_copy_plane
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
LBB0_10:                                ##   in Loop: Header=BB0_2 Depth=1
	incq	%rcx
	movq	-112(%rbp), %rax                ## 8-byte Reload
	movslq	8(%rax), %rax
	cmpq	%rax, %rcx
	movq	%rcx, %r13
	jge	LBB0_11
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_8 Depth 2
	leal	-1(%r13), %eax
	movl	24(%rbp), %ebx
	movl	16(%rbp), %ecx
	cmpl	$1, %eax
	ja	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	24(%rbp), %edi
	movl	-92(%rbp), %esi                 ## 4-byte Reload
	callq	_AV_CEIL_RSHIFT
	movl	%eax, %ebx
	movl	16(%rbp), %edi
	movl	-96(%rbp), %esi                 ## 4-byte Reload
	callq	_AV_CEIL_RSHIFT
	movl	%eax, %ecx
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	%ecx, -52(%rbp)                 ## 4-byte Spill
	movq	-128(%rbp), %rax                ## 8-byte Reload
	movq	(%rax,%r13,8), %r8
	movq	-144(%rbp), %rax                ## 8-byte Reload
	movq	(%rax,%r13,8), %r14
	movl	%ebx, %esi
	movl	(%r12,%r13,4), %ebx
	movl	%ebx, %r11d
	movl	-104(%rbp), %edi                ## 4-byte Reload
	imull	%edi, %r11d
	movq	-136(%rbp), %rax                ## 8-byte Reload
	movslq	(%rax,%r13,4), %r15
	movq	%r15, %r10
	imulq	-120(%rbp), %r10                ## 8-byte Folded Reload
	movq	-88(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rax
	movq	(%rax), %rax
	movq	%r13, -72(%rbp)                 ## 8-byte Spill
	movl	(%rax,%r13,4), %ecx
	movl	$-1, %r9d
	movl	%ecx, -48(%rbp)                 ## 4-byte Spill
                                        ## kill: def $cl killed $cl killed $ecx
	shll	%cl, %r9d
	xorl	%eax, %eax
	movl	32(%rbp), %ecx
	movq	_FIELD_UPPER@GOTPCREL(%rip), %rdx
	cmpl	%ecx, (%rdx)
	sete	%al
	addl	%esi, %eax
	cltd
	idivl	%edi
	movl	%eax, %r13d
	movq	_FIELD_LOWER@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	cmpl	%ecx, %eax
	movl	$0, %edx
	movl	%ebx, -60(%rbp)                 ## 4-byte Spill
	cmovel	%ebx, %edx
	movslq	%edx, %rdx
	movq	%r14, -80(%rbp)                 ## 8-byte Spill
	movq	%rdx, -152(%rbp)                ## 8-byte Spill
	leaq	(%r14,%rdx,4), %rdx
	cmpl	48(%rbp), %eax
	movl	$0, %eax
	cmovneq	%rax, %r15
	cmpb	$0, -41(%rbp)                   ## 1-byte Folded Reload
	cmoveq	%rax, %r15
	movq	_TINTERLACE_FLAG_CVLPF@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_TINTERLACE_FLAG_VLPF@GOTPCREL(%rip), %rsi
	movl	(%rsi), %esi
	orl	%ebx, %esi
	leaq	(%r8,%r15,4), %rdi
	testl	%esi, 56(%rbp)
	je	LBB0_9
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	%r11d, -100(%rbp)               ## 4-byte Spill
	testl	%r13d, %r13d
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	jle	LBB0_10
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%r8, %r14
	notl	%r9d
	movl	%r9d, -48(%rbp)                 ## 4-byte Spill
	testl	%ebx, 56(%rbp)
	setne	-56(%rbp)                       ## 1-byte Folded Spill
	movl	-52(%rbp), %esi                 ## 4-byte Reload
	xorl	%ecx, %ecx
	movl	-60(%rbp), %r8d                 ## 4-byte Reload
	movq	%r10, %rbx
	movq	-88(%rbp), %rax                 ## 8-byte Reload
	callq	*8(%rax)
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	movl	-48(%rbp), %r9d                 ## 4-byte Reload
	movl	-52(%rbp), %esi                 ## 4-byte Reload
	cmpl	$1, %r13d
	je	LBB0_10
## %bb.7:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%rbx, %r10
	xorl	%eax, %eax
	movb	-56(%rbp), %dl                  ## 1-byte Reload
	movb	%dl, %al
	movl	%r13d, %edx
	subl	%eax, %edx
	movl	%edx, -56(%rbp)                 ## 4-byte Spill
	incl	%eax
	movl	%eax, -60(%rbp)                 ## 4-byte Spill
	movslq	-100(%rbp), %rdi                ## 4-byte Folded Reload
	addq	%rbx, %r15
	leaq	(%r14,%r15,4), %rbx
	shlq	$2, %r10
	movq	-152(%rbp), %rdx                ## 8-byte Reload
	addq	%rdi, %rdx
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	leaq	(%rax,%rdx,4), %r15
	shlq	$2, %rdi
	movq	%rdi, -80(%rbp)                 ## 8-byte Spill
	.p2align	4, 0x90
LBB0_8:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	(%r12,%rcx,4), %eax
	movl	%eax, %ecx
	negl	%ecx
	leal	-1(%r13), %r12d
	cmpl	-60(%rbp), %r12d                ## 4-byte Folded Reload
	movl	$0, %r8d
	cmoval	%eax, %r8d
	cmpl	-56(%rbp), %r13d                ## 4-byte Folded Reload
	cmovgl	%eax, %r8d
	movl	$0, %eax
	cmovgl	%eax, %ecx
	movq	%rbx, %rdi
	movq	%r15, %rdx
	movq	%r10, %r14
	movq	-88(%rbp), %rax                 ## 8-byte Reload
	callq	*8(%rax)
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	movl	-48(%rbp), %r9d                 ## 4-byte Reload
	movq	%r14, %r10
	movl	-52(%rbp), %esi                 ## 4-byte Reload
	addq	%r14, %rbx
	addq	-80(%rbp), %r15                 ## 8-byte Folded Reload
	cmpl	$2, %r13d
	movl	%r12d, %r13d
	movq	-160(%rbp), %r12                ## 8-byte Reload
	jg	LBB0_8
	jmp	LBB0_10
LBB0_11:
	addq	$120, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_FIELD_UPPER_AND_LOWER,4,2      ## @FIELD_UPPER_AND_LOWER
	.comm	_FIELD_UPPER,4,2                ## @FIELD_UPPER
	.comm	_FIELD_LOWER,4,2                ## @FIELD_LOWER
	.comm	_TINTERLACE_FLAG_VLPF,4,2       ## @TINTERLACE_FLAG_VLPF
	.comm	_TINTERLACE_FLAG_CVLPF,4,2      ## @TINTERLACE_FLAG_CVLPF
	.no_dead_strip	_copy_picture_field
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function copy_picture_field
_copy_picture_field:                    ; @copy_picture_field
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #192
	.cfi_def_cfa_offset 192
	stp	x28, x27, [sp, #96]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #112]            ; 16-byte Folded Spill
	stp	x24, x23, [sp, #128]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #144]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #160]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #176]            ; 16-byte Folded Spill
	add	x29, sp, #176
	.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
	stp	w6, w7, [sp, #76]               ; 8-byte Folded Spill
	mov	x28, x4
	stp	x2, x3, [sp, #48]               ; 16-byte Folded Spill
	str	x1, [sp, #40]                   ; 8-byte Folded Spill
	mov	x21, x0
	ldr	w19, [x29, #16]
	mov	x0, x5
	bl	_av_pix_fmt_desc_get
Lloh0:
	adrp	x8, _FIELD_UPPER_AND_LOWER@GOTPAGE
Lloh1:
	ldr	x8, [x8, _FIELD_UPPER_AND_LOWER@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, w19
	mov	w8, #1
	cinc	w8, w8, ne
	stp	w8, w19, [sp, #32]              ; 8-byte Folded Spill
	str	x0, [sp, #64]                   ; 8-byte Folded Spill
	ldr	w8, [x0, #8]
	cmp	w8, #1
	b.lt	LBB0_11
; %bb.1:
	mov	x26, #0
	ldr	w8, [x29, #28]
	str	w8, [sp, #72]                   ; 4-byte Folded Spill
	ldr	w8, [x29, #24]
	str	w8, [sp, #28]                   ; 4-byte Folded Spill
	ldr	w8, [x29, #20]
	ldr	x9, [sp, #64]                   ; 8-byte Folded Reload
	ldp	w10, w9, [x9]
	stp	w9, w10, [sp, #4]               ; 8-byte Folded Spill
	cmp	w8, #0
	cset	w8, ne
	str	w8, [sp, #24]                   ; 4-byte Folded Spill
	mov	w8, #1
	cinc	w8, w8, ne
	sxtw	x8, w8
	str	x8, [sp, #16]                   ; 8-byte Folded Spill
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	cmp	w8, #8
	cset	w8, gt
	lsl	w4, w14, w8
                                        ; kill: def $w1 killed $w1 killed $x1
                                        ; kill: def $w3 killed $w3 killed $x3
	mov	x5, x20
	bl	_av_image_copy_plane
	mov	x11, x21
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x26, x26, #1
	ldr	x8, [sp, #64]                   ; 8-byte Folded Reload
	ldrsw	x8, [x8, #8]
	cmp	x26, x8
	mov	x21, x11
	b.ge	LBB0_11
LBB0_4:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_10 Depth 2
	sub	w8, w26, #1
	ldp	w14, w24, [sp, #76]             ; 8-byte Folded Reload
	cmp	w8, #1
	b.hi	LBB0_6
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w0, [sp, #80]                   ; 4-byte Folded Reload
	ldr	w1, [sp, #4]                    ; 4-byte Folded Reload
	bl	_AV_CEIL_RSHIFT
	mov	x24, x0
	ldr	w0, [sp, #76]                   ; 4-byte Folded Reload
	ldr	w1, [sp, #8]                    ; 4-byte Folded Reload
	bl	_AV_CEIL_RSHIFT
	mov	x14, x0
LBB0_6:                                 ;   in Loop: Header=BB0_4 Depth=1
	lsl	x8, x26, #3
	ldr	x9, [sp, #40]                   ; 8-byte Folded Reload
	ldr	x22, [x9, x8]
	ldr	x9, [sp, #56]                   ; 8-byte Folded Reload
	ldr	x25, [x9, x8]
	lsl	x8, x26, #2
	ldr	w4, [x28, x8]
	ldp	w13, w12, [sp, #32]             ; 8-byte Folded Reload
	mul	w3, w4, w13
	ldr	x9, [sp, #48]                   ; 8-byte Folded Reload
	ldrsw	x9, [x9, x8]
	ldr	x10, [x21]
	ldr	x10, [x10]
	ldr	w8, [x10, x8]
	ldr	x10, [sp, #16]                  ; 8-byte Folded Reload
	mul	x1, x9, x10
Lloh3:
	adrp	x10, _FIELD_UPPER@GOTPAGE
Lloh4:
	ldr	x10, [x10, _FIELD_UPPER@GOTPAGEOFF]
Lloh5:
	ldr	w10, [x10]
	cmp	w10, w12
	cinc	w10, w24, eq
Lloh6:
	adrp	x11, _FIELD_LOWER@GOTPAGE
Lloh7:
	ldr	x11, [x11, _FIELD_LOWER@GOTPAGEOFF]
Lloh8:
	ldr	w11, [x11]
	sdiv	w20, w10, w13
	cmp	w11, w12
	csel	w19, w4, wzr, eq
	add	x2, x25, w19, sxtw #2
	ldr	w10, [sp, #28]                  ; 4-byte Folded Reload
	cmp	w11, w10
	cset	w10, eq
	ldr	w11, [sp, #24]                  ; 4-byte Folded Reload
	tst	w11, w10
	csel	x23, x9, xzr, ne
	add	x0, x22, x23, lsl #2
Lloh9:
	adrp	x9, _TINTERLACE_FLAG_VLPF@GOTPAGE
Lloh10:
	ldr	x9, [x9, _TINTERLACE_FLAG_VLPF@GOTPAGEOFF]
Lloh11:
	ldr	w10, [x9]
Lloh12:
	adrp	x9, _TINTERLACE_FLAG_CVLPF@GOTPAGE
Lloh13:
	ldr	x9, [x9, _TINTERLACE_FLAG_CVLPF@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	orr	w10, w9, w10
	ldr	w11, [sp, #72]                  ; 4-byte Folded Reload
	tst	w10, w11
	b.eq	LBB0_2
; %bb.7:                                ;   in Loop: Header=BB0_4 Depth=1
	cmp	w20, #1
	mov	x11, x21
	b.lt	LBB0_3
; %bb.8:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	w10, #-1
	lsl	w8, w10, w8
	mvn	w5, w8
	ldr	w8, [sp, #72]                   ; 4-byte Folded Reload
	tst	w9, w8
	cset	w8, ne
	str	w8, [sp, #12]                   ; 4-byte Folded Spill
	mov	w8, #1
	cinc	w8, w8, ne
	str	w8, [sp, #84]                   ; 4-byte Folded Spill
	ldr	x8, [x11, #8]
	stur	w14, [x29, #-84]                ; 4-byte Folded Spill
	mov	x21, x1
	mov	w1, w14
	mov	x24, x3
	mov	w3, #0
	str	w5, [sp, #88]                   ; 4-byte Folded Spill
	mov	x27, x11
	blr	x8
	mov	x11, x27
	cmp	w20, #1
	b.eq	LBB0_3
; %bb.9:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x9, x24
	sxtw	x8, w19
	ldr	w10, [sp, #12]                  ; 4-byte Folded Reload
	sub	w19, w20, w10
	sxtw	x9, w24
	add	x10, x23, x21
	add	x22, x22, x10, lsl #2
	lsl	x21, x21, #2
	add	x8, x8, x9
	mov	x10, x25
	lsl	x25, x9, #2
	add	x23, x10, x8, lsl #2
LBB0_10:                                ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	w8, [x28, x26, lsl #2]
	mov	x24, x26
	mov	x26, x28
	sub	w28, w20, #1
	ldp	w9, w5, [sp, #84]               ; 8-byte Folded Reload
	cmp	w28, w9
	ccmp	w20, w19, #0, ls
	csel	w4, w8, wzr, gt
	cmp	w20, w19
	csneg	w3, wzr, w8, gt
	ldr	x8, [x11, #8]
	mov	x0, x22
	ldur	w1, [x29, #-84]                 ; 4-byte Folded Reload
	mov	x2, x23
	blr	x8
	mov	x11, x27
	add	x22, x22, x21
	add	x23, x23, x25
	cmp	w20, #2
	mov	x20, x28
	mov	x28, x26
	mov	x26, x24
	b.gt	LBB0_10
	b	LBB0_3
LBB0_11:
	ldp	x29, x30, [sp, #176]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #160]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #144]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #128]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #112]            ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #96]             ; 16-byte Folded Reload
	add	sp, sp, #192
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_FIELD_UPPER_AND_LOWER,4,2      ; @FIELD_UPPER_AND_LOWER
	.comm	_FIELD_UPPER,4,2                ; @FIELD_UPPER
	.comm	_FIELD_LOWER,4,2                ; @FIELD_LOWER
	.comm	_TINTERLACE_FLAG_VLPF,4,2       ; @TINTERLACE_FLAG_VLPF
	.comm	_TINTERLACE_FLAG_CVLPF,4,2      ; @TINTERLACE_FLAG_CVLPF
	.no_dead_strip	_copy_picture_field
.subsections_via_symbols
