	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ijkio_open
_ijkio_open:                            ## @ijkio_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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, -48(%rbp)
	movq	8(%rdi), %rbx
	movl	$-1, %r13d
	testq	%rbx, %rbx
	je	LBB0_4
## %bb.1:
	movq	(%rbx), %r15
	testq	%r15, %r15
	je	LBB0_4
## %bb.2:
	movq	%rcx, %r12
	movl	%edx, %r14d
	movq	%rdi, 8(%r15)
	leaq	L_.str(%rip), %rax
	leaq	-48(%rbp), %rdx
	movq	%rsi, %rdi
	movq	%rax, %rsi
	callq	_av_strstart
	movq	$0, -56(%rbp)
	movq	(%r12), %rsi
	leaq	-56(%rbp), %r12
	movq	%r12, %rdi
	callq	_ijkio_copy_options
	movq	%rbx, (%r15)
	movq	-48(%rbp), %rsi
	movq	%r15, %rdi
	movl	%r14d, %edx
	movq	%r12, %rcx
	callq	_ijkio_manager_io_open
	movl	%eax, %r13d
	movq	%r12, %rdi
	callq	_ijk_av_dict_free
	testl	%r13d, %r13d
	je	LBB0_4
## %bb.3:
	movq	%r15, %rdi
	callq	_ijkio_manager_io_close
LBB0_4:
	movl	%r13d, %eax
	addq	$24, %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	"ijkio:"

	.no_dead_strip	_ijkio_open
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ijkio_open
_ijkio_open:                            ; @ijkio_open
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	str	x1, [sp, #8]
	ldr	x22, [x0, #8]
	cbz	x22, LBB0_4
; %bb.1:
	ldr	x19, [x22]
	cbz	x19, LBB0_4
; %bb.2:
	mov	x21, x3
	mov	x20, x2
	str	x0, [x19, #8]
Lloh0:
	adrp	x8, l_.str@PAGE
Lloh1:
	add	x8, x8, l_.str@PAGEOFF
	add	x2, sp, #8
	mov	x0, x1
	mov	x1, x8
	bl	_av_strstart
	str	xzr, [sp]
	ldr	x1, [x21]
	mov	x0, sp
	bl	_ijkio_copy_options
	str	x22, [x19]
	ldr	x1, [sp, #8]
	mov	x3, sp
	mov	x0, x19
	mov	x2, x20
	bl	_ijkio_manager_io_open
	mov	x20, x0
	mov	x0, sp
	bl	_ijk_av_dict_free
	cbz	w20, LBB0_5
; %bb.3:
	mov	x0, x19
	bl	_ijkio_manager_io_close
	b	LBB0_5
LBB0_4:
	mov	w20, #-1
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
	add	sp, sp, #64
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ijkio:"

	.no_dead_strip	_ijkio_open
.subsections_via_symbols
