	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ijkio_file_read
_ijkio_file_read:                       ## @ijkio_file_read
	.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
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	(%rdi), %r13
	xorps	%xmm0, %xmm0
	movaps	%xmm0, -64(%rbp)
	movq	40(%r13), %rax
	testq	%rax, %rax
	je	LBB0_9
## %bb.1:
	movl	%edx, %r12d
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movl	(%rax), %edi
	movq	_cmp@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-64(%rbp), %rcx
	movq	%r13, %rsi
	callq	_ijk_av_tree_find
	movq	%rax, %r15
	testq	%rax, %rax
	jne	LBB0_3
## %bb.2:
	movq	-64(%rbp), %r15
LBB0_3:
	testq	%r15, %r15
	je	LBB0_9
## %bb.4:
	movl	%r12d, -68(%rbp)                ## 4-byte Spill
	movq	%rbx, -80(%rbp)                 ## 8-byte Spill
	movq	(%r13), %r12
	xorl	%ebx, %ebx
	subq	(%r15), %r12
	jl	LBB0_16
## %bb.5:
	movq	8(%r15), %rsi
	cmpq	%rsi, %r12
	jge	LBB0_16
## %bb.6:
	movq	16(%r15), %rbx
	addq	%r12, %rbx
	cmpq	%rbx, 8(%r13)
	jne	LBB0_10
## %bb.7:
	testq	%rbx, %rbx
	jns	LBB0_12
	jmp	LBB0_16
LBB0_9:
	xorl	%ebx, %ebx
LBB0_16:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_18
## %bb.17:
	movl	%ebx, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	movl	32(%r13), %edi
	movq	_SEEK_SET@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rsi
	callq	_lseek
	testq	%rax, %rax
	js	LBB0_14
## %bb.11:
	movq	8(%r15), %rsi
LBB0_12:
	subq	%r12, %rsi
	movl	-68(%rbp), %edi                 ## 4-byte Reload
	callq	_FFMIN
	movq	%r14, %rdi
	movq	-80(%rbp), %rsi                 ## 8-byte Reload
	movl	%eax, %edx
	callq	_wrapped_file_read
	movq	%rax, %rbx
	testq	%rax, %rax
	jns	LBB0_16
## %bb.13:
	cmpq	$0, 24(%r13)
	jne	LBB0_15
	jmp	LBB0_16
LBB0_14:
	movq	%rax, %rbx
LBB0_15:
	incl	16(%r13)
	movq	%r14, %rdi
	callq	_ijkio_cache_file_error
	jmp	LBB0_16
LBB0_18:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_cmp,4,2                        ## @cmp
	.comm	_SEEK_SET,4,2                   ## @SEEK_SET
	.no_dead_strip	_ijkio_file_read
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ijkio_file_read
_ijkio_file_read:                       ; @ijkio_file_read
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #24]
	ldr	x20, [x0]
	stp	xzr, xzr, [sp, #8]
	ldr	x8, [x20, #40]
	cbz	x8, LBB0_4
; %bb.1:
	mov	x22, x2
	mov	x21, x1
	mov	x19, x0
	ldr	w0, [x8]
Lloh3:
	adrp	x8, _cmp@GOTPAGE
Lloh4:
	ldr	x8, [x8, _cmp@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	add	x3, sp, #8
	mov	x1, x20
	bl	_ijk_av_tree_find
	ldr	x8, [sp, #8]
	cmp	x0, #0
	csel	x25, x8, x0, eq
	cbz	x25, LBB0_3
; %bb.2:
	ldr	x9, [x20]
	ldp	x10, x8, [x25]
	subs	x24, x9, x10
	ccmp	x24, x8, #0, ge
	b.lt	LBB0_7
LBB0_3:
	mov	x23, #0
	b	LBB0_5
LBB0_4:
	mov	w23, #0
LBB0_5:
	ldr	x8, [sp, #24]
Lloh6:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh7:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_15
; %bb.6:
	mov	x0, x23
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_7:
	ldr	x9, [x25, #16]
	ldr	x10, [x20, #8]
	add	x23, x9, x24
	cmp	x10, x23
	b.ne	LBB0_9
; %bb.8:
	tbz	x23, #63, LBB0_11
	b	LBB0_5
LBB0_9:
	ldr	w0, [x20, #32]
Lloh9:
	adrp	x8, _SEEK_SET@GOTPAGE
Lloh10:
	ldr	x8, [x8, _SEEK_SET@GOTPAGEOFF]
Lloh11:
	ldr	w2, [x8]
	mov	x1, x23
	bl	_lseek
	tbnz	x0, #63, LBB0_13
; %bb.10:
	ldr	x8, [x25, #8]
LBB0_11:
	sub	x1, x8, x24
	mov	x0, x22
	bl	_FFMIN
	mov	x2, x0
	mov	x0, x19
	mov	x1, x21
                                        ; kill: def $w2 killed $w2 killed $x2
	bl	_wrapped_file_read
	mov	x23, x0
	tbz	x0, #63, LBB0_5
; %bb.12:
	ldr	x8, [x20, #24]
	cbnz	x8, LBB0_14
	b	LBB0_5
LBB0_13:
	mov	x23, x0
LBB0_14:
	ldr	w8, [x20, #16]
	add	w8, w8, #1
	str	w8, [x20, #16]
	mov	x0, x19
	bl	_ijkio_cache_file_error
	b	LBB0_5
LBB0_15:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_cmp,4,2                        ; @cmp
	.comm	_SEEK_SET,4,2                   ; @SEEK_SET
	.no_dead_strip	_ijkio_file_read
.subsections_via_symbols
