	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function dash_read_packet
LCPI0_0:
	.space	16
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_dash_read_packet:                      ## @dash_read_packet
	.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, -48(%rbp)                 ## 8-byte Spill
	movq	%rdi, %r14
	movq	(%rdi), %rbx
	movq	32(%rbx), %rsi
	movl	(%rbx), %edx
	callq	_recheck_discard_flags
	movq	24(%rbx), %rsi
	movl	4(%rbx), %edx
	movq	%r14, %rdi
	callq	_recheck_discard_flags
	movq	16(%rbx), %rsi
	movl	8(%rbx), %edx
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	movq	%r14, %rdi
	callq	_recheck_discard_flags
	movl	(%rbx), %r8d
	testl	%r8d, %r8d
	movq	%rbx, %r11
	jle	LBB0_1
## %bb.2:
	movq	32(%rbx), %rdi
	cmpl	$1, %r8d
	jne	LBB0_16
## %bb.3:
	xorl	%esi, %esi
	xorl	%r14d, %r14d
	xorl	%r10d, %r10d
LBB0_4:
	testb	$1, %r8b
	movq	%r11, %rbx
	je	LBB0_7
## %bb.5:
	movq	(%rdi,%rsi,8), %rax
	cmpq	$0, 48(%rax)
	je	LBB0_7
## %bb.6:
	testq	%r14, %r14
	sete	%cl
	movq	(%rax), %rsi
	cmpq	%r10, %rsi
	setl	%bl
	orb	%cl, %bl
	movq	%r11, %rbx
	cmovneq	%rsi, %r10
	cmovneq	%rax, %r14
	jmp	LBB0_7
LBB0_1:
	xorl	%r10d, %r10d
	xorl	%r14d, %r14d
LBB0_7:
	movl	4(%rbx), %r8d
	testl	%r8d, %r8d
	jle	LBB0_13
## %bb.8:
	movq	24(%rbx), %rdi
	cmpl	$1, %r8d
	jne	LBB0_26
## %bb.9:
	xorl	%esi, %esi
LBB0_10:
	testb	$1, %r8b
	movq	%r11, %rbx
	je	LBB0_13
## %bb.11:
	movq	(%rdi,%rsi,8), %rax
	cmpq	$0, 48(%rax)
	je	LBB0_13
## %bb.12:
	testq	%r14, %r14
	sete	%cl
	movq	(%rax), %rdx
	cmpq	%r10, %rdx
	setl	%bl
	orb	%cl, %bl
	movq	%r11, %rbx
	cmovneq	%rdx, %r10
	cmovneq	%rax, %r14
LBB0_13:
	movl	8(%rbx), %r8d
	testl	%r8d, %r8d
	jle	LBB0_49
## %bb.14:
	movq	16(%rbx), %rax
	cmpl	$1, %r8d
	jne	LBB0_36
## %bb.15:
	xorl	%esi, %esi
LBB0_46:
	testb	$1, %r8b
	movq	%r11, %rbx
	je	LBB0_49
## %bb.47:
	movq	(%rax,%rsi,8), %rax
	cmpq	$0, 48(%rax)
	je	LBB0_49
## %bb.48:
	cmpq	%r10, (%rax)
	movq	%r14, %rcx
	cmovlq	%rax, %rcx
	testq	%r14, %r14
	cmoveq	%rax, %rcx
	movq	%rcx, %r14
LBB0_49:
	testq	%r14, %r14
	je	LBB0_61
## %bb.50:
	movl	12(%rbx), %edi
	callq	_ff_check_interrupt
	testl	%eax, %eax
	je	LBB0_51
LBB0_58:
	movq	_AVERROR_EOF@GOTPCREL(%rip), %rax
	jmp	LBB0_59
LBB0_61:
	movq	_AVERROR_INVALIDDATA@GOTPCREL(%rip), %rax
LBB0_59:
	movl	(%rax), %eax
LBB0_60:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_16:
	movl	%r8d, %r9d
	andl	$-2, %r9d
	xorl	%esi, %esi
	xorl	%r14d, %r14d
	xorl	%r10d, %r10d
	jmp	LBB0_17
	.p2align	4, 0x90
LBB0_24:                                ##   in Loop: Header=BB0_17 Depth=1
	movq	%rax, %r10
	movq	%rbx, %r14
LBB0_25:                                ##   in Loop: Header=BB0_17 Depth=1
	addq	$2, %rsi
	cmpq	%rsi, %r9
	je	LBB0_4
LBB0_17:                                ## =>This Inner Loop Header: Depth=1
	movq	(%rdi,%rsi,8), %rbx
	cmpq	$0, 48(%rbx)
	je	LBB0_21
## %bb.18:                              ##   in Loop: Header=BB0_17 Depth=1
	testq	%r14, %r14
	sete	%cl
	movq	(%rbx), %rax
	cmpq	%r10, %rax
	setl	%dl
	orb	%cl, %dl
	jne	LBB0_20
## %bb.19:                              ##   in Loop: Header=BB0_17 Depth=1
	movq	%r10, %rax
	movq	%r14, %rbx
LBB0_20:                                ##   in Loop: Header=BB0_17 Depth=1
	movq	%rax, %r10
	movq	%rbx, %r14
LBB0_21:                                ##   in Loop: Header=BB0_17 Depth=1
	movq	8(%rdi,%rsi,8), %rbx
	cmpq	$0, 48(%rbx)
	je	LBB0_25
## %bb.22:                              ##   in Loop: Header=BB0_17 Depth=1
	testq	%r14, %r14
	sete	%cl
	movq	(%rbx), %rax
	cmpq	%r10, %rax
	setl	%dl
	orb	%cl, %dl
	jne	LBB0_24
## %bb.23:                              ##   in Loop: Header=BB0_17 Depth=1
	movq	%r10, %rax
	movq	%r14, %rbx
	jmp	LBB0_24
LBB0_26:
	movl	%r8d, %r9d
	andl	$-2, %r9d
	xorl	%esi, %esi
	jmp	LBB0_27
	.p2align	4, 0x90
LBB0_34:                                ##   in Loop: Header=BB0_27 Depth=1
	movq	%rcx, %r10
	movq	%rbx, %r14
LBB0_35:                                ##   in Loop: Header=BB0_27 Depth=1
	addq	$2, %rsi
	cmpq	%rsi, %r9
	je	LBB0_10
LBB0_27:                                ## =>This Inner Loop Header: Depth=1
	movq	(%rdi,%rsi,8), %rbx
	cmpq	$0, 48(%rbx)
	je	LBB0_31
## %bb.28:                              ##   in Loop: Header=BB0_27 Depth=1
	testq	%r14, %r14
	sete	%dl
	movq	(%rbx), %rcx
	cmpq	%r10, %rcx
	setl	%al
	orb	%dl, %al
	jne	LBB0_30
## %bb.29:                              ##   in Loop: Header=BB0_27 Depth=1
	movq	%r10, %rcx
	movq	%r14, %rbx
LBB0_30:                                ##   in Loop: Header=BB0_27 Depth=1
	movq	%rcx, %r10
	movq	%rbx, %r14
LBB0_31:                                ##   in Loop: Header=BB0_27 Depth=1
	movq	8(%rdi,%rsi,8), %rbx
	cmpq	$0, 48(%rbx)
	je	LBB0_35
## %bb.32:                              ##   in Loop: Header=BB0_27 Depth=1
	testq	%r14, %r14
	sete	%al
	movq	(%rbx), %rcx
	cmpq	%r10, %rcx
	setl	%dl
	orb	%al, %dl
	jne	LBB0_34
## %bb.33:                              ##   in Loop: Header=BB0_27 Depth=1
	movq	%r10, %rcx
	movq	%r14, %rbx
	jmp	LBB0_34
LBB0_36:
	movl	%r8d, %r9d
	andl	$-2, %r9d
	xorl	%esi, %esi
	jmp	LBB0_37
	.p2align	4, 0x90
LBB0_44:                                ##   in Loop: Header=BB0_37 Depth=1
	movq	%rdi, %r10
	movq	%rbx, %r14
LBB0_45:                                ##   in Loop: Header=BB0_37 Depth=1
	addq	$2, %rsi
	cmpq	%rsi, %r9
	je	LBB0_46
LBB0_37:                                ## =>This Inner Loop Header: Depth=1
	movq	(%rax,%rsi,8), %rbx
	cmpq	$0, 48(%rbx)
	je	LBB0_41
## %bb.38:                              ##   in Loop: Header=BB0_37 Depth=1
	testq	%r14, %r14
	sete	%dl
	movq	(%rbx), %rdi
	cmpq	%r10, %rdi
	setl	%cl
	orb	%dl, %cl
	jne	LBB0_40
## %bb.39:                              ##   in Loop: Header=BB0_37 Depth=1
	movq	%r10, %rdi
	movq	%r14, %rbx
LBB0_40:                                ##   in Loop: Header=BB0_37 Depth=1
	movq	%rdi, %r10
	movq	%rbx, %r14
LBB0_41:                                ##   in Loop: Header=BB0_37 Depth=1
	movq	8(%rax,%rsi,8), %rbx
	cmpq	$0, 48(%rbx)
	je	LBB0_45
## %bb.42:                              ##   in Loop: Header=BB0_37 Depth=1
	testq	%r14, %r14
	sete	%cl
	movq	(%rbx), %rdi
	cmpq	%r10, %rdi
	setl	%dl
	orb	%cl, %dl
	jne	LBB0_44
## %bb.43:                              ##   in Loop: Header=BB0_37 Depth=1
	movq	%r10, %rdi
	movq	%r14, %rbx
	jmp	LBB0_44
LBB0_51:
	leaq	24(%r14), %r15
	leaq	16(%r14), %r12
	jmp	LBB0_52
	.p2align	4, 0x90
LBB0_56:                                ##   in Loop: Header=BB0_52 Depth=1
	xorps	%xmm0, %xmm0
	movups	%xmm0, (%r15)
	movl	20(%r14), %edi
	movq	%r12, %rsi
	callq	_ff_format_io_close
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	%r14, %rsi
	callq	_reopen_demux_for_component
	movl	%eax, %r13d
	movq	$0, 8(%r14)
LBB0_57:                                ##   in Loop: Header=BB0_52 Depth=1
	movl	12(%rbx), %edi
	callq	_ff_check_interrupt
	orl	%r13d, %eax
	jne	LBB0_58
LBB0_52:                                ## =>This Inner Loop Header: Depth=1
	movq	48(%r14), %rdi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	callq	_av_read_frame
	testl	%eax, %eax
	jns	LBB0_53
## %bb.54:                              ##   in Loop: Header=BB0_52 Depth=1
	cmpq	$0, 8(%r14)
	jne	LBB0_56
## %bb.55:                              ##   in Loop: Header=BB0_52 Depth=1
	movl	$1, %r13d
	jmp	LBB0_57
LBB0_53:
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movl	4(%rbx), %edi
	movq	48(%r14), %rax
	movq	(%rax), %rax
	movq	(%rax), %rax
	imulq	$90000, 8(%rax), %rsi           ## imm = 0x15F90
	movl	(%rax), %edx
	callq	_av_rescale
	movq	%rax, (%r14)
	movl	40(%r14), %eax
	movl	%eax, (%rbx)
	xorl	%eax, %eax
	jmp	LBB0_60
	.cfi_endproc
                                        ## -- End function
	.comm	_AVERROR_INVALIDDATA,4,2        ## @AVERROR_INVALIDDATA
	.comm	_AVERROR_EOF,4,2                ## @AVERROR_EOF
	.no_dead_strip	_dash_read_packet
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dash_read_packet
_dash_read_packet:                      ; @dash_read_packet
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x19, x1
	mov	x20, x0
	ldr	x24, [x0]
	ldr	x1, [x24, #32]
	ldr	w2, [x24]
	bl	_recheck_discard_flags
	ldr	x1, [x24, #24]
	ldr	w2, [x24, #4]
	mov	x0, x20
	bl	_recheck_discard_flags
	ldr	x1, [x24, #16]
	ldr	w2, [x24, #8]
	mov	x0, x20
	bl	_recheck_discard_flags
	ldr	w9, [x24]
	cmp	w9, #1
	b.lt	LBB0_5
; %bb.1:
	mov	x21, #0
	mov	x8, #0
	ldr	x10, [x24, #32]
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x10, x10, #8
	subs	x9, x9, #1
	b.eq	LBB0_6
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x11, [x10]
	ldr	x12, [x11, #48]
	cbz	x12, LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	cmp	x21, #0
	ldr	x12, [x11]
	ccmp	x12, x8, #8, ne
	cset	w13, lt
	cmp	w13, #0
	csel	x8, x12, x8, ne
	csel	x21, x11, x21, ne
	b	LBB0_2
LBB0_5:
	mov	x8, #0
	mov	x21, #0
LBB0_6:
	ldr	w9, [x24, #4]
	cmp	w9, #1
	b.lt	LBB0_11
; %bb.7:
	ldr	x10, [x24, #24]
	b	LBB0_9
LBB0_8:                                 ;   in Loop: Header=BB0_9 Depth=1
	add	x10, x10, #8
	subs	x9, x9, #1
	b.eq	LBB0_11
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x11, [x10]
	ldr	x12, [x11, #48]
	cbz	x12, LBB0_8
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=1
	cmp	x21, #0
	ldr	x12, [x11]
	ccmp	x12, x8, #8, ne
	cset	w13, lt
	cmp	w13, #0
	csel	x8, x12, x8, ne
	csel	x21, x11, x21, ne
	b	LBB0_8
LBB0_11:
	ldr	w9, [x24, #8]
	cmp	w9, #1
	b.lt	LBB0_16
; %bb.12:
	ldr	x10, [x24, #16]
	b	LBB0_14
LBB0_13:                                ;   in Loop: Header=BB0_14 Depth=1
	add	x10, x10, #8
	subs	x9, x9, #1
	b.eq	LBB0_16
LBB0_14:                                ; =>This Inner Loop Header: Depth=1
	ldr	x11, [x10]
	ldr	x12, [x11, #48]
	cbz	x12, LBB0_13
; %bb.15:                               ;   in Loop: Header=BB0_14 Depth=1
	cmp	x21, #0
	ldr	x12, [x11]
	ccmp	x12, x8, #8, ne
	cset	w13, lt
	cmp	w13, #0
	csel	x8, x12, x8, ne
	csel	x21, x11, x21, ne
	b	LBB0_13
LBB0_16:
	cbz	x21, LBB0_19
; %bb.17:
	ldr	w0, [x24, #12]
	bl	_ff_check_interrupt
	cbz	w0, LBB0_22
LBB0_18:
Lloh0:
	adrp	x8, _AVERROR_EOF@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AVERROR_EOF@GOTPAGEOFF]
	b	LBB0_20
LBB0_19:
Lloh2:
	adrp	x8, _AVERROR_INVALIDDATA@GOTPAGE
Lloh3:
	ldr	x8, [x8, _AVERROR_INVALIDDATA@GOTPAGEOFF]
LBB0_20:
	ldr	w0, [x8]
LBB0_21:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_22:
	add	x25, x21, #24
	add	x22, x21, #16
	b	LBB0_25
LBB0_23:                                ;   in Loop: Header=BB0_25 Depth=1
	stp	xzr, xzr, [x25]
	ldr	w0, [x21, #20]
	mov	x1, x22
	bl	_ff_format_io_close
	mov	x0, x20
	mov	x1, x21
	bl	_reopen_demux_for_component
	mov	x23, x0
	str	xzr, [x21, #8]
LBB0_24:                                ;   in Loop: Header=BB0_25 Depth=1
	ldr	w0, [x24, #12]
	bl	_ff_check_interrupt
	orr	w8, w0, w23
	cbnz	w8, LBB0_18
LBB0_25:                                ; =>This Inner Loop Header: Depth=1
	ldr	x0, [x21, #48]
	mov	x1, x19
	bl	_av_read_frame
	tbz	w0, #31, LBB0_28
; %bb.26:                               ;   in Loop: Header=BB0_25 Depth=1
	ldr	x8, [x21, #8]
	cbnz	x8, LBB0_23
; %bb.27:                               ;   in Loop: Header=BB0_25 Depth=1
	mov	w23, #1
	b	LBB0_24
LBB0_28:
	ldr	w0, [x19, #4]
	ldr	x8, [x21, #48]
	ldr	x8, [x8]
	ldr	x8, [x8]
	ldr	x9, [x8, #8]
	mov	w10, #24464
	movk	w10, #1, lsl #16
	mul	x1, x9, x10
	ldr	w2, [x8]
	bl	_av_rescale
	mov	x8, x0
	mov	w0, #0
	str	x8, [x21]
	ldr	w8, [x21, #40]
	str	w8, [x19]
	b	LBB0_21
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_AVERROR_INVALIDDATA,4,2        ; @AVERROR_INVALIDDATA
	.comm	_AVERROR_EOF,4,2                ; @AVERROR_EOF
	.no_dead_strip	_dash_read_packet
.subsections_via_symbols
