	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ijkio_cache_open
_ijkio_cache_open:                      ## @ijkio_cache_open
	.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	%rsi, -56(%rbp)
	movq	8(%rdi), %rbx
	testq	%rbx, %rbx
	je	LBB0_66
## %bb.1:
	movq	%rdi, %r14
	movq	(%rdi), %rax
	movq	%rax, 120(%rbx)
	movl	$-1, %r13d
	testq	%rax, %rax
	je	LBB0_65
## %bb.2:
	movq	%rcx, %r12
	movl	%edx, -48(%rbp)                 ## 4-byte Spill
	movl	$0, (%rbx)
	movl	32(%rax), %eax
	movl	%eax, 160(%rbx)
	movq	$0, 96(%rbx)
	leaq	L_.str(%rip), %rax
	leaq	-56(%rbp), %rdx
	movq	%rsi, %rdi
	movq	%rax, %rsi
	callq	_ijk_av_strstart
	movq	_DEFAULT_CACHE_MAX_CAPACITY@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 152(%rbx)
	movq	(%r12), %rdi
	movq	_IJK_AV_DICT_MATCH_CASE@GOTPCREL(%rip), %r15
	movl	(%r15), %ecx
	leaq	L_.str.1(%rip), %rsi
	xorl	%edx, %edx
	callq	_ijk_av_dict_get
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movl	(%rax), %edi
	xorl	%esi, %esi
	movl	$10, %edx
	callq	_strtoll
	movq	%rax, 152(%rbx)
LBB0_4:
	movq	(%r12), %rdi
	movl	(%r15), %ecx
	leaq	L_.str.2(%rip), %rsi
	xorl	%edx, %edx
	callq	_ijk_av_dict_get
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	movl	(%rax), %edi
	xorl	%esi, %esi
	movl	$10, %edx
	callq	_strtoll
	movq	%rax, 96(%rbx)
LBB0_6:
	movq	(%r12), %rdi
	movl	(%r15), %ecx
	leaq	L_.str.3(%rip), %rsi
	xorl	%edx, %edx
	callq	_ijk_av_dict_get
	testq	%rax, %rax
	je	LBB0_8
## %bb.7:
	movl	(%rax), %edi
	xorl	%esi, %esi
	movl	$10, %edx
	callq	_strtol
	xorl	%ecx, %ecx
	testl	%eax, %eax
	setne	%cl
	movl	%ecx, 4(%rbx)
LBB0_8:
	movq	(%r12), %rdi
	movl	(%r15), %ecx
	leaq	L_.str.4(%rip), %rsi
	xorl	%edx, %edx
	callq	_ijk_av_dict_get
	testq	%rax, %rax
	je	LBB0_10
## %bb.9:
	movl	(%rax), %edi
	xorl	%esi, %esi
	movl	$10, %edx
	callq	_strtol
	movl	%eax, 8(%rbx)
LBB0_10:
	movq	(%r12), %rdi
	movl	(%r15), %ecx
	leaq	L_.str.5(%rip), %rsi
	xorl	%edx, %edx
	callq	_ijk_av_dict_get
	testq	%rax, %rax
	je	LBB0_13
## %bb.11:
	movl	(%rax), %edi
	xorl	%esi, %esi
	movl	$10, %edx
	callq	_strtol
	movl	%eax, 12(%rbx)
	testl	%eax, %eax
	je	LBB0_13
## %bb.12:
	movq	$0, 96(%rbx)
LBB0_13:
	movq	120(%rbx), %rax
	movq	24(%rax), %rcx
	movq	%rcx, 136(%rbx)
	testq	%rcx, %rcx
	je	LBB0_15
## %bb.14:
	cmpb	$0, (%rcx)
	jne	LBB0_16
LBB0_15:
	movl	$1, 4(%rbx)
LBB0_16:
	movl	20(%rax), %ecx
	movl	%ecx, 88(%rbx)
	movl	16(%rax), %edi
	movl	%edi, 128(%rbx)
	movq	%rax, 16(%rbx)
	leaq	12(%rax), %rdx
	movq	%rdx, 144(%rbx)
	testl	%ecx, %ecx
	je	LBB0_65
## %bb.17:
	testl	%edi, %edi
	je	LBB0_65
## %bb.18:
	cmpl	$0, 4(%rbx)
	je	LBB0_19
LBB0_35:
	leaq	56(%rbx), %r15
	movq	-56(%rbp), %rsi
	movq	%r15, %rdi
	callq	_ijkio_alloc_url
	movq	56(%rbx), %rcx
	testq	%rcx, %rcx
	je	LBB0_41
## %bb.36:
	testl	%eax, %eax
	jne	LBB0_41
## %bb.37:
	movq	120(%rbx), %rax
	movq	%rax, 16(%rcx)
	movq	40(%rbx), %rax
	testq	%rax, %rax
	jle	LBB0_39
## %bb.38:
	cmpl	$0, (%rbx)
	je	LBB0_39
## %bb.40:
	movq	112(%rbx), %rcx
	movq	%rax, 16(%rcx)
	leaq	64(%rbx), %rdi
	movq	(%r12), %rsi
	xorl	%edx, %edx
	callq	_ijk_av_dict_copy
	movl	104(%rbx), %edi
	movq	-56(%rbp), %rsi
	callq	_strcpy
	movl	-48(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, 48(%rbx)
	movq	%r14, %rdi
	callq	_call_inject_statistic
	jmp	LBB0_41
LBB0_66:
	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_19:
	movl	8(%rax), %eax
	testl	%eax, %eax
	js	LBB0_23
## %bb.20:
	movl	%eax, 24(%rbx)
	jmp	LBB0_21
LBB0_39:
	movl	$0, (%rbx)
	movq	-56(%rbp), %rsi
	movq	%r14, %rdi
	movl	-48(%rbp), %edx                 ## 4-byte Reload
	movq	%r12, %rcx
	callq	_ijkio_cache_io_open
	movl	%eax, %r13d
	testl	%eax, %eax
	jne	LBB0_63
LBB0_41:
	movq	%r15, -48(%rbp)                 ## 8-byte Spill
	leaq	72(%rbx), %r15
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_pthread_mutex_init
	testl	%eax, %eax
	je	LBB0_43
## %bb.42:
	movl	%eax, %r13d
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movl	%r13d, %edi
	callq	_av_err2str
	leaq	L_.str.8(%rip), %rdx
	xorl	%edi, %edi
	movl	%r14d, %esi
	movl	%eax, %ecx
	xorl	%eax, %eax
	callq	_av_log
	jmp	LBB0_56
LBB0_43:
	leaq	76(%rbx), %r12
	movq	%r12, %rdi
	xorl	%esi, %esi
	callq	_pthread_cond_init
	testl	%eax, %eax
	je	LBB0_45
## %bb.44:
	movl	%eax, %r13d
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movl	%r13d, %edi
	callq	_av_err2str
	leaq	L_.str.9(%rip), %rdx
	xorl	%edi, %edi
	movl	%r14d, %esi
	movl	%eax, %ecx
	xorl	%eax, %eax
	callq	_av_log
	jmp	LBB0_55
LBB0_23:
	callq	_ijk_map_size
	testq	%rax, %rax
	jle	LBB0_26
## %bb.24:
	movq	_AV_LOG_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.6(%rip), %rdx
	xorl	%edi, %edi
	xorl	%eax, %eax
	callq	_av_log
	movq	136(%rbx), %rdi
	movq	_O_RDWR@GOTPCREL(%rip), %rax
	movq	_O_BINARY@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	orl	(%rax), %esi
	movl	$384, %edx                      ## imm = 0x180
	callq	_open
	movl	%eax, 24(%rbx)
	movl	$1, (%rbx)
	movq	_SEEK_END@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movl	%eax, %edi
	xorl	%esi, %esi
	callq	_lseek
	movq	16(%rbx), %rcx
	movq	(%rcx), %rcx
	cmpq	%rcx, %rax
	jge	LBB0_27
## %bb.25:
	movq	_AV_LOG_WARNING@GOTPCREL(%rip), %rdx
	movl	(%rdx), %esi
	leaq	L_.str.7(%rip), %rdx
	xorl	%edi, %edi
	movq	%rax, %r8
	xorl	%eax, %eax
	callq	_av_log
	movl	128(%rbx), %edi
	movq	_tree_destroy@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%esi, %esi
	callq	_ijk_map_traversal_handle
	movl	128(%rbx), %edi
	callq	_ijk_map_clear
	movq	16(%rbx), %rax
	movq	$0, (%rax)
	movq	$0, 32(%rbx)
	jmp	LBB0_27
LBB0_45:
	movq	%r12, -64(%rbp)                 ## 8-byte Spill
	leaq	80(%rbx), %r12
	movq	%r12, %rdi
	xorl	%esi, %esi
	callq	_pthread_cond_init
	testl	%eax, %eax
	je	LBB0_47
## %bb.46:
	movl	%eax, %r13d
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movl	%r13d, %edi
	callq	_av_err2str
	leaq	L_.str.9(%rip), %rdx
	xorl	%edi, %edi
	movl	%r14d, %esi
	movl	%eax, %ecx
	xorl	%eax, %eax
	callq	_av_log
	jmp	LBB0_54
LBB0_26:
	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
	movq	136(%rbx), %rdi
	movq	_O_TRUNC@GOTPCREL(%rip), %rax
	orl	(%rax), %esi
	movl	$384, %edx                      ## imm = 0x180
	callq	_open
	movl	%eax, 24(%rbx)
LBB0_27:
	movl	24(%rbx), %eax
	movq	120(%rbx), %rcx
	movl	%eax, 8(%rcx)
	testl	%eax, %eax
	js	LBB0_28
LBB0_21:
	movq	16(%rbx), %rcx
	movq	(%rcx), %rsi
	movq	_SEEK_SET@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movl	%eax, %edi
	callq	_lseek
	testq	%rax, %rax
	js	LBB0_22
## %bb.29:
	movq	16(%rbx), %rax
	movq	(%rax), %rax
	movq	%rax, 32(%rbx)
	movl	128(%rbx), %edi
	movslq	8(%rbx), %rsi
	callq	_ijk_map_get
	movq	%rax, 112(%rbx)
	testq	%rax, %rax
	je	LBB0_30
## %bb.31:
	cmpl	$204801, 8(%rax)                ## imm = 0x32001
	jl	LBB0_34
## %bb.32:
	movq	16(%rax), %rax
	testq	%rax, %rax
	jle	LBB0_34
## %bb.33:
	movq	%rax, 40(%rbx)
	movl	$1, (%rbx)
	jmp	LBB0_35
LBB0_22:
	movl	$1, 4(%rbx)
	movl	24(%rbx), %edi
	callq	_close
	movl	$-1, 24(%rbx)
	movq	120(%rbx), %rax
	movl	$-1, 8(%rax)
	jmp	LBB0_35
LBB0_34:
	movl	$0, (%rbx)
	jmp	LBB0_35
LBB0_30:
	movl	$1, %edi
	movl	$4, %esi
	callq	_calloc
	movq	%rax, 112(%rbx)
	movq	16(%rbx), %rcx
	movq	(%rcx), %rcx
	movq	%rcx, (%rax)
	movl	128(%rbx), %edi
	movslq	8(%rbx), %rsi
	movq	%rax, %rdx
	callq	_ijk_map_put
	jmp	LBB0_35
LBB0_28:
	movl	$1, 4(%rbx)
	jmp	LBB0_35
LBB0_47:
	movq	%r12, -72(%rbp)                 ## 8-byte Spill
	leaq	84(%rbx), %r12
	xorl	%r13d, %r13d
	movq	%r12, %rdi
	xorl	%esi, %esi
	callq	_pthread_cond_init
	testl	%eax, %eax
	je	LBB0_49
## %bb.48:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r14d
	movl	%eax, %r12d
	movl	%eax, %edi
	callq	_av_err2str
	leaq	L_.str.9(%rip), %rdx
	xorl	%edi, %edi
	movl	%r14d, %esi
	movl	%eax, %ecx
	xorl	%eax, %eax
	callq	_av_log
	movl	%r12d, %r13d
LBB0_53:
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	callq	_pthread_cond_destroy
LBB0_54:
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	callq	_pthread_cond_destroy
LBB0_55:
	movq	%r15, %rdi
	callq	_pthread_mutex_destroy
LBB0_56:
	cmpl	$0, (%rbx)
	movq	-48(%rbp), %r15                 ## 8-byte Reload
	je	LBB0_59
## %bb.57:
	cmpq	$0, 64(%rbx)
	je	LBB0_63
## %bb.58:
	addq	$64, %rbx
	movq	%rbx, %rdi
	callq	_ijk_av_dict_free
LBB0_63:
	movq	(%r15), %rdi
	testq	%rdi, %rdi
	je	LBB0_65
## %bb.64:
	callq	_ijk_av_freep
	movq	%r15, %rdi
	callq	_ijk_av_freep
LBB0_65:
	movl	%r13d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_59:
	movq	(%r15), %rdi
	testq	%rdi, %rdi
	je	LBB0_65
## %bb.60:
	movq	8(%rdi), %rax
	testq	%rax, %rax
	je	LBB0_63
## %bb.61:
	movq	(%rax), %rcx
	testq	%rcx, %rcx
	je	LBB0_63
## %bb.62:
	callq	*%rcx
	jmp	LBB0_63
LBB0_49:
	cmpl	$0, 4(%rbx)
	jne	LBB0_65
## %bb.50:
	cmpq	$0, 96(%rbx)
	je	LBB0_65
## %bb.51:
	movl	$1, 52(%rbx)
	movl	88(%rbx), %edi
	movq	_ijkio_cache_task@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%r13d, %r13d
	movq	%r14, %rdx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	callq	_ijk_threadpool_add
	testl	%eax, %eax
	je	LBB0_65
## %bb.52:
	movl	%eax, %r14d
	movl	$0, 52(%rbx)
	movq	%r12, %rdi
	callq	_pthread_cond_signal
	movq	%r12, %rdi
	callq	_pthread_cond_destroy
	movl	%r14d, %r13d
	jmp	LBB0_53
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOSYS,4,2                     ## @ENOSYS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"cache:"

	.comm	_DEFAULT_CACHE_MAX_CAPACITY,8,3 ## @DEFAULT_CACHE_MAX_CAPACITY
L_.str.1:                               ## @.str.1
	.asciz	"cache_max_capacity"

	.comm	_IJK_AV_DICT_MATCH_CASE,4,2     ## @IJK_AV_DICT_MATCH_CASE
L_.str.2:                               ## @.str.2
	.asciz	"cache_file_forwards_capacity"

L_.str.3:                               ## @.str.3
	.asciz	"cache_file_close"

L_.str.4:                               ## @.str.4
	.asciz	"cur_file_no"

L_.str.5:                               ## @.str.5
	.asciz	"only_read_file"

	.comm	_AV_LOG_INFO,4,2                ## @AV_LOG_INFO
L_.str.6:                               ## @.str.6
	.asciz	"ijkio cache will use the data that already exists\n"

	.comm	_O_RDWR,4,2                     ## @O_RDWR
	.comm	_O_BINARY,4,2                   ## @O_BINARY
	.comm	_SEEK_END,4,2                   ## @SEEK_END
	.comm	_AV_LOG_WARNING,4,2             ## @AV_LOG_WARNING
L_.str.7:                               ## @.str.7
	.asciz	"ijkio cache exist is error, will delete last_physical_pos = %lld, cur_exist_file_size = %lld\n"

	.comm	_tree_destroy,4,2               ## @tree_destroy
	.comm	_O_CREAT,4,2                    ## @O_CREAT
	.comm	_O_TRUNC,4,2                    ## @O_TRUNC
	.comm	_SEEK_SET,4,2                   ## @SEEK_SET
	.comm	_AV_LOG_ERROR,4,2               ## @AV_LOG_ERROR
L_.str.8:                               ## @.str.8
	.asciz	"pthread_mutex_init failed : %s\n"

L_.str.9:                               ## @.str.9
	.asciz	"pthread_cond_init failed : %s\n"

	.comm	_ijkio_cache_task,4,2           ## @ijkio_cache_task
	.no_dead_strip	_ijkio_cache_open
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ijkio_cache_open
_ijkio_cache_open:                      ; @ijkio_cache_open
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	str	x1, [sp, #24]
	ldr	x19, [x0, #8]
	cbz	x19, LBB0_24
; %bb.1:
	mov	x20, x0
	ldr	x8, [x0]
	str	x8, [x19, #120]
	cbz	x8, LBB0_25
; %bb.2:
	mov	x22, x3
	mov	x21, x2
	str	wzr, [x19]
	ldr	w8, [x8, #32]
	str	w8, [x19, #160]
	str	xzr, [x19, #96]
Lloh0:
	adrp	x8, l_.str@PAGE
Lloh1:
	add	x8, x8, l_.str@PAGEOFF
	add	x2, sp, #24
	mov	x0, x1
	mov	x1, x8
	bl	_ijk_av_strstart
Lloh2:
	adrp	x8, _DEFAULT_CACHE_MAX_CAPACITY@GOTPAGE
Lloh3:
	ldr	x8, [x8, _DEFAULT_CACHE_MAX_CAPACITY@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	str	x8, [x19, #152]
	ldr	x0, [x22]
Lloh5:
	adrp	x23, _IJK_AV_DICT_MATCH_CASE@GOTPAGE
Lloh6:
	ldr	x23, [x23, _IJK_AV_DICT_MATCH_CASE@GOTPAGEOFF]
	ldr	w3, [x23]
Lloh7:
	adrp	x1, l_.str.1@PAGE
Lloh8:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x2, #0
	bl	_ijk_av_dict_get
	cbz	x0, LBB0_4
; %bb.3:
	ldr	w0, [x0]
	mov	x1, #0
	mov	w2, #10
	bl	_strtoll
	str	x0, [x19, #152]
LBB0_4:
	ldr	x0, [x22]
	ldr	w3, [x23]
Lloh9:
	adrp	x1, l_.str.2@PAGE
Lloh10:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x2, #0
	bl	_ijk_av_dict_get
	cbz	x0, LBB0_6
; %bb.5:
	ldr	w0, [x0]
	mov	x1, #0
	mov	w2, #10
	bl	_strtoll
	str	x0, [x19, #96]
LBB0_6:
	ldr	x0, [x22]
	ldr	w3, [x23]
Lloh11:
	adrp	x1, l_.str.3@PAGE
Lloh12:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x2, #0
	bl	_ijk_av_dict_get
	cbz	x0, LBB0_8
; %bb.7:
	ldr	w0, [x0]
	mov	x1, #0
	mov	w2, #10
	bl	_strtol
	cmp	w0, #0
	cset	w8, ne
	str	w8, [x19, #4]
LBB0_8:
	ldr	x0, [x22]
	ldr	w3, [x23]
Lloh13:
	adrp	x1, l_.str.4@PAGE
Lloh14:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x2, #0
	bl	_ijk_av_dict_get
	cbz	x0, LBB0_10
; %bb.9:
	ldr	w0, [x0]
	mov	x1, #0
	mov	w2, #10
	bl	_strtol
	str	w0, [x19, #8]
LBB0_10:
	ldr	x0, [x22]
	ldr	w3, [x23]
Lloh15:
	adrp	x1, l_.str.5@PAGE
Lloh16:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x2, #0
	bl	_ijk_av_dict_get
	cbz	x0, LBB0_13
; %bb.11:
	ldr	w0, [x0]
	mov	x1, #0
	mov	w2, #10
	bl	_strtol
	str	w0, [x19, #12]
	cbz	w0, LBB0_13
; %bb.12:
	str	xzr, [x19, #96]
LBB0_13:
	ldr	x8, [x19, #120]
	ldr	x9, [x8, #24]
	str	x9, [x19, #136]
	cbz	x9, LBB0_15
; %bb.14:
	ldrb	w9, [x9]
	cbnz	w9, LBB0_16
LBB0_15:
	mov	w9, #1
	str	w9, [x19, #4]
LBB0_16:
	ldp	w0, w9, [x8, #16]
	str	w9, [x19, #88]
	str	w0, [x19, #128]
	str	x8, [x19, #16]
	add	x10, x8, #12
	str	x10, [x19, #144]
	mov	w24, #-1
	cbz	w9, LBB0_35
; %bb.17:
	cbz	w0, LBB0_35
; %bb.18:
	ldr	w9, [x19, #4]
	cbz	w9, LBB0_26
LBB0_19:
	add	x23, x19, #56
	ldr	x1, [sp, #24]
	mov	x0, x23
	bl	_ijkio_alloc_url
	ldr	x8, [x19, #56]
	cbz	x8, LBB0_29
; %bb.20:
	cbnz	w0, LBB0_29
; %bb.21:
	ldr	x9, [x19, #120]
	str	x9, [x8, #16]
	ldr	x8, [x19, #40]
	cmp	x8, #1
	b.lt	LBB0_28
; %bb.22:
	ldr	w9, [x19]
	cbz	w9, LBB0_28
; %bb.23:
	ldr	x9, [x19, #112]
	str	x8, [x9, #16]
	add	x0, x19, #64
	ldr	x1, [x22]
	mov	w2, #0
	bl	_ijk_av_dict_copy
	ldr	w0, [x19, #104]
	ldr	x1, [sp, #24]
	bl	_strcpy
	str	w21, [x19, #48]
	mov	x0, x20
	bl	_call_inject_statistic
	b	LBB0_29
LBB0_24:
Lloh17:
	adrp	x8, _ENOSYS@GOTPAGE
Lloh18:
	ldr	x8, [x8, _ENOSYS@GOTPAGEOFF]
Lloh19:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #112
	b	_IJKAVERROR
LBB0_25:
	mov	w24, #-1
	b	LBB0_35
LBB0_26:
	ldr	w8, [x8, #8]
	tbnz	w8, #31, LBB0_38
; %bb.27:
	str	w8, [x19, #24]
	b	LBB0_45
LBB0_28:
	str	wzr, [x19]
	ldr	x1, [sp, #24]
	mov	x0, x20
	mov	x2, x21
	mov	x3, x22
	bl	_ijkio_cache_io_open
	mov	x24, x0
	cbnz	w0, LBB0_33
LBB0_29:
	add	x21, x19, #72
	mov	x0, x21
	mov	x1, #0
	bl	_pthread_mutex_init
	cbz	w0, LBB0_36
; %bb.30:
	mov	x24, x0
Lloh20:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh21:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh22:
	ldr	w20, [x8]
	bl	_av_err2str
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
Lloh23:
	adrp	x2, l_.str.8@PAGE
Lloh24:
	add	x2, x2, l_.str.8@PAGEOFF
	mov	x0, #0
	mov	x1, x20
	bl	_av_log
	ldr	w8, [x19]
	cbz	w8, LBB0_59
LBB0_31:
	ldr	x8, [x19, #64]!
	cbz	x8, LBB0_33
; %bb.32:
	mov	x0, x19
	bl	_ijk_av_dict_free
LBB0_33:
	ldr	x0, [x23]
	cbz	x0, LBB0_35
; %bb.34:
	bl	_ijk_av_freep
	mov	x0, x23
	bl	_ijk_av_freep
LBB0_35:
	mov	x0, x24
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_36:
	add	x22, x19, #76
	mov	x0, x22
	mov	x1, #0
	bl	_pthread_cond_init
	cbz	w0, LBB0_41
; %bb.37:
	mov	x24, x0
Lloh25:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh26:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh27:
	ldr	w20, [x8]
	bl	_av_err2str
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
Lloh28:
	adrp	x2, l_.str.9@PAGE
Lloh29:
	add	x2, x2, l_.str.9@PAGEOFF
	mov	x0, #0
	mov	x1, x20
	bl	_av_log
	b	LBB0_58
LBB0_38:
	bl	_ijk_map_size
	cmp	x0, #1
	b.lt	LBB0_43
; %bb.39:
Lloh30:
	adrp	x8, _AV_LOG_INFO@GOTPAGE
Lloh31:
	ldr	x8, [x8, _AV_LOG_INFO@GOTPAGEOFF]
Lloh32:
	ldr	w1, [x8]
Lloh33:
	adrp	x2, l_.str.6@PAGE
Lloh34:
	add	x2, x2, l_.str.6@PAGEOFF
	mov	x0, #0
	bl	_av_log
Lloh35:
	adrp	x8, _O_RDWR@GOTPAGE
Lloh36:
	ldr	x8, [x8, _O_RDWR@GOTPAGEOFF]
	ldr	x0, [x19, #136]
Lloh37:
	ldr	w8, [x8]
Lloh38:
	adrp	x9, _O_BINARY@GOTPAGE
Lloh39:
	ldr	x9, [x9, _O_BINARY@GOTPAGEOFF]
Lloh40:
	ldr	w9, [x9]
	orr	w1, w9, w8
	mov	w2, #384
	bl	_open
	str	w0, [x19, #24]
	mov	w8, #1
	str	w8, [x19]
Lloh41:
	adrp	x8, _SEEK_END@GOTPAGE
Lloh42:
	ldr	x8, [x8, _SEEK_END@GOTPAGEOFF]
Lloh43:
	ldr	w2, [x8]
                                        ; kill: def $w0 killed $w0 killed $x0
	mov	x1, #0
	bl	_lseek
	ldr	x8, [x19, #16]
	ldr	x8, [x8]
	cmp	x0, x8
	b.ge	LBB0_44
; %bb.40:
Lloh44:
	adrp	x9, _AV_LOG_WARNING@GOTPAGE
Lloh45:
	ldr	x9, [x9, _AV_LOG_WARNING@GOTPAGEOFF]
Lloh46:
	ldr	w1, [x9]
	stp	x8, x0, [sp]
Lloh47:
	adrp	x2, l_.str.7@PAGE
Lloh48:
	add	x2, x2, l_.str.7@PAGEOFF
	mov	x0, #0
	bl	_av_log
	ldr	w0, [x19, #128]
Lloh49:
	adrp	x8, _tree_destroy@GOTPAGE
Lloh50:
	ldr	x8, [x8, _tree_destroy@GOTPAGEOFF]
Lloh51:
	ldr	w2, [x8]
	mov	x1, #0
	bl	_ijk_map_traversal_handle
	ldr	w0, [x19, #128]
	bl	_ijk_map_clear
	ldr	x8, [x19, #16]
	str	xzr, [x8]
	str	xzr, [x19, #32]
	b	LBB0_44
LBB0_41:
	add	x25, x19, #80
	mov	x0, x25
	mov	x1, #0
	bl	_pthread_cond_init
	cbz	w0, LBB0_54
; %bb.42:
	mov	x24, x0
Lloh52:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh53:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh54:
	ldr	w20, [x8]
	bl	_av_err2str
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
Lloh55:
	adrp	x2, l_.str.9@PAGE
Lloh56:
	add	x2, x2, l_.str.9@PAGEOFF
	mov	x0, #0
	mov	x1, x20
	bl	_av_log
	b	LBB0_57
LBB0_43:
	ldr	x0, [x19, #136]
Lloh57:
	adrp	x8, _O_RDWR@GOTPAGE
Lloh58:
	ldr	x8, [x8, _O_RDWR@GOTPAGEOFF]
Lloh59:
	ldr	w8, [x8]
Lloh60:
	adrp	x9, _O_BINARY@GOTPAGE
Lloh61:
	ldr	x9, [x9, _O_BINARY@GOTPAGEOFF]
Lloh62:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh63:
	adrp	x9, _O_CREAT@GOTPAGE
Lloh64:
	ldr	x9, [x9, _O_CREAT@GOTPAGEOFF]
Lloh65:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh66:
	adrp	x9, _O_TRUNC@GOTPAGE
Lloh67:
	ldr	x9, [x9, _O_TRUNC@GOTPAGEOFF]
Lloh68:
	ldr	w9, [x9]
	orr	w1, w8, w9
	mov	w2, #384
	bl	_open
	str	w0, [x19, #24]
LBB0_44:
	ldr	w8, [x19, #24]
	ldr	x9, [x19, #120]
	str	w8, [x9, #8]
	tbnz	w8, #31, LBB0_53
LBB0_45:
	ldr	x9, [x19, #16]
	ldr	x1, [x9]
Lloh69:
	adrp	x9, _SEEK_SET@GOTPAGE
Lloh70:
	ldr	x9, [x9, _SEEK_SET@GOTPAGEOFF]
Lloh71:
	ldr	w2, [x9]
	mov	x0, x8
	bl	_lseek
	tbnz	x0, #63, LBB0_50
; %bb.46:
	ldr	x8, [x19, #16]
	ldr	x8, [x8]
	str	x8, [x19, #32]
	ldr	w0, [x19, #128]
	ldrsw	x1, [x19, #8]
	bl	_ijk_map_get
	str	x0, [x19, #112]
	cbz	x0, LBB0_52
; %bb.47:
	ldr	w8, [x0, #8]
	cmp	w8, #50, lsl #12                ; =204800
	b.le	LBB0_51
; %bb.48:
	ldr	x8, [x0, #16]
	cmp	x8, #1
	b.lt	LBB0_51
; %bb.49:
	str	x8, [x19, #40]
	mov	w8, #1
	str	w8, [x19]
	b	LBB0_19
LBB0_50:
	mov	w8, #1
	str	w8, [x19, #4]
	ldr	w0, [x19, #24]
	bl	_close
	mov	w8, #-1
	str	w8, [x19, #24]
	ldr	x9, [x19, #120]
	str	w8, [x9, #8]
	b	LBB0_19
LBB0_51:
	str	wzr, [x19]
	b	LBB0_19
LBB0_52:
	mov	w0, #1
	mov	w1, #4
	bl	_calloc
	mov	x2, x0
	str	x0, [x19, #112]
	ldr	x8, [x19, #16]
	ldr	x8, [x8]
	str	x8, [x0]
	ldr	w0, [x19, #128]
	ldrsw	x1, [x19, #8]
	bl	_ijk_map_put
	b	LBB0_19
LBB0_53:
	mov	w8, #1
	str	w8, [x19, #4]
	b	LBB0_19
LBB0_54:
	add	x26, x19, #84
	mov	x0, x26
	mov	x1, #0
	bl	_pthread_cond_init
	cbz	w0, LBB0_63
; %bb.55:
	mov	x24, x0
Lloh72:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh73:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh74:
	ldr	w20, [x8]
	bl	_av_err2str
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
Lloh75:
	adrp	x2, l_.str.9@PAGE
Lloh76:
	add	x2, x2, l_.str.9@PAGEOFF
	mov	x0, #0
	mov	x1, x20
	bl	_av_log
LBB0_56:
	mov	x0, x25
	bl	_pthread_cond_destroy
LBB0_57:
	mov	x0, x22
	bl	_pthread_cond_destroy
LBB0_58:
	mov	x0, x21
	bl	_pthread_mutex_destroy
	ldr	w8, [x19]
	cbnz	w8, LBB0_31
LBB0_59:
	ldr	x0, [x23]
	cbz	x0, LBB0_35
; %bb.60:
	ldr	x8, [x0, #8]
	cbz	x8, LBB0_33
; %bb.61:
	ldr	x8, [x8]
	cbz	x8, LBB0_33
; %bb.62:
	blr	x8
	b	LBB0_33
LBB0_63:
	ldr	w8, [x19, #4]
	cbz	w8, LBB0_65
LBB0_64:
	mov	w24, #0
	b	LBB0_35
LBB0_65:
	ldr	x8, [x19, #96]
	cbz	x8, LBB0_64
; %bb.66:
	mov	w8, #1
	str	w8, [x19, #52]
	ldr	w0, [x19, #88]
Lloh77:
	adrp	x8, _ijkio_cache_task@GOTPAGE
Lloh78:
	ldr	x8, [x8, _ijkio_cache_task@GOTPAGEOFF]
Lloh79:
	ldr	w1, [x8]
	mov	x2, x20
	mov	x3, #0
	mov	w4, #0
	bl	_ijk_threadpool_add
	mov	x24, x0
	cbz	w0, LBB0_35
; %bb.67:
	str	wzr, [x19, #52]
	mov	x0, x26
	bl	_pthread_cond_signal
	mov	x0, x26
	bl	_pthread_cond_destroy
	b	LBB0_56
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpAdd	Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh49, Lloh50, Lloh51
	.loh AdrpAdd	Lloh47, Lloh48
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.loh AdrpAdd	Lloh55, Lloh56
	.loh AdrpLdrGotLdr	Lloh52, Lloh53, Lloh54
	.loh AdrpLdrGotLdr	Lloh66, Lloh67, Lloh68
	.loh AdrpLdrGotLdr	Lloh63, Lloh64, Lloh65
	.loh AdrpLdrGotLdr	Lloh60, Lloh61, Lloh62
	.loh AdrpLdrGotLdr	Lloh57, Lloh58, Lloh59
	.loh AdrpLdrGotLdr	Lloh69, Lloh70, Lloh71
	.loh AdrpAdd	Lloh75, Lloh76
	.loh AdrpLdrGotLdr	Lloh72, Lloh73, Lloh74
	.loh AdrpLdrGotLdr	Lloh77, Lloh78, Lloh79
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOSYS,4,2                     ; @ENOSYS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"cache:"

	.comm	_DEFAULT_CACHE_MAX_CAPACITY,8,3 ; @DEFAULT_CACHE_MAX_CAPACITY
l_.str.1:                               ; @.str.1
	.asciz	"cache_max_capacity"

	.comm	_IJK_AV_DICT_MATCH_CASE,4,2     ; @IJK_AV_DICT_MATCH_CASE
l_.str.2:                               ; @.str.2
	.asciz	"cache_file_forwards_capacity"

l_.str.3:                               ; @.str.3
	.asciz	"cache_file_close"

l_.str.4:                               ; @.str.4
	.asciz	"cur_file_no"

l_.str.5:                               ; @.str.5
	.asciz	"only_read_file"

	.comm	_AV_LOG_INFO,4,2                ; @AV_LOG_INFO
l_.str.6:                               ; @.str.6
	.asciz	"ijkio cache will use the data that already exists\n"

	.comm	_O_RDWR,4,2                     ; @O_RDWR
	.comm	_O_BINARY,4,2                   ; @O_BINARY
	.comm	_SEEK_END,4,2                   ; @SEEK_END
	.comm	_AV_LOG_WARNING,4,2             ; @AV_LOG_WARNING
l_.str.7:                               ; @.str.7
	.asciz	"ijkio cache exist is error, will delete last_physical_pos = %lld, cur_exist_file_size = %lld\n"

	.comm	_tree_destroy,4,2               ; @tree_destroy
	.comm	_O_CREAT,4,2                    ; @O_CREAT
	.comm	_O_TRUNC,4,2                    ; @O_TRUNC
	.comm	_SEEK_SET,4,2                   ; @SEEK_SET
	.comm	_AV_LOG_ERROR,4,2               ; @AV_LOG_ERROR
l_.str.8:                               ; @.str.8
	.asciz	"pthread_mutex_init failed : %s\n"

l_.str.9:                               ; @.str.9
	.asciz	"pthread_cond_init failed : %s\n"

	.comm	_ijkio_cache_task,4,2           ; @ijkio_cache_task
	.no_dead_strip	_ijkio_cache_open
.subsections_via_symbols
