	.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, %r15
	movl	%edi, %ebx
	movq	_homedir@GOTPCREL(%rip), %r12
	movq	(%r12), %r14
	leaq	L_.str(%rip), %rdi
	callq	_getenv
	movq	%r14, %rdi
	movq	%rax, %rsi
	callq	_strcpy
	xorl	%eax, %eax
	callq	_geteuid
	movq	(%r12), %rdi
	leaq	L_.str.1(%rip), %rsi
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	callq	_strcat
	jmp	LBB0_3
LBB0_1:
	callq	_strcpy
LBB0_3:
	xorl	%eax, %eax
	callq	_geteuid
	movq	_logfile@GOTPCREL(%rip), %r14
	movq	(%r14), %r12
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	leaq	L_.str(%rip), %rdi
	callq	_getenv
	movq	%r12, %rdi
	movq	%rax, %rsi
	callq	_strcpy
	movq	(%r14), %rdi
	leaq	L_.str.2(%rip), %rsi
	callq	_strcat
	movq	(%r14), %rdi
	leaq	L_.str.3(%rip), %rsi
	callq	_strcat
	jmp	LBB0_6
LBB0_5:
	leaq	L_.str.4(%rip), %rsi
	movq	%r12, %rdi
	callq	_strcpy
LBB0_6:
	movl	$65534, -44(%rbp)               ## 4-byte Folded Spill
                                        ## imm = 0xFFFE
	leaq	L_.str.5(%rip), %r12
	leaq	LJTI0_0(%rip), %r13
	movq	_optarg@GOTPCREL(%rip), %r14
	jmp	LBB0_7
LBB0_12:                                ##   in Loop: Header=BB0_7 Depth=1
	movq	_homedir@GOTPCREL(%rip), %rax
LBB0_13:                                ##   in Loop: Header=BB0_7 Depth=1
	movq	(%rax), %rdi
	movq	(%r14), %rsi
	callq	_strcpy
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movl	%ebx, %edi
	movq	%r15, %rsi
	movq	%r12, %rdx
	callq	_getopt
                                        ## kill: def $eax killed $eax def $rax
	leal	-68(%rax), %ecx
	cmpl	$50, %ecx
	ja	LBB0_8
## %bb.11:                              ##   in Loop: Header=BB0_7 Depth=1
	movslq	(%r13,%rcx,4), %rax
	addq	%r13, %rax
	jmpq	*%rax
LBB0_19:                                ##   in Loop: Header=BB0_7 Depth=1
	movq	_daemonize@GOTPCREL(%rip), %rax
	movq	$0, (%rax)
	jmp	LBB0_7
LBB0_14:                                ##   in Loop: Header=BB0_7 Depth=1
	movq	_daemonize@GOTPCREL(%rip), %rax
	movq	$0, (%rax)
	movq	_verbose@GOTPCREL(%rip), %rax
	movl	$1, (%rax)
	movq	(%r14), %rax
	movq	_fetch_mode@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
	jmp	LBB0_7
LBB0_16:                                ##   in Loop: Header=BB0_7 Depth=1
	movq	_logfile@GOTPCREL(%rip), %rax
	jmp	LBB0_13
LBB0_17:                                ##   in Loop: Header=BB0_7 Depth=1
	movq	(%r14), %rdi
	callq	_atoi
	movq	_http_port@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	jmp	LBB0_7
LBB0_18:                                ##   in Loop: Header=BB0_7 Depth=1
	movq	_verbose@GOTPCREL(%rip), %rax
	movl	$1, (%rax)
	jmp	LBB0_7
LBB0_15:                                ##   in Loop: Header=BB0_7 Depth=1
	movq	(%r14), %rdi
	callq	_atoi
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	jmp	LBB0_7
LBB0_8:
	cmpl	$-1, %eax
	jne	LBB0_9
## %bb.20:
	movq	_http_port@GOTPCREL(%rip), %rax
	cmpl	$80, (%rax)
	jne	LBB0_23
## %bb.21:
	xorl	%eax, %eax
	callq	_geteuid
	testq	%rax, %rax
	je	LBB0_23
## %bb.22:
	movq	_http_port@GOTPCREL(%rip), %rax
	movl	$1080, (%rax)                   ## imm = 0x438
LBB0_23:
	movq	_fetch_mode@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	movq	_logfile@GOTPCREL(%rip), %rbx
	jne	LBB0_26
## %bb.24:
	movq	_homedir@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	callq	_chdir
	testq	%rax, %rax
	jne	LBB0_25
LBB0_26:
	movq	(%rbx), %rdi
	movq	_W_OK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_access
	testq	%rax, %rax
	je	LBB0_29
## %bb.27:
	movq	_daemonize@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_29
## %bb.28:
	movq	(%rbx), %rdi
	movq	_O_WRONLY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_open
	movl	%eax, %r14d
	movq	(%rbx), %rdi
	movl	$384, %esi                      ## imm = 0x180
	callq	_chmod
	movl	%r14d, %edi
	callq	_close
LBB0_29:
	xorl	%eax, %eax
	callq	_init_servconnection
	movq	_verbose@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	je	LBB0_34
## %bb.30:
	leaq	L_str(%rip), %rdi
	callq	_puts
	movq	_http_port@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.9(%rip), %rdi
	xorl	%eax, %eax
	callq	_printf
	movq	_fetch_mode@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	jne	LBB0_32
## %bb.31:
	movq	_homedir@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	leaq	L_.str.10(%rip), %rdi
	xorl	%eax, %eax
	callq	_printf
LBB0_32:
	movq	_daemonize@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_39
## %bb.33:
	movq	(%rbx), %rsi
	leaq	L_.str.11(%rip), %rdi
	xorl	%eax, %eax
	callq	_printf
LBB0_34:
	movq	_daemonize@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_39
## %bb.35:
	xorl	%eax, %eax
	callq	_fork
	movl	%eax, %ebx
	movq	_WNOHANG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%edi, %edi
	xorl	%edx, %edx
	callq	_wait3
	testl	%ebx, %ebx
	jne	LBB0_36
LBB0_39:
	movq	_fetch_mode@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	jne	LBB0_41
## %bb.40:
	xorl	%edi, %edi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	callq	_setpgrp
LBB0_41:
	movq	_http_sock@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	$15, %esi
	callq	_listen
	testq	%rax, %rax
	jns	LBB0_42
## %bb.46:
	movl	$1, %edi
	callq	_exit
LBB0_9:
	leaq	L_str.13(%rip), %rdi
LBB0_10:
	callq	_puts
	movl	$1, %edi
	callq	_exit
LBB0_42:
	xorl	%eax, %eax
	callq	_wait_connection
	xorl	%eax, %eax
	callq	_fork
	testl	%eax, %eax
	je	LBB0_45
## %bb.43:
	movq	_WNOHANG@GOTPCREL(%rip), %r14
	movq	_con_sock@GOTPCREL(%rip), %rbx
	.p2align	4, 0x90
LBB0_44:                                ## =>This Inner Loop Header: Depth=1
	movl	(%r14), %esi
	xorl	%edi, %edi
	xorl	%edx, %edx
	callq	_wait3
	movl	(%rbx), %edi
	callq	_close
	xorl	%eax, %eax
	callq	_wait_connection
	xorl	%eax, %eax
	callq	_fork
	testl	%eax, %eax
	jne	LBB0_44
LBB0_45:
	xorl	%eax, %eax
	callq	_http_request
	movq	_WNOHANG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%edi, %edi
	xorl	%edx, %edx
	callq	_wait3
	xorl	%edi, %edi
	callq	_exit
LBB0_25:
	leaq	L_.str.7(%rip), %rdi
	callq	_perror
	movq	_homedir@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	jmp	LBB0_10
LBB0_36:
	movq	_verbose@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	je	LBB0_38
## %bb.37:
	leaq	L_.str.12(%rip), %rdi
	movl	%ebx, %esi
	xorl	%eax, %eax
	callq	_printf
LBB0_38:
	xorl	%edi, %edi
	callq	_exit
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_19, LBB0_19-LJTI0_0
.set L0_0_set_9, LBB0_9-LJTI0_0
.set L0_0_set_12, LBB0_12-LJTI0_0
.set L0_0_set_14, LBB0_14-LJTI0_0
.set L0_0_set_15, LBB0_15-LJTI0_0
.set L0_0_set_16, LBB0_16-LJTI0_0
.set L0_0_set_17, LBB0_17-LJTI0_0
.set L0_0_set_18, LBB0_18-LJTI0_0
LJTI0_0:
	.long	L0_0_set_19
	.long	L0_0_set_9
	.long	L0_0_set_9
	.long	L0_0_set_9
	.long	L0_0_set_9
	.long	L0_0_set_9
	.long	L0_0_set_9
	.long	L0_0_set_9
	.long	L0_0_set_9
	.long	L0_0_set_9
	.long	L0_0_set_9
	.long	L0_0_set_9
	.long	L0_0_set_9
	.long	L0_0_set_9
	.long	L0_0_set_9
	.long	L0_0_set_9
	.long	L0_0_set_9
	.long	L0_0_set_9
	.long	L0_0_set_9
	.long	L0_0_set_9
	.long	L0_0_set_9
	.long	L0_0_set_9
	.long	L0_0_set_9
	.long	L0_0_set_9
	.long	L0_0_set_9
	.long	L0_0_set_9
	.long	L0_0_set_9
	.long	L0_0_set_9
	.long	L0_0_set_9
	.long	L0_0_set_9
	.long	L0_0_set_9
	.long	L0_0_set_9
	.long	L0_0_set_12
	.long	L0_0_set_9
	.long	L0_0_set_14
	.long	L0_0_set_15
	.long	L0_0_set_9
	.long	L0_0_set_9
	.long	L0_0_set_9
	.long	L0_0_set_9
	.long	L0_0_set_16
	.long	L0_0_set_9
	.long	L0_0_set_9
	.long	L0_0_set_9
	.long	L0_0_set_17
	.long	L0_0_set_9
	.long	L0_0_set_9
	.long	L0_0_set_9
	.long	L0_0_set_9
	.long	L0_0_set_9
	.long	L0_0_set_18
	.end_data_region
                                        ## -- End function
	.comm	_homedir,8,3                    ## @homedir
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"HOME"

L_.str.1:                               ## @.str.1
	.asciz	"/httphome"

	.comm	_logfile,8,3                    ## @logfile
L_.str.2:                               ## @.str.2
	.asciz	"/"

L_.str.3:                               ## @.str.3
	.asciz	"jhttp.log"

L_.str.4:                               ## @.str.4
	.asciz	"/var/log/jhttpd.log"

L_.str.5:                               ## @.str.5
	.asciz	"d:f:g:l:p:vDh"

	.comm	_optarg,8,3                     ## @optarg
	.comm	_daemonize,8,3                  ## @daemonize
	.comm	_verbose,4,2                    ## @verbose
	.comm	_fetch_mode,8,3                 ## @fetch_mode
	.comm	_http_port,4,2                  ## @http_port
L_.str.7:                               ## @.str.7
	.asciz	"chdir"

	.comm	_W_OK,4,2                       ## @W_OK
	.comm	_O_WRONLY,4,2                   ## @O_WRONLY
L_.str.9:                               ## @.str.9
	.asciz	"port: %d\n"

L_.str.10:                              ## @.str.10
	.asciz	"html home: %s\n"

L_.str.11:                              ## @.str.11
	.asciz	"logfile: %s\n"

	.comm	_WNOHANG,4,2                    ## @WNOHANG
L_.str.12:                              ## @.str.12
	.asciz	"pid: %d\n"

	.comm	_http_sock,4,2                  ## @http_sock
	.comm	_con_sock,4,2                   ## @con_sock
L_str:                                  ## @str
	.asciz	"Server started with options "

L_str.13:                               ## @str.13
	.asciz	"usage: simple_httpd [[-d directory][-g grpid][-l logfile][-p port][-vD]]"

.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	x20, x1
	mov	x21, x0
Lloh0:
	adrp	x22, _homedir@GOTPAGE
Lloh1:
	ldr	x22, [x22, _homedir@GOTPAGEOFF]
	ldr	x19, [x22]
Lloh2:
	adrp	x0, l_.str@PAGE
Lloh3:
	add	x0, x0, l_.str@PAGEOFF
	bl	_getenv
	mov	x1, x0
	mov	x0, x19
	bl	_strcpy
	bl	_geteuid
	mov	x8, x0
	ldr	x0, [x22]
Lloh4:
	adrp	x1, l_.str.1@PAGE
Lloh5:
	add	x1, x1, l_.str.1@PAGEOFF
	cbz	x8, LBB0_2
; %bb.1:
	bl	_strcat
	b	LBB0_3
LBB0_2:
	bl	_strcpy
LBB0_3:
	bl	_geteuid
Lloh6:
	adrp	x22, _logfile@GOTPAGE
Lloh7:
	ldr	x22, [x22, _logfile@GOTPAGEOFF]
	ldr	x19, [x22]
	cbz	x0, LBB0_5
; %bb.4:
Lloh8:
	adrp	x0, l_.str@PAGE
Lloh9:
	add	x0, x0, l_.str@PAGEOFF
	bl	_getenv
	mov	x1, x0
	mov	x0, x19
	bl	_strcpy
	ldr	x0, [x22]
Lloh10:
	adrp	x1, l_.str.2@PAGE
Lloh11:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_strcat
	mov	x26, x22
	ldr	x0, [x22]
Lloh12:
	adrp	x1, l_.str.3@PAGE
Lloh13:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_strcat
	b	LBB0_6
LBB0_5:
	mov	x26, x22
Lloh14:
	adrp	x1, l_.str.4@PAGE
Lloh15:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x19
	bl	_strcpy
LBB0_6:
Lloh16:
	adrp	x22, l_.str.5@PAGE
Lloh17:
	add	x22, x22, l_.str.5@PAGEOFF
Lloh18:
	adrp	x27, _daemonize@GOTPAGE
Lloh19:
	ldr	x27, [x27, _daemonize@GOTPAGEOFF]
	mov	w8, #65534
	str	w8, [sp, #12]                   ; 4-byte Folded Spill
Lloh20:
	adrp	x19, _optarg@GOTPAGE
Lloh21:
	ldr	x19, [x19, _optarg@GOTPAGEOFF]
Lloh22:
	adrp	x25, _verbose@GOTPAGE
Lloh23:
	ldr	x25, [x25, _verbose@GOTPAGEOFF]
	mov	w23, #1
Lloh24:
	adrp	x28, _http_port@GOTPAGE
Lloh25:
	ldr	x28, [x28, _http_port@GOTPAGEOFF]
Lloh26:
	adrp	x24, lJTI0_0@PAGE
Lloh27:
	add	x24, x24, lJTI0_0@PAGEOFF
	b	LBB0_9
LBB0_7:                                 ;   in Loop: Header=BB0_9 Depth=1
	ldr	x0, [x26]
LBB0_8:                                 ;   in Loop: Header=BB0_9 Depth=1
	ldr	x1, [x19]
	bl	_strcpy
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x21
	mov	x1, x20
	mov	x2, x22
	bl	_getopt
	sub	w8, w0, #68
	cmp	w8, #50
	b.hi	LBB0_17
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=1
	adr	x9, LBB0_7
	ldrb	w10, [x24, x8]
	add	x9, x9, x10, lsl #2
	br	x9
LBB0_11:                                ;   in Loop: Header=BB0_9 Depth=1
	str	xzr, [x27]
	b	LBB0_9
LBB0_12:                                ;   in Loop: Header=BB0_9 Depth=1
Lloh28:
	adrp	x8, _homedir@GOTPAGE
Lloh29:
	ldr	x8, [x8, _homedir@GOTPAGEOFF]
Lloh30:
	ldr	x0, [x8]
	b	LBB0_8
LBB0_13:                                ;   in Loop: Header=BB0_9 Depth=1
	str	xzr, [x27]
	str	w23, [x25]
	ldr	x8, [x19]
Lloh31:
	adrp	x9, _fetch_mode@GOTPAGE
Lloh32:
	ldr	x9, [x9, _fetch_mode@GOTPAGEOFF]
Lloh33:
	str	x8, [x9]
	b	LBB0_9
LBB0_14:                                ;   in Loop: Header=BB0_9 Depth=1
	ldr	x0, [x19]
	bl	_atoi
	str	w0, [x28]
	b	LBB0_9
LBB0_15:                                ;   in Loop: Header=BB0_9 Depth=1
	str	w23, [x25]
	b	LBB0_9
LBB0_16:                                ;   in Loop: Header=BB0_9 Depth=1
	ldr	x0, [x19]
	bl	_atoi
	str	w0, [sp, #12]                   ; 4-byte Folded Spill
	b	LBB0_9
LBB0_17:
	cmn	w0, #1
	b.ne	LBB0_36
; %bb.18:
	ldr	w8, [x28]
	cmp	w8, #80
	b.ne	LBB0_21
; %bb.19:
	bl	_geteuid
	cbz	x0, LBB0_21
; %bb.20:
	mov	w8, #1080
	str	w8, [x28]
LBB0_21:
Lloh34:
	adrp	x8, _fetch_mode@GOTPAGE
Lloh35:
	ldr	x8, [x8, _fetch_mode@GOTPAGEOFF]
Lloh36:
	ldr	x8, [x8]
	cbnz	x8, LBB0_23
; %bb.22:
Lloh37:
	adrp	x8, _homedir@GOTPAGE
Lloh38:
	ldr	x8, [x8, _homedir@GOTPAGEOFF]
Lloh39:
	ldr	x0, [x8]
	bl	_chdir
	cbnz	x0, LBB0_42
LBB0_23:
	ldr	x0, [x26]
Lloh40:
	adrp	x8, _W_OK@GOTPAGE
Lloh41:
	ldr	x8, [x8, _W_OK@GOTPAGEOFF]
Lloh42:
	ldr	w1, [x8]
	bl	_access
	ldr	x8, [x27]
	cmp	x0, #0
	ccmp	x8, #0, #4, ne
	b.eq	LBB0_25
; %bb.24:
	ldr	x0, [x26]
Lloh43:
	adrp	x8, _O_WRONLY@GOTPAGE
Lloh44:
	ldr	x8, [x8, _O_WRONLY@GOTPAGEOFF]
Lloh45:
	ldr	w1, [x8]
	bl	_open
	mov	x20, x0
	ldr	x0, [x26]
	mov	w1, #384
	bl	_chmod
	mov	x0, x20
	bl	_close
LBB0_25:
	bl	_init_servconnection
	ldr	w8, [x25]
	cbz	w8, LBB0_30
; %bb.26:
Lloh46:
	adrp	x0, l_str@PAGE
Lloh47:
	add	x0, x0, l_str@PAGEOFF
	bl	_puts
	ldr	w8, [x28]
	str	x8, [sp]
Lloh48:
	adrp	x0, l_.str.9@PAGE
Lloh49:
	add	x0, x0, l_.str.9@PAGEOFF
	bl	_printf
Lloh50:
	adrp	x8, _fetch_mode@GOTPAGE
Lloh51:
	ldr	x8, [x8, _fetch_mode@GOTPAGEOFF]
Lloh52:
	ldr	x8, [x8]
	cbnz	x8, LBB0_28
; %bb.27:
Lloh53:
	adrp	x8, _homedir@GOTPAGE
Lloh54:
	ldr	x8, [x8, _homedir@GOTPAGEOFF]
Lloh55:
	ldr	x8, [x8]
	str	x8, [sp]
Lloh56:
	adrp	x0, l_.str.10@PAGE
Lloh57:
	add	x0, x0, l_.str.10@PAGEOFF
	bl	_printf
LBB0_28:
	ldr	x8, [x27]
	cbz	x8, LBB0_32
; %bb.29:
	ldr	x8, [x26]
	str	x8, [sp]
Lloh58:
	adrp	x0, l_.str.11@PAGE
Lloh59:
	add	x0, x0, l_.str.11@PAGEOFF
	bl	_printf
LBB0_30:
	ldr	x8, [x27]
	cbz	x8, LBB0_32
; %bb.31:
	bl	_fork
	mov	x20, x0
Lloh60:
	adrp	x8, _WNOHANG@GOTPAGE
Lloh61:
	ldr	x8, [x8, _WNOHANG@GOTPAGEOFF]
Lloh62:
	ldr	w1, [x8]
	mov	w0, #0
	mov	w2, #0
	bl	_wait3
	cbnz	w20, LBB0_43
LBB0_32:
Lloh63:
	adrp	x8, _fetch_mode@GOTPAGE
Lloh64:
	ldr	x8, [x8, _fetch_mode@GOTPAGEOFF]
Lloh65:
	ldr	x8, [x8]
	cbnz	x8, LBB0_34
; %bb.33:
	mov	w0, #0
	ldr	w1, [sp, #12]                   ; 4-byte Folded Reload
	bl	_setpgrp
LBB0_34:
Lloh66:
	adrp	x8, _http_sock@GOTPAGE
Lloh67:
	ldr	x8, [x8, _http_sock@GOTPAGEOFF]
Lloh68:
	ldr	w0, [x8]
	mov	w1, #15
	bl	_listen
	tbz	x0, #63, LBB0_38
; %bb.35:
	mov	w0, #1
	bl	_exit
LBB0_36:
Lloh69:
	adrp	x0, l_str.13@PAGE
Lloh70:
	add	x0, x0, l_str.13@PAGEOFF
LBB0_37:
	bl	_puts
	mov	w0, #1
	bl	_exit
LBB0_38:
	bl	_wait_connection
	bl	_fork
	cbz	w0, LBB0_41
; %bb.39:
Lloh71:
	adrp	x19, _WNOHANG@GOTPAGE
Lloh72:
	ldr	x19, [x19, _WNOHANG@GOTPAGEOFF]
Lloh73:
	adrp	x20, _con_sock@GOTPAGE
Lloh74:
	ldr	x20, [x20, _con_sock@GOTPAGEOFF]
LBB0_40:                                ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x19]
	mov	w0, #0
	mov	w2, #0
	bl	_wait3
	ldr	w0, [x20]
	bl	_close
	bl	_wait_connection
	bl	_fork
	cbnz	w0, LBB0_40
LBB0_41:
	bl	_http_request
Lloh75:
	adrp	x8, _WNOHANG@GOTPAGE
Lloh76:
	ldr	x8, [x8, _WNOHANG@GOTPAGEOFF]
Lloh77:
	ldr	w1, [x8]
	mov	w0, #0
	mov	w2, #0
	bl	_wait3
	mov	w0, #0
	bl	_exit
LBB0_42:
Lloh78:
	adrp	x0, l_.str.7@PAGE
Lloh79:
	add	x0, x0, l_.str.7@PAGEOFF
	bl	_perror
Lloh80:
	adrp	x8, _homedir@GOTPAGE
Lloh81:
	ldr	x8, [x8, _homedir@GOTPAGEOFF]
Lloh82:
	ldr	x0, [x8]
	b	LBB0_37
LBB0_43:
	ldr	w8, [x25]
	cbz	w8, LBB0_45
; %bb.44:
	str	x20, [sp]
Lloh83:
	adrp	x0, l_.str.12@PAGE
Lloh84:
	add	x0, x0, l_.str.12@PAGEOFF
	bl	_printf
LBB0_45:
	mov	w0, #0
	bl	_exit
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotStr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.loh AdrpLdrGotLdr	Lloh50, Lloh51, Lloh52
	.loh AdrpAdd	Lloh48, Lloh49
	.loh AdrpAdd	Lloh46, Lloh47
	.loh AdrpAdd	Lloh56, Lloh57
	.loh AdrpLdrGotLdr	Lloh53, Lloh54, Lloh55
	.loh AdrpAdd	Lloh58, Lloh59
	.loh AdrpLdrGotLdr	Lloh60, Lloh61, Lloh62
	.loh AdrpLdrGotLdr	Lloh63, Lloh64, Lloh65
	.loh AdrpLdrGotLdr	Lloh66, Lloh67, Lloh68
	.loh AdrpAdd	Lloh69, Lloh70
	.loh AdrpLdrGot	Lloh73, Lloh74
	.loh AdrpLdrGot	Lloh71, Lloh72
	.loh AdrpLdrGotLdr	Lloh75, Lloh76, Lloh77
	.loh AdrpLdrGotLdr	Lloh80, Lloh81, Lloh82
	.loh AdrpAdd	Lloh78, Lloh79
	.loh AdrpAdd	Lloh83, Lloh84
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_11-LBB0_7)>>2
	.byte	(LBB0_36-LBB0_7)>>2
	.byte	(LBB0_36-LBB0_7)>>2
	.byte	(LBB0_36-LBB0_7)>>2
	.byte	(LBB0_36-LBB0_7)>>2
	.byte	(LBB0_36-LBB0_7)>>2
	.byte	(LBB0_36-LBB0_7)>>2
	.byte	(LBB0_36-LBB0_7)>>2
	.byte	(LBB0_36-LBB0_7)>>2
	.byte	(LBB0_36-LBB0_7)>>2
	.byte	(LBB0_36-LBB0_7)>>2
	.byte	(LBB0_36-LBB0_7)>>2
	.byte	(LBB0_36-LBB0_7)>>2
	.byte	(LBB0_36-LBB0_7)>>2
	.byte	(LBB0_36-LBB0_7)>>2
	.byte	(LBB0_36-LBB0_7)>>2
	.byte	(LBB0_36-LBB0_7)>>2
	.byte	(LBB0_36-LBB0_7)>>2
	.byte	(LBB0_36-LBB0_7)>>2
	.byte	(LBB0_36-LBB0_7)>>2
	.byte	(LBB0_36-LBB0_7)>>2
	.byte	(LBB0_36-LBB0_7)>>2
	.byte	(LBB0_36-LBB0_7)>>2
	.byte	(LBB0_36-LBB0_7)>>2
	.byte	(LBB0_36-LBB0_7)>>2
	.byte	(LBB0_36-LBB0_7)>>2
	.byte	(LBB0_36-LBB0_7)>>2
	.byte	(LBB0_36-LBB0_7)>>2
	.byte	(LBB0_36-LBB0_7)>>2
	.byte	(LBB0_36-LBB0_7)>>2
	.byte	(LBB0_36-LBB0_7)>>2
	.byte	(LBB0_36-LBB0_7)>>2
	.byte	(LBB0_12-LBB0_7)>>2
	.byte	(LBB0_36-LBB0_7)>>2
	.byte	(LBB0_13-LBB0_7)>>2
	.byte	(LBB0_16-LBB0_7)>>2
	.byte	(LBB0_36-LBB0_7)>>2
	.byte	(LBB0_36-LBB0_7)>>2
	.byte	(LBB0_36-LBB0_7)>>2
	.byte	(LBB0_36-LBB0_7)>>2
	.byte	(LBB0_7-LBB0_7)>>2
	.byte	(LBB0_36-LBB0_7)>>2
	.byte	(LBB0_36-LBB0_7)>>2
	.byte	(LBB0_36-LBB0_7)>>2
	.byte	(LBB0_14-LBB0_7)>>2
	.byte	(LBB0_36-LBB0_7)>>2
	.byte	(LBB0_36-LBB0_7)>>2
	.byte	(LBB0_36-LBB0_7)>>2
	.byte	(LBB0_36-LBB0_7)>>2
	.byte	(LBB0_36-LBB0_7)>>2
	.byte	(LBB0_15-LBB0_7)>>2
                                        ; -- End function
	.comm	_homedir,8,3                    ; @homedir
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"HOME"

l_.str.1:                               ; @.str.1
	.asciz	"/httphome"

	.comm	_logfile,8,3                    ; @logfile
l_.str.2:                               ; @.str.2
	.asciz	"/"

l_.str.3:                               ; @.str.3
	.asciz	"jhttp.log"

l_.str.4:                               ; @.str.4
	.asciz	"/var/log/jhttpd.log"

l_.str.5:                               ; @.str.5
	.asciz	"d:f:g:l:p:vDh"

	.comm	_optarg,8,3                     ; @optarg
	.comm	_daemonize,8,3                  ; @daemonize
	.comm	_verbose,4,2                    ; @verbose
	.comm	_fetch_mode,8,3                 ; @fetch_mode
	.comm	_http_port,4,2                  ; @http_port
l_.str.7:                               ; @.str.7
	.asciz	"chdir"

	.comm	_W_OK,4,2                       ; @W_OK
	.comm	_O_WRONLY,4,2                   ; @O_WRONLY
l_.str.9:                               ; @.str.9
	.asciz	"port: %d\n"

l_.str.10:                              ; @.str.10
	.asciz	"html home: %s\n"

l_.str.11:                              ; @.str.11
	.asciz	"logfile: %s\n"

	.comm	_WNOHANG,4,2                    ; @WNOHANG
l_.str.12:                              ; @.str.12
	.asciz	"pid: %d\n"

	.comm	_http_sock,4,2                  ; @http_sock
	.comm	_con_sock,4,2                   ; @con_sock
l_str:                                  ; @str
	.asciz	"Server started with options "

l_str.13:                               ; @str.13
	.asciz	"usage: simple_httpd [[-d directory][-g grpid][-l logfile][-p port][-vD]]"

.subsections_via_symbols
