	.file	"1115292.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
	.align 8
.LC0:
	.string	" version 1.1\n Syntax: mping <IPaddress1> <IPaddress2> .."
	.align 8
.LC1:
	.string	" -----------------------------------------------"
	.align 8
.LC2:
	.string	" A mping targets %d IP address:\n"
.LC3:
	.string	"  %s"
.LC4:
	.string	"%16s"
.LC5:
	.string	"%16d"
.LC6:
	.string	" <- NG out of %d\n"
.LC7:
	.string	"ping -n 1 %s"
.LC8:
	.string	"r"
.LC9:
	.string	"Can not exec ping. "
.LC10:
	.string	"TTL="
.LC11:
	.string	" "
.LC12:
	.string	"ms"
.LC13:
	.string	"      *** NG ***"
	.text
	.globl	main
	.type	main, @function
main:
.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, 400
	mov	DWORD PTR -388[rbp], edi
	mov	QWORD PTR -400[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -372[rbp], 0
	mov	DWORD PTR -368[rbp], 0
	mov	DWORD PTR -364[rbp], 0
	mov	QWORD PTR -336[rbp], 0
	mov	QWORD PTR -328[rbp], 0
	mov	QWORD PTR -320[rbp], 0
	mov	QWORD PTR -312[rbp], 0
	mov	QWORD PTR -304[rbp], 0
	mov	QWORD PTR -296[rbp], 0
	mov	QWORD PTR -288[rbp], 0
	mov	QWORD PTR -280[rbp], 0
	cmp	DWORD PTR -388[rbp], 1
	jg	.L2
	lea	rdi, .LC0[rip]
	call	puts@PLT
	mov	edi, -1
	call	exit@PLT
.L2:
	mov	eax, DWORD PTR -388[rbp]
	sub	eax, 1
	mov	DWORD PTR -364[rbp], eax
	lea	rdi, .LC1[rip]
	call	puts@PLT
	mov	eax, DWORD PTR -364[rbp]
	mov	esi, eax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rdi, .LC1[rip]
	call	puts@PLT
.L21:
	lea	rax, -360[rbp]
	mov	rdi, rax
	call	time@PLT
	cmp	DWORD PTR -368[rbp], 0
	jne	.L3
	lea	rax, -360[rbp]
	mov	rdi, rax
	call	ctime@PLT
	mov	rsi, rax
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	printf@PLT
	mov	DWORD PTR -372[rbp], 0
	jmp	.L4
.L5:
	mov	eax, DWORD PTR -372[rbp]
	cdqe
	add	rax, 1
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -400[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	rsi, rax
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	printf@PLT
	add	DWORD PTR -372[rbp], 1
.L4:
	mov	eax, DWORD PTR -372[rbp]
	cmp	eax, DWORD PTR -364[rbp]
	jl	.L5
	mov	edi, 10
	call	putchar@PLT
	mov	DWORD PTR -372[rbp], 0
	jmp	.L6
.L7:
	mov	eax, DWORD PTR -372[rbp]
	add	eax, 1
	cdqe
	mov	eax, DWORD PTR -336[rbp+rax*4]
	mov	esi, eax
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	printf@PLT
	add	DWORD PTR -372[rbp], 1
.L6:
	mov	eax, DWORD PTR -372[rbp]
	cmp	eax, DWORD PTR -364[rbp]
	jl	.L7
	mov	eax, DWORD PTR -336[rbp]
	mov	esi, eax
	lea	rdi, .LC6[rip]
	mov	eax, 0
	call	printf@PLT
.L3:
	mov	eax, DWORD PTR -368[rbp]
	lea	edx, 1[rax]
	mov	DWORD PTR -368[rbp], edx
	cmp	eax, 10
	jle	.L8
	mov	DWORD PTR -368[rbp], 0
.L8:
	mov	eax, DWORD PTR -336[rbp]
	add	eax, 1
	mov	DWORD PTR -336[rbp], eax
	mov	DWORD PTR -372[rbp], 0
	jmp	.L9
.L20:
	mov	eax, DWORD PTR -372[rbp]
	cdqe
	add	rax, 1
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -400[rbp]
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	lea	rax, -272[rbp]
	mov	rcx, rdx
	lea	rdx, .LC7[rip]
	mov	esi, 64
	mov	rdi, rax
	mov	eax, 0
	call	snprintf@PLT
	lea	rax, -272[rbp]
	lea	rsi, .LC8[rip]
	mov	rdi, rax
	call	popen@PLT
	mov	QWORD PTR -344[rbp], rax
	cmp	QWORD PTR -344[rbp], 0
	jne	.L10
	lea	rdi, .LC9[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, -1
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L22
	jmp	.L23
.L10:
	lea	rax, -144[rbp]
	mov	WORD PTR [rax], 18254
	mov	BYTE PTR 2[rax], 0
.L14:
	mov	rdx, QWORD PTR -344[rbp]
	lea	rax, -208[rbp]
	mov	esi, 64
	mov	rdi, rax
	call	fgets@PLT
	mov	QWORD PTR -352[rbp], rax
	lea	rax, -208[rbp]
	lea	rsi, .LC10[rip]
	mov	rdi, rax
	call	strstr@PLT
	test	rax, rax
	je	.L12
	lea	rdx, -208[rbp]
	lea	rax, -144[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcpy@PLT
	jmp	.L13
.L12:
	cmp	QWORD PTR -352[rbp], 0
	jne	.L14
.L13:
	mov	rax, QWORD PTR -344[rbp]
	mov	rdi, rax
	call	pclose@PLT
	mov	BYTE PTR -80[rbp], 0
	movzx	eax, BYTE PTR -144[rbp]
	cmp	al, 78
	je	.L15
	lea	rax, -144[rbp]
	lea	rsi, .LC11[rip]
	mov	rdi, rax
	call	strtok@PLT
	mov	QWORD PTR -352[rbp], rax
	jmp	.L16
.L18:
	lea	rsi, .LC11[rip]
	mov	edi, 0
	call	strtok@PLT
	mov	QWORD PTR -352[rbp], rax
	mov	rax, QWORD PTR -352[rbp]
	lea	rsi, .LC12[rip]
	mov	rdi, rax
	call	strstr@PLT
	test	rax, rax
	je	.L16
	mov	rax, QWORD PTR -352[rbp]
	mov	rsi, rax
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L19
.L16:
	cmp	QWORD PTR -352[rbp], 0
	jne	.L18
	jmp	.L19
.L15:
	lea	rdi, .LC13[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR -372[rbp]
	add	eax, 1
	movsx	rdx, eax
	mov	edx, DWORD PTR -336[rbp+rdx*4]
	add	edx, 1
	cdqe
	mov	DWORD PTR -336[rbp+rax*4], edx
.L19:
	add	DWORD PTR -372[rbp], 1
.L9:
	mov	eax, DWORD PTR -372[rbp]
	cmp	eax, DWORD PTR -364[rbp]
	jl	.L20
	mov	edi, 10
	call	putchar@PLT
	mov	edi, 1
	call	sleep@PLT
	jmp	.L21
.L23:
	call	__stack_chk_fail@PLT
.L22:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.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	"1115292.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	" version 1.1\012 Syntax: mping <IPaddress1> <IPaddr"
	.ascii	"ess2> ..\000"
	.align	2
.LC1:
	.ascii	" -----------------------------------------------\000"
	.align	2
.LC2:
	.ascii	" A mping targets %d IP address:\012\000"
	.align	2
.LC3:
	.ascii	"  %s\000"
	.align	2
.LC4:
	.ascii	"%16s\000"
	.align	2
.LC5:
	.ascii	"%16d\000"
	.align	2
.LC6:
	.ascii	" <- NG out of %d\012\000"
	.align	2
.LC7:
	.ascii	"ping -n 1 %s\000"
	.align	2
.LC8:
	.ascii	"r\000"
	.align	2
.LC9:
	.ascii	"Can not exec ping. \000"
	.align	2
.LC10:
	.ascii	"NG\000"
	.align	2
.LC11:
	.ascii	"TTL=\000"
	.align	2
.LC12:
	.ascii	" \000"
	.align	2
.LC13:
	.ascii	"ms\000"
	.align	2
.LC14:
	.ascii	"      *** NG ***\000"
	.align	2
.LC15:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 360
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #360
	str	r0, [fp, #-360]
	str	r1, [fp, #-364]
	ldr	r3, .L24
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-348]
	mov	r3, #0
	str	r3, [fp, #-344]
	mov	r3, #0
	str	r3, [fp, #-336]
	sub	r3, fp, #328
	mov	r2, #64
	mov	r1, #0
	mov	r0, r3
	bl	memset
	ldr	r3, [fp, #-360]
	cmp	r3, #1
	bgt	.L2
	ldr	r0, .L24+4
	bl	puts
	mvn	r0, #0
	bl	exit
.L2:
	ldr	r3, [fp, #-360]
	sub	r3, r3, #1
	str	r3, [fp, #-336]
	ldr	r0, .L24+8
	bl	puts
	ldr	r1, [fp, #-336]
	ldr	r0, .L24+12
	bl	printf
	ldr	r0, .L24+8
	bl	puts
.L21:
	sub	r3, fp, #352
	mov	r0, r3
	bl	time
	ldr	r3, [fp, #-344]
	cmp	r3, #0
	bne	.L3
	sub	r3, fp, #352
	mov	r0, r3
	bl	ctime
	mov	r3, r0
	mov	r1, r3
	ldr	r0, .L24+16
	bl	printf
	mov	r3, #0
	str	r3, [fp, #-348]
	b	.L4
.L5:
	ldr	r3, [fp, #-348]
	add	r3, r3, #1
	lsl	r3, r3, #2
	ldr	r2, [fp, #-364]
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L24+20
	bl	printf
	ldr	r3, [fp, #-348]
	add	r3, r3, #1
	str	r3, [fp, #-348]
.L4:
	ldr	r2, [fp, #-348]
	ldr	r3, [fp, #-336]
	cmp	r2, r3
	blt	.L5
	mov	r0, #10
	bl	putchar
	mov	r3, #0
	str	r3, [fp, #-348]
	b	.L6
.L7:
	ldr	r3, [fp, #-348]
	add	r3, r3, #1
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r3, [r3, #-324]
	mov	r1, r3
	ldr	r0, .L24+24
	bl	printf
	ldr	r3, [fp, #-348]
	add	r3, r3, #1
	str	r3, [fp, #-348]
.L6:
	ldr	r2, [fp, #-348]
	ldr	r3, [fp, #-336]
	cmp	r2, r3
	blt	.L7
	ldr	r3, [fp, #-328]
	mov	r1, r3
	ldr	r0, .L24+28
	bl	printf
.L3:
	ldr	r3, [fp, #-344]
	add	r2, r3, #1
	str	r2, [fp, #-344]
	cmp	r3, #10
	ble	.L8
	mov	r3, #0
	str	r3, [fp, #-344]
.L8:
	ldr	r3, [fp, #-328]
	add	r3, r3, #1
	str	r3, [fp, #-328]
	mov	r3, #0
	str	r3, [fp, #-348]
	b	.L9
.L20:
	ldr	r3, [fp, #-348]
	add	r3, r3, #1
	lsl	r3, r3, #2
	ldr	r2, [fp, #-364]
	add	r3, r2, r3
	ldr	r3, [r3]
	sub	r0, fp, #264
	ldr	r2, .L24+32
	mov	r1, #64
	bl	snprintf
	sub	r3, fp, #264
	ldr	r1, .L24+36
	mov	r0, r3
	bl	popen
	str	r0, [fp, #-332]
	ldr	r3, [fp, #-332]
	cmp	r3, #0
	bne	.L10
	ldr	r0, .L24+40
	bl	printf
	mvn	r3, #0
	ldr	r2, .L24
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L22
	b	.L23
.L10:
	sub	r3, fp, #136
	ldr	r2, .L24+44
	ldr	r2, [r2]
	strh	r2, [r3]	@ movhi
	add	r3, r3, #2
	lsr	r2, r2, #16
	strb	r2, [r3]
.L14:
	sub	r3, fp, #200
	ldr	r2, [fp, #-332]
	mov	r1, #64
	mov	r0, r3
	bl	fgets
	str	r0, [fp, #-340]
	sub	r3, fp, #200
	ldr	r1, .L24+48
	mov	r0, r3
	bl	strstr
	mov	r3, r0
	cmp	r3, #0
	beq	.L12
	sub	r2, fp, #200
	sub	r3, fp, #136
	mov	r1, r2
	mov	r0, r3
	bl	strcpy
	b	.L13
.L12:
	ldr	r3, [fp, #-340]
	cmp	r3, #0
	bne	.L14
.L13:
	ldr	r0, [fp, #-332]
	bl	pclose
	mov	r3, #0
	strb	r3, [fp, #-72]
	ldrb	r3, [fp, #-136]	@ zero_extendqisi2
	cmp	r3, #78
	beq	.L15
	sub	r3, fp, #136
	ldr	r1, .L24+52
	mov	r0, r3
	bl	strtok
	str	r0, [fp, #-340]
	b	.L16
.L18:
	ldr	r1, .L24+52
	mov	r0, #0
	bl	strtok
	str	r0, [fp, #-340]
	ldr	r1, .L24+56
	ldr	r0, [fp, #-340]
	bl	strstr
	mov	r3, r0
	cmp	r3, #0
	beq	.L16
	ldr	r1, [fp, #-340]
	ldr	r0, .L24+20
	bl	printf
	b	.L19
.L16:
	ldr	r3, [fp, #-340]
	cmp	r3, #0
	bne	.L18
	b	.L19
.L15:
	ldr	r0, .L24+60
	bl	printf
	ldr	r3, [fp, #-348]
	add	r2, r3, #1
	lsl	r3, r2, #2
	sub	r1, fp, #4
	add	r3, r1, r3
	ldr	r3, [r3, #-324]
	add	r1, r3, #1
	lsl	r3, r2, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	str	r1, [r3, #-324]
.L19:
	ldr	r3, [fp, #-348]
	add	r3, r3, #1
	str	r3, [fp, #-348]
.L9:
	ldr	r2, [fp, #-348]
	ldr	r3, [fp, #-336]
	cmp	r2, r3
	blt	.L20
	mov	r0, #10
	bl	putchar
	mov	r0, #1
	bl	sleep
	b	.L21
.L23:
	bl	__stack_chk_fail
.L22:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L25:
	.align	2
.L24:
	.word	.LC15
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.word	.LC9
	.word	.LC10
	.word	.LC11
	.word	.LC12
	.word	.LC13
	.word	.LC14
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
