	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function img_read_seek
_img_read_seek:                         ## @img_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	%rdx, %rsi
	movq	8(%rdi), %r14
	cmpq	$0, 40(%r14)
	je	LBB0_4
## %bb.1:
	movq	(%rdi), %rax
	movq	(%rax), %rbx
	movq	%rbx, %rdi
	movl	%ecx, %edx
	callq	_av_index_search_timestamp
	testl	%eax, %eax
	js	LBB0_2
## %bb.3:
	movq	(%rbx), %rcx
	movl	%eax, %eax
	movl	(%rcx,%rax,4), %eax
	movl	%eax, (%r14)
	jmp	LBB0_11
LBB0_4:
	movl	$-1, %eax
	testq	%rsi, %rsi
	js	LBB0_12
## %bb.5:
	movq	8(%r14), %rdi
	movq	16(%r14), %rcx
	subq	%rcx, %rdi
	cmpl	$0, 32(%r14)
	jne	LBB0_7
## %bb.6:
	cmpq	%rsi, %rdi
	jl	LBB0_12
LBB0_7:
	incq	%rdi
	movq	%rsi, %rax
	orq	%rdi, %rax
	shrq	$32, %rax
	je	LBB0_8
## %bb.9:
	movq	%rsi, %rax
	cqto
	idivq	%rdi
	jmp	LBB0_10
LBB0_2:
	movl	$-1, %eax
	jmp	LBB0_12
LBB0_8:
	movl	%esi, %eax
	xorl	%edx, %edx
	divl	%edi
                                        ## kill: def $edx killed $edx def $rdx
LBB0_10:
	addl	%ecx, %edx
	movl	%edx, (%r14)
	movq	%rsi, 24(%r14)
LBB0_11:
	xorl	%eax, %eax
LBB0_12:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_img_read_seek
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function img_read_seek
_img_read_seek:                         ; @img_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
	ldr	x20, [x0, #8]
	ldr	x8, [x20, #40]
	cbz	x8, LBB0_3
; %bb.1:
	ldr	x8, [x0]
	ldr	x19, [x8]
	mov	x0, x19
	mov	x1, x2
	mov	x2, x3
	bl	_av_index_search_timestamp
	tbnz	w0, #31, LBB0_6
; %bb.2:
	mov	x8, x0
	mov	w0, #0
	ldr	x9, [x19]
	ldr	w8, [x9, w8, uxtw #2]
	str	w8, [x20]
	b	LBB0_7
LBB0_3:
	tbnz	x2, #63, LBB0_6
; %bb.4:
	ldr	w10, [x20, #32]
	ldp	x9, x8, [x20, #8]
	sub	x9, x9, x8
	cmp	w10, #0
	ccmp	x9, x2, #0, eq
	b.lt	LBB0_6
; %bb.5:
	mov	w0, #0
	add	x9, x9, #1
	sdiv	x10, x2, x9
	msub	w9, w10, w9, w2
	add	w8, w9, w8
	str	w8, [x20]
	str	x2, [x20, #24]
	b	LBB0_7
LBB0_6:
	mov	w0, #-1
LBB0_7:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_img_read_seek
.subsections_via_symbols
