	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ijkio_cache_file_error
_ijkio_cache_file_error:                ## @ijkio_cache_file_error
	.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, %r15
	movq	8(%rdi), %rbx
	movq	_AV_LOG_WARNING@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	leaq	L_.str(%rip), %rdx
	xorl	%r14d, %r14d
	xorl	%edi, %edi
	callq	_av_log
	testq	%rbx, %rbx
	je	LBB0_12
## %bb.1:
	cmpl	$4, (%rbx)
	jl	LBB0_12
## %bb.2:
	movq	(%r15), %rdi
	callq	_pthread_mutex_lock
	incl	4(%rbx)
	movq	40(%rbx), %rax
	cmpl	$0, 4(%rax)
	je	LBB0_3
LBB0_8:
	movq	(%r15), %rdi
	callq	_pthread_mutex_unlock
	jmp	LBB0_12
LBB0_3:
	movl	32(%rbx), %edi
	movq	_tree_destroy@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%esi, %esi
	callq	_ijk_map_traversal_handle
	movl	32(%rbx), %edi
	callq	_ijk_map_clear
	movq	$0, 16(%rbx)
	movq	88(%rbx), %rax
	movq	$0, (%rax)
	xorps	%xmm0, %xmm0
	movups	%xmm0, 64(%rbx)
	movq	$0, 80(%rbx)
	movl	8(%rbx), %edi
	movl	52(%rbx), %eax
	movl	%eax, 56(%rbx)
	callq	_close
	movl	$-1, 8(%rbx)
	movq	40(%rbx), %rax
	movl	$-1, (%rax)
	cmpl	$4, 4(%rbx)
	jl	LBB0_5
## %bb.4:
	movl	$1, 12(%rbx)
	movl	48(%rbx), %edi
	callq	_remove
	movl	(%r12), %esi
	leaq	L_.str.1(%rip), %rdx
	xorl	%edi, %edi
	callq	_av_log
	jmp	LBB0_11
LBB0_5:
	movq	_O_RDWR@GOTPCREL(%rip), %rax
	movq	_O_BINARY@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	orl	(%rax), %esi
	movq	_O_CREAT@GOTPCREL(%rip), %rax
	orl	(%rax), %esi
	movl	48(%rbx), %edi
	movq	_O_TRUNC@GOTPCREL(%rip), %rax
	orl	(%rax), %esi
	movl	$384, %edx                      ## imm = 0x180
	callq	_open
	movl	%eax, 8(%rbx)
	movq	40(%rbx), %rcx
	movl	%eax, (%rcx)
	testl	%eax, %eax
	js	LBB0_9
## %bb.6:
	movl	$0, (%rbx)
	movl	$1, %edi
	movl	$4, %esi
	callq	_calloc
	movq	%rax, 16(%rbx)
	testq	%rax, %rax
	je	LBB0_10
## %bb.7:
	movl	24(%rbx), %esi
	movl	32(%rbx), %edi
	movq	%rax, %rdx
	callq	_ijk_map_put
	jmp	LBB0_8
LBB0_9:
	movl	(%r12), %esi
	leaq	L_.str.2(%rip), %rdx
	xorl	%edi, %edi
	callq	_av_log
LBB0_10:
	movl	$1, 12(%rbx)
LBB0_11:
	movq	(%r15), %rdi
	callq	_pthread_mutex_unlock
	movq	_FILE_RW_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
LBB0_12:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AV_LOG_WARNING,4,2             ## @AV_LOG_WARNING
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"ijkio_cache_file_error\n"

	.comm	_tree_destroy,4,2               ## @tree_destroy
L_.str.1:                               ## @.str.1
	.asciz	"ijkio_cache_file_error will remove file\n"

	.comm	_O_RDWR,4,2                     ## @O_RDWR
	.comm	_O_BINARY,4,2                   ## @O_BINARY
	.comm	_O_CREAT,4,2                    ## @O_CREAT
	.comm	_O_TRUNC,4,2                    ## @O_TRUNC
L_.str.2:                               ## @.str.2
	.asciz	"ijkio_cache_file_error will cache_file_close\n"

	.comm	_FILE_RW_ERROR,4,2              ## @FILE_RW_ERROR
	.no_dead_strip	_ijkio_cache_file_error
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ijkio_cache_file_error
_ijkio_cache_file_error:                ; @ijkio_cache_file_error
	.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
	mov	x19, x0
	ldr	x20, [x0, #8]
Lloh0:
	adrp	x21, _AV_LOG_WARNING@GOTPAGE
Lloh1:
	ldr	x21, [x21, _AV_LOG_WARNING@GOTPAGEOFF]
	ldr	w1, [x21]
Lloh2:
	adrp	x2, l_.str@PAGE
Lloh3:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, #0
	bl	_av_log
	cbz	x20, LBB0_4
; %bb.1:
	ldr	w8, [x20]
	cmp	w8, #4
	b.lt	LBB0_4
; %bb.2:
	ldr	x0, [x19]
	bl	_pthread_mutex_lock
	ldr	w8, [x20, #4]
	add	w8, w8, #1
	str	w8, [x20, #4]
	ldr	x8, [x20, #40]
	ldr	w8, [x8, #4]
	cbz	w8, LBB0_6
LBB0_3:
	ldr	x0, [x19]
	bl	_pthread_mutex_unlock
LBB0_4:
	mov	w0, #0
LBB0_5:
	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
LBB0_6:
	ldr	w0, [x20, #32]
Lloh4:
	adrp	x8, _tree_destroy@GOTPAGE
Lloh5:
	ldr	x8, [x8, _tree_destroy@GOTPAGEOFF]
Lloh6:
	ldr	w2, [x8]
	mov	x1, #0
	bl	_ijk_map_traversal_handle
	ldr	w0, [x20, #32]
	bl	_ijk_map_clear
	str	xzr, [x20, #16]
	ldr	x8, [x20, #88]
	str	xzr, [x8]
	stp	xzr, xzr, [x20, #64]
	str	xzr, [x20, #80]
	ldr	w8, [x20, #52]
	str	w8, [x20, #56]
	ldr	w0, [x20, #8]
	bl	_close
	mov	w8, #-1
	str	w8, [x20, #8]
	ldr	x9, [x20, #40]
	str	w8, [x9]
	ldr	w8, [x20, #4]
	cmp	w8, #4
	b.lt	LBB0_8
; %bb.7:
	mov	w8, #1
	str	w8, [x20, #12]
	ldr	w0, [x20, #48]
	bl	_remove
	ldr	w1, [x21]
Lloh7:
	adrp	x2, l_.str.1@PAGE
Lloh8:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x0, #0
	bl	_av_log
	b	LBB0_13
LBB0_8:
	ldr	w0, [x20, #48]
Lloh9:
	adrp	x8, _O_RDWR@GOTPAGE
Lloh10:
	ldr	x8, [x8, _O_RDWR@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
Lloh12:
	adrp	x9, _O_BINARY@GOTPAGE
Lloh13:
	ldr	x9, [x9, _O_BINARY@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh15:
	adrp	x9, _O_CREAT@GOTPAGE
Lloh16:
	ldr	x9, [x9, _O_CREAT@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh18:
	adrp	x9, _O_TRUNC@GOTPAGE
Lloh19:
	ldr	x9, [x9, _O_TRUNC@GOTPAGEOFF]
Lloh20:
	ldr	w9, [x9]
	orr	w1, w8, w9
	mov	w2, #384
	bl	_open
	str	w0, [x20, #8]
	ldr	x8, [x20, #40]
	str	w0, [x8]
	tbnz	w0, #31, LBB0_11
; %bb.9:
	str	wzr, [x20]
	mov	w21, #1
	mov	w0, #1
	mov	w1, #4
	bl	_calloc
	str	x0, [x20, #16]
	cbz	x0, LBB0_12
; %bb.10:
	mov	x2, x0
	ldr	w0, [x20, #32]
	ldr	w1, [x20, #24]
	bl	_ijk_map_put
	b	LBB0_3
LBB0_11:
	ldr	w1, [x21]
Lloh21:
	adrp	x2, l_.str.2@PAGE
Lloh22:
	add	x2, x2, l_.str.2@PAGEOFF
	mov	x0, #0
	bl	_av_log
	mov	w8, #1
	str	w8, [x20, #12]
	b	LBB0_13
LBB0_12:
	str	w21, [x20, #12]
LBB0_13:
	ldr	x0, [x19]
	bl	_pthread_mutex_unlock
Lloh23:
	adrp	x8, _FILE_RW_ERROR@GOTPAGE
Lloh24:
	ldr	x8, [x8, _FILE_RW_ERROR@GOTPAGEOFF]
Lloh25:
	ldr	w0, [x8]
	b	LBB0_5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.cfi_endproc
                                        ; -- End function
	.comm	_AV_LOG_WARNING,4,2             ; @AV_LOG_WARNING
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ijkio_cache_file_error\n"

	.comm	_tree_destroy,4,2               ; @tree_destroy
l_.str.1:                               ; @.str.1
	.asciz	"ijkio_cache_file_error will remove file\n"

	.comm	_O_RDWR,4,2                     ; @O_RDWR
	.comm	_O_BINARY,4,2                   ; @O_BINARY
	.comm	_O_CREAT,4,2                    ; @O_CREAT
	.comm	_O_TRUNC,4,2                    ; @O_TRUNC
l_.str.2:                               ; @.str.2
	.asciz	"ijkio_cache_file_error will cache_file_close\n"

	.comm	_FILE_RW_ERROR,4,2              ; @FILE_RW_ERROR
	.no_dead_strip	_ijkio_cache_file_error
.subsections_via_symbols
