	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function io_http_open_socket
_io_http_open_socket:                   ## @io_http_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	8(%rdi), %r15
	movl	(%rdi), %edi
	callq	_vc_uri_port
	movq	_VC_CONTAINER_ERROR_URI_OPEN_FAILED@GOTPCREL(%rip), %r12
	testq	%rax, %rax
	je	LBB0_7
## %bb.1:
	movq	%rax, %r14
	cmpb	$0, (%rax)
	je	LBB0_7
## %bb.2:
	movl	(%rbx), %edi
	callq	_vc_uri_host
	testq	%rax, %rax
	je	LBB0_7
## %bb.3:
	cmpb	$0, (%rax)
	je	LBB0_7
## %bb.4:
	movq	_VC_CONTAINER_NET_OPEN_FLAG_STREAM@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	%rax, %rdi
	movq	%r14, %rsi
	xorl	%ecx, %ecx
	callq	_vc_container_net_open
	movl	%eax, (%r15)
	testl	%eax, %eax
	je	LBB0_6
## %bb.5:
	movq	_VC_CONTAINER_SUCCESS@GOTPCREL(%rip), %r12
	jmp	LBB0_7
LBB0_6:
	movq	_VC_CONTAINER_ERROR_URI_NOT_FOUND@GOTPCREL(%rip), %r12
LBB0_7:
	movl	(%r12), %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_VC_CONTAINER_ERROR_URI_OPEN_FAILED,4,2 ## @VC_CONTAINER_ERROR_URI_OPEN_FAILED
	.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_SUCCESS,4,2       ## @VC_CONTAINER_SUCCESS
	.no_dead_strip	_io_http_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_http_open_socket
_io_http_open_socket:                   ; @io_http_open_socket
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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, x0
	ldr	x21, [x0, #8]
	ldr	w0, [x0]
	bl	_vc_uri_port
	cbz	x0, LBB0_6
; %bb.1:
	mov	x19, x0
	ldrb	w8, [x0]
	cbz	w8, LBB0_6
; %bb.2:
	ldr	w0, [x20]
	bl	_vc_uri_host
	cbz	x0, LBB0_6
; %bb.3:
	ldrb	w8, [x0]
	cbz	w8, LBB0_6
; %bb.4:
Lloh0:
	adrp	x8, _VC_CONTAINER_NET_OPEN_FLAG_STREAM@GOTPAGE
Lloh1:
	ldr	x8, [x8, _VC_CONTAINER_NET_OPEN_FLAG_STREAM@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	x1, x19
	mov	x3, #0
	bl	_vc_container_net_open
	str	w0, [x21]
	cbz	w0, LBB0_8
; %bb.5:
Lloh3:
	adrp	x8, _VC_CONTAINER_SUCCESS@GOTPAGE
Lloh4:
	ldr	x8, [x8, _VC_CONTAINER_SUCCESS@GOTPAGEOFF]
	b	LBB0_7
LBB0_6:
Lloh5:
	adrp	x8, _VC_CONTAINER_ERROR_URI_OPEN_FAILED@GOTPAGE
Lloh6:
	ldr	x8, [x8, _VC_CONTAINER_ERROR_URI_OPEN_FAILED@GOTPAGEOFF]
LBB0_7:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_8:
Lloh7:
	adrp	x8, _VC_CONTAINER_ERROR_URI_NOT_FOUND@GOTPAGE
Lloh8:
	ldr	x8, [x8, _VC_CONTAINER_ERROR_URI_NOT_FOUND@GOTPAGEOFF]
	b	LBB0_7
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_VC_CONTAINER_ERROR_URI_OPEN_FAILED,4,2 ; @VC_CONTAINER_ERROR_URI_OPEN_FAILED
	.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_SUCCESS,4,2       ; @VC_CONTAINER_SUCCESS
	.no_dead_strip	_io_http_open_socket
.subsections_via_symbols
