	.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
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r12
	movl	%edi, %ebx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_FILESIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, -72(%rbp)                 ## 8-byte Spill
	movq	_PATH_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r15
	leaq	L_.str(%rip), %r13
	jmp	LBB0_1
	.p2align	4, 0x90
LBB0_61:                                ##   in Loop: Header=BB0_1 Depth=1
	movq	_threaded@GOTPCREL(%rip), %rax
	movl	$1, (%rax)
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movl	%ebx, %edi
	movq	%r12, %rsi
	movq	%r13, %rdx
	callq	_getopt
	cmpl	$116, %eax
	je	LBB0_61
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	cmpl	$-1, %eax
	je	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_1 Depth=1
	xorl	%eax, %eax
	callq	_usage
	jmp	LBB0_1
LBB0_4:
	movq	_optind@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	subl	%eax, %ebx
	addl	$-3, %ebx
	cmpl	$-3, %ebx
	ja	LBB0_6
## %bb.5:
	xorl	%eax, %eax
	callq	_usage
LBB0_6:
	xorl	%eax, %eax
	callq	_getpagesize
	movl	$40, %edi
	movl	%eax, %esi
	callq	_roundup
	movl	%eax, %r13d
	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
	movl	%r13d, %esi
	movl	$-1, %r8d
	xorl	%r9d, %r9d
	callq	_mmap
	movq	%rax, %rbx
	movq	_MAP_FAILED@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rbx
	jne	LBB0_8
## %bb.7:
	leaq	L_.str.1(%rip), %rsi
	movl	$-1, %edi
	xorl	%eax, %eax
	callq	_err
LBB0_8:
	movq	_INHERIT_SHARE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	movl	%r13d, %esi
	callq	_minherit
	testq	%rax, %rax
	jns	LBB0_10
## %bb.9:
	leaq	L_.str.2(%rip), %rsi
	movl	$-1, %edi
	xorl	%eax, %eax
	callq	_err
LBB0_10:
	movq	_statep@GOTPCREL(%rip), %r14
	movq	%rbx, (%r14)
	addq	$32, %rbx
	movq	%rbx, %rdi
	callq	_uname
	testq	%rax, %rax
	jns	LBB0_12
## %bb.11:
	leaq	L_.str.3(%rip), %rsi
	movl	$-1, %edi
	xorl	%eax, %eax
	callq	_err
LBB0_12:
	movq	_PF_INET@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_SOCK_STREAM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%edx, %edx
	callq	_socket
	movq	(%r14), %rcx
	movq	%rax, (%rcx)
	testq	%rax, %rax
	jns	LBB0_14
## %bb.13:
	leaq	L_.str.4(%rip), %rsi
	movl	$-1, %edi
	xorl	%eax, %eax
	callq	_err
LBB0_14:
	leaq	-64(%rbp), %rdi
	movl	$12, %esi
	callq	_bzero
	movl	$12, -64(%rbp)
	movq	_AF_INET@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -56(%rbp)
	movq	-80(%rbp), %rbx                 ## 8-byte Reload
	movq	(%r12,%rbx,8), %rdi
	callq	_atoi
	movl	%eax, %edi
	callq	_htons
	movl	%eax, -60(%rbp)
	movq	8(%r12,%rbx,8), %rdi
	movq	(%r14), %rax
	movq	%rdi, 8(%rax)
	testq	%rdi, %rdi
	je	LBB0_25
## %bb.15:
	movq	_O_RDONLY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_open
	movq	(%r14), %rcx
	movq	%rax, 16(%rcx)
	testq	%rax, %rax
	jns	LBB0_17
## %bb.16:
	movq	8(%rcx), %rdx
	leaq	L_.str.5(%rip), %rsi
	movl	$-1, %edi
	xorl	%eax, %eax
	callq	_err
LBB0_17:
	movq	_THREADS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	testl	%esi, %esi
	jle	LBB0_34
## %bb.18:
	movq	_statep@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	movq	16(%rcx), %rax
	movq	24(%rcx), %rbx
	leaq	-1(%rsi), %rcx
	movl	%esi, %edx
	andl	$3, %edx
	cmpq	$3, %rcx
	jae	LBB0_20
## %bb.19:
	xorl	%edi, %edi
	jmp	LBB0_22
LBB0_25:
	movq	_FILESIZE@GOTPCREL(%rip), %r14
	movl	(%r14), %edx
	decl	%edx
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	movl	$65, %esi
	callq	_memset
	movslq	(%r14), %rax
	movb	$10, -1(%rax,%rbx)
	movq	_THREADS@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	jle	LBB0_34
## %bb.26:
	xorl	%ebx, %ebx
	xorl	%r12d, %r12d
	jmp	LBB0_27
	.p2align	4, 0x90
LBB0_33:                                ##   in Loop: Header=BB0_27 Depth=1
	incq	%r12
	movq	_THREADS@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	addq	$24, %rbx
	cmpq	%rax, %r12
	jge	LBB0_34
LBB0_27:                                ## =>This Inner Loop Header: Depth=1
	movq	_PATH_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	leaq	L_.str.6(%rip), %rdx
	callq	_snprintf
	movq	%r15, %rdi
	callq	_mkstemp
	movq	_statep@GOTPCREL(%rip), %r13
	movq	(%r13), %rcx
	movq	24(%rcx), %rcx
	movq	%rax, (%rcx,%rbx)
	testq	%rax, %rax
	jns	LBB0_29
## %bb.28:                              ##   in Loop: Header=BB0_27 Depth=1
	movl	$-1, %edi
	leaq	L_.str.7(%rip), %rsi
	xorl	%eax, %eax
	callq	_err
LBB0_29:                                ##   in Loop: Header=BB0_27 Depth=1
	movq	%r15, %rdi
	callq	_unlink
	movq	(%r13), %rax
	movq	24(%rax), %rax
	movq	(%rax,%rbx), %rdi
	movq	_FILESIZE@GOTPCREL(%rip), %r14
	movl	(%r14), %edx
	movq	-72(%rbp), %rsi                 ## 8-byte Reload
	callq	_write
	movl	%eax, %r13d
	testl	%eax, %eax
	js	LBB0_30
## %bb.31:                              ##   in Loop: Header=BB0_27 Depth=1
	cmpl	(%r14), %r13d
	jge	LBB0_33
	jmp	LBB0_32
	.p2align	4, 0x90
LBB0_30:                                ##   in Loop: Header=BB0_27 Depth=1
	movl	$-1, %edi
	leaq	L_.str.8(%rip), %rsi
	xorl	%eax, %eax
	callq	_err
	cmpl	(%r14), %r13d
	jge	LBB0_33
LBB0_32:                                ##   in Loop: Header=BB0_27 Depth=1
	movl	$-1, %edi
	leaq	L_.str.9(%rip), %rsi
	callq	_errx
	jmp	LBB0_33
LBB0_20:
	andl	$-4, %esi
	xorl	%edi, %edi
	movq	%rbx, %rcx
	.p2align	4, 0x90
LBB0_21:                                ## =>This Inner Loop Header: Depth=1
	movq	%rax, (%rcx)
	movq	%rax, 24(%rcx)
	movq	%rax, 48(%rcx)
	movq	%rax, 72(%rcx)
	addq	$4, %rdi
	addq	$96, %rcx
	cmpq	%rdi, %rsi
	jne	LBB0_21
LBB0_22:
	testq	%rdx, %rdx
	je	LBB0_34
## %bb.23:
	leaq	(%rdi,%rdi,2), %rcx
	leaq	(%rbx,%rcx,8), %rcx
	shlq	$3, %rdx
	leaq	(%rdx,%rdx,2), %rdx
	xorl	%esi, %esi
	.p2align	4, 0x90
LBB0_24:                                ## =>This Inner Loop Header: Depth=1
	movq	%rax, (%rcx,%rsi)
	addq	$24, %rsi
	cmpq	%rsi, %rdx
	jne	LBB0_24
LBB0_34:
	movq	_statep@GOTPCREL(%rip), %r12
	movq	(%r12), %rax
	movq	(%rax), %rdi
	leaq	-64(%rbp), %rsi
	movl	$12, %edx
	callq	_bind
	testq	%rax, %rax
	jns	LBB0_36
## %bb.35:
	leaq	L_.str.10(%rip), %rsi
	movl	$-1, %edi
	xorl	%eax, %eax
	callq	_err
LBB0_36:
	movq	(%r12), %rax
	movq	(%rax), %rdi
	movl	$-1, %esi
	callq	_listen
	testq	%rax, %rax
	jns	LBB0_38
## %bb.37:
	leaq	L_.str.11(%rip), %rsi
	movl	$-1, %edi
	xorl	%eax, %eax
	callq	_err
LBB0_38:
	movq	_THREADS@GOTPCREL(%rip), %r13
	cmpl	$0, (%r13)
	jle	LBB0_57
## %bb.39:
	xorl	%r15d, %r15d
	xorl	%r14d, %r14d
	jmp	LBB0_40
LBB0_49:                                ##   in Loop: Header=BB0_40 Depth=1
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	xorl	%eax, %eax
	callq	_killall
	movq	_errno@GOTPCREL(%rip), %rax
	movl	%r12d, (%rax)
	movq	_statep@GOTPCREL(%rip), %r12
	movl	$-1, %edi
	leaq	L_.str.13(%rip), %rsi
	xorl	%eax, %eax
	callq	_err
LBB0_52:                                ##   in Loop: Header=BB0_40 Depth=1
	movq	(%r12), %rax
	movq	24(%rax), %rax
	movq	%rbx, 8(%rax,%r15)
LBB0_53:                                ##   in Loop: Header=BB0_40 Depth=1
	incq	%r14
	movslq	(%r13), %rax
	addq	$24, %r15
	cmpq	%rax, %r14
	jge	LBB0_43
LBB0_40:                                ## =>This Inner Loop Header: Depth=1
	movq	_threaded@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	je	LBB0_48
## %bb.41:                              ##   in Loop: Header=BB0_40 Depth=1
	movq	(%r12), %rax
	movq	24(%rax), %rcx
	leaq	(%rcx,%r15), %rdi
	addq	$16, %rdi
	addq	%r15, %rcx
	xorl	%esi, %esi
	movq	_httpd_worker@GOTPCREL(%rip), %rdx
	callq	_pthread_create
	testq	%rax, %rax
	je	LBB0_53
## %bb.42:                              ##   in Loop: Header=BB0_40 Depth=1
	movl	$-1, %edi
	leaq	L_.str.12(%rip), %rsi
	xorl	%eax, %eax
	callq	_err
	jmp	LBB0_53
	.p2align	4, 0x90
LBB0_48:                                ##   in Loop: Header=BB0_40 Depth=1
	xorl	%eax, %eax
	callq	_fork
	movq	%rax, %rbx
	testq	%rax, %rax
	js	LBB0_49
## %bb.50:                              ##   in Loop: Header=BB0_40 Depth=1
	jne	LBB0_52
## %bb.51:                              ##   in Loop: Header=BB0_40 Depth=1
	movq	(%r12), %rax
	movq	24(%rax), %rdi
	addq	%r15, %rdi
	callq	_httpd_worker
	jmp	LBB0_52
LBB0_43:
	testl	%eax, %eax
	jle	LBB0_57
## %bb.44:
	movl	$8, %ebx
	leaq	L_.str.14(%rip), %r14
	xorl	%r15d, %r15d
	jmp	LBB0_45
	.p2align	4, 0x90
LBB0_56:                                ##   in Loop: Header=BB0_45 Depth=1
	incq	%r15
	movslq	(%r13), %rax
	addq	$24, %rbx
	cmpq	%rax, %r15
	jge	LBB0_57
LBB0_45:                                ## =>This Inner Loop Header: Depth=1
	movq	_threaded@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	movq	(%r12), %rax
	movq	24(%rax), %rax
	je	LBB0_54
## %bb.46:                              ##   in Loop: Header=BB0_45 Depth=1
	movl	8(%rax,%rbx), %edi
	xorl	%esi, %esi
	callq	_pthread_join
	testq	%rax, %rax
	je	LBB0_56
## %bb.47:                              ##   in Loop: Header=BB0_45 Depth=1
	movl	$-1, %edi
	movq	%r14, %rsi
	xorl	%eax, %eax
	callq	_err
	jmp	LBB0_56
	.p2align	4, 0x90
LBB0_54:                                ##   in Loop: Header=BB0_45 Depth=1
	movq	(%rax,%rbx), %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_waitpid
	movq	(%r12), %rcx
	movq	24(%rcx), %rcx
	cmpq	(%rcx,%rbx), %rax
	jne	LBB0_56
## %bb.55:                              ##   in Loop: Header=BB0_45 Depth=1
	movq	$0, (%rcx,%rbx)
	jmp	LBB0_56
LBB0_57:
	movq	_threaded@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	jne	LBB0_59
## %bb.58:
	xorl	%eax, %eax
	callq	_killall
LBB0_59:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_62
## %bb.60:
	xorl	%eax, %eax
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_62:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_FILESIZE,4,2                   ## @FILESIZE
	.comm	_PATH_MAX,4,2                   ## @PATH_MAX
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"t"

	.comm	_threaded,4,2                   ## @threaded
	.comm	_optind,8,3                     ## @optind
	.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.1:                               ## @.str.1
	.asciz	"mmap"

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

	.comm	_statep,8,3                     ## @statep
L_.str.3:                               ## @.str.3
	.asciz	"utsname"

	.comm	_PF_INET,4,2                    ## @PF_INET
	.comm	_SOCK_STREAM,4,2                ## @SOCK_STREAM
L_.str.4:                               ## @.str.4
	.asciz	"socket(PF_INET, SOCK_STREAM)"

	.comm	_AF_INET,4,2                    ## @AF_INET
	.comm	_O_RDONLY,4,2                   ## @O_RDONLY
L_.str.5:                               ## @.str.5
	.asciz	"open: %s"

	.comm	_THREADS,4,2                    ## @THREADS
L_.str.6:                               ## @.str.6
	.asciz	"/tmp/httpd.XXXXXXXXXXX"

L_.str.7:                               ## @.str.7
	.asciz	"mkstemp"

L_.str.8:                               ## @.str.8
	.asciz	"write"

L_.str.9:                               ## @.str.9
	.asciz	"write: short"

L_.str.10:                              ## @.str.10
	.asciz	"bind"

L_.str.11:                              ## @.str.11
	.asciz	"listen"

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

	.comm	_errno,4,2                      ## @errno
L_.str.13:                              ## @.str.13
	.asciz	"fork"

L_.str.14:                              ## @.str.14
	.asciz	"pthread_join"

.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:
	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	x21, x1
	mov	x22, 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	x24, _FILESIZE@GOTPAGE
Lloh4:
	ldr	x24, [x24, _FILESIZE@GOTPAGEOFF]
	ldr	w8, [x24]
	mov	x9, x8
Lloh5:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh6:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x1fffffff0
	sub	x19, x9, x8
	mov	sp, x19
Lloh7:
	adrp	x8, _PATH_MAX@GOTPAGE
Lloh8:
	ldr	x8, [x8, _PATH_MAX@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	mov	x9, x8
Lloh10:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh11:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x1fffffff0
	sub	x20, x9, x8
	mov	sp, x20
Lloh12:
	adrp	x23, l_.str@PAGE
Lloh13:
	add	x23, x23, l_.str@PAGEOFF
Lloh14:
	adrp	x26, _threaded@GOTPAGE
Lloh15:
	ldr	x26, [x26, _threaded@GOTPAGEOFF]
	mov	w25, #1
	b	LBB0_2
LBB0_1:                                 ;   in Loop: Header=BB0_2 Depth=1
	str	w25, [x26]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x22
	mov	x1, x21
	mov	x2, x23
	bl	_getopt
	cmp	w0, #116
	b.eq	LBB0_1
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	cmn	w0, #1
	b.eq	LBB0_5
; %bb.4:                                ;   in Loop: Header=BB0_2 Depth=1
	bl	_usage
	b	LBB0_2
LBB0_5:
Lloh16:
	adrp	x8, _optind@GOTPAGE
Lloh17:
	ldr	x8, [x8, _optind@GOTPAGEOFF]
Lloh18:
	ldr	x25, [x8]
	sub	w8, w22, w25
	sub	w8, w8, #3
	cmn	w8, #3
	b.hi	LBB0_7
; %bb.6:
	bl	_usage
LBB0_7:
	bl	_getpagesize
	mov	x1, x0
	mov	w0, #40
	bl	_roundup
	mov	x22, x0
Lloh19:
	adrp	x8, _PROT_READ@GOTPAGE
Lloh20:
	ldr	x8, [x8, _PROT_READ@GOTPAGEOFF]
Lloh21:
	adrp	x9, _PROT_WRITE@GOTPAGE
Lloh22:
	ldr	x9, [x9, _PROT_WRITE@GOTPAGEOFF]
Lloh23:
	ldr	w8, [x8]
Lloh24:
	ldr	w9, [x9]
	orr	w2, w9, w8
Lloh25:
	adrp	x8, _MAP_ANON@GOTPAGE
Lloh26:
	ldr	x8, [x8, _MAP_ANON@GOTPAGEOFF]
Lloh27:
	ldr	w3, [x8]
	mov	x0, #0
	mov	x1, x22
	mov	w4, #-1
	mov	w5, #0
	bl	_mmap
	mov	x23, x0
Lloh28:
	adrp	x8, _MAP_FAILED@GOTPAGE
Lloh29:
	ldr	x8, [x8, _MAP_FAILED@GOTPAGEOFF]
Lloh30:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_9
; %bb.8:
Lloh31:
	adrp	x1, l_.str.1@PAGE
Lloh32:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	w0, #-1
	bl	_err
LBB0_9:
Lloh33:
	adrp	x8, _INHERIT_SHARE@GOTPAGE
Lloh34:
	ldr	x8, [x8, _INHERIT_SHARE@GOTPAGEOFF]
Lloh35:
	ldr	w2, [x8]
	mov	x0, x23
	mov	x1, x22
	bl	_minherit
	tbz	x0, #63, LBB0_11
; %bb.10:
Lloh36:
	adrp	x1, l_.str.2@PAGE
Lloh37:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	w0, #-1
	bl	_err
LBB0_11:
	add	x21, x21, x25, lsl #3
Lloh38:
	adrp	x27, _statep@GOTPAGE
Lloh39:
	ldr	x27, [x27, _statep@GOTPAGEOFF]
	str	x23, [x27]
	add	x0, x23, #32
	bl	_uname
	tbz	x0, #63, LBB0_13
; %bb.12:
Lloh40:
	adrp	x1, l_.str.3@PAGE
Lloh41:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	w0, #-1
	bl	_err
LBB0_13:
Lloh42:
	adrp	x8, _PF_INET@GOTPAGE
Lloh43:
	ldr	x8, [x8, _PF_INET@GOTPAGEOFF]
Lloh44:
	ldr	w0, [x8]
Lloh45:
	adrp	x8, _SOCK_STREAM@GOTPAGE
Lloh46:
	ldr	x8, [x8, _SOCK_STREAM@GOTPAGEOFF]
Lloh47:
	ldr	w1, [x8]
	mov	w2, #0
	bl	_socket
	ldr	x8, [x27]
	str	x0, [x8]
	tbz	x0, #63, LBB0_15
; %bb.14:
Lloh48:
	adrp	x1, l_.str.4@PAGE
Lloh49:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	w0, #-1
	bl	_err
LBB0_15:
	mov	w22, #12
	sub	x0, x29, #104
	mov	w1, #12
	bl	_bzero
Lloh50:
	adrp	x8, _AF_INET@GOTPAGE
Lloh51:
	ldr	x8, [x8, _AF_INET@GOTPAGEOFF]
Lloh52:
	ldr	w8, [x8]
	stur	w22, [x29, #-104]
	stur	w8, [x29, #-96]
	ldr	x0, [x21]
	bl	_atoi
	bl	_htons
	stur	w0, [x29, #-100]
	ldr	x0, [x21, #8]
	ldr	x8, [x27]
	str	x0, [x8, #8]
Lloh53:
	adrp	x28, _THREADS@GOTPAGE
Lloh54:
	ldr	x28, [x28, _THREADS@GOTPAGEOFF]
	cbz	x0, LBB0_21
; %bb.16:
Lloh55:
	adrp	x8, _O_RDONLY@GOTPAGE
Lloh56:
	ldr	x8, [x8, _O_RDONLY@GOTPAGEOFF]
Lloh57:
	ldr	w1, [x8]
	bl	_open
	ldr	x8, [x27]
	str	x0, [x8, #16]
	tbz	x0, #63, LBB0_18
; %bb.17:
	ldr	x8, [x8, #8]
	str	x8, [sp, #-16]!
Lloh58:
	adrp	x1, l_.str.5@PAGE
Lloh59:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	w0, #-1
	bl	_err
	add	sp, sp, #16
LBB0_18:
	ldr	w9, [x28]
	cmp	w9, #1
	b.lt	LBB0_35
; %bb.19:
	ldr	x10, [x27]
	ldp	x8, x10, [x10, #16]
	cmp	w9, #4
	b.hs	LBB0_30
; %bb.20:
	mov	x11, #0
	b	LBB0_33
LBB0_21:
	ldr	w8, [x24]
	sub	w2, w8, #1
	mov	x0, x19
	mov	w1, #65
	bl	_memset
	ldrsw	x8, [x24]
	add	x8, x8, x19
	mov	w9, #10
	sturb	w9, [x8, #-1]
	ldr	w8, [x28]
	cmp	w8, #1
	b.lt	LBB0_35
; %bb.22:
	mov	x23, #0
	mov	x22, #0
Lloh60:
	adrp	x21, l_.str.6@PAGE
Lloh61:
	add	x21, x21, l_.str.6@PAGEOFF
	b	LBB0_24
LBB0_23:                                ;   in Loop: Header=BB0_24 Depth=1
	add	x22, x22, #1
	ldrsw	x8, [x28]
	add	x23, x23, #24
	cmp	x22, x8
	b.ge	LBB0_35
LBB0_24:                                ; =>This Inner Loop Header: Depth=1
Lloh62:
	adrp	x8, _PATH_MAX@GOTPAGE
Lloh63:
	ldr	x8, [x8, _PATH_MAX@GOTPAGEOFF]
Lloh64:
	ldr	w1, [x8]
	mov	x0, x20
	mov	x2, x21
	bl	_snprintf
	mov	x0, x20
	bl	_mkstemp
	ldr	x8, [x27]
	ldr	x8, [x8, #24]
	str	x0, [x8, x23]
	tbz	x0, #63, LBB0_26
; %bb.25:                               ;   in Loop: Header=BB0_24 Depth=1
	mov	w0, #-1
Lloh65:
	adrp	x1, l_.str.7@PAGE
Lloh66:
	add	x1, x1, l_.str.7@PAGEOFF
	bl	_err
LBB0_26:                                ;   in Loop: Header=BB0_24 Depth=1
	mov	x0, x20
	bl	_unlink
	ldr	x8, [x27]
	ldr	x8, [x8, #24]
	ldr	x0, [x8, x23]
	ldr	w2, [x24]
	mov	x1, x19
	bl	_write
	mov	x25, x0
	tbz	w0, #31, LBB0_28
; %bb.27:                               ;   in Loop: Header=BB0_24 Depth=1
	mov	w0, #-1
Lloh67:
	adrp	x1, l_.str.8@PAGE
Lloh68:
	add	x1, x1, l_.str.8@PAGEOFF
	bl	_err
LBB0_28:                                ;   in Loop: Header=BB0_24 Depth=1
	ldr	w8, [x24]
	cmp	w25, w8
	b.ge	LBB0_23
; %bb.29:                               ;   in Loop: Header=BB0_24 Depth=1
	mov	w0, #-1
Lloh69:
	adrp	x1, l_.str.9@PAGE
Lloh70:
	add	x1, x1, l_.str.9@PAGEOFF
	bl	_errx
	b	LBB0_23
LBB0_30:
	and	x11, x9, #0xfffffffc
	add	x12, x10, #48
	mov	x13, x11
LBB0_31:                                ; =>This Inner Loop Header: Depth=1
	stur	x8, [x12, #-48]
	stur	x8, [x12, #-24]
	str	x8, [x12]
	str	x8, [x12, #24]
	add	x12, x12, #96
	subs	x13, x13, #4
	b.ne	LBB0_31
; %bb.32:
	cmp	x11, x9
	b.eq	LBB0_35
LBB0_33:
	mov	w12, #24
	madd	x10, x11, x12, x10
	sub	x9, x9, x11
LBB0_34:                                ; =>This Inner Loop Header: Depth=1
	str	x8, [x10], #24
	subs	x9, x9, #1
	b.ne	LBB0_34
LBB0_35:
	ldr	x8, [x27]
	ldr	x0, [x8]
	sub	x1, x29, #104
	mov	w2, #12
	bl	_bind
	tbz	x0, #63, LBB0_37
; %bb.36:
Lloh71:
	adrp	x1, l_.str.10@PAGE
Lloh72:
	add	x1, x1, l_.str.10@PAGEOFF
	mov	w0, #-1
	bl	_err
LBB0_37:
	ldr	x8, [x27]
	ldr	x0, [x8]
	mov	w1, #-1
	bl	_listen
	tbz	x0, #63, LBB0_39
; %bb.38:
Lloh73:
	adrp	x1, l_.str.11@PAGE
Lloh74:
	add	x1, x1, l_.str.11@PAGEOFF
	mov	w0, #-1
	bl	_err
LBB0_39:
	ldr	w8, [x28]
	cmp	w8, #1
	b.lt	LBB0_58
; %bb.40:
	mov	x23, #0
	mov	x24, #0
Lloh75:
	adrp	x25, _errno@GOTPAGE
Lloh76:
	ldr	x25, [x25, _errno@GOTPAGEOFF]
Lloh77:
	adrp	x20, _httpd_worker@GOTPAGE
Lloh78:
	ldr	x20, [x20, _httpd_worker@GOTPAGEOFF]
Lloh79:
	adrp	x21, l_.str.12@PAGE
Lloh80:
	add	x21, x21, l_.str.12@PAGEOFF
	b	LBB0_44
LBB0_41:                                ;   in Loop: Header=BB0_44 Depth=1
	ldr	w19, [x25]
	bl	_killall
	str	w19, [x25]
	mov	w0, #-1
Lloh81:
	adrp	x1, l_.str.13@PAGE
Lloh82:
	add	x1, x1, l_.str.13@PAGEOFF
	bl	_err
LBB0_42:                                ;   in Loop: Header=BB0_44 Depth=1
	ldr	x8, [x27]
	ldr	x8, [x8, #24]
	add	x8, x8, x23
	str	x22, [x8, #8]
LBB0_43:                                ;   in Loop: Header=BB0_44 Depth=1
	add	x24, x24, #1
	ldrsw	x8, [x28]
	add	x23, x23, #24
	cmp	x24, x8
	b.ge	LBB0_50
LBB0_44:                                ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x26]
	cbz	w8, LBB0_47
; %bb.45:                               ;   in Loop: Header=BB0_44 Depth=1
	ldr	x8, [x27]
	ldr	x8, [x8, #24]
	add	x3, x8, x23
	add	x0, x3, #16
	mov	x1, #0
	mov	x2, x20
	bl	_pthread_create
	cbz	x0, LBB0_43
; %bb.46:                               ;   in Loop: Header=BB0_44 Depth=1
	mov	w0, #-1
	mov	x1, x21
	bl	_err
	b	LBB0_43
LBB0_47:                                ;   in Loop: Header=BB0_44 Depth=1
	bl	_fork
	mov	x22, x0
	tbnz	x0, #63, LBB0_41
; %bb.48:                               ;   in Loop: Header=BB0_44 Depth=1
	cbnz	x22, LBB0_42
; %bb.49:                               ;   in Loop: Header=BB0_44 Depth=1
	ldr	x8, [x27]
	ldr	x8, [x8, #24]
	add	x0, x8, x23
	bl	_httpd_worker
	b	LBB0_42
LBB0_50:
	cmp	w8, #1
	b.lt	LBB0_58
; %bb.51:
	mov	x20, #0
	mov	x21, #0
Lloh83:
	adrp	x19, l_.str.14@PAGE
Lloh84:
	add	x19, x19, l_.str.14@PAGEOFF
	b	LBB0_53
LBB0_52:                                ;   in Loop: Header=BB0_53 Depth=1
	add	x21, x21, #1
	ldrsw	x8, [x28]
	add	x20, x20, #24
	cmp	x21, x8
	b.ge	LBB0_58
LBB0_53:                                ; =>This Inner Loop Header: Depth=1
	ldr	w9, [x26]
	ldr	x8, [x27]
	ldr	x8, [x8, #24]
	add	x8, x8, x20
	cbz	w9, LBB0_56
; %bb.54:                               ;   in Loop: Header=BB0_53 Depth=1
	ldr	w0, [x8, #16]
	mov	x1, #0
	bl	_pthread_join
	cbz	x0, LBB0_52
; %bb.55:                               ;   in Loop: Header=BB0_53 Depth=1
	mov	w0, #-1
	mov	x1, x19
	bl	_err
	b	LBB0_52
LBB0_56:                                ;   in Loop: Header=BB0_53 Depth=1
	ldr	x0, [x8, #8]
	mov	x1, #0
	mov	w2, #0
	bl	_waitpid
	ldr	x8, [x27]
	ldr	x8, [x8, #24]
	add	x8, x8, x20
	ldr	x9, [x8, #8]
	cmp	x0, x9
	b.ne	LBB0_52
; %bb.57:                               ;   in Loop: Header=BB0_53 Depth=1
	str	xzr, [x8, #8]
	b	LBB0_52
LBB0_58:
	ldr	w8, [x26]
	cbnz	w8, LBB0_60
; %bb.59:
	bl	_killall
LBB0_60:
	ldur	x8, [x29, #-88]
Lloh85:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh86:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh87:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_62
; %bb.61:
	mov	w0, #0
	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_62:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh23
	.loh AdrpAdd	Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpAdd	Lloh36, Lloh37
	.loh AdrpLdrGot	Lloh38, Lloh39
	.loh AdrpAdd	Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh45, Lloh46, Lloh47
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.loh AdrpAdd	Lloh48, Lloh49
	.loh AdrpLdrGot	Lloh53, Lloh54
	.loh AdrpLdrGotLdr	Lloh50, Lloh51, Lloh52
	.loh AdrpLdrGotLdr	Lloh55, Lloh56, Lloh57
	.loh AdrpAdd	Lloh58, Lloh59
	.loh AdrpAdd	Lloh60, Lloh61
	.loh AdrpLdrGotLdr	Lloh62, Lloh63, Lloh64
	.loh AdrpAdd	Lloh65, Lloh66
	.loh AdrpAdd	Lloh67, Lloh68
	.loh AdrpAdd	Lloh69, Lloh70
	.loh AdrpAdd	Lloh71, Lloh72
	.loh AdrpAdd	Lloh73, Lloh74
	.loh AdrpAdd	Lloh79, Lloh80
	.loh AdrpLdrGot	Lloh77, Lloh78
	.loh AdrpLdrGot	Lloh75, Lloh76
	.loh AdrpAdd	Lloh81, Lloh82
	.loh AdrpAdd	Lloh83, Lloh84
	.loh AdrpLdrGotLdr	Lloh85, Lloh86, Lloh87
	.cfi_endproc
                                        ; -- End function
	.comm	_FILESIZE,4,2                   ; @FILESIZE
	.comm	_PATH_MAX,4,2                   ; @PATH_MAX
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"t"

	.comm	_threaded,4,2                   ; @threaded
	.comm	_optind,8,3                     ; @optind
	.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.1:                               ; @.str.1
	.asciz	"mmap"

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

	.comm	_statep,8,3                     ; @statep
l_.str.3:                               ; @.str.3
	.asciz	"utsname"

	.comm	_PF_INET,4,2                    ; @PF_INET
	.comm	_SOCK_STREAM,4,2                ; @SOCK_STREAM
l_.str.4:                               ; @.str.4
	.asciz	"socket(PF_INET, SOCK_STREAM)"

	.comm	_AF_INET,4,2                    ; @AF_INET
	.comm	_O_RDONLY,4,2                   ; @O_RDONLY
l_.str.5:                               ; @.str.5
	.asciz	"open: %s"

	.comm	_THREADS,4,2                    ; @THREADS
l_.str.6:                               ; @.str.6
	.asciz	"/tmp/httpd.XXXXXXXXXXX"

l_.str.7:                               ; @.str.7
	.asciz	"mkstemp"

l_.str.8:                               ; @.str.8
	.asciz	"write"

l_.str.9:                               ; @.str.9
	.asciz	"write: short"

l_.str.10:                              ; @.str.10
	.asciz	"bind"

l_.str.11:                              ; @.str.11
	.asciz	"listen"

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

	.comm	_errno,4,2                      ; @errno
l_.str.13:                              ; @.str.13
	.asciz	"fork"

l_.str.14:                              ; @.str.14
	.asciz	"pthread_join"

.subsections_via_symbols
