	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ijkio_cache_seek
_ijkio_cache_seek:                      ## @ijkio_cache_seek
	.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
	testq	%rbx, %rbx
	je	LBB0_3
## %bb.1:
	movq	%rdi, %r13
	movq	72(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_3
## %bb.2:
	movq	(%rdi), %rax
	testq	%rax, %rax
	je	LBB0_3
## %bb.5:
	movq	_IJKAVSEEK_SIZE@GOTPCREL(%rip), %rcx
	cmpl	%edx, (%rcx)
	jne	LBB0_7
## %bb.6:
	movq	(%rbx), %r14
LBB0_23:
	movq	%r14, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	movq	_ENOSYS@GOTPCREL(%rip), %rax
LBB0_4:
	movl	(%rax), %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_IJKAVERROR                     ## TAILCALL
LBB0_7:
	movq	%rsi, %r14
	movq	_SEEK_CUR@GOTPCREL(%rip), %rcx
	cmpl	%edx, (%rcx)
	jne	LBB0_12
## %bb.8:
	addq	8(%rbx), %r14
	jmp	LBB0_9
LBB0_12:
	movq	_SEEK_SET@GOTPCREL(%rip), %rcx
	cmpl	%edx, (%rcx)
	jne	LBB0_13
LBB0_9:
	testq	%r14, %r14
	js	LBB0_13
## %bb.10:
	cmpq	$0, 80(%rbx)
	je	LBB0_14
## %bb.11:
	movq	(%rax), %rax
	movq	_SEEK_SET@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	%r14, %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmpq	*%rax                           ## TAILCALL
LBB0_13:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_4
LBB0_14:
	cmpl	$0, 64(%rbx)
	je	LBB0_15
## %bb.16:
	leaq	32(%rbx), %r15
	movq	%r15, %rdi
	callq	_pthread_mutex_lock
	movl	$1, 16(%rbx)
	movq	%r14, 56(%rbx)
	movq	_SEEK_SET@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 20(%rbx)
	movq	$0, 48(%rbx)
	movq	%r13, %rdi
	callq	_ijkio_cache_check_interrupt
	movq	_IJKAVERROR_EXIT@GOTPCREL(%rip), %rcx
	testq	%rax, %rax
	jne	LBB0_22
## %bb.17:
	leaq	40(%rbx), %r14
	leaq	36(%rbx), %r12
LBB0_18:                                ## =>This Inner Loop Header: Depth=1
	cmpq	$0, 48(%rbx)
	jne	LBB0_19
## %bb.20:                              ##   in Loop: Header=BB0_18 Depth=1
	movq	%r14, %rdi
	callq	_pthread_cond_signal
	movq	%r12, %rdi
	movq	%r15, %rsi
	callq	_pthread_cond_wait
	movq	%r13, %rdi
	callq	_ijkio_cache_check_interrupt
	testq	%rax, %rax
	je	LBB0_18
## %bb.21:
	movq	_IJKAVERROR_EXIT@GOTPCREL(%rip), %rcx
	jmp	LBB0_22
LBB0_15:
	movq	%r14, 8(%rbx)
	jmp	LBB0_23
LBB0_19:
	addq	$24, %rbx
	movq	%rbx, %rcx
LBB0_22:
	movq	(%rcx), %r14
	movq	%r15, %rdi
	callq	_pthread_mutex_unlock
	jmp	LBB0_23
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOSYS,4,2                     ## @ENOSYS
	.comm	_IJKAVSEEK_SIZE,4,2             ## @IJKAVSEEK_SIZE
	.comm	_SEEK_CUR,4,2                   ## @SEEK_CUR
	.comm	_SEEK_SET,4,2                   ## @SEEK_SET
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_IJKAVERROR_EXIT,8,3            ## @IJKAVERROR_EXIT
	.no_dead_strip	_ijkio_cache_seek
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ijkio_cache_seek
_ijkio_cache_seek:                      ; @ijkio_cache_seek
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [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 w23, -56
	.cfi_offset w24, -64
	ldr	x23, [x0]
	cbz	x23, LBB0_6
; %bb.1:
	mov	x19, x0
	ldr	x0, [x23, #72]
	cbz	x0, LBB0_6
; %bb.2:
	ldr	x8, [x0]
	cbz	x8, LBB0_6
; %bb.3:
Lloh0:
	adrp	x9, _IJKAVSEEK_SIZE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _IJKAVSEEK_SIZE@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	cmp	w9, w2
	b.ne	LBB0_8
; %bb.4:
	ldr	x20, [x23]
LBB0_5:
	mov	x0, x20
	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	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_6:
Lloh3:
	adrp	x8, _ENOSYS@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ENOSYS@GOTPAGEOFF]
LBB0_7:
	ldr	w0, [x8]
	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	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_IJKAVERROR
LBB0_8:
	mov	x20, x1
Lloh5:
	adrp	x9, _SEEK_CUR@GOTPAGE
Lloh6:
	ldr	x9, [x9, _SEEK_CUR@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	cmp	w9, w2
	b.ne	LBB0_10
; %bb.9:
	ldr	x9, [x23, #8]
	add	x20, x9, x20
	b	LBB0_11
LBB0_10:
Lloh8:
	adrp	x9, _SEEK_SET@GOTPAGE
Lloh9:
	ldr	x9, [x9, _SEEK_SET@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	cmp	w9, w2
	b.ne	LBB0_14
LBB0_11:
	tbnz	x20, #63, LBB0_14
; %bb.12:
	ldr	x9, [x23, #80]
	cbz	x9, LBB0_15
; %bb.13:
	ldr	x3, [x8]
Lloh11:
	adrp	x8, _SEEK_SET@GOTPAGE
Lloh12:
	ldr	x8, [x8, _SEEK_SET@GOTPAGEOFF]
Lloh13:
	ldr	w2, [x8]
	mov	x1, x20
	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	x24, x23, [sp], #64             ; 16-byte Folded Reload
	br	x3
LBB0_14:
Lloh14:
	adrp	x8, _EINVAL@GOTPAGE
Lloh15:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_7
LBB0_15:
	ldr	w8, [x23, #64]
	cbz	w8, LBB0_18
; %bb.16:
	add	x21, x23, #32
	mov	x0, x21
	bl	_pthread_mutex_lock
Lloh16:
	adrp	x8, _SEEK_SET@GOTPAGE
Lloh17:
	ldr	x8, [x8, _SEEK_SET@GOTPAGEOFF]
	mov	w9, #1
Lloh18:
	ldr	w8, [x8]
	stp	w9, w8, [x23, #16]
	stp	xzr, x20, [x23, #48]
	mov	x0, x19
	bl	_ijkio_cache_check_interrupt
	cbz	x0, LBB0_19
; %bb.17:
Lloh19:
	adrp	x24, _IJKAVERROR_EXIT@GOTPAGE
Lloh20:
	ldr	x24, [x24, _IJKAVERROR_EXIT@GOTPAGEOFF]
	b	LBB0_23
LBB0_18:
	str	x20, [x23, #8]
	b	LBB0_5
LBB0_19:
	add	x20, x23, #40
	add	x22, x23, #36
Lloh21:
	adrp	x24, _IJKAVERROR_EXIT@GOTPAGE
Lloh22:
	ldr	x24, [x24, _IJKAVERROR_EXIT@GOTPAGEOFF]
LBB0_20:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x23, #48]
	cbnz	x8, LBB0_22
; %bb.21:                               ;   in Loop: Header=BB0_20 Depth=1
	mov	x0, x20
	bl	_pthread_cond_signal
	mov	x0, x22
	mov	x1, x21
	bl	_pthread_cond_wait
	mov	x0, x19
	bl	_ijkio_cache_check_interrupt
	cbz	x0, LBB0_20
	b	LBB0_23
LBB0_22:
	add	x24, x23, #24
LBB0_23:
	ldr	x20, [x24]
	mov	x0, x21
	bl	_pthread_mutex_unlock
	b	LBB0_5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOSYS,4,2                     ; @ENOSYS
	.comm	_IJKAVSEEK_SIZE,4,2             ; @IJKAVSEEK_SIZE
	.comm	_SEEK_CUR,4,2                   ; @SEEK_CUR
	.comm	_SEEK_SET,4,2                   ; @SEEK_SET
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_IJKAVERROR_EXIT,8,3            ; @IJKAVERROR_EXIT
	.no_dead_strip	_ijkio_cache_seek
.subsections_via_symbols
