	.file	"1001349.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
	.align 8
.LC0:
	.string	"Usage: ./lab2.5.2 <address> <port>\n"
.LC1:
	.string	"Value of errno: %d.\n"
.LC2:
	.string	"String related to errno %s.\n"
.LC3:
	.string	"%d bytes from %s:%s\n"
.LC4:
	.string	"t"
.LC5:
	.string	"%H:%M:%S %p"
.LC6:
	.string	"d"
.LC7:
	.string	"%Y-%m-%d"
.LC8:
	.string	"q"
.LC9:
	.string	"Command not supported %s\n"
.LC10:
	.string	"Exiting..."
	.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, 1568
	mov	DWORD PTR -1556[rbp], edi
	mov	QWORD PTR -1568[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	QWORD PTR -1296[rbp], 0
	mov	QWORD PTR -1288[rbp], 0
	mov	QWORD PTR -1280[rbp], 0
	mov	QWORD PTR -1272[rbp], 0
	mov	QWORD PTR -1264[rbp], 0
	mov	QWORD PTR -1256[rbp], 0
	mov	QWORD PTR -1248[rbp], 0
	mov	QWORD PTR -1240[rbp], 0
	mov	QWORD PTR -1232[rbp], 0
	mov	QWORD PTR -1224[rbp], 0
	mov	QWORD PTR -1216[rbp], 0
	mov	QWORD PTR -1208[rbp], 0
	mov	QWORD PTR -1200[rbp], 0
	mov	QWORD PTR -1192[rbp], 0
	mov	QWORD PTR -1184[rbp], 0
	mov	QWORD PTR -1176[rbp], 0
	mov	QWORD PTR -1168[rbp], 0
	mov	QWORD PTR -1160[rbp], 0
	mov	QWORD PTR -1152[rbp], 0
	mov	QWORD PTR -1144[rbp], 0
	mov	QWORD PTR -1136[rbp], 0
	mov	QWORD PTR -1128[rbp], 0
	mov	QWORD PTR -1120[rbp], 0
	mov	QWORD PTR -1112[rbp], 0
	mov	QWORD PTR -1104[rbp], 0
	mov	QWORD PTR -1096[rbp], 0
	mov	QWORD PTR -1088[rbp], 0
	mov	QWORD PTR -1080[rbp], 0
	mov	QWORD PTR -1072[rbp], 0
	mov	QWORD PTR -1064[rbp], 0
	mov	QWORD PTR -1056[rbp], 0
	mov	QWORD PTR -1048[rbp], 0
	mov	QWORD PTR -1040[rbp], 0
	mov	QWORD PTR -1032[rbp], 0
	lea	rdx, -1024[rbp]
	mov	eax, 0
	mov	ecx, 126
	mov	rdi, rdx
	rep stosq
	mov	rdx, rdi
	mov	BYTE PTR [rdx], al
	add	rdx, 1
	mov	QWORD PTR -1328[rbp], 0
	mov	QWORD PTR -1320[rbp], 0
	mov	QWORD PTR -1312[rbp], 0
	mov	QWORD PTR -1304[rbp], 0
	mov	DWORD PTR -1548[rbp], 128
	cmp	DWORD PTR -1556[rbp], 3
	je	.L2
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 35
	mov	esi, 1
	lea	rdi, .LC0[rip]
	call	fwrite@PLT
	mov	edi, 0
	call	_exit@PLT
.L2:
	mov	DWORD PTR -1504[rbp], 0
	mov	DWORD PTR -1500[rbp], 0
	mov	DWORD PTR -1496[rbp], 2
	mov	rax, QWORD PTR -1568[rbp]
	add	rax, 16
	mov	rsi, QWORD PTR [rax]
	mov	rax, QWORD PTR -1568[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	lea	rcx, -1536[rbp]
	lea	rdx, -1504[rbp]
	mov	rdi, rax
	call	getaddrinfo@PLT
	cmp	eax, -1
	jne	.L3
	call	__errno_location@PLT
	mov	edx, DWORD PTR [rax]
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC1[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	edi, eax
	call	strerror@PLT
	mov	rdx, rax
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC2[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	edi, 0
	call	_exit@PLT
.L3:
	mov	rax, QWORD PTR -1536[rbp]
	mov	ecx, DWORD PTR 8[rax]
	mov	rax, QWORD PTR -1536[rbp]
	mov	eax, DWORD PTR 4[rax]
	mov	edx, 0
	mov	esi, ecx
	mov	edi, eax
	call	socket@PLT
	mov	DWORD PTR -1544[rbp], eax
	cmp	DWORD PTR -1544[rbp], -1
	jne	.L4
	call	__errno_location@PLT
	mov	edx, DWORD PTR [rax]
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC1[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	edi, eax
	call	strerror@PLT
	mov	rdx, rax
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC2[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	edi, 0
	call	_exit@PLT
.L4:
	mov	rax, QWORD PTR -1536[rbp]
	mov	edx, DWORD PTR 16[rax]
	mov	rax, QWORD PTR -1536[rbp]
	mov	rcx, QWORD PTR 24[rax]
	mov	eax, DWORD PTR -1544[rbp]
	mov	rsi, rcx
	mov	edi, eax
	call	bind@PLT
	cmp	eax, -1
	jne	.L5
	call	__errno_location@PLT
	mov	edx, DWORD PTR [rax]
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC1[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	edi, eax
	call	strerror@PLT
	mov	rdx, rax
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC2[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	edi, 0
	call	_exit@PLT
.L5:
	lea	rcx, -1548[rbp]
	lea	rdx, -1456[rbp]
	lea	rsi, -1296[rbp]
	mov	eax, DWORD PTR -1544[rbp]
	mov	r9, rcx
	mov	r8, rdx
	mov	ecx, 0
	mov	edx, 256
	mov	edi, eax
	call	recvfrom@PLT
	mov	DWORD PTR -1540[rbp], eax
	mov	eax, DWORD PTR -1540[rbp]
	sub	eax, 1
	cdqe
	mov	BYTE PTR -1296[rbp+rax], 0
	mov	esi, DWORD PTR -1548[rbp]
	lea	rcx, -1328[rbp]
	lea	rdx, -1040[rbp]
	lea	rax, -1456[rbp]
	sub	rsp, 8
	push	3
	mov	r9d, 32
	mov	r8, rcx
	mov	ecx, 1025
	mov	rdi, rax
	call	getnameinfo@PLT
	add	rsp, 16
	lea	rcx, -1328[rbp]
	lea	rdx, -1040[rbp]
	mov	eax, DWORD PTR -1540[rbp]
	mov	esi, eax
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -1296[rbp]
	lea	rsi, .LC4[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L6
	lea	rax, -1528[rbp]
	mov	rdi, rax
	call	time@PLT
	lea	rax, -1528[rbp]
	mov	rdi, rax
	call	localtime@PLT
	mov	QWORD PTR -1520[rbp], rax
	mov	rdx, QWORD PTR -1520[rbp]
	lea	rax, -1296[rbp]
	mov	rcx, rdx
	lea	rdx, .LC5[rip]
	mov	esi, 256
	mov	rdi, rax
	call	strftime@PLT
	mov	QWORD PTR -1512[rbp], rax
	lea	rdx, -1296[rbp]
	mov	rax, QWORD PTR -1512[rbp]
	add	rax, rdx
	mov	BYTE PTR [rax], 0
	mov	edi, DWORD PTR -1548[rbp]
	lea	rcx, -1456[rbp]
	mov	rdx, QWORD PTR -1512[rbp]
	lea	rsi, -1296[rbp]
	mov	eax, DWORD PTR -1544[rbp]
	mov	r9d, edi
	mov	r8, rcx
	mov	ecx, 0
	mov	edi, eax
	call	sendto@PLT
	jmp	.L5
.L6:
	lea	rax, -1296[rbp]
	lea	rsi, .LC6[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L8
	lea	rax, -1528[rbp]
	mov	rdi, rax
	call	time@PLT
	lea	rax, -1528[rbp]
	mov	rdi, rax
	call	localtime@PLT
	mov	QWORD PTR -1520[rbp], rax
	mov	rdx, QWORD PTR -1520[rbp]
	lea	rax, -1296[rbp]
	mov	rcx, rdx
	lea	rdx, .LC7[rip]
	mov	esi, 256
	mov	rdi, rax
	call	strftime@PLT
	mov	QWORD PTR -1512[rbp], rax
	lea	rdx, -1296[rbp]
	mov	rax, QWORD PTR -1512[rbp]
	add	rax, rdx
	mov	BYTE PTR [rax], 0
	mov	edi, DWORD PTR -1548[rbp]
	lea	rcx, -1456[rbp]
	mov	rdx, QWORD PTR -1512[rbp]
	lea	rsi, -1296[rbp]
	mov	eax, DWORD PTR -1544[rbp]
	mov	r9d, edi
	mov	r8, rcx
	mov	ecx, 0
	mov	edi, eax
	call	sendto@PLT
	jmp	.L5
.L8:
	lea	rax, -1296[rbp]
	lea	rsi, .LC8[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	je	.L14
	lea	rax, -1296[rbp]
	mov	rsi, rax
	lea	rdi, .LC9[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L5
.L14:
	nop
	mov	eax, DWORD PTR -1544[rbp]
	mov	edi, eax
	call	close@PLT
	lea	rdi, .LC10[rip]
	call	puts@PLT
	mov	eax, 0
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L12
	call	__stack_chk_fail@PLT
.L12:
	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	"1001349.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"Usage: ./lab2.5.2 <address> <port>\012\000"
	.align	2
.LC1:
	.ascii	"Value of errno: %d.\012\000"
	.align	2
.LC2:
	.ascii	"String related to errno %s.\012\000"
	.align	2
.LC3:
	.ascii	"%d bytes from %s:%s\012\000"
	.align	2
.LC4:
	.ascii	"t\000"
	.align	2
.LC5:
	.ascii	"%H:%M:%S %p\000"
	.align	2
.LC6:
	.ascii	"d\000"
	.align	2
.LC7:
	.ascii	"%Y-%m-%d\000"
	.align	2
.LC8:
	.ascii	"q\000"
	.align	2
.LC9:
	.ascii	"Command not supported %s\012\000"
	.align	2
.LC10:
	.ascii	"Exiting...\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 = 1520
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #1536
	sub	sp, sp, #4
	str	r0, [fp, #-1528]
	str	r1, [fp, #-1532]
	ldr	r3, .L15
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-1300]
	sub	r3, fp, #1280
	sub	r3, r3, #12
	sub	r3, r3, #4
	mov	r2, #252
	mov	r1, #0
	mov	r0, r3
	bl	memset
	mov	r3, #0
	str	r3, [fp, #-1044]
	sub	r3, fp, #1024
	sub	r3, r3, #12
	sub	r3, r3, #4
	ldr	r2, .L15+4
	mov	r1, #0
	mov	r0, r3
	bl	memset
	mov	r3, #0
	str	r3, [fp, #-1332]
	sub	r3, fp, #1312
	sub	r3, r3, #12
	sub	r3, r3, #4
	mov	r2, #0
	str	r2, [r3]
	str	r2, [r3, #4]
	str	r2, [r3, #8]
	str	r2, [r3, #12]
	str	r2, [r3, #16]
	str	r2, [r3, #20]
	str	r2, [r3, #24]
	mov	r3, #128
	str	r3, [fp, #-1516]
	ldr	r3, [fp, #-1528]
	cmp	r3, #3
	beq	.L2
	ldr	r3, .L15+8
	ldr	r3, [r3]
	mov	r2, #35
	mov	r1, #1
	ldr	r0, .L15+12
	bl	fwrite
	mov	r0, #0
	bl	_exit
.L2:
	mov	r3, #0
	str	r3, [fp, #-1492]
	mov	r3, #0
	str	r3, [fp, #-1488]
	mov	r3, #2
	str	r3, [fp, #-1484]
	ldr	r3, [fp, #-1532]
	add	r3, r3, #4
	ldr	r0, [r3]
	ldr	r3, [fp, #-1532]
	add	r3, r3, #8
	ldr	r1, [r3]
	sub	r3, fp, #1504
	sub	r3, r3, #12
	sub	r3, r3, #4
	sub	r2, fp, #1472
	sub	r2, r2, #12
	sub	r2, r2, #8
	bl	getaddrinfo
	mov	r3, r0
	cmn	r3, #1
	bne	.L3
	ldr	r3, .L15+8
	ldr	r4, [r3]
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r2, r3
	ldr	r1, .L15+16
	mov	r0, r4
	bl	fprintf
	ldr	r3, .L15+8
	ldr	r4, [r3]
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r0, r3
	bl	strerror
	mov	r3, r0
	mov	r2, r3
	ldr	r1, .L15+20
	mov	r0, r4
	bl	fprintf
	mov	r0, #0
	bl	_exit
.L3:
	ldr	r3, [fp, #-1520]
	ldr	r0, [r3, #4]
	ldr	r3, [fp, #-1520]
	ldr	r3, [r3, #8]
	mov	r2, #0
	mov	r1, r3
	bl	socket
	str	r0, [fp, #-1508]
	ldr	r3, [fp, #-1508]
	cmn	r3, #1
	bne	.L4
	ldr	r3, .L15+8
	ldr	r4, [r3]
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r2, r3
	ldr	r1, .L15+16
	mov	r0, r4
	bl	fprintf
	ldr	r3, .L15+8
	ldr	r4, [r3]
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r0, r3
	bl	strerror
	mov	r3, r0
	mov	r2, r3
	ldr	r1, .L15+20
	mov	r0, r4
	bl	fprintf
	mov	r0, #0
	bl	_exit
.L4:
	ldr	r3, [fp, #-1520]
	ldr	r1, [r3, #20]
	ldr	r3, [fp, #-1520]
	ldr	r3, [r3, #16]
	mov	r2, r3
	ldr	r0, [fp, #-1508]
	bl	bind
	mov	r3, r0
	cmn	r3, #1
	bne	.L5
	ldr	r3, .L15+8
	ldr	r4, [r3]
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r2, r3
	ldr	r1, .L15+16
	mov	r0, r4
	bl	fprintf
	ldr	r3, .L15+8
	ldr	r4, [r3]
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r0, r3
	bl	strerror
	mov	r3, r0
	mov	r2, r3
	ldr	r1, .L15+20
	mov	r0, r4
	bl	fprintf
	mov	r0, #0
	bl	_exit
.L5:
	sub	r1, fp, #1280
	sub	r1, r1, #12
	sub	r1, r1, #8
	sub	r3, fp, #1504
	sub	r3, r3, #12
	str	r3, [sp, #4]
	sub	r3, fp, #1440
	sub	r3, r3, #12
	sub	r3, r3, #8
	str	r3, [sp]
	mov	r3, #0
	mov	r2, #256
	ldr	r0, [fp, #-1508]
	bl	recvfrom
	str	r0, [fp, #-1504]
	ldr	r3, [fp, #-1504]
	sub	r3, r3, #1
	sub	r2, fp, #12
	add	r3, r2, r3
	mov	r2, #0
	strb	r2, [r3, #-1288]
	ldr	r1, [fp, #-1516]
	sub	r2, fp, #1024
	sub	r2, r2, #12
	sub	r2, r2, #8
	sub	r0, fp, #1440
	sub	r0, r0, #12
	sub	r0, r0, #8
	mov	r3, #3
	str	r3, [sp, #8]
	mov	r3, #32
	str	r3, [sp, #4]
	sub	r3, fp, #1312
	sub	r3, r3, #12
	sub	r3, r3, #8
	str	r3, [sp]
	ldr	r3, .L15+24
	bl	getnameinfo
	sub	r3, fp, #1312
	sub	r3, r3, #12
	sub	r3, r3, #8
	sub	r2, fp, #1024
	sub	r2, r2, #12
	sub	r2, r2, #8
	ldr	r1, [fp, #-1504]
	ldr	r0, .L15+28
	bl	printf
	sub	r3, fp, #1280
	sub	r3, r3, #12
	sub	r3, r3, #8
	ldr	r1, .L15+32
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L6
	sub	r3, fp, #1488
	sub	r3, r3, #12
	sub	r3, r3, #12
	mov	r0, r3
	bl	time
	sub	r3, fp, #1488
	sub	r3, r3, #12
	sub	r3, r3, #12
	mov	r0, r3
	bl	localtime
	str	r0, [fp, #-1500]
	sub	r0, fp, #1280
	sub	r0, r0, #12
	sub	r0, r0, #8
	ldr	r3, [fp, #-1500]
	ldr	r2, .L15+36
	mov	r1, #256
	bl	strftime
	str	r0, [fp, #-1496]
	sub	r3, fp, #1280
	sub	r3, r3, #12
	sub	r3, r3, #8
	ldr	r2, [fp, #-1496]
	add	r3, r3, r2
	mov	r2, #0
	strb	r2, [r3]
	ldr	r3, [fp, #-1516]
	sub	r1, fp, #1280
	sub	r1, r1, #12
	sub	r1, r1, #8
	str	r3, [sp, #4]
	sub	r3, fp, #1440
	sub	r3, r3, #12
	sub	r3, r3, #8
	str	r3, [sp]
	mov	r3, #0
	ldr	r2, [fp, #-1496]
	ldr	r0, [fp, #-1508]
	bl	sendto
	b	.L5
.L6:
	sub	r3, fp, #1280
	sub	r3, r3, #12
	sub	r3, r3, #8
	ldr	r1, .L15+40
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L8
	sub	r3, fp, #1488
	sub	r3, r3, #12
	sub	r3, r3, #12
	mov	r0, r3
	bl	time
	sub	r3, fp, #1488
	sub	r3, r3, #12
	sub	r3, r3, #12
	mov	r0, r3
	bl	localtime
	str	r0, [fp, #-1500]
	sub	r0, fp, #1280
	sub	r0, r0, #12
	sub	r0, r0, #8
	ldr	r3, [fp, #-1500]
	ldr	r2, .L15+44
	mov	r1, #256
	bl	strftime
	str	r0, [fp, #-1496]
	sub	r3, fp, #1280
	sub	r3, r3, #12
	sub	r3, r3, #8
	ldr	r2, [fp, #-1496]
	add	r3, r3, r2
	mov	r2, #0
	strb	r2, [r3]
	ldr	r3, [fp, #-1516]
	sub	r1, fp, #1280
	sub	r1, r1, #12
	sub	r1, r1, #8
	str	r3, [sp, #4]
	sub	r3, fp, #1440
	sub	r3, r3, #12
	sub	r3, r3, #8
	str	r3, [sp]
	mov	r3, #0
	ldr	r2, [fp, #-1496]
	ldr	r0, [fp, #-1508]
	bl	sendto
	b	.L5
.L8:
	sub	r3, fp, #1280
	sub	r3, r3, #12
	sub	r3, r3, #8
	ldr	r1, .L15+48
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	beq	.L14
	sub	r3, fp, #1280
	sub	r3, r3, #12
	sub	r3, r3, #8
	mov	r1, r3
	ldr	r0, .L15+52
	bl	printf
	b	.L5
.L14:
	nop
	ldr	r0, [fp, #-1508]
	bl	close
	ldr	r0, .L15+56
	bl	puts
	mov	r3, #0
	ldr	r2, .L15
	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}
.L16:
	.align	2
.L15:
	.word	.LC11
	.word	1021
	.word	stderr
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	1025
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.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
