	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function real_seek
_real_seek:                             ## @real_seek
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r9d, %r14d
	movl	%esi, %r15d
	movq	%rdi, %r12
	movq	16(%rbp), %r9
	movq	%rdx, -64(%rbp)
	movq	%rcx, -56(%rbp)
	movq	%r8, -48(%rbp)
	movq	16(%rdi), %r13
	testl	%esi, %esi
	js	LBB0_3
## %bb.1:
	cmpl	%r15d, (%r12)
	jle	LBB0_25
## %bb.2:
	movq	8(%r12), %rax
	movl	%r15d, %ecx
	movq	(%rax,%rcx,8), %rax
	movl	(%rax), %edi
	movq	_AV_TIME_BASE_Q@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-64(%rbp), %rdx
	leaq	-56(%rbp), %rcx
	leaq	-48(%rbp), %r8
	movq	%r9, %rbx
	callq	_rescale_interval
	movq	%rbx, %r9
	movq	-56(%rbp), %rcx
LBB0_3:
	testq	%rcx, %rcx
	jle	LBB0_7
## %bb.4:
	cmpl	$0, 32(%r13)
	je	LBB0_5
## %bb.6:
	movl	(%r13), %edx
	cmpl	$1, %edx
	jle	LBB0_7
## %bb.8:
	movq	16(%r13), %rax
	xorl	%ebx, %ebx
	jmp	LBB0_9
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_9 Depth=1
	movl	%esi, %ebx
LBB0_12:                                ##   in Loop: Header=BB0_9 Depth=1
	movl	%edx, %esi
	subl	%ebx, %esi
	cmpl	$1, %esi
	jle	LBB0_13
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	leal	(%rdx,%rbx), %edi
	movl	%edi, %esi
	shrl	$31, %esi
	addl	%edi, %esi
	sarl	%esi
	movslq	%esi, %rdi
	cmpq	(%rax,%rdi,8), %rcx
	jge	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_9 Depth=1
	movl	%esi, %edx
	jmp	LBB0_12
LBB0_7:
	movq	16(%r13), %rax
	xorl	%ebx, %ebx
LBB0_13:
	movslq	%ebx, %rdx
	leaq	(%rax,%rdx,8), %rax
	cmpq	%rax, 24(%r13)
	movq	%rdx, -80(%rbp)                 ## 8-byte Spill
	je	LBB0_16
## %bb.14:
	movq	%r12, %rdi
	movl	%ebx, %esi
	callq	_open_file
	testl	%eax, %eax
	js	LBB0_24
## %bb.15:
	movq	-56(%rbp), %rcx
	jmp	LBB0_17
LBB0_25:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_AVERROR                        ## TAILCALL
LBB0_16:
	movq	%r9, 8(%r13)
LBB0_17:
	movq	-64(%rbp), %rdx
	movq	-48(%rbp), %r8
	movq	%r12, %rdi
	movl	%r15d, %esi
	movl	%r14d, %r9d
	callq	_try_seek
	testl	%eax, %eax
	jns	LBB0_24
## %bb.18:
	movl	%r14d, -68(%rbp)                ## 4-byte Spill
	movl	(%r13), %ecx
	decl	%ecx
	cmpl	%ecx, %ebx
	jge	LBB0_24
## %bb.19:
	movq	16(%r13), %rcx
	movq	-80(%rbp), %rsi                 ## 8-byte Reload
	movq	8(%rcx,%rsi,8), %rdx
	cmpq	-48(%rbp), %rdx
	jge	LBB0_24
## %bb.20:
	incl	%ebx
	leaq	(%rcx,%rsi,8), %rax
	cmpq	%rax, 24(%r13)
	jne	LBB0_22
## %bb.21:
	movq	$0, 8(%r13)
LBB0_22:
	movq	%r12, %rdi
	movl	%ebx, %esi
	callq	_open_file
	testl	%eax, %eax
	js	LBB0_24
## %bb.23:
	movq	-64(%rbp), %rdx
	movq	-56(%rbp), %rcx
	movq	-48(%rbp), %r8
	movq	%r12, %rdi
	movl	%r15d, %esi
	movl	-68(%rbp), %r9d                 ## 4-byte Reload
	callq	_try_seek
	jmp	LBB0_24
LBB0_5:
	movq	_ESPIPE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_AVERROR
LBB0_24:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_AV_TIME_BASE_Q,4,2             ## @AV_TIME_BASE_Q
	.comm	_ESPIPE,4,2                     ## @ESPIPE
	.no_dead_strip	_real_seek
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function real_seek
_real_seek:                             ; @real_seek
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	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
	mov	x22, x6
	mov	x19, x5
	mov	x20, x1
	mov	x21, x0
	stp	x3, x2, [sp, #16]
	str	x4, [sp, #8]
	ldr	x24, [x0, #16]
	tbnz	w1, #31, LBB0_3
; %bb.1:
	ldr	w8, [x21]
	cmp	w8, w20
	b.le	LBB0_12
; %bb.2:
	ldr	x8, [x21, #8]
	ldr	x8, [x8, w20, uxtw #3]
	ldr	w0, [x8]
Lloh0:
	adrp	x8, _AV_TIME_BASE_Q@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AV_TIME_BASE_Q@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	add	x2, sp, #24
	add	x3, sp, #16
	add	x4, sp, #8
	bl	_rescale_interval
	ldr	x3, [sp, #16]
LBB0_3:
	cmp	x3, #1
	b.lt	LBB0_8
; %bb.4:
	ldr	w8, [x24, #32]
	cbz	w8, LBB0_21
; %bb.5:
	ldr	w10, [x24]
	cmp	w10, #1
	b.le	LBB0_8
; %bb.6:
	mov	w8, #0
	ldr	x9, [x24, #16]
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	add	w11, w10, w8
	cmp	w11, #0
	cinc	w11, w11, lt
	asr	w11, w11, #1
	ldr	x12, [x9, w11, sxtw #3]
	cmp	x3, x12
	csel	w8, w8, w11, lt
	csel	w10, w11, w10, lt
	sub	w11, w10, w8
	cmp	w11, #1
	b.gt	LBB0_7
	b	LBB0_9
LBB0_8:
	mov	w8, #0
	ldr	x9, [x24, #16]
LBB0_9:
	ldr	x10, [x24, #24]
	sxtw	x23, w8
	add	x8, x9, w8, sxtw #3
	cmp	x10, x8
	b.eq	LBB0_13
; %bb.10:
	mov	x0, x21
	mov	x1, x23
	bl	_open_file
	tbnz	w0, #31, LBB0_22
; %bb.11:
	ldr	x3, [sp, #16]
	b	LBB0_14
LBB0_12:
Lloh3:
	adrp	x8, _EINVAL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	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
	add	sp, sp, #96
	b	_AVERROR
LBB0_13:
	str	x22, [x24, #8]
LBB0_14:
	ldr	x2, [sp, #24]
	ldr	x4, [sp, #8]
	mov	x0, x21
	mov	x1, x20
	mov	x5, x19
	bl	_try_seek
	tbz	w0, #31, LBB0_22
; %bb.15:
	ldr	w8, [x24]
	sub	w8, w8, #1
	cmp	w23, w8
	b.ge	LBB0_22
; %bb.16:
	ldr	x8, [x24, #16]
	add	x1, x23, #1
	ldr	x9, [x8, x1, lsl #3]
	ldr	x10, [sp, #8]
	cmp	x9, x10
	b.ge	LBB0_22
; %bb.17:
	ldr	x9, [x24, #24]
	add	x8, x8, x23, lsl #3
	cmp	x9, x8
	b.ne	LBB0_19
; %bb.18:
	str	xzr, [x24, #8]
LBB0_19:
	mov	x0, x21
                                        ; kill: def $w1 killed $w1 killed $x1
	bl	_open_file
	tbnz	w0, #31, LBB0_22
; %bb.20:
	ldp	x3, x2, [sp, #16]
	ldr	x4, [sp, #8]
	mov	x0, x21
	mov	x1, x20
	mov	x5, x19
	bl	_try_seek
	b	LBB0_22
LBB0_21:
Lloh6:
	adrp	x8, _ESPIPE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ESPIPE@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	bl	_AVERROR
LBB0_22:
	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
	add	sp, sp, #96
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_AV_TIME_BASE_Q,4,2             ; @AV_TIME_BASE_Q
	.comm	_ESPIPE,4,2                     ; @ESPIPE
	.no_dead_strip	_real_seek
.subsections_via_symbols
