	.file	"914192.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"usage : %s <IP address>\n"
.LC1:
	.string	"q"
	.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, 4096
	or	QWORD PTR [rsp], 0
	sub	rsp, 4096
	or	QWORD PTR [rsp], 0
	sub	rsp, 80
	mov	DWORD PTR -8260[rbp], edi
	mov	QWORD PTR -8272[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	cmp	DWORD PTR -8260[rbp], 2
	je	.L2
	mov	rax, QWORD PTR -8272[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rsi, rax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, -1
	jmp	.L5
.L2:
	mov	edx, 0
	mov	esi, 2
	mov	edi, 2
	call	socket@PLT
	mov	DWORD PTR -8248[rbp], eax
	lea	rax, -8240[rbp]
	mov	edx, 16
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	mov	WORD PTR -8240[rbp], 2
	mov	rax, QWORD PTR -8272[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	lea	rdx, -8240[rbp]
	add	rdx, 4
	mov	rsi, rax
	mov	edi, 2
	call	inet_pton@PLT
	mov	edi, 5100
	call	htons@PLT
	mov	WORD PTR -8238[rbp], ax
.L4:
	mov	rdx, QWORD PTR stdin[rip]
	lea	rax, -8208[rbp]
	mov	esi, 8192
	mov	rdi, rax
	call	fgets@PLT
	lea	rax, -8208[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	rdx, rax
	lea	rcx, -8240[rbp]
	lea	rsi, -8208[rbp]
	mov	eax, DWORD PTR -8248[rbp]
	mov	r9d, 16
	mov	r8, rcx
	mov	ecx, 0
	mov	edi, eax
	call	sendto@PLT
	mov	DWORD PTR -8252[rbp], 16
	lea	rcx, -8252[rbp]
	lea	rdx, -8224[rbp]
	lea	rsi, -8208[rbp]
	mov	eax, DWORD PTR -8248[rbp]
	mov	r9, rcx
	mov	r8, rdx
	mov	ecx, 0
	mov	edx, 8192
	mov	edi, eax
	call	recvfrom@PLT
	mov	DWORD PTR -8244[rbp], eax
	mov	eax, DWORD PTR -8244[rbp]
	cdqe
	mov	BYTE PTR -8208[rbp+rax], 0
	mov	rdx, QWORD PTR stdout[rip]
	lea	rax, -8208[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	fputs@PLT
	movzx	eax, BYTE PTR -8208[rbp]
	movzx	edx, BYTE PTR .LC1[rip]
	movzx	eax, al
	movzx	edx, dl
	sub	eax, edx
	test	eax, eax
	jne	.L4
	mov	eax, DWORD PTR -8248[rbp]
	mov	edi, eax
	call	close@PLT
	mov	eax, 0
.L5:
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L6
	call	__stack_chk_fail@PLT
.L6:
	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	"914192.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"usage : %s <IP address>\012\000"
	.align	2
.LC1:
	.ascii	"q\000"
	.align	2
.LC2:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 8248
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #8256
	sub	sp, sp, #4
	sub	r3, fp, #8192
	sub	r3, r3, #12
	str	r0, [r3, #-52]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	str	r1, [r3, #-56]
	ldr	r3, .L7
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-52]
	cmp	r3, #2
	beq	.L2
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-56]
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L7+4
	bl	printf
	mvn	r3, #0
	b	.L5
.L2:
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r4, r3
	mov	r2, #0
	mov	r1, #2
	mov	r0, #2
	bl	socket
	str	r0, [r4, #-44]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	sub	r3, r3, #36
	mov	r2, #16
	mov	r1, #0
	mov	r0, r3
	bl	memset
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r2, #2
	strh	r2, [r3, #-36]	@ movhi
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-56]
	add	r3, r3, #4
	ldr	r1, [r3]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	sub	r3, r3, #36
	add	r3, r3, #4
	mov	r2, r3
	mov	r0, #2
	bl	inet_pton
	ldr	r0, .L7+8
	bl	htons
	mov	r3, r0
	mov	r2, r3
	sub	r3, fp, #8192
	sub	r3, r3, #12
	strh	r2, [r3, #-34]	@ movhi
.L4:
	ldr	r3, .L7+12
	ldr	r2, [r3]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	sub	r3, r3, #4
	mov	r1, #8192
	mov	r0, r3
	bl	fgets
	sub	r3, fp, #8192
	sub	r3, r3, #12
	sub	r3, r3, #4
	mov	r0, r3
	bl	strlen
	mov	r2, r0
	sub	r1, fp, #8192
	sub	r1, r1, #12
	sub	r1, r1, #4
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r0, r3
	mov	r3, #16
	str	r3, [sp, #4]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	sub	r3, r3, #36
	str	r3, [sp]
	mov	r3, #0
	ldr	r0, [r0, #-44]
	bl	sendto
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #16
	str	r3, [r2, #-48]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r4, r3
	sub	r1, fp, #8192
	sub	r1, r1, #12
	sub	r1, r1, #4
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r0, r3
	sub	r3, fp, #8192
	sub	r3, r3, #12
	sub	r3, r3, #48
	str	r3, [sp, #4]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	sub	r3, r3, #20
	str	r3, [sp]
	mov	r3, #0
	mov	r2, #8192
	ldr	r0, [r0, #-44]
	bl	recvfrom
	str	r0, [r4, #-40]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-40]
	add	r3, r2, r3
	sub	r3, r3, #4
	mov	r2, #0
	strb	r2, [r3]
	ldr	r3, .L7+16
	ldr	r2, [r3]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	sub	r3, r3, #4
	mov	r1, r2
	mov	r0, r3
	bl	fputs
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldrb	r2, [r3, #-4]	@ zero_extendqisi2
	ldr	r3, .L7+20
	ldrb	r3, [r3]	@ zero_extendqisi2
	sub	r3, r2, r3
	cmp	r3, #0
	bne	.L4
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r0, [r3, #-44]
	bl	close
	mov	r3, #0
.L5:
	ldr	r2, .L7
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L6
	bl	__stack_chk_fail
.L6:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L8:
	.align	2
.L7:
	.word	.LC2
	.word	.LC0
	.word	5100
	.word	stdin
	.word	stdout
	.word	.LC1
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
