	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ijkio_manager_io_open          ## -- Begin function ijkio_manager_io_open
	.p2align	4, 0x90
_ijkio_manager_io_open:                 ## @ijkio_manager_io_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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	$-1, %r13d
	testq	%rdi, %rdi
	je	LBB0_24
## %bb.1:
	movq	%rdi, %rbx
	cmpq	$0, 24(%rdi)
	je	LBB0_24
## %bb.2:
	movq	%rcx, %r14
	movl	%edx, %r15d
	movq	%rsi, %r12
	movq	(%rcx), %rdi
	movq	_IJK_AV_DICT_MATCH_CASE@GOTPCREL(%rip), %r13
	movl	(%r13), %ecx
	leaq	L_.str(%rip), %rsi
	xorl	%edx, %edx
	callq	_ijk_av_dict_get
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movq	24(%rbx), %rcx
	movl	16(%rcx), %edi
	movl	(%rax), %esi
	callq	_strcpy
LBB0_4:
	movq	(%r14), %rdi
	movl	(%r13), %ecx
	leaq	L_.str.1(%rip), %rsi
	xorl	%edx, %edx
	callq	_ijk_av_dict_get
	testq	%rax, %rax
	je	LBB0_12
## %bb.5:
	movl	36(%rbx), %edi
	movl	(%rax), %esi
	callq	_strcpy
	movq	(%r14), %rdi
	movl	(%r13), %ecx
	leaq	L_.str.2(%rip), %rsi
	xorl	%edx, %edx
	callq	_ijk_av_dict_get
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:
	movl	(%rax), %edi
	xorl	%esi, %esi
	movl	$10, %edx
	callq	_strtol
	movl	%eax, (%rbx)
LBB0_7:
	movq	24(%rbx), %rax
	movq	8(%rax), %rdi
	testq	%rdi, %rdi
	je	LBB0_12
## %bb.8:
	callq	_ijk_map_size
	testl	%eax, %eax
	jne	LBB0_12
## %bb.9:
	movq	(%r14), %rdi
	movl	(%r13), %ecx
	leaq	L_.str.3(%rip), %rsi
	xorl	%edx, %edx
	callq	_ijk_av_dict_get
	testq	%rax, %rax
	je	LBB0_12
## %bb.10:
	movl	(%rax), %edi
	xorl	%esi, %esi
	movl	$10, %edx
	callq	_strtol
	testl	%eax, %eax
	je	LBB0_12
## %bb.11:
	movq	24(%rbx), %rdi
	movl	36(%rbx), %esi
	callq	_ijkio_manager_parse_cache_info
LBB0_12:
	movl	32(%rbx), %eax
	movq	24(%rbx), %rcx
	movl	%eax, (%rcx)
	movq	$0, -48(%rbp)
	leaq	-48(%rbp), %rdi
	movq	%r12, %rsi
	callq	_ijkio_alloc_url
	movq	-48(%rbp), %rdi
	movl	$-1, %r13d
	testq	%rdi, %rdi
	je	LBB0_24
## %bb.13:
	movq	24(%rbx), %rax
	movq	%rax, 24(%rdi)
	cmpq	$0, 16(%rbx)
	je	LBB0_15
## %bb.14:
	movq	%rbx, %rdi
	callq	_ijkio_manager_set_all_ctx_pause
	movq	_IJKURL_STARTED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	-48(%rbp), %rdx
	movl	%eax, 16(%rdx)
	movq	16(%rbx), %rdi
	movl	8(%rbx), %esi
	callq	_ijk_map_put
	movq	-48(%rbp), %rdi
LBB0_15:
	movq	8(%rdi), %rax
	movq	%r12, %rsi
	movl	%r15d, %edx
	movq	%r14, %rcx
	callq	*(%rax)
	testl	%eax, %eax
	je	LBB0_16
## %bb.17:
	movq	-48(%rbp), %rdi
	testq	%rdi, %rdi
	je	LBB0_24
## %bb.18:
	movq	8(%rdi), %rax
	testq	%rax, %rax
	je	LBB0_21
## %bb.19:
	movq	8(%rax), %rax
	testq	%rax, %rax
	je	LBB0_21
## %bb.20:
	callq	*%rax
LBB0_21:
	movq	16(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_23
## %bb.22:
	movl	8(%rbx), %esi
	callq	_ijk_map_remove
LBB0_23:
	movq	-48(%rbp), %rdi
	callq	_ijk_av_freep
	leaq	-48(%rbp), %rdi
	callq	_ijk_av_freep
	jmp	LBB0_24
LBB0_16:
	xorl	%r13d, %r13d
LBB0_24:
	movl	%r13d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"cache_file_path"

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

L_.str.2:                               ## @.str.2
	.asciz	"auto_save_map"

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

	.comm	_IJKURL_STARTED,4,2             ## @IJKURL_STARTED
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ijkio_manager_io_open          ; -- Begin function ijkio_manager_io_open
	.p2align	2
_ijkio_manager_io_open:                 ; @ijkio_manager_io_open
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	cbz	x0, LBB0_23
; %bb.1:
	mov	x19, x0
	ldr	x8, [x0, #24]
	cbz	x8, LBB0_23
; %bb.2:
	mov	x20, x3
	mov	x21, x2
	mov	x22, x1
	ldr	x0, [x3]
Lloh0:
	adrp	x23, _IJK_AV_DICT_MATCH_CASE@GOTPAGE
Lloh1:
	ldr	x23, [x23, _IJK_AV_DICT_MATCH_CASE@GOTPAGEOFF]
	ldr	w3, [x23]
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, #0
	bl	_ijk_av_dict_get
	cbz	x0, LBB0_4
; %bb.3:
	ldr	x8, [x19, #24]
	ldr	w8, [x8, #16]
	ldr	w1, [x0]
	mov	x0, x8
	bl	_strcpy
LBB0_4:
	ldr	x0, [x20]
	ldr	w3, [x23]
Lloh4:
	adrp	x1, l_.str.1@PAGE
Lloh5:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x2, #0
	bl	_ijk_av_dict_get
	cbz	x0, LBB0_12
; %bb.5:
	ldr	w8, [x19, #36]
	ldr	w1, [x0]
	mov	x0, x8
	bl	_strcpy
	ldr	x0, [x20]
	ldr	w3, [x23]
Lloh6:
	adrp	x1, l_.str.2@PAGE
Lloh7:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x2, #0
	bl	_ijk_av_dict_get
	cbz	x0, LBB0_7
; %bb.6:
	ldr	w0, [x0]
	mov	x1, #0
	mov	w2, #10
	bl	_strtol
	str	w0, [x19]
LBB0_7:
	ldr	x8, [x19, #24]
	ldr	x0, [x8, #8]
	cbz	x0, LBB0_12
; %bb.8:
	bl	_ijk_map_size
	cbnz	w0, LBB0_12
; %bb.9:
	ldr	x0, [x20]
	ldr	w3, [x23]
Lloh8:
	adrp	x1, l_.str.3@PAGE
Lloh9:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x2, #0
	bl	_ijk_av_dict_get
	cbz	x0, LBB0_12
; %bb.10:
	ldr	w0, [x0]
	mov	x1, #0
	mov	w2, #10
	bl	_strtol
	cbz	w0, LBB0_12
; %bb.11:
	ldr	x0, [x19, #24]
	ldr	w1, [x19, #36]
	bl	_ijkio_manager_parse_cache_info
LBB0_12:
	ldr	w8, [x19, #32]
	ldr	x9, [x19, #24]
	str	w8, [x9]
	str	xzr, [sp, #8]
	add	x0, sp, #8
	mov	x1, x22
	bl	_ijkio_alloc_url
	ldr	x0, [sp, #8]
	cbz	x0, LBB0_23
; %bb.13:
	ldp	x9, x8, [x19, #16]
	str	x8, [x0, #24]
	cbz	x9, LBB0_15
; %bb.14:
	mov	x0, x19
	bl	_ijkio_manager_set_all_ctx_pause
Lloh10:
	adrp	x8, _IJKURL_STARTED@GOTPAGE
Lloh11:
	ldr	x8, [x8, _IJKURL_STARTED@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	ldr	x2, [sp, #8]
	str	w8, [x2, #16]
	ldr	x0, [x19, #16]
	ldr	w1, [x19, #8]
	bl	_ijk_map_put
	ldr	x0, [sp, #8]
LBB0_15:
	ldr	x8, [x0, #8]
	ldr	x8, [x8]
	mov	x1, x22
	mov	x2, x21
	mov	x3, x20
	blr	x8
	cbz	w0, LBB0_24
; %bb.16:
	ldr	x0, [sp, #8]
	cbz	x0, LBB0_23
; %bb.17:
	ldr	x8, [x0, #8]
	cbz	x8, LBB0_20
; %bb.18:
	ldr	x8, [x8, #8]
	cbz	x8, LBB0_20
; %bb.19:
	blr	x8
LBB0_20:
	ldr	x0, [x19, #16]
	cbz	x0, LBB0_22
; %bb.21:
	ldr	w1, [x19, #8]
	bl	_ijk_map_remove
LBB0_22:
	ldr	x0, [sp, #8]
	bl	_ijk_av_freep
	add	x0, sp, #8
	bl	_ijk_av_freep
LBB0_23:
	mov	w0, #-1
LBB0_24:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"cache_file_path"

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

l_.str.2:                               ; @.str.2
	.asciz	"auto_save_map"

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

	.comm	_IJKURL_STARTED,4,2             ; @IJKURL_STARTED
.subsections_via_symbols
