	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_net_http_update                ## -- Begin function net_http_update
	.p2align	4, 0x90
_net_http_update:                       ## @net_http_update
	.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
	movl	$1, %eax
	testq	%rdi, %rdi
	je	LBB0_60
## %bb.1:
	movq	%rdi, %r13
	movq	%rsi, -56(%rbp)                 ## 8-byte Spill
	movq	%rdx, -64(%rbp)                 ## 8-byte Spill
	cmpl	$0, (%rdi)
	je	LBB0_2
LBB0_59:
	movl	$1, (%r13)
	movq	_P_ERROR@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 8(%r13)
	movl	$-1, 32(%r13)
	movl	$1, %eax
	jmp	LBB0_60
LBB0_2:
	movq	8(%r13), %rax
	movq	_P_BODY@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jge	LBB0_61
## %bb.3:
	movl	28(%r13), %ecx
	movl	56(%r13), %edi
	movslq	24(%r13), %rdx
	subl	%edx, %ecx
	shlq	$2, %rdx
	addq	16(%r13), %rdx
	movq	%r13, %rsi
	callq	_socket_receive_all_nonblocking
	testl	%eax, %eax
	js	LBB0_59
## %bb.4:
	movl	24(%r13), %r14d
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	addl	%eax, %r14d
	movl	28(%r13), %esi
	leal	-64(%rsi), %eax
	cmpl	%eax, %r14d
	jl	LBB0_6
## %bb.5:
	addl	%esi, %esi
	movl	%esi, 28(%r13)
	movq	16(%r13), %rdi
                                        ## kill: def $esi killed $esi killed $rsi
	callq	_realloc
	movq	%rax, 16(%r13)
	movl	24(%r13), %r14d
	addl	-44(%rbp), %r14d                ## 4-byte Folded Reload
LBB0_6:
	movl	%r14d, 24(%r13)
	movq	8(%r13), %rax
	movq	_P_BODY@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_36:                                ##   in Loop: Header=BB0_7 Depth=1
	movslq	%r14d, %rax
	addq	%rax, %r12
	incq	%r15
	subl	%r15d, %r12d
	movq	%r15, %rsi
	movl	%r12d, %edx
	callq	_memmove
	movl	%r12d, 24(%r13)
	movq	8(%r13), %rax
	movq	_P_BODY@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	%r12d, %r14d
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	%rcx, %rax
	jge	LBB0_10
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=1
	movq	16(%r13), %r12
	movq	%r12, %rdi
	movl	$10, %esi
	movl	%r14d, %edx
	callq	_memchr
	testq	%rax, %rax
	je	LBB0_9
## %bb.23:                              ##   in Loop: Header=BB0_7 Depth=1
	movq	%rax, %r15
	movb	$0, (%rax)
	cmpq	%rax, 16(%r13)
	je	LBB0_26
## %bb.24:                              ##   in Loop: Header=BB0_7 Depth=1
	cmpb	$13, -1(%r15)
	jne	LBB0_26
## %bb.25:                              ##   in Loop: Header=BB0_7 Depth=1
	movb	$0, -1(%r15)
LBB0_26:                                ##   in Loop: Header=BB0_7 Depth=1
	movq	8(%r13), %rax
	movq	16(%r13), %rbx
	movq	_P_HEADER_TOP@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_29
## %bb.27:                              ##   in Loop: Header=BB0_7 Depth=1
	leaq	L_.str(%rip), %rdi
	callq	_STRLEN_CONST
	movq	%rbx, %rdi
	leaq	L_.str(%rip), %rsi
	movl	%eax, %edx
	callq	_strncmp
	testq	%rax, %rax
	jne	LBB0_59
## %bb.28:                              ##   in Loop: Header=BB0_7 Depth=1
	movq	16(%r13), %rbx
	leaq	L_.str.1(%rip), %rdi
	callq	_STRLEN_CONST
	movslq	%eax, %rdi
	addq	%rbx, %rdi
	xorl	%esi, %esi
	movl	$10, %edx
	callq	_strtoul
	movl	%eax, 32(%r13)
	movq	_P_HEADER@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 8(%r13)
	movq	16(%r13), %rdi
	jmp	LBB0_36
	.p2align	4, 0x90
LBB0_29:                                ##   in Loop: Header=BB0_7 Depth=1
	leaq	L_.str.2(%rip), %rdi
	callq	_STRLEN_CONST
	movq	%rbx, %rdi
	leaq	L_.str.2(%rip), %rsi
	movl	%eax, %edx
	callq	_strncmp
	testq	%rax, %rax
	jne	LBB0_31
## %bb.30:                              ##   in Loop: Header=BB0_7 Depth=1
	movq	_T_LEN@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 40(%r13)
	movq	16(%r13), %rbx
	leaq	L_.str.2(%rip), %rdi
	callq	_STRLEN_CONST
	movslq	%eax, %rdi
	addq	%rbx, %rdi
	xorl	%esi, %esi
	movl	$10, %edx
	callq	_strtol
	movl	%eax, 48(%r13)
LBB0_31:                                ##   in Loop: Header=BB0_7 Depth=1
	movq	16(%r13), %rdi
	leaq	L_.str.3(%rip), %rsi
	callq	_string_is_equal
	testq	%rax, %rax
	je	LBB0_33
## %bb.32:                              ##   in Loop: Header=BB0_7 Depth=1
	movq	_T_CHUNK@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 40(%r13)
LBB0_33:                                ##   in Loop: Header=BB0_7 Depth=1
	movq	16(%r13), %rdi
	cmpb	$0, (%rdi)
	jne	LBB0_36
## %bb.34:                              ##   in Loop: Header=BB0_7 Depth=1
	movq	_P_BODY@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 8(%r13)
	movq	40(%r13), %rax
	movq	_T_CHUNK@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_36
## %bb.35:                              ##   in Loop: Header=BB0_7 Depth=1
	movq	_P_BODY_CHUNKLEN@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 8(%r13)
	jmp	LBB0_36
LBB0_61:
	movq	_P_DONE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jge	LBB0_51
LBB0_15:
	cmpl	$0, (%r13)
	je	LBB0_16
LBB0_17:
	movq	40(%r13), %rax
	movq	_T_FULL@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_59
## %bb.18:
	movq	_P_DONE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 8(%r13)
	movq	16(%r13), %rdi
	movl	48(%r13), %esi
	callq	_realloc
	movq	%rax, 16(%r13)
	xorl	%edi, %edi
	jmp	LBB0_19
LBB0_16:
	movl	28(%r13), %ecx
	movl	56(%r13), %edi
	movslq	24(%r13), %rdx
	subl	%edx, %ecx
	shlq	$2, %rdx
	addq	16(%r13), %rdx
	movq	%r13, %rsi
	callq	_socket_receive_all_nonblocking
	movl	%eax, %edi
	testl	%eax, %eax
	js	LBB0_17
LBB0_19:
	movl	24(%r13), %eax
	addl	%edi, %eax
	movl	28(%r13), %esi
	leal	-64(%rsi), %ecx
	cmpl	%ecx, %eax
	jl	LBB0_21
## %bb.20:
	addl	%esi, %esi
	movl	%esi, 28(%r13)
	movl	%edi, %ebx
	movq	16(%r13), %rdi
                                        ## kill: def $esi killed $esi killed $rsi
	callq	_realloc
	movl	%ebx, %edi
	movq	%rax, 16(%r13)
	jmp	LBB0_21
LBB0_9:
	movq	8(%r13), %rax
	movq	_P_BODY@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
LBB0_10:
	cmpq	%rcx, %rax
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	jl	LBB0_12
## %bb.11:
	movl	24(%r13), %edi
	movl	$0, 24(%r13)
LBB0_12:
	cmpq	%rcx, %rax
	jl	LBB0_51
## %bb.13:
	movq	_P_DONE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jge	LBB0_51
## %bb.14:
	testl	%edi, %edi
	je	LBB0_15
LBB0_21:
	movq	40(%r13), %rax
	movq	_T_CHUNK@GOTPCREL(%rip), %rsi
	cmpq	(%rsi), %rax
	jne	LBB0_22
## %bb.37:
	movq	_P_BODY_CHUNKLEN@GOTPCREL(%rip), %rbx
	jmp	LBB0_38
LBB0_42:                                ##   in Loop: Header=BB0_38 Depth=1
	movq	_T_CHUNK@GOTPCREL(%rip), %rsi
	movq	_P_BODY_CHUNKLEN@GOTPCREL(%rip), %rbx
LBB0_47:                                ##   in Loop: Header=BB0_38 Depth=1
	movq	40(%r13), %rax
	movl	%r12d, %edi
	cmpq	(%rsi), %rax
	jne	LBB0_48
LBB0_38:                                ## =>This Inner Loop Header: Depth=1
	movq	8(%r13), %rcx
	movq	(%rbx), %rax
	cmpq	%rax, %rcx
	jne	LBB0_44
## %bb.39:                              ##   in Loop: Header=BB0_38 Depth=1
	movslq	24(%r13), %rax
	movslq	%edi, %rbx
	addq	%rax, %rbx
	movl	%ebx, 24(%r13)
	movslq	48(%r13), %rax
	movl	%ebx, %edx
	subl	%eax, %edx
	cmpl	$2, %edx
	jl	LBB0_51
## %bb.40:                              ##   in Loop: Header=BB0_38 Depth=1
	movq	16(%r13), %r12
	leaq	(%r12,%rax), %rdi
	addq	$2, %rdi
	addl	$-2, %edx
	movl	$10, %esi
	callq	_memchr
	testq	%rax, %rax
	je	LBB0_51
## %bb.41:                              ##   in Loop: Header=BB0_38 Depth=1
	movq	%rax, %r14
	addl	%ebx, %r12d
	movslq	48(%r13), %rdi
	addq	16(%r13), %rdi
	xorl	%esi, %esi
	movl	$16, %edx
	callq	_strtoul
	movq	%rax, %r15
	movslq	48(%r13), %rdi
	movl	%edi, 24(%r13)
	incq	%r14
	addq	16(%r13), %rdi
	subl	%r14d, %r12d
	movq	%r14, %rsi
	movl	%r12d, %edx
	callq	_memmove
	movl	%r15d, 48(%r13)
	movq	_P_BODY@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 8(%r13)
	testl	%r15d, %r15d
	jne	LBB0_42
## %bb.43:                              ##   in Loop: Header=BB0_38 Depth=1
	movq	_P_DONE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 8(%r13)
	movl	24(%r13), %esi
	movl	%esi, 48(%r13)
	movq	16(%r13), %rdi
	callq	_realloc
	movq	%rax, 16(%r13)
	jmp	LBB0_42
LBB0_44:                                ##   in Loop: Header=BB0_38 Depth=1
	movq	_P_BODY@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_51
## %bb.45:                              ##   in Loop: Header=BB0_38 Depth=1
	movl	24(%r13), %ecx
	movl	48(%r13), %edx
	movl	%edi, %r12d
	subl	%edx, %r12d
	jb	LBB0_62
## %bb.46:                              ##   in Loop: Header=BB0_38 Depth=1
	addl	%edx, %ecx
	movl	%ecx, 24(%r13)
	movl	%ecx, 48(%r13)
	movq	%rax, 8(%r13)
	jmp	LBB0_47
LBB0_22:
	movl	%edi, %r12d
LBB0_48:
	addl	24(%r13), %r12d
	movl	%r12d, 24(%r13)
	movl	48(%r13), %eax
	cmpl	%eax, %r12d
	jne	LBB0_50
## %bb.49:
	movq	_P_DONE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 8(%r13)
	movq	16(%r13), %rdi
	movl	%r12d, %esi
	callq	_realloc
	movq	%rax, 16(%r13)
	movl	24(%r13), %r12d
	movl	48(%r13), %eax
LBB0_50:
	cmpl	%eax, %r12d
	jg	LBB0_59
	jmp	LBB0_51
LBB0_62:
	addl	%edi, %ecx
	movl	%ecx, 24(%r13)
	subl	%edi, %edx
	movl	%edx, 48(%r13)
LBB0_51:
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	testq	%rcx, %rcx
	je	LBB0_53
## %bb.52:
	movslq	24(%r13), %rax
	movq	%rax, (%rcx)
LBB0_53:
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	testq	%rdx, %rdx
	je	LBB0_58
## %bb.54:
	movq	40(%r13), %rax
	movq	_T_LEN@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_55
## %bb.56:
	movslq	48(%r13), %rax
	jmp	LBB0_57
LBB0_55:
	xorl	%eax, %eax
LBB0_57:
	movq	%rax, (%rdx)
LBB0_58:
	movq	8(%r13), %rdx
	movq	_P_DONE@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	cmpq	(%rcx), %rdx
	sete	%al
LBB0_60:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_P_BODY,8,3                     ## @P_BODY
	.comm	_P_HEADER_TOP,8,3               ## @P_HEADER_TOP
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"HTTP/1."

L_.str.1:                               ## @.str.1
	.asciz	"HTTP/1.1 "

	.comm	_P_HEADER,8,3                   ## @P_HEADER
L_.str.2:                               ## @.str.2
	.asciz	"Content-Length: "

	.comm	_T_LEN,8,3                      ## @T_LEN
L_.str.3:                               ## @.str.3
	.asciz	"Transfer-Encoding: chunked"

	.comm	_T_CHUNK,8,3                    ## @T_CHUNK
	.comm	_P_BODY_CHUNKLEN,8,3            ## @P_BODY_CHUNKLEN
	.comm	_P_DONE,8,3                     ## @P_DONE
	.comm	_T_FULL,8,3                     ## @T_FULL
	.comm	_P_ERROR,8,3                    ## @P_ERROR
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_net_http_update                ; -- Begin function net_http_update
	.p2align	2
_net_http_update:                       ; @net_http_update
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	cbz	x0, LBB0_3
; %bb.1:
	mov	x19, x0
	ldr	w8, [x0]
	cbz	w8, LBB0_4
LBB0_2:
	mov	w0, #1
	str	w0, [x19]
Lloh0:
	adrp	x8, _P_ERROR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _P_ERROR@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [x19, #8]
	mov	w8, #-1
	str	w8, [x19, #32]
	b	LBB0_59
LBB0_3:
	mov	w0, #1
	b	LBB0_59
LBB0_4:
	mov	x20, x2
	mov	x21, x1
	ldr	x8, [x19, #8]
Lloh3:
	adrp	x24, _P_BODY@GOTPAGE
Lloh4:
	ldr	x24, [x24, _P_BODY@GOTPAGEOFF]
	ldr	x9, [x24]
Lloh5:
	adrp	x10, _P_DONE@GOTPAGE
Lloh6:
	ldr	x10, [x10, _P_DONE@GOTPAGEOFF]
	cmp	x8, x9
	b.ge	LBB0_24
; %bb.5:
	ldr	w0, [x19, #56]
	ldr	x8, [x19, #16]
	ldp	w9, w10, [x19, #24]
                                        ; kill: def $w9 killed $w9 def $x9
	sxtw	x9, w9
	add	x2, x8, x9, lsl #2
	sub	w3, w10, w9
	mov	x1, x19
	bl	_socket_receive_all_nonblocking
	tbnz	w0, #31, LBB0_2
; %bb.6:
	mov	x22, x0
	ldp	w9, w8, [x19, #24]
	sub	w10, w8, #64
	add	w23, w9, w0
	cmp	w23, w10
	b.lt	LBB0_9
; %bb.7:
	lsl	w1, w8, #1
	str	w1, [x19, #28]
	ldr	x0, [x19, #16]
	bl	_realloc
	str	x0, [x19, #16]
	ldr	w8, [x19, #24]
	add	w23, w8, w22
	b	LBB0_9
LBB0_8:                                 ;   in Loop: Header=BB0_9 Depth=1
	add	x8, x28, w23, sxtw
	add	x1, x25, #1
	sub	w23, w8, w1
	mov	x2, x23
	bl	_memmove
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	str	w23, [x19, #24]
	ldr	x8, [x19, #8]
	ldr	x9, [x24]
	cmp	x8, x9
	b.ge	LBB0_32
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=1
	ldr	x28, [x19, #16]
	mov	x0, x28
	mov	w1, #10
	mov	x2, x23
	bl	_memchr
	cbz	x0, LBB0_31
; %bb.11:                               ;   in Loop: Header=BB0_9 Depth=1
	mov	x25, x0
	strb	wzr, [x0]
	ldr	x8, [x19, #16]
	cmp	x8, x0
	b.eq	LBB0_14
; %bb.12:                               ;   in Loop: Header=BB0_9 Depth=1
	ldurb	w8, [x25, #-1]
	cmp	w8, #13
	b.ne	LBB0_14
; %bb.13:                               ;   in Loop: Header=BB0_9 Depth=1
	sturb	wzr, [x25, #-1]
LBB0_14:                                ;   in Loop: Header=BB0_9 Depth=1
Lloh7:
	adrp	x8, _P_HEADER_TOP@GOTPAGE
Lloh8:
	ldr	x8, [x8, _P_HEADER_TOP@GOTPAGEOFF]
Lloh9:
	ldr	x8, [x8]
	ldp	x9, x27, [x19, #8]
	cmp	x9, x8
	b.ne	LBB0_17
; %bb.15:                               ;   in Loop: Header=BB0_9 Depth=1
	mov	x26, x24
Lloh10:
	adrp	x24, l_.str@PAGE
Lloh11:
	add	x24, x24, l_.str@PAGEOFF
	mov	x0, x24
	bl	_STRLEN_CONST
	mov	x2, x0
	mov	x0, x27
	mov	x1, x24
	mov	x24, x26
	bl	_strncmp
	cbnz	x0, LBB0_2
; %bb.16:                               ;   in Loop: Header=BB0_9 Depth=1
	ldr	x27, [x19, #16]
Lloh12:
	adrp	x0, l_.str.1@PAGE
Lloh13:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_STRLEN_CONST
	add	x0, x27, w0, sxtw
	mov	x1, #0
	mov	w2, #10
	bl	_strtoul
	str	w0, [x19, #32]
Lloh14:
	adrp	x8, _P_HEADER@GOTPAGE
Lloh15:
	ldr	x8, [x8, _P_HEADER@GOTPAGEOFF]
Lloh16:
	ldr	x8, [x8]
	str	x8, [x19, #8]
	ldr	x0, [x19, #16]
	b	LBB0_8
LBB0_17:                                ;   in Loop: Header=BB0_9 Depth=1
Lloh17:
	adrp	x26, l_.str.2@PAGE
Lloh18:
	add	x26, x26, l_.str.2@PAGEOFF
	mov	x0, x26
	bl	_STRLEN_CONST
	mov	x2, x0
	mov	x0, x27
	mov	x1, x26
	bl	_strncmp
	cbnz	x0, LBB0_19
; %bb.18:                               ;   in Loop: Header=BB0_9 Depth=1
Lloh19:
	adrp	x8, _T_LEN@GOTPAGE
Lloh20:
	ldr	x8, [x8, _T_LEN@GOTPAGEOFF]
Lloh21:
	ldr	x8, [x8]
	str	x8, [x19, #40]
	ldr	x27, [x19, #16]
Lloh22:
	adrp	x0, l_.str.2@PAGE
Lloh23:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_STRLEN_CONST
	add	x0, x27, w0, sxtw
	mov	x1, #0
	mov	w2, #10
	bl	_strtol
	str	w0, [x19, #48]
LBB0_19:                                ;   in Loop: Header=BB0_9 Depth=1
	ldr	x0, [x19, #16]
Lloh24:
	adrp	x1, l_.str.3@PAGE
Lloh25:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_string_is_equal
	cbz	x0, LBB0_21
; %bb.20:                               ;   in Loop: Header=BB0_9 Depth=1
Lloh26:
	adrp	x8, _T_CHUNK@GOTPAGE
Lloh27:
	ldr	x8, [x8, _T_CHUNK@GOTPAGEOFF]
Lloh28:
	ldr	x8, [x8]
	str	x8, [x19, #40]
LBB0_21:                                ;   in Loop: Header=BB0_9 Depth=1
	ldr	x0, [x19, #16]
	ldrb	w8, [x0]
	cbnz	w8, LBB0_8
; %bb.22:                               ;   in Loop: Header=BB0_9 Depth=1
	ldr	x8, [x24]
	str	x8, [x19, #8]
	ldr	x8, [x19, #40]
Lloh29:
	adrp	x9, _T_CHUNK@GOTPAGE
Lloh30:
	ldr	x9, [x9, _T_CHUNK@GOTPAGEOFF]
Lloh31:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_8
; %bb.23:                               ;   in Loop: Header=BB0_9 Depth=1
Lloh32:
	adrp	x8, _P_BODY_CHUNKLEN@GOTPAGE
Lloh33:
	ldr	x8, [x8, _P_BODY_CHUNKLEN@GOTPAGEOFF]
Lloh34:
	ldr	x8, [x8]
	str	x8, [x19, #8]
	b	LBB0_8
LBB0_24:
	ldr	x9, [x10]
	cmp	x8, x9
	b.ge	LBB0_51
LBB0_25:
	ldr	w8, [x19]
	cbz	w8, LBB0_28
LBB0_26:
	ldr	x8, [x19, #40]
Lloh35:
	adrp	x9, _T_FULL@GOTPAGE
Lloh36:
	ldr	x9, [x9, _T_FULL@GOTPAGEOFF]
Lloh37:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_2
; %bb.27:
Lloh38:
	adrp	x8, _P_DONE@GOTPAGE
Lloh39:
	ldr	x8, [x8, _P_DONE@GOTPAGEOFF]
Lloh40:
	ldr	x8, [x8]
	str	x8, [x19, #8]
	ldr	x0, [x19, #16]
	ldr	w1, [x19, #48]
	bl	_realloc
	mov	w22, #0
	str	x0, [x19, #16]
	b	LBB0_29
LBB0_28:
	ldr	w0, [x19, #56]
	ldr	x8, [x19, #16]
	ldp	w9, w10, [x19, #24]
                                        ; kill: def $w9 killed $w9 def $x9
	sxtw	x9, w9
	add	x2, x8, x9, lsl #2
	sub	w3, w10, w9
	mov	x1, x19
	bl	_socket_receive_all_nonblocking
	mov	x22, x0
	tbnz	w0, #31, LBB0_26
LBB0_29:
	ldp	w9, w8, [x19, #24]
	sub	w10, w8, #64
	add	w9, w9, w22
	cmp	w9, w10
	b.lt	LBB0_36
; %bb.30:
	lsl	w1, w8, #1
	str	w1, [x19, #28]
	ldr	x0, [x19, #16]
	bl	_realloc
	str	x0, [x19, #16]
	b	LBB0_36
LBB0_31:
	ldr	x8, [x19, #8]
	ldr	x9, [x24]
LBB0_32:
Lloh41:
	adrp	x10, _P_DONE@GOTPAGE
Lloh42:
	ldr	x10, [x10, _P_DONE@GOTPAGEOFF]
	cmp	x8, x9
	b.lt	LBB0_34
; %bb.33:
	ldr	w22, [x19, #24]
	str	wzr, [x19, #24]
LBB0_34:
	ldr	x10, [x10]
	cmp	x8, x9
	ccmp	x8, x10, #0, ge
	b.ge	LBB0_51
; %bb.35:
	cbz	w22, LBB0_25
LBB0_36:
	ldr	x8, [x19, #40]
Lloh43:
	adrp	x25, _T_CHUNK@GOTPAGE
Lloh44:
	ldr	x25, [x25, _T_CHUNK@GOTPAGEOFF]
	ldr	x9, [x25]
	cmp	x8, x9
	b.ne	LBB0_47
; %bb.37:
Lloh45:
	adrp	x26, _P_BODY_CHUNKLEN@GOTPAGE
Lloh46:
	ldr	x26, [x26, _P_BODY_CHUNKLEN@GOTPAGEOFF]
	b	LBB0_39
LBB0_38:                                ;   in Loop: Header=BB0_39 Depth=1
	ldr	x8, [x19, #40]
	ldr	x9, [x25]
	cmp	x8, x9
	b.ne	LBB0_47
LBB0_39:                                ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x19, #8]
	ldr	x8, [x26]
	cmp	x9, x8
	b.ne	LBB0_44
; %bb.40:                               ;   in Loop: Header=BB0_39 Depth=1
	ldrsw	x8, [x19, #24]
	add	x23, x8, w22, sxtw
	str	w23, [x19, #24]
	ldrsw	x8, [x19, #48]
	sub	w9, w23, w8
	subs	w2, w9, #2
	b.lt	LBB0_51
; %bb.41:                               ;   in Loop: Header=BB0_39 Depth=1
	ldr	x27, [x19, #16]
	add	x8, x27, x8
	add	x0, x8, #2
	mov	w1, #10
	bl	_memchr
	cbz	x0, LBB0_51
; %bb.42:                               ;   in Loop: Header=BB0_39 Depth=1
	mov	x22, x0
	add	w27, w27, w23
	ldr	x8, [x19, #16]
	ldrsw	x9, [x19, #48]
	add	x0, x8, x9
	mov	x1, #0
	mov	w2, #16
	bl	_strtoul
	mov	x23, x0
	ldrsw	x8, [x19, #48]
	str	w8, [x19, #24]
	add	x1, x22, #1
	ldr	x9, [x19, #16]
	add	x0, x9, x8
	sub	w22, w27, w1
	mov	x2, x22
	bl	_memmove
	str	w23, [x19, #48]
	ldr	x8, [x24]
	str	x8, [x19, #8]
	cbnz	w23, LBB0_38
; %bb.43:                               ;   in Loop: Header=BB0_39 Depth=1
Lloh47:
	adrp	x8, _P_DONE@GOTPAGE
Lloh48:
	ldr	x8, [x8, _P_DONE@GOTPAGEOFF]
Lloh49:
	ldr	x8, [x8]
	str	x8, [x19, #8]
	ldr	w1, [x19, #24]
	str	w1, [x19, #48]
	ldr	x0, [x19, #16]
	bl	_realloc
	str	x0, [x19, #16]
	b	LBB0_38
LBB0_44:                                ;   in Loop: Header=BB0_39 Depth=1
	ldr	x10, [x24]
	cmp	x9, x10
	b.ne	LBB0_51
; %bb.45:                               ;   in Loop: Header=BB0_39 Depth=1
	ldr	w9, [x19, #48]
	ldr	w11, [x19, #24]
	subs	w10, w22, w9
	b.lo	LBB0_50
; %bb.46:                               ;   in Loop: Header=BB0_39 Depth=1
	add	w9, w11, w9
	str	w9, [x19, #24]
	str	w9, [x19, #48]
	str	x8, [x19, #8]
	mov	x22, x10
	b	LBB0_38
LBB0_47:
	ldr	w9, [x19, #24]
	ldr	w8, [x19, #48]
	add	w1, w9, w22
	cmp	w1, w8
	str	w1, [x19, #24]
	b.ne	LBB0_49
; %bb.48:
Lloh50:
	adrp	x8, _P_DONE@GOTPAGE
Lloh51:
	ldr	x8, [x8, _P_DONE@GOTPAGEOFF]
Lloh52:
	ldr	x8, [x8]
	str	x8, [x19, #8]
	ldr	x0, [x19, #16]
	bl	_realloc
	str	x0, [x19, #16]
	ldr	w1, [x19, #24]
	ldr	w8, [x19, #48]
LBB0_49:
	cmp	w1, w8
	b.gt	LBB0_2
	b	LBB0_51
LBB0_50:
	add	w8, w11, w22
	str	w8, [x19, #24]
	sub	w8, w9, w22
	str	w8, [x19, #48]
LBB0_51:
	cbz	x21, LBB0_53
; %bb.52:
	ldrsw	x8, [x19, #24]
	str	x8, [x21]
LBB0_53:
Lloh53:
	adrp	x10, _P_DONE@GOTPAGE
Lloh54:
	ldr	x10, [x10, _P_DONE@GOTPAGEOFF]
	cbz	x20, LBB0_58
; %bb.54:
	ldr	x8, [x19, #40]
Lloh55:
	adrp	x9, _T_LEN@GOTPAGE
Lloh56:
	ldr	x9, [x9, _T_LEN@GOTPAGEOFF]
Lloh57:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_56
; %bb.55:
	ldrsw	x8, [x19, #48]
	b	LBB0_57
LBB0_56:
	mov	x8, #0
LBB0_57:
	str	x8, [x20]
LBB0_58:
	ldr	x8, [x19, #8]
	ldr	x9, [x10]
	cmp	x8, x9
	cset	w0, eq
LBB0_59:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGot	Lloh41, Lloh42
	.loh AdrpLdrGot	Lloh43, Lloh44
	.loh AdrpLdrGot	Lloh45, Lloh46
	.loh AdrpLdrGotLdr	Lloh47, Lloh48, Lloh49
	.loh AdrpLdrGotLdr	Lloh50, Lloh51, Lloh52
	.loh AdrpLdrGot	Lloh53, Lloh54
	.loh AdrpLdrGotLdr	Lloh55, Lloh56, Lloh57
	.cfi_endproc
                                        ; -- End function
	.comm	_P_BODY,8,3                     ; @P_BODY
	.comm	_P_HEADER_TOP,8,3               ; @P_HEADER_TOP
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"HTTP/1."

l_.str.1:                               ; @.str.1
	.asciz	"HTTP/1.1 "

	.comm	_P_HEADER,8,3                   ; @P_HEADER
l_.str.2:                               ; @.str.2
	.asciz	"Content-Length: "

	.comm	_T_LEN,8,3                      ; @T_LEN
l_.str.3:                               ; @.str.3
	.asciz	"Transfer-Encoding: chunked"

	.comm	_T_CHUNK,8,3                    ; @T_CHUNK
	.comm	_P_BODY_CHUNKLEN,8,3            ; @P_BODY_CHUNKLEN
	.comm	_P_DONE,8,3                     ; @P_DONE
	.comm	_T_FULL,8,3                     ; @T_FULL
	.comm	_P_ERROR,8,3                    ; @P_ERROR
.subsections_via_symbols
