	.file	"970890.c"
	.intel_syntax noprefix
	.text
	.type	reset.0, @function
reset.0:
.LFB7:
	.cfi_startproc
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	rax, r10
	mov	QWORD PTR -8[rbp], r10
	mov	DWORD PTR 4[rax], 2
	mov	DWORD PTR 8[rax], 1
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	reset.0, .-reset.0
	.section	.rodata
.LC0:
	.string	"%s:%hu\n"
.LC1:
	.string	"%1000s %1000s"
	.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
	push	rbx
	sub	rsp, 2136
	.cfi_offset 3, -24
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -24[rbp], rax
	xor	eax, eax
	lea	rax, 16[rbp]
	mov	QWORD PTR -2064[rbp], rax
	mov	QWORD PTR -2112[rbp], 0
	mov	QWORD PTR -2104[rbp], 0
	mov	QWORD PTR -2096[rbp], 0
	mov	QWORD PTR -2088[rbp], 0
	mov	QWORD PTR -2080[rbp], 0
	mov	QWORD PTR -2072[rbp], 0
	mov	DWORD PTR -2108[rbp], 2
	mov	DWORD PTR -2104[rbp], 1
	lea	rax, -2112[rbp]
	mov	r10, rax
	call	reset.0
	jmp	.L3
.L10:
	lea	rax, -2112[rbp]
	mov	r10, rax
	call	reset.0
	lea	rcx, -2136[rbp]
	lea	rdx, -2112[rbp]
	lea	rsi, -1040[rbp]
	lea	rax, -2048[rbp]
	mov	rdi, rax
	call	getaddrinfo@PLT
	mov	DWORD PTR -2140[rbp], eax
	cmp	DWORD PTR -2140[rbp], 0
	je	.L4
	mov	eax, DWORD PTR -2140[rbp]
	mov	edi, eax
	call	gai_strerror@PLT
	mov	rdi, rax
	call	puts@PLT
	mov	rax, QWORD PTR stdout[rip]
	mov	rdi, rax
	call	fflush@PLT
	jmp	.L3
.L4:
	cmp	DWORD PTR -2140[rbp], 0
	jne	.L3
	mov	QWORD PTR -2128[rbp], 0
	jmp	.L6
.L9:
	mov	rax, QWORD PTR -2136[rbp]
	mov	rax, QWORD PTR 24[rax]
	mov	QWORD PTR -2120[rbp], rax
	cmp	QWORD PTR -2128[rbp], 0
	je	.L7
	mov	rax, QWORD PTR -2128[rbp]
	mov	eax, DWORD PTR 4[rax]
	mov	edi, eax
	call	ntohl@PLT
	mov	ebx, eax
	mov	rax, QWORD PTR -2120[rbp]
	mov	eax, DWORD PTR 4[rax]
	mov	edi, eax
	call	ntohl@PLT
	cmp	ebx, eax
	jb	.L8
.L7:
	mov	rax, QWORD PTR -2120[rbp]
	mov	QWORD PTR -2128[rbp], rax
.L8:
	mov	rax, QWORD PTR -2136[rbp]
	mov	rax, QWORD PTR 40[rax]
	mov	QWORD PTR -2136[rbp], rax
.L6:
	mov	rax, QWORD PTR -2136[rbp]
	test	rax, rax
	jne	.L9
	mov	rax, QWORD PTR -2128[rbp]
	movzx	eax, WORD PTR 2[rax]
	movzx	eax, ax
	mov	edi, eax
	call	ntohs@PLT
	movzx	ebx, ax
	mov	rax, QWORD PTR -2128[rbp]
	mov	eax, DWORD PTR 4[rax]
	mov	edi, eax
	call	inet_ntoa@PLT
	mov	edx, ebx
	mov	rsi, rax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR stdout[rip]
	mov	rdi, rax
	call	fflush@PLT
	mov	rax, QWORD PTR -2136[rbp]
	mov	rdi, rax
	call	freeaddrinfo@PLT
.L3:
	lea	rdx, -1040[rbp]
	lea	rax, -2048[rbp]
	mov	rsi, rax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	cmp	eax, -1
	jne	.L10
	mov	eax, 0
	mov	rcx, QWORD PTR -24[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L12
	call	__stack_chk_fail@PLT
.L12:
	mov	rbx, QWORD PTR -8[rbp]
	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	"970890.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	reset.5643, %function
reset.5643:
	@ Nested: function declared inside another function.
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #12
	mov	r3, ip
	str	ip, [fp, #-8]
	mov	r2, #2
	str	r2, [r3, #4]
	mov	r2, #1
	str	r2, [r3, #8]
	nop
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	reset.5643, .-reset.5643
	.section	.rodata
	.align	2
.LC0:
	.ascii	"%s:%hu\012\000"
	.align	2
.LC1:
	.ascii	"%1000s %1000s\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 = 2064
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #2064
	sub	sp, sp, #4
	ldr	r3, .L13
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	add	r3, fp, #4
	str	r3, [fp, #-2028]
	sub	r3, fp, #2048
	sub	r3, r3, #12
	mov	r2, #32
	mov	r1, #0
	mov	r0, r3
	bl	memset
	mov	r3, #2
	str	r3, [fp, #-2056]
	mov	r3, #1
	str	r3, [fp, #-2052]
	sub	r3, fp, #2048
	sub	r3, r3, #12
	mov	ip, r3
	bl	reset.5643
	b	.L3
.L10:
	sub	r3, fp, #2048
	sub	r3, r3, #12
	mov	ip, r3
	bl	reset.5643
	sub	r3, fp, #2064
	sub	r3, r3, #12
	sub	r2, fp, #2048
	sub	r2, r2, #12
	sub	r1, fp, #1020
	sub	r0, fp, #2000
	sub	r0, r0, #12
	sub	r0, r0, #12
	bl	getaddrinfo
	str	r0, [fp, #-2068]
	ldr	r3, [fp, #-2068]
	cmp	r3, #0
	beq	.L4
	ldr	r0, [fp, #-2068]
	bl	gai_strerror
	mov	r3, r0
	mov	r0, r3
	bl	puts
	ldr	r3, .L13+4
	ldr	r3, [r3]
	mov	r0, r3
	bl	fflush
	b	.L3
.L4:
	ldr	r3, [fp, #-2068]
	cmp	r3, #0
	bne	.L3
	mov	r3, #0
	str	r3, [fp, #-2072]
	b	.L6
.L9:
	ldr	r3, [fp, #-2076]
	ldr	r3, [r3, #20]
	str	r3, [fp, #-2064]
	ldr	r3, [fp, #-2072]
	cmp	r3, #0
	beq	.L7
	ldr	r3, [fp, #-2072]
	ldr	r3, [r3, #4]
	mov	r0, r3
	bl	ntohl
	mov	r4, r0
	ldr	r3, [fp, #-2064]
	ldr	r3, [r3, #4]
	mov	r0, r3
	bl	ntohl
	mov	r3, r0
	cmp	r4, r3
	bcc	.L8
.L7:
	ldr	r3, [fp, #-2064]
	str	r3, [fp, #-2072]
.L8:
	ldr	r3, [fp, #-2076]
	ldr	r3, [r3, #28]
	str	r3, [fp, #-2076]
.L6:
	ldr	r3, [fp, #-2076]
	cmp	r3, #0
	bne	.L9
	ldr	r3, [fp, #-2072]
	ldr	r0, [r3, #4]
	bl	inet_ntoa
	mov	r4, r0
	ldr	r3, [fp, #-2072]
	ldrh	r3, [r3, #2]
	mov	r0, r3
	bl	ntohs
	mov	r3, r0
	mov	r2, r3
	mov	r1, r4
	ldr	r0, .L13+8
	bl	printf
	ldr	r3, .L13+4
	ldr	r3, [r3]
	mov	r0, r3
	bl	fflush
	ldr	r3, [fp, #-2076]
	mov	r0, r3
	bl	freeaddrinfo
.L3:
	sub	r2, fp, #1020
	sub	r3, fp, #2000
	sub	r3, r3, #12
	sub	r3, r3, #12
	mov	r1, r3
	ldr	r0, .L13+12
	bl	__isoc99_scanf
	mov	r3, r0
	cmn	r3, #1
	bne	.L10
	mov	r3, #0
	ldr	r2, .L13
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L12
	bl	__stack_chk_fail
.L12:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L14:
	.align	2
.L13:
	.word	.LC2
	.word	stdout
	.word	.LC0
	.word	.LC1
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
