	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function open_file
_open_file:                             ## @open_file
	.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
	movq	%rdx, %r14
	movq	%rdi, %r12
	movq	_VC_CONTAINER_IO_MODE_WRITE@GOTPCREL(%rip), %rax
	cmpq	%rsi, (%rax)
	leaq	L_.str(%rip), %rax
	leaq	L_.str.1(%rip), %r15
	cmoveq	%rax, %r15
	movl	(%rdi), %edi
	callq	_vc_uri_port
	xorl	%r13d, %r13d
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	cmpb	$0, (%rax)
	cmovneq	%rax, %r13
LBB0_2:
	movl	(%r12), %edi
	callq	_vc_uri_path
	movq	_VC_CONTAINER_ERROR_URI_OPEN_FAILED@GOTPCREL(%rip), %rcx
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	movq	%rax, %rbx
	xorl	%eax, %eax
	cmpb	$0, (%rbx)
	cmoveq	%rax, %rbx
	testq	%r13, %r13
	jne	LBB0_11
## %bb.5:
	testq	%rbx, %rbx
	je	LBB0_11
## %bb.6:
	movl	(%r12), %edi
	callq	_vc_uri_scheme
	movl	%eax, %edi
	callq	_recognise_scheme
	testl	%eax, %eax
	je	LBB0_7
## %bb.8:
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_fopen
	testq	%rax, %rax
	jne	LBB0_9
## %bb.10:
	movq	_VC_CONTAINER_ERROR_URI_NOT_FOUND@GOTPCREL(%rip), %rcx
	jmp	LBB0_11
LBB0_3:
	xorl	%eax, %eax
	jmp	LBB0_11
LBB0_7:
	movq	_VC_CONTAINER_ERROR_URI_NOT_FOUND@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	jmp	LBB0_11
LBB0_9:
	movq	_VC_CONTAINER_SUCCESS@GOTPCREL(%rip), %rcx
LBB0_11:
	movl	(%rcx), %ecx
	movl	%ecx, (%r14)
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_VC_CONTAINER_IO_MODE_WRITE,8,3 ## @VC_CONTAINER_IO_MODE_WRITE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"wb+"

L_.str.1:                               ## @.str.1
	.asciz	"rb"

	.comm	_VC_CONTAINER_ERROR_URI_OPEN_FAILED,4,2 ## @VC_CONTAINER_ERROR_URI_OPEN_FAILED
	.comm	_VC_CONTAINER_ERROR_URI_NOT_FOUND,4,2 ## @VC_CONTAINER_ERROR_URI_NOT_FOUND
	.comm	_VC_CONTAINER_SUCCESS,4,2       ## @VC_CONTAINER_SUCCESS
	.no_dead_strip	_open_file
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function open_file
_open_file:                             ; @open_file
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x2
	mov	x21, x0
Lloh0:
	adrp	x8, _VC_CONTAINER_IO_MODE_WRITE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _VC_CONTAINER_IO_MODE_WRITE@GOTPAGEOFF]
Lloh2:
	adrp	x9, l_.str.1@PAGE
Lloh3:
	add	x9, x9, l_.str.1@PAGEOFF
Lloh4:
	ldr	x8, [x8]
Lloh5:
	adrp	x10, l_.str@PAGE
Lloh6:
	add	x10, x10, l_.str@PAGEOFF
	cmp	x8, x1
	csel	x20, x10, x9, eq
	ldr	w0, [x0]
	bl	_vc_uri_port
	cbz	x0, LBB0_2
; %bb.1:
	ldrb	w8, [x0]
	cmp	w8, #0
	csel	x24, xzr, x0, eq
	b	LBB0_3
LBB0_2:
	mov	x24, #0
LBB0_3:
	ldr	w0, [x21]
	bl	_vc_uri_path
	cbz	x0, LBB0_8
; %bb.4:
	mov	x8, x0
	mov	x0, #0
	ldrb	w9, [x8]
	cmp	w9, #0
	csel	x22, xzr, x8, eq
Lloh7:
	adrp	x23, _VC_CONTAINER_ERROR_URI_OPEN_FAILED@GOTPAGE
Lloh8:
	ldr	x23, [x23, _VC_CONTAINER_ERROR_URI_OPEN_FAILED@GOTPAGEOFF]
	cbnz	x24, LBB0_10
; %bb.5:
	cbz	x22, LBB0_10
; %bb.6:
	ldr	w0, [x21]
	bl	_vc_uri_scheme
	bl	_recognise_scheme
Lloh9:
	adrp	x23, _VC_CONTAINER_ERROR_URI_NOT_FOUND@GOTPAGE
Lloh10:
	ldr	x23, [x23, _VC_CONTAINER_ERROR_URI_NOT_FOUND@GOTPAGEOFF]
	cbz	w0, LBB0_9
; %bb.7:
	mov	x0, x22
	mov	x1, x20
	bl	_fopen
Lloh11:
	adrp	x8, _VC_CONTAINER_SUCCESS@GOTPAGE
Lloh12:
	ldr	x8, [x8, _VC_CONTAINER_SUCCESS@GOTPAGEOFF]
	cmp	x0, #0
	csel	x23, x23, x8, eq
	b	LBB0_10
LBB0_8:
Lloh13:
	adrp	x23, _VC_CONTAINER_ERROR_URI_OPEN_FAILED@GOTPAGE
Lloh14:
	ldr	x23, [x23, _VC_CONTAINER_ERROR_URI_OPEN_FAILED@GOTPAGEOFF]
	b	LBB0_10
LBB0_9:
	mov	x0, #0
LBB0_10:
	ldr	w8, [x23]
	str	w8, [x19]
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh4
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_VC_CONTAINER_IO_MODE_WRITE,8,3 ; @VC_CONTAINER_IO_MODE_WRITE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"wb+"

l_.str.1:                               ; @.str.1
	.asciz	"rb"

	.comm	_VC_CONTAINER_ERROR_URI_OPEN_FAILED,4,2 ; @VC_CONTAINER_ERROR_URI_OPEN_FAILED
	.comm	_VC_CONTAINER_ERROR_URI_NOT_FOUND,4,2 ; @VC_CONTAINER_ERROR_URI_NOT_FOUND
	.comm	_VC_CONTAINER_SUCCESS,4,2       ; @VC_CONTAINER_SUCCESS
	.no_dead_strip	_open_file
.subsections_via_symbols
