	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ijkio_cache_read
_ijkio_cache_read:                      ## @ijkio_cache_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	(%rdi), %r12
	testq	%r12, %r12
	je	LBB0_35
## %bb.1:
	movq	56(%r12), %rax
	testq	%rax, %rax
	je	LBB0_35
## %bb.2:
	cmpq	$0, (%rax)
	je	LBB0_35
## %bb.3:
	movl	%edx, %r14d
	movq	%rsi, %r15
	movq	%rdi, %r13
	cmpq	$0, 64(%r12)
	je	LBB0_4
## %bb.36:
	movq	%r13, %rdi
	movq	%r15, %rsi
	movl	%r14d, %edx
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_wrapped_url_read               ## TAILCALL
LBB0_35:
	movq	_ENOSYS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_IJKAVERROR                     ## TAILCALL
LBB0_4:
	cmpq	$0, (%r12)
	je	LBB0_5
## %bb.8:
	leaq	32(%r12), %rdi
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	callq	_pthread_mutex_lock
	testl	%r14d, %r14d
	movl	%r14d, -48(%rbp)                ## 4-byte Spill
	jle	LBB0_9
## %bb.10:
	leaq	36(%r12), %rax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	leaq	48(%r12), %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	jmp	LBB0_11
LBB0_22:                                ##   in Loop: Header=BB0_11 Depth=1
	cmpq	$0, 40(%r12)
	jne	LBB0_23
LBB0_21:                                ##   in Loop: Header=BB0_11 Depth=1
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	callq	_pthread_cond_signal
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movq	%rbx, %rsi
	callq	_pthread_cond_wait
	testl	%r14d, %r14d
	jle	LBB0_28
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	movq	%r13, %rdi
	callq	_ijkio_cache_check_interrupt
	testq	%rax, %rax
	jne	LBB0_12
## %bb.13:                              ##   in Loop: Header=BB0_11 Depth=1
	cmpq	$0, 64(%r12)
	jne	LBB0_14
## %bb.18:                              ##   in Loop: Header=BB0_11 Depth=1
	movq	%r13, %rdi
	movq	%r15, %rsi
	movl	%r14d, %edx
	callq	_ijkio_file_read
	testl	%eax, %eax
	jle	LBB0_22
## %bb.19:                              ##   in Loop: Header=BB0_11 Depth=1
	subl	%eax, %r14d
	movl	-48(%rbp), %ecx                 ## 4-byte Reload
	subl	%r14d, %ecx
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	movl	%eax, %eax
	addq	%rax, 8(%r12)
	testl	%r14d, %r14d
	jle	LBB0_28
## %bb.20:                              ##   in Loop: Header=BB0_11 Depth=1
	addq	%rax, %r15
	jmp	LBB0_21
LBB0_5:
	movq	%r13, %rdi
	movq	%r15, %rsi
	movl	%r14d, %edx
	callq	_ijkio_cache_sync_read
	movl	%eax, %ebx
	testl	%eax, %eax
	js	LBB0_7
## %bb.6:
	movl	%ebx, %eax
	addq	%rax, 8(%r12)
LBB0_7:
	movq	%r13, %rdi
	callq	_call_inject_statistic
	jmp	LBB0_34
LBB0_9:
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	jmp	LBB0_28
LBB0_12:
	movq	_IJKAVERROR_EXIT@GOTPCREL(%rip), %rax
LBB0_26:
	movl	(%rax), %eax
LBB0_27:
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
LBB0_28:
	movq	%rbx, %r14
	movl	-44(%rbp), %ebx                 ## 4-byte Reload
	cmpl	-48(%rbp), %ebx                 ## 4-byte Folded Reload
	jne	LBB0_31
## %bb.29:
	cmpq	$0, 40(%r12)
	jne	LBB0_32
## %bb.30:
	movq	24(%r12), %rax
	subq	8(%r12), %rax
	cmpq	(%r12), %rax
	jg	LBB0_32
LBB0_31:
	addq	$36, %r12
	movq	%r12, %rdi
	callq	_pthread_cond_signal
LBB0_32:
	movq	%r14, %rdi
LBB0_33:
	callq	_pthread_mutex_unlock
LBB0_34:
	movl	%ebx, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_14:
	movq	8(%r12), %rsi
	movq	56(%r12), %rdi
	movq	(%rdi), %rax
	movq	_SEEK_SET@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	callq	*(%rax)
	testl	%eax, %eax
	js	LBB0_15
## %bb.17:
	movq	%r13, %rdi
	movq	%r15, %rsi
	movl	%r14d, %edx
	callq	_wrapped_url_read
	movl	-48(%rbp), %ebx                 ## 4-byte Reload
	subl	%r14d, %ebx
	addl	%eax, %ebx
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	jmp	LBB0_33
LBB0_15:
	movl	%eax, %ebx
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	jmp	LBB0_33
LBB0_23:
	cmpl	$0, -44(%rbp)                   ## 4-byte Folded Reload
	jg	LBB0_28
## %bb.24:
	movl	16(%r12), %eax
	testl	%eax, %eax
	jne	LBB0_27
## %bb.25:
	movq	_IJKAVERROR_EOF@GOTPCREL(%rip), %rax
	jmp	LBB0_26
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOSYS,4,2                     ## @ENOSYS
	.comm	_IJKAVERROR_EXIT,4,2            ## @IJKAVERROR_EXIT
	.comm	_SEEK_SET,4,2                   ## @SEEK_SET
	.comm	_IJKAVERROR_EOF,4,2             ## @IJKAVERROR_EOF
	.no_dead_strip	_ijkio_cache_read
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ijkio_cache_read
_ijkio_cache_read:                      ; @ijkio_cache_read
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	ldr	x27, [x0]
	cbz	x27, LBB0_5
; %bb.1:
	ldr	x8, [x27, #56]
	cbz	x8, LBB0_5
; %bb.2:
	ldr	x8, [x8]
	cbz	x8, LBB0_5
; %bb.3:
	mov	x19, x2
	mov	x23, x1
	mov	x22, x0
	ldr	x8, [x27, #64]
	cbz	x8, LBB0_6
; %bb.4:
	mov	x0, x22
	mov	x1, x23
	mov	x2, x19
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	b	_wrapped_url_read
LBB0_5:
Lloh0:
	adrp	x8, _ENOSYS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ENOSYS@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	b	_IJKAVERROR
LBB0_6:
	ldr	x8, [x27]
	cbz	x8, LBB0_16
; %bb.7:
	add	x20, x27, #32
	mov	x0, x20
	bl	_pthread_mutex_lock
	cmp	w19, #1
	b.lt	LBB0_19
; %bb.8:
	mov	w21, #0
	add	x25, x27, #36
	add	x26, x27, #48
	mov	x24, x19
	b	LBB0_11
LBB0_9:                                 ;   in Loop: Header=BB0_11 Depth=1
	ldr	x8, [x27, #40]
	cbnz	x8, LBB0_30
LBB0_10:                                ;   in Loop: Header=BB0_11 Depth=1
	mov	x0, x25
	bl	_pthread_cond_signal
	mov	x0, x26
	mov	x1, x20
	bl	_pthread_cond_wait
	cmp	w24, #0
	b.le	LBB0_21
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, x22
	bl	_ijkio_cache_check_interrupt
	cbnz	x0, LBB0_20
; %bb.12:                               ;   in Loop: Header=BB0_11 Depth=1
	ldr	x8, [x27, #64]
	cbnz	x8, LBB0_27
; %bb.13:                               ;   in Loop: Header=BB0_11 Depth=1
	mov	x0, x22
	mov	x1, x23
	mov	x2, x24
	bl	_ijkio_file_read
	cmp	w0, #1
	b.lt	LBB0_9
; %bb.14:                               ;   in Loop: Header=BB0_11 Depth=1
	sub	w24, w24, w0
	sub	w21, w19, w24
	mov	w8, w0
	ldr	x9, [x27, #8]
	add	x9, x9, x8
	str	x9, [x27, #8]
	cmp	w24, #1
	b.lt	LBB0_21
; %bb.15:                               ;   in Loop: Header=BB0_11 Depth=1
	add	x23, x23, x8
	b	LBB0_10
LBB0_16:
	mov	x0, x22
	mov	x1, x23
	mov	x2, x19
	bl	_ijkio_cache_sync_read
	mov	x21, x0
	tbnz	w0, #31, LBB0_18
; %bb.17:
	ldr	x8, [x27, #8]
	add	x8, x8, w21, uxtw
	str	x8, [x27, #8]
LBB0_18:
	mov	x0, x22
	bl	_call_inject_statistic
	b	LBB0_26
LBB0_19:
	mov	w21, #0
	b	LBB0_21
LBB0_20:
Lloh3:
	adrp	x8, _IJKAVERROR_EXIT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _IJKAVERROR_EXIT@GOTPAGEOFF]
Lloh5:
	ldr	w21, [x8]
LBB0_21:
	cmp	w21, w19
	b.ne	LBB0_24
; %bb.22:
	ldr	x8, [x27, #40]
	cbnz	x8, LBB0_25
; %bb.23:
	ldr	x8, [x27, #24]
	ldp	x10, x9, [x27]
	sub	x8, x8, x9
	cmp	x8, x10
	b.gt	LBB0_25
LBB0_24:
	add	x0, x27, #36
	bl	_pthread_cond_signal
LBB0_25:
	mov	x0, x20
	bl	_pthread_mutex_unlock
LBB0_26:
	mov	x0, x21
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_27:
	ldr	x0, [x27, #56]
	ldr	x8, [x0]
	ldr	x8, [x8]
	ldr	x1, [x27, #8]
Lloh6:
	adrp	x9, _SEEK_SET@GOTPAGE
Lloh7:
	ldr	x9, [x9, _SEEK_SET@GOTPAGEOFF]
Lloh8:
	ldr	w2, [x9]
	blr	x8
	tbnz	w0, #31, LBB0_29
; %bb.28:
	mov	x0, x22
	mov	x1, x23
	mov	x2, x24
	bl	_wrapped_url_read
	sub	w8, w19, w24
	add	w21, w8, w0
	b	LBB0_25
LBB0_29:
	mov	x21, x0
	b	LBB0_25
LBB0_30:
	cmp	w21, #0
	b.gt	LBB0_21
; %bb.31:
	ldr	w8, [x27, #16]
Lloh9:
	adrp	x9, _IJKAVERROR_EOF@GOTPAGE
Lloh10:
	ldr	x9, [x9, _IJKAVERROR_EOF@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	cmp	w8, #0
	csel	w21, w9, w8, eq
	b	LBB0_21
	.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	_ENOSYS,4,2                     ; @ENOSYS
	.comm	_IJKAVERROR_EXIT,4,2            ; @IJKAVERROR_EXIT
	.comm	_SEEK_SET,4,2                   ; @SEEK_SET
	.comm	_IJKAVERROR_EOF,4,2             ; @IJKAVERROR_EOF
	.no_dead_strip	_ijkio_cache_read
.subsections_via_symbols
