	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function read_ahead
_read_ahead:                            ## @read_ahead
	.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
	testl	%ecx, %ecx
	jle	LBB0_1
## %bb.2:
	movl	%ecx, %ebx
	movq	%rdx, %r15
	movq	%rsi, %r14
	movq	%rdi, %r12
	cmpl	$4097, %ecx                     ## imm = 0x1001
	jb	LBB0_4
## %bb.3:
	movl	8(%r12), %edi
	movq	%r14, %rsi
	movq	%r15, %rdx
	movl	%ebx, %ecx
	callq	*(%r12)
	movl	%eax, %ebx
	leaq	_read_ahead.cache(%rip), %rdi
	movq	%r15, %rsi
	movl	$4096, %edx                     ## imm = 0x1000
	jmp	LBB0_12
LBB0_1:
	xorl	%ebx, %ebx
	jmp	LBB0_13
LBB0_4:
	movq	%r14, %rdi
	movl	%ebx, %esi
	callq	_UT64_ADD_OVFCHK
	movq	_UT64_MAX@GOTPCREL(%rip), %rcx
	testq	%rax, %rax
	je	LBB0_5
## %bb.6:
	movq	(%rcx), %rax
	jmp	LBB0_7
LBB0_5:
	movl	%ebx, %eax
	addq	%r14, %rax
LBB0_7:
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	_cache_addr@GOTPCREL(%rip), %r13
	movq	(%r13), %rdi
	movl	$4096, %esi                     ## imm = 0x1000
	callq	_UT64_ADD_OVFCHK
	movq	(%r13), %rcx
	leaq	4096(%rcx), %rdx
	testq	%rax, %rax
	movq	_UT64_MAX@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmovneq	%rax, %rdx
	cmpq	%r14, %rax
	je	LBB0_11
## %bb.8:
	cmpq	%r14, %rcx
	jg	LBB0_11
## %bb.9:
	cmpq	%rdx, -48(%rbp)                 ## 8-byte Folded Reload
	jge	LBB0_11
## %bb.10:
	subq	%rcx, %r14
	leaq	_read_ahead.cache(%rip), %rax
	leaq	(%rax,%r14,4), %rsi
	movq	%r15, %rdi
	movl	%ebx, %edx
	callq	_memcpy
	jmp	LBB0_13
LBB0_11:
	movl	8(%r12), %edi
	leaq	_read_ahead.cache(%rip), %r13
	movq	%r14, %rsi
	movq	%r13, %rdx
	movl	$4096, %ecx                     ## imm = 0x1000
	callq	*(%r12)
	movq	%r15, %rdi
	movq	%r13, %rsi
	movl	%ebx, %edx
LBB0_12:
	callq	_memcpy
	movq	_cache_addr@GOTPCREL(%rip), %rax
	movq	%r14, (%rax)
LBB0_13:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.zerofill __DATA,__bss,_read_ahead.cache,4096,4 ## @read_ahead.cache
	.comm	_cache_addr,8,3                 ## @cache_addr
	.comm	_UT64_MAX,8,3                   ## @UT64_MAX
	.no_dead_strip	_read_ahead
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function read_ahead
_read_ahead:                            ; @read_ahead
	.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
	cmp	w3, #1
	b.lt	LBB0_3
; %bb.1:
	mov	x19, x3
	mov	x21, x2
	mov	x20, x1
	mov	x22, x0
	cmp	w3, #1, lsl #12                 ; =4096
	b.ls	LBB0_4
; %bb.2:
	ldr	x8, [x22]
	ldr	w0, [x22, #8]
	mov	x1, x20
	mov	x2, x21
	mov	x3, x19
	blr	x8
	mov	x19, x0
Lloh0:
	adrp	x0, _read_ahead.cache@PAGE
Lloh1:
	add	x0, x0, _read_ahead.cache@PAGEOFF
	mov	x1, x21
	mov	w2, #4096
	bl	_memcpy
Lloh2:
	adrp	x8, _cache_addr@GOTPAGE
Lloh3:
	ldr	x8, [x8, _cache_addr@GOTPAGEOFF]
Lloh4:
	str	x20, [x8]
	b	LBB0_7
LBB0_3:
	mov	w19, #0
	b	LBB0_7
LBB0_4:
	mov	x0, x20
	mov	x1, x19
	bl	_UT64_ADD_OVFCHK
Lloh5:
	adrp	x24, _UT64_MAX@GOTPAGE
Lloh6:
	ldr	x24, [x24, _UT64_MAX@GOTPAGEOFF]
	ldr	x8, [x24]
	add	x9, x20, w19, uxtw
	cmp	x0, #0
	csel	x25, x9, x8, eq
Lloh7:
	adrp	x23, _cache_addr@GOTPAGE
Lloh8:
	ldr	x23, [x23, _cache_addr@GOTPAGEOFF]
	ldr	x0, [x23]
	mov	w1, #4096
	bl	_UT64_ADD_OVFCHK
	ldr	x9, [x24]
	ldr	x8, [x23]
	add	x10, x8, #1, lsl #12            ; =4096
	cmp	x0, #0
	csel	x10, x10, x9, eq
	cmp	x9, x20
	ccmp	x8, x20, #0, ne
	ccmp	x25, x10, #0, le
	b.lt	LBB0_6
; %bb.5:
	ldr	x8, [x22]
	ldr	w0, [x22, #8]
Lloh9:
	adrp	x22, _read_ahead.cache@PAGE
Lloh10:
	add	x22, x22, _read_ahead.cache@PAGEOFF
	mov	x1, x20
	mov	x2, x22
	mov	w3, #4096
	blr	x8
	mov	x0, x21
	mov	x1, x22
	mov	x2, x19
	bl	_memcpy
	str	x20, [x23]
	b	LBB0_7
LBB0_6:
	sub	x8, x20, x8
Lloh11:
	adrp	x9, _read_ahead.cache@PAGE
Lloh12:
	add	x9, x9, _read_ahead.cache@PAGEOFF
	add	x1, x9, x8, lsl #2
	mov	x0, x21
	mov	x2, x19
	bl	_memcpy
LBB0_7:
	mov	x0, x19
	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 AdrpLdrGotStr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
.zerofill __DATA,__bss,_read_ahead.cache,4096,2 ; @read_ahead.cache
	.comm	_cache_addr,8,3                 ; @cache_addr
	.comm	_UT64_MAX,8,3                   ; @UT64_MAX
	.no_dead_strip	_read_ahead
.subsections_via_symbols
