	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ijkio_cache_write_file
_ijkio_cache_write_file:                ## @ijkio_cache_write_file
	.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
	movl	$4120, %eax                     ## imm = 0x1018
	callq	____chkstk_darwin
	subq	%rax, %rsp
	popq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	(%rdi), %r13
	leaq	-4144(%rbp), %rdi
	movl	$4096, %esi                     ## imm = 0x1000
	callq	___bzero
	xorps	%xmm0, %xmm0
	movaps	%xmm0, -4160(%rbp)
	testq	%r13, %r13
	je	LBB0_3
## %bb.1:
	movq	72(%r13), %rax
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	cmpq	$0, (%rax)
	je	LBB0_3
## %bb.5:
	movq	96(%r13), %rax
	movl	(%rax), %edi
	movq	_cmp@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-4160(%rbp), %rcx
	movq	%r13, %rsi
	callq	_ijk_av_tree_find
	movq	%rax, %rbx
	testq	%rax, %rax
	jne	LBB0_8
## %bb.6:
	movq	-4160(%rbp), %r15
	testq	%r15, %r15
	je	LBB0_8
## %bb.7:
	movq	(%r13), %rbx
	xorl	%edi, %edi
	subq	(%r15), %rbx
	setge	%dil
	callq	_assert
	movq	8(%r15), %rax
	cmpq	%rax, %rbx
	jl	LBB0_10
	jmp	LBB0_11
LBB0_3:
	movq	_ENOSYS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_41
## %bb.4:
	addq	$4120, %rsp                     ## imm = 0x1018
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_IJKAVERROR                     ## TAILCALL
LBB0_8:
	testq	%rbx, %rbx
	je	LBB0_11
## %bb.9:
	movq	(%r13), %r12
	xorl	%edi, %edi
	subq	(%rbx), %r12
	setge	%dil
	callq	_assert
	movq	8(%rbx), %rax
	movq	%rbx, %r15
	cmpq	%rax, %r12
	jge	LBB0_11
LBB0_10:
	addq	(%r15), %rax
	movq	%rax, (%r13)
LBB0_11:
	movq	-4152(%rbp), %rax
	testq	%rax, %rax
	je	LBB0_12
## %bb.16:
	movq	(%rax), %rdi
	subq	(%r13), %rdi
	movl	$4096, %esi                     ## imm = 0x1000
	callq	_FFMIN
	movq	%rax, %r12
	testq	%rax, %rax
	jne	LBB0_13
## %bb.17:
	xorl	%r15d, %r15d
	jmp	LBB0_39
LBB0_12:
	movl	$4096, %r12d                    ## imm = 0x1000
LBB0_13:
	movq	(%r13), %rsi
	movq	8(%r13), %rax
	testq	%rax, %rax
	jle	LBB0_18
## %bb.14:
	cmpq	%rax, %rsi
	je	LBB0_15
LBB0_18:
	cmpq	24(%r13), %rsi
	jge	LBB0_15
## %bb.19:
	cmpq	32(%r13), %rsi
	je	LBB0_28
## %bb.20:
	cmpq	$0, 40(%r13)
	jle	LBB0_24
## %bb.21:
	movl	84(%r13), %edx
	movl	88(%r13), %esi
	leaq	80(%r13), %rcx
	movq	%r14, %rdi
	callq	_ijkio_cache_io_open
	testq	%rax, %rax
	jne	LBB0_22
## %bb.23:
	movq	$0, 40(%r13)
	movq	(%r13), %rsi
LBB0_24:
	movq	72(%r13), %rdi
	movq	(%rdi), %rax
	movq	_SEEK_SET@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	callq	*(%rax)
	movq	%rax, %r15
	testq	%rax, %rax
	js	LBB0_25
## %bb.27:
	movq	%r15, 32(%r13)
LBB0_28:
	cmpq	$0, 40(%r13)
	jle	LBB0_31
## %bb.29:
	movl	84(%r13), %edx
	movl	88(%r13), %esi
	leaq	80(%r13), %rcx
	movq	%r14, %rdi
	callq	_ijkio_cache_io_open
	testq	%rax, %rax
	je	LBB0_30
LBB0_22:
	movq	%rax, %r15
	jmp	LBB0_35
LBB0_15:
	movl	$1, 16(%r13)
	xorl	%r15d, %r15d
	jmp	LBB0_39
LBB0_30:
	movq	$0, 40(%r13)
LBB0_31:
	movq	72(%r13), %rdi
	movq	(%rdi), %rax
	leaq	-4144(%rbp), %rsi
	movl	%r12d, %edx
	callq	*8(%rax)
	movq	%rax, %r15
	testq	%rax, %rax
	jne	LBB0_34
## %bb.32:
	testq	%r12, %r12
	jle	LBB0_34
## %bb.33:
	movq	(%r13), %rax
	movq	%rax, 8(%r13)
	jmp	LBB0_35
LBB0_34:
	testq	%r15, %r15
	jle	LBB0_35
## %bb.36:
	movq	64(%r13), %rax
	addl	%r15d, (%rax)
	addq	%r15, 32(%r13)
	leaq	52(%r13), %rbx
	movq	%rbx, %rdi
	callq	_pthread_mutex_lock
	leaq	-4144(%rbp), %rsi
	movq	%r14, %rdi
	movl	%r15d, %edx
	callq	_add_entry
	movq	%rax, %r15
	testq	%rax, %rax
	jle	LBB0_38
## %bb.37:
	addq	%r15, (%r13)
	addq	$56, %r13
	movq	%r13, %rdi
	callq	_pthread_cond_signal
LBB0_38:
	movq	%rbx, %rdi
	callq	_pthread_mutex_unlock
	jmp	LBB0_39
LBB0_35:
	movl	$1, 16(%r13)
	movl	%r15d, 48(%r13)
LBB0_39:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_41
## %bb.40:
	movq	%r15, %rax
	addq	$4120, %rsp                     ## imm = 0x1018
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_25:
	movl	$1, 16(%r13)
	movq	8(%r13), %rax
	cmpq	(%r13), %rax
	jne	LBB0_39
## %bb.26:
	movq	%rax, 32(%r13)
	jmp	LBB0_39
LBB0_41:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOSYS,4,2                     ## @ENOSYS
	.comm	_cmp,4,2                        ## @cmp
	.comm	_SEEK_SET,4,2                   ## @SEEK_SET
	.no_dead_strip	_ijkio_cache_write_file
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ijkio_cache_write_file
_ijkio_cache_write_file:                ; @ijkio_cache_write_file
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [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 w27, -56
	.cfi_offset w28, -64
	mov	w9, #4128
Lloh0:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh1:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	sub	sp, sp, #1, lsl #12             ; =4096
	sub	sp, sp, #32
	mov	x20, x0
Lloh2:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh3:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	stur	x8, [x29, #-56]
	ldr	x19, [x0]
	add	x0, sp, #24
	mov	w1, #4096
	bl	_bzero
	stp	xzr, xzr, [sp, #8]
	cbz	x19, LBB0_7
; %bb.1:
	ldr	x8, [x19, #72]
	cbz	x8, LBB0_7
; %bb.2:
	ldr	x8, [x8]
	cbz	x8, LBB0_7
; %bb.3:
	ldr	x8, [x19, #96]
	ldr	w0, [x8]
Lloh5:
	adrp	x8, _cmp@GOTPAGE
Lloh6:
	ldr	x8, [x8, _cmp@GOTPAGEOFF]
Lloh7:
	ldr	w2, [x8]
	add	x3, sp, #8
	mov	x1, x19
	bl	_ijk_av_tree_find
	ldr	x22, [sp, #8]
	cmp	x0, #0
	ccmp	x22, #0, #4, eq
	b.ne	LBB0_9
; %bb.4:
	mov	x21, x0
	cbz	x0, LBB0_11
; %bb.5:
	ldr	x8, [x19]
	ldr	x9, [x21]
	subs	x22, x8, x9
	cset	w0, ge
	bl	_assert
	ldr	x8, [x21, #8]
	cmp	x22, x8
	b.ge	LBB0_11
; %bb.6:
	mov	x22, x21
	b	LBB0_10
LBB0_7:
Lloh8:
	adrp	x8, _ENOSYS@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ENOSYS@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
	ldur	x8, [x29, #-56]
Lloh11:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh12:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh13:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_40
; %bb.8:
	add	sp, sp, #1, lsl #12             ; =4096
	add	sp, sp, #32
	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	x28, x27, [sp], #64             ; 16-byte Folded Reload
	b	_IJKAVERROR
LBB0_9:
	ldr	x8, [x19]
	ldr	x9, [x22]
	subs	x21, x8, x9
	cset	w0, ge
	bl	_assert
	ldr	x8, [x22, #8]
	cmp	x21, x8
	b.ge	LBB0_11
LBB0_10:
	ldr	x9, [x22]
	add	x8, x9, x8
	str	x8, [x19]
LBB0_11:
	ldr	x8, [sp, #16]
	cbz	x8, LBB0_14
; %bb.12:
	ldr	x8, [x8]
	ldr	x9, [x19]
	sub	x0, x8, x9
	mov	w1, #4096
	bl	_FFMIN
	mov	x22, x0
	cbnz	x0, LBB0_15
; %bb.13:
	mov	x21, #0
	b	LBB0_36
LBB0_14:
	mov	w22, #4096
LBB0_15:
	ldp	x1, x8, [x19]
	cmp	x8, #1
	b.lt	LBB0_17
; %bb.16:
	cmp	x1, x8
	b.eq	LBB0_27
LBB0_17:
	ldr	x8, [x19, #24]
	cmp	x1, x8
	b.ge	LBB0_27
; %bb.18:
	ldr	x8, [x19, #32]
	cmp	x1, x8
	b.eq	LBB0_24
; %bb.19:
	ldr	x8, [x19, #40]
	cmp	x8, #1
	b.lt	LBB0_22
; %bb.20:
	ldp	w2, w1, [x19, #84]
	add	x3, x19, #80
	mov	x0, x20
	bl	_ijkio_cache_io_open
	cbnz	x0, LBB0_26
; %bb.21:
	str	xzr, [x19, #40]
	ldr	x1, [x19]
LBB0_22:
	ldr	x0, [x19, #72]
	ldr	x8, [x0]
	ldr	x8, [x8]
Lloh14:
	adrp	x9, _SEEK_SET@GOTPAGE
Lloh15:
	ldr	x9, [x9, _SEEK_SET@GOTPAGEOFF]
Lloh16:
	ldr	w2, [x9]
	blr	x8
	mov	x21, x0
	tbnz	x0, #63, LBB0_38
; %bb.23:
	str	x21, [x19, #32]
LBB0_24:
	ldr	x8, [x19, #40]
	cmp	x8, #1
	b.lt	LBB0_29
; %bb.25:
	ldp	w2, w1, [x19, #84]
	add	x3, x19, #80
	mov	x0, x20
	bl	_ijkio_cache_io_open
	cbz	x0, LBB0_28
LBB0_26:
	mov	x21, x0
	b	LBB0_35
LBB0_27:
	mov	x21, #0
	mov	w8, #1
	str	w8, [x19, #16]
	b	LBB0_36
LBB0_28:
	str	xzr, [x19, #40]
LBB0_29:
	ldr	x0, [x19, #72]
	ldr	x8, [x0]
	ldr	x8, [x8, #8]
	add	x1, sp, #24
	mov	x2, x22
	blr	x8
	mov	x21, x0
	cmp	x0, #0
	ccmp	x22, #1, #8, eq
	b.ge	LBB0_34
; %bb.30:
	cmp	x21, #0
	b.le	LBB0_35
; %bb.31:
	ldr	x8, [x19, #64]
	ldr	w9, [x8]
	add	w9, w9, w21
	str	w9, [x8]
	ldr	x8, [x19, #32]
	add	x8, x8, x21
	str	x8, [x19, #32]
	add	x22, x19, #52
	mov	x0, x22
	bl	_pthread_mutex_lock
	add	x1, sp, #24
	mov	x0, x20
	mov	x2, x21
	bl	_add_entry
	mov	x21, x0
	cmp	x0, #1
	b.lt	LBB0_33
; %bb.32:
	ldr	x8, [x19]
	add	x8, x8, x21
	str	x8, [x19], #56
	mov	x0, x19
	bl	_pthread_cond_signal
LBB0_33:
	mov	x0, x22
	bl	_pthread_mutex_unlock
	b	LBB0_36
LBB0_34:
	ldr	x8, [x19]
	str	x8, [x19, #8]
LBB0_35:
	mov	w8, #1
	str	w8, [x19, #16]
	str	w21, [x19, #48]
LBB0_36:
	ldur	x8, [x29, #-56]
Lloh17:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh18:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh19:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_40
; %bb.37:
	mov	x0, x21
	add	sp, sp, #1, lsl #12             ; =4096
	add	sp, sp, #32
	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	x28, x27, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_38:
	mov	w8, #1
	str	w8, [x19, #16]
	ldp	x9, x8, [x19]
	cmp	x8, x9
	b.ne	LBB0_36
; %bb.39:
	str	x8, [x19, #32]
	b	LBB0_36
LBB0_40:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOSYS,4,2                     ; @ENOSYS
	.comm	_cmp,4,2                        ; @cmp
	.comm	_SEEK_SET,4,2                   ; @SEEK_SET
	.no_dead_strip	_ijkio_cache_write_file
.subsections_via_symbols
