	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_load_http                      ## -- Begin function load_http
	.p2align	4, 0x90
_load_http:                             ## @load_http
	.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	$88, %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	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_LOAD_BUFSIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	%rbx, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r15
	movq	%r14, %rdi
	callq	_strlen
	movq	_MAX_URL_LEN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	cmpl	%edx, %eax
	jle	LBB0_2
## %bb.1:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_fprintf
	jmp	LBB0_18
LBB0_2:
	leaq	L_.str.1(%rip), %rdx
	movq	%r15, %rdi
	movq	%rbx, -104(%rbp)                ## 8-byte Spill
	movq	%rbx, %rsi
	movq	%r14, %rcx
	callq	_snprintf
	movl	%eax, %ebx
	movq	%r14, %rdi
	callq	_strdup
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	movq	%rax, %r13
	movq	%rax, %r12
	addq	$7, %r12
	movq	%r12, %rdi
	movl	$47, %esi
	callq	_strchr
	testq	%rax, %rax
	je	LBB0_5
## %bb.6:
	movq	%r13, -80(%rbp)                 ## 8-byte Spill
	movq	%r14, -112(%rbp)                ## 8-byte Spill
	movb	$0, (%rax)
	movq	%r12, %rdi
	callq	_strlen
	movl	%eax, %r13d
	movq	%r15, %rdi
	callq	_strlen
                                        ## kill: def $eax killed $eax def $rax
	addl	%r13d, %eax
	addl	$10, %eax
	cltq
	movq	-104(%rbp), %r13                ## 8-byte Reload
	cmpq	%r13, %rax
	jbe	LBB0_8
## %bb.7:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.2(%rip), %rsi
	xorl	%ebx, %ebx
	movq	-112(%rbp), %rdx                ## 8-byte Reload
	xorl	%eax, %eax
	callq	_fprintf
	movq	-80(%rbp), %rdi                 ## 8-byte Reload
	callq	_free
	jmp	LBB0_18
LBB0_3:
	xorl	%ebx, %ebx
	jmp	LBB0_18
LBB0_5:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.2(%rip), %rsi
	xorl	%ebx, %ebx
	movq	%r14, %rdx
	xorl	%eax, %eax
	callq	_fprintf
	movq	%r13, %rdi
	callq	_free
	jmp	LBB0_18
LBB0_8:
	movslq	%ebx, %rax
	subq	%rax, %r13
	movq	%r12, %rdi
	movl	$64, %esi
	callq	_strchr
	leaq	1(%rax), %r14
	testq	%rax, %rax
	cmoveq	%r12, %r14
	movq	%r15, %rdi
	callq	_strlen
	movslq	%eax, %rdi
	addq	%r15, %rdi
	leaq	L_.str.3(%rip), %rdx
	movq	%r13, %rsi
	movq	%r14, %rcx
	callq	_snprintf
	cltq
	cmpq	%rax, %r13
	jbe	LBB0_9
## %bb.11:
	movq	%r14, %rdi
	movl	$58, %esi
	callq	_strchr
	testq	%rax, %rax
	je	LBB0_12
## %bb.13:
	movq	%rax, %rdi
	incq	%rdi
	movb	$0, (%rax)
	callq	_atoi
	movl	%eax, %esi
	cmpl	$65535, %eax                    ## imm = 0xFFFF
	movq	-80(%rbp), %r12                 ## 8-byte Reload
	jbe	LBB0_14
	jmp	LBB0_10
LBB0_9:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.4(%rip), %rsi
	movq	-112(%rbp), %rdx                ## 8-byte Reload
	xorl	%eax, %eax
	callq	_fprintf
	movq	-80(%rbp), %r12                 ## 8-byte Reload
	jmp	LBB0_10
LBB0_12:
	movl	$80, %esi
	movq	-80(%rbp), %r12                 ## 8-byte Reload
LBB0_14:
	movq	%r14, %rdi
	callq	_connecttcp
	cmpl	$-1, %eax
	je	LBB0_10
## %bb.15:
	movl	%eax, %ebx
	movq	%r15, %rdi
	callq	_strlen
	movl	%eax, %r14d
	movl	%ebx, %edi
	movq	%r15, %rsi
	movl	%eax, %edx
	callq	_write
	cmpl	%r14d, %eax
	movl	%ebx, -60(%rbp)                 ## 4-byte Spill
	jne	LBB0_16
## %bb.20:
	movq	-104(%rbp), %rax                ## 8-byte Reload
	leal	-1(%rax), %edx
	movl	%ebx, %edi
	movq	%r15, %rsi
	movq	%rdx, -56(%rbp)                 ## 8-byte Spill
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_read
	testl	%eax, %eax
	jle	LBB0_16
## %bb.21:
	xorl	%ecx, %ecx
	movq	%rcx, -120(%rbp)                ## 8-byte Spill
	xorl	%ecx, %ecx
	movq	%rcx, -96(%rbp)                 ## 8-byte Spill
	movq	%r15, -72(%rbp)                 ## 8-byte Spill
	movl	$0, -84(%rbp)                   ## 4-byte Folded Spill
	xorl	%r14d, %r14d
	jmp	LBB0_23
LBB0_10:
	movq	%r12, %rdi
	callq	_free
	xorl	%ebx, %ebx
	jmp	LBB0_18
LBB0_22:                                ##   in Loop: Header=BB0_23 Depth=1
	movl	%r12d, -84(%rbp)                ## 4-byte Spill
	movl	-60(%rbp), %edi                 ## 4-byte Reload
	movq	-72(%rbp), %rsi                 ## 8-byte Reload
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_read
	testl	%eax, %eax
	movq	-80(%rbp), %r12                 ## 8-byte Reload
	jle	LBB0_17
LBB0_23:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_24 Depth 2
                                        ##       Child Loop BB0_32 Depth 3
                                        ##     Child Loop BB0_43 Depth 2
                                        ##       Child Loop BB0_47 Depth 3
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movq	-72(%rbp), %r13                 ## 8-byte Reload
	jmp	LBB0_24
LBB0_39:                                ##   in Loop: Header=BB0_24 Depth=2
	testl	%r14d, %r14d
	js	LBB0_40
LBB0_28:                                ##   in Loop: Header=BB0_24 Depth=2
	movl	-60(%rbp), %edi                 ## 4-byte Reload
	movq	-72(%rbp), %r13                 ## 8-byte Reload
	movq	%r13, %rsi
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movl	%ebx, %edx
	callq	_read
	testl	%eax, %eax
	jle	LBB0_17
LBB0_24:                                ##   Parent Loop BB0_23 Depth=1
                                        ## =>  This Loop Header: Depth=2
                                        ##       Child Loop BB0_32 Depth 3
	movl	%eax, %edx
	movb	$0, (%r13,%rdx)
	leaq	(%rdx,%r13), %rcx
	subl	%eax, %ebx
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	testl	%r14d, %r14d
	movq	%rcx, -72(%rbp)                 ## 8-byte Spill
	js	LBB0_41
## %bb.25:                              ##   in Loop: Header=BB0_24 Depth=2
	jne	LBB0_30
## %bb.26:                              ##   in Loop: Header=BB0_24 Depth=2
	movq	%r15, %rdi
	movl	$32, %esi
	callq	_strchr
	testq	%rax, %rax
	je	LBB0_27
## %bb.29:                              ##   in Loop: Header=BB0_24 Depth=2
	cmpb	$50, 1(%rax)
	jne	LBB0_17
LBB0_30:                                ##   in Loop: Header=BB0_24 Depth=2
	movq	%r15, %rdi
	movl	$13, %esi
	callq	_strchr
	testq	%rax, %rax
	je	LBB0_28
## %bb.31:                              ##   in Loop: Header=BB0_24 Depth=2
	movq	%r15, %rbx
	jmp	LBB0_32
	.p2align	4, 0x90
LBB0_33:                                ##   in Loop: Header=BB0_32 Depth=3
	cmpb	$10, %cl
	je	LBB0_34
LBB0_38:                                ##   in Loop: Header=BB0_32 Depth=3
	movq	%rax, %rbx
	movq	%rax, %rdi
	movl	$13, %esi
	callq	_strchr
	testq	%rax, %rax
	je	LBB0_39
LBB0_32:                                ##   Parent Loop BB0_23 Depth=1
                                        ##     Parent Loop BB0_24 Depth=2
                                        ## =>    This Inner Loop Header: Depth=3
	movzbl	1(%rax), %ecx
	cmpq	%rbx, %rax
	je	LBB0_33
## %bb.35:                              ##   in Loop: Header=BB0_32 Depth=3
	cmpb	$10, %cl
	jne	LBB0_36
## %bb.37:                              ##   in Loop: Header=BB0_32 Depth=3
	incl	%r14d
	addq	$2, %rax
	jmp	LBB0_38
	.p2align	4, 0x90
LBB0_36:                                ##   in Loop: Header=BB0_32 Depth=3
	incq	%rax
	jmp	LBB0_38
LBB0_27:                                ##   in Loop: Header=BB0_24 Depth=2
	xorl	%r14d, %r14d
	jmp	LBB0_28
LBB0_34:                                ##   in Loop: Header=BB0_23 Depth=1
	addq	$2, %rax
	movl	$-1, %r14d
	movq	%rax, %rbx
LBB0_40:                                ##   in Loop: Header=BB0_23 Depth=1
	movl	%ebx, %eax
	subl	%r15d, %eax
	leal	1(%rax), %ecx
	movslq	%ecx, %r13
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	addl	%eax, %ecx
	incl	%ecx
	movq	-104(%rbp), %rax                ## 8-byte Reload
	movl	%eax, %edx
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	subl	%ecx, %edx
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_memmove
	subq	%r13, -72(%rbp)                 ## 8-byte Folded Spill
LBB0_41:                                ##   in Loop: Header=BB0_23 Depth=1
	movq	%r15, %rdi
	movl	$10, %esi
	callq	_strchr
	testq	%rax, %rax
	movl	-84(%rbp), %r12d                ## 4-byte Reload
	je	LBB0_22
## %bb.42:                              ##   in Loop: Header=BB0_23 Depth=1
	movq	%rax, %r13
	movl	%r14d, -124(%rbp)               ## 4-byte Spill
	jmp	LBB0_43
LBB0_53:                                ##   in Loop: Header=BB0_43 Depth=2
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.5(%rip), %rsi
	movq	-112(%rbp), %rdx                ## 8-byte Reload
	movl	%r12d, %r14d
	movl	%r12d, %ecx
	movq	%r15, %r8
	xorl	%eax, %eax
	callq	_fprintf
	movq	-120(%rbp), %rbx                ## 8-byte Reload
LBB0_54:                                ##   in Loop: Header=BB0_43 Depth=2
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	incq	%r13
	movq	%r13, %rax
	subq	%r15, %rax
	movslq	%eax, %r12
	addl	%r12d, %ecx
	movq	-104(%rbp), %rax                ## 8-byte Reload
	movl	%eax, %edx
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	subl	%ecx, %edx
	movq	%r15, %rdi
	movq	%r13, %rsi
	callq	_memmove
	subq	%r12, -72(%rbp)                 ## 8-byte Folded Spill
	movq	%rbx, -120(%rbp)                ## 8-byte Spill
	movl	%r14d, %r12d
	movl	-124(%rbp), %r14d               ## 4-byte Reload
LBB0_55:                                ##   in Loop: Header=BB0_43 Depth=2
	movq	%r15, %rdi
	movl	$10, %esi
	callq	_strchr
	movq	%rax, %r13
	testq	%rax, %rax
	je	LBB0_22
LBB0_43:                                ##   Parent Loop BB0_23 Depth=1
                                        ## =>  This Loop Header: Depth=2
                                        ##       Child Loop BB0_47 Depth 3
	incl	%r12d
	movb	$0, (%r13)
	movq	%r15, %rdi
	movl	$35, %esi
	callq	_strchr
	testq	%rax, %rax
	je	LBB0_45
## %bb.44:                              ##   in Loop: Header=BB0_43 Depth=2
	movb	$0, (%rax)
	cmpq	%r15, %rax
	je	LBB0_55
LBB0_45:                                ##   in Loop: Header=BB0_43 Depth=2
	leaq	-1(%r13), %rbx
	cmpq	%r15, %rbx
	jb	LBB0_49
	.p2align	4, 0x90
LBB0_47:                                ##   Parent Loop BB0_23 Depth=1
                                        ##     Parent Loop BB0_43 Depth=2
                                        ## =>    This Inner Loop Header: Depth=3
	movsbl	(%rbx), %edi
	callq	_ISSPACE
	testq	%rax, %rax
	je	LBB0_49
## %bb.48:                              ##   in Loop: Header=BB0_47 Depth=3
	movb	$0, (%rbx)
	decq	%rbx
	cmpq	%r15, %rbx
	jae	LBB0_47
LBB0_49:                                ##   in Loop: Header=BB0_43 Depth=2
	movq	_AF_UNSPEC@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r15, %rsi
	callq	_alist_new
	testq	%rax, %rax
	je	LBB0_53
## %bb.50:                              ##   in Loop: Header=BB0_43 Depth=2
	movq	%rax, %rbx
	movq	-120(%rbp), %rax                ## 8-byte Reload
	movl	%r12d, %r14d
	testq	%rax, %rax
	je	LBB0_51
## %bb.52:                              ##   in Loop: Header=BB0_43 Depth=2
	movq	%rbx, (%rax)
	jmp	LBB0_54
LBB0_51:                                ##   in Loop: Header=BB0_43 Depth=2
	movq	%rbx, %rax
	movq	%rbx, -96(%rbp)                 ## 8-byte Spill
	jmp	LBB0_54
LBB0_16:
	xorl	%eax, %eax
	movq	%rax, -96(%rbp)                 ## 8-byte Spill
LBB0_17:
	movq	%r12, %rdi
	callq	_free
	movl	-60(%rbp), %edi                 ## 4-byte Reload
	callq	_close
	movq	-96(%rbp), %rbx                 ## 8-byte Reload
LBB0_18:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_19
## %bb.56:
	movq	%rbx, %rax
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_19:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_LOAD_BUFSIZE,4,2               ## @LOAD_BUFSIZE
	.comm	_MAX_URL_LEN,4,2                ## @MAX_URL_LEN
	.comm	_stderr,4,2                     ## @stderr
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"load_http has a URL > %d bytes?!\n"

L_.str.1:                               ## @.str.1
	.asciz	"GET %s HTTP/1.0\r\n"

L_.str.2:                               ## @.str.2
	.asciz	"load_http has a malformed URL '%s'\n"

L_.str.3:                               ## @.str.3
	.asciz	"Host: %s\r\n\r\n"

L_.str.4:                               ## @.str.4
	.asciz	"URL is too large: %s\n"

	.comm	_AF_UNSPEC,4,2                  ## @AF_UNSPEC
L_.str.5:                               ## @.str.5
	.asciz	"%s:%d unrecognised content:%s\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_load_http                      ; -- Begin function load_http
	.p2align	2
_load_http:                             ; @load_http
	.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
	sub	sp, sp, #32
	mov	x20, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-88]
Lloh3:
	adrp	x8, _LOAD_BUFSIZE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _LOAD_BUFSIZE@GOTPAGEOFF]
Lloh5:
	ldr	w21, [x8]
	mov	x9, x21
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x8, sp
	add	x9, x21, #15
	and	x9, x9, #0x1fffffff0
	sub	x22, x8, x9
	mov	sp, x22
	bl	_strlen
Lloh8:
	adrp	x8, _MAX_URL_LEN@GOTPAGE
Lloh9:
	ldr	x8, [x8, _MAX_URL_LEN@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	cmp	w0, w8
	b.le	LBB0_2
; %bb.1:
Lloh11:
	adrp	x9, _stderr@GOTPAGE
Lloh12:
	ldr	x9, [x9, _stderr@GOTPAGEOFF]
Lloh13:
	ldr	w0, [x9]
	str	x8, [sp, #-16]!
Lloh14:
	adrp	x1, l_.str@PAGE
Lloh15:
	add	x1, x1, l_.str@PAGEOFF
	bl	_fprintf
	add	sp, sp, #16
	b	LBB0_8
LBB0_2:
Lloh16:
	adrp	x2, l_.str.1@PAGE
Lloh17:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x0, x22
	mov	x1, x21
	mov	x3, x20
	bl	_snprintf
	mov	x24, x0
	mov	x0, x20
	bl	_strdup
	cbz	x0, LBB0_8
; %bb.3:
	mov	x19, x0
	add	x23, x0, #7
	mov	x0, x23
	mov	w1, #47
	bl	_strchr
	cbz	x0, LBB0_5
; %bb.4:
	strb	wzr, [x0]
	mov	x0, x23
	bl	_strlen
	mov	x25, x0
	mov	x0, x22
	bl	_strlen
	add	w8, w25, w0
	add	w8, w8, #10
	sxtw	x8, w8
	cmp	x8, x21
	b.ls	LBB0_11
LBB0_5:
Lloh18:
	adrp	x8, _stderr@GOTPAGE
Lloh19:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh20:
	ldr	w0, [x8]
	str	x20, [sp, #-16]!
Lloh21:
	adrp	x1, l_.str.2@PAGE
Lloh22:
	add	x1, x1, l_.str.2@PAGEOFF
LBB0_6:
	bl	_fprintf
	add	sp, sp, #16
LBB0_7:
	mov	x0, x19
	bl	_free
LBB0_8:
	mov	x27, #0
LBB0_9:
	ldur	x8, [x29, #-88]
Lloh23:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh24:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh25:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_53
; %bb.10:
	mov	x0, x27
	sub	sp, x29, #80
	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
LBB0_11:
	sub	x24, x21, w24, sxtw
	mov	x0, x23
	mov	w1, #64
	bl	_strchr
	cmp	x0, #0
	csinc	x23, x23, x0, eq
	mov	x0, x22
	bl	_strlen
	add	x0, x22, w0, sxtw
Lloh26:
	adrp	x2, l_.str.3@PAGE
Lloh27:
	add	x2, x2, l_.str.3@PAGEOFF
	mov	x1, x24
	mov	x3, x23
	bl	_snprintf
	cmp	x24, w0, sxtw
	b.ls	LBB0_14
; %bb.12:
	mov	x0, x23
	mov	w1, #58
	bl	_strchr
	cbz	x0, LBB0_15
; %bb.13:
	strb	wzr, [x0], #1
	bl	_atoi
	mov	x1, x0
	lsr	w8, w0, #16
	cbnz	w8, LBB0_7
	b	LBB0_16
LBB0_14:
Lloh28:
	adrp	x8, _stderr@GOTPAGE
Lloh29:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh30:
	ldr	w0, [x8]
	str	x20, [sp, #-16]!
Lloh31:
	adrp	x1, l_.str.4@PAGE
Lloh32:
	add	x1, x1, l_.str.4@PAGEOFF
	b	LBB0_6
LBB0_15:
	mov	w1, #80
LBB0_16:
	mov	x0, x23
	bl	_connecttcp
	cmn	w0, #1
	b.eq	LBB0_7
; %bb.17:
	mov	x28, x0
	mov	x0, x22
	bl	_strlen
	mov	x24, x0
	mov	x0, x28
	mov	x1, x22
	mov	x2, x24
	bl	_write
	cmp	w0, w24
	stur	x19, [x29, #-112]               ; 8-byte Folded Spill
	b.ne	LBB0_51
; %bb.18:
	sub	w25, w21, #1
	mov	x0, x28
	mov	x1, x22
	mov	x2, x25
	bl	_read
	cmp	w0, #1
	b.lt	LBB0_51
; %bb.19:
	stur	xzr, [x29, #-96]                ; 8-byte Folded Spill
	mov	x27, #0
	mov	w23, #0
	mov	w19, #0
	mov	x26, x22
	stur	w28, [x29, #-100]               ; 4-byte Folded Spill
	b	LBB0_22
LBB0_20:                                ;   in Loop: Header=BB0_22 Depth=1
	tbnz	w19, #31, LBB0_34
LBB0_21:                                ;   in Loop: Header=BB0_22 Depth=1
	ldur	w28, [x29, #-100]               ; 4-byte Folded Reload
	mov	x0, x28
	mov	x1, x26
	mov	x2, x25
	bl	_read
	cmp	w0, #0
	b.le	LBB0_52
LBB0_22:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_30 Depth 2
                                        ;     Child Loop BB0_40 Depth 2
                                        ;       Child Loop BB0_43 Depth 3
	add	x26, x26, w0, uxtw
	strb	wzr, [x26]
	sub	w25, w25, w0
	tbnz	w19, #31, LBB0_35
; %bb.23:                               ;   in Loop: Header=BB0_22 Depth=1
	cbnz	w19, LBB0_26
; %bb.24:                               ;   in Loop: Header=BB0_22 Depth=1
	mov	x0, x22
	mov	w1, #32
	bl	_strchr
	cbz	x0, LBB0_50
; %bb.25:                               ;   in Loop: Header=BB0_22 Depth=1
	ldrb	w8, [x0, #1]
	cmp	w8, #50
	b.ne	LBB0_52
LBB0_26:                                ;   in Loop: Header=BB0_22 Depth=1
	mov	x0, x22
	mov	w1, #13
	bl	_strchr
	cbz	x0, LBB0_21
; %bb.27:                               ;   in Loop: Header=BB0_22 Depth=1
	mov	x28, x22
	b	LBB0_30
LBB0_28:                                ;   in Loop: Header=BB0_30 Depth=2
	cmp	w9, #10
	add	x9, x0, #2
	cinc	w19, w19, eq
	csel	x28, x8, x9, ne
LBB0_29:                                ;   in Loop: Header=BB0_30 Depth=2
	mov	x0, x28
	mov	w1, #13
	bl	_strchr
	cbz	x0, LBB0_20
LBB0_30:                                ;   Parent Loop BB0_22 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	mov	x8, x0
	ldrb	w9, [x8, #1]!
	cmp	x0, x28
	b.ne	LBB0_28
; %bb.31:                               ;   in Loop: Header=BB0_30 Depth=2
	cmp	w9, #10
	b.eq	LBB0_33
; %bb.32:                               ;   in Loop: Header=BB0_30 Depth=2
	mov	x28, x0
	b	LBB0_29
LBB0_33:                                ;   in Loop: Header=BB0_22 Depth=1
	add	x28, x0, #2
	mov	w19, #-1
LBB0_34:                                ;   in Loop: Header=BB0_22 Depth=1
	sub	w8, w28, w22
	add	w24, w8, #1
	add	w25, w24, w25
	sub	w2, w21, w25
	mov	x0, x22
	mov	x1, x28
	bl	_memmove
	sub	x26, x26, w24, sxtw
LBB0_35:                                ;   in Loop: Header=BB0_22 Depth=1
	mov	x0, x22
	mov	w1, #10
	bl	_strchr
	cbz	x0, LBB0_49
; %bb.36:                               ;   in Loop: Header=BB0_22 Depth=1
	mov	x28, x0
	b	LBB0_40
LBB0_37:                                ;   in Loop: Header=BB0_40 Depth=2
Lloh33:
	adrp	x8, _stderr@GOTPAGE
Lloh34:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh35:
	ldr	w0, [x8]
	sub	sp, sp, #32
	stp	x23, x22, [sp, #8]
	str	x20, [sp]
Lloh36:
	adrp	x1, l_.str.5@PAGE
Lloh37:
	add	x1, x1, l_.str.5@PAGEOFF
	bl	_fprintf
	add	sp, sp, #32
	ldur	x24, [x29, #-96]                ; 8-byte Folded Reload
LBB0_38:                                ;   in Loop: Header=BB0_40 Depth=2
	add	x1, x28, #1
	sub	x28, x1, x22
	add	w25, w25, w28
	sub	w2, w21, w25
	mov	x0, x22
	bl	_memmove
	sub	x26, x26, w28, sxtw
	stur	x24, [x29, #-96]                ; 8-byte Folded Spill
LBB0_39:                                ;   in Loop: Header=BB0_40 Depth=2
	mov	x0, x22
	mov	w1, #10
	bl	_strchr
	mov	x28, x0
	cbz	x0, LBB0_49
LBB0_40:                                ;   Parent Loop BB0_22 Depth=1
                                        ; =>  This Loop Header: Depth=2
                                        ;       Child Loop BB0_43 Depth 3
	add	w23, w23, #1
	strb	wzr, [x28]
	mov	x0, x22
	mov	w1, #35
	bl	_strchr
	cbz	x0, LBB0_42
; %bb.41:                               ;   in Loop: Header=BB0_40 Depth=2
	strb	wzr, [x0]
	cmp	x0, x22
	b.eq	LBB0_39
LBB0_42:                                ;   in Loop: Header=BB0_40 Depth=2
	sub	x24, x28, #1
	cmp	x24, x22
	b.lo	LBB0_45
LBB0_43:                                ;   Parent Loop BB0_22 Depth=1
                                        ;     Parent Loop BB0_40 Depth=2
                                        ; =>    This Inner Loop Header: Depth=3
	ldrsb	w0, [x24]
	bl	_ISSPACE
	cbz	x0, LBB0_45
; %bb.44:                               ;   in Loop: Header=BB0_43 Depth=3
	strb	wzr, [x24], #-1
	cmp	x24, x22
	b.hs	LBB0_43
LBB0_45:                                ;   in Loop: Header=BB0_40 Depth=2
Lloh38:
	adrp	x8, _AF_UNSPEC@GOTPAGE
Lloh39:
	ldr	x8, [x8, _AF_UNSPEC@GOTPAGEOFF]
Lloh40:
	ldr	w0, [x8]
	mov	x1, x22
	bl	_alist_new
	cbz	x0, LBB0_37
; %bb.46:                               ;   in Loop: Header=BB0_40 Depth=2
	mov	x24, x0
	ldur	x8, [x29, #-96]                 ; 8-byte Folded Reload
	cbz	x8, LBB0_48
; %bb.47:                               ;   in Loop: Header=BB0_40 Depth=2
	str	x24, [x8]
	b	LBB0_38
LBB0_48:                                ;   in Loop: Header=BB0_40 Depth=2
	mov	x27, x24
	b	LBB0_38
LBB0_49:                                ;   in Loop: Header=BB0_22 Depth=1
	ldur	w28, [x29, #-100]               ; 4-byte Folded Reload
	mov	x0, x28
	mov	x1, x26
	mov	x2, x25
	bl	_read
	cmp	w0, #1
	b.ge	LBB0_22
	b	LBB0_52
LBB0_50:                                ;   in Loop: Header=BB0_22 Depth=1
	mov	w19, #0
	b	LBB0_21
LBB0_51:
	mov	x27, #0
LBB0_52:
	ldur	x0, [x29, #-112]                ; 8-byte Folded Reload
	bl	_free
	mov	x0, x28
	bl	_close
	b	LBB0_9
LBB0_53:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpAdd	Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpAdd	Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.cfi_endproc
                                        ; -- End function
	.comm	_LOAD_BUFSIZE,4,2               ; @LOAD_BUFSIZE
	.comm	_MAX_URL_LEN,4,2                ; @MAX_URL_LEN
	.comm	_stderr,4,2                     ; @stderr
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"load_http has a URL > %d bytes?!\n"

l_.str.1:                               ; @.str.1
	.asciz	"GET %s HTTP/1.0\r\n"

l_.str.2:                               ; @.str.2
	.asciz	"load_http has a malformed URL '%s'\n"

l_.str.3:                               ; @.str.3
	.asciz	"Host: %s\r\n\r\n"

l_.str.4:                               ; @.str.4
	.asciz	"URL is too large: %s\n"

	.comm	_AF_UNSPEC,4,2                  ; @AF_UNSPEC
l_.str.5:                               ; @.str.5
	.asciz	"%s:%d unrecognised content:%s\n"

.subsections_via_symbols
