	.file	"587130.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
	.align 8
.LC0:
	.string	"Usage: health_check -d debug -I interface\n"
	.text
	.type	usage, @function
usage:
.LFB6:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 42
	mov	esi, 1
	lea	rdi, .LC0[rip]
	call	fwrite@PLT
	mov	edi, 2
	call	exit@PLT
	.cfi_endproc
.LFE6:
	.size	usage, .-usage
	.section	.rodata
.LC1:
	.string	"h?I:d"
	.align 8
.LC2:
	.string	"Failed to get socket descriptor "
.LC3:
	.string	"%s"
.LC4:
	.string	"SO_BINDTODEVICE failed"
.LC5:
	.string	"Binding to interface %s\n"
.LC6:
	.string	"recvfrom failed "
.LC7:
	.string	"inet_ntop() failed."
.LC8:
	.string	"ICMP Echo request from %s\n"
.LC9:
	.string	"Unsupported protocol %d"
.LC10:
	.string	"sendto failed "
	.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
	lea	r11, -65536[rsp]
.LPSRL0:
	sub	rsp, 4096
	or	DWORD PTR [rsp], 0
	cmp	rsp, r11
	jne	.LPSRL0
	sub	rsp, 208
	mov	DWORD PTR -65732[rbp], edi
	mov	QWORD PTR -65744[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	QWORD PTR -65704[rbp], 0
	mov	BYTE PTR -65725[rbp], 0
	jmp	.L3
.L7:
	cmp	DWORD PTR -65720[rbp], 73
	je	.L4
	cmp	DWORD PTR -65720[rbp], 100
	je	.L5
	jmp	.L20
.L4:
	mov	rax, QWORD PTR optarg[rip]
	mov	QWORD PTR -65704[rbp], rax
	jmp	.L3
.L5:
	mov	BYTE PTR -65725[rbp], 1
	jmp	.L3
.L20:
	call	usage
	nop
.L3:
	mov	rcx, QWORD PTR -65744[rbp]
	mov	eax, DWORD PTR -65732[rbp]
	lea	rdx, .LC1[rip]
	mov	rsi, rcx
	mov	edi, eax
	call	getopt@PLT
	mov	DWORD PTR -65720[rbp], eax
	cmp	DWORD PTR -65720[rbp], -1
	jne	.L7
	mov	eax, DWORD PTR optind[rip]
	sub	DWORD PTR -65732[rbp], eax
	mov	eax, DWORD PTR optind[rip]
	cdqe
	sal	rax, 3
	add	QWORD PTR -65744[rbp], rax
	cmp	QWORD PTR -65704[rbp], 0
	jne	.L8
	call	usage
.L8:
	mov	edx, 4
	mov	esi, 3
	mov	edi, 10
	call	socket@PLT
	mov	DWORD PTR -65716[rbp], eax
	cmp	DWORD PTR -65716[rbp], 0
	jns	.L9
	lea	rdi, .LC2[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L9:
	lea	rax, -65648[rbp]
	mov	edx, 40
	mov	esi, 0
	mov	rdi, rax
	mov	eax, 0
	call	clib_memset@PLT
	mov	rdx, QWORD PTR -65704[rbp]
	lea	rax, -65648[rbp]
	mov	rcx, rdx
	lea	rdx, .LC3[rip]
	mov	esi, 16
	mov	rdi, rax
	mov	eax, 0
	call	snprintf@PLT
	lea	rdx, -65648[rbp]
	mov	eax, DWORD PTR -65716[rbp]
	mov	r8d, 40
	mov	rcx, rdx
	mov	edx, 25
	mov	esi, 1
	mov	edi, eax
	call	setsockopt@PLT
	test	eax, eax
	jns	.L10
	lea	rdi, .LC4[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L10:
	cmp	BYTE PTR -65725[rbp], 0
	je	.L18
	mov	rax, QWORD PTR -65704[rbp]
	mov	rsi, rax
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	printf@PLT
.L18:
	mov	DWORD PTR -65724[rbp], 28
	lea	rcx, -65724[rbp]
	lea	rdx, -65680[rbp]
	lea	rsi, -65552[rbp]
	mov	eax, DWORD PTR -65716[rbp]
	mov	r9, rcx
	mov	r8, rdx
	mov	ecx, 0
	mov	edx, 65535
	mov	edi, eax
	call	recvfrom@PLT
	mov	DWORD PTR -65712[rbp], eax
	cmp	DWORD PTR -65712[rbp], 0
	jns	.L12
	lea	rdi, .LC6[rip]
	call	perror@PLT
.L12:
	lea	rax, -65600[rbp]
	lea	rdx, -65680[rbp]
	lea	rsi, 8[rdx]
	mov	ecx, 46
	mov	rdx, rax
	mov	edi, 10
	call	inet_ntop@PLT
	test	rax, rax
	jne	.L13
	lea	rdi, .LC7[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L13:
	lea	rax, -65552[rbp]
	mov	QWORD PTR -65696[rbp], rax
	mov	rax, QWORD PTR -65696[rbp]
	mov	eax, DWORD PTR 12[rax]
	mov	DWORD PTR -65708[rbp], eax
	mov	rax, QWORD PTR -65696[rbp]
	mov	edx, DWORD PTR 16[rax]
	mov	rax, QWORD PTR -65696[rbp]
	mov	DWORD PTR 12[rax], edx
	mov	rax, QWORD PTR -65696[rbp]
	mov	edx, DWORD PTR -65708[rbp]
	mov	DWORD PTR 16[rax], edx
	mov	rax, QWORD PTR -65696[rbp]
	movzx	eax, BYTE PTR 9[rax]
	movzx	eax, al
	cmp	eax, 1
	jne	.L14
	cmp	BYTE PTR -65725[rbp], 0
	je	.L15
	lea	rax, -65600[rbp]
	mov	rsi, rax
	lea	rdi, .LC8[rip]
	mov	eax, 0
	call	printf@PLT
.L15:
	mov	rax, QWORD PTR -65696[rbp]
	add	rax, 20
	mov	QWORD PTR -65688[rbp], rax
	mov	rax, QWORD PTR -65688[rbp]
	mov	BYTE PTR [rax], 0
	jmp	.L16
.L14:
	mov	rax, QWORD PTR -65696[rbp]
	movzx	eax, BYTE PTR 9[rax]
	movzx	edx, al
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC9[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
.L16:
	mov	edi, DWORD PTR -65724[rbp]
	mov	eax, DWORD PTR -65712[rbp]
	movsx	rdx, eax
	lea	rcx, -65680[rbp]
	lea	rsi, -65552[rbp]
	mov	eax, DWORD PTR -65716[rbp]
	mov	r9d, edi
	mov	r8, rcx
	mov	ecx, 0
	mov	edi, eax
	call	sendto@PLT
	shr	rax, 63
	movzx	eax, al
	mov	DWORD PTR -65712[rbp], eax
	cmp	DWORD PTR -65712[rbp], 0
	je	.L18
	lea	rdi, .LC10[rip]
	call	perror@PLT
	jmp	.L18
	.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	"587130.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"Usage: health_check -d debug -I interface\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	usage, %function
usage:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	ldr	r3, .L2
	ldr	r3, [r3]
	mov	r2, #42
	mov	r1, #1
	ldr	r0, .L2+4
	bl	fwrite
	mov	r0, #2
	bl	exit
.L3:
	.align	2
.L2:
	.word	stderr
	.word	.LC0
	.size	usage, .-usage
	.section	.rodata
	.align	2
.LC1:
	.ascii	"h?I:d\000"
	.align	2
.LC2:
	.ascii	"Failed to get socket descriptor \000"
	.align	2
.LC3:
	.ascii	"%s\000"
	.align	2
.LC4:
	.ascii	"SO_BINDTODEVICE failed\000"
	.align	2
.LC5:
	.ascii	"Binding to interface %s\012\000"
	.align	2
.LC6:
	.ascii	"recvfrom failed \000"
	.align	2
.LC7:
	.ascii	"inet_ntop() failed.\000"
	.align	2
.LC8:
	.ascii	"ICMP Echo request from %s\012\000"
	.align	2
.LC9:
	.ascii	"Unsupported protocol %d\000"
	.align	2
.LC10:
	.ascii	"sendto failed \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 = 65696
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #65536
	sub	sp, sp, #172
	sub	r3, fp, #65536
	sub	r3, r3, #12
	str	r0, [r3, #-156]
	sub	r3, fp, #65536
	sub	r3, r3, #12
	str	r1, [r3, #-160]
	ldr	r3, .L23
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	sub	r3, fp, #65536
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-140]
	sub	r3, fp, #65536
	sub	r3, r3, #12
	mov	r2, #0
	strb	r2, [r3, #-145]
	b	.L5
.L9:
	sub	r3, fp, #65536
	sub	r3, r3, #12
	ldr	r3, [r3, #-136]
	cmp	r3, #73
	beq	.L6
	sub	r3, fp, #65536
	sub	r3, r3, #12
	ldr	r3, [r3, #-136]
	cmp	r3, #100
	beq	.L7
	b	.L22
.L6:
	sub	r3, fp, #65536
	sub	r3, r3, #12
	mov	r2, r3
	ldr	r3, .L23+4
	ldr	r3, [r3]
	str	r3, [r2, #-140]
	b	.L5
.L7:
	sub	r3, fp, #65536
	sub	r3, r3, #12
	mov	r2, #1
	strb	r2, [r3, #-145]
	b	.L5
.L22:
	bl	usage
	nop
.L5:
	sub	r3, fp, #65536
	sub	r3, r3, #12
	mov	r4, r3
	sub	r3, fp, #65536
	sub	r3, r3, #12
	mov	r1, r3
	sub	r3, fp, #65536
	sub	r3, r3, #12
	ldr	r2, .L23+8
	ldr	r1, [r1, #-160]
	ldr	r0, [r3, #-156]
	bl	getopt
	str	r0, [r4, #-136]
	sub	r3, fp, #65536
	sub	r3, r3, #12
	ldr	r3, [r3, #-136]
	cmn	r3, #1
	bne	.L9
	ldr	r3, .L23+12
	ldr	r3, [r3]
	sub	r2, fp, #65536
	sub	r2, r2, #12
	mov	r1, r2
	sub	r2, fp, #65536
	sub	r2, r2, #12
	ldr	r2, [r2, #-156]
	sub	r3, r2, r3
	str	r3, [r1, #-156]
	ldr	r3, .L23+12
	ldr	r3, [r3]
	lsl	r3, r3, #2
	sub	r2, fp, #65536
	sub	r2, r2, #12
	mov	r1, r2
	sub	r2, fp, #65536
	sub	r2, r2, #12
	ldr	r2, [r2, #-160]
	add	r3, r2, r3
	str	r3, [r1, #-160]
	sub	r3, fp, #65536
	sub	r3, r3, #12
	ldr	r3, [r3, #-140]
	cmp	r3, #0
	bne	.L10
	bl	usage
.L10:
	sub	r3, fp, #65536
	sub	r3, r3, #12
	mov	r4, r3
	mov	r2, #4
	mov	r1, #3
	mov	r0, #10
	bl	socket
	str	r0, [r4, #-132]
	sub	r3, fp, #65536
	sub	r3, r3, #12
	ldr	r3, [r3, #-132]
	cmp	r3, #0
	bge	.L11
	ldr	r0, .L23+16
	bl	perror
	mov	r0, #1
	bl	exit
.L11:
	sub	r3, fp, #65536
	sub	r3, r3, #12
	sub	r3, r3, #84
	mov	r2, #32
	mov	r1, #0
	mov	r0, r3
	bl	clib_memset
	sub	r3, fp, #65536
	sub	r3, r3, #12
	sub	r0, fp, #65536
	sub	r0, r0, #12
	sub	r0, r0, #84
	ldr	r3, [r3, #-140]
	ldr	r2, .L23+20
	mov	r1, #16
	bl	snprintf
	sub	r3, fp, #65536
	sub	r3, r3, #12
	sub	r3, r3, #84
	sub	r2, fp, #65536
	sub	r2, r2, #12
	mov	r0, r2
	mov	r2, #32
	str	r2, [sp]
	mov	r2, #25
	mov	r1, #1
	ldr	r0, [r0, #-132]
	bl	setsockopt
	mov	r3, r0
	cmp	r3, #0
	bge	.L12
	ldr	r0, .L23+24
	bl	perror
	mov	r0, #1
	bl	exit
.L12:
	sub	r3, fp, #65536
	sub	r3, r3, #12
	ldrb	r3, [r3, #-145]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L20
	sub	r3, fp, #65536
	sub	r3, r3, #12
	ldr	r1, [r3, #-140]
	ldr	r0, .L23+28
	bl	printf
.L20:
	sub	r3, fp, #65536
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #28
	str	r3, [r2, #-144]
	sub	r3, fp, #65536
	sub	r3, r3, #12
	mov	r4, r3
	sub	r1, fp, #65536
	sub	r1, r1, #12
	sub	r1, r1, #4
	sub	r3, fp, #65536
	sub	r3, r3, #12
	mov	r0, r3
	sub	r3, fp, #65536
	sub	r3, r3, #12
	sub	r3, r3, #144
	str	r3, [sp, #4]
	sub	r3, fp, #65536
	sub	r3, r3, #12
	sub	r3, r3, #112
	str	r3, [sp]
	mov	r3, #0
	ldr	r2, .L23+32
	ldr	r0, [r0, #-132]
	bl	recvfrom
	str	r0, [r4, #-128]
	sub	r3, fp, #65536
	sub	r3, r3, #12
	ldr	r3, [r3, #-128]
	cmp	r3, #0
	bge	.L14
	ldr	r0, .L23+36
	bl	perror
.L14:
	sub	r2, fp, #65536
	sub	r2, r2, #12
	sub	r2, r2, #52
	sub	r3, fp, #65536
	sub	r3, r3, #12
	sub	r3, r3, #112
	add	r1, r3, #8
	mov	r3, #46
	mov	r0, #10
	bl	inet_ntop
	mov	r3, r0
	cmp	r3, #0
	bne	.L15
	ldr	r0, .L23+40
	bl	perror
	mov	r0, #1
	bl	exit
.L15:
	sub	r3, fp, #65536
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #65536
	sub	r3, r3, #12
	sub	r3, r3, #4
	str	r3, [r2, #-124]
	sub	r3, fp, #65536
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #65536
	sub	r3, r3, #12
	ldr	r3, [r3, #-124]
	ldr	r3, [r3, #12]
	str	r3, [r2, #-120]
	sub	r3, fp, #65536
	sub	r3, r3, #12
	ldr	r3, [r3, #-124]
	ldr	r2, [r3, #16]
	sub	r3, fp, #65536
	sub	r3, r3, #12
	ldr	r3, [r3, #-124]
	str	r2, [r3, #12]
	sub	r3, fp, #65536
	sub	r3, r3, #12
	ldr	r3, [r3, #-124]
	sub	r2, fp, #65536
	sub	r2, r2, #12
	ldr	r2, [r2, #-120]
	str	r2, [r3, #16]
	sub	r3, fp, #65536
	sub	r3, r3, #12
	ldr	r3, [r3, #-124]
	ldrb	r3, [r3, #9]	@ zero_extendqisi2
	cmp	r3, #1
	bne	.L16
	sub	r3, fp, #65536
	sub	r3, r3, #12
	ldrb	r3, [r3, #-145]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L17
	sub	r3, fp, #65536
	sub	r3, r3, #12
	sub	r3, r3, #52
	mov	r1, r3
	ldr	r0, .L23+44
	bl	printf
.L17:
	sub	r3, fp, #65536
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #65536
	sub	r3, r3, #12
	ldr	r3, [r3, #-124]
	add	r3, r3, #20
	str	r3, [r2, #-116]
	sub	r3, fp, #65536
	sub	r3, r3, #12
	ldr	r3, [r3, #-116]
	mov	r2, #0
	strb	r2, [r3]
	b	.L18
.L16:
	ldr	r3, .L23+48
	ldr	r0, [r3]
	sub	r3, fp, #65536
	sub	r3, r3, #12
	ldr	r3, [r3, #-124]
	ldrb	r3, [r3, #9]	@ zero_extendqisi2
	mov	r2, r3
	ldr	r1, .L23+52
	bl	fprintf
.L18:
	sub	r3, fp, #65536
	sub	r3, r3, #12
	ldr	r2, [r3, #-128]
	sub	r3, fp, #65536
	sub	r3, r3, #12
	ldr	r3, [r3, #-144]
	sub	r1, fp, #65536
	sub	r1, r1, #12
	sub	r1, r1, #4
	sub	r0, fp, #65536
	sub	r0, r0, #12
	str	r3, [sp, #4]
	sub	r3, fp, #65536
	sub	r3, r3, #12
	sub	r3, r3, #112
	str	r3, [sp]
	mov	r3, #0
	ldr	r0, [r0, #-132]
	bl	sendto
	mov	r3, r0
	lsr	r3, r3, #31
	and	r3, r3, #255
	sub	r2, fp, #65536
	sub	r2, r2, #12
	str	r3, [r2, #-128]
	sub	r3, fp, #65536
	sub	r3, r3, #12
	ldr	r3, [r3, #-128]
	cmp	r3, #0
	beq	.L20
	ldr	r0, .L23+56
	bl	perror
	b	.L20
.L24:
	.align	2
.L23:
	.word	.LC11
	.word	optarg
	.word	.LC1
	.word	optind
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	65535
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.word	stderr
	.word	.LC9
	.word	.LC10
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
