	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ff_mpeg1_find_frame_end        ## -- Begin function ff_mpeg1_find_frame_end
	.p2align	4, 0x90
_ff_mpeg1_find_frame_end:               ## @ff_mpeg1_find_frame_end
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	(%rdi), %eax
	movl	%eax, -44(%rbp)
	testl	%edx, %edx
	je	LBB0_1
## %bb.2:
	movq	%rdi, %r13
	jle	LBB0_37
## %bb.3:
	movq	%rcx, %r14
	movl	%edx, %r15d
	movq	%rsi, %r12
	movl	%edx, %eax
	leaq	(%rsi,%rax,4), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	xorl	%ebx, %ebx
	jmp	LBB0_4
LBB0_7:                                 ##   in Loop: Header=BB0_4 Depth=1
	decl	%ecx
LBB0_11:                                ##   in Loop: Header=BB0_4 Depth=1
	movl	%ecx, %edx
LBB0_12:                                ##   in Loop: Header=BB0_4 Depth=1
	movl	%edx, 4(%r13)
LBB0_13:                                ##   in Loop: Header=BB0_4 Depth=1
	incl	%eax
	movl	%eax, -44(%rbp)
LBB0_35:                                ##   in Loop: Header=BB0_4 Depth=1
	incl	%ebx
	cmpl	%r15d, %ebx
	jge	LBB0_36
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	xorl	%edi, %edi
	cmpl	$5, 4(%r13)
	setb	%dil
	callq	_av_assert1
	movl	4(%r13), %ecx
	testb	$1, %cl
	jne	LBB0_5
## %bb.14:                              ##   in Loop: Header=BB0_4 Depth=1
	movslq	%ebx, %rax
	leaq	(%r12,%rax,4), %rdi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	leaq	-44(%rbp), %rdx
	callq	_avpriv_find_start_code
	subq	%r12, %rax
	shrq	$2, %rax
	leal	-1(%rax), %ebx
	movl	4(%r13), %edx
	movl	-44(%rbp), %ecx
	testl	%edx, %edx
	jne	LBB0_18
## %bb.15:                              ##   in Loop: Header=BB0_4 Depth=1
	xorl	%edx, %edx
	movq	_SLICE_MIN_START_CODE@GOTPCREL(%rip), %rsi
	cmpl	(%rsi), %ecx
	jl	LBB0_18
## %bb.16:                              ##   in Loop: Header=BB0_4 Depth=1
	movq	_SLICE_MAX_START_CODE@GOTPCREL(%rip), %rsi
	cmpl	(%rsi), %ecx
	jg	LBB0_18
## %bb.17:                              ##   in Loop: Header=BB0_4 Depth=1
	movl	$4, 4(%r13)
	movl	$4, %edx
	movl	%eax, %ebx
	.p2align	4, 0x90
LBB0_18:                                ##   in Loop: Header=BB0_4 Depth=1
	movq	_SEQ_END_CODE@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ecx
	je	LBB0_19
## %bb.20:                              ##   in Loop: Header=BB0_4 Depth=1
	cmpl	$2, %edx
	jne	LBB0_23
## %bb.21:                              ##   in Loop: Header=BB0_4 Depth=1
	movq	_SEQ_START_CODE@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ecx
	jne	LBB0_23
## %bb.22:                              ##   in Loop: Header=BB0_4 Depth=1
	movl	$0, 4(%r13)
	xorl	%edx, %edx
	jmp	LBB0_24
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_4 Depth=1
	movl	-44(%rbp), %eax
	movq	_EXT_START_CODE@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	cmpl	%edx, %eax
	jne	LBB0_8
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	movslq	%ebx, %rsi
	movl	(%r12,%rsi,4), %esi
	movl	$240, %edi
	andl	%edi, %esi
	cmpl	$128, %esi
	jne	LBB0_7
LBB0_8:                                 ##   in Loop: Header=BB0_4 Depth=1
	addl	$2, %edx
	cmpl	%edx, %eax
	jne	LBB0_13
## %bb.9:                               ##   in Loop: Header=BB0_4 Depth=1
	movslq	%ebx, %rdx
	movl	(%r12,%rdx,4), %esi
	notl	%esi
	xorl	%edx, %edx
	testb	$3, %sil
	je	LBB0_12
## %bb.10:                              ##   in Loop: Header=BB0_4 Depth=1
	incl	%ecx
	andl	$3, %ecx
	jmp	LBB0_11
	.p2align	4, 0x90
LBB0_23:                                ##   in Loop: Header=BB0_4 Depth=1
	cmpl	$3, %edx
	jg	LBB0_26
LBB0_24:                                ##   in Loop: Header=BB0_4 Depth=1
	movq	_EXT_START_CODE@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ecx
	jne	LBB0_31
## %bb.25:                              ##   in Loop: Header=BB0_4 Depth=1
	incl	%edx
	movl	%edx, 4(%r13)
LBB0_26:                                ##   in Loop: Header=BB0_4 Depth=1
	cmpl	$4, %edx
	jne	LBB0_31
## %bb.27:                              ##   in Loop: Header=BB0_4 Depth=1
	movl	%ecx, %eax
	andl	$-256, %eax
	cmpl	$256, %eax                      ## imm = 0x100
	jne	LBB0_35
## %bb.28:                              ##   in Loop: Header=BB0_4 Depth=1
	movq	_SLICE_MIN_START_CODE@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ecx
	jl	LBB0_30
## %bb.29:                              ##   in Loop: Header=BB0_4 Depth=1
	movq	_SLICE_MAX_START_CODE@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ecx
	jle	LBB0_35
	jmp	LBB0_30
	.p2align	4, 0x90
LBB0_31:                                ##   in Loop: Header=BB0_4 Depth=1
	testq	%r14, %r14
	je	LBB0_35
## %bb.32:                              ##   in Loop: Header=BB0_4 Depth=1
	testl	%edx, %edx
	jne	LBB0_35
## %bb.33:                              ##   in Loop: Header=BB0_4 Depth=1
	movq	_PICTURE_START_CODE@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ecx
	jne	LBB0_35
## %bb.34:                              ##   in Loop: Header=BB0_4 Depth=1
	leal	-3(%rbx), %esi
	xorl	%ecx, %ecx
	cmpl	$4, %ebx
	setge	%cl
	movq	%r14, %rdi
	movl	$1, %edx
	callq	_ff_fetch_timestamp
	jmp	LBB0_35
LBB0_1:
	xorl	%ebx, %ebx
	jmp	LBB0_38
LBB0_36:
	movl	-44(%rbp), %eax
LBB0_37:
	movl	%eax, (%r13)
	movq	_END_NOT_FOUND@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	jmp	LBB0_38
LBB0_19:
	movl	$4294967295, %eax               ## imm = 0xFFFFFFFF
	movq	%rax, (%r13)
	incl	%ebx
LBB0_38:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_30:
	movl	$4294967295, %eax               ## imm = 0xFFFFFFFF
	movq	%rax, (%r13)
	addl	$-3, %ebx
	jmp	LBB0_38
	.cfi_endproc
                                        ## -- End function
	.comm	_EXT_START_CODE,4,2             ## @EXT_START_CODE
	.comm	_SLICE_MIN_START_CODE,4,2       ## @SLICE_MIN_START_CODE
	.comm	_SLICE_MAX_START_CODE,4,2       ## @SLICE_MAX_START_CODE
	.comm	_SEQ_END_CODE,4,2               ## @SEQ_END_CODE
	.comm	_SEQ_START_CODE,4,2             ## @SEQ_START_CODE
	.comm	_PICTURE_START_CODE,4,2         ## @PICTURE_START_CODE
	.comm	_END_NOT_FOUND,4,2              ## @END_NOT_FOUND
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ff_mpeg1_find_frame_end        ; -- Begin function ff_mpeg1_find_frame_end
	.p2align	2
_ff_mpeg1_find_frame_end:               ; @ff_mpeg1_find_frame_end
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	ldr	w8, [x0]
	str	w8, [sp, #12]
	cbz	w2, LBB0_30
; %bb.1:
	mov	x21, x2
	mov	x19, x0
	cmp	w2, #1
	b.lt	LBB0_32
; %bb.2:
	mov	x20, x3
	mov	x22, x1
	mov	w24, #0
Lloh0:
	adrp	x25, _SLICE_MAX_START_CODE@GOTPAGE
Lloh1:
	ldr	x25, [x25, _SLICE_MAX_START_CODE@GOTPAGEOFF]
Lloh2:
	adrp	x26, _SEQ_END_CODE@GOTPAGE
Lloh3:
	ldr	x26, [x26, _SEQ_END_CODE@GOTPAGEOFF]
	add	x23, x1, w21, uxtw #2
Lloh4:
	adrp	x27, _SEQ_START_CODE@GOTPAGE
Lloh5:
	ldr	x27, [x27, _SEQ_START_CODE@GOTPAGEOFF]
Lloh6:
	adrp	x28, _EXT_START_CODE@GOTPAGE
Lloh7:
	ldr	x28, [x28, _EXT_START_CODE@GOTPAGEOFF]
	b	LBB0_7
LBB0_3:                                 ;   in Loop: Header=BB0_7 Depth=1
	sub	w9, w9, #1
LBB0_4:                                 ;   in Loop: Header=BB0_7 Depth=1
	str	w9, [x19, #4]
LBB0_5:                                 ;   in Loop: Header=BB0_7 Depth=1
	add	w8, w8, #1
	str	w8, [sp, #12]
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=1
	add	w24, w24, #1
	cmp	w24, w21
	b.ge	LBB0_31
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x19, #4]
	cmp	w8, #5
	cset	w0, lo
	bl	_av_assert1
	ldr	w9, [x19, #4]
	tbnz	w9, #0, LBB0_11
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	add	x0, x22, w24, sxtw #2
	add	x2, sp, #12
	mov	x1, x23
	bl	_avpriv_find_start_code
	sub	x8, x0, x22
	lsr	x10, x8, #2
	sub	w24, w10, #1
	ldr	w9, [x19, #4]
	ldr	w8, [sp, #12]
	cbnz	w9, LBB0_16
; %bb.9:                                ;   in Loop: Header=BB0_7 Depth=1
Lloh8:
	adrp	x9, _SLICE_MIN_START_CODE@GOTPAGE
Lloh9:
	ldr	x9, [x9, _SLICE_MIN_START_CODE@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	ldr	w11, [x25]
	cmp	w8, w9
	ccmp	w8, w11, #0, ge
	b.le	LBB0_15
; %bb.10:                               ;   in Loop: Header=BB0_7 Depth=1
	mov	w9, #0
	b	LBB0_16
LBB0_11:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	w8, [sp, #12]
	ldr	w10, [x28]
	cmp	w8, w10
	b.ne	LBB0_13
; %bb.12:                               ;   in Loop: Header=BB0_7 Depth=1
	ldr	w11, [x22, w24, sxtw #2]
	and	w11, w11, #0xf0
	cmp	w11, #128
	b.ne	LBB0_3
LBB0_13:                                ;   in Loop: Header=BB0_7 Depth=1
	add	w10, w10, #2
	cmp	w8, w10
	b.ne	LBB0_5
; %bb.14:                               ;   in Loop: Header=BB0_7 Depth=1
	ldr	w10, [x22, w24, sxtw #2]
	mvn	w10, w10
	tst	w10, #0x3
	add	w9, w9, #1
	and	w9, w9, #0x3
	csel	w9, wzr, w9, eq
	b	LBB0_4
LBB0_15:                                ;   in Loop: Header=BB0_7 Depth=1
	mov	w9, #4
	str	w9, [x19, #4]
	mov	x24, x10
LBB0_16:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	w10, [x26]
	cmp	w8, w10
	b.eq	LBB0_33
; %bb.17:                               ;   in Loop: Header=BB0_7 Depth=1
	cmp	w9, #2
	b.ne	LBB0_20
; %bb.18:                               ;   in Loop: Header=BB0_7 Depth=1
	ldr	w10, [x27]
	cmp	w8, w10
	b.ne	LBB0_20
; %bb.19:                               ;   in Loop: Header=BB0_7 Depth=1
	mov	w9, #0
	str	wzr, [x19, #4]
	b	LBB0_21
LBB0_20:                                ;   in Loop: Header=BB0_7 Depth=1
	cmp	w9, #3
	b.gt	LBB0_23
LBB0_21:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	w10, [x28]
	cmp	w8, w10
	b.ne	LBB0_26
; %bb.22:                               ;   in Loop: Header=BB0_7 Depth=1
	add	w9, w9, #1
	str	w9, [x19, #4]
LBB0_23:                                ;   in Loop: Header=BB0_7 Depth=1
	cmp	w9, #4
	b.ne	LBB0_26
; %bb.24:                               ;   in Loop: Header=BB0_7 Depth=1
	and	w9, w8, #0xffffff00
	cmp	w9, #256
	b.ne	LBB0_6
; %bb.25:                               ;   in Loop: Header=BB0_7 Depth=1
Lloh11:
	adrp	x9, _SLICE_MIN_START_CODE@GOTPAGE
Lloh12:
	ldr	x9, [x9, _SLICE_MIN_START_CODE@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
	ldr	w10, [x25]
	cmp	w8, w9
	ccmp	w8, w10, #0, ge
	b.le	LBB0_6
	b	LBB0_35
LBB0_26:                                ;   in Loop: Header=BB0_7 Depth=1
	cbz	x20, LBB0_6
; %bb.27:                               ;   in Loop: Header=BB0_7 Depth=1
	cbnz	w9, LBB0_6
; %bb.28:                               ;   in Loop: Header=BB0_7 Depth=1
Lloh14:
	adrp	x9, _PICTURE_START_CODE@GOTPAGE
Lloh15:
	ldr	x9, [x9, _PICTURE_START_CODE@GOTPAGEOFF]
Lloh16:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_6
; %bb.29:                               ;   in Loop: Header=BB0_7 Depth=1
	subs	w1, w24, #3
	cset	w3, gt
	mov	x0, x20
	mov	w2, #1
	bl	_ff_fetch_timestamp
	b	LBB0_6
LBB0_30:
	mov	w0, #0
	b	LBB0_34
LBB0_31:
	ldr	w8, [sp, #12]
LBB0_32:
	str	w8, [x19]
Lloh17:
	adrp	x8, _END_NOT_FOUND@GOTPAGE
Lloh18:
	ldr	x8, [x8, _END_NOT_FOUND@GOTPAGEOFF]
Lloh19:
	ldr	w0, [x8]
	b	LBB0_34
LBB0_33:
	movi	d0, #0x000000ffffffff
	str	d0, [x19]
	add	w0, w24, #1
LBB0_34:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_35:
	movi	d0, #0x000000ffffffff
	str	d0, [x19]
	sub	w0, w24, #3
	b	LBB0_34
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.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	_EXT_START_CODE,4,2             ; @EXT_START_CODE
	.comm	_SLICE_MIN_START_CODE,4,2       ; @SLICE_MIN_START_CODE
	.comm	_SLICE_MAX_START_CODE,4,2       ; @SLICE_MAX_START_CODE
	.comm	_SEQ_END_CODE,4,2               ; @SEQ_END_CODE
	.comm	_SEQ_START_CODE,4,2             ; @SEQ_START_CODE
	.comm	_PICTURE_START_CODE,4,2         ; @PICTURE_START_CODE
	.comm	_END_NOT_FOUND,4,2              ; @END_NOT_FOUND
.subsections_via_symbols
