	.file	"108050.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
	.align 8
.LC0:
	.string	"This is ynetd version 0.1.2 (24 May 2017)."
	.text
	.globl	version
	.type	version, @function
version:
.LFB6:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	lea	rdi, .LC0[rip]
	call	puts@PLT
	mov	edi, 0
	call	exit@PLT
	.cfi_endproc
.LFE6:
	.size	version, .-version
	.section	.rodata
.LC1:
	.string	"\033[0m"
.LC2:
	.string	""
.LC3:
	.string	"\033[32m"
	.align 8
.LC4:
	.string	"    %synetd: a minimalistic inetd%s\n"
	.align 8
.LC5:
	.string	"    ---------------------------\n"
.LC6:
	.string	"\033[33m"
	.align 8
.LC7:
	.string	"    %sinvocation:%s ynetd [$opts] $cmd\n\n"
.LC8:
	.string	"    %sflags:%s\n"
	.align 8
.LC9:
	.string	"-h              this help text"
	.align 8
.LC10:
	.string	"-a $addr        IP address to bind to (default :: and 0.0.0.0)"
	.align 8
.LC11:
	.string	"-p $port        TCP port to bind to (default 1024)"
	.align 8
.LC12:
	.string	"-u $user        username (default current)"
	.align 8
.LC13:
	.string	"-d $dir         working directory (default user's home if -u else current)"
	.align 8
.LC14:
	.string	"-sh [yn]        invoke /bin/sh to execute $cmd? (default y)"
	.align 8
.LC15:
	.string	"-si [yn]        use socket as stdin? (default y)"
	.align 8
.LC16:
	.string	"-so [yn]        use socket as stdout? (default y)"
	.align 8
.LC17:
	.string	"-se [yn]        use socket as stderr? (default n)"
	.align 8
.LC18:
	.string	"-lt $lim        limit cpu time in seconds (default unchanged)"
	.align 8
.LC19:
	.string	"-lm $lim        limit amount of memory in bytes (default unchanged)"
	.align 8
.LC20:
	.string	"-lp $lim        limit number of processes (default unchanged)"
	.align 8
.LC21:
	.string	"-rn $val        set process priority (default unchanged)"
.LC22:
	.string	"$cmd            command"
	.align 8
.LC23:
	.string	"                NOTE: $cmd is executed relative to $dir!"
	.align 8
.LC24:
	.string	"                      if in doubt, use absolute paths only."
	.text
	.globl	help
	.type	help, @function
help:
.LFB7:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 32
	mov	DWORD PTR -20[rbp], edi
	mov	rax, QWORD PTR stdout[rip]
	mov	rdi, rax
	call	fileno@PLT
	mov	edi, eax
	call	isatty@PLT
	test	eax, eax
	setne	al
	mov	BYTE PTR -1[rbp], al
	mov	edi, 10
	call	putchar@PLT
	cmp	BYTE PTR -1[rbp], 0
	je	.L3
	lea	rdx, .LC1[rip]
	jmp	.L4
.L3:
	lea	rdx, .LC2[rip]
.L4:
	cmp	BYTE PTR -1[rbp], 0
	je	.L5
	lea	rax, .LC3[rip]
	jmp	.L6
.L5:
	lea	rax, .LC2[rip]
.L6:
	mov	rsi, rax
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rdi, .LC5[rip]
	call	puts@PLT
	cmp	BYTE PTR -1[rbp], 0
	je	.L7
	lea	rdx, .LC1[rip]
	jmp	.L8
.L7:
	lea	rdx, .LC2[rip]
.L8:
	cmp	BYTE PTR -1[rbp], 0
	je	.L9
	lea	rax, .LC6[rip]
	jmp	.L10
.L9:
	lea	rax, .LC2[rip]
.L10:
	mov	rsi, rax
	lea	rdi, .LC7[rip]
	mov	eax, 0
	call	printf@PLT
	cmp	BYTE PTR -1[rbp], 0
	je	.L11
	lea	rdx, .LC1[rip]
	jmp	.L12
.L11:
	lea	rdx, .LC2[rip]
.L12:
	cmp	BYTE PTR -1[rbp], 0
	je	.L13
	lea	rax, .LC6[rip]
	jmp	.L14
.L13:
	lea	rax, .LC2[rip]
.L14:
	mov	rsi, rax
	lea	rdi, .LC8[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rdi, .LC9[rip]
	call	puts@PLT
	lea	rdi, .LC10[rip]
	call	puts@PLT
	lea	rdi, .LC11[rip]
	call	puts@PLT
	lea	rdi, .LC12[rip]
	call	puts@PLT
	lea	rdi, .LC13[rip]
	call	puts@PLT
	lea	rdi, .LC14[rip]
	call	puts@PLT
	lea	rdi, .LC15[rip]
	call	puts@PLT
	lea	rdi, .LC16[rip]
	call	puts@PLT
	lea	rdi, .LC17[rip]
	call	puts@PLT
	lea	rdi, .LC18[rip]
	call	puts@PLT
	lea	rdi, .LC19[rip]
	call	puts@PLT
	lea	rdi, .LC20[rip]
	call	puts@PLT
	lea	rdi, .LC21[rip]
	call	puts@PLT
	lea	rdi, .LC22[rip]
	call	puts@PLT
	lea	rdi, .LC23[rip]
	call	puts@PLT
	lea	rdi, .LC24[rip]
	call	puts@PLT
	mov	edi, 10
	call	putchar@PLT
	mov	eax, DWORD PTR -20[rbp]
	mov	edi, eax
	call	exit@PLT
	.cfi_endproc
.LFE7:
	.size	help, .-help
	.section	.rodata
.LC25:
	.string	"-h"
.LC26:
	.string	"--help"
.LC27:
	.string	"-v"
.LC28:
	.string	"--version"
.LC29:
	.string	"-sh"
.LC30:
	.string	"--shell"
.LC31:
	.string	"-si"
.LC32:
	.string	"--stdin"
.LC33:
	.string	"-so"
.LC34:
	.string	"--stdout"
.LC35:
	.string	"-se"
.LC36:
	.string	"--stderr"
.LC37:
	.string	"-a"
.LC38:
	.string	"--addr"
.LC39:
	.string	"inet_pton"
.LC40:
	.string	"-p"
.LC41:
	.string	"--port"
.LC42:
	.string	"-u"
.LC43:
	.string	"--user"
.LC44:
	.string	"getpwnam_r"
.LC45:
	.string	"-d"
.LC46:
	.string	"--dir"
.LC47:
	.string	"-lt"
.LC48:
	.string	"--limit-time"
.LC49:
	.string	"-lm"
.LC50:
	.string	"--limit-memory"
.LC51:
	.string	"-lp"
.LC52:
	.string	"--limit-processes"
.LC53:
	.string	"-rn"
.LC54:
	.string	"--renice"
	.text
	.globl	parse_args
	.type	parse_args, @function
parse_args:
.LFB8:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 368
	mov	QWORD PTR -344[rbp], rdi
	mov	QWORD PTR -352[rbp], rsi
	mov	QWORD PTR -360[rbp], rdx
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	QWORD PTR -328[rbp], 1
	jmp	.L16
.L76:
	mov	rax, QWORD PTR -328[rbp]
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -352[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC25[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	je	.L17
	mov	rax, QWORD PTR -328[rbp]
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -352[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC26[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L18
.L17:
	mov	edi, 0
	call	help
.L18:
	mov	rax, QWORD PTR -328[rbp]
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -352[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC27[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	je	.L19
	mov	rax, QWORD PTR -328[rbp]
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -352[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC28[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L20
.L19:
	mov	eax, 0
	call	version
.L20:
	mov	rax, QWORD PTR -328[rbp]
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -352[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC29[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	je	.L21
	mov	rax, QWORD PTR -328[rbp]
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -352[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC30[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L22
.L21:
	add	QWORD PTR -328[rbp], 1
	mov	rax, QWORD PTR -328[rbp]
	cmp	rax, QWORD PTR -344[rbp]
	jb	.L23
	mov	edi, 1
	call	help
.L23:
	mov	rax, QWORD PTR -328[rbp]
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -352[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	add	rax, 1
	movzx	eax, BYTE PTR [rax]
	test	al, al
	jne	.L24
	mov	rax, QWORD PTR -328[rbp]
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -352[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	movzx	eax, BYTE PTR [rax]
	cmp	al, 121
	je	.L25
	mov	rax, QWORD PTR -328[rbp]
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -352[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	movzx	eax, BYTE PTR [rax]
	cmp	al, 110
	je	.L25
.L24:
	mov	edi, 1
	call	help
.L25:
	mov	rax, QWORD PTR -328[rbp]
	lea	rdx, 1[rax]
	mov	QWORD PTR -328[rbp], rdx
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -352[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	movzx	eax, BYTE PTR [rax]
	cmp	al, 121
	sete	dl
	mov	rax, QWORD PTR -360[rbp]
	mov	BYTE PTR 56[rax], dl
	jmp	.L16
.L22:
	mov	rax, QWORD PTR -328[rbp]
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -352[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC31[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	je	.L26
	mov	rax, QWORD PTR -328[rbp]
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -352[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC32[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L27
.L26:
	add	QWORD PTR -328[rbp], 1
	mov	rax, QWORD PTR -328[rbp]
	cmp	rax, QWORD PTR -344[rbp]
	jb	.L28
	mov	edi, 1
	call	help
.L28:
	mov	rax, QWORD PTR -328[rbp]
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -352[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	add	rax, 1
	movzx	eax, BYTE PTR [rax]
	test	al, al
	jne	.L29
	mov	rax, QWORD PTR -328[rbp]
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -352[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	movzx	eax, BYTE PTR [rax]
	cmp	al, 121
	je	.L30
	mov	rax, QWORD PTR -328[rbp]
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -352[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	movzx	eax, BYTE PTR [rax]
	cmp	al, 110
	je	.L30
.L29:
	mov	edi, 1
	call	help
.L30:
	mov	rax, QWORD PTR -328[rbp]
	lea	rdx, 1[rax]
	mov	QWORD PTR -328[rbp], rdx
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -352[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	movzx	eax, BYTE PTR [rax]
	cmp	al, 121
	sete	dl
	mov	rax, QWORD PTR -360[rbp]
	mov	BYTE PTR 57[rax], dl
	jmp	.L16
.L27:
	mov	rax, QWORD PTR -328[rbp]
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -352[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC33[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	je	.L31
	mov	rax, QWORD PTR -328[rbp]
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -352[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC34[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L32
.L31:
	add	QWORD PTR -328[rbp], 1
	mov	rax, QWORD PTR -328[rbp]
	cmp	rax, QWORD PTR -344[rbp]
	jb	.L33
	mov	edi, 1
	call	help
.L33:
	mov	rax, QWORD PTR -328[rbp]
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -352[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	add	rax, 1
	movzx	eax, BYTE PTR [rax]
	test	al, al
	jne	.L34
	mov	rax, QWORD PTR -328[rbp]
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -352[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	movzx	eax, BYTE PTR [rax]
	cmp	al, 121
	je	.L35
	mov	rax, QWORD PTR -328[rbp]
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -352[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	movzx	eax, BYTE PTR [rax]
	cmp	al, 110
	je	.L35
.L34:
	mov	edi, 1
	call	help
.L35:
	mov	rax, QWORD PTR -328[rbp]
	lea	rdx, 1[rax]
	mov	QWORD PTR -328[rbp], rdx
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -352[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	movzx	eax, BYTE PTR [rax]
	cmp	al, 121
	sete	dl
	mov	rax, QWORD PTR -360[rbp]
	mov	BYTE PTR 58[rax], dl
	jmp	.L16
.L32:
	mov	rax, QWORD PTR -328[rbp]
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -352[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC35[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	je	.L36
	mov	rax, QWORD PTR -328[rbp]
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -352[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC36[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L37
.L36:
	add	QWORD PTR -328[rbp], 1
	mov	rax, QWORD PTR -328[rbp]
	cmp	rax, QWORD PTR -344[rbp]
	jb	.L38
	mov	edi, 1
	call	help
.L38:
	mov	rax, QWORD PTR -328[rbp]
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -352[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	add	rax, 1
	movzx	eax, BYTE PTR [rax]
	test	al, al
	jne	.L39
	mov	rax, QWORD PTR -328[rbp]
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -352[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	movzx	eax, BYTE PTR [rax]
	cmp	al, 121
	je	.L40
	mov	rax, QWORD PTR -328[rbp]
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -352[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	movzx	eax, BYTE PTR [rax]
	cmp	al, 110
	je	.L40
.L39:
	mov	edi, 1
	call	help
.L40:
	mov	rax, QWORD PTR -328[rbp]
	lea	rdx, 1[rax]
	mov	QWORD PTR -328[rbp], rdx
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -352[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	movzx	eax, BYTE PTR [rax]
	cmp	al, 121
	sete	dl
	mov	rax, QWORD PTR -360[rbp]
	mov	BYTE PTR 59[rax], dl
	jmp	.L16
.L37:
	mov	rax, QWORD PTR -328[rbp]
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -352[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC37[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	je	.L41
	mov	rax, QWORD PTR -328[rbp]
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -352[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC38[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L42
.L41:
	add	QWORD PTR -328[rbp], 1
	mov	rax, QWORD PTR -328[rbp]
	cmp	rax, QWORD PTR -344[rbp]
	jb	.L43
	mov	edi, 1
	call	help
.L43:
	mov	rax, QWORD PTR -360[rbp]
	lea	rdx, 16[rax]
	mov	rax, QWORD PTR -328[rbp]
	lea	rcx, 0[0+rax*8]
	mov	rax, QWORD PTR -352[rbp]
	add	rax, rcx
	mov	rax, QWORD PTR [rax]
	mov	rsi, rax
	mov	edi, 10
	call	inet_pton@PLT
	cmp	eax, 1
	jne	.L44
	mov	rax, QWORD PTR -360[rbp]
	mov	DWORD PTR 12[rax], 10
	jmp	.L45
.L44:
	mov	rax, QWORD PTR -360[rbp]
	lea	rdx, 16[rax]
	mov	rax, QWORD PTR -328[rbp]
	lea	rcx, 0[0+rax*8]
	mov	rax, QWORD PTR -352[rbp]
	add	rax, rcx
	mov	rax, QWORD PTR [rax]
	mov	rsi, rax
	mov	edi, 2
	call	inet_pton@PLT
	cmp	eax, 1
	jne	.L46
	mov	rax, QWORD PTR -360[rbp]
	mov	DWORD PTR 12[rax], 2
	jmp	.L45
.L46:
	lea	rdi, .LC39[rip]
	call	perror@PLT
	mov	edi, -1
	call	exit@PLT
.L45:
	add	QWORD PTR -328[rbp], 1
	jmp	.L16
.L42:
	mov	rax, QWORD PTR -328[rbp]
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -352[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC40[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	je	.L47
	mov	rax, QWORD PTR -328[rbp]
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -352[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC41[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L48
.L47:
	add	QWORD PTR -328[rbp], 1
	mov	rax, QWORD PTR -328[rbp]
	cmp	rax, QWORD PTR -344[rbp]
	jb	.L49
	mov	edi, 1
	call	help
.L49:
	mov	rax, QWORD PTR -328[rbp]
	lea	rdx, 1[rax]
	mov	QWORD PTR -328[rbp], rdx
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -352[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	edx, 10
	mov	esi, 0
	mov	rdi, rax
	call	strtol@PLT
	mov	edx, eax
	mov	rax, QWORD PTR -360[rbp]
	mov	WORD PTR 32[rax], dx
	jmp	.L16
.L48:
	mov	rax, QWORD PTR -328[rbp]
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -352[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC42[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	je	.L50
	mov	rax, QWORD PTR -328[rbp]
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -352[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC43[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L51
.L50:
	add	QWORD PTR -328[rbp], 1
	mov	rax, QWORD PTR -328[rbp]
	cmp	rax, QWORD PTR -344[rbp]
	jb	.L52
	mov	edi, 1
	call	help
.L52:
	mov	rax, QWORD PTR -328[rbp]
	lea	rdx, 1[rax]
	mov	QWORD PTR -328[rbp], rdx
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -352[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	lea	rcx, -336[rbp]
	lea	rdx, -272[rbp]
	lea	rsi, -320[rbp]
	mov	r8, rcx
	mov	ecx, 256
	mov	rdi, rax
	call	getpwnam_r@PLT
	test	eax, eax
	jne	.L53
	mov	rax, QWORD PTR -336[rbp]
	test	rax, rax
	jne	.L54
.L53:
	lea	rdi, .LC44[rip]
	call	perror@PLT
	mov	edi, -1
	call	exit@PLT
.L54:
	mov	rax, QWORD PTR -336[rbp]
	mov	edx, DWORD PTR 16[rax]
	mov	rax, QWORD PTR -360[rbp]
	mov	DWORD PTR 4[rax], edx
	mov	rax, QWORD PTR -336[rbp]
	mov	edx, DWORD PTR 20[rax]
	mov	rax, QWORD PTR -360[rbp]
	mov	DWORD PTR 8[rax], edx
	mov	rax, QWORD PTR -360[rbp]
	mov	BYTE PTR [rax], 1
	mov	rax, QWORD PTR -360[rbp]
	mov	rax, QWORD PTR 48[rax]
	test	rax, rax
	jne	.L16
	mov	rax, QWORD PTR -336[rbp]
	mov	rax, QWORD PTR 32[rax]
	mov	rdi, rax
	call	strdup@PLT
	mov	rdx, rax
	mov	rax, QWORD PTR -360[rbp]
	mov	QWORD PTR 48[rax], rdx
	jmp	.L16
.L51:
	mov	rax, QWORD PTR -328[rbp]
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -352[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC45[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	je	.L56
	mov	rax, QWORD PTR -328[rbp]
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -352[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC46[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L57
.L56:
	add	QWORD PTR -328[rbp], 1
	mov	rax, QWORD PTR -328[rbp]
	cmp	rax, QWORD PTR -344[rbp]
	jb	.L58
	mov	edi, 1
	call	help
.L58:
	mov	rax, QWORD PTR -328[rbp]
	lea	rdx, 1[rax]
	mov	QWORD PTR -328[rbp], rdx
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -352[rbp]
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR -360[rbp]
	mov	QWORD PTR 48[rax], rdx
	jmp	.L16
.L57:
	mov	rax, QWORD PTR -328[rbp]
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -352[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC47[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	je	.L59
	mov	rax, QWORD PTR -328[rbp]
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -352[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC48[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L60
.L59:
	add	QWORD PTR -328[rbp], 1
	mov	rax, QWORD PTR -328[rbp]
	cmp	rax, QWORD PTR -344[rbp]
	jb	.L61
	mov	edi, 1
	call	help
.L61:
	mov	rax, QWORD PTR -328[rbp]
	lea	rdx, 1[rax]
	mov	QWORD PTR -328[rbp], rdx
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -352[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	edx, 10
	mov	esi, 0
	mov	rdi, rax
	call	strtol@PLT
	mov	rdx, rax
	mov	rax, QWORD PTR -360[rbp]
	mov	QWORD PTR 72[rax], rdx
	mov	rax, QWORD PTR -360[rbp]
	add	rax, 64
	test	rax, rax
	je	.L16
	mov	rax, QWORD PTR -360[rbp]
	mov	BYTE PTR 64[rax], 1
	jmp	.L16
.L60:
	mov	rax, QWORD PTR -328[rbp]
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -352[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC49[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	je	.L63
	mov	rax, QWORD PTR -328[rbp]
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -352[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC50[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L64
.L63:
	add	QWORD PTR -328[rbp], 1
	mov	rax, QWORD PTR -328[rbp]
	cmp	rax, QWORD PTR -344[rbp]
	jb	.L65
	mov	edi, 1
	call	help
.L65:
	mov	rax, QWORD PTR -328[rbp]
	lea	rdx, 1[rax]
	mov	QWORD PTR -328[rbp], rdx
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -352[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	edx, 10
	mov	esi, 0
	mov	rdi, rax
	call	strtol@PLT
	mov	rdx, rax
	mov	rax, QWORD PTR -360[rbp]
	mov	QWORD PTR 88[rax], rdx
	mov	rax, QWORD PTR -360[rbp]
	add	rax, 80
	test	rax, rax
	je	.L16
	mov	rax, QWORD PTR -360[rbp]
	mov	BYTE PTR 80[rax], 1
	jmp	.L16
.L64:
	mov	rax, QWORD PTR -328[rbp]
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -352[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC51[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	je	.L67
	mov	rax, QWORD PTR -328[rbp]
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -352[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC52[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L68
.L67:
	add	QWORD PTR -328[rbp], 1
	mov	rax, QWORD PTR -328[rbp]
	cmp	rax, QWORD PTR -344[rbp]
	jb	.L69
	mov	edi, 1
	call	help
.L69:
	mov	rax, QWORD PTR -328[rbp]
	lea	rdx, 1[rax]
	mov	QWORD PTR -328[rbp], rdx
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -352[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	edx, 10
	mov	esi, 0
	mov	rdi, rax
	call	strtol@PLT
	mov	rdx, rax
	mov	rax, QWORD PTR -360[rbp]
	mov	QWORD PTR 104[rax], rdx
	mov	rax, QWORD PTR -360[rbp]
	add	rax, 96
	test	rax, rax
	je	.L16
	mov	rax, QWORD PTR -360[rbp]
	mov	BYTE PTR 96[rax], 1
	jmp	.L16
.L68:
	mov	rax, QWORD PTR -328[rbp]
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -352[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC53[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	je	.L71
	mov	rax, QWORD PTR -328[rbp]
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -352[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC54[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L72
.L71:
	add	QWORD PTR -328[rbp], 1
	mov	rax, QWORD PTR -328[rbp]
	cmp	rax, QWORD PTR -344[rbp]
	jb	.L73
	mov	edi, 1
	call	help
.L73:
	mov	rax, QWORD PTR -328[rbp]
	lea	rdx, 1[rax]
	mov	QWORD PTR -328[rbp], rdx
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -352[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	edx, 10
	mov	esi, 0
	mov	rdi, rax
	call	strtol@PLT
	mov	edx, eax
	mov	rax, QWORD PTR -360[rbp]
	mov	DWORD PTR 116[rax], edx
	mov	rax, QWORD PTR -360[rbp]
	add	rax, 112
	test	rax, rax
	je	.L16
	mov	rax, QWORD PTR -360[rbp]
	mov	BYTE PTR 112[rax], 1
	jmp	.L16
.L72:
	mov	rax, QWORD PTR -360[rbp]
	mov	rax, QWORD PTR 40[rax]
	test	rax, rax
	jne	.L75
	mov	rax, QWORD PTR -328[rbp]
	lea	rdx, 1[rax]
	mov	QWORD PTR -328[rbp], rdx
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -352[rbp]
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR -360[rbp]
	mov	QWORD PTR 40[rax], rdx
	jmp	.L16
.L75:
	mov	edi, 1
	call	help
.L16:
	mov	rax, QWORD PTR -328[rbp]
	cmp	rax, QWORD PTR -344[rbp]
	jb	.L76
	mov	rax, QWORD PTR -360[rbp]
	mov	rax, QWORD PTR 40[rax]
	test	rax, rax
	jne	.L79
	mov	edi, 1
	call	help
.L79:
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L78
	call	__stack_chk_fail@PLT
.L78:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	parse_args, .-parse_args
	.section	.rodata
.LC55:
	.string	"socket"
.LC56:
	.string	"setsockopt"
.LC57:
	.string	"bad address family?!\n"
.LC58:
	.string	"bind"
.LC59:
	.string	"listen"
	.text
	.globl	bind_listen
	.type	bind_listen, @function
bind_listen:
.LFB9:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 64
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -60[rbp], 1
	mov	eax, DWORD PTR 28[rbp]
	mov	edx, 0
	mov	esi, 1
	mov	edi, eax
	call	socket@PLT
	mov	DWORD PTR -52[rbp], eax
	cmp	DWORD PTR -52[rbp], 0
	jns	.L81
	lea	rdi, .LC55[rip]
	call	perror@PLT
	mov	edi, -1
	call	exit@PLT
.L81:
	lea	rdx, -60[rbp]
	mov	eax, DWORD PTR -52[rbp]
	mov	r8d, 4
	mov	rcx, rdx
	mov	edx, 2
	mov	esi, 1
	mov	edi, eax
	call	setsockopt@PLT
	test	eax, eax
	je	.L82
	lea	rdi, .LC56[rip]
	call	perror@PLT
	mov	edi, -1
	call	exit@PLT
.L82:
	mov	eax, DWORD PTR 28[rbp]
	cmp	eax, 2
	je	.L83
	cmp	eax, 10
	jne	.L84
	mov	eax, DWORD PTR 28[rbp]
	mov	WORD PTR -48[rbp], ax
	mov	rax, QWORD PTR 32[rbp]
	mov	rdx, QWORD PTR 40[rbp]
	mov	QWORD PTR -40[rbp], rax
	mov	QWORD PTR -32[rbp], rdx
	movzx	eax, WORD PTR 48[rbp]
	movzx	eax, ax
	mov	edi, eax
	call	htons@PLT
	mov	WORD PTR -46[rbp], ax
	mov	DWORD PTR -56[rbp], 28
	jmp	.L85
.L83:
	mov	eax, DWORD PTR 28[rbp]
	mov	WORD PTR -48[rbp], ax
	mov	eax, DWORD PTR 32[rbp]
	mov	DWORD PTR -44[rbp], eax
	movzx	eax, WORD PTR 48[rbp]
	movzx	eax, ax
	mov	edi, eax
	call	htons@PLT
	mov	WORD PTR -46[rbp], ax
	mov	DWORD PTR -56[rbp], 16
	jmp	.L85
.L84:
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 21
	mov	esi, 1
	lea	rdi, .LC57[rip]
	call	fwrite@PLT
	mov	edi, -1
	call	exit@PLT
.L85:
	lea	rax, -48[rbp]
	mov	rcx, rax
	mov	edx, DWORD PTR -56[rbp]
	mov	eax, DWORD PTR -52[rbp]
	mov	rsi, rcx
	mov	edi, eax
	call	bind@PLT
	test	eax, eax
	je	.L86
	lea	rdi, .LC58[rip]
	call	perror@PLT
	mov	edi, -1
	call	exit@PLT
.L86:
	mov	eax, DWORD PTR -52[rbp]
	mov	esi, 16
	mov	edi, eax
	call	listen@PLT
	test	eax, eax
	je	.L87
	lea	rdi, .LC59[rip]
	call	perror@PLT
	mov	edi, -1
	call	exit@PLT
.L87:
	mov	eax, DWORD PTR -52[rbp]
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L89
	call	__stack_chk_fail@PLT
.L89:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	bind_listen, .-bind_listen
	.section	.rodata
.LC60:
	.string	"setrlimit"
.LC61:
	.string	"setpriority"
.LC62:
	.string	"setgroups"
.LC63:
	.string	"setgid"
.LC64:
	.string	"setuid"
.LC65:
	.string	"chdir"
.LC66:
	.string	"dup2"
.LC67:
	.string	"close"
.LC68:
	.string	"-c"
.LC69:
	.string	"sh"
.LC70:
	.string	"/bin/sh"
.LC71:
	.string	"execle"
	.text
	.globl	handle_connection
	.type	handle_connection, @function
handle_connection:
.LFB10:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	rbx
	sub	rsp, 56
	.cfi_offset 3, -24
	mov	DWORD PTR -52[rbp], edi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -24[rbp], rax
	xor	eax, eax
	movzx	eax, BYTE PTR 80[rbp]
	test	al, al
	je	.L91
	mov	rax, QWORD PTR 88[rbp]
	mov	QWORD PTR -40[rbp], rax
	mov	rax, QWORD PTR -40[rbp]
	mov	QWORD PTR -48[rbp], rax
	lea	rax, -48[rbp]
	mov	rsi, rax
	mov	edi, 0
	call	setrlimit@PLT
	test	eax, eax
	jns	.L91
	lea	rdi, .LC60[rip]
	call	perror@PLT
	mov	edi, -1
	call	exit@PLT
.L91:
	movzx	eax, BYTE PTR 96[rbp]
	test	al, al
	je	.L92
	mov	rax, QWORD PTR 104[rbp]
	mov	QWORD PTR -40[rbp], rax
	mov	rax, QWORD PTR -40[rbp]
	mov	QWORD PTR -48[rbp], rax
	lea	rax, -48[rbp]
	mov	rsi, rax
	mov	edi, 9
	call	setrlimit@PLT
	test	eax, eax
	jns	.L92
	lea	rdi, .LC60[rip]
	call	perror@PLT
	mov	edi, -1
	call	exit@PLT
.L92:
	movzx	eax, BYTE PTR 112[rbp]
	test	al, al
	je	.L93
	mov	rax, QWORD PTR 120[rbp]
	mov	QWORD PTR -40[rbp], rax
	mov	rax, QWORD PTR -40[rbp]
	mov	QWORD PTR -48[rbp], rax
	lea	rax, -48[rbp]
	mov	rsi, rax
	mov	edi, 6
	call	setrlimit@PLT
	test	eax, eax
	jns	.L93
	lea	rdi, .LC60[rip]
	call	perror@PLT
	mov	edi, -1
	call	exit@PLT
.L93:
	movzx	eax, BYTE PTR 128[rbp]
	test	al, al
	je	.L94
	mov	eax, DWORD PTR 132[rbp]
	mov	edx, eax
	mov	esi, 0
	mov	edi, 0
	call	setpriority@PLT
	test	eax, eax
	je	.L94
	lea	rdi, .LC61[rip]
	call	perror@PLT
	mov	edi, -1
	call	exit@PLT
.L94:
	movzx	eax, BYTE PTR 16[rbp]
	test	al, al
	je	.L95
	mov	esi, 0
	mov	edi, 0
	call	setgroups@PLT
	test	eax, eax
	je	.L96
	lea	rdi, .LC62[rip]
	call	perror@PLT
	mov	edi, -1
	call	exit@PLT
.L96:
	mov	eax, DWORD PTR 24[rbp]
	mov	edi, eax
	call	setgid@PLT
	test	eax, eax
	je	.L97
	lea	rdi, .LC63[rip]
	call	perror@PLT
	mov	edi, -1
	call	exit@PLT
.L97:
	mov	eax, DWORD PTR 20[rbp]
	mov	edi, eax
	call	setuid@PLT
	test	eax, eax
	je	.L95
	lea	rdi, .LC64[rip]
	call	perror@PLT
	mov	edi, -1
	call	exit@PLT
.L95:
	mov	rax, QWORD PTR 64[rbp]
	test	rax, rax
	je	.L98
	mov	rax, QWORD PTR 64[rbp]
	mov	rdi, rax
	call	chdir@PLT
	test	eax, eax
	je	.L98
	lea	rdi, .LC65[rip]
	call	perror@PLT
	mov	edi, -1
	call	exit@PLT
.L98:
	movzx	eax, BYTE PTR 73[rbp]
	test	al, al
	je	.L99
	mov	rax, QWORD PTR stdin[rip]
	mov	rdi, rax
	call	fileno@PLT
	mov	ebx, eax
	mov	rax, QWORD PTR stdin[rip]
	mov	rdi, rax
	call	fileno@PLT
	mov	edx, eax
	mov	eax, DWORD PTR -52[rbp]
	mov	esi, edx
	mov	edi, eax
	call	dup2@PLT
	cmp	ebx, eax
	je	.L99
	lea	rdi, .LC66[rip]
	call	perror@PLT
	mov	edi, -1
	call	exit@PLT
.L99:
	movzx	eax, BYTE PTR 74[rbp]
	test	al, al
	je	.L100
	mov	rax, QWORD PTR stdout[rip]
	mov	rdi, rax
	call	fileno@PLT
	mov	ebx, eax
	mov	rax, QWORD PTR stdout[rip]
	mov	rdi, rax
	call	fileno@PLT
	mov	edx, eax
	mov	eax, DWORD PTR -52[rbp]
	mov	esi, edx
	mov	edi, eax
	call	dup2@PLT
	cmp	ebx, eax
	je	.L100
	lea	rdi, .LC66[rip]
	call	perror@PLT
	mov	edi, -1
	call	exit@PLT
.L100:
	movzx	eax, BYTE PTR 75[rbp]
	test	al, al
	je	.L101
	mov	rax, QWORD PTR stderr[rip]
	mov	rdi, rax
	call	fileno@PLT
	mov	ebx, eax
	mov	rax, QWORD PTR stderr[rip]
	mov	rdi, rax
	call	fileno@PLT
	mov	edx, eax
	mov	eax, DWORD PTR -52[rbp]
	mov	esi, edx
	mov	edi, eax
	call	dup2@PLT
	cmp	ebx, eax
	je	.L101
	lea	rdi, .LC66[rip]
	call	perror@PLT
	mov	edi, -1
	call	exit@PLT
.L101:
	mov	eax, DWORD PTR -52[rbp]
	mov	edi, eax
	call	close@PLT
	test	eax, eax
	je	.L102
	lea	rdi, .LC67[rip]
	call	perror@PLT
	mov	edi, -1
	call	exit@PLT
.L102:
	movzx	eax, BYTE PTR 72[rbp]
	test	al, al
	je	.L103
	mov	rax, QWORD PTR 56[rbp]
	mov	r9d, 0
	mov	r8d, 0
	mov	rcx, rax
	lea	rdx, .LC68[rip]
	lea	rsi, .LC69[rip]
	lea	rdi, .LC70[rip]
	mov	eax, 0
	call	execle@PLT
	lea	rdi, .LC71[rip]
	call	perror@PLT
	mov	edi, -1
	call	exit@PLT
.L103:
	mov	rsi, QWORD PTR 56[rbp]
	mov	rax, QWORD PTR 56[rbp]
	mov	ecx, 0
	mov	edx, 0
	mov	rdi, rax
	mov	eax, 0
	call	execle@PLT
	lea	rdi, .LC71[rip]
	call	perror@PLT
	mov	edi, -1
	call	exit@PLT
	.cfi_endproc
.LFE10:
	.size	handle_connection, .-handle_connection
	.section	.rodata
.LC72:
	.string	"sigaction"
.LC73:
	.string	"setsid"
	.text
	.globl	main
	.type	main, @function
main:
.LFB11:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 320
	mov	DWORD PTR -308[rbp], edi
	mov	QWORD PTR -320[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rdx, -288[rbp]
	mov	eax, 0
	mov	ecx, 15
	mov	rdi, rdx
	rep stosq
	mov	DWORD PTR -276[rbp], 10
	mov	rax, QWORD PTR in6addr_any[rip]
	mov	rdx, QWORD PTR in6addr_any[rip+8]
	mov	QWORD PTR -272[rbp], rax
	mov	QWORD PTR -264[rbp], rdx
	mov	WORD PTR -256[rbp], 1024
	mov	BYTE PTR -232[rbp], 1
	mov	BYTE PTR -231[rbp], 1
	mov	BYTE PTR -230[rbp], 1
	mov	eax, DWORD PTR -308[rbp]
	cdqe
	lea	rdx, -288[rbp]
	mov	rcx, QWORD PTR -320[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	parse_args
	lea	rax, -160[rbp]
	mov	edx, 152
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	mov	DWORD PTR -24[rbp], 3
	lea	rax, -160[rbp]
	mov	edx, 0
	mov	rsi, rax
	mov	edi, 17
	call	sigaction@PLT
	test	eax, eax
	je	.L106
	lea	rdi, .LC72[rip]
	call	perror@PLT
	mov	edi, -1
	call	exit@PLT
.L106:
	sub	rsp, 8
	push	QWORD PTR -176[rbp]
	push	QWORD PTR -184[rbp]
	push	QWORD PTR -192[rbp]
	push	QWORD PTR -200[rbp]
	push	QWORD PTR -208[rbp]
	push	QWORD PTR -216[rbp]
	push	QWORD PTR -224[rbp]
	push	QWORD PTR -232[rbp]
	push	QWORD PTR -240[rbp]
	push	QWORD PTR -248[rbp]
	push	QWORD PTR -256[rbp]
	push	QWORD PTR -264[rbp]
	push	QWORD PTR -272[rbp]
	push	QWORD PTR -280[rbp]
	push	QWORD PTR -288[rbp]
	call	bind_listen
	sub	rsp, -128
	mov	DWORD PTR -300[rbp], eax
.L113:
	mov	ecx, 0
	mov	eax, DWORD PTR -300[rbp]
	mov	edx, 0
	mov	rsi, rcx
	mov	edi, eax
	call	accept@PLT
	mov	DWORD PTR -296[rbp], eax
	cmp	DWORD PTR -296[rbp], 0
	js	.L115
	call	fork@PLT
	mov	DWORD PTR -292[rbp], eax
	cmp	DWORD PTR -292[rbp], 0
	je	.L109
	mov	eax, DWORD PTR -296[rbp]
	mov	edi, eax
	call	close@PLT
	test	eax, eax
	je	.L116
	lea	rdi, .LC67[rip]
	call	perror@PLT
	mov	edi, -1
	call	exit@PLT
.L109:
	mov	eax, DWORD PTR -300[rbp]
	mov	edi, eax
	call	close@PLT
	test	eax, eax
	je	.L111
	lea	rdi, .LC67[rip]
	call	perror@PLT
	mov	edi, -1
	call	exit@PLT
.L111:
	call	setsid@PLT
	test	eax, eax
	jns	.L112
	lea	rdi, .LC73[rip]
	call	perror@PLT
	mov	edi, -1
	call	exit@PLT
.L112:
	mov	eax, DWORD PTR -296[rbp]
	sub	rsp, 8
	push	QWORD PTR -176[rbp]
	push	QWORD PTR -184[rbp]
	push	QWORD PTR -192[rbp]
	push	QWORD PTR -200[rbp]
	push	QWORD PTR -208[rbp]
	push	QWORD PTR -216[rbp]
	push	QWORD PTR -224[rbp]
	push	QWORD PTR -232[rbp]
	push	QWORD PTR -240[rbp]
	push	QWORD PTR -248[rbp]
	push	QWORD PTR -256[rbp]
	push	QWORD PTR -264[rbp]
	push	QWORD PTR -272[rbp]
	push	QWORD PTR -280[rbp]
	push	QWORD PTR -288[rbp]
	mov	edi, eax
	call	handle_connection
	sub	rsp, -128
	jmp	.L113
.L115:
	nop
	jmp	.L113
.L116:
	nop
	jmp	.L113
	.cfi_endproc
.LFE11:
	.size	main, .-main
	.ident	"GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 6
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"108050.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"This is ynetd version 0.1.2 (24 May 2017).\000"
	.text
	.align	2
	.global	version
	.syntax unified
	.arm
	.fpu softvfp
	.type	version, %function
version:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	ldr	r0, .L2
	bl	puts
	mov	r0, #0
	bl	exit
.L3:
	.align	2
.L2:
	.word	.LC0
	.size	version, .-version
	.section	.rodata
	.align	2
.LC1:
	.ascii	"\033[32m\000"
	.align	2
.LC2:
	.ascii	"\000"
	.align	2
.LC3:
	.ascii	"\033[0m\000"
	.align	2
.LC4:
	.ascii	"    %synetd: a minimalistic inetd%s\012\000"
	.align	2
.LC5:
	.ascii	"    ---------------------------\012\000"
	.align	2
.LC6:
	.ascii	"\033[33m\000"
	.align	2
.LC7:
	.ascii	"    %sinvocation:%s ynetd [$opts] $cmd\012\012\000"
	.align	2
.LC8:
	.ascii	"    %sflags:%s\012\000"
	.align	2
.LC9:
	.ascii	"-h              this help text\000"
	.align	2
.LC10:
	.ascii	"-a $addr        IP address to bind to (default :: a"
	.ascii	"nd 0.0.0.0)\000"
	.align	2
.LC11:
	.ascii	"-p $port        TCP port to bind to (default 1024)\000"
	.align	2
.LC12:
	.ascii	"-u $user        username (default current)\000"
	.align	2
.LC13:
	.ascii	"-d $dir         working directory (default user's h"
	.ascii	"ome if -u else current)\000"
	.align	2
.LC14:
	.ascii	"-sh [yn]        invoke /bin/sh to execute $cmd? (de"
	.ascii	"fault y)\000"
	.align	2
.LC15:
	.ascii	"-si [yn]        use socket as stdin? (default y)\000"
	.align	2
.LC16:
	.ascii	"-so [yn]        use socket as stdout? (default y)\000"
	.align	2
.LC17:
	.ascii	"-se [yn]        use socket as stderr? (default n)\000"
	.align	2
.LC18:
	.ascii	"-lt $lim        limit cpu time in seconds (default "
	.ascii	"unchanged)\000"
	.align	2
.LC19:
	.ascii	"-lm $lim        limit amount of memory in bytes (de"
	.ascii	"fault unchanged)\000"
	.align	2
.LC20:
	.ascii	"-lp $lim        limit number of processes (default "
	.ascii	"unchanged)\000"
	.align	2
.LC21:
	.ascii	"-rn $val        set process priority (default uncha"
	.ascii	"nged)\000"
	.align	2
.LC22:
	.ascii	"$cmd            command\000"
	.align	2
.LC23:
	.ascii	"                NOTE: $cmd is executed relative to "
	.ascii	"$dir!\000"
	.align	2
.LC24:
	.ascii	"                      if in doubt, use absolute pat"
	.ascii	"hs only.\000"
	.text
	.align	2
	.global	help
	.syntax unified
	.arm
	.fpu softvfp
	.type	help, %function
help:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	str	r0, [fp, #-16]
	ldr	r3, .L17
	ldr	r3, [r3]
	mov	r0, r3
	bl	fileno
	mov	r3, r0
	mov	r0, r3
	bl	isatty
	mov	r3, r0
	cmp	r3, #0
	movne	r3, #1
	moveq	r3, #0
	strb	r3, [fp, #-5]
	mov	r0, #10
	bl	putchar
	ldrb	r3, [fp, #-5]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L5
	ldr	r1, .L17+4
	b	.L6
.L5:
	ldr	r1, .L17+8
.L6:
	ldrb	r3, [fp, #-5]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L7
	ldr	r3, .L17+12
	b	.L8
.L7:
	ldr	r3, .L17+8
.L8:
	mov	r2, r3
	ldr	r0, .L17+16
	bl	printf
	ldr	r0, .L17+20
	bl	puts
	ldrb	r3, [fp, #-5]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L9
	ldr	r1, .L17+24
	b	.L10
.L9:
	ldr	r1, .L17+8
.L10:
	ldrb	r3, [fp, #-5]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L11
	ldr	r3, .L17+12
	b	.L12
.L11:
	ldr	r3, .L17+8
.L12:
	mov	r2, r3
	ldr	r0, .L17+28
	bl	printf
	ldrb	r3, [fp, #-5]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L13
	ldr	r1, .L17+24
	b	.L14
.L13:
	ldr	r1, .L17+8
.L14:
	ldrb	r3, [fp, #-5]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L15
	ldr	r3, .L17+12
	b	.L16
.L15:
	ldr	r3, .L17+8
.L16:
	mov	r2, r3
	ldr	r0, .L17+32
	bl	printf
	ldr	r0, .L17+36
	bl	puts
	ldr	r0, .L17+40
	bl	puts
	ldr	r0, .L17+44
	bl	puts
	ldr	r0, .L17+48
	bl	puts
	ldr	r0, .L17+52
	bl	puts
	ldr	r0, .L17+56
	bl	puts
	ldr	r0, .L17+60
	bl	puts
	ldr	r0, .L17+64
	bl	puts
	ldr	r0, .L17+68
	bl	puts
	ldr	r0, .L17+72
	bl	puts
	ldr	r0, .L17+76
	bl	puts
	ldr	r0, .L17+80
	bl	puts
	ldr	r0, .L17+84
	bl	puts
	ldr	r0, .L17+88
	bl	puts
	ldr	r0, .L17+92
	bl	puts
	ldr	r0, .L17+96
	bl	puts
	mov	r0, #10
	bl	putchar
	ldr	r0, [fp, #-16]
	bl	exit
.L18:
	.align	2
.L17:
	.word	stdout
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.word	.LC9
	.word	.LC10
	.word	.LC11
	.word	.LC12
	.word	.LC13
	.word	.LC14
	.word	.LC15
	.word	.LC16
	.word	.LC17
	.word	.LC18
	.word	.LC19
	.word	.LC20
	.word	.LC21
	.word	.LC22
	.word	.LC23
	.word	.LC24
	.size	help, .-help
	.section	.rodata
	.align	2
.LC25:
	.ascii	"-h\000"
	.align	2
.LC26:
	.ascii	"--help\000"
	.align	2
.LC27:
	.ascii	"-v\000"
	.align	2
.LC28:
	.ascii	"--version\000"
	.align	2
.LC29:
	.ascii	"-sh\000"
	.align	2
.LC30:
	.ascii	"--shell\000"
	.align	2
.LC31:
	.ascii	"-si\000"
	.align	2
.LC32:
	.ascii	"--stdin\000"
	.align	2
.LC33:
	.ascii	"-so\000"
	.align	2
.LC34:
	.ascii	"--stdout\000"
	.align	2
.LC35:
	.ascii	"-se\000"
	.align	2
.LC36:
	.ascii	"--stderr\000"
	.align	2
.LC37:
	.ascii	"-a\000"
	.align	2
.LC38:
	.ascii	"--addr\000"
	.align	2
.LC39:
	.ascii	"inet_pton\000"
	.align	2
.LC40:
	.ascii	"-p\000"
	.align	2
.LC41:
	.ascii	"--port\000"
	.align	2
.LC42:
	.ascii	"-u\000"
	.align	2
.LC43:
	.ascii	"--user\000"
	.align	2
.LC44:
	.ascii	"getpwnam_r\000"
	.align	2
.LC45:
	.ascii	"-d\000"
	.align	2
.LC46:
	.ascii	"--dir\000"
	.align	2
.LC47:
	.ascii	"-lt\000"
	.align	2
.LC48:
	.ascii	"--limit-time\000"
	.align	2
.LC49:
	.ascii	"-lm\000"
	.align	2
.LC50:
	.ascii	"--limit-memory\000"
	.align	2
.LC51:
	.ascii	"-lp\000"
	.align	2
.LC52:
	.ascii	"--limit-processes\000"
	.align	2
.LC53:
	.ascii	"-rn\000"
	.align	2
.LC54:
	.ascii	"--renice\000"
	.align	2
.LC55:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	parse_args
	.syntax unified
	.arm
	.fpu softvfp
	.type	parse_args, %function
parse_args:
	@ args = 0, pretend = 0, frame = 312
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #320
	str	r0, [fp, #-304]
	str	r1, [fp, #-308]
	str	r2, [fp, #-312]
	ldr	r3, .L84
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #1
	str	r3, [fp, #-296]
	b	.L20
.L80:
	ldr	r3, [fp, #-296]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-308]
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r1, .L84+4
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	beq	.L21
	ldr	r3, [fp, #-296]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-308]
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r1, .L84+8
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L22
.L21:
	mov	r0, #0
	bl	help
.L22:
	ldr	r3, [fp, #-296]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-308]
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r1, .L84+12
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	beq	.L23
	ldr	r3, [fp, #-296]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-308]
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r1, .L84+16
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L24
.L23:
	bl	version
.L24:
	ldr	r3, [fp, #-296]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-308]
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r1, .L84+20
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	beq	.L25
	ldr	r3, [fp, #-296]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-308]
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r1, .L84+24
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L26
.L25:
	ldr	r3, [fp, #-296]
	add	r3, r3, #1
	str	r3, [fp, #-296]
	ldr	r2, [fp, #-296]
	ldr	r3, [fp, #-304]
	cmp	r2, r3
	bcc	.L27
	mov	r0, #1
	bl	help
.L27:
	ldr	r3, [fp, #-296]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-308]
	add	r3, r2, r3
	ldr	r3, [r3]
	add	r3, r3, #1
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L28
	ldr	r3, [fp, #-296]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-308]
	add	r3, r2, r3
	ldr	r3, [r3]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #121
	beq	.L29
	ldr	r3, [fp, #-296]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-308]
	add	r3, r2, r3
	ldr	r3, [r3]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #110
	beq	.L29
.L28:
	mov	r0, #1
	bl	help
.L29:
	ldr	r3, [fp, #-296]
	add	r2, r3, #1
	str	r2, [fp, #-296]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-308]
	add	r3, r2, r3
	ldr	r3, [r3]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #121
	moveq	r3, #1
	movne	r3, #0
	and	r2, r3, #255
	ldr	r3, [fp, #-312]
	strb	r2, [r3, #44]
	b	.L20
.L26:
	ldr	r3, [fp, #-296]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-308]
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r1, .L84+28
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	beq	.L30
	ldr	r3, [fp, #-296]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-308]
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r1, .L84+32
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L31
.L30:
	ldr	r3, [fp, #-296]
	add	r3, r3, #1
	str	r3, [fp, #-296]
	ldr	r2, [fp, #-296]
	ldr	r3, [fp, #-304]
	cmp	r2, r3
	bcc	.L32
	mov	r0, #1
	bl	help
.L32:
	ldr	r3, [fp, #-296]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-308]
	add	r3, r2, r3
	ldr	r3, [r3]
	add	r3, r3, #1
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L33
	ldr	r3, [fp, #-296]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-308]
	add	r3, r2, r3
	ldr	r3, [r3]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #121
	beq	.L34
	ldr	r3, [fp, #-296]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-308]
	add	r3, r2, r3
	ldr	r3, [r3]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #110
	beq	.L34
.L33:
	mov	r0, #1
	bl	help
.L34:
	ldr	r3, [fp, #-296]
	add	r2, r3, #1
	str	r2, [fp, #-296]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-308]
	add	r3, r2, r3
	ldr	r3, [r3]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #121
	moveq	r3, #1
	movne	r3, #0
	and	r2, r3, #255
	ldr	r3, [fp, #-312]
	strb	r2, [r3, #45]
	b	.L20
.L31:
	ldr	r3, [fp, #-296]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-308]
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r1, .L84+36
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	beq	.L35
	ldr	r3, [fp, #-296]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-308]
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r1, .L84+40
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L36
.L35:
	ldr	r3, [fp, #-296]
	add	r3, r3, #1
	str	r3, [fp, #-296]
	ldr	r2, [fp, #-296]
	ldr	r3, [fp, #-304]
	cmp	r2, r3
	bcc	.L37
	mov	r0, #1
	bl	help
.L37:
	ldr	r3, [fp, #-296]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-308]
	add	r3, r2, r3
	ldr	r3, [r3]
	add	r3, r3, #1
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L38
	ldr	r3, [fp, #-296]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-308]
	add	r3, r2, r3
	ldr	r3, [r3]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #121
	beq	.L39
	ldr	r3, [fp, #-296]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-308]
	add	r3, r2, r3
	ldr	r3, [r3]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #110
	beq	.L39
.L38:
	mov	r0, #1
	bl	help
.L39:
	ldr	r3, [fp, #-296]
	add	r2, r3, #1
	str	r2, [fp, #-296]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-308]
	add	r3, r2, r3
	ldr	r3, [r3]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #121
	moveq	r3, #1
	movne	r3, #0
	and	r2, r3, #255
	ldr	r3, [fp, #-312]
	strb	r2, [r3, #46]
	b	.L20
.L36:
	ldr	r3, [fp, #-296]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-308]
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r1, .L84+44
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	beq	.L40
	ldr	r3, [fp, #-296]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-308]
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r1, .L84+48
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L41
.L40:
	ldr	r3, [fp, #-296]
	add	r3, r3, #1
	str	r3, [fp, #-296]
	ldr	r2, [fp, #-296]
	ldr	r3, [fp, #-304]
	cmp	r2, r3
	bcc	.L42
	mov	r0, #1
	bl	help
.L42:
	ldr	r3, [fp, #-296]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-308]
	add	r3, r2, r3
	ldr	r3, [r3]
	add	r3, r3, #1
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L43
	ldr	r3, [fp, #-296]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-308]
	add	r3, r2, r3
	ldr	r3, [r3]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #121
	beq	.L44
	ldr	r3, [fp, #-296]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-308]
	add	r3, r2, r3
	ldr	r3, [r3]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #110
	beq	.L44
.L43:
	mov	r0, #1
	bl	help
.L44:
	ldr	r3, [fp, #-296]
	add	r2, r3, #1
	str	r2, [fp, #-296]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-308]
	add	r3, r2, r3
	ldr	r3, [r3]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #121
	moveq	r3, #1
	movne	r3, #0
	and	r2, r3, #255
	ldr	r3, [fp, #-312]
	strb	r2, [r3, #47]
	b	.L20
.L41:
	ldr	r3, [fp, #-296]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-308]
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r1, .L84+52
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	beq	.L45
	ldr	r3, [fp, #-296]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-308]
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r1, .L84+56
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L46
.L45:
	ldr	r3, [fp, #-296]
	add	r3, r3, #1
	str	r3, [fp, #-296]
	ldr	r2, [fp, #-296]
	ldr	r3, [fp, #-304]
	cmp	r2, r3
	bcc	.L47
	mov	r0, #1
	bl	help
.L47:
	ldr	r3, [fp, #-296]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-308]
	add	r3, r2, r3
	ldr	r1, [r3]
	ldr	r3, [fp, #-312]
	add	r3, r3, #16
	mov	r2, r3
	mov	r0, #10
	bl	inet_pton
	mov	r3, r0
	cmp	r3, #1
	bne	.L48
	ldr	r3, [fp, #-312]
	mov	r2, #10
	str	r2, [r3, #12]
	b	.L49
.L48:
	ldr	r3, [fp, #-296]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-308]
	add	r3, r2, r3
	ldr	r1, [r3]
	ldr	r3, [fp, #-312]
	add	r3, r3, #16
	mov	r2, r3
	mov	r0, #2
	bl	inet_pton
	mov	r3, r0
	cmp	r3, #1
	bne	.L50
	ldr	r3, [fp, #-312]
	mov	r2, #2
	str	r2, [r3, #12]
	b	.L49
.L50:
	ldr	r0, .L84+60
	bl	perror
	mvn	r0, #0
	bl	exit
.L49:
	ldr	r3, [fp, #-296]
	add	r3, r3, #1
	str	r3, [fp, #-296]
	b	.L20
.L46:
	ldr	r3, [fp, #-296]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-308]
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r1, .L84+64
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	beq	.L51
	ldr	r3, [fp, #-296]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-308]
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r1, .L84+68
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L52
.L51:
	ldr	r3, [fp, #-296]
	add	r3, r3, #1
	str	r3, [fp, #-296]
	ldr	r2, [fp, #-296]
	ldr	r3, [fp, #-304]
	cmp	r2, r3
	bcc	.L53
	mov	r0, #1
	bl	help
.L53:
	ldr	r3, [fp, #-296]
	add	r2, r3, #1
	str	r2, [fp, #-296]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-308]
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r2, #10
	mov	r1, #0
	mov	r0, r3
	bl	strtol
	mov	r3, r0
	lsl	r3, r3, #16
	lsr	r2, r3, #16
	ldr	r3, [fp, #-312]
	strh	r2, [r3, #32]	@ movhi
	b	.L20
.L52:
	ldr	r3, [fp, #-296]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-308]
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r1, .L84+72
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	beq	.L54
	ldr	r3, [fp, #-296]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-308]
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r1, .L84+76
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L55
.L54:
	ldr	r3, [fp, #-296]
	add	r3, r3, #1
	str	r3, [fp, #-296]
	ldr	r2, [fp, #-296]
	ldr	r3, [fp, #-304]
	cmp	r2, r3
	bcc	.L56
	mov	r0, #1
	bl	help
.L56:
	ldr	r3, [fp, #-296]
	add	r2, r3, #1
	str	r2, [fp, #-296]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-308]
	add	r3, r2, r3
	ldr	r0, [r3]
	sub	r2, fp, #264
	sub	r1, fp, #292
	sub	r3, fp, #300
	str	r3, [sp]
	mov	r3, #256
	bl	getpwnam_r
	mov	r3, r0
	cmp	r3, #0
	bne	.L57
	ldr	r3, [fp, #-300]
	cmp	r3, #0
	bne	.L58
.L57:
	ldr	r0, .L84+80
	bl	perror
	mvn	r0, #0
	bl	exit
.L58:
	ldr	r3, [fp, #-300]
	ldr	r2, [r3, #8]
	ldr	r3, [fp, #-312]
	str	r2, [r3, #4]
	ldr	r3, [fp, #-300]
	ldr	r2, [r3, #12]
	ldr	r3, [fp, #-312]
	str	r2, [r3, #8]
	ldr	r3, [fp, #-312]
	mov	r2, #1
	strb	r2, [r3]
	ldr	r3, [fp, #-312]
	ldr	r3, [r3, #40]
	cmp	r3, #0
	bne	.L20
	ldr	r3, [fp, #-300]
	ldr	r3, [r3, #20]
	mov	r0, r3
	bl	strdup
	mov	r3, r0
	mov	r2, r3
	ldr	r3, [fp, #-312]
	str	r2, [r3, #40]
	b	.L20
.L55:
	ldr	r3, [fp, #-296]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-308]
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r1, .L84+84
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	beq	.L60
	ldr	r3, [fp, #-296]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-308]
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r1, .L84+88
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L61
.L60:
	ldr	r3, [fp, #-296]
	add	r3, r3, #1
	str	r3, [fp, #-296]
	ldr	r2, [fp, #-296]
	ldr	r3, [fp, #-304]
	cmp	r2, r3
	bcc	.L62
	mov	r0, #1
	bl	help
.L62:
	ldr	r3, [fp, #-296]
	add	r2, r3, #1
	str	r2, [fp, #-296]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-308]
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-312]
	str	r2, [r3, #40]
	b	.L20
.L61:
	ldr	r3, [fp, #-296]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-308]
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r1, .L84+92
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	beq	.L63
	ldr	r3, [fp, #-296]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-308]
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r1, .L84+96
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L64
.L63:
	ldr	r3, [fp, #-296]
	add	r3, r3, #1
	str	r3, [fp, #-296]
	ldr	r2, [fp, #-296]
	ldr	r3, [fp, #-304]
	cmp	r2, r3
	bcc	.L65
	mov	r0, #1
	bl	help
.L65:
	ldr	r3, [fp, #-296]
	add	r2, r3, #1
	str	r2, [fp, #-296]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-308]
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r2, #10
	mov	r1, #0
	mov	r0, r3
	bl	strtol
	mov	r3, r0
	mov	r2, r3
	ldr	r3, [fp, #-312]
	str	r2, [r3, #52]
	ldr	r3, [fp, #-312]
	add	r3, r3, #48
	cmp	r3, #0
	beq	.L20
	ldr	r3, [fp, #-312]
	mov	r2, #1
	strb	r2, [r3, #48]
	b	.L20
.L64:
	ldr	r3, [fp, #-296]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-308]
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r1, .L84+100
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	beq	.L67
	ldr	r3, [fp, #-296]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-308]
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r1, .L84+104
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L68
.L67:
	ldr	r3, [fp, #-296]
	add	r3, r3, #1
	str	r3, [fp, #-296]
	ldr	r2, [fp, #-296]
	ldr	r3, [fp, #-304]
	cmp	r2, r3
	bcc	.L69
	mov	r0, #1
	bl	help
.L69:
	ldr	r3, [fp, #-296]
	add	r2, r3, #1
	str	r2, [fp, #-296]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-308]
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r2, #10
	mov	r1, #0
	mov	r0, r3
	bl	strtol
	mov	r3, r0
	mov	r2, r3
	ldr	r3, [fp, #-312]
	str	r2, [r3, #60]
	ldr	r3, [fp, #-312]
	add	r3, r3, #56
	cmp	r3, #0
	beq	.L20
	ldr	r3, [fp, #-312]
	mov	r2, #1
	strb	r2, [r3, #56]
	b	.L20
.L68:
	ldr	r3, [fp, #-296]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-308]
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r1, .L84+108
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	beq	.L71
	ldr	r3, [fp, #-296]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-308]
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r1, .L84+112
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L72
.L71:
	ldr	r3, [fp, #-296]
	add	r3, r3, #1
	str	r3, [fp, #-296]
	ldr	r2, [fp, #-296]
	ldr	r3, [fp, #-304]
	cmp	r2, r3
	bcc	.L73
	mov	r0, #1
	bl	help
.L73:
	ldr	r3, [fp, #-296]
	add	r2, r3, #1
	str	r2, [fp, #-296]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-308]
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r2, #10
	mov	r1, #0
	mov	r0, r3
	bl	strtol
	mov	r3, r0
	mov	r2, r3
	ldr	r3, [fp, #-312]
	str	r2, [r3, #68]
	ldr	r3, [fp, #-312]
	add	r3, r3, #64
	cmp	r3, #0
	beq	.L20
	ldr	r3, [fp, #-312]
	mov	r2, #1
	strb	r2, [r3, #64]
	b	.L20
.L72:
	ldr	r3, [fp, #-296]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-308]
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r1, .L84+116
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	beq	.L75
	ldr	r3, [fp, #-296]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-308]
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r1, .L84+120
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L76
.L75:
	ldr	r3, [fp, #-296]
	add	r3, r3, #1
	str	r3, [fp, #-296]
	ldr	r2, [fp, #-296]
	ldr	r3, [fp, #-304]
	cmp	r2, r3
	bcc	.L77
	mov	r0, #1
	bl	help
.L77:
	ldr	r3, [fp, #-296]
	add	r2, r3, #1
	str	r2, [fp, #-296]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-308]
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r2, #10
	mov	r1, #0
	mov	r0, r3
	bl	strtol
	mov	r2, r0
	ldr	r3, [fp, #-312]
	str	r2, [r3, #76]
	ldr	r3, [fp, #-312]
	add	r3, r3, #72
	cmp	r3, #0
	beq	.L20
	ldr	r3, [fp, #-312]
	mov	r2, #1
	strb	r2, [r3, #72]
	b	.L20
.L76:
	ldr	r3, [fp, #-312]
	ldr	r3, [r3, #36]
	cmp	r3, #0
	bne	.L79
	ldr	r3, [fp, #-296]
	add	r2, r3, #1
	str	r2, [fp, #-296]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-308]
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-312]
	str	r2, [r3, #36]
	b	.L20
.L79:
	mov	r0, #1
	bl	help
.L20:
	ldr	r2, [fp, #-296]
	ldr	r3, [fp, #-304]
	cmp	r2, r3
	bcc	.L80
	ldr	r3, [fp, #-312]
	ldr	r3, [r3, #36]
	cmp	r3, #0
	bne	.L83
	mov	r0, #1
	bl	help
.L83:
	nop
	ldr	r3, .L84
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L82
	bl	__stack_chk_fail
.L82:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L85:
	.align	2
.L84:
	.word	.LC55
	.word	.LC25
	.word	.LC26
	.word	.LC27
	.word	.LC28
	.word	.LC29
	.word	.LC30
	.word	.LC31
	.word	.LC32
	.word	.LC33
	.word	.LC34
	.word	.LC35
	.word	.LC36
	.word	.LC37
	.word	.LC38
	.word	.LC39
	.word	.LC40
	.word	.LC41
	.word	.LC42
	.word	.LC43
	.word	.LC44
	.word	.LC45
	.word	.LC46
	.word	.LC47
	.word	.LC48
	.word	.LC49
	.word	.LC50
	.word	.LC51
	.word	.LC52
	.word	.LC53
	.word	.LC54
	.size	parse_args, .-parse_args
	.section	.rodata
	.align	2
.LC56:
	.ascii	"socket\000"
	.align	2
.LC57:
	.ascii	"setsockopt\000"
	.align	2
.LC58:
	.ascii	"bad address family?!\012\000"
	.align	2
.LC59:
	.ascii	"bind\000"
	.align	2
.LC60:
	.ascii	"listen\000"
	.align	2
.LC61:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	bind_listen
	.syntax unified
	.arm
	.fpu softvfp
	.type	bind_listen, %function
bind_listen:
	@ args = 80, pretend = 16, frame = 48
	@ frame_needed = 1, uses_anonymous_args = 0
	sub	sp, sp, #16
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #56
	add	ip, fp, #4
	stm	ip, {r0, r1, r2, r3}
	ldr	r3, .L96
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #1
	str	r3, [fp, #-48]
	ldr	r3, [fp, #16]
	mov	r2, #0
	mov	r1, #1
	mov	r0, r3
	bl	socket
	str	r0, [fp, #-40]
	ldr	r3, [fp, #-40]
	cmp	r3, #0
	bge	.L87
	ldr	r0, .L96+4
	bl	perror
	mvn	r0, #0
	bl	exit
.L87:
	sub	r3, fp, #48
	mov	r2, #4
	str	r2, [sp]
	mov	r2, #2
	mov	r1, #1
	ldr	r0, [fp, #-40]
	bl	setsockopt
	mov	r3, r0
	cmp	r3, #0
	beq	.L88
	ldr	r0, .L96+8
	bl	perror
	mvn	r0, #0
	bl	exit
.L88:
	ldr	r3, [fp, #16]
	cmp	r3, #2
	beq	.L89
	cmp	r3, #10
	bne	.L90
	ldr	r3, [fp, #16]
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	strh	r3, [fp, #-36]	@ movhi
	sub	ip, fp, #28
	add	r3, fp, #20
	ldm	r3, {r0, r1, r2, r3}
	stm	ip, {r0, r1, r2, r3}
	ldrh	r3, [fp, #36]
	mov	r0, r3
	bl	htons
	mov	r3, r0
	strh	r3, [fp, #-34]	@ movhi
	mov	r3, #28
	str	r3, [fp, #-44]
	b	.L91
.L89:
	ldr	r3, [fp, #16]
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	strh	r3, [fp, #-36]	@ movhi
	ldr	r3, [fp, #20]
	str	r3, [fp, #-32]
	ldrh	r3, [fp, #36]
	mov	r0, r3
	bl	htons
	mov	r3, r0
	strh	r3, [fp, #-34]	@ movhi
	mov	r3, #16
	str	r3, [fp, #-44]
	b	.L91
.L90:
	ldr	r3, .L96+12
	ldr	r3, [r3]
	mov	r2, #21
	mov	r1, #1
	ldr	r0, .L96+16
	bl	fwrite
	mvn	r0, #0
	bl	exit
.L91:
	sub	r3, fp, #36
	ldr	r2, [fp, #-44]
	mov	r1, r3
	ldr	r0, [fp, #-40]
	bl	bind
	mov	r3, r0
	cmp	r3, #0
	beq	.L92
	ldr	r0, .L96+20
	bl	perror
	mvn	r0, #0
	bl	exit
.L92:
	mov	r1, #16
	ldr	r0, [fp, #-40]
	bl	listen
	mov	r3, r0
	cmp	r3, #0
	beq	.L93
	ldr	r0, .L96+24
	bl	perror
	mvn	r0, #0
	bl	exit
.L93:
	ldr	r3, [fp, #-40]
	ldr	r2, .L96
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L95
	bl	__stack_chk_fail
.L95:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, lr}
	add	sp, sp, #16
	bx	lr
.L97:
	.align	2
.L96:
	.word	.LC61
	.word	.LC56
	.word	.LC57
	.word	stderr
	.word	.LC58
	.word	.LC59
	.word	.LC60
	.size	bind_listen, .-bind_listen
	.section	.rodata
	.align	2
.LC62:
	.ascii	"setrlimit\000"
	.align	2
.LC63:
	.ascii	"setpriority\000"
	.align	2
.LC64:
	.ascii	"setgroups\000"
	.align	2
.LC65:
	.ascii	"setgid\000"
	.align	2
.LC66:
	.ascii	"setuid\000"
	.align	2
.LC67:
	.ascii	"chdir\000"
	.align	2
.LC68:
	.ascii	"dup2\000"
	.align	2
.LC69:
	.ascii	"close\000"
	.align	2
.LC70:
	.ascii	"-c\000"
	.align	2
.LC71:
	.ascii	"sh\000"
	.align	2
.LC72:
	.ascii	"/bin/sh\000"
	.align	2
.LC73:
	.ascii	"execle\000"
	.align	2
.LC74:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	handle_connection
	.syntax unified
	.arm
	.fpu softvfp
	.type	handle_connection, %function
handle_connection:
	@ args = 84, pretend = 16, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	sub	sp, sp, #16
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #28
	add	ip, fp, #4
	stm	ip, {r0, r1, r2, r3}
	ldr	r3, .L113
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	ldrb	r3, [fp, #52]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L99
	ldr	r3, [fp, #56]
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-20]
	str	r3, [fp, #-24]
	sub	r3, fp, #24
	mov	r1, r3
	mov	r0, #0
	bl	setrlimit
	mov	r3, r0
	cmp	r3, #0
	bge	.L99
	ldr	r0, .L113+4
	bl	perror
	mvn	r0, #0
	bl	exit
.L99:
	ldrb	r3, [fp, #60]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L100
	ldr	r3, [fp, #64]
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-20]
	str	r3, [fp, #-24]
	sub	r3, fp, #24
	mov	r1, r3
	mov	r0, #9
	bl	setrlimit
	mov	r3, r0
	cmp	r3, #0
	bge	.L100
	ldr	r0, .L113+4
	bl	perror
	mvn	r0, #0
	bl	exit
.L100:
	ldrb	r3, [fp, #68]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L101
	ldr	r3, [fp, #72]
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-20]
	str	r3, [fp, #-24]
	sub	r3, fp, #24
	mov	r1, r3
	mov	r0, #6
	bl	setrlimit
	mov	r3, r0
	cmp	r3, #0
	bge	.L101
	ldr	r0, .L113+4
	bl	perror
	mvn	r0, #0
	bl	exit
.L101:
	ldrb	r3, [fp, #76]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L102
	ldr	r3, [fp, #80]
	mov	r2, r3
	mov	r1, #0
	mov	r0, #0
	bl	setpriority
	mov	r3, r0
	cmp	r3, #0
	beq	.L102
	ldr	r0, .L113+8
	bl	perror
	mvn	r0, #0
	bl	exit
.L102:
	ldrb	r3, [fp, #4]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L103
	mov	r1, #0
	mov	r0, #0
	bl	setgroups
	mov	r3, r0
	cmp	r3, #0
	beq	.L104
	ldr	r0, .L113+12
	bl	perror
	mvn	r0, #0
	bl	exit
.L104:
	ldr	r3, [fp, #12]
	mov	r0, r3
	bl	setgid
	mov	r3, r0
	cmp	r3, #0
	beq	.L105
	ldr	r0, .L113+16
	bl	perror
	mvn	r0, #0
	bl	exit
.L105:
	ldr	r3, [fp, #8]
	mov	r0, r3
	bl	setuid
	mov	r3, r0
	cmp	r3, #0
	beq	.L103
	ldr	r0, .L113+20
	bl	perror
	mvn	r0, #0
	bl	exit
.L103:
	ldr	r3, [fp, #44]
	cmp	r3, #0
	beq	.L106
	ldr	r3, [fp, #44]
	mov	r0, r3
	bl	chdir
	mov	r3, r0
	cmp	r3, #0
	beq	.L106
	ldr	r0, .L113+24
	bl	perror
	mvn	r0, #0
	bl	exit
.L106:
	ldrb	r3, [fp, #49]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L107
	ldr	r3, .L113+28
	ldr	r3, [r3]
	mov	r0, r3
	bl	fileno
	mov	r4, r0
	ldr	r3, .L113+28
	ldr	r3, [r3]
	mov	r0, r3
	bl	fileno
	mov	r3, r0
	mov	r1, r3
	ldr	r0, [fp, #84]
	bl	dup2
	mov	r3, r0
	cmp	r4, r3
	beq	.L107
	ldr	r0, .L113+32
	bl	perror
	mvn	r0, #0
	bl	exit
.L107:
	ldrb	r3, [fp, #50]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L108
	ldr	r3, .L113+36
	ldr	r3, [r3]
	mov	r0, r3
	bl	fileno
	mov	r4, r0
	ldr	r3, .L113+36
	ldr	r3, [r3]
	mov	r0, r3
	bl	fileno
	mov	r3, r0
	mov	r1, r3
	ldr	r0, [fp, #84]
	bl	dup2
	mov	r3, r0
	cmp	r4, r3
	beq	.L108
	ldr	r0, .L113+32
	bl	perror
	mvn	r0, #0
	bl	exit
.L108:
	ldrb	r3, [fp, #51]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L109
	ldr	r3, .L113+40
	ldr	r3, [r3]
	mov	r0, r3
	bl	fileno
	mov	r4, r0
	ldr	r3, .L113+40
	ldr	r3, [r3]
	mov	r0, r3
	bl	fileno
	mov	r3, r0
	mov	r1, r3
	ldr	r0, [fp, #84]
	bl	dup2
	mov	r3, r0
	cmp	r4, r3
	beq	.L109
	ldr	r0, .L113+32
	bl	perror
	mvn	r0, #0
	bl	exit
.L109:
	ldr	r0, [fp, #84]
	bl	close
	mov	r3, r0
	cmp	r3, #0
	beq	.L110
	ldr	r0, .L113+44
	bl	perror
	mvn	r0, #0
	bl	exit
.L110:
	ldrb	r3, [fp, #48]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L111
	ldr	r3, [fp, #40]
	mov	r2, #0
	str	r2, [sp, #4]
	mov	r2, #0
	str	r2, [sp]
	ldr	r2, .L113+48
	ldr	r1, .L113+52
	ldr	r0, .L113+56
	bl	execle
	ldr	r0, .L113+60
	bl	perror
	mvn	r0, #0
	bl	exit
.L111:
	ldr	r0, [fp, #40]
	ldr	r1, [fp, #40]
	mov	r3, #0
	mov	r2, #0
	bl	execle
	ldr	r0, .L113+60
	bl	perror
	mvn	r0, #0
	bl	exit
.L114:
	.align	2
.L113:
	.word	.LC74
	.word	.LC62
	.word	.LC63
	.word	.LC64
	.word	.LC65
	.word	.LC66
	.word	.LC67
	.word	stdin
	.word	.LC68
	.word	stdout
	.word	stderr
	.word	.LC69
	.word	.LC70
	.word	.LC71
	.word	.LC72
	.word	.LC73
	.size	handle_connection, .-handle_connection
	.section	.rodata
	.align	2
.LC75:
	.ascii	"sigaction\000"
	.align	2
.LC76:
	.ascii	"setsid\000"
	.align	2
.LC77:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 248
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #320
	str	r0, [fp, #-248]
	str	r1, [fp, #-252]
	ldr	r3, .L127
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	sub	r3, fp, #228
	mov	r2, #80
	mov	r1, #0
	mov	r0, r3
	bl	memset
	mov	r3, #10
	str	r3, [fp, #-216]
	ldr	r3, .L127+4
	sub	ip, fp, #212
	ldm	r3, {r0, r1, r2, r3}
	stm	ip, {r0, r1, r2, r3}
	mov	r3, #1024
	strh	r3, [fp, #-196]	@ movhi
	mov	r3, #1
	strb	r3, [fp, #-184]
	mov	r3, #1
	strb	r3, [fp, #-183]
	mov	r3, #1
	strb	r3, [fp, #-182]
	ldr	r3, [fp, #-248]
	sub	r2, fp, #228
	ldr	r1, [fp, #-252]
	mov	r0, r3
	bl	parse_args
	sub	r3, fp, #148
	mov	r2, #140
	mov	r1, #0
	mov	r0, r3
	bl	memset
	mov	r3, #3
	str	r3, [fp, #-16]
	sub	r3, fp, #148
	mov	r2, #0
	mov	r1, r3
	mov	r0, #17
	bl	sigaction
	mov	r3, r0
	cmp	r3, #0
	beq	.L116
	ldr	r0, .L127+8
	bl	perror
	mvn	r0, #0
	bl	exit
.L116:
	mov	lr, sp
	sub	ip, fp, #212
	ldmia	ip!, {r0, r1, r2, r3}
	stmia	lr!, {r0, r1, r2, r3}
	ldmia	ip!, {r0, r1, r2, r3}
	stmia	lr!, {r0, r1, r2, r3}
	ldmia	ip!, {r0, r1, r2, r3}
	stmia	lr!, {r0, r1, r2, r3}
	ldm	ip, {r0, r1, r2, r3}
	stm	lr, {r0, r1, r2, r3}
	sub	r3, fp, #228
	ldm	r3, {r0, r1, r2, r3}
	bl	bind_listen
	str	r0, [fp, #-240]
.L123:
	mov	r3, #0
	mov	r2, #0
	mov	r1, r3
	ldr	r0, [fp, #-240]
	bl	accept
	str	r0, [fp, #-236]
	ldr	r3, [fp, #-236]
	cmp	r3, #0
	blt	.L125
	bl	fork
	mov	r3, r0
	str	r3, [fp, #-232]
	ldr	r3, [fp, #-232]
	cmp	r3, #0
	beq	.L119
	ldr	r0, [fp, #-236]
	bl	close
	mov	r3, r0
	cmp	r3, #0
	beq	.L126
	ldr	r0, .L127+12
	bl	perror
	mvn	r0, #0
	bl	exit
.L119:
	ldr	r0, [fp, #-240]
	bl	close
	mov	r3, r0
	cmp	r3, #0
	beq	.L121
	ldr	r0, .L127+12
	bl	perror
	mvn	r0, #0
	bl	exit
.L121:
	bl	setsid
	mov	r3, r0
	cmp	r3, #0
	bge	.L122
	ldr	r0, .L127+16
	bl	perror
	mvn	r0, #0
	bl	exit
.L122:
	ldr	r3, [fp, #-236]
	str	r3, [sp, #64]
	mov	lr, sp
	sub	ip, fp, #212
	ldmia	ip!, {r0, r1, r2, r3}
	stmia	lr!, {r0, r1, r2, r3}
	ldmia	ip!, {r0, r1, r2, r3}
	stmia	lr!, {r0, r1, r2, r3}
	ldmia	ip!, {r0, r1, r2, r3}
	stmia	lr!, {r0, r1, r2, r3}
	ldm	ip, {r0, r1, r2, r3}
	stm	lr, {r0, r1, r2, r3}
	sub	r3, fp, #228
	ldm	r3, {r0, r1, r2, r3}
	bl	handle_connection
	b	.L123
.L125:
	nop
	b	.L123
.L126:
	nop
	b	.L123
.L128:
	.align	2
.L127:
	.word	.LC77
	.word	in6addr_any
	.word	.LC75
	.word	.LC69
	.word	.LC76
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
