	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mpeg_field_start
_mpeg_field_start:                      ## @mpeg_field_start
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r14d
	movq	%rsi, %r15
	movq	%rdi, %r13
	movq	40(%rdi), %r12
	movq	_AV_CODEC_FLAG2_CHUNKS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r12)
	jne	LBB0_2
## %bb.1:
	movq	8(%r13), %rax
	imulq	(%r13), %rax
	movabsq	$3074457345618258603, %rcx      ## imm = 0x2AAAAAAAAAAAAAAB
	imulq	%rcx
	movq	%rdx, %rax
	shrq	$63, %rax
	sarq	$3, %rdx
	addq	%rax, %rdx
	movslq	%r14d, %rax
	cmpq	%rax, %rdx
	jg	LBB0_34
LBB0_2:
	cmpq	$0, 80(%r13)
	jne	LBB0_4
## %bb.3:
	movq	16(%r13), %rax
	movq	_PICT_FRAME@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_9
LBB0_4:
	movq	%r13, %rdi
	movq	%r12, %rsi
	callq	_ff_mpv_frame_start
	testl	%eax, %eax
	js	LBB0_8
## %bb.5:
	movq	%r13, %rdi
	callq	_ff_mpeg_er_frame_start
	movq	24(%r13), %rax
	movq	(%rax), %rdi
	movl	$0, (%rdi)
	cmpq	$0, 72(%r13)
	je	LBB0_18
## %bb.6:
	cmpq	$0, 64(%r13)
	je	LBB0_16
## %bb.7:
	xorl	%eax, %eax
	cmpq	$0, 56(%r13)
	setne	%al
	addl	%eax, %eax
	addl	$2, %eax
	jmp	LBB0_17
LBB0_9:
	movq	24(%r13), %rcx
	testq	%rcx, %rcx
	je	LBB0_33
## %bb.10:
	movq	16(%r12), %rdx
	testq	%rdx, %rdx
	je	LBB0_14
## %bb.11:
	movq	_SLICE_FLAG_ALLOW_FIELD@GOTPCREL(%rip), %rsi
	movl	(%rsi), %esi
	testl	%esi, 8(%r12)
	je	LBB0_14
## %bb.12:
	movq	%r12, %rdi
	callq	*(%rdx)
	testl	%eax, %eax
	js	LBB0_41
## %bb.13:
	movq	16(%r13), %rax
	movq	24(%r13), %rcx
LBB0_14:
	movq	(%rcx), %rsi
	movq	16(%rsi), %rdx
	movq	32(%r13), %rcx
	movq	(%rcx), %rcx
	movq	_PICT_BOTTOM_FIELD@GOTPCREL(%rip), %rbx
	movl	(%rdx), %edi
	cmpq	(%rbx), %rax
	movl	%edi, (%rcx)
	jne	LBB0_35
## %bb.15:
	movq	8(%rsi), %rax
	addl	(%rax), %edi
	movl	%edi, (%rcx)
	movl	4(%rdx), %eax
	movq	8(%rsi), %rdi
	addl	8(%rdi), %eax
	movl	%eax, 4(%rcx)
	movl	8(%rdx), %eax
	movq	8(%rsi), %rdi
	addl	16(%rdi), %eax
	movl	%eax, 8(%rcx)
	movl	12(%rdx), %eax
	movq	8(%rsi), %rdx
	addl	24(%rdx), %eax
	jmp	LBB0_36
LBB0_16:
	movl	$1, %eax
	cmpq	$0, 48(%r13)
	je	LBB0_18
LBB0_17:
	movl	%eax, (%rdi)
LBB0_18:
	movq	_AV_FRAME_DATA_PANSCAN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$4, %edx
	callq	_av_frame_new_side_data
	testq	%rax, %rax
	je	LBB0_32
## %bb.19:
	movq	(%rax), %rdi
	leaq	48(%r13), %rsi
	movl	$4, %edx
	callq	_memcpy
	cmpq	$0, 40(%r13)
	je	LBB0_23
## %bb.20:
	leaq	40(%r13), %rbx
	movq	24(%r13), %rax
	movq	(%rax), %rdi
	movq	_AV_FRAME_DATA_A53_CC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%r13), %edx
	callq	_av_frame_new_side_data
	testq	%rax, %rax
	je	LBB0_22
## %bb.21:
	movq	(%rax), %rdi
	movq	40(%r13), %rsi
	movl	(%r13), %edx
	callq	_memcpy
LBB0_22:
	movq	%rbx, %rdi
	callq	_av_freep
LBB0_23:
	movq	24(%r13), %rax
	testq	%rax, %rax
	je	LBB0_26
## %bb.24:
	movq	(%rax), %rdi
	callq	_av_stereo3d_create_side_data
	testq	%rax, %rax
	je	LBB0_32
## %bb.25:
	movl	32(%r13), %ecx
	movl	%ecx, (%rax)
	movq	$0, 24(%r13)
	xorl	%eax, %eax
LBB0_26:
	cmpq	$0, 8(%r13)
	je	LBB0_29
## %bb.27:
	movq	(%rax), %rdi
	movq	_AV_FRAME_DATA_AFD@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$1, %edx
	callq	_av_frame_new_side_data
	testq	%rax, %rax
	je	LBB0_32
## %bb.28:
	movl	16(%r13), %ecx
	movq	(%rax), %rax
	movl	%ecx, (%rax)
	movq	$0, 8(%r13)
LBB0_29:
	movq	_HAVE_THREADS@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_37
## %bb.30:
	movq	_FF_THREAD_FRAME@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 4(%r12)
	je	LBB0_37
## %bb.31:
	movq	%r12, %rdi
	callq	_ff_thread_finish_setup
	jmp	LBB0_37
LBB0_32:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_AVERROR                        ## TAILCALL
LBB0_33:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	movq	%r12, %rdi
	callq	_av_log
LBB0_34:
	movq	_AVERROR_INVALIDDATA@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	jmp	LBB0_42
LBB0_35:
	movl	4(%rdx), %eax
	movl	%eax, 4(%rcx)
	movl	8(%rdx), %eax
	movl	%eax, 8(%rcx)
	movl	12(%rdx), %eax
LBB0_36:
	movl	%eax, 12(%rcx)
LBB0_37:
	movq	16(%r12), %rax
	testq	%rax, %rax
	je	LBB0_39
## %bb.38:
	movq	%r12, %rdi
	movq	%r15, %rsi
	movl	%r14d, %edx
	callq	*8(%rax)
	testl	%eax, %eax
	js	LBB0_8
LBB0_39:
	xorl	%ebx, %ebx
	jmp	LBB0_42
LBB0_8:
	movl	%eax, %ebx
LBB0_42:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_41:
	movl	%eax, %ebx
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.1(%rip), %rdx
	movq	%r12, %rdi
	callq	_av_log
	jmp	LBB0_42
	.cfi_endproc
                                        ## -- End function
	.comm	_AV_CODEC_FLAG2_CHUNKS,4,2      ## @AV_CODEC_FLAG2_CHUNKS
	.comm	_AVERROR_INVALIDDATA,4,2        ## @AVERROR_INVALIDDATA
	.comm	_PICT_FRAME,8,3                 ## @PICT_FRAME
	.comm	_AV_FRAME_DATA_PANSCAN,4,2      ## @AV_FRAME_DATA_PANSCAN
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_AV_FRAME_DATA_A53_CC,4,2       ## @AV_FRAME_DATA_A53_CC
	.comm	_AV_FRAME_DATA_AFD,4,2          ## @AV_FRAME_DATA_AFD
	.comm	_HAVE_THREADS,8,3               ## @HAVE_THREADS
	.comm	_FF_THREAD_FRAME,4,2            ## @FF_THREAD_FRAME
	.comm	_AV_LOG_ERROR,4,2               ## @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"first field missing\n"

	.comm	_SLICE_FLAG_ALLOW_FIELD,4,2     ## @SLICE_FLAG_ALLOW_FIELD
L_.str.1:                               ## @.str.1
	.asciz	"hardware accelerator failed to decode first field\n"

	.comm	_PICT_BOTTOM_FIELD,8,3          ## @PICT_BOTTOM_FIELD
	.no_dead_strip	_mpeg_field_start
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mpeg_field_start
_mpeg_field_start:                      ; @mpeg_field_start
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x20, x2
	mov	x21, x1
	mov	x22, x0
	mov	x23, x0
	ldr	x19, [x23, #40]!
	ldr	w8, [x19]
Lloh0:
	adrp	x9, _AV_CODEC_FLAG2_CHUNKS@GOTPAGE
Lloh1:
	ldr	x9, [x9, _AV_CODEC_FLAG2_CHUNKS@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.ne	LBB0_2
; %bb.1:
	ldp	x8, x9, [x22]
	mul	x8, x9, x8
	mov	x9, #-6148914691236517206
	movk	x9, #43691
	movk	x9, #10922, lsl #48
	smulh	x8, x8, x9
	asr	x9, x8, #3
	add	x8, x9, x8, lsr #63
	cmp	x8, w20, sxtw
	b.gt	LBB0_35
LBB0_2:
	ldr	x8, [x22, #80]
	cbnz	x8, LBB0_4
; %bb.3:
	ldr	x8, [x22, #16]
Lloh3:
	adrp	x9, _PICT_FRAME@GOTPAGE
Lloh4:
	ldr	x9, [x9, _PICT_FRAME@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_8
LBB0_4:
	mov	x0, x22
	mov	x1, x19
	bl	_ff_mpv_frame_start
	tbnz	w0, #31, LBB0_40
; %bb.5:
	mov	x0, x22
	bl	_ff_mpeg_er_frame_start
	ldr	x8, [x22, #24]
	ldr	x0, [x8]
	str	wzr, [x0]
	ldr	x8, [x22, #72]
	cbz	x8, LBB0_18
; %bb.6:
	ldr	x8, [x22, #64]
	cbz	x8, LBB0_15
; %bb.7:
	ldr	x8, [x22, #56]
	cmp	x8, #0
	mov	w8, #4
	mov	w9, #2
	csel	w8, w9, w8, eq
	b	LBB0_17
LBB0_8:
	ldr	x9, [x22, #24]
	cbz	x9, LBB0_34
; %bb.9:
	ldr	x10, [x19, #16]
	cbz	x10, LBB0_13
; %bb.10:
	ldr	w11, [x19, #8]
Lloh6:
	adrp	x12, _SLICE_FLAG_ALLOW_FIELD@GOTPAGE
Lloh7:
	ldr	x12, [x12, _SLICE_FLAG_ALLOW_FIELD@GOTPAGEOFF]
Lloh8:
	ldr	w12, [x12]
	tst	w12, w11
	b.eq	LBB0_13
; %bb.11:
	ldr	x8, [x10]
	mov	x0, x19
	blr	x8
	tbnz	w0, #31, LBB0_42
; %bb.12:
	ldp	x8, x9, [x22, #16]
LBB0_13:
	ldr	x11, [x9]
	ldr	x10, [x11, #16]
	ldr	x9, [x22, #32]
	ldr	x9, [x9]
Lloh9:
	adrp	x12, _PICT_BOTTOM_FIELD@GOTPAGE
Lloh10:
	ldr	x12, [x12, _PICT_BOTTOM_FIELD@GOTPAGEOFF]
Lloh11:
	ldr	x13, [x12]
	ldr	w12, [x10]
	str	w12, [x9]
	cmp	x8, x13
	b.ne	LBB0_36
; %bb.14:
	ldr	x8, [x11, #8]
	ldr	w11, [x8]
	add	w11, w12, w11
	str	w11, [x9]
	ldr	w11, [x10, #4]
	ldr	w12, [x8, #8]
	add	w11, w11, w12
	str	w11, [x9, #4]
	ldr	w11, [x10, #8]
	ldr	w12, [x8, #16]
	add	w11, w11, w12
	str	w11, [x9, #8]
	ldr	w10, [x10, #12]
	ldr	w8, [x8, #24]
	add	w8, w10, w8
	b	LBB0_37
LBB0_15:
	ldr	x8, [x22, #48]
	cbz	x8, LBB0_18
; %bb.16:
	mov	w8, #1
LBB0_17:
	str	w8, [x0]
LBB0_18:
Lloh12:
	adrp	x8, _AV_FRAME_DATA_PANSCAN@GOTPAGE
Lloh13:
	ldr	x8, [x8, _AV_FRAME_DATA_PANSCAN@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	mov	w2, #4
	bl	_av_frame_new_side_data
	cbz	x0, LBB0_33
; %bb.19:
	ldr	x0, [x0]
	add	x1, x22, #48
	mov	w2, #4
	bl	_memcpy
	ldr	x8, [x22, #40]
	cbz	x8, LBB0_23
; %bb.20:
	ldr	x8, [x22, #24]
	ldr	x0, [x8]
Lloh15:
	adrp	x8, _AV_FRAME_DATA_A53_CC@GOTPAGE
Lloh16:
	ldr	x8, [x8, _AV_FRAME_DATA_A53_CC@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
	ldr	w2, [x22]
	bl	_av_frame_new_side_data
	cbz	x0, LBB0_22
; %bb.21:
	ldr	x0, [x0]
	ldr	x1, [x22, #40]
	ldr	w2, [x22]
	bl	_memcpy
LBB0_22:
	mov	x0, x23
	bl	_av_freep
LBB0_23:
	ldr	x8, [x22, #24]
	cbz	x8, LBB0_26
; %bb.24:
	ldr	x0, [x8]
	bl	_av_stereo3d_create_side_data
	cbz	x0, LBB0_33
; %bb.25:
	mov	x8, #0
	ldr	w9, [x22, #32]
	str	w9, [x0]
	str	xzr, [x22, #24]
LBB0_26:
	ldr	x9, [x22, #8]
	cbz	x9, LBB0_29
; %bb.27:
	ldr	x0, [x8]
Lloh18:
	adrp	x8, _AV_FRAME_DATA_AFD@GOTPAGE
Lloh19:
	ldr	x8, [x8, _AV_FRAME_DATA_AFD@GOTPAGEOFF]
Lloh20:
	ldr	w1, [x8]
	mov	w2, #1
	bl	_av_frame_new_side_data
	cbz	x0, LBB0_33
; %bb.28:
	ldr	w8, [x22, #16]
	ldr	x9, [x0]
	str	w8, [x9]
	str	xzr, [x22, #8]
LBB0_29:
Lloh21:
	adrp	x8, _HAVE_THREADS@GOTPAGE
Lloh22:
	ldr	x8, [x8, _HAVE_THREADS@GOTPAGEOFF]
Lloh23:
	ldr	x8, [x8]
	cbz	x8, LBB0_32
; %bb.30:
	ldr	w8, [x19, #4]
Lloh24:
	adrp	x9, _FF_THREAD_FRAME@GOTPAGE
Lloh25:
	ldr	x9, [x9, _FF_THREAD_FRAME@GOTPAGEOFF]
Lloh26:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_32
; %bb.31:
	mov	x0, x19
	bl	_ff_thread_finish_setup
LBB0_32:
	ldr	x8, [x19, #16]
	cbnz	x8, LBB0_38
	b	LBB0_39
LBB0_33:
Lloh27:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh28:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh29:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_AVERROR
LBB0_34:
Lloh30:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh31:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh32:
	ldr	w1, [x8]
Lloh33:
	adrp	x2, l_.str@PAGE
Lloh34:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x19
	bl	_av_log
LBB0_35:
Lloh35:
	adrp	x8, _AVERROR_INVALIDDATA@GOTPAGE
Lloh36:
	ldr	x8, [x8, _AVERROR_INVALIDDATA@GOTPAGEOFF]
Lloh37:
	ldr	w24, [x8]
	b	LBB0_41
LBB0_36:
	ldr	w8, [x10, #4]
	str	w8, [x9, #4]
	ldr	w8, [x10, #8]
	str	w8, [x9, #8]
	ldr	w8, [x10, #12]
LBB0_37:
	str	w8, [x9, #12]
	ldr	x8, [x19, #16]
	cbz	x8, LBB0_39
LBB0_38:
	ldr	x8, [x8, #8]
	mov	x0, x19
	mov	x1, x21
	mov	x2, x20
	blr	x8
	tbnz	w0, #31, LBB0_40
LBB0_39:
	mov	w24, #0
	b	LBB0_41
LBB0_40:
	mov	x24, x0
LBB0_41:
	mov	x0, x24
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_42:
	mov	x24, x0
Lloh38:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh39:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh40:
	ldr	w1, [x8]
Lloh41:
	adrp	x2, l_.str.1@PAGE
Lloh42:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_av_log
	b	LBB0_41
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpAdd	Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpAdd	Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.cfi_endproc
                                        ; -- End function
	.comm	_AV_CODEC_FLAG2_CHUNKS,4,2      ; @AV_CODEC_FLAG2_CHUNKS
	.comm	_AVERROR_INVALIDDATA,4,2        ; @AVERROR_INVALIDDATA
	.comm	_PICT_FRAME,8,3                 ; @PICT_FRAME
	.comm	_AV_FRAME_DATA_PANSCAN,4,2      ; @AV_FRAME_DATA_PANSCAN
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_AV_FRAME_DATA_A53_CC,4,2       ; @AV_FRAME_DATA_A53_CC
	.comm	_AV_FRAME_DATA_AFD,4,2          ; @AV_FRAME_DATA_AFD
	.comm	_HAVE_THREADS,8,3               ; @HAVE_THREADS
	.comm	_FF_THREAD_FRAME,4,2            ; @FF_THREAD_FRAME
	.comm	_AV_LOG_ERROR,4,2               ; @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"first field missing\n"

	.comm	_SLICE_FLAG_ALLOW_FIELD,4,2     ; @SLICE_FLAG_ALLOW_FIELD
l_.str.1:                               ; @.str.1
	.asciz	"hardware accelerator failed to decode first field\n"

	.comm	_PICT_BOTTOM_FIELD,8,3          ; @PICT_BOTTOM_FIELD
	.no_dead_strip	_mpeg_field_start
.subsections_via_symbols
