	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_vc_container_io_net_open       ## -- Begin function vc_container_io_net_open
	.p2align	4, 0x90
_vc_container_io_net_open:              ## @vc_container_io_net_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r14d
	movq	%rdi, %r15
	movq	%rsi, %rdi
	callq	_VC_CONTAINER_PARAM_UNUSED
	movl	32(%r15), %edi
	leaq	-28(%rbp), %rsi
	callq	_io_net_recognise_scheme
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	movl	$4, %edi
	callq	_malloc
	testq	%rax, %rax
	je	LBB0_3
## %bb.6:
	movq	%rax, %rbx
	movq	%rax, %rdi
	xorl	%esi, %esi
	movl	$4, %edx
	callq	_memset
	movq	%rbx, 24(%r15)
	movl	-28(%rbp), %edx
	movq	%r15, %rdi
	movl	%r14d, %esi
	callq	_io_net_open_socket
	movq	%rax, %r14
	movq	_VC_CONTAINER_SUCCESS@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r14
	jne	LBB0_5
## %bb.7:
	movq	_io_net_close@GOTPCREL(%rip), %rax
	movq	%rax, 16(%r15)
	movq	_io_net_read@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 12(%r15)
	movq	_io_net_write@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%r15)
	movq	_io_net_control@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 4(%r15)
	movq	_VC_CONTAINER_IO_CAPS_CANT_SEEK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r15)
	jmp	LBB0_8
LBB0_1:
	movq	_VC_CONTAINER_ERROR_URI_NOT_FOUND@GOTPCREL(%rip), %rax
	jmp	LBB0_4
LBB0_3:
	movq	_VC_CONTAINER_ERROR_OUT_OF_MEMORY@GOTPCREL(%rip), %rax
LBB0_4:
	movq	(%rax), %r14
LBB0_5:
	movq	%r15, %rdi
	callq	_io_net_close
LBB0_8:
	movq	%r14, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_VC_CONTAINER_SUCCESS,8,3       ## @VC_CONTAINER_SUCCESS
	.comm	_VC_CONTAINER_ERROR_URI_NOT_FOUND,8,3 ## @VC_CONTAINER_ERROR_URI_NOT_FOUND
	.comm	_VC_CONTAINER_ERROR_OUT_OF_MEMORY,8,3 ## @VC_CONTAINER_ERROR_OUT_OF_MEMORY
	.comm	_io_net_read,4,2                ## @io_net_read
	.comm	_io_net_write,4,2               ## @io_net_write
	.comm	_io_net_control,4,2             ## @io_net_control
	.comm	_VC_CONTAINER_IO_CAPS_CANT_SEEK,4,2 ## @VC_CONTAINER_IO_CAPS_CANT_SEEK
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_vc_container_io_net_open       ; -- Begin function vc_container_io_net_open
	.p2align	2
_vc_container_io_net_open:              ; @vc_container_io_net_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
	mov	x20, x2
	mov	x19, x0
	mov	x0, x1
	bl	_VC_CONTAINER_PARAM_UNUSED
	ldr	w0, [x19, #32]
	add	x1, sp, #12
	bl	_io_net_recognise_scheme
	cbz	w0, LBB0_4
; %bb.1:
	mov	w0, #4
	bl	_malloc
	cbz	x0, LBB0_5
; %bb.2:
	mov	x21, x0
	mov	w1, #0
	mov	w2, #4
	bl	_memset
	str	x21, [x19, #24]
	ldr	w2, [sp, #12]
	mov	x0, x19
	mov	x1, x20
	bl	_io_net_open_socket
	mov	x20, x0
Lloh0:
	adrp	x8, _VC_CONTAINER_SUCCESS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _VC_CONTAINER_SUCCESS@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_7
; %bb.3:
Lloh3:
	adrp	x8, _io_net_close@GOTPAGE
Lloh4:
	ldr	x8, [x8, _io_net_close@GOTPAGEOFF]
	str	x8, [x19, #16]
Lloh5:
	adrp	x8, _io_net_read@GOTPAGE
Lloh6:
	ldr	x8, [x8, _io_net_read@GOTPAGEOFF]
Lloh7:
	adrp	x9, _io_net_write@GOTPAGE
Lloh8:
	ldr	x9, [x9, _io_net_write@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
Lloh10:
	ldr	w9, [x9]
	stp	w9, w8, [x19, #8]
Lloh11:
	adrp	x8, _io_net_control@GOTPAGE
Lloh12:
	ldr	x8, [x8, _io_net_control@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
Lloh14:
	adrp	x9, _VC_CONTAINER_IO_CAPS_CANT_SEEK@GOTPAGE
Lloh15:
	ldr	x9, [x9, _VC_CONTAINER_IO_CAPS_CANT_SEEK@GOTPAGEOFF]
Lloh16:
	ldr	w9, [x9]
	stp	w9, w8, [x19]
	b	LBB0_8
LBB0_4:
Lloh17:
	adrp	x8, _VC_CONTAINER_ERROR_URI_NOT_FOUND@GOTPAGE
Lloh18:
	ldr	x8, [x8, _VC_CONTAINER_ERROR_URI_NOT_FOUND@GOTPAGEOFF]
	b	LBB0_6
LBB0_5:
Lloh19:
	adrp	x8, _VC_CONTAINER_ERROR_OUT_OF_MEMORY@GOTPAGE
Lloh20:
	ldr	x8, [x8, _VC_CONTAINER_ERROR_OUT_OF_MEMORY@GOTPAGEOFF]
LBB0_6:
	ldr	x20, [x8]
LBB0_7:
	mov	x0, x19
	bl	_io_net_close
LBB0_8:
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh9
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_VC_CONTAINER_SUCCESS,8,3       ; @VC_CONTAINER_SUCCESS
	.comm	_VC_CONTAINER_ERROR_URI_NOT_FOUND,8,3 ; @VC_CONTAINER_ERROR_URI_NOT_FOUND
	.comm	_VC_CONTAINER_ERROR_OUT_OF_MEMORY,8,3 ; @VC_CONTAINER_ERROR_OUT_OF_MEMORY
	.comm	_io_net_read,4,2                ; @io_net_read
	.comm	_io_net_write,4,2               ; @io_net_write
	.comm	_io_net_control,4,2             ; @io_net_control
	.comm	_VC_CONTAINER_IO_CAPS_CANT_SEEK,4,2 ; @VC_CONTAINER_IO_CAPS_CANT_SEEK
.subsections_via_symbols
