	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_main                           ## -- Begin function main
	.p2align	4, 0x90
_main:                                  ## @main
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movl	%edi, %ebx
	movq	_DEFAULTTHREADS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_numthreads@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	movq	_DEFAULTSECONDS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_numseconds@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	leaq	L_.str(%rip), %r15
	movq	_optarg@GOTPCREL(%rip), %r13
	movq	_threaded@GOTPCREL(%rip), %r12
	jmp	LBB0_1
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	(%r13), %rdi
	callq	_atoi
	movq	_numseconds@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movl	%ebx, %edi
	movq	%r14, %rsi
	movq	%r15, %rdx
	callq	_getopt
	cmpl	$114, %eax
	jle	LBB0_2
## %bb.5:                               ##   in Loop: Header=BB0_1 Depth=1
	cmpl	$115, %eax
	je	LBB0_9
## %bb.6:                               ##   in Loop: Header=BB0_1 Depth=1
	cmpl	$116, %eax
	jne	LBB0_4
## %bb.7:                               ##   in Loop: Header=BB0_1 Depth=1
	movl	$1, (%r12)
	jmp	LBB0_1
	.p2align	4, 0x90
LBB0_2:                                 ##   in Loop: Header=BB0_1 Depth=1
	cmpl	$110, %eax
	jne	LBB0_3
## %bb.8:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	(%r13), %rdi
	callq	_atoi
	movq	_numthreads@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	jmp	LBB0_1
LBB0_3:                                 ##   in Loop: Header=BB0_1 Depth=1
	cmpl	$-1, %eax
	je	LBB0_10
LBB0_4:                                 ##   in Loop: Header=BB0_1 Depth=1
	xorl	%eax, %eax
	callq	_usage
	jmp	LBB0_1
LBB0_10:
	movq	_optind@GOTPCREL(%rip), %rax
	movq	(%rax), %r13
	subl	%r13d, %ebx
	cmpl	$3, %ebx
	je	LBB0_12
## %bb.11:
	xorl	%eax, %eax
	callq	_usage
LBB0_12:
	movq	_numthreads@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_MAXTHREADS@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	cmpl	%ecx, %edx
	jle	LBB0_14
## %bb.13:
	leaq	L_.str.1(%rip), %rsi
	movl	$-1, %edi
	callq	_errx
LBB0_14:
	xorl	%eax, %eax
	callq	_getpagesize
	movl	$48, %edi
	movl	%eax, %esi
	callq	_roundup
	movq	%rax, %r15
	movq	_PROT_READ@GOTPCREL(%rip), %rax
	movq	_PROT_WRITE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	orl	(%rax), %edx
	movq	_MAP_ANON@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	xorl	%edi, %edi
	movq	%r15, %rsi
	movl	$-1, %r8d
	xorl	%r9d, %r9d
	callq	_mmap
	movq	%rax, %rbx
	movq	_MAP_FAILED@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rbx
	jne	LBB0_16
## %bb.15:
	leaq	L_.str.2(%rip), %rsi
	movl	$-1, %edi
	callq	_err
LBB0_16:
	movq	_INHERIT_SHARE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_minherit
	testq	%rax, %rax
	jns	LBB0_18
## %bb.17:
	leaq	L_.str.3(%rip), %rsi
	movl	$-1, %edi
	callq	_err
LBB0_18:
	movq	_statep@GOTPCREL(%rip), %r15
	movq	%rbx, (%r15)
	addq	$28, %rbx
	movq	%rbx, %rdi
	movl	$16, %esi
	callq	_bzero
	movq	(%r15), %rax
	movl	$16, 28(%rax)
	movq	_AF_INET@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 40(%rax)
	movq	(%r14,%r13,8), %rdi
	callq	_inet_addr
	movq	(%r15), %rcx
	movl	%eax, 36(%rcx)
	movq	8(%r14,%r13,8), %rdi
	callq	_atoi
	movl	%eax, %edi
	callq	_htons
	movq	(%r15), %rcx
	movl	%eax, 32(%rcx)
	movq	16(%r14,%r13,8), %rax
	movq	%r15, %r13
	movq	%rax, (%rcx)
	movq	(%r15), %rdi
	movq	(%rdi), %rsi
	addq	$28, %rdi
	xorl	%edx, %edx
	callq	_http_fetch
	testq	%rax, %rax
	movq	_numthreads@GOTPCREL(%rip), %r15
	js	LBB0_64
## %bb.19:
	cmpl	$0, (%r12)
	je	LBB0_22
## %bb.20:
	movq	(%r13), %rdi
	addq	$24, %rdi
	movl	(%r15), %edx
	xorl	%esi, %esi
	callq	_pthread_barrier_init
	testq	%rax, %rax
	je	LBB0_22
## %bb.21:
	leaq	L_.str.4(%rip), %rsi
	movl	$-1, %edi
	callq	_err
LBB0_22:
	cmpl	$0, (%r15)
	jle	LBB0_32
## %bb.23:
	xorl	%ebx, %ebx
	xorl	%r14d, %r14d
	jmp	LBB0_24
LBB0_28:                                ##   in Loop: Header=BB0_24 Depth=1
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	xorl	%eax, %eax
	callq	_killall
	movq	_errno@GOTPCREL(%rip), %rax
	movl	%r15d, (%rax)
	movq	_numthreads@GOTPCREL(%rip), %r15
	movl	$-1, %edi
	leaq	L_.str.6(%rip), %rsi
	callq	_err
LBB0_30:                                ##   in Loop: Header=BB0_24 Depth=1
	movq	_statep@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rax
	movq	16(%rax), %rax
	movq	%r13, (%rax,%rbx)
	movq	%rcx, %r13
LBB0_31:                                ##   in Loop: Header=BB0_24 Depth=1
	incq	%r14
	movslq	(%r15), %rax
	addq	$32, %rbx
	cmpq	%rax, %r14
	jge	LBB0_32
LBB0_24:                                ## =>This Inner Loop Header: Depth=1
	movq	(%r13), %rax
	movq	16(%rax), %rcx
	movq	$0, 16(%rcx,%rbx)
	cmpl	$0, (%r12)
	je	LBB0_27
## %bb.25:                              ##   in Loop: Header=BB0_24 Depth=1
	leaq	(%rcx,%rbx), %rdi
	addq	$24, %rdi
	addq	%rbx, %rcx
	xorl	%esi, %esi
	movq	_http_worker@GOTPCREL(%rip), %rdx
	callq	_pthread_create
	testq	%rax, %rax
	je	LBB0_31
## %bb.26:                              ##   in Loop: Header=BB0_24 Depth=1
	movl	$-1, %edi
	leaq	L_.str.5(%rip), %rsi
	callq	_err
	jmp	LBB0_31
	.p2align	4, 0x90
LBB0_27:                                ##   in Loop: Header=BB0_24 Depth=1
	movq	_curthread@GOTPCREL(%rip), %rax
	movl	%r14d, (%rax)
	xorl	%eax, %eax
	callq	_fork
	movq	%rax, %r13
	testq	%rax, %rax
	js	LBB0_28
## %bb.29:                              ##   in Loop: Header=BB0_24 Depth=1
	jne	LBB0_30
## %bb.65:
	movq	_statep@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	addq	16(%rax), %rbx
	movq	%rbx, %rdi
	callq	_http_worker
	leaq	L_str(%rip), %rdi
	callq	_puts
	xorl	%edi, %edi
	callq	_exit
LBB0_32:
	cmpl	$0, (%r12)
	jne	LBB0_34
## %bb.33:
	movq	_SIGHUP@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_main_sighup@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_signal
	movl	$2, %edi
	callq	_sleep
	xorl	%eax, %eax
	callq	_signal_barrier_wakeup
LBB0_34:
	movq	_numseconds@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_sleep
	movq	(%r13), %rax
	movl	$1, 8(%rax)
	cmpl	$0, (%r12)
	jne	LBB0_36
## %bb.35:
	movl	$2, %edi
	callq	_sleep
LBB0_36:
	movl	(%r15), %ecx
	testl	%ecx, %ecx
	jle	LBB0_45
## %bb.37:
	xorl	%ebx, %ebx
	xorl	%r13d, %r13d
	jmp	LBB0_38
	.p2align	4, 0x90
LBB0_43:                                ##   in Loop: Header=BB0_38 Depth=1
	incq	%r13
	movslq	(%r15), %rcx
	addq	$32, %rbx
	cmpq	%rcx, %r13
	jge	LBB0_44
LBB0_38:                                ## =>This Inner Loop Header: Depth=1
	cmpl	$0, (%r12)
	movq	_statep@GOTPCREL(%rip), %r14
	movq	(%r14), %rax
	movq	16(%rax), %rax
	je	LBB0_41
## %bb.39:                              ##   in Loop: Header=BB0_38 Depth=1
	movl	24(%rax,%rbx), %edi
	xorl	%esi, %esi
	callq	_pthread_join
	testq	%rax, %rax
	je	LBB0_43
## %bb.40:                              ##   in Loop: Header=BB0_38 Depth=1
	movl	$-1, %edi
	leaq	L_.str.8(%rip), %rsi
	callq	_err
	jmp	LBB0_43
	.p2align	4, 0x90
LBB0_41:                                ##   in Loop: Header=BB0_38 Depth=1
	movq	(%rax,%rbx), %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_waitpid
	movq	(%r14), %rcx
	movq	16(%rcx), %rcx
	cmpq	(%rcx,%rbx), %rax
	jne	LBB0_43
## %bb.42:                              ##   in Loop: Header=BB0_38 Depth=1
	movq	$0, (%rcx,%rbx)
	jmp	LBB0_43
LBB0_44:
	movq	_statep@GOTPCREL(%rip), %r13
LBB0_45:
	cmpl	$0, (%r12)
	jne	LBB0_47
## %bb.46:
	xorl	%eax, %eax
	callq	_killall
	movl	(%r15), %ecx
LBB0_47:
	xorl	%ebx, %ebx
	movl	$0, %eax
	testl	%ecx, %ecx
	jle	LBB0_55
## %bb.48:
	movq	(%r13), %rax
	movq	16(%rax), %r8
	movl	%ecx, %edi
	leaq	-1(%rdi), %rax
	movl	%edi, %ecx
	andl	$3, %ecx
	cmpq	$3, %rax
	jae	LBB0_50
## %bb.49:
	xorl	%esi, %esi
	xorl	%eax, %eax
	jmp	LBB0_52
LBB0_50:
	andl	$-4, %edi
	leaq	112(%r8), %rdx
	xorl	%esi, %esi
	xorl	%eax, %eax
	.p2align	4, 0x90
LBB0_51:                                ## =>This Inner Loop Header: Depth=1
	addl	-96(%rdx), %eax
	addl	-64(%rdx), %eax
	addl	-32(%rdx), %eax
	addl	(%rdx), %eax
	addq	$4, %rsi
	subq	$-128, %rdx
	cmpq	%rsi, %rdi
	jne	LBB0_51
LBB0_52:
	testq	%rcx, %rcx
	je	LBB0_55
## %bb.53:
	shlq	$5, %rsi
	leaq	(%r8,%rsi), %rdx
	addq	$16, %rdx
	shlq	$5, %rcx
	xorl	%esi, %esi
	.p2align	4, 0x90
LBB0_54:                                ## =>This Inner Loop Header: Depth=1
	addl	(%rdx,%rsi), %eax
	addq	$32, %rsi
	cmpq	%rsi, %rcx
	jne	LBB0_54
LBB0_55:
	cltd
	movq	_numseconds@GOTPCREL(%rip), %rcx
	idivl	(%rcx)
	leaq	L_.str.9(%rip), %rdi
	movl	%eax, %esi
	xorl	%eax, %eax
	callq	_printf
	movl	(%r15), %edx
	testl	%edx, %edx
	jle	LBB0_63
## %bb.56:
	movq	(%r13), %rax
	movq	16(%rax), %rcx
	leaq	-1(%rdx), %rsi
	movl	%edx, %eax
	andl	$3, %eax
	cmpq	$3, %rsi
	jae	LBB0_58
## %bb.57:
	xorl	%esi, %esi
	xorl	%ebx, %ebx
	jmp	LBB0_60
LBB0_58:
	andl	$-4, %edx
	leaq	104(%rcx), %rdi
	xorl	%esi, %esi
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_59:                                ## =>This Inner Loop Header: Depth=1
	addl	-96(%rdi), %ebx
	addl	-64(%rdi), %ebx
	addl	-32(%rdi), %ebx
	addl	(%rdi), %ebx
	addq	$4, %rsi
	subq	$-128, %rdi
	cmpq	%rsi, %rdx
	jne	LBB0_59
LBB0_60:
	testq	%rax, %rax
	je	LBB0_63
## %bb.61:
	shlq	$5, %rsi
	addq	%rsi, %rcx
	addq	$8, %rcx
	shlq	$5, %rax
	xorl	%edx, %edx
	.p2align	4, 0x90
LBB0_62:                                ## =>This Inner Loop Header: Depth=1
	addl	(%rcx,%rdx), %ebx
	addq	$32, %rdx
	cmpq	%rdx, %rax
	jne	LBB0_62
LBB0_63:
	movl	%ebx, %eax
	cltd
	movq	_numseconds@GOTPCREL(%rip), %rcx
	idivl	(%rcx)
	leaq	L_.str.10(%rip), %rdi
	movl	%eax, %esi
	xorl	%eax, %eax
	callq	_printf
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_64:
	movl	$-1, %edi
	callq	_exit
	.cfi_endproc
                                        ## -- End function
	.comm	_DEFAULTTHREADS,4,2             ## @DEFAULTTHREADS
	.comm	_numthreads,4,2                 ## @numthreads
	.comm	_DEFAULTSECONDS,4,2             ## @DEFAULTSECONDS
	.comm	_numseconds,4,2                 ## @numseconds
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"n:s:t"

	.comm	_optarg,8,3                     ## @optarg
	.comm	_threaded,4,2                   ## @threaded
	.comm	_optind,8,3                     ## @optind
	.comm	_MAXTHREADS,4,2                 ## @MAXTHREADS
L_.str.1:                               ## @.str.1
	.asciz	"%d exceeds max threads %d"

	.comm	_PROT_READ,4,2                  ## @PROT_READ
	.comm	_PROT_WRITE,4,2                 ## @PROT_WRITE
	.comm	_MAP_ANON,4,2                   ## @MAP_ANON
	.comm	_MAP_FAILED,8,3                 ## @MAP_FAILED
L_.str.2:                               ## @.str.2
	.asciz	"mmap"

	.comm	_INHERIT_SHARE,4,2              ## @INHERIT_SHARE
L_.str.3:                               ## @.str.3
	.asciz	"minherit"

	.comm	_statep,8,3                     ## @statep
	.comm	_AF_INET,4,2                    ## @AF_INET
L_.str.4:                               ## @.str.4
	.asciz	"pthread_barrier_init"

L_.str.5:                               ## @.str.5
	.asciz	"pthread_create"

	.comm	_curthread,4,2                  ## @curthread
	.comm	_errno,4,2                      ## @errno
L_.str.6:                               ## @.str.6
	.asciz	"fork"

	.comm	_SIGHUP,4,2                     ## @SIGHUP
	.comm	_main_sighup,4,2                ## @main_sighup
L_.str.8:                               ## @.str.8
	.asciz	"pthread_join"

L_.str.9:                               ## @.str.9
	.asciz	"%ju transfers/second\n"

L_.str.10:                              ## @.str.10
	.asciz	"%ju errors/second\n"

L_str:                                  ## @str
	.asciz	"Doh"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_main                           ; -- Begin function main
	.p2align	2
_main:                                  ; @main
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x8, _DEFAULTTHREADS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DEFAULTTHREADS@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x24, _numthreads@GOTPAGE
Lloh4:
	ldr	x24, [x24, _numthreads@GOTPAGEOFF]
Lloh5:
	adrp	x9, _DEFAULTSECONDS@GOTPAGE
Lloh6:
	ldr	x9, [x9, _DEFAULTSECONDS@GOTPAGEOFF]
	str	w8, [x24]
Lloh7:
	ldr	w8, [x9]
Lloh8:
	adrp	x26, _numseconds@GOTPAGE
Lloh9:
	ldr	x26, [x26, _numseconds@GOTPAGEOFF]
Lloh10:
	adrp	x21, l_.str@PAGE
Lloh11:
	add	x21, x21, l_.str@PAGEOFF
	str	w8, [x26]
Lloh12:
	adrp	x22, _optarg@GOTPAGE
Lloh13:
	ldr	x22, [x22, _optarg@GOTPAGEOFF]
Lloh14:
	adrp	x25, _threaded@GOTPAGE
Lloh15:
	ldr	x25, [x25, _threaded@GOTPAGEOFF]
	mov	w23, #1
	b	LBB0_2
LBB0_1:                                 ;   in Loop: Header=BB0_2 Depth=1
	ldr	x0, [x22]
	bl	_atoi
	str	w0, [x26]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	mov	x1, x19
	mov	x2, x21
	bl	_getopt
	cmp	w0, #114
	b.le	LBB0_6
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	cmp	w0, #115
	b.eq	LBB0_1
; %bb.4:                                ;   in Loop: Header=BB0_2 Depth=1
	cmp	w0, #116
	b.ne	LBB0_9
; %bb.5:                                ;   in Loop: Header=BB0_2 Depth=1
	str	w23, [x25]
	b	LBB0_2
LBB0_6:                                 ;   in Loop: Header=BB0_2 Depth=1
	cmp	w0, #110
	b.ne	LBB0_8
; %bb.7:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	x0, [x22]
	bl	_atoi
	str	w0, [x24]
	b	LBB0_2
LBB0_8:                                 ;   in Loop: Header=BB0_2 Depth=1
	cmn	w0, #1
	b.eq	LBB0_10
LBB0_9:                                 ;   in Loop: Header=BB0_2 Depth=1
	bl	_usage
	b	LBB0_2
LBB0_10:
Lloh16:
	adrp	x8, _optind@GOTPAGE
Lloh17:
	ldr	x8, [x8, _optind@GOTPAGEOFF]
Lloh18:
	ldr	x21, [x8]
	sub	w8, w20, w21
	cmp	w8, #3
	b.eq	LBB0_12
; %bb.11:
	bl	_usage
LBB0_12:
	ldr	w2, [x24]
Lloh19:
	adrp	x8, _MAXTHREADS@GOTPAGE
Lloh20:
	ldr	x8, [x8, _MAXTHREADS@GOTPAGEOFF]
Lloh21:
	ldr	w3, [x8]
	cmp	w2, w3
	b.le	LBB0_14
; %bb.13:
Lloh22:
	adrp	x1, l_.str.1@PAGE
Lloh23:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	w0, #-1
	bl	_errx
LBB0_14:
	add	x21, x19, x21, lsl #3
	bl	_getpagesize
	mov	x1, x0
	mov	w0, #48
	bl	_roundup
	mov	x19, x0
Lloh24:
	adrp	x8, _PROT_READ@GOTPAGE
Lloh25:
	ldr	x8, [x8, _PROT_READ@GOTPAGEOFF]
Lloh26:
	adrp	x9, _PROT_WRITE@GOTPAGE
Lloh27:
	ldr	x9, [x9, _PROT_WRITE@GOTPAGEOFF]
Lloh28:
	ldr	w8, [x8]
Lloh29:
	ldr	w9, [x9]
	orr	w2, w9, w8
Lloh30:
	adrp	x8, _MAP_ANON@GOTPAGE
Lloh31:
	ldr	x8, [x8, _MAP_ANON@GOTPAGEOFF]
Lloh32:
	ldr	w3, [x8]
	mov	x0, #0
	mov	x1, x19
	mov	w4, #-1
	mov	w5, #0
	bl	_mmap
	mov	x20, x0
Lloh33:
	adrp	x8, _MAP_FAILED@GOTPAGE
Lloh34:
	ldr	x8, [x8, _MAP_FAILED@GOTPAGEOFF]
Lloh35:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_16
; %bb.15:
Lloh36:
	adrp	x1, l_.str.2@PAGE
Lloh37:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	w0, #-1
	bl	_err
LBB0_16:
Lloh38:
	adrp	x8, _INHERIT_SHARE@GOTPAGE
Lloh39:
	ldr	x8, [x8, _INHERIT_SHARE@GOTPAGEOFF]
Lloh40:
	ldr	w2, [x8]
	mov	x0, x20
	mov	x1, x19
	bl	_minherit
	tbz	x0, #63, LBB0_18
; %bb.17:
Lloh41:
	adrp	x1, l_.str.3@PAGE
Lloh42:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	w0, #-1
	bl	_err
LBB0_18:
Lloh43:
	adrp	x23, _statep@GOTPAGE
Lloh44:
	ldr	x23, [x23, _statep@GOTPAGEOFF]
	str	x20, [x23]
	add	x0, x20, #28
	mov	w19, #16
	mov	w1, #16
	bl	_bzero
	ldr	x8, [x23]
	str	w19, [x8, #28]
Lloh45:
	adrp	x9, _AF_INET@GOTPAGE
Lloh46:
	ldr	x9, [x9, _AF_INET@GOTPAGEOFF]
Lloh47:
	ldr	w9, [x9]
	str	w9, [x8, #40]
	ldr	x0, [x21]
	bl	_inet_addr
	ldr	x8, [x23]
	str	w0, [x8, #36]
	ldr	x0, [x21, #8]
	bl	_atoi
	bl	_htons
	ldr	x8, [x23]
	str	w0, [x8, #32]
	ldr	x9, [x21, #16]
	str	x9, [x8]
	ldr	x0, [x23]
	ldr	x1, [x0], #28
	mov	w2, #0
	bl	_http_fetch
	tbnz	x0, #63, LBB0_66
; %bb.19:
	ldr	w8, [x25]
	cbz	w8, LBB0_22
; %bb.20:
	ldr	x8, [x23]
	add	x0, x8, #24
	ldr	w2, [x24]
	mov	x1, #0
	bl	_pthread_barrier_init
	cbz	x0, LBB0_22
; %bb.21:
Lloh48:
	adrp	x1, l_.str.4@PAGE
Lloh49:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	w0, #-1
	bl	_err
LBB0_22:
	ldr	w8, [x24]
	cmp	w8, #1
	b.lt	LBB0_33
; %bb.23:
	mov	x27, #0
	mov	x28, #0
Lloh50:
	adrp	x19, _curthread@GOTPAGE
Lloh51:
	ldr	x19, [x19, _curthread@GOTPAGEOFF]
Lloh52:
	adrp	x20, _http_worker@GOTPAGE
Lloh53:
	ldr	x20, [x20, _http_worker@GOTPAGEOFF]
Lloh54:
	adrp	x21, l_.str.5@PAGE
Lloh55:
	add	x21, x21, l_.str.5@PAGEOFF
	b	LBB0_27
LBB0_24:                                ;   in Loop: Header=BB0_27 Depth=1
Lloh56:
	adrp	x8, _errno@GOTPAGE
Lloh57:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh58:
	ldr	w26, [x8]
	bl	_killall
Lloh59:
	adrp	x8, _errno@GOTPAGE
Lloh60:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh61:
	str	w26, [x8]
	mov	w0, #-1
Lloh62:
	adrp	x1, l_.str.6@PAGE
Lloh63:
	add	x1, x1, l_.str.6@PAGEOFF
	bl	_err
LBB0_25:                                ;   in Loop: Header=BB0_27 Depth=1
	ldr	x8, [x23]
	ldr	x8, [x8, #16]
	str	x22, [x8, x27]
LBB0_26:                                ;   in Loop: Header=BB0_27 Depth=1
	add	x28, x28, #1
	ldrsw	x8, [x24]
	add	x27, x27, #32
	cmp	x28, x8
	b.ge	LBB0_33
LBB0_27:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x23]
	ldr	x8, [x8, #16]
	add	x3, x8, x27
	str	xzr, [x3, #16]
	ldr	w8, [x25]
	cbz	w8, LBB0_30
; %bb.28:                               ;   in Loop: Header=BB0_27 Depth=1
	add	x0, x3, #24
	mov	x1, #0
	mov	x2, x20
	bl	_pthread_create
	cbz	x0, LBB0_26
; %bb.29:                               ;   in Loop: Header=BB0_27 Depth=1
	mov	w0, #-1
	mov	x1, x21
	bl	_err
	b	LBB0_26
LBB0_30:                                ;   in Loop: Header=BB0_27 Depth=1
	str	w28, [x19]
	bl	_fork
	mov	x22, x0
	tbnz	x0, #63, LBB0_24
; %bb.31:                               ;   in Loop: Header=BB0_27 Depth=1
	cbnz	x22, LBB0_25
; %bb.32:
	ldr	x8, [x23]
	ldr	x8, [x8, #16]
	add	x0, x8, x27
	bl	_http_worker
Lloh64:
	adrp	x0, l_str@PAGE
Lloh65:
	add	x0, x0, l_str@PAGEOFF
	bl	_puts
	mov	w0, #0
	bl	_exit
LBB0_33:
	ldr	w8, [x25]
	cbnz	w8, LBB0_35
; %bb.34:
Lloh66:
	adrp	x8, _SIGHUP@GOTPAGE
Lloh67:
	ldr	x8, [x8, _SIGHUP@GOTPAGEOFF]
Lloh68:
	ldr	w0, [x8]
Lloh69:
	adrp	x8, _main_sighup@GOTPAGE
Lloh70:
	ldr	x8, [x8, _main_sighup@GOTPAGEOFF]
Lloh71:
	ldr	w1, [x8]
	bl	_signal
	mov	w0, #2
	bl	_sleep
	bl	_signal_barrier_wakeup
LBB0_35:
Lloh72:
	adrp	x22, _numseconds@GOTPAGE
Lloh73:
	ldr	x22, [x22, _numseconds@GOTPAGEOFF]
	ldr	w0, [x22]
	bl	_sleep
	ldr	x8, [x23]
	mov	w9, #1
	str	w9, [x8, #8]
	ldr	w8, [x25]
	cbnz	w8, LBB0_37
; %bb.36:
	mov	w0, #2
	bl	_sleep
LBB0_37:
	ldr	w10, [x24]
	cmp	w10, #1
	b.lt	LBB0_45
; %bb.38:
	mov	x20, #0
	mov	x21, #0
Lloh74:
	adrp	x19, l_.str.8@PAGE
Lloh75:
	add	x19, x19, l_.str.8@PAGEOFF
	b	LBB0_40
LBB0_39:                                ;   in Loop: Header=BB0_40 Depth=1
	add	x21, x21, #1
	ldrsw	x10, [x24]
	add	x20, x20, #32
	cmp	x21, x10
	b.ge	LBB0_45
LBB0_40:                                ; =>This Inner Loop Header: Depth=1
	ldr	w9, [x25]
	ldr	x8, [x23]
	ldr	x8, [x8, #16]
	cbz	w9, LBB0_43
; %bb.41:                               ;   in Loop: Header=BB0_40 Depth=1
	add	x8, x8, x20
	ldr	w0, [x8, #24]
	mov	x1, #0
	bl	_pthread_join
	cbz	x0, LBB0_39
; %bb.42:                               ;   in Loop: Header=BB0_40 Depth=1
	mov	w0, #-1
	mov	x1, x19
	bl	_err
	b	LBB0_39
LBB0_43:                                ;   in Loop: Header=BB0_40 Depth=1
	ldr	x0, [x8, x20]
	mov	x1, #0
	mov	w2, #0
	bl	_waitpid
	ldr	x8, [x23]
	ldr	x8, [x8, #16]
	ldr	x9, [x8, x20]
	cmp	x0, x9
	b.ne	LBB0_39
; %bb.44:                               ;   in Loop: Header=BB0_40 Depth=1
	str	xzr, [x8, x20]
	b	LBB0_39
LBB0_45:
	ldr	w8, [x25]
	cbz	w8, LBB0_49
; %bb.46:
	cmp	w10, #1
	b.lt	LBB0_50
LBB0_47:
	ldr	x8, [x23]
	ldr	x9, [x8, #16]
	mov	w8, w10
	cmp	w10, #9
	b.hs	LBB0_51
; %bb.48:
	mov	x10, #0
	mov	w11, #0
	b	LBB0_54
LBB0_49:
	bl	_killall
	ldr	w10, [x24]
	cmp	w10, #1
	b.ge	LBB0_47
LBB0_50:
	mov	w11, #0
	b	LBB0_56
LBB0_51:
	ands	x10, x8, #0x7
	mov	w11, #8
	csel	x10, x11, x10, eq
	sub	x10, x8, x10
	add	x11, x9, #144
	movi.2d	v0, #0000000000000000
	mov	x12, x10
	movi.2d	v1, #0000000000000000
	movi.2d	v2, #0000000000000000
	movi.2d	v3, #0000000000000000
LBB0_52:                                ; =>This Inner Loop Header: Depth=1
	sub	x13, x11, #128
	sub	x14, x11, #64
	ld4.2d	{ v4, v5, v6, v7 }, [x13]
	ld4.2d	{ v16, v17, v18, v19 }, [x14]
	mov	x13, x11
	ld4.2d	{ v20, v21, v22, v23 }, [x13], #64
	ld4.2d	{ v24, v25, v26, v27 }, [x13]
	xtn.2s	v4, v4
	xtn.2s	v5, v16
	xtn.2s	v6, v20
	xtn.2s	v7, v24
	add.2s	v0, v0, v4
	add.2s	v1, v1, v5
	add.2s	v2, v2, v6
	add.2s	v3, v3, v7
	add	x11, x11, #256
	subs	x12, x12, #8
	b.ne	LBB0_52
; %bb.53:
	add.2s	v0, v1, v0
	add.2s	v0, v2, v0
	add.2s	v0, v3, v0
	addp.2s	v0, v0, v0
	fmov	w11, s0
LBB0_54:
	add	x9, x9, x10, lsl #5
	add	x9, x9, #16
	sub	x8, x8, x10
LBB0_55:                                ; =>This Inner Loop Header: Depth=1
	ldr	w10, [x9], #32
	add	w11, w11, w10
	subs	x8, x8, #1
	b.ne	LBB0_55
LBB0_56:
	ldr	w8, [x22]
	sdiv	w8, w11, w8
	str	x8, [sp]
Lloh76:
	adrp	x0, l_.str.9@PAGE
Lloh77:
	add	x0, x0, l_.str.9@PAGEOFF
	bl	_printf
	ldr	w8, [x24]
	cmp	w8, #1
	b.lt	LBB0_59
; %bb.57:
	ldr	x9, [x23]
	ldr	x9, [x9, #16]
	cmp	w8, #9
	b.hs	LBB0_60
; %bb.58:
	mov	x10, #0
	mov	w11, #0
	b	LBB0_63
LBB0_59:
	mov	w11, #0
	b	LBB0_65
LBB0_60:
	ands	x10, x8, #0x7
	mov	w11, #8
	csel	x10, x11, x10, eq
	sub	x10, x8, x10
	add	x11, x9, #136
	movi.2d	v0, #0000000000000000
	mov	x12, x10
	movi.2d	v1, #0000000000000000
	movi.2d	v2, #0000000000000000
	movi.2d	v3, #0000000000000000
LBB0_61:                                ; =>This Inner Loop Header: Depth=1
	sub	x13, x11, #128
	sub	x14, x11, #64
	ld4.2d	{ v4, v5, v6, v7 }, [x13]
	ld4.2d	{ v16, v17, v18, v19 }, [x14]
	mov	x13, x11
	ld4.2d	{ v20, v21, v22, v23 }, [x13], #64
	ld4.2d	{ v24, v25, v26, v27 }, [x13]
	xtn.2s	v4, v4
	xtn.2s	v5, v16
	xtn.2s	v6, v20
	xtn.2s	v7, v24
	add.2s	v0, v0, v4
	add.2s	v1, v1, v5
	add.2s	v2, v2, v6
	add.2s	v3, v3, v7
	add	x11, x11, #256
	subs	x12, x12, #8
	b.ne	LBB0_61
; %bb.62:
	add.2s	v0, v1, v0
	add.2s	v0, v2, v0
	add.2s	v0, v3, v0
	addp.2s	v0, v0, v0
	fmov	w11, s0
LBB0_63:
	add	x9, x9, x10, lsl #5
	add	x9, x9, #8
	sub	x8, x8, x10
LBB0_64:                                ; =>This Inner Loop Header: Depth=1
	ldr	w10, [x9], #32
	add	w11, w11, w10
	subs	x8, x8, #1
	b.ne	LBB0_64
LBB0_65:
	ldr	w8, [x22]
	sdiv	w8, w11, w8
	str	x8, [sp]
Lloh78:
	adrp	x0, l_.str.10@PAGE
Lloh79:
	add	x0, x0, l_.str.10@PAGEOFF
	bl	_printf
	mov	w0, #0
	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
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_66:
	mov	w0, #-1
	bl	_exit
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh28
	.loh AdrpAdd	Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpAdd	Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh45, Lloh46, Lloh47
	.loh AdrpLdrGot	Lloh43, Lloh44
	.loh AdrpAdd	Lloh48, Lloh49
	.loh AdrpAdd	Lloh54, Lloh55
	.loh AdrpLdrGot	Lloh52, Lloh53
	.loh AdrpLdrGot	Lloh50, Lloh51
	.loh AdrpAdd	Lloh62, Lloh63
	.loh AdrpLdrGotStr	Lloh59, Lloh60, Lloh61
	.loh AdrpLdrGotLdr	Lloh56, Lloh57, Lloh58
	.loh AdrpAdd	Lloh64, Lloh65
	.loh AdrpLdrGotLdr	Lloh69, Lloh70, Lloh71
	.loh AdrpLdrGotLdr	Lloh66, Lloh67, Lloh68
	.loh AdrpLdrGot	Lloh72, Lloh73
	.loh AdrpAdd	Lloh74, Lloh75
	.loh AdrpAdd	Lloh76, Lloh77
	.loh AdrpAdd	Lloh78, Lloh79
	.cfi_endproc
                                        ; -- End function
	.comm	_DEFAULTTHREADS,4,2             ; @DEFAULTTHREADS
	.comm	_numthreads,4,2                 ; @numthreads
	.comm	_DEFAULTSECONDS,4,2             ; @DEFAULTSECONDS
	.comm	_numseconds,4,2                 ; @numseconds
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"n:s:t"

	.comm	_optarg,8,3                     ; @optarg
	.comm	_threaded,4,2                   ; @threaded
	.comm	_optind,8,3                     ; @optind
	.comm	_MAXTHREADS,4,2                 ; @MAXTHREADS
l_.str.1:                               ; @.str.1
	.asciz	"%d exceeds max threads %d"

	.comm	_PROT_READ,4,2                  ; @PROT_READ
	.comm	_PROT_WRITE,4,2                 ; @PROT_WRITE
	.comm	_MAP_ANON,4,2                   ; @MAP_ANON
	.comm	_MAP_FAILED,8,3                 ; @MAP_FAILED
l_.str.2:                               ; @.str.2
	.asciz	"mmap"

	.comm	_INHERIT_SHARE,4,2              ; @INHERIT_SHARE
l_.str.3:                               ; @.str.3
	.asciz	"minherit"

	.comm	_statep,8,3                     ; @statep
	.comm	_AF_INET,4,2                    ; @AF_INET
l_.str.4:                               ; @.str.4
	.asciz	"pthread_barrier_init"

l_.str.5:                               ; @.str.5
	.asciz	"pthread_create"

	.comm	_curthread,4,2                  ; @curthread
	.comm	_errno,4,2                      ; @errno
l_.str.6:                               ; @.str.6
	.asciz	"fork"

	.comm	_SIGHUP,4,2                     ; @SIGHUP
	.comm	_main_sighup,4,2                ; @main_sighup
l_.str.8:                               ; @.str.8
	.asciz	"pthread_join"

l_.str.9:                               ; @.str.9
	.asciz	"%ju transfers/second\n"

l_.str.10:                              ; @.str.10
	.asciz	"%ju errors/second\n"

l_str:                                  ; @str
	.asciz	"Doh"

.subsections_via_symbols
