	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function io_net_open_socket
_io_net_open_socket:                    ## @io_net_open_socket
	.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	%edx, %r14d
	movq	%rsi, %r12
	movq	%rdi, %rbx
	movq	8(%rdi), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	_VC_CONTAINER_SUCCESS@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movl	(%rdi), %edi
	callq	_vc_uri_port
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	%rax, %r13
	cmpb	$0, (%rax)
	je	LBB0_2
## %bb.3:
	movl	(%rbx), %edi
	callq	_vc_uri_host
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	cmpb	$0, (%rax)
	jne	LBB0_8
LBB0_5:
	testl	%r14d, %r14d
	je	LBB0_2
## %bb.6:
	movq	_VC_CONTAINER_IO_MODE_WRITE@GOTPCREL(%rip), %rax
	cmpq	%r12, (%rax)
	je	LBB0_2
## %bb.7:
	xorl	%eax, %eax
LBB0_8:
	movl	$0, %edx
	testl	%r14d, %r14d
	jne	LBB0_10
## %bb.9:
	movq	_VC_CONTAINER_NET_OPEN_FLAG_STREAM@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
LBB0_10:
	movq	%rax, %rdi
	movq	%r13, %rsi
	xorl	%ecx, %ecx
	callq	_vc_container_net_open
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, 16(%rcx)
	testl	%eax, %eax
	jne	LBB0_13
## %bb.11:
	movq	_VC_CONTAINER_ERROR_URI_NOT_FOUND@GOTPCREL(%rip), %rax
	jmp	LBB0_12
LBB0_2:
	movq	_VC_CONTAINER_ERROR_URI_OPEN_FAILED@GOTPCREL(%rip), %rax
LBB0_12:
	movl	(%rax), %r15d
LBB0_13:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_VC_CONTAINER_SUCCESS,4,2       ## @VC_CONTAINER_SUCCESS
	.comm	_VC_CONTAINER_ERROR_URI_OPEN_FAILED,4,2 ## @VC_CONTAINER_ERROR_URI_OPEN_FAILED
	.comm	_VC_CONTAINER_IO_MODE_WRITE,8,3 ## @VC_CONTAINER_IO_MODE_WRITE
	.comm	_VC_CONTAINER_NET_OPEN_FLAG_STREAM,4,2 ## @VC_CONTAINER_NET_OPEN_FLAG_STREAM
	.comm	_VC_CONTAINER_ERROR_URI_NOT_FOUND,4,2 ## @VC_CONTAINER_ERROR_URI_NOT_FOUND
	.comm	_VC_CONTAINER_IO_MODE_READ,8,3  ## @VC_CONTAINER_IO_MODE_READ
	.no_dead_strip	_io_net_open_socket
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function io_net_open_socket
_io_net_open_socket:                    ; @io_net_open_socket
	.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, x1
	mov	x22, x0
	ldr	x24, [x0, #8]
Lloh0:
	adrp	x8, _VC_CONTAINER_SUCCESS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _VC_CONTAINER_SUCCESS@GOTPAGEOFF]
Lloh2:
	ldr	w23, [x8]
	ldr	w0, [x0]
	bl	_vc_uri_port
	cbz	x0, LBB0_8
; %bb.1:
	mov	x20, x0
	ldrb	w8, [x0]
	cbz	w8, LBB0_8
; %bb.2:
	ldr	w0, [x22]
	bl	_vc_uri_host
	cbz	x0, LBB0_4
; %bb.3:
	ldrb	w8, [x0]
	cbnz	w8, LBB0_7
LBB0_4:
	cbz	w19, LBB0_8
; %bb.5:
Lloh3:
	adrp	x8, _VC_CONTAINER_IO_MODE_WRITE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _VC_CONTAINER_IO_MODE_WRITE@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	cmp	x8, x21
	b.eq	LBB0_8
; %bb.6:
	mov	x0, #0
LBB0_7:
Lloh6:
	adrp	x8, _VC_CONTAINER_NET_OPEN_FLAG_STREAM@GOTPAGE
Lloh7:
	ldr	x8, [x8, _VC_CONTAINER_NET_OPEN_FLAG_STREAM@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	cmp	w19, #0
	csel	w2, w8, wzr, eq
	mov	x1, x20
	mov	x3, #0
	bl	_vc_container_net_open
	str	w0, [x24, #16]
Lloh9:
	adrp	x8, _VC_CONTAINER_ERROR_URI_NOT_FOUND@GOTPAGE
Lloh10:
	ldr	x8, [x8, _VC_CONTAINER_ERROR_URI_NOT_FOUND@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	cmp	w0, #0
	csel	w0, w8, w23, eq
	b	LBB0_9
LBB0_8:
Lloh12:
	adrp	x8, _VC_CONTAINER_ERROR_URI_OPEN_FAILED@GOTPAGE
Lloh13:
	ldr	x8, [x8, _VC_CONTAINER_ERROR_URI_OPEN_FAILED@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
LBB0_9:
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_VC_CONTAINER_SUCCESS,4,2       ; @VC_CONTAINER_SUCCESS
	.comm	_VC_CONTAINER_ERROR_URI_OPEN_FAILED,4,2 ; @VC_CONTAINER_ERROR_URI_OPEN_FAILED
	.comm	_VC_CONTAINER_IO_MODE_WRITE,8,3 ; @VC_CONTAINER_IO_MODE_WRITE
	.comm	_VC_CONTAINER_NET_OPEN_FLAG_STREAM,4,2 ; @VC_CONTAINER_NET_OPEN_FLAG_STREAM
	.comm	_VC_CONTAINER_ERROR_URI_NOT_FOUND,4,2 ; @VC_CONTAINER_ERROR_URI_NOT_FOUND
	.comm	_VC_CONTAINER_IO_MODE_READ,8,3  ; @VC_CONTAINER_IO_MODE_READ
	.no_dead_strip	_io_net_open_socket
.subsections_via_symbols
