	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nuv_read_dts
_nuv_read_dts:                          ## @nuv_read_dts
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r15
	movq	%rdx, %r12
	movl	%esi, -52(%rbp)                 ## 4-byte Spill
	movq	%rdi, %rbx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	8(%rdi), %r14
	movq	16(%rdi), %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	_HDRSIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	shlq	$2, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r13
	movq	%r12, -88(%rbp)                 ## 8-byte Spill
	movq	(%r12), %rsi
	movq	_SEEK_SET@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	callq	_avio_seek
	testq	%rax, %rax
	js	LBB0_17
## %bb.1:
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_nuv_resync
	testl	%eax, %eax
	je	LBB0_17
## %bb.2:
	movq	%rbx, -72(%rbp)                 ## 8-byte Spill
	movq	%r14, %rdi
	callq	_avio_feof
	testl	%eax, %eax
	je	LBB0_3
LBB0_17:
	movq	_AV_NOPTS_VALUE@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
LBB0_18:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_20
## %bb.19:
	movq	%rbx, %rax
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	leaq	32(%r13), %rax
	movq	%rax, -96(%rbp)                 ## 8-byte Spill
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	addq	$4, %rax
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_4 Depth=1
	movl	$1, %edx
	movq	-80(%rbp), %rax                 ## 8-byte Reload
LBB0_11:                                ##   in Loop: Header=BB0_4 Depth=1
	movl	-52(%rbp), %ecx                 ## 4-byte Reload
	cmpl	%ecx, (%rax)
	je	LBB0_12
LBB0_15:                                ##   in Loop: Header=BB0_4 Depth=1
	movq	%r14, %rdi
	movl	%r15d, %esi
	callq	_avio_skip
LBB0_16:                                ##   in Loop: Header=BB0_4 Depth=1
	movq	%r14, %rdi
	callq	_avio_feof
	testl	%eax, %eax
	movq	%rbx, %r15
	jne	LBB0_17
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r14, %rdi
	callq	_avio_tell
	cltq
	cmpq	%r15, %rax
	jge	LBB0_17
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	_HDRSIZE@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edx
	movq	%r14, %rdi
	movq	%r13, %rsi
	callq	_avio_read
	cmpl	(%rbx), %eax
	jl	LBB0_17
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	%r15, %rbx
	movl	(%r13), %r12d
	movq	-96(%rbp), %rdi                 ## 8-byte Reload
	callq	_AV_RL32
	movq	%rax, %rdi
	callq	_PKTSIZE
	movl	%eax, %r15d
	cmpl	$130, %r12d
	je	LBB0_7
## %bb.8:                               ##   in Loop: Header=BB0_4 Depth=1
	cmpl	$129, %r12d
	je	LBB0_16
## %bb.9:                               ##   in Loop: Header=BB0_4 Depth=1
	cmpl	$128, %r12d
	jne	LBB0_15
## %bb.10:                              ##   in Loop: Header=BB0_4 Depth=1
	xorl	%edx, %edx
	cmpl	$0, 8(%r13)
	sete	%dl
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	jmp	LBB0_11
LBB0_12:
	movq	-72(%rbp), %r12                 ## 8-byte Reload
	movq	8(%r12), %rdi
	movl	%edx, %ebx
	callq	_avio_tell
	movq	_HDRSIZE@GOTPCREL(%rip), %rcx
	movslq	(%rcx), %rcx
	movslq	%eax, %r14
	subq	%rcx, %r14
	addq	$16, %r13
	movq	%r13, %rdi
	callq	_AV_RL32
	movl	%ebx, %r9d
	movq	%rax, %rbx
	movq	(%r12), %rax
	movslq	-52(%rbp), %rcx                 ## 4-byte Folded Reload
	movl	(%rax,%rcx,4), %edi
	movq	_HDRSIZE@GOTPCREL(%rip), %rax
	addl	(%rax), %r15d
	testl	%r9d, %r9d
	je	LBB0_14
## %bb.13:
	movq	_AVINDEX_KEYFRAME@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
LBB0_14:
	movq	%r14, %rsi
	movq	%rbx, %rdx
	movl	%r15d, %ecx
	xorl	%r8d, %r8d
	callq	_av_add_index_entry
	movq	-88(%rbp), %rax                 ## 8-byte Reload
	movq	%r14, (%rax)
	jmp	LBB0_18
LBB0_20:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_HDRSIZE,4,2                    ## @HDRSIZE
	.comm	_SEEK_SET,4,2                   ## @SEEK_SET
	.comm	_AV_NOPTS_VALUE,8,3             ## @AV_NOPTS_VALUE
	.comm	_AVINDEX_KEYFRAME,4,2           ## @AVINDEX_KEYFRAME
	.no_dead_strip	_nuv_read_dts
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nuv_read_dts
_nuv_read_dts:                          ; @nuv_read_dts
	.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
	sub	sp, sp, #32
	mov	x22, x3
	mov	x19, x2
	stur	w1, [x29, #-92]                 ; 4-byte Folded Spill
	mov	x21, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-88]
	ldp	x24, x28, [x0, #8]
Lloh3:
	adrp	x27, _HDRSIZE@GOTPAGE
Lloh4:
	ldr	x27, [x27, _HDRSIZE@GOTPAGEOFF]
	ldr	w8, [x27]
	lsl	x8, x8, #2
	mov	x9, x8
Lloh5:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh6:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x7fffffff0
	sub	x23, x9, x8
	mov	sp, x23
	ldr	x1, [x2]
Lloh7:
	adrp	x8, _SEEK_SET@GOTPAGE
Lloh8:
	ldr	x8, [x8, _SEEK_SET@GOTPAGEOFF]
Lloh9:
	ldr	w2, [x8]
	mov	x0, x24
	bl	_avio_seek
	tbnz	x0, #63, LBB0_3
; %bb.1:
	mov	x0, x21
	mov	x1, x22
	bl	_nuv_resync
	cbz	w0, LBB0_3
; %bb.2:
	mov	x0, x24
	bl	_avio_feof
	cbz	w0, LBB0_6
LBB0_3:
Lloh10:
	adrp	x8, _AV_NOPTS_VALUE@GOTPAGE
Lloh11:
	ldr	x8, [x8, _AV_NOPTS_VALUE@GOTPAGEOFF]
Lloh12:
	ldr	x22, [x8]
LBB0_4:
	ldur	x8, [x29, #-88]
Lloh13:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh14:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh15:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_18
; %bb.5:
	mov	x0, x22
	sub	sp, x29, #80
	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_6:
	add	x25, x23, #32
	add	x8, x28, #4
	stur	x8, [x29, #-104]                ; 8-byte Folded Spill
	b	LBB0_11
LBB0_7:                                 ;   in Loop: Header=BB0_11 Depth=1
	mov	w20, #1
	ldur	x8, [x29, #-104]                ; 8-byte Folded Reload
LBB0_8:                                 ;   in Loop: Header=BB0_11 Depth=1
	ldr	w8, [x8]
	ldur	w9, [x29, #-92]                 ; 4-byte Folded Reload
	cmp	w8, w9
	b.eq	LBB0_17
LBB0_9:                                 ;   in Loop: Header=BB0_11 Depth=1
	mov	x0, x24
	mov	x1, x26
	bl	_avio_skip
LBB0_10:                                ;   in Loop: Header=BB0_11 Depth=1
	mov	x0, x24
	bl	_avio_feof
	cbnz	w0, LBB0_3
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, x24
	bl	_avio_tell
                                        ; kill: def $w0 killed $w0 def $x0
	sxtw	x8, w0
	cmp	x8, x22
	b.ge	LBB0_3
; %bb.12:                               ;   in Loop: Header=BB0_11 Depth=1
	ldr	w2, [x27]
	mov	x0, x24
	mov	x1, x23
	bl	_avio_read
	ldr	w8, [x27]
	cmp	w0, w8
	b.lt	LBB0_3
; %bb.13:                               ;   in Loop: Header=BB0_11 Depth=1
	ldr	w20, [x23]
	mov	x0, x25
	bl	_AV_RL32
	bl	_PKTSIZE
	mov	x26, x0
	cmp	w20, #130
	b.eq	LBB0_7
; %bb.14:                               ;   in Loop: Header=BB0_11 Depth=1
	cmp	w20, #129
	b.eq	LBB0_10
; %bb.15:                               ;   in Loop: Header=BB0_11 Depth=1
	cmp	w20, #128
	b.ne	LBB0_9
; %bb.16:                               ;   in Loop: Header=BB0_11 Depth=1
	ldr	w8, [x23, #8]
	cmp	w8, #0
	cset	w20, eq
	mov	x8, x28
	b	LBB0_8
LBB0_17:
	ldr	x0, [x21, #8]
	bl	_avio_tell
                                        ; kill: def $w0 killed $w0 def $x0
	ldrsw	x8, [x27]
	sxtw	x9, w0
	sub	x24, x9, x8
	add	x0, x23, #16
	bl	_AV_RL32
	mov	x22, x0
	ldr	x8, [x21]
	ldur	w9, [x29, #-92]                 ; 4-byte Folded Reload
	ldr	w0, [x8, w9, sxtw #2]
	ldr	w8, [x27]
	add	w3, w8, w26
Lloh16:
	adrp	x8, _AVINDEX_KEYFRAME@GOTPAGE
Lloh17:
	ldr	x8, [x8, _AVINDEX_KEYFRAME@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
	cmp	w20, #0
	csel	w5, wzr, w8, eq
	mov	x1, x24
	mov	x2, x22
	mov	w4, #0
	bl	_av_add_index_entry
	str	x24, [x19]
	b	LBB0_4
LBB0_18:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_HDRSIZE,4,2                    ; @HDRSIZE
	.comm	_SEEK_SET,4,2                   ; @SEEK_SET
	.comm	_AV_NOPTS_VALUE,8,3             ; @AV_NOPTS_VALUE
	.comm	_AVINDEX_KEYFRAME,4,2           ; @AVINDEX_KEYFRAME
	.no_dead_strip	_nuv_read_dts
.subsections_via_symbols
