	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dash_read_seek
_dash_read_seek:                        ## @dash_read_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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %r14d
	movl	%edx, %eax
	movq	%rdi, %r12
	movq	(%rdi), %rcx
	movslq	%esi, %rdx
	movq	(%rcx,%rdx,8), %rcx
	movl	(%rcx), %edx
	movq	_AVSEEK_FLAG_BACKWARD@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	andl	%r14d, %ecx
	jne	LBB0_1
## %bb.2:
	movq	_AV_ROUND_UP@GOTPCREL(%rip), %rcx
	jmp	LBB0_3
LBB0_1:
	movq	_AV_ROUND_DOWN@GOTPCREL(%rip), %rcx
LBB0_3:
	movq	8(%r12), %r13
	movl	(%rcx), %ecx
	movl	%eax, %edi
	movl	$1000, %esi                     ## imm = 0x3E8
	callq	_av_rescale_rnd
	movl	%eax, %r15d
	movq	_AVSEEK_FLAG_BYTE@GOTPCREL(%rip), %rax
	testl	%r14d, (%rax)
	jne	LBB0_22
## %bb.4:
	cmpq	$0, 40(%r13)
	je	LBB0_5
LBB0_22:
	movq	_ENOSYS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_AVERROR                        ## TAILCALL
LBB0_5:
	movl	(%r13), %ecx
	testl	%ecx, %ecx
	jle	LBB0_6
## %bb.18:
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	jmp	LBB0_19
	.p2align	4, 0x90
LBB0_21:                                ##   in Loop: Header=BB0_19 Depth=1
	incq	%rbx
	movslq	%ecx, %rdx
	cmpq	%rdx, %rbx
	jge	LBB0_7
LBB0_19:                                ## =>This Inner Loop Header: Depth=1
	testl	%eax, %eax
	jne	LBB0_21
## %bb.20:                              ##   in Loop: Header=BB0_19 Depth=1
	movq	32(%r13), %rax
	movq	(%rax,%rbx,8), %rsi
	xorl	%r8d, %r8d
	cmpl	$0, (%rsi)
	sete	%r8b
	movq	%r12, %rdi
	movl	%r15d, %edx
	movl	%r14d, %ecx
	callq	_dash_seek
	movl	(%r13), %ecx
	jmp	LBB0_21
LBB0_6:
	xorl	%eax, %eax
LBB0_7:
	movl	4(%r13), %ecx
	testl	%ecx, %ecx
	jle	LBB0_12
## %bb.8:
	xorl	%ebx, %ebx
	jmp	LBB0_9
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_9 Depth=1
	incq	%rbx
	movslq	%ecx, %rdx
	cmpq	%rdx, %rbx
	jge	LBB0_12
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	testl	%eax, %eax
	jne	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_9 Depth=1
	movq	24(%r13), %rax
	movq	(%rax,%rbx,8), %rsi
	xorl	%r8d, %r8d
	cmpl	$0, (%rsi)
	sete	%r8b
	movq	%r12, %rdi
	movl	%r15d, %edx
	movl	%r14d, %ecx
	callq	_dash_seek
	movl	4(%r13), %ecx
	jmp	LBB0_11
LBB0_12:
	movl	8(%r13), %ecx
	testl	%ecx, %ecx
	jle	LBB0_17
## %bb.13:
	xorl	%ebx, %ebx
	jmp	LBB0_14
	.p2align	4, 0x90
LBB0_16:                                ##   in Loop: Header=BB0_14 Depth=1
	incq	%rbx
	movslq	%ecx, %rdx
	cmpq	%rdx, %rbx
	jge	LBB0_17
LBB0_14:                                ## =>This Inner Loop Header: Depth=1
	testl	%eax, %eax
	jne	LBB0_16
## %bb.15:                              ##   in Loop: Header=BB0_14 Depth=1
	movq	16(%r13), %rax
	movq	(%rax,%rbx,8), %rsi
	xorl	%r8d, %r8d
	cmpl	$0, (%rsi)
	sete	%r8b
	movq	%r12, %rdi
	movl	%r15d, %edx
	movl	%r14d, %ecx
	callq	_dash_seek
	movl	8(%r13), %ecx
	jmp	LBB0_16
LBB0_17:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AVSEEK_FLAG_BACKWARD,4,2       ## @AVSEEK_FLAG_BACKWARD
	.comm	_AV_ROUND_DOWN,4,2              ## @AV_ROUND_DOWN
	.comm	_AV_ROUND_UP,4,2                ## @AV_ROUND_UP
	.comm	_AVSEEK_FLAG_BYTE,4,2           ## @AVSEEK_FLAG_BYTE
	.comm	_ENOSYS,4,2                     ## @ENOSYS
	.no_dead_strip	_dash_read_seek
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dash_read_seek
_dash_read_seek:                        ; @dash_read_seek
	.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	x19, x3
	mov	x8, x2
	mov	x20, x0
	ldp	x9, x22, [x0]
	ldr	x9, [x9, w1, sxtw #3]
	ldr	w2, [x9]
Lloh0:
	adrp	x9, _AVSEEK_FLAG_BACKWARD@GOTPAGE
Lloh1:
	ldr	x9, [x9, _AVSEEK_FLAG_BACKWARD@GOTPAGEOFF]
Lloh2:
	adrp	x10, _AV_ROUND_DOWN@GOTPAGE
Lloh3:
	ldr	x10, [x10, _AV_ROUND_DOWN@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x9]
Lloh5:
	adrp	x11, _AV_ROUND_UP@GOTPAGE
Lloh6:
	ldr	x11, [x11, _AV_ROUND_UP@GOTPAGEOFF]
	tst	w9, w3
	csel	x9, x11, x10, eq
	ldr	w3, [x9]
	mov	x0, x8
	mov	w1, #1000
	bl	_av_rescale_rnd
Lloh7:
	adrp	x8, _AVSEEK_FLAG_BYTE@GOTPAGE
Lloh8:
	ldr	x8, [x8, _AVSEEK_FLAG_BYTE@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	tst	w8, w19
	b.ne	LBB0_2
; %bb.1:
	ldr	x8, [x22, #40]
	cbz	x8, LBB0_3
LBB0_2:
Lloh10:
	adrp	x8, _ENOSYS@GOTPAGE
Lloh11:
	ldr	x8, [x8, _ENOSYS@GOTPAGEOFF]
Lloh12:
	ldr	w0, [x8]
	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	_AVERROR
LBB0_3:
	mov	x21, x0
	ldr	w8, [x22]
	cmp	w8, #1
	b.lt	LBB0_8
; %bb.4:
	mov	x23, #0
	mov	w0, #0
	b	LBB0_6
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	add	x23, x23, #1
	cmp	x23, w8, sxtw
	b.ge	LBB0_9
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	cbnz	w0, LBB0_5
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	x8, [x22, #32]
	ldr	x1, [x8, x23, lsl #3]
	ldr	w8, [x1]
	cmp	w8, #0
	cset	w4, eq
	mov	x0, x20
	mov	x2, x21
	mov	x3, x19
	bl	_dash_seek
	ldr	w8, [x22]
	b	LBB0_5
LBB0_8:
	mov	w0, #0
LBB0_9:
	ldr	w8, [x22, #4]
	cmp	w8, #1
	b.lt	LBB0_14
; %bb.10:
	mov	x23, #0
	b	LBB0_12
LBB0_11:                                ;   in Loop: Header=BB0_12 Depth=1
	add	x23, x23, #1
	cmp	x23, w8, sxtw
	b.ge	LBB0_14
LBB0_12:                                ; =>This Inner Loop Header: Depth=1
	cbnz	w0, LBB0_11
; %bb.13:                               ;   in Loop: Header=BB0_12 Depth=1
	ldr	x8, [x22, #24]
	ldr	x1, [x8, x23, lsl #3]
	ldr	w8, [x1]
	cmp	w8, #0
	cset	w4, eq
	mov	x0, x20
	mov	x2, x21
	mov	x3, x19
	bl	_dash_seek
	ldr	w8, [x22, #4]
	b	LBB0_11
LBB0_14:
	ldr	w8, [x22, #8]
	cmp	w8, #1
	b.lt	LBB0_19
; %bb.15:
	mov	x23, #0
	b	LBB0_17
LBB0_16:                                ;   in Loop: Header=BB0_17 Depth=1
	add	x23, x23, #1
	cmp	x23, w8, sxtw
	b.ge	LBB0_19
LBB0_17:                                ; =>This Inner Loop Header: Depth=1
	cbnz	w0, LBB0_16
; %bb.18:                               ;   in Loop: Header=BB0_17 Depth=1
	ldr	x8, [x22, #16]
	ldr	x1, [x8, x23, lsl #3]
	ldr	w8, [x1]
	cmp	w8, #0
	cset	w4, eq
	mov	x0, x20
	mov	x2, x21
	mov	x3, x19
	bl	_dash_seek
	ldr	w8, [x22, #8]
	b	LBB0_16
LBB0_19:
	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 AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh4
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_AVSEEK_FLAG_BACKWARD,4,2       ; @AVSEEK_FLAG_BACKWARD
	.comm	_AV_ROUND_DOWN,4,2              ; @AV_ROUND_DOWN
	.comm	_AV_ROUND_UP,4,2                ; @AV_ROUND_UP
	.comm	_AVSEEK_FLAG_BYTE,4,2           ; @AVSEEK_FLAG_BYTE
	.comm	_ENOSYS,4,2                     ; @ENOSYS
	.no_dead_strip	_dash_read_seek
.subsections_via_symbols
