	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function asf_read_seek
_asf_read_seek:                         ## @asf_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	movq	(%rdi), %rax
	movslq	%esi, %r14
	movq	(%rax,%r14,8), %rdi
	cmpl	$0, (%rdi)
	je	LBB0_5
## %bb.1:
	movq	16(%rbx), %rax
	cmpq	$0, (%rax)
	je	LBB0_5
## %bb.2:
	movl	%edx, %esi
	movl	%ecx, %edx
	callq	_av_index_search_timestamp
	testl	%eax, %eax
	js	LBB0_4
## %bb.3:
	movq	(%rbx), %rcx
	movq	(%rcx,%r14,8), %rcx
	cmpl	(%rcx), %eax
	jge	LBB0_4
## %bb.6:
	movl	8(%rbx), %edi
	movq	8(%rcx), %rcx
	movl	%eax, %eax
	movl	(%rcx,%rax,4), %esi
	movq	_SEEK_SET@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_avio_seek
	jmp	LBB0_7
LBB0_5:
	movq	%rbx, %rdi
	callq	_ff_seek_frame_binary
	testl	%eax, %eax
	js	LBB0_8
LBB0_7:
	movq	%rbx, %rdi
	callq	_reset_packet_state
	xorl	%eax, %eax
	jmp	LBB0_8
LBB0_4:
	movq	_AVERROR_INVALIDDATA@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_8:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AVERROR_INVALIDDATA,4,2        ## @AVERROR_INVALIDDATA
	.comm	_SEEK_SET,4,2                   ## @SEEK_SET
	.no_dead_strip	_asf_read_seek
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function asf_read_seek
_asf_read_seek:                         ; @asf_read_seek
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x20, x1
	mov	x19, x0
	ldr	x8, [x0]
	ldr	x0, [x8, w1, sxtw #3]
	ldr	w8, [x0]
	cbz	w8, LBB0_5
; %bb.1:
	ldr	x8, [x19, #16]
	ldr	x8, [x8]
	cbz	x8, LBB0_5
; %bb.2:
	mov	x1, x2
	mov	x2, x3
	bl	_av_index_search_timestamp
	tbnz	w0, #31, LBB0_7
; %bb.3:
	sxtw	x8, w20
	ldr	x9, [x19]
	ldr	x9, [x9, x8, lsl #3]
	ldr	w8, [x9]
	cmp	w0, w8
	b.ge	LBB0_7
; %bb.4:
	ldr	w8, [x19, #8]
	ldr	x9, [x9, #8]
	ldr	w1, [x9, w0, uxtw #2]
Lloh0:
	adrp	x9, _SEEK_SET@GOTPAGE
Lloh1:
	ldr	x9, [x9, _SEEK_SET@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x9]
	mov	x0, x8
	bl	_avio_seek
	b	LBB0_6
LBB0_5:
	mov	x0, x19
	mov	x1, x20
	bl	_ff_seek_frame_binary
	tbnz	w0, #31, LBB0_8
LBB0_6:
	mov	x0, x19
	bl	_reset_packet_state
	mov	w0, #0
	b	LBB0_8
LBB0_7:
Lloh3:
	adrp	x8, _AVERROR_INVALIDDATA@GOTPAGE
Lloh4:
	ldr	x8, [x8, _AVERROR_INVALIDDATA@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
LBB0_8:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_AVERROR_INVALIDDATA,4,2        ; @AVERROR_INVALIDDATA
	.comm	_SEEK_SET,4,2                   ; @SEEK_SET
	.no_dead_strip	_asf_read_seek
.subsections_via_symbols
