	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ijkio_cache_close
_ijkio_cache_close:                     ## @ijkio_cache_close
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	(%rdi), %r12
	testq	%r12, %r12
	je	LBB0_12
## %bb.1:
	movq	8(%r12), %rax
	testq	%rax, %rax
	je	LBB0_12
## %bb.2:
	cmpq	$0, 8(%rax)
	je	LBB0_12
## %bb.3:
	cmpq	$0, 48(%r12)
	je	LBB0_8
## %bb.4:
	leaq	24(%r12), %r14
	movq	%r14, %rdi
	callq	_pthread_mutex_lock
	movl	$1, (%r12)
	leaq	36(%r12), %rdi
	callq	_pthread_cond_signal
	cmpq	$0, 40(%r12)
	je	LBB0_7
## %bb.5:
	leaq	28(%r12), %rbx
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_pthread_cond_wait
	cmpq	$0, 40(%r12)
	jne	LBB0_6
LBB0_7:
	movq	%r14, %rdi
	callq	_pthread_mutex_unlock
	jmp	LBB0_9
LBB0_12:
	movq	_ENOSYS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_IJKAVERROR                     ## TAILCALL
LBB0_8:
	movl	$1, (%r12)
LBB0_9:
	leaq	8(%r12), %r14
	leaq	36(%r12), %rdi
	callq	_pthread_cond_destroy
	leaq	32(%r12), %rdi
	callq	_pthread_cond_destroy
	leaq	28(%r12), %rdi
	callq	_pthread_cond_destroy
	leaq	24(%r12), %rdi
	callq	_pthread_mutex_destroy
	movq	8(%r12), %rdi
	movq	8(%rdi), %rax
	callq	*(%rax)
	movl	%eax, %r15d
	cmpq	$0, 16(%r12)
	je	LBB0_11
## %bb.10:
	addq	$16, %r12
	movq	%r12, %rdi
	callq	_ijk_av_dict_free
LBB0_11:
	movq	(%r14), %rdi
	callq	_ijk_av_freep
	movq	%r14, %rdi
	callq	_ijk_av_freep
	movl	%r15d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOSYS,4,2                     ## @ENOSYS
	.no_dead_strip	_ijkio_cache_close
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ijkio_cache_close
_ijkio_cache_close:                     ; @ijkio_cache_close
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	ldr	x20, [x0]
	cbz	x20, LBB0_8
; %bb.1:
	mov	x19, x20
	ldr	x8, [x19, #8]!
	cbz	x8, LBB0_8
; %bb.2:
	ldr	x8, [x8, #8]
	cbz	x8, LBB0_8
; %bb.3:
	ldr	x8, [x20, #48]
	cbz	x8, LBB0_9
; %bb.4:
	add	x21, x20, #24
	mov	x0, x21
	bl	_pthread_mutex_lock
	mov	w8, #1
	str	w8, [x20]
	add	x0, x20, #36
	bl	_pthread_cond_signal
	ldr	x8, [x20, #40]
	cbz	x8, LBB0_7
; %bb.5:
	add	x22, x20, #28
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x22
	mov	x1, x21
	bl	_pthread_cond_wait
	ldr	x8, [x20, #40]
	cbnz	x8, LBB0_6
LBB0_7:
	mov	x0, x21
	bl	_pthread_mutex_unlock
	b	LBB0_10
LBB0_8:
Lloh0:
	adrp	x8, _ENOSYS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ENOSYS@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_IJKAVERROR
LBB0_9:
	mov	w8, #1
	str	w8, [x20]
LBB0_10:
	add	x0, x20, #36
	bl	_pthread_cond_destroy
	add	x0, x20, #32
	bl	_pthread_cond_destroy
	add	x0, x20, #28
	bl	_pthread_cond_destroy
	add	x0, x20, #24
	bl	_pthread_mutex_destroy
	ldr	x0, [x20, #8]
	ldr	x8, [x0, #8]
	ldr	x8, [x8]
	blr	x8
	mov	x21, x0
	ldr	x8, [x20, #16]!
	cbz	x8, LBB0_12
; %bb.11:
	mov	x0, x20
	bl	_ijk_av_dict_free
LBB0_12:
	ldr	x0, [x19]
	bl	_ijk_av_freep
	mov	x0, x19
	bl	_ijk_av_freep
	mov	x0, x21
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOSYS,4,2                     ; @ENOSYS
	.no_dead_strip	_ijkio_cache_close
.subsections_via_symbols
