	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function seek_to_start
_seek_to_start:                         ## @seek_to_start
	.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
	movq	%rdi, %r15
	movq	_INT64_MIN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	(%rsi), %ecx
	movq	%rsi, %rdi
	movl	$-1, %esi
	movl	%ecx, %r8d
	xorl	%r9d, %r9d
	callq	_avformat_seek_file
	testl	%eax, %eax
	js	LBB0_30
## %bb.1:
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movl	(%r15), %eax
	testl	%eax, %eax
	jle	LBB0_28
## %bb.2:
	movq	_input_streams@GOTPCREL(%rip), %rcx
	movq	(%rcx), %r8
	movslq	4(%r15), %r9
	movq	_AVMEDIA_TYPE_AUDIO@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rdx
	cmpl	$1, %eax
	jne	LBB0_12
## %bb.3:
	xorl	%edi, %edi
	xorl	%r14d, %r14d
LBB0_4:
	testb	$1, %al
	je	LBB0_7
## %bb.5:
	addq	%r9, %rdi
	movq	(%r8,%rdi,8), %rcx
	movq	40(%rcx), %rsi
	cmpq	%rdx, (%rsi)
	jne	LBB0_7
## %bb.6:
	cmpl	$0, (%rcx)
	movl	$1, %ecx
	cmovnel	%ecx, %r14d
LBB0_7:
	leaq	20(%r15), %rbx
	xorl	%r13d, %r13d
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_25:                                ##   in Loop: Header=BB0_8 Depth=1
	movl	%edx, 16(%r15)
	movl	%edx, %ecx
LBB0_26:                                ##   in Loop: Header=BB0_8 Depth=1
	movl	24(%r12), %eax
	subl	16(%r12), %eax
	addl	%eax, %edi
	movq	%rbx, %rsi
	callq	_duration_max
	movl	%eax, 16(%r15)
	movl	(%r15), %eax
LBB0_27:                                ##   in Loop: Header=BB0_8 Depth=1
	incq	%r13
	cmpl	%eax, %r13d
	jge	LBB0_28
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movslq	4(%r15), %rcx
	addq	%r13, %rcx
	movq	_input_streams@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	movq	(%rdx,%rcx,8), %r12
	testl	%r14d, %r14d
	je	LBB0_18
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=1
	movq	40(%r12), %rcx
	movq	(%rcx), %rdx
	movq	_AVMEDIA_TYPE_AUDIO@GOTPCREL(%rip), %rsi
	cmpq	(%rsi), %rdx
	jne	LBB0_27
## %bb.10:                              ##   in Loop: Header=BB0_8 Depth=1
	movl	(%r12), %edi
	testl	%edi, %edi
	je	LBB0_27
## %bb.11:                              ##   in Loop: Header=BB0_8 Depth=1
	movq	8(%r12), %rax
	movl	(%rax), %edx
	movl	8(%rcx), %esi
	shlq	$32, %rsi
	orq	$1, %rsi
	jmp	LBB0_22
	.p2align	4, 0x90
LBB0_18:                                ##   in Loop: Header=BB0_8 Depth=1
	movq	32(%r12), %rdi
	testq	%rdi, %rdi
	jne	LBB0_21
## %bb.19:                              ##   in Loop: Header=BB0_8 Depth=1
	movq	8(%r12), %rax
	movq	8(%rax), %rdi
	testq	%rdi, %rdi
	je	LBB0_20
LBB0_21:                                ##   in Loop: Header=BB0_8 Depth=1
	callq	_av_inv_q
	movq	8(%r12), %rcx
	movl	(%rcx), %edx
	movl	$1, %edi
	movq	%rax, %rsi
LBB0_22:                                ##   in Loop: Header=BB0_8 Depth=1
	callq	_av_rescale_q
	movl	%eax, %edi
LBB0_23:                                ##   in Loop: Header=BB0_8 Depth=1
	cmpl	$0, (%rbx)
	movq	8(%r12), %rax
	movl	(%rax), %edx
	je	LBB0_25
## %bb.24:                              ##   in Loop: Header=BB0_8 Depth=1
	movl	16(%r15), %ecx
	jmp	LBB0_26
LBB0_20:                                ##   in Loop: Header=BB0_8 Depth=1
	movl	$1, %edi
	jmp	LBB0_23
LBB0_28:
	movq	8(%r15), %rcx
	testq	%rcx, %rcx
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	jle	LBB0_30
## %bb.29:
	decq	%rcx
	movq	%rcx, 8(%r15)
LBB0_30:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_12:
	movl	%eax, %r11d
	andl	$-2, %r11d
	leaq	(%r8,%r9,8), %rsi
	addq	$8, %rsi
	xorl	%edi, %edi
	movl	$1, %r10d
	xorl	%r14d, %r14d
	jmp	LBB0_13
	.p2align	4, 0x90
LBB0_17:                                ##   in Loop: Header=BB0_13 Depth=1
	addq	$2, %rdi
	cmpq	%rdi, %r11
	je	LBB0_4
LBB0_13:                                ## =>This Inner Loop Header: Depth=1
	movq	-8(%rsi,%rdi,8), %rcx
	movq	40(%rcx), %rbx
	cmpq	%rdx, (%rbx)
	jne	LBB0_15
## %bb.14:                              ##   in Loop: Header=BB0_13 Depth=1
	cmpl	$0, (%rcx)
	cmovnel	%r10d, %r14d
LBB0_15:                                ##   in Loop: Header=BB0_13 Depth=1
	movq	(%rsi,%rdi,8), %rcx
	movq	40(%rcx), %rbx
	cmpq	%rdx, (%rbx)
	jne	LBB0_17
## %bb.16:                              ##   in Loop: Header=BB0_13 Depth=1
	cmpl	$0, (%rcx)
	cmovnel	%r10d, %r14d
	jmp	LBB0_17
	.cfi_endproc
                                        ## -- End function
	.comm	_INT64_MIN,4,2                  ## @INT64_MIN
	.comm	_input_streams,8,3              ## @input_streams
	.comm	_AVMEDIA_TYPE_AUDIO,8,3         ## @AVMEDIA_TYPE_AUDIO
	.no_dead_strip	_seek_to_start
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function seek_to_start
_seek_to_start:                         ; @seek_to_start
	.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, x0
Lloh0:
	adrp	x8, _INT64_MIN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _INT64_MIN@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	ldr	w3, [x1]
	mov	x0, x1
	mov	w1, #-1
	mov	x4, x3
	mov	w5, #0
	bl	_avformat_seek_file
	mov	x20, x0
	tbnz	w0, #31, LBB0_23
; %bb.1:
	ldr	w8, [x19]
	cmp	w8, #1
	b.lt	LBB0_21
; %bb.2:
	mov	w22, #0
Lloh3:
	adrp	x23, _input_streams@GOTPAGE
Lloh4:
	ldr	x23, [x23, _input_streams@GOTPAGEOFF]
	ldr	x10, [x23]
	ldrsw	x11, [x19, #4]
Lloh5:
	adrp	x24, _AVMEDIA_TYPE_AUDIO@GOTPAGE
Lloh6:
	ldr	x24, [x24, _AVMEDIA_TYPE_AUDIO@GOTPAGEOFF]
	ldr	x9, [x24]
	add	x10, x10, x11, lsl #3
	mov	x11, x8
	b	LBB0_4
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x10, x10, #8
	subs	x11, x11, #1
	b.eq	LBB0_6
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x12, [x10]
	ldr	x13, [x12, #40]
	ldr	x13, [x13]
	cmp	x13, x9
	b.ne	LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w12, [x12]
	cmp	w12, #0
	csinc	w22, w22, wzr, eq
	b	LBB0_3
LBB0_6:
	mov	x25, #0
	add	x21, x19, #20
	b	LBB0_10
LBB0_7:                                 ;   in Loop: Header=BB0_10 Depth=1
	ldr	w3, [x19, #16]
LBB0_8:                                 ;   in Loop: Header=BB0_10 Depth=1
	ldr	w8, [x26, #24]
	ldr	w9, [x26, #16]
	sub	w8, w8, w9
	add	w0, w0, w8
	mov	x1, x21
	bl	_duration_max
	str	w0, [x19, #16]
	ldr	w8, [x19]
LBB0_9:                                 ;   in Loop: Header=BB0_10 Depth=1
	add	x25, x25, #1
	cmp	w25, w8
	b.ge	LBB0_21
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x23]
	ldrsw	x10, [x19, #4]
	add	x10, x25, x10
	ldr	x26, [x9, x10, lsl #3]
	cbz	w22, LBB0_14
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=1
	ldr	x9, [x26, #40]
	ldr	x10, [x9]
	ldr	x11, [x24]
	cmp	x10, x11
	b.ne	LBB0_9
; %bb.12:                               ;   in Loop: Header=BB0_10 Depth=1
	ldr	w0, [x26]
	cbz	w0, LBB0_9
; %bb.13:                               ;   in Loop: Header=BB0_10 Depth=1
	ldr	x8, [x26, #8]
	ldr	w2, [x8]
	ldr	w8, [x9, #8]
	mov	w1, #1
	bfi	x1, x8, #32, #32
	b	LBB0_17
LBB0_14:                                ;   in Loop: Header=BB0_10 Depth=1
	ldr	x0, [x26, #32]
	cbnz	x0, LBB0_16
; %bb.15:                               ;   in Loop: Header=BB0_10 Depth=1
	ldr	x8, [x26, #8]
	ldr	x0, [x8, #8]
	cbz	x0, LBB0_20
LBB0_16:                                ;   in Loop: Header=BB0_10 Depth=1
	bl	_av_inv_q
	mov	x1, x0
	ldr	x8, [x26, #8]
	ldr	w2, [x8]
	mov	w0, #1
LBB0_17:                                ;   in Loop: Header=BB0_10 Depth=1
	bl	_av_rescale_q
LBB0_18:                                ;   in Loop: Header=BB0_10 Depth=1
	ldr	w8, [x21]
	ldr	x9, [x26, #8]
	ldr	w2, [x9]
	cbnz	w8, LBB0_7
; %bb.19:                               ;   in Loop: Header=BB0_10 Depth=1
	str	w2, [x19, #16]
	mov	x3, x2
	b	LBB0_8
LBB0_20:                                ;   in Loop: Header=BB0_10 Depth=1
	mov	w0, #1
	b	LBB0_18
LBB0_21:
	ldr	x8, [x19, #8]
	subs	x8, x8, #1
	b.lt	LBB0_23
; %bb.22:
	str	x8, [x19, #8]
LBB0_23:
	mov	x0, x20
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_INT64_MIN,4,2                  ; @INT64_MIN
	.comm	_input_streams,8,3              ; @input_streams
	.comm	_AVMEDIA_TYPE_AUDIO,8,3         ; @AVMEDIA_TYPE_AUDIO
	.no_dead_strip	_seek_to_start
.subsections_via_symbols
