	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_av_read_frame                  ## -- Begin function av_read_frame
	.p2align	4, 0x90
_av_read_frame:                         ## @av_read_frame
	.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
	movq	%rsi, %r12
	movq	%rdi, %r13
	movq	_AVFMT_FLAG_GENPTS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rdi)
	movq	%rsi, -64(%rbp)                 ## 8-byte Spill
	je	LBB0_5
## %bb.1:
	movb	$1, %al
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	movl	$0, -56(%rbp)                   ## 4-byte Folded Spill
	movq	%r13, -48(%rbp)                 ## 8-byte Spill
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_35:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	%r13, %rdi
	movq	%r12, %rsi
	callq	_read_frame_internal
	testl	%eax, %eax
	js	LBB0_36
LBB0_40:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	24(%r13), %rsi
	leaq	8(%rsi), %rdi
	movq	%r12, %rdx
	xorl	%ecx, %ecx
	callq	_ff_packet_list_put
	testl	%eax, %eax
	js	LBB0_41
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_10 Depth 2
	movq	24(%r13), %rsi
	movq	8(%rsi), %r14
	testq	%r14, %r14
	je	LBB0_35
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	8(%r14), %r13
	movq	_AV_NOPTS_VALUE@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r13
	jne	LBB0_9
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%r14, %r15
	cmpq	%r13, 24(%r14)
	je	LBB0_25
	jmp	LBB0_27
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	16(%rax), %rax
	movq	16(%r14), %rcx
	movq	(%rax,%rcx,8), %rax
	movl	(%rax), %r12d
	xorl	%edi, %edi
	cmpl	$65, %r12d
	setl	%dil
	callq	_av_assert2
	decb	%r12b
	movl	$2, %r15d
	movl	%r12d, %ecx
	shlq	%cl, %r15
	movq	%r14, %rbx
	movq	_AV_NOPTS_VALUE@GOTPCREL(%rip), %r12
	jmp	LBB0_10
	.p2align	4, 0x90
LBB0_17:                                ##   in Loop: Header=BB0_10 Depth=2
	movq	(%rbx), %rbx
	testq	%rbx, %rbx
	je	LBB0_18
LBB0_10:                                ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	24(%r14), %rax
	cmpq	(%r12), %rax
	jne	LBB0_18
## %bb.11:                              ##   in Loop: Header=BB0_10 Depth=2
	movq	16(%rbx), %rax
	cmpq	16(%r14), %rax
	jne	LBB0_17
## %bb.12:                              ##   in Loop: Header=BB0_10 Depth=2
	movq	8(%r14), %rdi
	movq	8(%rbx), %rsi
	movq	%r15, %rdx
	callq	_av_compare_mod
	testq	%rax, %rax
	jns	LBB0_17
## %bb.13:                              ##   in Loop: Header=BB0_10 Depth=2
	movq	8(%rbx), %rsi
	movq	24(%rbx), %rdi
	movq	%r15, %rdx
	callq	_av_compare_mod
	testq	%rax, %rax
	je	LBB0_15
## %bb.14:                              ##   in Loop: Header=BB0_10 Depth=2
	movq	8(%rbx), %rax
	movq	%rax, 24(%r14)
LBB0_15:                                ##   in Loop: Header=BB0_10 Depth=2
	cmpq	(%r12), %r13
	je	LBB0_17
## %bb.16:                              ##   in Loop: Header=BB0_10 Depth=2
	movq	8(%rbx), %r13
	jmp	LBB0_17
	.p2align	4, 0x90
LBB0_18:                                ##   in Loop: Header=BB0_2 Depth=1
	testb	$1, -52(%rbp)                   ## 1-byte Folded Reload
	movq	-64(%rbp), %r12                 ## 8-byte Reload
	je	LBB0_20
## %bb.19:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	_AV_NOPTS_VALUE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	jmp	LBB0_23
LBB0_20:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	24(%r14), %rcx
	movq	_AV_NOPTS_VALUE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	%rax, %rcx
	jne	LBB0_23
## %bb.21:                              ##   in Loop: Header=BB0_2 Depth=1
	cmpq	%rax, %r13
	je	LBB0_23
## %bb.22:                              ##   in Loop: Header=BB0_2 Depth=1
	addq	32(%r14), %r13
	movq	%r13, 24(%r14)
	movq	%rcx, %rax
LBB0_23:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movq	24(%rcx), %rsi
	movq	8(%rsi), %r15
	movq	%rax, %r13
	cmpq	%r13, 24(%r14)
	jne	LBB0_27
LBB0_25:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	16(%rax), %rax
	movq	16(%r14), %rcx
	movq	(%rax,%rcx,8), %rax
	movq	8(%rax), %rax
	movq	_AVDISCARD_ALL@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jge	LBB0_27
## %bb.26:                              ##   in Loop: Header=BB0_2 Depth=1
	cmpq	%r13, 8(%r14)
	setne	%al
	movl	-56(%rbp), %ecx                 ## 4-byte Reload
                                        ## kill: def $cl killed $cl killed $ecx
	xorb	$1, %cl
	testb	%cl, %al
	je	LBB0_27
## %bb.39:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	-48(%rbp), %r13                 ## 8-byte Reload
	movq	%r13, %rdi
	movq	%r12, %rsi
	callq	_read_frame_internal
	testl	%eax, %eax
	jns	LBB0_40
## %bb.37:                              ##   in Loop: Header=BB0_2 Depth=1
	movl	%eax, %ebx
	testq	%r15, %r15
	je	LBB0_42
## %bb.38:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	_EAGAIN@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_AVERROR
	movb	$1, %cl
	movl	%ecx, -56(%rbp)                 ## 4-byte Spill
	movl	$0, -52(%rbp)                   ## 4-byte Folded Spill
	cmpl	%eax, %ebx
	jne	LBB0_2
	jmp	LBB0_42
LBB0_5:
	movq	24(%r13), %rsi
	cmpq	$0, 8(%rsi)
	je	LBB0_7
## %bb.6:
	leaq	8(%rsi), %rdi
	movq	%r12, %rdx
	callq	_ff_packet_list_get
	jmp	LBB0_8
LBB0_27:
	leaq	8(%rsi), %rdi
	movq	%r12, %rdx
	callq	_ff_packet_list_get
	movl	%eax, %ebx
	movq	-48(%rbp), %r13                 ## 8-byte Reload
	jmp	LBB0_28
LBB0_41:
	movl	%eax, %ebx
	movq	%r12, %rdi
	callq	_av_packet_unref
	jmp	LBB0_42
LBB0_7:
	movq	%r13, %rdi
	movq	%r12, %rsi
	callq	_read_frame_internal
LBB0_8:
	movl	%eax, %ebx
	testl	%eax, %eax
	js	LBB0_42
LBB0_28:
	movq	8(%r13), %rax
	movq	_AVFMT_GENERIC_INDEX@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%rax)
	je	LBB0_31
## %bb.29:
	movq	_AV_PKT_FLAG_KEY@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 32(%r12)
	je	LBB0_31
## %bb.30:
	movq	16(%r13), %rax
	movq	8(%r12), %rcx
	movq	(%rax,%rcx,8), %r12
	movl	16(%r12), %esi
	movq	%r13, %rdi
	callq	_ff_reduce_index
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movl	36(%rax), %esi
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rdx
	movq	_AVINDEX_KEYFRAME@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	movq	%r12, %rdi
	movq	-64(%rbp), %r12                 ## 8-byte Reload
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	callq	_av_add_index_entry
LBB0_31:
	movq	(%r12), %rdi
	callq	_is_relative
	testq	%rax, %rax
	je	LBB0_33
## %bb.32:
	movq	_RELATIVE_TS_BASE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	subq	%rax, (%r12)
LBB0_33:
	movq	16(%r12), %rdi
	callq	_is_relative
	testq	%rax, %rax
	je	LBB0_42
## %bb.34:
	movq	_RELATIVE_TS_BASE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	subq	%rax, 16(%r12)
LBB0_42:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_36:
	movl	%eax, %ebx
	jmp	LBB0_42
	.cfi_endproc
                                        ## -- End function
	.comm	_AVFMT_FLAG_GENPTS,4,2          ## @AVFMT_FLAG_GENPTS
	.comm	_AV_NOPTS_VALUE,8,3             ## @AV_NOPTS_VALUE
	.comm	_AVDISCARD_ALL,8,3              ## @AVDISCARD_ALL
	.comm	_EAGAIN,4,2                     ## @EAGAIN
	.comm	_AVFMT_GENERIC_INDEX,4,2        ## @AVFMT_GENERIC_INDEX
	.comm	_AV_PKT_FLAG_KEY,4,2            ## @AV_PKT_FLAG_KEY
	.comm	_AVINDEX_KEYFRAME,4,2           ## @AVINDEX_KEYFRAME
	.comm	_RELATIVE_TS_BASE,8,3           ## @RELATIVE_TS_BASE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_av_read_frame                  ; -- Begin function av_read_frame
	.p2align	2
_av_read_frame:                         ; @av_read_frame
	.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, x1
	mov	x20, x0
	ldr	w8, [x0]
Lloh0:
	adrp	x9, _AVFMT_FLAG_GENPTS@GOTPAGE
Lloh1:
	ldr	x9, [x9, _AVFMT_FLAG_GENPTS@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_27
; %bb.1:
	mov	w26, #0
Lloh3:
	adrp	x22, _AV_NOPTS_VALUE@GOTPAGE
Lloh4:
	ldr	x22, [x22, _AV_NOPTS_VALUE@GOTPAGEOFF]
	mov	w27, #1
Lloh5:
	adrp	x23, _AVDISCARD_ALL@GOTPAGE
Lloh6:
	ldr	x23, [x23, _AVDISCARD_ALL@GOTPAGEOFF]
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x20
	mov	x1, x19
	bl	_read_frame_internal
	tbnz	w0, #31, LBB0_41
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	x1, [x20, #24]
	add	x0, x1, #8
	mov	x2, x19
	mov	w3, #0
	bl	_ff_packet_list_put
	tbnz	w0, #31, LBB0_30
LBB0_4:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_9 Depth 2
	ldr	x1, [x20, #24]
	ldr	x25, [x1, #8]
	cbz	x25, LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x24, [x25, #8]
	ldr	x8, [x22]
	cmp	x24, x8
	b.ne	LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x28, x25
	b	LBB0_21
LBB0_7:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x20, #16]
	ldr	x9, [x25, #16]
	ldr	x8, [x8, x9, lsl #3]
	ldr	w21, [x8]
	cmp	w21, #65
	cset	w0, lt
	bl	_av_assert2
	sub	w8, w21, #1
	mov	w9, #2
	lsl	x21, x9, x8
	mov	x28, x25
	b	LBB0_9
LBB0_8:                                 ;   in Loop: Header=BB0_9 Depth=2
	ldr	x28, [x28]
	cbz	x28, LBB0_16
LBB0_9:                                 ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x8, [x25, #24]
	ldr	x9, [x22]
	cmp	x8, x9
	b.ne	LBB0_16
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=2
	ldr	x8, [x28, #16]
	ldr	x9, [x25, #16]
	cmp	x8, x9
	b.ne	LBB0_8
; %bb.11:                               ;   in Loop: Header=BB0_9 Depth=2
	ldr	x0, [x25, #8]
	ldr	x1, [x28, #8]
	mov	x2, x21
	bl	_av_compare_mod
	tbz	x0, #63, LBB0_8
; %bb.12:                               ;   in Loop: Header=BB0_9 Depth=2
	ldr	x0, [x28, #24]
	ldr	x1, [x28, #8]
	mov	x2, x21
	bl	_av_compare_mod
	cbz	x0, LBB0_14
; %bb.13:                               ;   in Loop: Header=BB0_9 Depth=2
	ldr	x8, [x28, #8]
	str	x8, [x25, #24]
LBB0_14:                                ;   in Loop: Header=BB0_9 Depth=2
	ldr	x8, [x22]
	cmp	x24, x8
	b.eq	LBB0_8
; %bb.15:                               ;   in Loop: Header=BB0_9 Depth=2
	ldr	x24, [x28, #8]
	b	LBB0_8
LBB0_16:                                ;   in Loop: Header=BB0_4 Depth=1
	tbz	w27, #0, LBB0_18
; %bb.17:                               ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x22]
	b	LBB0_20
LBB0_18:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x9, [x25, #24]
	ldr	x8, [x22]
	cmp	x9, x8
	ccmp	x24, x8, #4, eq
	b.eq	LBB0_20
; %bb.19:                               ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x25, #32]
	add	x8, x8, x24
	str	x8, [x25, #24]
	mov	x8, x9
LBB0_20:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x1, [x20, #24]
	ldr	x28, [x1, #8]
	mov	x24, x8
LBB0_21:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x25, #24]
	cmp	x8, x24
	b.ne	LBB0_29
; %bb.22:                               ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x20, #16]
	ldr	x9, [x25, #16]
	ldr	x8, [x8, x9, lsl #3]
	ldr	x8, [x8, #8]
	ldr	x9, [x23]
	cmp	x8, x9
	b.ge	LBB0_29
; %bb.23:                               ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x25, #8]
	cmp	x8, x24
	cset	w8, ne
	eor	w9, w26, #0x1
	and	w8, w8, w9
	tbz	w8, #0, LBB0_29
; %bb.24:                               ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x20
	mov	x1, x19
	bl	_read_frame_internal
	tbz	w0, #31, LBB0_3
; %bb.25:                               ;   in Loop: Header=BB0_4 Depth=1
	mov	x21, x0
	cbz	x28, LBB0_40
; %bb.26:                               ;   in Loop: Header=BB0_4 Depth=1
Lloh7:
	adrp	x8, _EAGAIN@GOTPAGE
Lloh8:
	ldr	x8, [x8, _EAGAIN@GOTPAGEOFF]
Lloh9:
	ldr	w0, [x8]
	bl	_AVERROR
	mov	w27, #0
	mov	w26, #1
	cmp	w21, w0
	b.ne	LBB0_4
	b	LBB0_40
LBB0_27:
	ldr	x1, [x20, #24]
	mov	x0, x1
	ldr	x8, [x0, #8]!
	cbz	x8, LBB0_31
; %bb.28:
	mov	x2, x19
	bl	_ff_packet_list_get
	b	LBB0_32
LBB0_29:
	add	x0, x1, #8
	mov	x2, x19
	bl	_ff_packet_list_get
	mov	x21, x0
	b	LBB0_33
LBB0_30:
	mov	x21, x0
	mov	x0, x19
	bl	_av_packet_unref
	b	LBB0_40
LBB0_31:
	mov	x0, x20
	mov	x1, x19
	bl	_read_frame_internal
LBB0_32:
	mov	x21, x0
	tbnz	w0, #31, LBB0_40
LBB0_33:
	ldr	x8, [x20, #8]
	ldr	w8, [x8]
Lloh10:
	adrp	x9, _AVFMT_GENERIC_INDEX@GOTPAGE
Lloh11:
	ldr	x9, [x9, _AVFMT_GENERIC_INDEX@GOTPAGEOFF]
Lloh12:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_36
; %bb.34:
	ldr	w8, [x19, #32]
Lloh13:
	adrp	x9, _AV_PKT_FLAG_KEY@GOTPAGE
Lloh14:
	ldr	x9, [x9, _AV_PKT_FLAG_KEY@GOTPAGEOFF]
Lloh15:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_36
; %bb.35:
	ldr	x8, [x20, #16]
	ldr	x9, [x19, #8]
	ldr	x22, [x8, x9, lsl #3]
	ldr	w1, [x22, #16]
	mov	x0, x20
	bl	_ff_reduce_index
	ldr	w1, [x19, #36]
	ldr	x2, [x19]
Lloh16:
	adrp	x8, _AVINDEX_KEYFRAME@GOTPAGE
Lloh17:
	ldr	x8, [x8, _AVINDEX_KEYFRAME@GOTPAGEOFF]
Lloh18:
	ldr	w5, [x8]
	mov	x0, x22
	mov	w3, #0
	mov	w4, #0
	bl	_av_add_index_entry
LBB0_36:
	ldr	x0, [x19]
	bl	_is_relative
Lloh19:
	adrp	x20, _RELATIVE_TS_BASE@GOTPAGE
Lloh20:
	ldr	x20, [x20, _RELATIVE_TS_BASE@GOTPAGEOFF]
	cbz	x0, LBB0_38
; %bb.37:
	ldr	x8, [x20]
	ldr	x9, [x19]
	sub	x8, x9, x8
	str	x8, [x19]
LBB0_38:
	ldr	x0, [x19, #16]
	bl	_is_relative
	cbz	x0, LBB0_40
; %bb.39:
	ldr	x8, [x20]
	ldr	x9, [x19, #16]
	sub	x8, x9, x8
	str	x8, [x19, #16]
LBB0_40:
	mov	x0, x21
	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
LBB0_41:
	mov	x21, x0
	b	LBB0_40
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_AVFMT_FLAG_GENPTS,4,2          ; @AVFMT_FLAG_GENPTS
	.comm	_AV_NOPTS_VALUE,8,3             ; @AV_NOPTS_VALUE
	.comm	_AVDISCARD_ALL,8,3              ; @AVDISCARD_ALL
	.comm	_EAGAIN,4,2                     ; @EAGAIN
	.comm	_AVFMT_GENERIC_INDEX,4,2        ; @AVFMT_GENERIC_INDEX
	.comm	_AV_PKT_FLAG_KEY,4,2            ; @AV_PKT_FLAG_KEY
	.comm	_AVINDEX_KEYFRAME,4,2           ; @AVINDEX_KEYFRAME
	.comm	_RELATIVE_TS_BASE,8,3           ; @RELATIVE_TS_BASE
.subsections_via_symbols
