	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function seek_chapter
_seek_chapter:                          ## @seek_chapter
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r14d
	movq	%rdi, %r15
	callq	_get_master_clock
	movl	%eax, %r12d
	movq	(%r15), %rax
	movl	(%rax), %ecx
	testl	%ecx, %ecx
	je	LBB0_7
## %bb.1:
	jle	LBB0_2
## %bb.3:
	movq	_AV_TIME_BASE@GOTPCREL(%rip), %rcx
	imull	(%rcx), %r12d
	xorl	%ebx, %ebx
	movq	_AV_TIME_BASE_Q@GOTPCREL(%rip), %r13
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%rax), %rax
	movq	(%rax,%rbx,8), %rax
	movl	(%r13), %esi
	movl	(%rax), %ecx
	movl	4(%rax), %edx
	movl	%r12d, %edi
	callq	_av_compare_ts
	testq	%rax, %rax
	js	LBB0_8
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	incq	%rbx
	movq	(%r15), %rax
	movslq	(%rax), %rcx
	cmpq	%rcx, %rbx
	jl	LBB0_4
	jmp	LBB0_6
LBB0_2:
	xorl	%ebx, %ebx
	jmp	LBB0_6
LBB0_8:
	decl	%ebx
LBB0_6:
	addl	%r14d, %ebx
	movl	%ebx, %edi
	xorl	%esi, %esi
	callq	_FFMAX
	movl	%eax, %ebx
	movq	(%r15), %rax
	cmpl	(%rax), %ebx
	jge	LBB0_7
## %bb.9:
	movq	_AV_LOG_VERBOSE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	xorl	%edi, %edi
	movl	%ebx, %ecx
	callq	_av_log
	movq	(%r15), %rax
	movq	8(%rax), %rax
	movslq	%ebx, %rcx
	movq	(%rax,%rcx,8), %rax
	movl	(%rax), %esi
	movl	4(%rax), %edi
	movq	_AV_TIME_BASE_Q@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_av_rescale_q
	movq	%r15, %rdi
	movl	%eax, %esi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_stream_seek                    ## TAILCALL
LBB0_7:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AV_TIME_BASE,4,2               ## @AV_TIME_BASE
	.comm	_AV_TIME_BASE_Q,4,2             ## @AV_TIME_BASE_Q
	.comm	_AV_LOG_VERBOSE,4,2             ## @AV_LOG_VERBOSE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Seeking to chapter %d.\n"

	.no_dead_strip	_seek_chapter
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function seek_chapter
_seek_chapter:                          ; @seek_chapter
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x20, x1
	mov	x19, x0
	bl	_get_master_clock
	ldr	x8, [x19]
	ldr	w9, [x8]
	cbz	w9, LBB0_9
; %bb.1:
Lloh0:
	adrp	x22, _AV_TIME_BASE_Q@GOTPAGE
Lloh1:
	ldr	x22, [x22, _AV_TIME_BASE_Q@GOTPAGEOFF]
	cmp	w9, #1
	b.lt	LBB0_5
; %bb.2:
	mov	x23, #0
Lloh2:
	adrp	x9, _AV_TIME_BASE@GOTPAGE
Lloh3:
	ldr	x9, [x9, _AV_TIME_BASE@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x9]
	mul	w21, w9, w0
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x8, #8]
	ldr	x8, [x8, x23, lsl #3]
	ldr	w1, [x22]
	ldp	w3, w2, [x8]
	mov	x0, x21
	bl	_av_compare_ts
	tbnz	x0, #63, LBB0_6
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	add	x23, x23, #1
	ldr	x8, [x19]
	ldrsw	x9, [x8]
	cmp	x23, x9
	b.lt	LBB0_3
	b	LBB0_7
LBB0_5:
	mov	w23, #0
	b	LBB0_7
LBB0_6:
	sub	w23, w23, #1
LBB0_7:
	add	w0, w23, w20
	mov	w1, #0
	bl	_FFMAX
	ldr	x8, [x19]
	ldr	w8, [x8]
	cmp	w0, w8
	b.ge	LBB0_9
; %bb.8:
	mov	x20, x0
Lloh5:
	adrp	x8, _AV_LOG_VERBOSE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _AV_LOG_VERBOSE@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
Lloh8:
	adrp	x2, l_.str@PAGE
Lloh9:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, #0
	mov	x3, x20
	bl	_av_log
	ldr	x8, [x19]
	ldr	x8, [x8, #8]
	ldr	x8, [x8, w20, sxtw #3]
	ldp	w1, w0, [x8]
	ldr	w2, [x22]
	bl	_av_rescale_q
	mov	x1, x0
	mov	x0, x19
	mov	w2, #0
	mov	w3, #0
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_stream_seek
LBB0_9:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_AV_TIME_BASE,4,2               ; @AV_TIME_BASE
	.comm	_AV_TIME_BASE_Q,4,2             ; @AV_TIME_BASE_Q
	.comm	_AV_LOG_VERBOSE,4,2             ; @AV_LOG_VERBOSE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Seeking to chapter %d.\n"

	.no_dead_strip	_seek_chapter
.subsections_via_symbols
