	.file	"779744.c"
	.intel_syntax noprefix
	.text
	.local	c_pid_list
	.comm	c_pid_list,8,8
	.section	.rodata
.LC0:
	.string	"hostname = %s\n"
.LC1:
	.string	"alias(%d) = %s\n"
	.text
	.type	print_hostname, @function
print_hostname:
.LFB6:
	.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	QWORD PTR -24[rbp], rdi
	mov	rax, QWORD PTR -24[rbp]
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR stdout[rip]
	lea	rsi, .LC0[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	DWORD PTR -4[rbp], 0
	jmp	.L2
.L3:
	mov	rax, QWORD PTR -24[rbp]
	mov	rdx, QWORD PTR 8[rax]
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	sal	rax, 3
	add	rax, rdx
	mov	rcx, QWORD PTR [rax]
	mov	rax, QWORD PTR stdout[rip]
	mov	edx, DWORD PTR -4[rbp]
	lea	rsi, .LC1[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	add	DWORD PTR -4[rbp], 1
.L2:
	mov	rax, QWORD PTR -24[rbp]
	mov	rdx, QWORD PTR 8[rax]
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	sal	rax, 3
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	test	rax, rax
	jne	.L3
	nop
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	print_hostname, .-print_hostname
	.section	.rodata
.LC2:
	.string	"%s\n"
.LC3:
	.string	"httpd_dayo"
	.align 8
.LC4:
	.string	"Usage : %s -p [PORT_NUM] -n [PROC_NUM]\n"
	.text
	.type	usage, @function
usage:
.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, 16
	mov	QWORD PTR -8[rbp], rdi
	cmp	QWORD PTR -8[rbp], 0
	je	.L5
	mov	rax, QWORD PTR stderr[rip]
	mov	rdx, QWORD PTR -8[rbp]
	lea	rsi, .LC2[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
.L5:
	mov	rax, QWORD PTR stdout[rip]
	lea	rdx, .LC3[rip]
	lea	rsi, .LC4[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	edi, 1
	call	exit@PLT
	.cfi_endproc
.LFE7:
	.size	usage, .-usage
	.globl	sigint_handler
	.type	sigint_handler, @function
sigint_handler:
.LFB8:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	DWORD PTR -4[rbp], edi
	mov	QWORD PTR -16[rbp], rsi
	mov	QWORD PTR -24[rbp], rdx
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	sigint_handler, .-sigint_handler
	.globl	set_proc_info
	.type	set_proc_info, @function
set_proc_info:
.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, 16
	mov	QWORD PTR -8[rbp], rdi
	call	getpid@PLT
	mov	rdx, QWORD PTR -8[rbp]
	mov	DWORD PTR 12[rdx], eax
	call	getppid@PLT
	mov	rdx, QWORD PTR -8[rbp]
	mov	DWORD PTR 16[rdx], eax
	call	getuid@PLT
	mov	rdx, QWORD PTR -8[rbp]
	mov	DWORD PTR 8[rdx], eax
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	set_proc_info, .-set_proc_info
	.section	.rodata
.LC5:
	.string	"port invalid number\n"
.LC6:
	.string	"proc_num invalid number\n"
.LC7:
	.string	"proc_num invalid too many!!"
.LC8:
	.string	"p:n:"
	.text
	.globl	opt_parse
	.type	opt_parse, @function
opt_parse:
.LFB10:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 80
	mov	DWORD PTR -52[rbp], edi
	mov	QWORD PTR -64[rbp], rsi
	mov	QWORD PTR -72[rbp], rdx
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -36[rbp], 0
	mov	QWORD PTR -16[rbp], 0
	mov	rax, QWORD PTR -72[rbp]
	mov	rdi, rax
	call	set_proc_info
	mov	rax, QWORD PTR -72[rbp]
	mov	DWORD PTR [rax], 8080
	mov	rax, QWORD PTR -72[rbp]
	mov	DWORD PTR 4[rax], 1
	jmp	.L11
.L19:
	cmp	DWORD PTR -36[rbp], 110
	je	.L12
	cmp	DWORD PTR -36[rbp], 112
	jne	.L22
	mov	DWORD PTR -32[rbp], 1
	mov	rax, QWORD PTR optarg[rip]
	lea	rcx, -24[rbp]
	mov	edx, 10
	mov	rsi, rcx
	mov	rdi, rax
	call	strtoul@PLT
	mov	edx, eax
	mov	rax, QWORD PTR -72[rbp]
	mov	DWORD PTR [rax], edx
	mov	rax, QWORD PTR -24[rbp]
	movzx	eax, BYTE PTR [rax]
	test	al, al
	jne	.L14
	mov	rax, QWORD PTR -72[rbp]
	mov	eax, DWORD PTR [rax]
	cmp	eax, 2147483647
	jne	.L11
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	cmp	eax, 34
	jne	.L11
.L14:
	lea	rdi, .LC5[rip]
	call	usage
	jmp	.L11
.L12:
	mov	DWORD PTR -28[rbp], 1
	mov	rax, QWORD PTR optarg[rip]
	lea	rcx, -24[rbp]
	mov	edx, 10
	mov	rsi, rcx
	mov	rdi, rax
	call	strtoul@PLT
	mov	edx, eax
	mov	rax, QWORD PTR -72[rbp]
	mov	DWORD PTR 4[rax], edx
	mov	rax, QWORD PTR -24[rbp]
	movzx	eax, BYTE PTR [rax]
	test	al, al
	jne	.L16
	mov	rax, QWORD PTR -72[rbp]
	mov	eax, DWORD PTR 4[rax]
	cmp	eax, 2147483647
	jne	.L17
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	cmp	eax, 34
	jne	.L17
.L16:
	lea	rdi, .LC6[rip]
	call	usage
	jmp	.L18
.L17:
	mov	rax, QWORD PTR -72[rbp]
	mov	eax, DWORD PTR 4[rax]
	cmp	eax, 10
	jle	.L11
	lea	rdi, .LC7[rip]
	call	usage
.L18:
	jmp	.L11
.L22:
	nop
.L11:
	mov	rcx, QWORD PTR -64[rbp]
	mov	eax, DWORD PTR -52[rbp]
	lea	rdx, .LC8[rip]
	mov	rsi, rcx
	mov	edi, eax
	call	getopt@PLT
	mov	DWORD PTR -36[rbp], eax
	cmp	DWORD PTR -36[rbp], -1
	jne	.L19
	mov	eax, 0
	mov	rsi, QWORD PTR -8[rbp]
	sub	rsi, QWORD PTR fs:40
	je	.L21
	call	__stack_chk_fail@PLT
.L21:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	opt_parse, .-opt_parse
	.section	.rodata
.LC9:
	.string	"socket() failed."
.LC10:
	.string	"bind() failed."
.LC11:
	.string	"listen() failed."
	.text
	.globl	port_binding
	.type	port_binding, @function
port_binding:
.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, 64
	mov	QWORD PTR -56[rbp], rdi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	edx, 6
	mov	esi, 1
	mov	edi, 2
	call	socket@PLT
	mov	DWORD PTR -36[rbp], eax
	cmp	DWORD PTR -36[rbp], 0
	jns	.L24
	lea	rdi, .LC9[rip]
	call	usage
.L24:
	lea	rax, -32[rbp]
	mov	edx, 16
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	mov	WORD PTR -32[rbp], 2
	mov	edi, 0
	call	htonl@PLT
	mov	DWORD PTR -28[rbp], eax
	mov	rax, QWORD PTR -56[rbp]
	mov	eax, DWORD PTR [rax]
	movzx	eax, ax
	mov	edi, eax
	call	htons@PLT
	mov	WORD PTR -30[rbp], ax
	lea	rcx, -32[rbp]
	mov	eax, DWORD PTR -36[rbp]
	mov	edx, 16
	mov	rsi, rcx
	mov	edi, eax
	call	bind@PLT
	test	eax, eax
	jns	.L25
	lea	rdi, .LC10[rip]
	call	usage
.L25:
	mov	eax, DWORD PTR -36[rbp]
	mov	esi, 60
	mov	edi, eax
	call	listen@PLT
	test	eax, eax
	jns	.L26
	lea	rdi, .LC11[rip]
	call	usage
.L26:
	mov	eax, DWORD PTR -36[rbp]
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L28
	call	__stack_chk_fail@PLT
.L28:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE11:
	.size	port_binding, .-port_binding
	.section	.rodata
.LC12:
	.string	"fork() failed."
.LC13:
	.string	"accept() failed."
.LC14:
	.string	"connected from %s.\n"
.LC15:
	.string	"%d\n"
	.text
	.globl	continue_use_port
	.type	continue_use_port, @function
continue_use_port:
.LFB12:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 80
	mov	DWORD PTR -68[rbp], edi
	mov	DWORD PTR -72[rbp], esi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	eax, DWORD PTR -72[rbp]
	cdqe
	sal	rax, 2
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR c_pid_list[rip], rax
	mov	DWORD PTR -48[rbp], 0
	jmp	.L30
.L35:
	call	fork@PLT
	mov	DWORD PTR -40[rbp], eax
	cmp	DWORD PTR -40[rbp], -1
	jne	.L31
	lea	rdi, .LC12[rip]
	call	usage
.L31:
	cmp	DWORD PTR -40[rbp], 0
	jne	.L32
	mov	DWORD PTR -52[rbp], 16
	lea	rdx, -52[rbp]
	lea	rcx, -32[rbp]
	mov	eax, DWORD PTR -68[rbp]
	mov	rsi, rcx
	mov	edi, eax
	call	accept@PLT
	mov	DWORD PTR -36[rbp], eax
	cmp	DWORD PTR -36[rbp], 0
	jns	.L33
	lea	rdi, .LC13[rip]
	call	usage
.L33:
	mov	eax, DWORD PTR -28[rbp]
	mov	edi, eax
	call	inet_ntoa@PLT
	mov	rsi, rax
	lea	rdi, .LC14[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR -36[rbp]
	mov	edi, eax
	call	close@PLT
	jmp	.L34
.L32:
	mov	rdx, QWORD PTR c_pid_list[rip]
	mov	eax, DWORD PTR -48[rbp]
	cdqe
	sal	rax, 2
	add	rdx, rax
	mov	eax, DWORD PTR -40[rbp]
	mov	DWORD PTR [rdx], eax
	mov	rdx, QWORD PTR c_pid_list[rip]
	mov	eax, DWORD PTR -48[rbp]
	cdqe
	sal	rax, 2
	add	rax, rdx
	mov	edx, DWORD PTR [rax]
	mov	rax, QWORD PTR stdout[rip]
	lea	rsi, .LC15[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	nop
.L34:
	add	DWORD PTR -48[rbp], 1
.L30:
	mov	eax, DWORD PTR -48[rbp]
	cmp	eax, DWORD PTR -72[rbp]
	jl	.L35
	lea	rax, -56[rbp]
	mov	rdi, rax
	mov	eax, 0
	call	wait@PLT
	mov	DWORD PTR -44[rbp], eax
	mov	rax, QWORD PTR c_pid_list[rip]
	test	rax, rax
	je	.L39
	mov	rax, QWORD PTR c_pid_list[rip]
	mov	rdi, rax
	call	free@PLT
	nop
.L39:
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L38
	call	__stack_chk_fail@PLT
.L38:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE12:
	.size	continue_use_port, .-continue_use_port
	.section	.rodata
.LC16:
	.string	"sigaction() failed."
	.text
	.globl	set_signal_handler
	.type	set_signal_handler, @function
set_signal_handler:
.LFB13:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 160
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rax, -160[rbp]
	mov	edx, 152
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	lea	rax, sigint_handler[rip]
	mov	QWORD PTR -160[rbp], rax
	mov	DWORD PTR -24[rbp], 4
	lea	rax, -160[rbp]
	mov	edx, 0
	mov	rsi, rax
	mov	edi, 2
	call	sigaction@PLT
	test	eax, eax
	jns	.L44
	lea	rdi, .LC16[rip]
	call	usage
	nop
.L44:
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L43
	call	__stack_chk_fail@PLT
.L43:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE13:
	.size	set_signal_handler, .-set_signal_handler
	.section	.rodata
.LC17:
	.string	"UID PORT PROC_NUM PID  PPID\n"
.LC18:
	.string	"%3d %-4d %-8d %d %d\n"
.LC19:
	.string	"port_binding() faild."
	.text
	.globl	main
	.type	main, @function
main:
.LFB14:
	.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	QWORD PTR -32[rbp], rsi
	mov	DWORD PTR -12[rbp], 0
	mov	edi, 20
	call	malloc@PLT
	mov	QWORD PTR -8[rbp], rax
	mov	eax, 0
	call	set_signal_handler
	mov	rdx, QWORD PTR -8[rbp]
	mov	rcx, QWORD PTR -32[rbp]
	mov	eax, DWORD PTR -20[rbp]
	mov	rsi, rcx
	mov	edi, eax
	call	opt_parse
	mov	rax, QWORD PTR stdout[rip]
	mov	rcx, rax
	mov	edx, 28
	mov	esi, 1
	lea	rdi, .LC17[rip]
	call	fwrite@PLT
	mov	rax, QWORD PTR -8[rbp]
	mov	esi, DWORD PTR 16[rax]
	mov	rax, QWORD PTR -8[rbp]
	mov	r8d, DWORD PTR 12[rax]
	mov	rax, QWORD PTR -8[rbp]
	mov	edi, DWORD PTR 4[rax]
	mov	rax, QWORD PTR -8[rbp]
	mov	ecx, DWORD PTR [rax]
	mov	rax, QWORD PTR -8[rbp]
	mov	edx, DWORD PTR 8[rax]
	mov	rax, QWORD PTR stdout[rip]
	sub	rsp, 8
	push	rsi
	mov	r9d, r8d
	mov	r8d, edi
	lea	rsi, .LC18[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	add	rsp, 16
	mov	rax, QWORD PTR stdout[rip]
	mov	rdi, rax
	call	fflush@PLT
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	port_binding
	mov	DWORD PTR -12[rbp], eax
	cmp	DWORD PTR -12[rbp], 0
	jne	.L46
	lea	rdi, .LC19[rip]
	call	usage
.L46:
	mov	rax, QWORD PTR -8[rbp]
	mov	edx, DWORD PTR 4[rax]
	mov	eax, DWORD PTR -12[rbp]
	mov	esi, edx
	mov	edi, eax
	call	continue_use_port
	mov	eax, 0
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE14:
	.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	"779744.c"
	.text
	.local	c_pid_list
	.comm	c_pid_list,4,4
	.section	.rodata
	.align	2
.LC0:
	.ascii	"hostname = %s\012\000"
	.align	2
.LC1:
	.ascii	"alias(%d) = %s\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	print_hostname, %function
print_hostname:
	@ 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, .L4
	ldr	r0, [r3]
	ldr	r3, [fp, #-16]
	ldr	r3, [r3]
	mov	r2, r3
	ldr	r1, .L4+4
	bl	fprintf
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L2
.L3:
	ldr	r3, .L4
	ldr	r0, [r3]
	ldr	r3, [fp, #-16]
	ldr	r2, [r3, #4]
	ldr	r3, [fp, #-8]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r2, [fp, #-8]
	ldr	r1, .L4+8
	bl	fprintf
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L2:
	ldr	r3, [fp, #-16]
	ldr	r2, [r3, #4]
	ldr	r3, [fp, #-8]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L3
	nop
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L5:
	.align	2
.L4:
	.word	stdout
	.word	.LC0
	.word	.LC1
	.size	print_hostname, .-print_hostname
	.section	.rodata
	.align	2
.LC2:
	.ascii	"%s\012\000"
	.align	2
.LC3:
	.ascii	"httpd_dayo\000"
	.align	2
.LC4:
	.ascii	"Usage : %s -p [PORT_NUM] -n [PROC_NUM]\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	usage, %function
usage:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	beq	.L7
	ldr	r3, .L8
	ldr	r3, [r3]
	ldr	r2, [fp, #-8]
	ldr	r1, .L8+4
	mov	r0, r3
	bl	fprintf
.L7:
	ldr	r3, .L8+8
	ldr	r3, [r3]
	ldr	r2, .L8+12
	ldr	r1, .L8+16
	mov	r0, r3
	bl	fprintf
	mov	r0, #1
	bl	exit
.L9:
	.align	2
.L8:
	.word	stderr
	.word	.LC2
	.word	stdout
	.word	.LC3
	.word	.LC4
	.size	usage, .-usage
	.align	2
	.global	sigint_handler
	.syntax unified
	.arm
	.fpu softvfp
	.type	sigint_handler, %function
sigint_handler:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #20
	str	r0, [fp, #-8]
	str	r1, [fp, #-12]
	str	r2, [fp, #-16]
	nop
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	sigint_handler, .-sigint_handler
	.align	2
	.global	set_proc_info
	.syntax unified
	.arm
	.fpu softvfp
	.type	set_proc_info, %function
set_proc_info:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	str	r0, [fp, #-8]
	bl	getpid
	mov	r2, r0
	ldr	r3, [fp, #-8]
	str	r2, [r3, #12]
	bl	getppid
	mov	r2, r0
	ldr	r3, [fp, #-8]
	str	r2, [r3, #16]
	bl	getuid
	mov	r2, r0
	ldr	r3, [fp, #-8]
	str	r2, [r3, #8]
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	set_proc_info, .-set_proc_info
	.section	.rodata
	.align	2
.LC5:
	.ascii	"port invalid number\012\000"
	.align	2
.LC6:
	.ascii	"proc_num invalid number\012\000"
	.align	2
.LC7:
	.ascii	"proc_num invalid too many!!\000"
	.align	2
.LC8:
	.ascii	"p:n:\000"
	.align	2
.LC9:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	opt_parse
	.syntax unified
	.arm
	.fpu softvfp
	.type	opt_parse, %function
opt_parse:
	@ args = 0, pretend = 0, frame = 40
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #40
	str	r0, [fp, #-32]
	str	r1, [fp, #-36]
	str	r2, [fp, #-40]
	ldr	r3, .L27
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-24]
	mov	r3, #0
	str	r3, [fp, #-20]
	ldr	r0, [fp, #-40]
	bl	set_proc_info
	ldr	r3, [fp, #-40]
	ldr	r2, .L27+4
	str	r2, [r3]
	ldr	r3, [fp, #-40]
	mov	r2, #1
	str	r2, [r3, #4]
	b	.L15
.L23:
	ldr	r3, [fp, #-24]
	cmp	r3, #110
	beq	.L16
	ldr	r3, [fp, #-24]
	cmp	r3, #112
	bne	.L26
	mov	r3, #1
	str	r3, [fp, #-16]
	ldr	r3, .L27+8
	ldr	r3, [r3]
	sub	r1, fp, #28
	mov	r2, #10
	mov	r0, r3
	bl	strtoul
	mov	r3, r0
	mov	r2, r3
	ldr	r3, [fp, #-40]
	str	r2, [r3]
	ldr	r3, [fp, #-28]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L18
	ldr	r3, [fp, #-40]
	ldr	r3, [r3]
	cmn	r3, #-2147483647
	bne	.L15
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	cmp	r3, #34
	bne	.L15
.L18:
	ldr	r0, .L27+12
	bl	usage
	b	.L15
.L16:
	mov	r3, #1
	str	r3, [fp, #-12]
	ldr	r3, .L27+8
	ldr	r3, [r3]
	sub	r1, fp, #28
	mov	r2, #10
	mov	r0, r3
	bl	strtoul
	mov	r3, r0
	mov	r2, r3
	ldr	r3, [fp, #-40]
	str	r2, [r3, #4]
	ldr	r3, [fp, #-28]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L20
	ldr	r3, [fp, #-40]
	ldr	r3, [r3, #4]
	cmn	r3, #-2147483647
	bne	.L21
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	cmp	r3, #34
	bne	.L21
.L20:
	ldr	r0, .L27+16
	bl	usage
	b	.L22
.L21:
	ldr	r3, [fp, #-40]
	ldr	r3, [r3, #4]
	cmp	r3, #10
	ble	.L15
	ldr	r0, .L27+20
	bl	usage
.L22:
	b	.L15
.L26:
	nop
.L15:
	ldr	r2, .L27+24
	ldr	r1, [fp, #-36]
	ldr	r0, [fp, #-32]
	bl	getopt
	str	r0, [fp, #-24]
	ldr	r3, [fp, #-24]
	cmn	r3, #1
	bne	.L23
	mov	r3, #0
	ldr	r2, .L27
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L25
	bl	__stack_chk_fail
.L25:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L28:
	.align	2
.L27:
	.word	.LC9
	.word	8080
	.word	optarg
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.size	opt_parse, .-opt_parse
	.section	.rodata
	.align	2
.LC10:
	.ascii	"socket() failed.\000"
	.align	2
.LC11:
	.ascii	"bind() failed.\000"
	.align	2
.LC12:
	.ascii	"listen() failed.\000"
	.align	2
.LC13:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	port_binding
	.syntax unified
	.arm
	.fpu softvfp
	.type	port_binding, %function
port_binding:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #32
	str	r0, [fp, #-32]
	ldr	r3, .L35
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r2, #6
	mov	r1, #1
	mov	r0, #2
	bl	socket
	str	r0, [fp, #-28]
	ldr	r3, [fp, #-28]
	cmp	r3, #0
	bge	.L30
	ldr	r0, .L35+4
	bl	usage
.L30:
	sub	r3, fp, #24
	mov	r2, #16
	mov	r1, #0
	mov	r0, r3
	bl	memset
	mov	r3, #2
	strh	r3, [fp, #-24]	@ movhi
	mov	r0, #0
	bl	htonl
	mov	r3, r0
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-32]
	ldr	r3, [r3]
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	mov	r0, r3
	bl	htons
	mov	r3, r0
	strh	r3, [fp, #-22]	@ movhi
	sub	r3, fp, #24
	mov	r2, #16
	mov	r1, r3
	ldr	r0, [fp, #-28]
	bl	bind
	mov	r3, r0
	cmp	r3, #0
	bge	.L31
	ldr	r0, .L35+8
	bl	usage
.L31:
	mov	r1, #60
	ldr	r0, [fp, #-28]
	bl	listen
	mov	r3, r0
	cmp	r3, #0
	bge	.L32
	ldr	r0, .L35+12
	bl	usage
.L32:
	ldr	r3, [fp, #-28]
	ldr	r2, .L35
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L34
	bl	__stack_chk_fail
.L34:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L36:
	.align	2
.L35:
	.word	.LC13
	.word	.LC10
	.word	.LC11
	.word	.LC12
	.size	port_binding, .-port_binding
	.section	.rodata
	.align	2
.LC14:
	.ascii	"fork() failed.\000"
	.align	2
.LC15:
	.ascii	"accept() failed.\000"
	.align	2
.LC16:
	.ascii	"connected from %s.\012\000"
	.align	2
.LC17:
	.ascii	"%d\012\000"
	.align	2
.LC18:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	continue_use_port
	.syntax unified
	.arm
	.fpu softvfp
	.type	continue_use_port, %function
continue_use_port:
	@ args = 0, pretend = 0, frame = 56
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #56
	str	r0, [fp, #-56]
	str	r1, [fp, #-60]
	ldr	r3, .L48
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, [fp, #-60]
	lsl	r3, r3, #2
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	mov	r2, r3
	ldr	r3, .L48+4
	str	r2, [r3]
	mov	r3, #0
	str	r3, [fp, #-40]
	b	.L38
.L43:
	bl	fork
	mov	r3, r0
	str	r3, [fp, #-32]
	ldr	r3, [fp, #-32]
	cmn	r3, #1
	bne	.L39
	ldr	r0, .L48+8
	bl	usage
.L39:
	ldr	r3, [fp, #-32]
	cmp	r3, #0
	bne	.L40
	mov	r3, #16
	str	r3, [fp, #-44]
	sub	r2, fp, #44
	sub	r3, fp, #24
	mov	r1, r3
	ldr	r0, [fp, #-56]
	bl	accept
	str	r0, [fp, #-28]
	ldr	r3, [fp, #-28]
	cmp	r3, #0
	bge	.L41
	ldr	r0, .L48+12
	bl	usage
.L41:
	ldr	r0, [fp, #-20]
	bl	inet_ntoa
	mov	r3, r0
	mov	r1, r3
	ldr	r0, .L48+16
	bl	printf
	ldr	r0, [fp, #-28]
	bl	close
	b	.L42
.L40:
	ldr	r3, .L48+4
	ldr	r2, [r3]
	ldr	r3, [fp, #-40]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r2, [fp, #-32]
	str	r2, [r3]
	ldr	r3, .L48+20
	ldr	r0, [r3]
	ldr	r3, .L48+4
	ldr	r2, [r3]
	ldr	r3, [fp, #-40]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r2, r3
	ldr	r1, .L48+24
	bl	fprintf
	nop
.L42:
	ldr	r3, [fp, #-40]
	add	r3, r3, #1
	str	r3, [fp, #-40]
.L38:
	ldr	r2, [fp, #-40]
	ldr	r3, [fp, #-60]
	cmp	r2, r3
	blt	.L43
	sub	r3, fp, #48
	mov	r0, r3
	bl	wait
	str	r0, [fp, #-36]
	ldr	r3, .L48+4
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L47
	ldr	r3, .L48+4
	ldr	r3, [r3]
	mov	r0, r3
	bl	free
	nop
.L47:
	nop
	ldr	r3, .L48
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L46
	bl	__stack_chk_fail
.L46:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L49:
	.align	2
.L48:
	.word	.LC18
	.word	c_pid_list
	.word	.LC14
	.word	.LC15
	.word	.LC16
	.word	stdout
	.word	.LC17
	.size	continue_use_port, .-continue_use_port
	.section	.rodata
	.align	2
.LC19:
	.ascii	"sigaction() failed.\000"
	.align	2
.LC20:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	set_signal_handler
	.syntax unified
	.arm
	.fpu softvfp
	.type	set_signal_handler, %function
set_signal_handler:
	@ args = 0, pretend = 0, frame = 144
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #144
	ldr	r3, .L55
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	sub	r3, fp, #148
	mov	r2, #140
	mov	r1, #0
	mov	r0, r3
	bl	memset
	ldr	r3, .L55+4
	str	r3, [fp, #-148]
	mov	r3, #4
	str	r3, [fp, #-16]
	sub	r3, fp, #148
	mov	r2, #0
	mov	r1, r3
	mov	r0, #2
	bl	sigaction
	mov	r3, r0
	cmp	r3, #0
	bge	.L54
	ldr	r0, .L55+8
	bl	usage
	nop
.L54:
	nop
	ldr	r3, .L55
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L53
	bl	__stack_chk_fail
.L53:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L56:
	.align	2
.L55:
	.word	.LC20
	.word	sigint_handler
	.word	.LC19
	.size	set_signal_handler, .-set_signal_handler
	.section	.rodata
	.align	2
.LC21:
	.ascii	"UID PORT PROC_NUM PID  PPID\012\000"
	.align	2
.LC22:
	.ascii	"%3d %-4d %-8d %d %d\012\000"
	.align	2
.LC23:
	.ascii	"port_binding() faild.\000"
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #32
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	mov	r3, #0
	str	r3, [fp, #-12]
	mov	r0, #20
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-8]
	bl	set_signal_handler
	ldr	r2, [fp, #-8]
	ldr	r1, [fp, #-20]
	ldr	r0, [fp, #-16]
	bl	opt_parse
	ldr	r3, .L60
	ldr	r3, [r3]
	mov	r2, #28
	mov	r1, #1
	ldr	r0, .L60+4
	bl	fwrite
	ldr	r3, .L60
	ldr	r0, [r3]
	ldr	r3, [fp, #-8]
	ldr	ip, [r3, #8]
	ldr	r3, [fp, #-8]
	ldr	lr, [r3]
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #4]
	ldr	r2, [fp, #-8]
	ldr	r2, [r2, #12]
	ldr	r1, [fp, #-8]
	ldr	r1, [r1, #16]
	str	r1, [sp, #8]
	str	r2, [sp, #4]
	str	r3, [sp]
	mov	r3, lr
	mov	r2, ip
	ldr	r1, .L60+8
	bl	fprintf
	ldr	r3, .L60
	ldr	r3, [r3]
	mov	r0, r3
	bl	fflush
	ldr	r0, [fp, #-8]
	bl	port_binding
	str	r0, [fp, #-12]
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	bne	.L58
	ldr	r0, .L60+12
	bl	usage
.L58:
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #4]
	mov	r1, r3
	ldr	r0, [fp, #-12]
	bl	continue_use_port
	mov	r3, #0
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L61:
	.align	2
.L60:
	.word	stdout
	.word	.LC21
	.word	.LC22
	.word	.LC23
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
