	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function ijkio_cache_task
LCPI0_0:
	.space	16
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_ijkio_cache_task:                      ## @ijkio_cache_task
	.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
	movq	(%rdi), %rbx
	movl	$1, (%rbx)
	cmpq	$0, 88(%rbx)
	jne	LBB0_13
## %bb.1:
	movq	%rdi, %r14
	leaq	56(%rbx), %r15
	leaq	64(%rbx), %r12
	leaq	68(%rbx), %r13
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r14, %rdi
	callq	_ijkio_cache_check_interrupt
	testq	%rax, %rax
	jne	LBB0_3
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpq	$0, 72(%rbx)
	je	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%r15, %rdi
	callq	_pthread_mutex_lock
	movabsq	$4294967296, %rax               ## imm = 0x100000000
	movq	%rax, 4(%rbx)
	xorps	%xmm0, %xmm0
	movups	%xmm0, 72(%rbx)
	movq	24(%rbx), %rax
	movq	%rax, 16(%rbx)
	movq	%rax, 32(%rbx)
	movq	%rax, 40(%rbx)
	movq	%r12, %rdi
	callq	_pthread_cond_signal
	movq	%r15, %rdi
	callq	_pthread_mutex_unlock
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	32(%rbx), %rax
	subq	16(%rbx), %rax
	cmpq	48(%rbx), %rax
	jg	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpl	$0, 4(%rbx)
	je	LBB0_9
LBB0_8:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	%r15, %rdi
	callq	_pthread_mutex_lock
	movq	%r12, %rdi
	callq	_pthread_cond_signal
	movq	%r13, %rdi
	movq	%r15, %rsi
	callq	_pthread_cond_wait
LBB0_11:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	%r15, %rdi
	callq	_pthread_mutex_unlock
LBB0_12:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	%r14, %rdi
	callq	_call_inject_statistic
	cmpq	$0, 88(%rbx)
	je	LBB0_2
	jmp	LBB0_13
LBB0_9:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	%r14, %rdi
	callq	_ijkio_cache_write_file
	testq	%rax, %rax
	jle	LBB0_14
## %bb.10:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	%r15, %rdi
	callq	_pthread_mutex_lock
	movq	%r12, %rdi
	callq	_pthread_cond_signal
	jmp	LBB0_11
LBB0_14:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	_FILE_RW_ERROR@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_12
	jmp	LBB0_13
LBB0_3:
	movl	$1, 4(%rbx)
	movq	_IJKAVERROR_EXIT@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 80(%rbx)
LBB0_13:
	leaq	56(%rbx), %r14
	movq	%r14, %rdi
	callq	_pthread_mutex_lock
	movl	$0, (%rbx)
	leaq	64(%rbx), %rdi
	callq	_pthread_cond_signal
	addq	$60, %rbx
	movq	%rbx, %rdi
	callq	_pthread_cond_signal
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_pthread_mutex_unlock           ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_IJKAVERROR_EXIT,8,3            ## @IJKAVERROR_EXIT
	.comm	_FILE_RW_ERROR,8,3              ## @FILE_RW_ERROR
	.no_dead_strip	_ijkio_cache_task
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function ijkio_cache_task
lCPI0_0:
	.long	0                               ; 0x0
	.long	1                               ; 0x1
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_ijkio_cache_task:                      ; @ijkio_cache_task
	.cfi_startproc
; %bb.0:
	stp	d9, d8, [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 b8, -72
	.cfi_offset b9, -80
	ldr	x23, [x0]
	mov	w8, #1
	str	w8, [x23]
	ldr	x8, [x23, #88]
	cbnz	x8, LBB0_14
; %bb.1:
	mov	x19, x0
	add	x20, x23, #56
	add	x21, x23, #64
	add	x22, x23, #68
Lloh0:
	adrp	x8, lCPI0_0@PAGE
Lloh1:
	ldr	d8, [x8, lCPI0_0@PAGEOFF]
Lloh2:
	adrp	x24, _FILE_RW_ERROR@GOTPAGE
Lloh3:
	ldr	x24, [x24, _FILE_RW_ERROR@GOTPAGEOFF]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	bl	_ijkio_cache_check_interrupt
	cbnz	x0, LBB0_13
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	x8, [x23, #72]
	cbz	x8, LBB0_5
; %bb.4:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x0, x20
	bl	_pthread_mutex_lock
	stur	d8, [x23, #4]
	stp	xzr, xzr, [x23, #72]
	ldr	x8, [x23, #24]
	str	x8, [x23, #16]
	stp	x8, x8, [x23, #32]
	mov	x0, x21
	bl	_pthread_cond_signal
	mov	x0, x20
	bl	_pthread_mutex_unlock
LBB0_5:                                 ;   in Loop: Header=BB0_2 Depth=1
	ldr	x8, [x23, #32]
	ldr	x9, [x23, #16]
	ldr	x10, [x23, #48]
	sub	x8, x8, x9
	cmp	x8, x10
	b.gt	LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	w8, [x23, #4]
	cbz	w8, LBB0_10
LBB0_7:                                 ;   in Loop: Header=BB0_2 Depth=1
	mov	x0, x20
	bl	_pthread_mutex_lock
	mov	x0, x21
	bl	_pthread_cond_signal
	mov	x0, x22
	mov	x1, x20
	bl	_pthread_cond_wait
LBB0_8:                                 ;   in Loop: Header=BB0_2 Depth=1
	mov	x0, x20
	bl	_pthread_mutex_unlock
LBB0_9:                                 ;   in Loop: Header=BB0_2 Depth=1
	mov	x0, x19
	bl	_call_inject_statistic
	ldr	x8, [x23, #88]
	cbz	x8, LBB0_2
	b	LBB0_14
LBB0_10:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x0, x19
	bl	_ijkio_cache_write_file
	cmp	x0, #1
	b.lt	LBB0_12
; %bb.11:                               ;   in Loop: Header=BB0_2 Depth=1
	mov	x0, x20
	bl	_pthread_mutex_lock
	mov	x0, x21
	bl	_pthread_cond_signal
	b	LBB0_8
LBB0_12:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	x8, [x24]
	cmp	x0, x8
	b.ne	LBB0_9
	b	LBB0_14
LBB0_13:
	mov	w8, #1
	str	w8, [x23, #4]
Lloh4:
	adrp	x8, _IJKAVERROR_EXIT@GOTPAGE
Lloh5:
	ldr	x8, [x8, _IJKAVERROR_EXIT@GOTPAGEOFF]
Lloh6:
	ldr	x8, [x8]
	str	x8, [x23, #80]
LBB0_14:
	add	x19, x23, #56
	mov	x0, x19
	bl	_pthread_mutex_lock
	mov	x20, x23
	str	wzr, [x20], #60
	add	x0, x23, #64
	bl	_pthread_cond_signal
	mov	x0, x20
	bl	_pthread_cond_signal
	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	d9, d8, [sp], #80               ; 16-byte Folded Reload
	b	_pthread_mutex_unlock
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdr	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_IJKAVERROR_EXIT,8,3            ; @IJKAVERROR_EXIT
	.comm	_FILE_RW_ERROR,8,3              ; @FILE_RW_ERROR
	.no_dead_strip	_ijkio_cache_task
.subsections_via_symbols
