	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function select_cur_seq_no
_select_cur_seq_no:                     ## @select_cur_seq_no
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rdi, %r14
	cmpq	$0, 24(%rsi)
	jne	LBB0_5
## %bb.1:
	cmpl	$0, 24(%r14)
	jne	LBB0_4
## %bb.2:
	xorl	%eax, %eax
	callq	_av_gettime_relative
	movq	%rax, %r15
	subq	(%rbx), %r15
	movq	%rbx, %rdi
	callq	_default_reload_interval
	cmpq	%rax, %r15
	jl	LBB0_4
## %bb.3:
	movl	32(%rbx), %esi
	movq	%r14, %rdi
	movq	%rbx, %rdx
	xorl	%ecx, %ecx
	callq	_parse_playlist
LBB0_4:
	cmpq	$0, 24(%rbx)
	je	LBB0_7
LBB0_5:
	movq	(%r14), %rdx
	movq	_AV_NOPTS_VALUE@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rdx
	jne	LBB0_6
## %bb.13:
	movl	8(%rbx), %r15d
	jmp	LBB0_14
LBB0_6:
	leaq	-28(%rbp), %rcx
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_find_timestamp_in_playlist
	movl	-28(%rbp), %r15d
LBB0_14:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	cmpl	$0, 24(%r14)
	jne	LBB0_10
## %bb.8:
	movq	8(%r14), %r15
	movq	8(%rbx), %rax
	cmpq	%rax, %r15
	jl	LBB0_10
## %bb.9:
	addq	16(%rbx), %rax
	cmpq	%rax, %r15
	jl	LBB0_14
LBB0_10:
	movq	16(%r14), %rdi
	movq	8(%rbx), %r15
	movq	16(%rbx), %rsi
	testq	%rdi, %rdi
	js	LBB0_11
## %bb.12:
	decq	%rsi
	callq	_FFMIN
	addl	%eax, %r15d
	jmp	LBB0_14
LBB0_11:
	addq	%rdi, %rsi
	movq	%rsi, %rdi
	xorl	%esi, %esi
	callq	_FFMAX
	addl	%eax, %r15d
	jmp	LBB0_14
	.cfi_endproc
                                        ## -- End function
	.comm	_AV_NOPTS_VALUE,8,3             ## @AV_NOPTS_VALUE
	.no_dead_strip	_select_cur_seq_no
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function select_cur_seq_no
_select_cur_seq_no:                     ; @select_cur_seq_no
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x19, x1
	mov	x20, x0
	ldr	x8, [x1, #24]
	cbnz	x8, LBB0_5
; %bb.1:
	ldr	w8, [x20, #24]
	cbnz	w8, LBB0_4
; %bb.2:
	bl	_av_gettime_relative
	ldr	x8, [x19]
	sub	x21, x0, x8
	mov	x0, x19
	bl	_default_reload_interval
	cmp	x21, x0
	b.lt	LBB0_4
; %bb.3:
	ldr	w1, [x19, #32]
	mov	x0, x20
	mov	x2, x19
	mov	x3, #0
	bl	_parse_playlist
LBB0_4:
	ldr	x8, [x19, #24]
	cbz	x8, LBB0_9
LBB0_5:
	ldr	x2, [x20]
Lloh0:
	adrp	x8, _AV_NOPTS_VALUE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AV_NOPTS_VALUE@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x2, x8
	b.ne	LBB0_7
; %bb.6:
	ldr	w0, [x19, #8]
	b	LBB0_8
LBB0_7:
	add	x3, sp, #12
	mov	x0, x20
	mov	x1, x19
	bl	_find_timestamp_in_playlist
	ldr	w0, [sp, #12]
LBB0_8:
                                        ; kill: def $w0 killed $w0 killed $x0
	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
	add	sp, sp, #64
	ret
LBB0_9:
	ldr	w8, [x20, #24]
	cbnz	w8, LBB0_12
; %bb.10:
	ldr	x0, [x20, #8]
	ldr	x8, [x19, #8]
	cmp	x0, x8
	b.lt	LBB0_12
; %bb.11:
	ldr	x9, [x19, #16]
	add	x8, x9, x8
	cmp	x0, x8
	b.lt	LBB0_8
LBB0_12:
	ldr	x0, [x20, #16]
	ldp	x20, x8, [x19, #8]
	tbnz	x0, #63, LBB0_14
; %bb.13:
	sub	x1, x8, #1
	bl	_FFMIN
	add	w0, w0, w20
	b	LBB0_8
LBB0_14:
	add	x0, x8, x0
	mov	w1, #0
	bl	_FFMAX
	add	w0, w0, w20
	b	LBB0_8
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_AV_NOPTS_VALUE,8,3             ; @AV_NOPTS_VALUE
	.no_dead_strip	_select_cur_seq_no
.subsections_via_symbols
