	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_vc_container_io_http_open      ## -- Begin function vc_container_io_http_open
	.p2align	4, 0x90
_vc_container_io_http_open:             ## @vc_container_io_http_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
	movq	%rdx, %rbx
	movq	%rdi, %r14
	movq	%rsi, %rdi
	callq	_VC_CONTAINER_PARAM_UNUSED
	movl	40(%r14), %edi
	callq	_vc_uri_scheme
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	movl	40(%r14), %edi
	callq	_vc_uri_scheme
	leaq	L_.str(%rip), %rsi
	movl	%eax, %edi
	callq	_strcasecmp
	testq	%rax, %rax
	je	LBB0_3
LBB0_2:
	movq	_VC_CONTAINER_ERROR_FORMAT_NOT_SUPPORTED@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	jmp	LBB0_17
LBB0_3:
	movq	_VC_CONTAINER_IO_MODE_WRITE@GOTPCREL(%rip), %rax
	cmpq	%rbx, (%rax)
	jne	LBB0_5
## %bb.4:
	movq	_VC_CONTAINER_ERROR_UNSUPPORTED_OPERATION@GOTPCREL(%rip), %rax
	jmp	LBB0_9
LBB0_5:
	movl	56(%r14), %edi
	callq	_strlen
	movq	_HTTP_URI_LENGTH_MAX@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jle	LBB0_7
## %bb.6:
	movq	_VC_CONTAINER_ERROR_URI_OPEN_FAILED@GOTPCREL(%rip), %rax
	jmp	LBB0_9
LBB0_7:
	movl	$1, %edi
	movl	$4, %esi
	callq	_calloc
	testq	%rax, %rax
	je	LBB0_8
## %bb.11:
	movq	%rax, %rbx
	movq	%rax, 48(%r14)
	movq	_HEADER_LIST_INITIAL_CAPACITY@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_io_http_header_comparator@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$4, %esi
	callq	_vc_containers_list_create
	movl	%eax, (%rbx)
	testl	%eax, %eax
	je	LBB0_8
## %bb.12:
	movl	40(%r14), %edi
	callq	_vc_uri_port
	testq	%rax, %rax
	jne	LBB0_14
## %bb.13:
	movl	40(%r14), %edi
	movq	_IO_HTTP_DEFAULT_PORT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_vc_uri_set_port
LBB0_14:
	movq	%r14, %rdi
	callq	_io_http_open_socket
	movq	%rax, %rbx
	movq	_VC_CONTAINER_SUCCESS@GOTPCREL(%rip), %r15
	cmpq	(%r15), %rax
	jne	LBB0_10
## %bb.15:
	movq	%r14, %rdi
	callq	_io_http_head
	movq	%rax, %rbx
	cmpq	(%r15), %rax
	jne	LBB0_10
## %bb.16:
	movq	_io_http_close@GOTPCREL(%rip), %rax
	movq	%rax, 32(%r14)
	movq	_io_http_read@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 24(%r14)
	movq	$0, 16(%r14)
	movq	_io_http_control@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%r14)
	movq	_io_http_seek@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 4(%r14)
	movq	_VC_CONTAINER_IO_CAPS_NO_CACHING@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r14)
	movq	_VC_CONTAINER_IO_CAPS_SEEK_SLOW@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movl	%eax, (%r14)
	jmp	LBB0_17
LBB0_8:
	movq	_VC_CONTAINER_ERROR_OUT_OF_MEMORY@GOTPCREL(%rip), %rax
LBB0_9:
	movq	(%rax), %rbx
LBB0_10:
	movq	%r14, %rdi
	callq	_io_http_close
LBB0_17:
	movq	%rbx, %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
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"http"

	.comm	_VC_CONTAINER_ERROR_FORMAT_NOT_SUPPORTED,8,3 ## @VC_CONTAINER_ERROR_FORMAT_NOT_SUPPORTED
	.comm	_VC_CONTAINER_IO_MODE_WRITE,8,3 ## @VC_CONTAINER_IO_MODE_WRITE
	.comm	_VC_CONTAINER_ERROR_UNSUPPORTED_OPERATION,8,3 ## @VC_CONTAINER_ERROR_UNSUPPORTED_OPERATION
	.comm	_HTTP_URI_LENGTH_MAX,8,3        ## @HTTP_URI_LENGTH_MAX
	.comm	_VC_CONTAINER_ERROR_URI_OPEN_FAILED,8,3 ## @VC_CONTAINER_ERROR_URI_OPEN_FAILED
	.comm	_VC_CONTAINER_ERROR_OUT_OF_MEMORY,8,3 ## @VC_CONTAINER_ERROR_OUT_OF_MEMORY
	.comm	_HEADER_LIST_INITIAL_CAPACITY,4,2 ## @HEADER_LIST_INITIAL_CAPACITY
	.comm	_io_http_header_comparator,8,3  ## @io_http_header_comparator
	.comm	_IO_HTTP_DEFAULT_PORT,4,2       ## @IO_HTTP_DEFAULT_PORT
	.comm	_io_http_read,4,2               ## @io_http_read
	.comm	_io_http_control,4,2            ## @io_http_control
	.comm	_io_http_seek,4,2               ## @io_http_seek
	.comm	_VC_CONTAINER_IO_CAPS_NO_CACHING,4,2 ## @VC_CONTAINER_IO_CAPS_NO_CACHING
	.comm	_VC_CONTAINER_IO_CAPS_SEEK_SLOW,4,2 ## @VC_CONTAINER_IO_CAPS_SEEK_SLOW
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_vc_container_io_http_open      ; -- Begin function vc_container_io_http_open
	.p2align	2
_vc_container_io_http_open:             ; @vc_container_io_http_open
	.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, x2
	mov	x19, x0
	mov	x0, x1
	bl	_VC_CONTAINER_PARAM_UNUSED
	ldr	w0, [x19, #40]
	bl	_vc_uri_scheme
	cbz	w0, LBB0_2
; %bb.1:
	ldr	w0, [x19, #40]
	bl	_vc_uri_scheme
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_strcasecmp
	cbz	x0, LBB0_3
LBB0_2:
Lloh2:
	adrp	x8, _VC_CONTAINER_ERROR_FORMAT_NOT_SUPPORTED@GOTPAGE
Lloh3:
	ldr	x8, [x8, _VC_CONTAINER_ERROR_FORMAT_NOT_SUPPORTED@GOTPAGEOFF]
Lloh4:
	ldr	x20, [x8]
	b	LBB0_17
LBB0_3:
Lloh5:
	adrp	x8, _VC_CONTAINER_IO_MODE_WRITE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _VC_CONTAINER_IO_MODE_WRITE@GOTPAGEOFF]
Lloh7:
	ldr	x8, [x8]
	cmp	x8, x20
	b.ne	LBB0_5
; %bb.4:
Lloh8:
	adrp	x8, _VC_CONTAINER_ERROR_UNSUPPORTED_OPERATION@GOTPAGE
Lloh9:
	ldr	x8, [x8, _VC_CONTAINER_ERROR_UNSUPPORTED_OPERATION@GOTPAGEOFF]
	b	LBB0_15
LBB0_5:
	ldr	w0, [x19, #56]
	bl	_strlen
Lloh10:
	adrp	x8, _HTTP_URI_LENGTH_MAX@GOTPAGE
Lloh11:
	ldr	x8, [x8, _HTTP_URI_LENGTH_MAX@GOTPAGEOFF]
Lloh12:
	ldr	x8, [x8]
	cmp	x0, x8
	b.le	LBB0_7
; %bb.6:
Lloh13:
	adrp	x8, _VC_CONTAINER_ERROR_URI_OPEN_FAILED@GOTPAGE
Lloh14:
	ldr	x8, [x8, _VC_CONTAINER_ERROR_URI_OPEN_FAILED@GOTPAGEOFF]
	b	LBB0_15
LBB0_7:
	mov	w0, #1
	mov	w1, #4
	bl	_calloc
	cbz	x0, LBB0_14
; %bb.8:
	mov	x20, x0
	str	x0, [x19, #48]
Lloh15:
	adrp	x8, _HEADER_LIST_INITIAL_CAPACITY@GOTPAGE
Lloh16:
	ldr	x8, [x8, _HEADER_LIST_INITIAL_CAPACITY@GOTPAGEOFF]
Lloh17:
	ldr	w0, [x8]
Lloh18:
	adrp	x8, _io_http_header_comparator@GOTPAGE
Lloh19:
	ldr	x8, [x8, _io_http_header_comparator@GOTPAGEOFF]
Lloh20:
	ldr	w2, [x8]
	mov	w1, #4
	bl	_vc_containers_list_create
	str	w0, [x20]
	cbz	w0, LBB0_14
; %bb.9:
	ldr	w0, [x19, #40]
	bl	_vc_uri_port
	cbnz	x0, LBB0_11
; %bb.10:
	ldr	w0, [x19, #40]
Lloh21:
	adrp	x8, _IO_HTTP_DEFAULT_PORT@GOTPAGE
Lloh22:
	ldr	x8, [x8, _IO_HTTP_DEFAULT_PORT@GOTPAGEOFF]
Lloh23:
	ldr	w1, [x8]
	bl	_vc_uri_set_port
LBB0_11:
	mov	x0, x19
	bl	_io_http_open_socket
	mov	x20, x0
Lloh24:
	adrp	x21, _VC_CONTAINER_SUCCESS@GOTPAGE
Lloh25:
	ldr	x21, [x21, _VC_CONTAINER_SUCCESS@GOTPAGEOFF]
	ldr	x8, [x21]
	cmp	x0, x8
	b.ne	LBB0_16
; %bb.12:
	mov	x0, x19
	bl	_io_http_head
	mov	x20, x0
	ldr	x8, [x21]
	cmp	x0, x8
	b.ne	LBB0_16
; %bb.13:
Lloh26:
	adrp	x8, _io_http_close@GOTPAGE
Lloh27:
	ldr	x8, [x8, _io_http_close@GOTPAGEOFF]
	str	x8, [x19, #32]
Lloh28:
	adrp	x8, _io_http_read@GOTPAGE
Lloh29:
	ldr	x8, [x8, _io_http_read@GOTPAGEOFF]
Lloh30:
	ldr	w8, [x8]
	str	w8, [x19, #24]
	str	xzr, [x19, #16]
Lloh31:
	adrp	x8, _io_http_control@GOTPAGE
Lloh32:
	ldr	x8, [x8, _io_http_control@GOTPAGEOFF]
Lloh33:
	ldr	w8, [x8]
Lloh34:
	adrp	x9, _io_http_seek@GOTPAGE
Lloh35:
	ldr	x9, [x9, _io_http_seek@GOTPAGEOFF]
	str	w8, [x19, #8]
Lloh36:
	ldr	w8, [x9]
Lloh37:
	adrp	x9, _VC_CONTAINER_IO_CAPS_NO_CACHING@GOTPAGE
Lloh38:
	ldr	x9, [x9, _VC_CONTAINER_IO_CAPS_NO_CACHING@GOTPAGEOFF]
Lloh39:
	ldr	w9, [x9]
	stp	w9, w8, [x19]
Lloh40:
	adrp	x8, _VC_CONTAINER_IO_CAPS_SEEK_SLOW@GOTPAGE
Lloh41:
	ldr	x8, [x8, _VC_CONTAINER_IO_CAPS_SEEK_SLOW@GOTPAGEOFF]
Lloh42:
	ldr	w8, [x8]
	orr	w8, w8, w9
	str	w8, [x19]
	b	LBB0_17
LBB0_14:
Lloh43:
	adrp	x8, _VC_CONTAINER_ERROR_OUT_OF_MEMORY@GOTPAGE
Lloh44:
	ldr	x8, [x8, _VC_CONTAINER_ERROR_OUT_OF_MEMORY@GOTPAGEOFF]
LBB0_15:
	ldr	x20, [x8]
LBB0_16:
	mov	x0, x19
	bl	_io_http_close
LBB0_17:
	mov	x0, x20
	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
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh43, Lloh44
	.cfi_endproc
                                        ; -- End function
	.comm	_VC_CONTAINER_SUCCESS,8,3       ; @VC_CONTAINER_SUCCESS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"http"

	.comm	_VC_CONTAINER_ERROR_FORMAT_NOT_SUPPORTED,8,3 ; @VC_CONTAINER_ERROR_FORMAT_NOT_SUPPORTED
	.comm	_VC_CONTAINER_IO_MODE_WRITE,8,3 ; @VC_CONTAINER_IO_MODE_WRITE
	.comm	_VC_CONTAINER_ERROR_UNSUPPORTED_OPERATION,8,3 ; @VC_CONTAINER_ERROR_UNSUPPORTED_OPERATION
	.comm	_HTTP_URI_LENGTH_MAX,8,3        ; @HTTP_URI_LENGTH_MAX
	.comm	_VC_CONTAINER_ERROR_URI_OPEN_FAILED,8,3 ; @VC_CONTAINER_ERROR_URI_OPEN_FAILED
	.comm	_VC_CONTAINER_ERROR_OUT_OF_MEMORY,8,3 ; @VC_CONTAINER_ERROR_OUT_OF_MEMORY
	.comm	_HEADER_LIST_INITIAL_CAPACITY,4,2 ; @HEADER_LIST_INITIAL_CAPACITY
	.comm	_io_http_header_comparator,8,3  ; @io_http_header_comparator
	.comm	_IO_HTTP_DEFAULT_PORT,4,2       ; @IO_HTTP_DEFAULT_PORT
	.comm	_io_http_read,4,2               ; @io_http_read
	.comm	_io_http_control,4,2            ; @io_http_control
	.comm	_io_http_seek,4,2               ; @io_http_seek
	.comm	_VC_CONTAINER_IO_CAPS_NO_CACHING,4,2 ; @VC_CONTAINER_IO_CAPS_NO_CACHING
	.comm	_VC_CONTAINER_IO_CAPS_SEEK_SLOW,4,2 ; @VC_CONTAINER_IO_CAPS_SEEK_SLOW
.subsections_via_symbols
