	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function frame_start
_frame_start:                           ## @frame_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movq	(%rdi), %rax
	movq	_AV_PICTURE_TYPE_B@GOTPCREL(%rip), %r12
	cmpq	(%r12), %rax
	je	LBB0_5
## %bb.1:
	movq	136(%r15), %rsi
	testq	%rsi, %rsi
	je	LBB0_5
## %bb.2:
	cmpq	120(%r15), %rsi
	je	LBB0_5
## %bb.3:
	movq	(%rsi), %rcx
	movq	32(%rcx), %rcx
	cmpq	$0, (%rcx)
	je	LBB0_5
## %bb.4:
	movl	128(%r15), %edi
	callq	_ff_mpeg_unref_picture
	movq	(%r15), %rax
LBB0_5:
	movq	144(%r15), %rcx
	movq	(%rcx), %rcx
	movq	%rax, (%rcx)
	movq	_AV_PICTURE_TYPE_I@GOTPCREL(%rip), %rdx
	xorl	%esi, %esi
	cmpq	(%rdx), %rax
	sete	%sil
	movl	%esi, 8(%rcx)
	movl	128(%r15), %edi
	leaq	112(%r15), %rbx
	movq	%rbx, %rsi
	callq	_ff_mpeg_unref_picture
	movl	128(%r15), %edi
	movq	144(%r15), %rdx
	movq	%rbx, %rsi
	callq	_ff_mpeg_ref_picture
	testl	%eax, %eax
	js	LBB0_38
## %bb.6:
	movq	(%r15), %rax
	cmpq	(%r12), %rax
	jne	LBB0_9
## %bb.7:
	movq	136(%r15), %rax
	testq	%rax, %rax
	jne	LBB0_11
	jmp	LBB0_15
LBB0_9:
	movq	120(%r15), %rax
	movq	%rax, 136(%r15)
	cmpl	$0, 152(%r15)
	je	LBB0_14
## %bb.10:
	testq	%rax, %rax
	je	LBB0_15
LBB0_11:
	movl	128(%r15), %edi
	leaq	104(%r15), %r14
	movq	%r14, %rsi
	callq	_ff_mpeg_unref_picture
	movq	136(%r15), %rdx
	movq	(%rdx), %rax
	movq	32(%rax), %rax
	cmpq	$0, (%rax)
	je	LBB0_15
## %bb.12:
	movl	128(%r15), %edi
	movq	%r14, %rsi
	callq	_ff_mpeg_ref_picture
	testl	%eax, %eax
	jns	LBB0_15
	jmp	LBB0_38
LBB0_14:
	movq	144(%r15), %rcx
	movq	%rcx, 120(%r15)
	testq	%rax, %rax
	jne	LBB0_11
LBB0_15:
	cmpq	$0, 120(%r15)
	je	LBB0_18
## %bb.16:
	movl	128(%r15), %edi
	leaq	96(%r15), %r14
	movq	%r14, %rsi
	callq	_ff_mpeg_unref_picture
	movq	120(%r15), %rdx
	movq	(%rdx), %rax
	movq	32(%rax), %rax
	cmpq	$0, (%rax)
	je	LBB0_18
## %bb.17:
	movl	128(%r15), %edi
	movq	%r14, %rsi
	callq	_ff_mpeg_ref_picture
	testl	%eax, %eax
	js	LBB0_38
LBB0_18:
	movq	8(%r15), %rax
	movq	_PICT_FRAME@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_27
## %bb.19:
	movq	_PICT_BOTTOM_FIELD@GOTPCREL(%rip), %rcx
	movq	(%rcx), %r9
	movq	112(%r15), %r8
	movq	24(%r8), %rcx
	movq	96(%r15), %rdx
	movq	104(%r15), %rsi
	movq	24(%rsi), %rsi
	movq	24(%rdx), %rdi
	movl	(%rcx), %edx
	cmpq	%r9, %rax
	jne	LBB0_21
## %bb.20:
	movq	16(%r8), %rbx
	addl	%edx, (%rbx)
	shll	(%rcx)
	shll	(%rsi)
	shll	(%rdi)
	movl	4(%rcx), %edx
	movq	16(%r8), %rbx
	addl	%edx, 4(%rbx)
	jmp	LBB0_22
LBB0_38:
	movl	%eax, %r14d
	jmp	LBB0_39
LBB0_21:
	addl	%edx, %edx
	movl	%edx, (%rcx)
	shll	(%rsi)
	shll	(%rdi)
LBB0_22:
	shll	4(%rcx)
	shll	4(%rsi)
	shll	4(%rdi)
	cmpq	%r9, %rax
	jne	LBB0_24
## %bb.23:
	movl	8(%rcx), %edx
	movq	16(%r8), %rbx
	addl	%edx, 8(%rbx)
LBB0_24:
	shll	8(%rcx)
	shll	8(%rsi)
	shll	8(%rdi)
	cmpq	%r9, %rax
	jne	LBB0_26
## %bb.25:
	movl	12(%rcx), %eax
	movq	16(%r8), %rdx
	addl	%eax, 12(%rdx)
LBB0_26:
	shll	12(%rcx)
	shll	12(%rsi)
	shll	12(%rdi)
LBB0_27:
	cmpq	$0, 88(%r15)
	jne	LBB0_29
## %bb.28:
	movq	16(%r15), %rax
	movq	_AV_CODEC_ID_MPEG2VIDEO@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_35
LBB0_29:
	movl	84(%r15), %eax
	movl	%eax, 68(%r15)
	leaq	80(%r15), %rax
LBB0_30:
	movl	(%rax), %eax
	movl	%eax, 60(%r15)
	cmpq	$0, 48(%r15)
	je	LBB0_34
## %bb.31:
	xorl	%r14d, %r14d
	cmpq	$0, 40(%r15)
	movl	$0, %edi
	je	LBB0_33
## %bb.32:
	xorl	%edi, %edi
	cmpq	$0, 32(%r15)
	setne	%dil
LBB0_33:
	callq	_av_assert2
	movq	%r15, %rdi
	callq	_update_noise_reduction
	jmp	LBB0_39
LBB0_34:
	xorl	%r14d, %r14d
LBB0_39:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_35:
	movq	24(%r15), %rax
	movq	_FMT_H263@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_40
## %bb.36:
	movq	_FMT_H261@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_40
## %bb.37:
	movl	64(%r15), %eax
	movl	%eax, 68(%r15)
	leaq	56(%r15), %rax
	jmp	LBB0_30
LBB0_40:
	movl	76(%r15), %eax
	movl	%eax, 68(%r15)
	leaq	72(%r15), %rax
	jmp	LBB0_30
	.cfi_endproc
                                        ## -- End function
	.comm	_AV_PICTURE_TYPE_B,8,3          ## @AV_PICTURE_TYPE_B
	.comm	_AV_PICTURE_TYPE_I,8,3          ## @AV_PICTURE_TYPE_I
	.comm	_PICT_FRAME,8,3                 ## @PICT_FRAME
	.comm	_PICT_BOTTOM_FIELD,8,3          ## @PICT_BOTTOM_FIELD
	.comm	_AV_CODEC_ID_MPEG2VIDEO,8,3     ## @AV_CODEC_ID_MPEG2VIDEO
	.comm	_FMT_H263,8,3                   ## @FMT_H263
	.comm	_FMT_H261,8,3                   ## @FMT_H261
	.no_dead_strip	_frame_start
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function frame_start
_frame_start:                           ; @frame_start
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x0
	ldr	x8, [x0]
Lloh0:
	adrp	x21, _AV_PICTURE_TYPE_B@GOTPAGE
Lloh1:
	ldr	x21, [x21, _AV_PICTURE_TYPE_B@GOTPAGEOFF]
	ldr	x9, [x21]
	cmp	x8, x9
	b.eq	LBB0_5
; %bb.1:
	ldr	x1, [x19, #136]
	cbz	x1, LBB0_5
; %bb.2:
	ldr	x9, [x19, #120]
	cmp	x1, x9
	b.eq	LBB0_5
; %bb.3:
	ldr	x9, [x1]
	ldr	x9, [x9, #32]
	ldr	x9, [x9]
	cbz	x9, LBB0_5
; %bb.4:
	ldr	w0, [x19, #128]
	bl	_ff_mpeg_unref_picture
	ldr	x8, [x19]
LBB0_5:
	ldr	x9, [x19, #144]
	ldr	x9, [x9]
	str	x8, [x9]
Lloh2:
	adrp	x10, _AV_PICTURE_TYPE_I@GOTPAGE
Lloh3:
	ldr	x10, [x10, _AV_PICTURE_TYPE_I@GOTPAGEOFF]
Lloh4:
	ldr	x10, [x10]
	cmp	x8, x10
	cset	w8, eq
	str	w8, [x9, #8]
	ldr	w0, [x19, #128]
	add	x20, x19, #112
	mov	x1, x20
	bl	_ff_mpeg_unref_picture
	ldr	w0, [x19, #128]
	ldr	x2, [x19, #144]
	mov	x1, x20
	bl	_ff_mpeg_ref_picture
	tbnz	w0, #31, LBB0_34
; %bb.6:
	ldr	x8, [x19]
	ldr	x9, [x21]
	cmp	x8, x9
	b.ne	LBB0_8
; %bb.7:
	ldr	x8, [x19, #136]
	cbnz	x8, LBB0_10
	b	LBB0_13
LBB0_8:
	ldr	x8, [x19, #120]
	str	x8, [x19, #136]
	ldr	w9, [x19, #152]
	cbz	w9, LBB0_12
; %bb.9:
	cbz	x8, LBB0_13
LBB0_10:
	ldr	w0, [x19, #128]
	add	x20, x19, #104
	mov	x1, x20
	bl	_ff_mpeg_unref_picture
	ldr	x2, [x19, #136]
	ldr	x8, [x2]
	ldr	x8, [x8, #32]
	ldr	x8, [x8]
	cbz	x8, LBB0_13
; %bb.11:
	ldr	w0, [x19, #128]
	mov	x1, x20
	bl	_ff_mpeg_ref_picture
	tbz	w0, #31, LBB0_13
	b	LBB0_34
LBB0_12:
	ldr	x9, [x19, #144]
	str	x9, [x19, #120]
	cbnz	x8, LBB0_10
LBB0_13:
	ldr	x8, [x19, #120]
	cbz	x8, LBB0_16
; %bb.14:
	ldr	w0, [x19, #128]
	add	x20, x19, #96
	mov	x1, x20
	bl	_ff_mpeg_unref_picture
	ldr	x2, [x19, #120]
	ldr	x8, [x2]
	ldr	x8, [x8, #32]
	ldr	x8, [x8]
	cbz	x8, LBB0_16
; %bb.15:
	ldr	w0, [x19, #128]
	mov	x1, x20
	bl	_ff_mpeg_ref_picture
	tbnz	w0, #31, LBB0_34
LBB0_16:
	ldr	x10, [x19, #8]
Lloh5:
	adrp	x8, _PICT_FRAME@GOTPAGE
Lloh6:
	ldr	x8, [x8, _PICT_FRAME@GOTPAGEOFF]
Lloh7:
	ldr	x8, [x8]
	cmp	x10, x8
	b.eq	LBB0_25
; %bb.17:
Lloh8:
	adrp	x8, _PICT_BOTTOM_FIELD@GOTPAGE
Lloh9:
	ldr	x8, [x8, _PICT_BOTTOM_FIELD@GOTPAGEOFF]
Lloh10:
	ldr	x13, [x8]
	ldp	x9, x12, [x19, #104]
	ldr	x8, [x12, #24]
	ldr	x14, [x19, #96]
	ldr	x11, [x9, #24]
	ldr	x9, [x14, #24]
	ldr	w14, [x8]
	cmp	x10, x13
	b.ne	LBB0_19
; %bb.18:
	ldr	x15, [x12, #16]
	ldr	w16, [x15]
	add	w14, w16, w14
	str	w14, [x15]
	ldr	w14, [x8]
	lsl	w14, w14, #1
	str	w14, [x8]
	ldr	w14, [x11]
	lsl	w14, w14, #1
	str	w14, [x11]
	ldr	w14, [x9]
	lsl	w14, w14, #1
	str	w14, [x9]
	ldr	w14, [x8, #4]
	ldr	w16, [x15, #4]
	add	w14, w16, w14
	str	w14, [x15, #4]
	b	LBB0_20
LBB0_19:
	lsl	w14, w14, #1
	str	w14, [x8]
	ldr	w14, [x11]
	lsl	w14, w14, #1
	str	w14, [x11]
	ldr	w14, [x9]
	lsl	w14, w14, #1
	str	w14, [x9]
LBB0_20:
	ldr	w14, [x8, #4]
	lsl	w14, w14, #1
	str	w14, [x8, #4]
	ldr	w14, [x11, #4]
	lsl	w14, w14, #1
	str	w14, [x11, #4]
	ldr	w14, [x9, #4]
	lsl	w14, w14, #1
	str	w14, [x9, #4]
	cmp	x10, x13
	b.ne	LBB0_22
; %bb.21:
	ldr	w14, [x8, #8]
	ldr	x15, [x12, #16]
	ldr	w16, [x15, #8]
	add	w14, w16, w14
	str	w14, [x15, #8]
LBB0_22:
	ldr	w14, [x8, #8]
	lsl	w14, w14, #1
	str	w14, [x8, #8]
	ldr	w14, [x11, #8]
	lsl	w14, w14, #1
	str	w14, [x11, #8]
	ldr	w14, [x9, #8]
	lsl	w14, w14, #1
	str	w14, [x9, #8]
	cmp	x10, x13
	b.ne	LBB0_24
; %bb.23:
	ldr	w10, [x8, #12]
	ldr	x12, [x12, #16]
	ldr	w13, [x12, #12]
	add	w10, w13, w10
	str	w10, [x12, #12]
LBB0_24:
	ldr	w10, [x8, #12]
	lsl	w10, w10, #1
	str	w10, [x8, #12]
	ldr	w8, [x11, #12]
	lsl	w8, w8, #1
	str	w8, [x11, #12]
	ldr	w8, [x9, #12]
	lsl	w8, w8, #1
	str	w8, [x9, #12]
LBB0_25:
	ldr	x8, [x19, #88]
	cbnz	x8, LBB0_27
; %bb.26:
	ldr	x8, [x19, #16]
Lloh11:
	adrp	x9, _AV_CODEC_ID_MPEG2VIDEO@GOTPAGE
Lloh12:
	ldr	x9, [x9, _AV_CODEC_ID_MPEG2VIDEO@GOTPAGEOFF]
Lloh13:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_35
LBB0_27:
	ldr	w8, [x19, #84]
	str	w8, [x19, #68]
	add	x8, x19, #80
LBB0_28:
	ldr	w8, [x8]
	str	w8, [x19, #60]
	ldr	x8, [x19, #48]
	cbz	x8, LBB0_33
; %bb.29:
	ldr	x8, [x19, #40]
	cbz	x8, LBB0_31
; %bb.30:
	ldr	x8, [x19, #32]
	cmp	x8, #0
	cset	w0, ne
	b	LBB0_32
LBB0_31:
	mov	w0, #0
LBB0_32:
	bl	_av_assert2
	mov	x0, x19
	bl	_update_noise_reduction
LBB0_33:
	mov	w0, #0
LBB0_34:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_35:
	ldr	x8, [x19, #24]
Lloh14:
	adrp	x9, _FMT_H263@GOTPAGE
Lloh15:
	ldr	x9, [x9, _FMT_H263@GOTPAGEOFF]
Lloh16:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_38
; %bb.36:
Lloh17:
	adrp	x9, _FMT_H261@GOTPAGE
Lloh18:
	ldr	x9, [x9, _FMT_H261@GOTPAGEOFF]
Lloh19:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_38
; %bb.37:
	ldr	w8, [x19, #64]
	str	w8, [x19, #68]
	add	x8, x19, #56
	b	LBB0_28
LBB0_38:
	ldr	w8, [x19, #76]
	str	w8, [x19, #68]
	add	x8, x19, #72
	b	LBB0_28
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_AV_PICTURE_TYPE_B,8,3          ; @AV_PICTURE_TYPE_B
	.comm	_AV_PICTURE_TYPE_I,8,3          ; @AV_PICTURE_TYPE_I
	.comm	_PICT_FRAME,8,3                 ; @PICT_FRAME
	.comm	_PICT_BOTTOM_FIELD,8,3          ; @PICT_BOTTOM_FIELD
	.comm	_AV_CODEC_ID_MPEG2VIDEO,8,3     ; @AV_CODEC_ID_MPEG2VIDEO
	.comm	_FMT_H263,8,3                   ; @FMT_H263
	.comm	_FMT_H261,8,3                   ; @FMT_H261
	.no_dead_strip	_frame_start
.subsections_via_symbols
