	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function io_http_send_get_request
_io_http_send_get_request:              ## @io_http_send_get_request
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, -64(%rbp)                 ## 8-byte Spill
	movq	%rdi, %r12
	movq	16(%rdi), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	(%rax), %r13
	movq	_HTTP_REQUEST_LINE_FORMAT@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	movq	_GET_METHOD@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movl	8(%rdi), %edi
	callq	_vc_uri_path
	movl	%eax, %r14d
	movl	8(%r12), %edi
	callq	_vc_uri_host
	movq	%r13, -48(%rbp)                 ## 8-byte Spill
	movq	%r13, %rdi
	movl	$8, %esi
	movq	%rbx, %rdx
	movl	%r15d, %ecx
	movl	%r14d, %r8d
	movl	%eax, %r9d
	xorl	%eax, %eax
	callq	_snprintf
	movslq	%eax, %rbx
	cmpl	$7, %ebx
	jg	LBB0_1
## %bb.2:
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	movq	8(%r14), %rcx
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	addq	%rcx, %rax
	decq	%rax
	movq	(%r12), %rdx
	leaq	-1(%rdx), %r8
	cmpq	%rdx, %rax
	cmovlq	%rax, %r8
	movq	-48(%rbp), %r15                 ## 8-byte Reload
	leaq	(%r15,%rbx), %rdi
	movl	$8, %esi
	subl	%ebx, %esi
	movq	_HTTP_RANGE_REQUEST@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	xorl	%eax, %eax
	callq	_snprintf
	cltq
	addq	%rax, %rbx
	movq	%r15, %rdi
	cmpq	$7, %rbx
	jle	LBB0_4
	jmp	LBB0_8
LBB0_1:
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	cmpq	$7, %rbx
	jg	LBB0_8
LBB0_4:
	addq	%rbx, %rdi
	movl	$8, %esi
	subl	%ebx, %esi
	movq	_TRAILING_HEADERS_FORMAT@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	xorl	%eax, %eax
	callq	_snprintf
	cltq
	addq	%rax, %rbx
	cmpq	$8, %rbx
	jge	LBB0_8
## %bb.5:
	movq	_ENABLE_HTTP_EXTRA_LOGGING@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_7
## %bb.6:
	movq	(%r14), %rdx
	leaq	L_.str.1(%rip), %rsi
	xorl	%edi, %edi
	callq	_LOG_DEBUG
LBB0_7:
	movq	%r12, %rdi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_io_http_send                   ## TAILCALL
LBB0_8:
	movl	$8, %edx
	subl	%ebx, %edx
	leaq	L_.str(%rip), %rsi
	xorl	%edi, %edi
	movl	$8, %ecx
	callq	_LOG_ERROR
	movq	_VC_CONTAINER_ERROR_OUT_OF_RESOURCES@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_HTTP_REQUEST_LINE_FORMAT,8,3   ## @HTTP_REQUEST_LINE_FORMAT
	.comm	_GET_METHOD,4,2                 ## @GET_METHOD
	.comm	_HTTP_RANGE_REQUEST,8,3         ## @HTTP_RANGE_REQUEST
	.comm	_TRAILING_HEADERS_FORMAT,8,3    ## @TRAILING_HEADERS_FORMAT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"comms buffer too small (%i/%u)"

	.comm	_VC_CONTAINER_ERROR_OUT_OF_RESOURCES,4,2 ## @VC_CONTAINER_ERROR_OUT_OF_RESOURCES
	.comm	_ENABLE_HTTP_EXTRA_LOGGING,8,3  ## @ENABLE_HTTP_EXTRA_LOGGING
L_.str.1:                               ## @.str.1
	.asciz	"Sending server read request:\n%s\n---------------------\n"

	.no_dead_strip	_io_http_send_get_request
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function io_http_send_get_request
_io_http_send_get_request:              ; @io_http_send_get_request
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x21, x1
	mov	x19, x0
	ldr	x24, [x0, #16]
Lloh0:
	adrp	x8, _HTTP_REQUEST_LINE_FORMAT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _HTTP_REQUEST_LINE_FORMAT@GOTPAGEOFF]
	ldr	x20, [x24]
Lloh2:
	ldr	x22, [x8]
Lloh3:
	adrp	x8, _GET_METHOD@GOTPAGE
Lloh4:
	ldr	x8, [x8, _GET_METHOD@GOTPAGEOFF]
	ldr	w0, [x0, #8]
Lloh5:
	ldr	w26, [x8]
	bl	_vc_uri_path
	mov	x23, x0
	ldr	w0, [x19, #8]
	bl	_vc_uri_host
                                        ; kill: def $w0 killed $w0 def $x0
	stp	x23, x0, [sp, #8]
	mov	w25, #8
	str	x26, [sp]
	mov	x0, x20
	mov	w1, #8
	mov	x2, x22
	bl	_snprintf
                                        ; kill: def $w0 killed $w0 def $x0
	sxtw	x22, w0
	cmp	w0, #7
	b.gt	LBB0_2
; %bb.1:
	ldr	x8, [x24, #8]
	add	x9, x21, x8
	sub	x9, x9, #1
	ldr	x10, [x19]
	sub	x11, x10, #1
	cmp	x9, x10
	csel	x9, x9, x11, lt
	add	x0, x20, x22
	sub	w1, w25, w22
Lloh6:
	adrp	x10, _HTTP_RANGE_REQUEST@GOTPAGE
Lloh7:
	ldr	x10, [x10, _HTTP_RANGE_REQUEST@GOTPAGEOFF]
Lloh8:
	ldr	x2, [x10]
	stp	x8, x9, [sp]
	bl	_snprintf
	add	x22, x22, w0, sxtw
LBB0_2:
	cmp	x22, #7
	b.gt	LBB0_7
; %bb.3:
	add	x0, x20, x22
	mov	w8, #8
	sub	w1, w8, w22
Lloh9:
	adrp	x8, _TRAILING_HEADERS_FORMAT@GOTPAGE
Lloh10:
	ldr	x8, [x8, _TRAILING_HEADERS_FORMAT@GOTPAGEOFF]
Lloh11:
	ldr	x2, [x8]
	bl	_snprintf
	add	x22, x22, w0, sxtw
	cmp	x22, #8
	b.ge	LBB0_7
; %bb.4:
Lloh12:
	adrp	x8, _ENABLE_HTTP_EXTRA_LOGGING@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ENABLE_HTTP_EXTRA_LOGGING@GOTPAGEOFF]
Lloh14:
	ldr	x8, [x8]
	cbz	x8, LBB0_6
; %bb.5:
	ldr	x2, [x24]
Lloh15:
	adrp	x1, l_.str.1@PAGE
Lloh16:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, #0
	bl	_LOG_DEBUG
LBB0_6:
	mov	x0, x19
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #112
	b	_io_http_send
LBB0_7:
	mov	w8, #8
	sub	w2, w8, w22
Lloh17:
	adrp	x1, l_.str@PAGE
Lloh18:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #0
	mov	w3, #8
	bl	_LOG_ERROR
Lloh19:
	adrp	x8, _VC_CONTAINER_ERROR_OUT_OF_RESOURCES@GOTPAGE
Lloh20:
	ldr	x8, [x8, _VC_CONTAINER_ERROR_OUT_OF_RESOURCES@GOTPAGEOFF]
Lloh21:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpAdd	Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_HTTP_REQUEST_LINE_FORMAT,8,3   ; @HTTP_REQUEST_LINE_FORMAT
	.comm	_GET_METHOD,4,2                 ; @GET_METHOD
	.comm	_HTTP_RANGE_REQUEST,8,3         ; @HTTP_RANGE_REQUEST
	.comm	_TRAILING_HEADERS_FORMAT,8,3    ; @TRAILING_HEADERS_FORMAT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"comms buffer too small (%i/%u)"

	.comm	_VC_CONTAINER_ERROR_OUT_OF_RESOURCES,4,2 ; @VC_CONTAINER_ERROR_OUT_OF_RESOURCES
	.comm	_ENABLE_HTTP_EXTRA_LOGGING,8,3  ; @ENABLE_HTTP_EXTRA_LOGGING
l_.str.1:                               ; @.str.1
	.asciz	"Sending server read request:\n%s\n---------------------\n"

	.no_dead_strip	_io_http_send_get_request
.subsections_via_symbols
