	.file	"40962.c"
	.intel_syntax noprefix
	.text
	.globl	n_opt
	.data
	.align 4
	.type	n_opt, @object
	.size	n_opt, 4
n_opt:
	.long	10
	.globl	ip_arg
	.bss
	.align 8
	.type	ip_arg, @object
	.size	ip_arg, 8
ip_arg:
	.zero	8
	.globl	i_opt
	.type	i_opt, @object
	.size	i_opt, 1
i_opt:
	.zero	1
	.globl	options
	.section	.rodata
.LC0:
	.string	"NUM"
.LC1:
	.string	"Transmission delay in seconds"
.LC2:
	.string	"Number of iterations"
	.section	.data.rel.local,"aw"
	.align 32
	.type	options, @object
	.size	options, 144
options:
	.quad	0
	.long	105
	.zero	4
	.quad	.LC0
	.long	0
	.zero	4
	.quad	.LC1
	.zero	8
	.quad	0
	.long	110
	.zero	4
	.quad	.LC0
	.long	0
	.zero	4
	.quad	.LC2
	.zero	8
	.quad	0
	.zero	40
	.section	.rodata
.LC3:
	.string	"error parsing option -%c"
.LC4:
	.string	"too few arguments"
.LC5:
	.string	"too many arguments"
	.text
	.type	parse_opt, @function
parse_opt:
.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, 48
	mov	DWORD PTR -20[rbp], edi
	mov	QWORD PTR -32[rbp], rsi
	mov	QWORD PTR -40[rbp], rdx
	mov	rax, QWORD PTR -40[rbp]
	mov	rax, QWORD PTR 40[rax]
	mov	QWORD PTR -8[rbp], rax
	cmp	QWORD PTR -32[rbp], 0
	je	.L2
	mov	rax, QWORD PTR -32[rbp]
	mov	edx, 10
	mov	esi, 0
	mov	rdi, rax
	call	strtol@PLT
	jmp	.L3
.L2:
	mov	eax, 0
.L3:
	mov	DWORD PTR -12[rbp], eax
	cmp	DWORD PTR -12[rbp], 0
	jg	.L4
	cmp	DWORD PTR -20[rbp], 105
	je	.L5
	cmp	DWORD PTR -20[rbp], 110
	jne	.L4
.L5:
	mov	rax, QWORD PTR stderr[rip]
	mov	edx, DWORD PTR -20[rbp]
	lea	rsi, .LC3[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	edi, 1
	call	exit@PLT
.L4:
	cmp	DWORD PTR -20[rbp], 16777217
	je	.L6
	cmp	DWORD PTR -20[rbp], 16777217
	jg	.L7
	cmp	DWORD PTR -20[rbp], 110
	je	.L8
	cmp	DWORD PTR -20[rbp], 110
	jg	.L7
	cmp	DWORD PTR -20[rbp], 0
	je	.L9
	cmp	DWORD PTR -20[rbp], 105
	jne	.L7
	mov	eax, DWORD PTR -12[rbp]
	mov	BYTE PTR i_opt[rip], al
	jmp	.L7
.L8:
	mov	eax, DWORD PTR -12[rbp]
	mov	DWORD PTR n_opt[rip], eax
	jmp	.L7
.L9:
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR [rax]
	test	eax, eax
	jle	.L10
	mov	rax, QWORD PTR -32[rbp]
	mov	QWORD PTR ip_arg[rip], rax
.L10:
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR [rax]
	lea	edx, -1[rax]
	mov	rax, QWORD PTR -8[rbp]
	mov	DWORD PTR [rax], edx
	jmp	.L7
.L6:
	mov	edi, 10
	call	putchar@PLT
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR [rax]
	test	eax, eax
	jle	.L11
	mov	rax, QWORD PTR -40[rbp]
	lea	rcx, .LC4[rip]
	mov	edx, 0
	mov	esi, 1
	mov	rdi, rax
	mov	eax, 0
	call	argp_failure@PLT
	jmp	.L14
.L11:
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR [rax]
	test	eax, eax
	jns	.L14
	mov	rax, QWORD PTR -40[rbp]
	lea	rcx, .LC5[rip]
	mov	edx, 0
	mov	esi, 1
	mov	rdi, rax
	mov	eax, 0
	call	argp_failure@PLT
.L14:
	nop
.L7:
	mov	eax, 0
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	parse_opt, .-parse_opt
	.section	.rodata
.LC6:
	.string	"IP:PORT"
.LC7:
	.string	"failed to parse ip\n"
.LC8:
	.string	"socket failed\n"
.LC9:
	.string	"pton failed\n"
.LC10:
	.string	"connect failed\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, 160
	mov	DWORD PTR -148[rbp], edi
	mov	QWORD PTR -160[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -132[rbp], 1
	mov	QWORD PTR -112[rbp], 0
	mov	QWORD PTR -104[rbp], 0
	mov	QWORD PTR -96[rbp], 0
	mov	QWORD PTR -88[rbp], 0
	mov	QWORD PTR -80[rbp], 0
	mov	QWORD PTR -72[rbp], 0
	mov	QWORD PTR -64[rbp], 0
	mov	QWORD PTR -56[rbp], 0
	mov	QWORD PTR -48[rbp], 0
	lea	rax, options[rip]
	mov	QWORD PTR -96[rbp], rax
	lea	rax, parse_opt[rip]
	mov	QWORD PTR -88[rbp], rax
	lea	rax, .LC6[rip]
	mov	QWORD PTR -80[rbp], rax
	lea	rcx, -132[rbp]
	mov	rdx, QWORD PTR -160[rbp]
	mov	esi, DWORD PTR -148[rbp]
	lea	rax, -96[rbp]
	mov	r9, rcx
	mov	r8d, 0
	mov	ecx, 0
	mov	rdi, rax
	call	argp_parse@PLT
	mov	DWORD PTR -128[rbp], 0
	mov	rax, QWORD PTR ip_arg[rip]
	mov	rdi, rax
	call	strlen@PLT
	mov	DWORD PTR -120[rbp], eax
	jmp	.L16
.L19:
	mov	rdx, QWORD PTR ip_arg[rip]
	mov	eax, DWORD PTR -128[rbp]
	cdqe
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	cmp	al, 58
	jne	.L17
	mov	edi, 15
	call	malloc@PLT
	mov	QWORD PTR -112[rbp], rax
	mov	edi, 5
	call	malloc@PLT
	mov	QWORD PTR -104[rbp], rax
	mov	eax, DWORD PTR -128[rbp]
	movsx	rdx, eax
	mov	rcx, QWORD PTR ip_arg[rip]
	mov	rax, QWORD PTR -112[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	strncpy@PLT
	mov	eax, DWORD PTR -120[rbp]
	sub	eax, DWORD PTR -128[rbp]
	sub	eax, 1
	movsx	rdx, eax
	mov	rcx, QWORD PTR ip_arg[rip]
	mov	eax, DWORD PTR -128[rbp]
	cdqe
	add	rax, 1
	add	rcx, rax
	mov	rax, QWORD PTR -104[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	strncpy@PLT
	jmp	.L18
.L17:
	add	DWORD PTR -128[rbp], 1
.L16:
	mov	eax, DWORD PTR -128[rbp]
	cmp	eax, DWORD PTR -120[rbp]
	jl	.L19
.L18:
	cmp	QWORD PTR -112[rbp], 0
	je	.L20
	cmp	QWORD PTR -104[rbp], 0
	jne	.L21
.L20:
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 19
	mov	esi, 1
	lea	rdi, .LC7[rip]
	call	fwrite@PLT
	mov	edi, 1
	call	exit@PLT
.L21:
	mov	edx, 0
	mov	esi, 1
	mov	edi, 2
	call	socket@PLT
	mov	DWORD PTR -116[rbp], eax
	cmp	DWORD PTR -116[rbp], 0
	jns	.L22
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 14
	mov	esi, 1
	lea	rdi, .LC8[rip]
	call	fwrite@PLT
	mov	edi, 1
	call	exit@PLT
.L22:
	mov	WORD PTR -32[rbp], 2
	mov	rax, QWORD PTR -104[rbp]
	mov	edx, 10
	mov	esi, 0
	mov	rdi, rax
	call	strtol@PLT
	mov	WORD PTR -30[rbp], ax
	lea	rax, -32[rbp]
	lea	rdx, 4[rax]
	mov	rax, QWORD PTR -112[rbp]
	mov	rsi, rax
	mov	edi, 2
	call	inet_pton@PLT
	test	eax, eax
	jg	.L23
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 12
	mov	esi, 1
	lea	rdi, .LC9[rip]
	call	fwrite@PLT
	mov	edi, 1
	call	exit@PLT
.L23:
	lea	rcx, -32[rbp]
	mov	eax, DWORD PTR -116[rbp]
	mov	edx, 16
	mov	rsi, rcx
	mov	edi, eax
	call	connect@PLT
	test	eax, eax
	je	.L24
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 15
	mov	esi, 1
	lea	rdi, .LC10[rip]
	call	fwrite@PLT
	mov	edi, 1
	call	exit@PLT
.L24:
	mov	DWORD PTR -124[rbp], 0
	jmp	.L25
.L26:
	mov	eax, DWORD PTR -116[rbp]
	mov	ecx, 0
	mov	edx, 1
	lea	rsi, i_opt[rip]
	mov	edi, eax
	call	send@PLT
	movzx	eax, BYTE PTR i_opt[rip]
	movsx	eax, al
	mov	edi, eax
	call	sleep@PLT
	add	DWORD PTR -124[rbp], 1
.L25:
	mov	eax, DWORD PTR n_opt[rip]
	cmp	DWORD PTR -124[rbp], eax
	jl	.L26
	mov	eax, 0
	mov	rsi, QWORD PTR -8[rbp]
	sub	rsi, QWORD PTR fs:40
	je	.L28
	call	__stack_chk_fail@PLT
.L28:
	leave
	.cfi_def_cfa 7, 8
	ret
	.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	"40962.c"
	.text
	.global	n_opt
	.data
	.align	2
	.type	n_opt, %object
	.size	n_opt, 4
n_opt:
	.word	10
	.comm	ip_arg,4,4
	.comm	i_opt,1,1
	.global	options
	.section	.rodata
	.align	2
.LC0:
	.ascii	"NUM\000"
	.align	2
.LC1:
	.ascii	"Transmission delay in seconds\000"
	.align	2
.LC2:
	.ascii	"Number of iterations\000"
	.data
	.align	2
	.type	options, %object
	.size	options, 72
options:
	.word	0
	.word	105
	.word	.LC0
	.word	0
	.word	.LC1
	.space	4
	.word	0
	.word	110
	.word	.LC0
	.word	0
	.word	.LC2
	.space	4
	.word	0
	.space	20
	.section	.rodata
	.align	2
.LC3:
	.ascii	"error parsing option -%c\000"
	.align	2
.LC4:
	.ascii	"too few arguments\000"
	.align	2
.LC5:
	.ascii	"too many arguments\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	parse_opt, %function
parse_opt:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	str	r2, [fp, #-24]
	ldr	r3, [fp, #-24]
	ldr	r3, [r3, #28]
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	beq	.L2
	mov	r2, #10
	mov	r1, #0
	ldr	r0, [fp, #-20]
	bl	strtol
	mov	r3, r0
	b	.L3
.L2:
	mov	r3, #0
.L3:
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bgt	.L4
	ldr	r3, [fp, #-16]
	cmp	r3, #105
	beq	.L5
	ldr	r3, [fp, #-16]
	cmp	r3, #110
	bne	.L4
.L5:
	ldr	r3, .L15
	ldr	r3, [r3]
	ldr	r2, [fp, #-16]
	ldr	r1, .L15+4
	mov	r0, r3
	bl	fprintf
	mov	r0, #1
	bl	exit
.L4:
	ldr	r3, [fp, #-16]
	ldr	r2, .L15+8
	cmp	r3, r2
	beq	.L6
	ldr	r3, [fp, #-16]
	ldr	r2, .L15+8
	cmp	r3, r2
	bgt	.L7
	ldr	r3, [fp, #-16]
	cmp	r3, #110
	beq	.L8
	ldr	r3, [fp, #-16]
	cmp	r3, #110
	bgt	.L7
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	beq	.L9
	ldr	r3, [fp, #-16]
	cmp	r3, #105
	bne	.L7
	ldr	r3, [fp, #-8]
	and	r2, r3, #255
	ldr	r3, .L15+12
	strb	r2, [r3]
	b	.L7
.L8:
	ldr	r2, .L15+16
	ldr	r3, [fp, #-8]
	str	r3, [r2]
	b	.L7
.L9:
	ldr	r3, [fp, #-12]
	ldr	r3, [r3]
	cmp	r3, #0
	ble	.L10
	ldr	r2, .L15+20
	ldr	r3, [fp, #-20]
	str	r3, [r2]
.L10:
	ldr	r3, [fp, #-12]
	ldr	r3, [r3]
	sub	r2, r3, #1
	ldr	r3, [fp, #-12]
	str	r2, [r3]
	b	.L7
.L6:
	mov	r0, #10
	bl	putchar
	ldr	r3, [fp, #-12]
	ldr	r3, [r3]
	cmp	r3, #0
	ble	.L11
	ldr	r3, .L15+24
	mov	r2, #0
	mov	r1, #1
	ldr	r0, [fp, #-24]
	bl	argp_failure
	b	.L14
.L11:
	ldr	r3, [fp, #-12]
	ldr	r3, [r3]
	cmp	r3, #0
	bge	.L14
	ldr	r3, .L15+28
	mov	r2, #0
	mov	r1, #1
	ldr	r0, [fp, #-24]
	bl	argp_failure
.L14:
	nop
.L7:
	mov	r3, #0
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L16:
	.align	2
.L15:
	.word	stderr
	.word	.LC3
	.word	16777217
	.word	i_opt
	.word	n_opt
	.word	ip_arg
	.word	.LC4
	.word	.LC5
	.size	parse_opt, .-parse_opt
	.section	.rodata
	.align	2
.LC6:
	.ascii	"IP:PORT\000"
	.align	2
.LC7:
	.ascii	"failed to parse ip\012\000"
	.align	2
.LC8:
	.ascii	"socket failed\012\000"
	.align	2
.LC9:
	.ascii	"pton failed\012\000"
	.align	2
.LC10:
	.ascii	"connect failed\012\000"
	.align	2
.LC11:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 88
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #96
	str	r0, [fp, #-88]
	str	r1, [fp, #-92]
	ldr	r3, .L31
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #1
	str	r3, [fp, #-80]
	mov	r3, #0
	str	r3, [fp, #-76]
	mov	r3, #0
	str	r3, [fp, #-72]
	sub	r3, fp, #52
	mov	r2, #0
	str	r2, [r3]
	str	r2, [r3, #4]
	str	r2, [r3, #8]
	str	r2, [r3, #12]
	str	r2, [r3, #16]
	str	r2, [r3, #20]
	str	r2, [r3, #24]
	ldr	r3, .L31+4
	str	r3, [fp, #-52]
	ldr	r3, .L31+8
	str	r3, [fp, #-48]
	ldr	r3, .L31+12
	str	r3, [fp, #-44]
	sub	r0, fp, #52
	sub	r3, fp, #80
	str	r3, [sp, #4]
	mov	r3, #0
	str	r3, [sp]
	mov	r3, #0
	ldr	r2, [fp, #-92]
	ldr	r1, [fp, #-88]
	bl	argp_parse
	mov	r3, #0
	str	r3, [fp, #-68]
	ldr	r3, .L31+16
	ldr	r3, [r3]
	mov	r0, r3
	bl	strlen
	mov	r3, r0
	str	r3, [fp, #-60]
	b	.L18
.L21:
	ldr	r3, .L31+16
	ldr	r2, [r3]
	ldr	r3, [fp, #-68]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #58
	bne	.L19
	mov	r0, #15
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-76]
	mov	r0, #5
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-72]
	ldr	r3, .L31+16
	ldr	r3, [r3]
	ldr	r2, [fp, #-68]
	mov	r1, r3
	ldr	r0, [fp, #-76]
	bl	strncpy
	ldr	r3, .L31+16
	ldr	r2, [r3]
	ldr	r3, [fp, #-68]
	add	r3, r3, #1
	add	r1, r2, r3
	ldr	r2, [fp, #-60]
	ldr	r3, [fp, #-68]
	sub	r3, r2, r3
	sub	r3, r3, #1
	mov	r2, r3
	ldr	r0, [fp, #-72]
	bl	strncpy
	b	.L20
.L19:
	ldr	r3, [fp, #-68]
	add	r3, r3, #1
	str	r3, [fp, #-68]
.L18:
	ldr	r2, [fp, #-68]
	ldr	r3, [fp, #-60]
	cmp	r2, r3
	blt	.L21
.L20:
	ldr	r3, [fp, #-76]
	cmp	r3, #0
	beq	.L22
	ldr	r3, [fp, #-72]
	cmp	r3, #0
	bne	.L23
.L22:
	ldr	r3, .L31+20
	ldr	r3, [r3]
	mov	r2, #19
	mov	r1, #1
	ldr	r0, .L31+24
	bl	fwrite
	mov	r0, #1
	bl	exit
.L23:
	mov	r2, #0
	mov	r1, #1
	mov	r0, #2
	bl	socket
	str	r0, [fp, #-56]
	ldr	r3, [fp, #-56]
	cmp	r3, #0
	bge	.L24
	ldr	r3, .L31+20
	ldr	r3, [r3]
	mov	r2, #14
	mov	r1, #1
	ldr	r0, .L31+28
	bl	fwrite
	mov	r0, #1
	bl	exit
.L24:
	mov	r3, #2
	strh	r3, [fp, #-24]	@ movhi
	mov	r2, #10
	mov	r1, #0
	ldr	r0, [fp, #-72]
	bl	strtol
	mov	r3, r0
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	strh	r3, [fp, #-22]	@ movhi
	sub	r3, fp, #24
	add	r3, r3, #4
	mov	r2, r3
	ldr	r1, [fp, #-76]
	mov	r0, #2
	bl	inet_pton
	mov	r3, r0
	cmp	r3, #0
	bgt	.L25
	ldr	r3, .L31+20
	ldr	r3, [r3]
	mov	r2, #12
	mov	r1, #1
	ldr	r0, .L31+32
	bl	fwrite
	mov	r0, #1
	bl	exit
.L25:
	sub	r3, fp, #24
	mov	r2, #16
	mov	r1, r3
	ldr	r0, [fp, #-56]
	bl	connect
	mov	r3, r0
	cmp	r3, #0
	beq	.L26
	ldr	r3, .L31+20
	ldr	r3, [r3]
	mov	r2, #15
	mov	r1, #1
	ldr	r0, .L31+36
	bl	fwrite
	mov	r0, #1
	bl	exit
.L26:
	mov	r3, #0
	str	r3, [fp, #-64]
	b	.L27
.L28:
	mov	r3, #0
	mov	r2, #1
	ldr	r1, .L31+40
	ldr	r0, [fp, #-56]
	bl	send
	ldr	r3, .L31+40
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r0, r3
	bl	sleep
	ldr	r3, [fp, #-64]
	add	r3, r3, #1
	str	r3, [fp, #-64]
.L27:
	ldr	r3, .L31+44
	ldr	r3, [r3]
	ldr	r2, [fp, #-64]
	cmp	r2, r3
	blt	.L28
	mov	r3, #0
	ldr	r2, .L31
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L30
	bl	__stack_chk_fail
.L30:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L32:
	.align	2
.L31:
	.word	.LC11
	.word	options
	.word	parse_opt
	.word	.LC6
	.word	ip_arg
	.word	stderr
	.word	.LC7
	.word	.LC8
	.word	.LC9
	.word	.LC10
	.word	i_opt
	.word	n_opt
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
