	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vc_container_io_open_core
_vc_container_io_open_core:             ## @vc_container_io_open_core
	.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	%r8, %rbx
	movl	%ecx, -64(%rbp)                 ## 4-byte Spill
	movl	%edx, -60(%rbp)                 ## 4-byte Spill
	movl	%esi, -44(%rbp)                 ## 4-byte Spill
	movq	%rdi, %r14
	movq	_VC_CONTAINER_SUCCESS@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movq	_MAX_NUM_MEMORY_AREAS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	callq	_strlen
	movl	%eax, %r12d
	leal	89(%r12), %r13d
	movl	%r13d, %edi
	callq	_malloc
	testq	%rax, %rax
	je	LBB0_7
## %bb.1:
	movq	%rax, %r15
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	incl	%r12d
	xorl	%ebx, %ebx
	movq	%rax, %rdi
	xorl	%esi, %esi
	movl	%r13d, %edx
	callq	_memset
	leaq	32(%r15), %rax
	movq	%rax, 16(%r15)
	movq	%r15, %rdi
	addq	$88, %rdi
	movq	%rdi, (%r15)
	movq	%r14, %rsi
	movl	%r12d, %edx
	callq	_memcpy
	xorl	%eax, %eax
	callq	_vc_uri_create
	movl	%eax, 12(%r15)
	testl	%eax, %eax
	je	LBB0_8
## %bb.2:
	movl	%eax, %edi
	movq	%r14, %rsi
	callq	_vc_uri_parse
	cmpl	$0, -64(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_13
## %bb.3:
	movq	%r15, %rdi
	movq	%r14, %rsi
	movl	-44(%rbp), %r12d                ## 4-byte Reload
	movl	%r12d, %edx
	callq	_vc_container_io_null_open
	testq	%rax, %rax
	je	LBB0_9
## %bb.4:
	movq	%r15, %rdi
	movq	%r14, %rsi
	movl	%r12d, %edx
	callq	_vc_container_io_net_open
	testq	%rax, %rax
	je	LBB0_9
## %bb.5:
	movq	%r15, %rdi
	movq	%r14, %rsi
	movl	%r12d, %edx
	callq	_vc_container_io_pktfile_open
	testq	%rax, %rax
	je	LBB0_9
## %bb.6:
	movq	%r15, %rdi
	movq	%r14, %rsi
	movl	%r12d, %edx
	callq	_vc_container_io_file_open
	movq	%rax, %r13
	jmp	LBB0_10
LBB0_7:
	movq	_VC_CONTAINER_ERROR_OUT_OF_MEMORY@GOTPCREL(%rip), %rax
	movq	(%rax), %r13
	xorl	%r15d, %r15d
	testq	%rbx, %rbx
	jne	LBB0_35
	jmp	LBB0_36
LBB0_8:
	movq	_VC_CONTAINER_ERROR_OUT_OF_MEMORY@GOTPCREL(%rip), %rax
	movq	(%rax), %r13
	jmp	LBB0_15
LBB0_9:
	xorl	%r13d, %r13d
LBB0_10:
	movq	_VC_CONTAINER_SUCCESS@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r13
	jne	LBB0_14
## %bb.11:
	cmpq	$0, 24(%r15)
	je	LBB0_16
## %bb.12:
	movl	8(%r15), %ebx
	movq	_VC_CONTAINER_IO_CAPS_CANT_SEEK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%ebx, %eax
	jne	LBB0_17
	jmp	LBB0_18
LBB0_13:
	movl	-60(%rbp), %ebx                 ## 4-byte Reload
	movl	%ebx, 8(%r15)
	movq	-72(%rbp), %r13                 ## 8-byte Reload
	movl	-44(%rbp), %r12d                ## 4-byte Reload
	jmp	LBB0_18
LBB0_14:
	movl	12(%r15), %ebx
LBB0_15:
	movl	%ebx, %edi
	callq	_vc_uri_release
	movq	%r15, %rdi
	callq	_free
	xorl	%r15d, %r15d
LBB0_38:
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	testq	%rbx, %rbx
	jne	LBB0_35
	jmp	LBB0_36
LBB0_16:
	movq	_VC_CONTAINER_IO_CAPS_CANT_SEEK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	8(%r15), %ebx
LBB0_17:
	orl	%eax, %ebx
	movl	%ebx, 8(%r15)
	movq	_io_seek_not_seekable@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 24(%r15)
LBB0_18:
	movq	_VC_CONTAINER_IO_CAPS_NO_CACHING@GOTPCREL(%rip), %rax
	andl	(%rax), %ebx
	movq	_VC_CONTAINER_IO_MODE_WRITE@GOTPCREL(%rip), %rax
	cmpl	%r12d, (%rax)
	jne	LBB0_20
## %bb.19:
	movq	_MEM_CACHE_WRITE_MAX_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	je	LBB0_21
	jmp	LBB0_23
LBB0_20:
	movq	_MEM_CACHE_READ_MAX_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	jne	LBB0_23
LBB0_21:
	movl	12(%r15), %edi
	callq	_vc_uri_path_extension
	testq	%rax, %rax
	je	LBB0_23
## %bb.22:
	movl	12(%r15), %edi
	callq	_vc_uri_path_extension
	leaq	L_.str(%rip), %rsi
	movq	%rax, %rdi
	callq	_strcasecmp
	testl	%eax, %eax
	je	LBB0_37
LBB0_23:
	testl	%ebx, %ebx
	je	LBB0_27
LBB0_24:
	movq	16(%r15), %r12
	movl	%r14d, 16(%r12)
	movl	%r14d, 20(%r12)
	movq	%r15, 48(%r12)
	movl	%r14d, %edi
	callq	_malloc
	movq	%rax, 24(%r12)
	testq	%rax, %rax
	je	LBB0_26
## %bb.25:
	movq	%rax, 40(%r12)
	movl	20(%r12), %ecx
	addq	%rax, %rcx
	movq	%rcx, 32(%r12)
	movq	16(%r15), %rax
	movl	$1, (%rax)
LBB0_26:
	movl	-44(%rbp), %r12d                ## 4-byte Reload
LBB0_27:
	movq	16(%r15), %rax
	cmpl	$0, (%rax)
	je	LBB0_29
## %bb.28:
	leaq	16(%rax), %rcx
	movq	%rcx, 8(%rax)
LBB0_29:
	movq	_VC_CONTAINER_IO_MODE_WRITE@GOTPCREL(%rip), %rcx
	cmpl	%r12d, (%rcx)
	jne	LBB0_33
## %bb.30:
	cmpq	$0, 8(%rax)
	je	LBB0_38
## %bb.31:
	movl	-48(%rbp), %esi                 ## 4-byte Reload
	cmpl	$2, %esi
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	jb	LBB0_34
## %bb.32:
	movq	%r15, %rdi
	xorl	%edx, %edx
	callq	_async_io_start
	movq	16(%r15), %rcx
	movl	%eax, 4(%rcx)
	testq	%rbx, %rbx
	jne	LBB0_35
	jmp	LBB0_36
LBB0_33:
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
LBB0_34:
	testq	%rbx, %rbx
	je	LBB0_36
LBB0_35:
	movq	%r13, (%rbx)
LBB0_36:
	movq	%r15, %rax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_37:
	movq	_MEM_CACHE_TMP_MAX_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	_NUM_TMP_MEMORY_AREAS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	jmp	LBB0_24
	.cfi_endproc
                                        ## -- End function
	.comm	_VC_CONTAINER_SUCCESS,8,3       ## @VC_CONTAINER_SUCCESS
	.comm	_MAX_NUM_MEMORY_AREAS,4,2       ## @MAX_NUM_MEMORY_AREAS
	.comm	_VC_CONTAINER_ERROR_OUT_OF_MEMORY,8,3 ## @VC_CONTAINER_ERROR_OUT_OF_MEMORY
	.comm	_VC_CONTAINER_IO_CAPS_CANT_SEEK,4,2 ## @VC_CONTAINER_IO_CAPS_CANT_SEEK
	.comm	_io_seek_not_seekable,8,3       ## @io_seek_not_seekable
	.comm	_VC_CONTAINER_IO_CAPS_NO_CACHING,4,2 ## @VC_CONTAINER_IO_CAPS_NO_CACHING
	.comm	_VC_CONTAINER_IO_MODE_WRITE,4,2 ## @VC_CONTAINER_IO_MODE_WRITE
	.comm	_MEM_CACHE_WRITE_MAX_SIZE,4,2   ## @MEM_CACHE_WRITE_MAX_SIZE
	.comm	_MEM_CACHE_READ_MAX_SIZE,4,2    ## @MEM_CACHE_READ_MAX_SIZE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"tmp"

	.comm	_MEM_CACHE_TMP_MAX_SIZE,4,2     ## @MEM_CACHE_TMP_MAX_SIZE
	.comm	_NUM_TMP_MEMORY_AREAS,4,2       ## @NUM_TMP_MEMORY_AREAS
	.no_dead_strip	_vc_container_io_open_core
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vc_container_io_open_core
_vc_container_io_open_core:             ; @vc_container_io_open_core
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x4
	mov	x26, x3
	mov	x24, x2
	mov	x23, x1
	mov	x25, x0
Lloh0:
	adrp	x22, _VC_CONTAINER_SUCCESS@GOTPAGE
Lloh1:
	ldr	x22, [x22, _VC_CONTAINER_SUCCESS@GOTPAGEOFF]
	ldr	x21, [x22]
Lloh2:
	adrp	x8, _MAX_NUM_MEMORY_AREAS@GOTPAGE
Lloh3:
	ldr	x8, [x8, _MAX_NUM_MEMORY_AREAS@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	str	w8, [sp, #12]                   ; 4-byte Folded Spill
	bl	_strlen
	mov	x28, x0
	add	w27, w0, #89
	mov	x0, x27
	bl	_malloc
	mov	x20, x0
	cbz	x0, LBB0_7
; %bb.1:
	add	w28, w28, #1
	mov	x0, x20
	mov	w1, #0
	mov	x2, x27
	bl	_memset
	add	x8, x20, #32
	str	x8, [x20, #16]
	add	x0, x20, #88
	str	x0, [x20]
	mov	x1, x25
	mov	x2, x28
	bl	_memcpy
	bl	_vc_uri_create
	str	w0, [x20, #12]
	cbz	w0, LBB0_8
; %bb.2:
	mov	x1, x25
	bl	_vc_uri_parse
	cbz	w26, LBB0_13
; %bb.3:
	mov	x0, x20
	mov	x1, x25
	mov	x2, x23
	bl	_vc_container_io_null_open
	cbz	x0, LBB0_9
; %bb.4:
	mov	x0, x20
	mov	x1, x25
	mov	x2, x23
	bl	_vc_container_io_net_open
	cbz	x0, LBB0_9
; %bb.5:
	mov	x0, x20
	mov	x1, x25
	mov	x2, x23
	bl	_vc_container_io_pktfile_open
	cbz	x0, LBB0_9
; %bb.6:
	mov	x0, x20
	mov	x1, x25
	mov	x2, x23
	bl	_vc_container_io_file_open
	mov	x21, x0
	b	LBB0_10
LBB0_7:
Lloh5:
	adrp	x8, _VC_CONTAINER_ERROR_OUT_OF_MEMORY@GOTPAGE
Lloh6:
	ldr	x8, [x8, _VC_CONTAINER_ERROR_OUT_OF_MEMORY@GOTPAGEOFF]
Lloh7:
	ldr	x21, [x8]
	b	LBB0_30
LBB0_8:
Lloh8:
	adrp	x8, _VC_CONTAINER_ERROR_OUT_OF_MEMORY@GOTPAGE
Lloh9:
	ldr	x8, [x8, _VC_CONTAINER_ERROR_OUT_OF_MEMORY@GOTPAGEOFF]
Lloh10:
	ldr	x21, [x8]
	b	LBB0_15
LBB0_9:
	mov	x21, #0
LBB0_10:
	ldr	x8, [x22]
	cmp	x21, x8
	b.ne	LBB0_14
; %bb.11:
	ldr	x8, [x20, #24]
	cbz	x8, LBB0_16
; %bb.12:
	ldr	w24, [x20, #8]
Lloh11:
	adrp	x8, _VC_CONTAINER_IO_CAPS_CANT_SEEK@GOTPAGE
Lloh12:
	ldr	x8, [x8, _VC_CONTAINER_IO_CAPS_CANT_SEEK@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	tst	w8, w24
	b.ne	LBB0_17
	b	LBB0_18
LBB0_13:
	str	w24, [x20, #8]
	b	LBB0_18
LBB0_14:
	ldr	w0, [x20, #12]
LBB0_15:
	bl	_vc_uri_release
	mov	x0, x20
	bl	_free
	mov	x20, #0
	b	LBB0_30
LBB0_16:
Lloh14:
	adrp	x8, _VC_CONTAINER_IO_CAPS_CANT_SEEK@GOTPAGE
Lloh15:
	ldr	x8, [x8, _VC_CONTAINER_IO_CAPS_CANT_SEEK@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	ldr	w24, [x20, #8]
LBB0_17:
	orr	w24, w24, w8
	str	w24, [x20, #8]
Lloh17:
	adrp	x8, _io_seek_not_seekable@GOTPAGE
Lloh18:
	ldr	x8, [x8, _io_seek_not_seekable@GOTPAGEOFF]
Lloh19:
	ldr	x8, [x8]
	str	x8, [x20, #24]
LBB0_18:
Lloh20:
	adrp	x8, _VC_CONTAINER_IO_CAPS_NO_CACHING@GOTPAGE
Lloh21:
	ldr	x8, [x8, _VC_CONTAINER_IO_CAPS_NO_CACHING@GOTPAGEOFF]
Lloh22:
	ldr	w26, [x8]
Lloh23:
	adrp	x22, _VC_CONTAINER_IO_MODE_WRITE@GOTPAGE
Lloh24:
	ldr	x22, [x22, _VC_CONTAINER_IO_MODE_WRITE@GOTPAGEOFF]
Lloh25:
	adrp	x8, _MEM_CACHE_WRITE_MAX_SIZE@GOTPAGE
Lloh26:
	ldr	x8, [x8, _MEM_CACHE_WRITE_MAX_SIZE@GOTPAGEOFF]
	ldr	w9, [x22]
Lloh27:
	adrp	x10, _MEM_CACHE_READ_MAX_SIZE@GOTPAGE
Lloh28:
	ldr	x10, [x10, _MEM_CACHE_READ_MAX_SIZE@GOTPAGEOFF]
	cmp	w9, w23
	csel	x8, x8, x10, eq
	ldr	w25, [x8]
	b.ne	LBB0_21
; %bb.19:
	ldr	w0, [x20, #12]
	bl	_vc_uri_path_extension
	cbz	x0, LBB0_21
; %bb.20:
	ldr	w0, [x20, #12]
	bl	_vc_uri_path_extension
Lloh29:
	adrp	x1, l_.str@PAGE
Lloh30:
	add	x1, x1, l_.str@PAGEOFF
	bl	_strcasecmp
	cbz	w0, LBB0_33
LBB0_21:
	and	w8, w26, w24
	cbz	w8, LBB0_24
LBB0_22:
	ldr	x24, [x20, #16]
	stp	w25, w25, [x24, #16]
	str	x20, [x24, #48]
	mov	x0, x25
	bl	_malloc
	str	x0, [x24, #24]
	cbz	x0, LBB0_24
; %bb.23:
	ldr	w8, [x24, #20]
	add	x8, x0, x8
	stp	x8, x0, [x24, #32]
	ldr	x8, [x20, #16]
	mov	w9, #1
	str	w9, [x8]
LBB0_24:
	ldr	x8, [x20, #16]
	ldr	w9, [x8]
	cbz	w9, LBB0_26
; %bb.25:
	add	x9, x8, #16
	str	x9, [x8, #8]
LBB0_26:
	ldr	w9, [x22]
	cmp	w9, w23
	b.ne	LBB0_30
; %bb.27:
	ldr	x8, [x8, #8]
	cbz	x8, LBB0_30
; %bb.28:
	ldr	w1, [sp, #12]                   ; 4-byte Folded Reload
	cmp	w1, #2
	b.lo	LBB0_30
; %bb.29:
	mov	x0, x20
	mov	w2, #0
	bl	_async_io_start
	ldr	x8, [x20, #16]
	str	w0, [x8, #4]
LBB0_30:
	cbz	x19, LBB0_32
; %bb.31:
	str	x21, [x19]
LBB0_32:
	mov	x0, x20
	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
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_33:
Lloh31:
	adrp	x8, _MEM_CACHE_TMP_MAX_SIZE@GOTPAGE
Lloh32:
	ldr	x8, [x8, _MEM_CACHE_TMP_MAX_SIZE@GOTPAGEOFF]
Lloh33:
	ldr	w25, [x8]
Lloh34:
	adrp	x8, _NUM_TMP_MEMORY_AREAS@GOTPAGE
Lloh35:
	ldr	x8, [x8, _NUM_TMP_MEMORY_AREAS@GOTPAGEOFF]
Lloh36:
	ldr	w8, [x8]
	str	w8, [sp, #12]                   ; 4-byte Folded Spill
	b	LBB0_22
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh27, Lloh28
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.cfi_endproc
                                        ; -- End function
	.comm	_VC_CONTAINER_SUCCESS,8,3       ; @VC_CONTAINER_SUCCESS
	.comm	_MAX_NUM_MEMORY_AREAS,4,2       ; @MAX_NUM_MEMORY_AREAS
	.comm	_VC_CONTAINER_ERROR_OUT_OF_MEMORY,8,3 ; @VC_CONTAINER_ERROR_OUT_OF_MEMORY
	.comm	_VC_CONTAINER_IO_CAPS_CANT_SEEK,4,2 ; @VC_CONTAINER_IO_CAPS_CANT_SEEK
	.comm	_io_seek_not_seekable,8,3       ; @io_seek_not_seekable
	.comm	_VC_CONTAINER_IO_CAPS_NO_CACHING,4,2 ; @VC_CONTAINER_IO_CAPS_NO_CACHING
	.comm	_VC_CONTAINER_IO_MODE_WRITE,4,2 ; @VC_CONTAINER_IO_MODE_WRITE
	.comm	_MEM_CACHE_WRITE_MAX_SIZE,4,2   ; @MEM_CACHE_WRITE_MAX_SIZE
	.comm	_MEM_CACHE_READ_MAX_SIZE,4,2    ; @MEM_CACHE_READ_MAX_SIZE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"tmp"

	.comm	_MEM_CACHE_TMP_MAX_SIZE,4,2     ; @MEM_CACHE_TMP_MAX_SIZE
	.comm	_NUM_TMP_MEMORY_AREAS,4,2       ; @NUM_TMP_MEMORY_AREAS
	.no_dead_strip	_vc_container_io_open_core
.subsections_via_symbols
