	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function asf_read_pts
_asf_read_pts:                          ## @asf_read_pts
	.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	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, -52(%rbp)                 ## 4-byte Spill
	movq	%rdi, %r12
	movq	%rsp, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	%rdx, -88(%rbp)                 ## 8-byte Spill
	movl	(%rdx), %ebx
	movq	_ASF_MAX_STREAMS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	shlq	$2, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r15
	movl	(%r12), %eax
	testl	%eax, %eax
	jle	LBB0_12
## %bb.1:
	cmpl	$8, %eax
	jae	LBB0_3
## %bb.2:
	xorl	%ecx, %ecx
	jmp	LBB0_11
LBB0_3:
	movl	%eax, %ecx
	andl	$-8, %ecx
	movd	%ebx, %xmm0
	pshufd	$0, %xmm0, %xmm0                ## xmm0 = xmm0[0,0,0,0]
	leaq	-8(%rcx), %rdi
	movq	%rdi, %rsi
	shrq	$3, %rsi
	incq	%rsi
	movl	%esi, %edx
	andl	$7, %edx
	cmpq	$56, %rdi
	jae	LBB0_5
## %bb.4:
	xorl	%edi, %edi
	jmp	LBB0_7
LBB0_5:
	andq	$-8, %rsi
	xorl	%edi, %edi
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movdqa	%xmm0, (%r15,%rdi,4)
	movdqa	%xmm0, 16(%r15,%rdi,4)
	movdqa	%xmm0, 32(%r15,%rdi,4)
	movdqa	%xmm0, 48(%r15,%rdi,4)
	movdqa	%xmm0, 64(%r15,%rdi,4)
	movdqa	%xmm0, 80(%r15,%rdi,4)
	movdqa	%xmm0, 96(%r15,%rdi,4)
	movdqa	%xmm0, 112(%r15,%rdi,4)
	movdqa	%xmm0, 128(%r15,%rdi,4)
	movdqa	%xmm0, 144(%r15,%rdi,4)
	movdqa	%xmm0, 160(%r15,%rdi,4)
	movdqa	%xmm0, 176(%r15,%rdi,4)
	movdqa	%xmm0, 192(%r15,%rdi,4)
	movdqa	%xmm0, 208(%r15,%rdi,4)
	movdqa	%xmm0, 224(%r15,%rdi,4)
	movdqa	%xmm0, 240(%r15,%rdi,4)
	addq	$64, %rdi
	addq	$-8, %rsi
	jne	LBB0_6
LBB0_7:
	testq	%rdx, %rdx
	je	LBB0_10
## %bb.8:
	leaq	(%r15,%rdi,4), %rsi
	addq	$16, %rsi
	shlq	$5, %rdx
	xorl	%edi, %edi
	.p2align	4, 0x90
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movdqa	%xmm0, -16(%rsi,%rdi)
	movdqa	%xmm0, (%rsi,%rdi)
	addq	$32, %rdi
	cmpq	%rdi, %rdx
	jne	LBB0_9
LBB0_10:
	cmpq	%rax, %rcx
	je	LBB0_12
	.p2align	4, 0x90
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	movl	%ebx, (%r15,%rcx,4)
	incq	%rcx
	cmpq	%rcx, %rax
	jne	LBB0_11
LBB0_12:
	movq	32(%r12), %rax
	movq	%rax, -96(%rbp)                 ## 8-byte Spill
	movl	4(%r12), %esi
	testl	%esi, %esi
	jle	LBB0_14
## %bb.13:
	addl	%esi, %ebx
	movq	24(%r12), %rax
	movl	(%rax), %edi
	movl	%edi, %ecx
	notl	%ecx
	addl	%ebx, %ecx
	movl	%ecx, %eax
	cltd
	idivl	%esi
	subl	%edx, %edi
	addl	%ecx, %edi
	movl	%edi, %ebx
LBB0_14:
	movq	-88(%rbp), %rax                 ## 8-byte Reload
	movl	%ebx, (%rax)
	movl	16(%r12), %edi
	movq	_SEEK_SET@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	%ebx, %esi
	callq	_avio_seek
	testq	%rax, %rax
	js	LBB0_15
## %bb.16:
	movq	%r14, -80(%rbp)                 ## 8-byte Spill
	movq	%r12, %rdi
	callq	_ff_read_frame_flush
	movq	%r12, %rdi
	callq	_asf_reset_header
	leaq	-72(%rbp), %rsi
	movq	%r12, %rdi
	jmp	LBB0_17
	.p2align	4, 0x90
LBB0_19:                                ##   in Loop: Header=BB0_17 Depth=1
	leaq	-72(%rbp), %rbx
	movq	%rbx, %rdi
	callq	_av_packet_unref
	movq	%r12, %rdi
	movq	%rbx, %rsi
LBB0_17:                                ## =>This Inner Loop Header: Depth=1
	callq	_av_read_frame
	testq	%rax, %rax
	js	LBB0_18
## %bb.20:                              ##   in Loop: Header=BB0_17 Depth=1
	movq	_AV_PKT_FLAG_KEY@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, -68(%rbp)
	je	LBB0_19
## %bb.21:                              ##   in Loop: Header=BB0_17 Depth=1
	movl	-72(%rbp), %r13d
	movq	%r12, %rbx
	movslq	-64(%rbp), %r12
	movq	-96(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rcx
	movq	%rcx, -104(%rbp)                ## 8-byte Spill
	movq	8(%rbx), %rax
	movq	(%rax,%r12,8), %rax
	movq	(%rax), %rax
	movq	%rax, -112(%rbp)                ## 8-byte Spill
	movl	(%rcx,%rax,4), %r14d
	xorl	%edi, %edi
	cmpl	%r14d, -60(%rbp)
	sete	%dil
	callq	_av_assert1
	movq	8(%rbx), %rax
	movq	(%rax,%r12,8), %rdi
	movl	-56(%rbp), %ecx
	movl	%r14d, %r8d
	subl	(%r15,%r12,4), %r8d
	incl	%r8d
	movq	_AVINDEX_KEYFRAME@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	movl	%r14d, %esi
	movl	%r13d, %edx
	callq	_av_add_index_entry
	movq	-112(%rbp), %rax                ## 8-byte Reload
	movq	-104(%rbp), %rcx                ## 8-byte Reload
	movl	(%rcx,%rax,4), %eax
	incl	%eax
	movl	%eax, (%r15,%r12,4)
	movq	%rbx, %r12
	movl	-52(%rbp), %eax                 ## 4-byte Reload
	cmpl	%eax, -64(%rbp)
	jne	LBB0_19
## %bb.22:
	leaq	-72(%rbp), %rdi
	callq	_av_packet_unref
	movq	-88(%rbp), %rax                 ## 8-byte Reload
	movl	%r14d, (%rax)
	movq	-80(%rbp), %r14                 ## 8-byte Reload
	movl	%r13d, %eax
	jmp	LBB0_23
LBB0_18:
	movq	_AV_LOG_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	movq	%r12, %rdi
	callq	_av_log
	movq	_AV_NOPTS_VALUE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	-80(%rbp), %r14                 ## 8-byte Reload
	jmp	LBB0_23
LBB0_15:
	movq	_AV_NOPTS_VALUE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_23:
	movq	%r14, %rsp
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_25
## %bb.24:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_25:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_ASF_MAX_STREAMS,4,2            ## @ASF_MAX_STREAMS
	.comm	_SEEK_SET,4,2                   ## @SEEK_SET
	.comm	_AV_NOPTS_VALUE,4,2             ## @AV_NOPTS_VALUE
	.comm	_AV_LOG_INFO,4,2                ## @AV_LOG_INFO
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"asf_read_pts failed\n"

	.comm	_AV_PKT_FLAG_KEY,4,2            ## @AV_PKT_FLAG_KEY
	.comm	_AVINDEX_KEYFRAME,4,2           ## @AVINDEX_KEYFRAME
	.no_dead_strip	_asf_read_pts
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function asf_read_pts
_asf_read_pts:                          ; @asf_read_pts
	.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, #64
	mov	x21, x2
	stur	w1, [x29, #-116]                ; 4-byte Folded Spill
	mov	x20, x0
	mov	x19, sp
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-88]
	ldr	x8, [x0, #32]
	stur	x8, [x29, #-128]                ; 8-byte Folded Spill
	ldr	w1, [x2]
Lloh3:
	adrp	x8, _ASF_MAX_STREAMS@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ASF_MAX_STREAMS@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	lsl	x8, x8, #2
	mov	x9, x8
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x7fffffff0
	sub	x26, x9, x8
	mov	sp, x26
	ldr	w8, [x0]
	cmp	w8, #1
	b.lt	LBB0_8
; %bb.1:
	cmp	w8, #16
	b.hs	LBB0_3
; %bb.2:
	mov	x9, #0
	b	LBB0_6
LBB0_3:
	and	x9, x8, #0xfffffff0
	dup.4s	v0, w1
	add	x10, x26, #32
	mov	x11, x9
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	stp	q0, q0, [x10, #-32]
	stp	q0, q0, [x10], #64
	subs	x11, x11, #16
	b.ne	LBB0_4
; %bb.5:
	cmp	x9, x8
	b.eq	LBB0_8
LBB0_6:
	add	x10, x26, x9, lsl #2
	sub	x8, x8, x9
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	str	w1, [x10], #4
	subs	x8, x8, #1
	b.ne	LBB0_7
LBB0_8:
	ldr	w8, [x20, #4]
	cmp	w8, #1
	b.lt	LBB0_10
; %bb.9:
	ldr	x9, [x20, #24]
	ldr	w9, [x9]
	mvn	w10, w9
	add	w11, w8, w1
	add	w10, w11, w10
	sdiv	w11, w10, w8
	neg	w12, w10
	madd	w8, w11, w8, w12
	add	w8, w9, w8
	add	w1, w8, w10
LBB0_10:
	str	w1, [x21]
	ldr	w0, [x20, #16]
Lloh8:
	adrp	x8, _SEEK_SET@GOTPAGE
Lloh9:
	ldr	x8, [x8, _SEEK_SET@GOTPAGEOFF]
Lloh10:
	ldr	w2, [x8]
	bl	_avio_seek
	tbnz	x0, #63, LBB0_19
; %bb.11:
	stp	x21, x19, [x29, #-144]          ; 16-byte Folded Spill
	mov	x0, x20
	bl	_ff_read_frame_flush
	mov	x0, x20
	bl	_asf_reset_header
	sub	x1, x29, #112
	mov	x0, x20
	bl	_av_read_frame
	tbnz	x0, #63, LBB0_17
; %bb.12:
Lloh11:
	adrp	x27, _AV_PKT_FLAG_KEY@GOTPAGE
Lloh12:
	ldr	x27, [x27, _AV_PKT_FLAG_KEY@GOTPAGEOFF]
Lloh13:
	adrp	x28, _AVINDEX_KEYFRAME@GOTPAGE
Lloh14:
	ldr	x28, [x28, _AVINDEX_KEYFRAME@GOTPAGEOFF]
	b	LBB0_14
LBB0_13:                                ;   in Loop: Header=BB0_14 Depth=1
	sub	x0, x29, #112
	bl	_av_packet_unref
	sub	x1, x29, #112
	mov	x0, x20
	bl	_av_read_frame
	tbnz	x0, #63, LBB0_17
LBB0_14:                                ; =>This Inner Loop Header: Depth=1
	ldur	w8, [x29, #-108]
	ldr	w9, [x27]
	tst	w9, w8
	b.eq	LBB0_13
; %bb.15:                               ;   in Loop: Header=BB0_14 Depth=1
	ldur	w22, [x29, #-112]
	ldursw	x24, [x29, #-104]
	ldur	x8, [x29, #-128]                ; 8-byte Folded Reload
	ldr	x19, [x8]
	ldr	x8, [x20, #8]
	lsl	x21, x24, #3
	ldr	x8, [x8, x21]
	ldr	x8, [x8]
	lsl	x25, x8, #2
	ldr	w23, [x19, x25]
	ldur	w8, [x29, #-100]
	cmp	w8, w23
	cset	w0, eq
	bl	_av_assert1
	ldr	x8, [x20, #8]
	ldr	x0, [x8, x21]
	ldur	w3, [x29, #-96]
	lsl	x21, x24, #2
	ldr	w8, [x26, x21]
	sub	w8, w23, w8
	add	w4, w8, #1
	ldr	w5, [x28]
	mov	x1, x23
	mov	x2, x22
	bl	_av_add_index_entry
	ldr	w8, [x19, x25]
	add	w8, w8, #1
	str	w8, [x26, x21]
	ldur	w8, [x29, #-104]
	ldur	w9, [x29, #-116]                ; 4-byte Folded Reload
	cmp	w8, w9
	b.ne	LBB0_13
; %bb.16:
	sub	x0, x29, #112
	bl	_av_packet_unref
	ldur	x8, [x29, #-144]                ; 8-byte Folded Reload
	str	w23, [x8]
	b	LBB0_18
LBB0_17:
Lloh15:
	adrp	x8, _AV_LOG_INFO@GOTPAGE
Lloh16:
	ldr	x8, [x8, _AV_LOG_INFO@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
Lloh18:
	adrp	x2, l_.str@PAGE
Lloh19:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x20
	bl	_av_log
Lloh20:
	adrp	x8, _AV_NOPTS_VALUE@GOTPAGE
Lloh21:
	ldr	x8, [x8, _AV_NOPTS_VALUE@GOTPAGEOFF]
Lloh22:
	ldr	w22, [x8]
LBB0_18:
	ldur	x19, [x29, #-136]               ; 8-byte Folded Reload
	b	LBB0_20
LBB0_19:
Lloh23:
	adrp	x8, _AV_NOPTS_VALUE@GOTPAGE
Lloh24:
	ldr	x8, [x8, _AV_NOPTS_VALUE@GOTPAGEOFF]
Lloh25:
	ldr	w22, [x8]
LBB0_20:
	mov	sp, x19
	ldur	x8, [x29, #-88]
Lloh26:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh27:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh28:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_22
; %bb.21:
	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_22:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.cfi_endproc
                                        ; -- End function
	.comm	_ASF_MAX_STREAMS,4,2            ; @ASF_MAX_STREAMS
	.comm	_SEEK_SET,4,2                   ; @SEEK_SET
	.comm	_AV_NOPTS_VALUE,4,2             ; @AV_NOPTS_VALUE
	.comm	_AV_LOG_INFO,4,2                ; @AV_LOG_INFO
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"asf_read_pts failed\n"

	.comm	_AV_PKT_FLAG_KEY,4,2            ; @AV_PKT_FLAG_KEY
	.comm	_AVINDEX_KEYFRAME,4,2           ; @AVINDEX_KEYFRAME
	.no_dead_strip	_asf_read_pts
.subsections_via_symbols
