	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function io_http_read_response
_io_http_read_response:                 ## @io_http_read_response
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	8(%rdi), %rbx
	movq	(%rbx), %r15
	movl	8(%rbx), %edi
	callq	_vc_containers_list_reset
	movq	$0, -64(%rbp)
	movq	%r15, -56(%rbp)
	movq	%r14, %rdi
	movq	%r15, %rsi
	movl	$1, %edx
	callq	_io_http_read_from_net
	cmpl	$1, %eax
	jne	LBB0_1
## %bb.3:
	movq	%rbx, -72(%rbp)                 ## 8-byte Spill
	leaq	1(%r15), %rbx
	movb	(%r15), %r12b
	movq	%r14, %rdi
	movq	%rbx, %rsi
	movl	$1, %edx
	callq	_io_http_read_from_net
	cmpl	$1, %eax
	jne	LBB0_2
## %bb.4:
	xorl	%r13d, %r13d
	cmpb	$13, %r12b
	sete	-41(%rbp)                       ## 1-byte Folded Spill
	leaq	2(%r15), %rbx
	movb	1(%r15), %al
	movb	%al, -42(%rbp)                  ## 1-byte Spill
	movq	%r14, %rdi
	movq	%rbx, %rsi
	movl	$1, %edx
	callq	_io_http_read_from_net
	cmpl	$1, %eax
	jne	LBB0_2
## %bb.5:
	movb	-41(%rbp), %al                  ## 1-byte Reload
	movb	%al, %r13b
	leaq	L___const.io_http_read_response.endstr(%rip), %rcx
	xorl	%eax, %eax
	cmpb	$13, %r12b
	sete	%al
	incl	%eax
	xorl	%esi, %esi
	movb	-42(%rbp), %dl                  ## 1-byte Reload
	cmpb	(%r13,%rcx), %dl
	movq	%rcx, %rdx
	cmovnel	%esi, %eax
	leaq	3(%r15), %rbx
	movb	2(%r15), %cl
	movl	%eax, %r12d
	incl	%r12d
	cmpb	(%rax,%rdx), %cl
	movl	$0, %r13d
	cmovnel	%esi, %r12d
	movq	%r14, %rdi
	movq	%rbx, %rsi
	movl	$1, %edx
	callq	_io_http_read_from_net
	cmpl	$1, %eax
	jne	LBB0_2
## %bb.6:
	leaq	4(%r15), %rbx
	movb	3(%r15), %al
	movl	%r12d, %ecx
	leaq	L___const.io_http_read_response.endstr(%rip), %rdx
	cmpb	(%rcx,%rdx), %al
	jne	LBB0_15
## %bb.7:
	incl	%r12d
	movl	$4, %edx
	movl	%r12d, %r13d
	cmpl	$4, %r12d
	je	LBB0_8
LBB0_15:
	movq	%r14, %rdi
	movq	%rbx, %rsi
	movl	$1, %edx
	callq	_io_http_read_from_net
	cmpl	$1, %eax
	jne	LBB0_2
## %bb.16:
	leaq	5(%r15), %rbx
	movb	4(%r15), %al
	movl	%r13d, %ecx
	xorl	%r12d, %r12d
	leaq	L___const.io_http_read_response.endstr(%rip), %rdx
	cmpb	(%rcx,%rdx), %al
	jne	LBB0_18
## %bb.17:
	incl	%r13d
	movl	$5, %edx
	movl	%r13d, %r12d
	cmpl	$4, %r13d
	je	LBB0_8
LBB0_18:
	movq	%r14, %rdi
	movq	%rbx, %rsi
	movl	$1, %edx
	callq	_io_http_read_from_net
	cmpl	$1, %eax
	jne	LBB0_2
## %bb.19:
	leaq	6(%r15), %rbx
	movb	5(%r15), %al
	movl	%r12d, %ecx
	leaq	L___const.io_http_read_response.endstr(%rip), %rdx
	cmpb	(%rcx,%rdx), %al
	jne	LBB0_21
## %bb.20:
	movl	$6, %edx
	cmpl	$3, %r12d
	jne	LBB0_21
LBB0_8:
	movq	-72(%rbp), %r13                 ## 8-byte Reload
	movb	$0, (%rbx)
	movq	_ENABLE_HTTP_EXTRA_LOGGING@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_10
## %bb.9:
	movq	(%r13), %rcx
	leaq	L_.str.1(%rip), %rsi
	xorl	%edi, %edi
	callq	_LOG_DEBUG
LBB0_10:
	movq	_VC_CONTAINER_ERROR_FORMAT_INVALID@GOTPCREL(%rip), %r12
	jmp	LBB0_11
LBB0_1:
	movq	%r15, %rbx
LBB0_2:
	movb	$0, (%rbx)
LBB0_35:
	movq	%r14, %r12
LBB0_36:
	movl	(%r12), %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_32:                                ##   in Loop: Header=BB0_11 Depth=1
	incq	%r15
LBB0_33:                                ##   in Loop: Header=BB0_11 Depth=1
	movq	%r15, %rax
LBB0_34:                                ##   in Loop: Header=BB0_11 Depth=1
	movq	%rax, %r15
	cmpq	%rbx, %rax
	jae	LBB0_35
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	movsbl	(%r15), %eax
	cmpl	$10, %eax
	je	LBB0_23
## %bb.12:                              ##   in Loop: Header=BB0_11 Depth=1
	cmpl	$58, %eax
	jne	LBB0_32
## %bb.13:                              ##   in Loop: Header=BB0_11 Depth=1
	leaq	1(%r15), %rax
	cmpq	$0, -56(%rbp)
	jne	LBB0_34
## %bb.14:                              ##   in Loop: Header=BB0_11 Depth=1
	movb	$0, (%r15)
	movq	%rax, -56(%rbp)
	jmp	LBB0_34
LBB0_23:                                ##   in Loop: Header=BB0_11 Depth=1
	cmpq	$0, -56(%rbp)
	je	LBB0_29
## %bb.24:                              ##   in Loop: Header=BB0_11 Depth=1
	movb	$0, (%r15)
	movq	-56(%rbp), %rdi
	callq	_io_http_trim
	movq	%rax, -56(%rbp)
	cmpq	$0, -64(%rbp)
	je	LBB0_27
## %bb.25:                              ##   in Loop: Header=BB0_11 Depth=1
	movl	8(%r13), %edi
	leaq	-64(%rbp), %rsi
	xorl	%edx, %edx
	callq	_vc_containers_list_insert
	testl	%eax, %eax
	jne	LBB0_28
	jmp	LBB0_26
LBB0_27:                                ##   in Loop: Header=BB0_11 Depth=1
	movq	%rax, %rdi
	callq	_io_http_successful_response_status
	testl	%eax, %eax
	je	LBB0_36
LBB0_28:                                ##   in Loop: Header=BB0_11 Depth=1
	incq	%r15
	movq	%r15, -64(%rbp)
	movq	$0, -56(%rbp)
	jmp	LBB0_33
LBB0_29:
	movb	$0, (%r15)
	movq	-64(%rbp), %rdx
	movb	(%rdx), %al
	testb	%al, %al
	je	LBB0_35
## %bb.30:
	cmpb	$13, %al
	je	LBB0_35
## %bb.31:
	leaq	L_.str.3(%rip), %rsi
	xorl	%edi, %edi
	xorl	%eax, %eax
	callq	_LOG_ERROR
	jmp	LBB0_36
LBB0_21:
	movq	%r14, %rdi
	movq	%rbx, %rsi
	movl	$1, %edx
	callq	_io_http_read_from_net
	cmpl	$1, %eax
	jne	LBB0_2
## %bb.22:
	leaq	L_.str(%rip), %rsi
	movl	$8, %edx
	xorl	%edi, %edi
	xorl	%eax, %eax
	callq	_LOG_ERROR
	movq	_VC_CONTAINER_ERROR_CORRUPTED@GOTPCREL(%rip), %r12
	jmp	LBB0_36
LBB0_26:
	movq	-64(%rbp), %rdx
	leaq	L_.str.2(%rip), %rsi
	xorl	%edi, %edi
	xorl	%eax, %eax
	callq	_LOG_ERROR
	movq	_VC_CONTAINER_ERROR_OUT_OF_MEMORY@GOTPCREL(%rip), %r12
	jmp	LBB0_36
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L___const.io_http_read_response.endstr: ## @__const.io_http_read_response.endstr
	.asciz	"\r\n\r\n"

L_.str:                                 ## @.str
	.asciz	"comms buffer too small for complete HTTP message (%d)"

	.comm	_VC_CONTAINER_ERROR_CORRUPTED,4,2 ## @VC_CONTAINER_ERROR_CORRUPTED
	.comm	_ENABLE_HTTP_EXTRA_LOGGING,8,3  ## @ENABLE_HTTP_EXTRA_LOGGING
L_.str.1:                               ## @.str.1
	.asciz	"READ FROM SERVER: %d bytes\n%s\n-----------------------------------------"

L_.str.2:                               ## @.str.2
	.asciz	"HTTP: Failed to add <%s> header to list"

	.comm	_VC_CONTAINER_ERROR_OUT_OF_MEMORY,4,2 ## @VC_CONTAINER_ERROR_OUT_OF_MEMORY
	.comm	_VC_CONTAINER_ERROR_FORMAT_INVALID,4,2 ## @VC_CONTAINER_ERROR_FORMAT_INVALID
L_.str.3:                               ## @.str.3
	.asciz	"HTTP: Invalid name in header - no colon:\n%s"

	.no_dead_strip	_io_http_read_response
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function io_http_read_response
_io_http_read_response:                 ; @io_http_read_response
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x0
	ldr	x22, [x0, #8]
	ldr	x20, [x22]
	ldr	w0, [x22, #8]
	bl	_vc_containers_list_reset
	stp	xzr, x20, [sp, #16]
	mov	x0, x19
	mov	x1, x20
	mov	w2, #1
	bl	_io_http_read_from_net
	cmp	w0, #1
	b.ne	LBB0_7
; %bb.1:
	mov	x21, x20
	ldrb	w24, [x21], #1
	mov	x0, x19
	mov	x1, x21
	mov	w2, #1
	bl	_io_http_read_from_net
	cmp	w0, #1
	b.ne	LBB0_8
; %bb.2:
	cmp	w24, #13
	add	x21, x20, #2
	ldrb	w25, [x20, #1]
Lloh0:
	adrp	x23, l___const.io_http_read_response.endstr@PAGE
Lloh1:
	add	x23, x23, l___const.io_http_read_response.endstr@PAGEOFF
	cinc	x26, x23, eq
	mov	w27, #1
	mov	x0, x19
	mov	x1, x21
	mov	w2, #1
	bl	_io_http_read_from_net
	cmp	w0, #1
	b.ne	LBB0_8
; %bb.3:
	ldrb	w8, [x26]
	cmp	w24, #13
	cinc	w9, w27, eq
	cmp	w25, w8
	csel	w8, w9, wzr, eq
	add	x21, x20, #3
	ldrb	w9, [x20, #2]
	ldrb	w10, [x23, w8, uxtw]
	cmp	w9, w10
	csinc	w24, wzr, w8, ne
	mov	x0, x19
	mov	x1, x21
	mov	w2, #1
	bl	_io_http_read_from_net
	cmp	w0, #1
	b.ne	LBB0_8
; %bb.4:
	add	x21, x20, #4
	ldrb	w8, [x20, #3]
	ldrb	w9, [x23, w24, uxtw]
	cmp	w8, w9
	b.ne	LBB0_10
; %bb.5:
	add	w24, w24, #1
	cmp	w24, #4
	b.ne	LBB0_11
; %bb.6:
	mov	w2, #4
	b	LBB0_20
LBB0_7:
	mov	x21, x20
LBB0_8:
	strb	wzr, [x21]
LBB0_9:
	ldr	w0, [x19]
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
LBB0_10:
	mov	w24, #0
LBB0_11:
	mov	x0, x19
	mov	x1, x21
	mov	w2, #1
	bl	_io_http_read_from_net
	cmp	w0, #1
	b.ne	LBB0_8
; %bb.12:
	add	x21, x20, #5
	ldrb	w8, [x20, #4]
	ldrb	w9, [x23, w24, uxtw]
	cmp	w8, w9
	b.ne	LBB0_15
; %bb.13:
	add	w24, w24, #1
	cmp	w24, #4
	b.ne	LBB0_16
; %bb.14:
	mov	w2, #5
	b	LBB0_20
LBB0_15:
	mov	w24, #0
LBB0_16:
	mov	x0, x19
	mov	x1, x21
	mov	w2, #1
	bl	_io_http_read_from_net
	cmp	w0, #1
	b.ne	LBB0_8
; %bb.17:
	add	x21, x20, #6
	ldrb	w8, [x20, #5]
	ldrb	w9, [x23, w24, uxtw]
	cmp	w8, w9
	b.ne	LBB0_36
; %bb.18:
	cmp	w24, #3
	b.ne	LBB0_36
; %bb.19:
	mov	w2, #6
LBB0_20:
	strb	wzr, [x21]
Lloh2:
	adrp	x8, _ENABLE_HTTP_EXTRA_LOGGING@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ENABLE_HTTP_EXTRA_LOGGING@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	cbz	x8, LBB0_22
; %bb.21:
	ldr	x3, [x22]
Lloh5:
	adrp	x1, l_.str.1@PAGE
Lloh6:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, #0
	bl	_LOG_DEBUG
LBB0_22:
Lloh7:
	adrp	x23, _VC_CONTAINER_ERROR_FORMAT_INVALID@GOTPAGE
Lloh8:
	ldr	x23, [x23, _VC_CONTAINER_ERROR_FORMAT_INVALID@GOTPAGEOFF]
	b	LBB0_25
LBB0_23:                                ;   in Loop: Header=BB0_25 Depth=1
	add	x8, x20, #1
LBB0_24:                                ;   in Loop: Header=BB0_25 Depth=1
	mov	x20, x8
	cmp	x8, x21
	b.hs	LBB0_9
LBB0_25:                                ; =>This Inner Loop Header: Depth=1
	ldrsb	w8, [x20]
	cmp	w8, #10
	b.eq	LBB0_29
; %bb.26:                               ;   in Loop: Header=BB0_25 Depth=1
	cmp	w8, #58
	b.ne	LBB0_23
; %bb.27:                               ;   in Loop: Header=BB0_25 Depth=1
	ldr	x9, [sp, #24]
	add	x8, x20, #1
	cbnz	x9, LBB0_24
; %bb.28:                               ;   in Loop: Header=BB0_25 Depth=1
	strb	wzr, [x20]
	str	x8, [sp, #24]
	b	LBB0_24
LBB0_29:                                ;   in Loop: Header=BB0_25 Depth=1
	ldr	x8, [sp, #24]
	cbz	x8, LBB0_34
; %bb.30:                               ;   in Loop: Header=BB0_25 Depth=1
	strb	wzr, [x20], #1
	ldr	x0, [sp, #24]
	bl	_io_http_trim
	str	x0, [sp, #24]
	ldr	x8, [sp, #16]
	cbz	x8, LBB0_32
; %bb.31:                               ;   in Loop: Header=BB0_25 Depth=1
	ldr	w0, [x22, #8]
	add	x1, sp, #16
	mov	w2, #0
	bl	_vc_containers_list_insert
	cbnz	w0, LBB0_33
	b	LBB0_38
LBB0_32:                                ;   in Loop: Header=BB0_25 Depth=1
	bl	_io_http_successful_response_status
	cbz	w0, LBB0_39
LBB0_33:                                ;   in Loop: Header=BB0_25 Depth=1
	stp	x20, xzr, [sp, #16]
	mov	x8, x20
	b	LBB0_24
LBB0_34:
	strb	wzr, [x20]
	ldr	x8, [sp, #16]
	ldrb	w9, [x8]
	cmp	w9, #0
	ccmp	w9, #13, #4, ne
	b.eq	LBB0_9
; %bb.35:
	str	x8, [sp]
Lloh9:
	adrp	x1, l_.str.3@PAGE
Lloh10:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, #0
	bl	_LOG_ERROR
Lloh11:
	adrp	x19, _VC_CONTAINER_ERROR_FORMAT_INVALID@GOTPAGE
Lloh12:
	ldr	x19, [x19, _VC_CONTAINER_ERROR_FORMAT_INVALID@GOTPAGEOFF]
	b	LBB0_9
LBB0_36:
	mov	x0, x19
	mov	x1, x21
	mov	w2, #1
	bl	_io_http_read_from_net
	cmp	w0, #1
	b.ne	LBB0_8
; %bb.37:
	mov	w8, #8
	str	x8, [sp]
Lloh13:
	adrp	x1, l_.str@PAGE
Lloh14:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, #0
	bl	_LOG_ERROR
Lloh15:
	adrp	x19, _VC_CONTAINER_ERROR_CORRUPTED@GOTPAGE
Lloh16:
	ldr	x19, [x19, _VC_CONTAINER_ERROR_CORRUPTED@GOTPAGEOFF]
	b	LBB0_9
LBB0_38:
	ldr	x8, [sp, #16]
	str	x8, [sp]
Lloh17:
	adrp	x1, l_.str.2@PAGE
Lloh18:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, #0
	bl	_LOG_ERROR
Lloh19:
	adrp	x19, _VC_CONTAINER_ERROR_OUT_OF_MEMORY@GOTPAGE
Lloh20:
	ldr	x19, [x19, _VC_CONTAINER_ERROR_OUT_OF_MEMORY@GOTPAGEOFF]
	b	LBB0_9
LBB0_39:
	mov	x19, x23
	b	LBB0_9
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpAdd	Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l___const.io_http_read_response.endstr: ; @__const.io_http_read_response.endstr
	.asciz	"\r\n\r\n"

l_.str:                                 ; @.str
	.asciz	"comms buffer too small for complete HTTP message (%d)"

	.comm	_VC_CONTAINER_ERROR_CORRUPTED,4,2 ; @VC_CONTAINER_ERROR_CORRUPTED
	.comm	_ENABLE_HTTP_EXTRA_LOGGING,8,3  ; @ENABLE_HTTP_EXTRA_LOGGING
l_.str.1:                               ; @.str.1
	.asciz	"READ FROM SERVER: %d bytes\n%s\n-----------------------------------------"

l_.str.2:                               ; @.str.2
	.asciz	"HTTP: Failed to add <%s> header to list"

	.comm	_VC_CONTAINER_ERROR_OUT_OF_MEMORY,4,2 ; @VC_CONTAINER_ERROR_OUT_OF_MEMORY
	.comm	_VC_CONTAINER_ERROR_FORMAT_INVALID,4,2 ; @VC_CONTAINER_ERROR_FORMAT_INVALID
l_.str.3:                               ; @.str.3
	.asciz	"HTTP: Invalid name in header - no colon:\n%s"

	.no_dead_strip	_io_http_read_response
.subsections_via_symbols
