	.file	"988557.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"\nUDP TIME CLIENT."
.LC1:
	.string	"%s"
	.align 8
.LC2:
	.string	"\nCLIENT ERROR: Cannot create socket."
.LC3:
	.string	"\nCLIENT ERROR: Cannot send."
	.align 8
.LC4:
	.string	"\nCLIENT: Time sent to the server."
	.align 8
.LC5:
	.string	"\nCLIENT ERROR: Cannot receive."
	.align 8
.LC6:
	.string	"\nCLIENT: Time echoed back from Time server: %s.\n"
	.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, 592
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	WORD PTR -586[rbp], 25020
	movabs	rax, 3328210909095473713
	mov	QWORD PTR -538[rbp], rax
	mov	WORD PTR -530[rbp], 49
	lea	rax, -560[rbp]
	mov	QWORD PTR [rax], 0
	mov	QWORD PTR 8[rax], 0
	mov	WORD PTR -560[rbp], 2
	movzx	eax, WORD PTR -586[rbp]
	movzx	eax, ax
	mov	edi, eax
	call	htons@PLT
	mov	WORD PTR -558[rbp], ax
	lea	rax, -560[rbp]
	lea	rdx, 4[rax]
	lea	rax, -538[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	inet_aton@PLT
	lea	rdi, .LC0[rip]
	call	puts@PLT
	mov	edi, 0
	call	time@PLT
	mov	QWORD PTR -568[rbp], rax
	lea	rax, -568[rbp]
	mov	rdi, rax
	call	ctime@PLT
	mov	rdx, rax
	lea	rax, -272[rbp]
	mov	rcx, rdx
	lea	rdx, .LC1[rip]
	mov	esi, 256
	mov	rdi, rax
	mov	eax, 0
	call	snprintf@PLT
	mov	edx, 0
	mov	esi, 2
	mov	edi, 2
	call	socket@PLT
	mov	DWORD PTR -580[rbp], eax
	cmp	DWORD PTR -580[rbp], 0
	jns	.L2
	lea	rdi, .LC2[rip]
	call	puts@PLT
	mov	edi, 1
	call	exit@PLT
.L2:
	lea	rdx, -560[rbp]
	lea	rsi, -272[rbp]
	mov	eax, DWORD PTR -580[rbp]
	mov	r9d, 16
	mov	r8, rdx
	mov	ecx, 0
	mov	edx, 256
	mov	edi, eax
	call	sendto@PLT
	mov	DWORD PTR -576[rbp], eax
	cmp	DWORD PTR -576[rbp], 0
	jns	.L3
	lea	rdi, .LC3[rip]
	call	puts@PLT
	mov	eax, DWORD PTR -580[rbp]
	mov	edi, eax
	call	close@PLT
	mov	edi, 1
	call	exit@PLT
.L3:
	lea	rdi, .LC4[rip]
	call	puts@PLT
	mov	DWORD PTR -584[rbp], 16
	lea	rcx, -584[rbp]
	lea	rdx, -560[rbp]
	lea	rsi, -528[rbp]
	mov	eax, DWORD PTR -580[rbp]
	mov	r9, rcx
	mov	r8, rdx
	mov	ecx, 0
	mov	edx, 256
	mov	edi, eax
	call	recvfrom@PLT
	mov	DWORD PTR -572[rbp], eax
	cmp	DWORD PTR -572[rbp], 0
	jns	.L4
	lea	rdi, .LC5[rip]
	call	puts@PLT
	mov	eax, DWORD PTR -580[rbp]
	mov	edi, eax
	call	close@PLT
	mov	edi, 1
	call	exit@PLT
.L4:
	mov	eax, DWORD PTR -572[rbp]
	cdqe
	mov	BYTE PTR -528[rbp+rax], 0
	lea	rax, -528[rbp]
	mov	rsi, rax
	lea	rdi, .LC6[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR -580[rbp]
	mov	edi, eax
	call	close@PLT
	mov	edi, 1
	call	exit@PLT
	.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	"988557.c"
	.text
	.section	.rodata
	.align	2
.LC1:
	.ascii	"\012UDP TIME CLIENT.\000"
	.align	2
.LC2:
	.ascii	"%s\000"
	.align	2
.LC3:
	.ascii	"\012CLIENT ERROR: Cannot create socket.\000"
	.align	2
.LC4:
	.ascii	"\012CLIENT ERROR: Cannot send.\000"
	.align	2
.LC5:
	.ascii	"\012CLIENT: Time sent to the server.\000"
	.align	2
.LC6:
	.ascii	"\012CLIENT ERROR: Cannot receive.\000"
	.align	2
.LC7:
	.ascii	"\012CLIENT: Time echoed back from Time server: %s.\012"
	.ascii	"\000"
	.align	2
.LC0:
	.ascii	"127.0.0.1\000"
	.align	2
.LC8:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 568
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #576
	ldr	r3, .L6
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	sub	r3, fp, #4
	sub	r3, r3, #564
	sub	r3, r3, #2
	ldr	r2, .L6+4
	strh	r2, [r3]	@ movhi
	ldr	r2, .L6+8
	sub	r3, fp, #532
	ldm	r2, {r0, r1, r2}
	stmia	r3!, {r0, r1}
	strh	r2, [r3]	@ movhi
	sub	r3, fp, #548
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2]
	str	r3, [r2, #4]
	str	r3, [r2, #8]
	str	r3, [r2, #12]
	sub	r3, fp, #4
	sub	r3, r3, #544
	mov	r2, #2
	strh	r2, [r3]	@ movhi
	sub	r3, fp, #4
	sub	r3, r3, #564
	sub	r3, r3, #2
	ldrh	r3, [r3]
	mov	r0, r3
	bl	htons
	mov	r3, r0
	mov	r2, r3
	sub	r3, fp, #4
	sub	r3, r3, #544
	strh	r2, [r3, #2]	@ movhi
	sub	r3, fp, #548
	add	r2, r3, #4
	sub	r3, fp, #532
	mov	r1, r2
	mov	r0, r3
	bl	inet_aton
	ldr	r0, .L6+12
	bl	puts
	mov	r0, #0
	bl	time
	mov	r3, r0
	str	r3, [fp, #-564]
	sub	r3, fp, #564
	mov	r0, r3
	bl	ctime
	mov	r3, r0
	sub	r0, fp, #264
	ldr	r2, .L6+16
	mov	r1, #256
	bl	snprintf
	mov	r2, #0
	mov	r1, #2
	mov	r0, #2
	bl	socket
	str	r0, [fp, #-560]
	ldr	r3, [fp, #-560]
	cmp	r3, #0
	bge	.L2
	ldr	r0, .L6+20
	bl	puts
	mov	r0, #1
	bl	exit
.L2:
	sub	r1, fp, #264
	mov	r3, #16
	str	r3, [sp, #4]
	sub	r3, fp, #548
	str	r3, [sp]
	mov	r3, #0
	mov	r2, #256
	ldr	r0, [fp, #-560]
	bl	sendto
	str	r0, [fp, #-556]
	ldr	r3, [fp, #-556]
	cmp	r3, #0
	bge	.L3
	ldr	r0, .L6+24
	bl	puts
	ldr	r0, [fp, #-560]
	bl	close
	mov	r0, #1
	bl	exit
.L3:
	ldr	r0, .L6+28
	bl	puts
	mov	r3, #16
	str	r3, [fp, #-568]
	sub	r1, fp, #520
	sub	r3, fp, #568
	str	r3, [sp, #4]
	sub	r3, fp, #548
	str	r3, [sp]
	mov	r3, #0
	mov	r2, #256
	ldr	r0, [fp, #-560]
	bl	recvfrom
	str	r0, [fp, #-552]
	ldr	r3, [fp, #-552]
	cmp	r3, #0
	bge	.L4
	ldr	r0, .L6+32
	bl	puts
	ldr	r0, [fp, #-560]
	bl	close
	mov	r0, #1
	bl	exit
.L4:
	sub	r2, fp, #520
	ldr	r3, [fp, #-552]
	add	r3, r2, r3
	mov	r2, #0
	strb	r2, [r3]
	sub	r3, fp, #520
	mov	r1, r3
	ldr	r0, .L6+36
	bl	printf
	ldr	r0, [fp, #-560]
	bl	close
	mov	r0, #1
	bl	exit
.L7:
	.align	2
.L6:
	.word	.LC8
	.word	25020
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
