	.file	"983616.c"
	.intel_syntax noprefix
	.text
	.globl	full_read
	.type	full_read, @function
full_read:
.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, 48
	mov	DWORD PTR -20[rbp], edi
	mov	QWORD PTR -32[rbp], rsi
	mov	QWORD PTR -40[rbp], rdx
	mov	rax, QWORD PTR -40[rbp]
	mov	QWORD PTR -16[rbp], rax
	jmp	.L2
.L7:
	mov	rdx, QWORD PTR -16[rbp]
	mov	rcx, QWORD PTR -32[rbp]
	mov	eax, DWORD PTR -20[rbp]
	mov	rsi, rcx
	mov	edi, eax
	call	read@PLT
	mov	QWORD PTR -8[rbp], rax
	cmp	QWORD PTR -8[rbp], 0
	jns	.L3
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	cmp	eax, 4
	jne	.L4
	jmp	.L2
.L4:
	mov	rax, QWORD PTR -8[rbp]
	mov	edi, eax
	call	exit@PLT
.L3:
	cmp	QWORD PTR -8[rbp], 0
	je	.L9
	mov	rax, QWORD PTR -8[rbp]
	sub	QWORD PTR -16[rbp], rax
	mov	rax, QWORD PTR -8[rbp]
	add	QWORD PTR -32[rbp], rax
.L2:
	cmp	QWORD PTR -16[rbp], 0
	jne	.L7
	jmp	.L6
.L9:
	nop
.L6:
	mov	QWORD PTR -32[rbp], 0
	mov	rax, QWORD PTR -16[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	full_read, .-full_read
	.globl	full_write
	.type	full_write, @function
full_write:
.LFB7:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 48
	mov	DWORD PTR -20[rbp], edi
	mov	QWORD PTR -32[rbp], rsi
	mov	QWORD PTR -40[rbp], rdx
	mov	rax, QWORD PTR -40[rbp]
	mov	QWORD PTR -16[rbp], rax
	jmp	.L11
.L14:
	mov	rdx, QWORD PTR -16[rbp]
	mov	rcx, QWORD PTR -32[rbp]
	mov	eax, DWORD PTR -20[rbp]
	mov	rsi, rcx
	mov	edi, eax
	call	write@PLT
	mov	QWORD PTR -8[rbp], rax
	cmp	QWORD PTR -8[rbp], 0
	jns	.L12
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	cmp	eax, 4
	jne	.L13
	jmp	.L11
.L13:
	mov	rax, QWORD PTR -8[rbp]
	mov	edi, eax
	call	exit@PLT
.L12:
	mov	rax, QWORD PTR -8[rbp]
	sub	QWORD PTR -16[rbp], rax
	mov	rax, QWORD PTR -8[rbp]
	add	QWORD PTR -32[rbp], rax
.L11:
	cmp	QWORD PTR -16[rbp], 0
	jne	.L14
	mov	QWORD PTR -32[rbp], 0
	mov	rax, QWORD PTR -16[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	full_write, .-full_write
	.section	.rodata
.LC0:
	.string	"socket() error"
.LC1:
	.string	"127.0.0.1"
.LC2:
	.string	"inet_pton() error"
.LC3:
	.string	"connect() error"
.LC4:
	.string	"full_write() error"
.LC5:
	.string	"*** ASL ***"
	.align 8
.LC6:
	.string	"Immettere un numero di tessera sanitaria ed il referto di un tampone per invalidare o ripristinare un Green Pass"
	.align 8
.LC7:
	.string	"Inserisci codice tessera sanitaria [Massimo 10 caratteri]: "
.LC8:
	.string	"fgets() error"
	.align 8
.LC9:
	.string	"Numero caratteri tessera sanitaria non corretto, devono essere esattamente 10! Riprovare\n"
	.align 8
.LC10:
	.string	"Inserire 0 [Green Pass Non Valido]\nInserire 1 [Green Pass Valido]\n[INPUT]: "
.LC11:
	.string	"%c"
	.align 8
.LC12:
	.string	"Errore: input errato, riprovare...\n"
	.align 8
.LC13:
	.string	"\nInvio richiesta di ripristino Green Pass..."
	.align 8
.LC14:
	.string	"\nInvio richiesta di sospensione Green Pass..."
.LC15:
	.string	"full_read() error"
	.text
	.globl	main
	.type	main, @function
main:
.LFB8:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 1104
	mov	DWORD PTR -1092[rbp], edi
	mov	QWORD PTR -1104[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	BYTE PTR -1073[rbp], 49
	mov	edx, 0
	mov	esi, 1
	mov	edi, 2
	call	socket@PLT
	mov	DWORD PTR -1072[rbp], eax
	cmp	DWORD PTR -1072[rbp], 0
	jns	.L17
	lea	rdi, .LC0[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L17:
	mov	WORD PTR -1056[rbp], 2
	mov	edi, 1026
	call	htons@PLT
	mov	WORD PTR -1054[rbp], ax
	lea	rax, -1056[rbp]
	add	rax, 4
	mov	rdx, rax
	lea	rsi, .LC1[rip]
	mov	edi, 2
	call	inet_pton@PLT
	test	eax, eax
	jg	.L18
	lea	rdi, .LC2[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L18:
	lea	rcx, -1056[rbp]
	mov	eax, DWORD PTR -1072[rbp]
	mov	edx, 16
	mov	rsi, rcx
	mov	edi, eax
	call	connect@PLT
	test	eax, eax
	jns	.L19
	lea	rdi, .LC3[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L19:
	lea	rcx, -1073[rbp]
	mov	eax, DWORD PTR -1072[rbp]
	mov	edx, 1
	mov	rsi, rcx
	mov	edi, eax
	call	full_write
	test	rax, rax
	jns	.L20
	lea	rdi, .LC4[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L20:
	lea	rdi, .LC5[rip]
	call	puts@PLT
	lea	rdi, .LC6[rip]
	call	puts@PLT
.L25:
	lea	rdi, .LC7[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rdx, QWORD PTR stdin[rip]
	lea	rax, -1068[rbp]
	mov	esi, 1024
	mov	rdi, rax
	call	fgets@PLT
	test	rax, rax
	jne	.L21
	lea	rdi, .LC8[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L21:
	lea	rax, -1068[rbp]
	mov	rdi, rax
	call	strlen@PLT
	cmp	rax, 11
	je	.L22
	lea	rdi, .LC9[rip]
	call	puts@PLT
	jmp	.L25
.L22:
	mov	BYTE PTR -1058[rbp], 0
.L24:
	lea	rdi, .LC10[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -1068[rbp]
	add	rax, 11
	mov	rsi, rax
	lea	rdi, .LC11[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	movzx	eax, BYTE PTR -1057[rbp]
	cmp	al, 49
	je	.L26
	movzx	eax, BYTE PTR -1057[rbp]
	cmp	al, 48
	je	.L26
	lea	rdi, .LC12[rip]
	call	puts@PLT
	jmp	.L24
.L26:
	movzx	eax, BYTE PTR -1057[rbp]
	cmp	al, 49
	jne	.L27
	lea	rdi, .LC13[rip]
	call	puts@PLT
	jmp	.L28
.L27:
	lea	rdi, .LC14[rip]
	call	puts@PLT
.L28:
	lea	rcx, -1068[rbp]
	mov	eax, DWORD PTR -1072[rbp]
	mov	edx, 12
	mov	rsi, rcx
	mov	edi, eax
	call	full_write
	test	rax, rax
	jns	.L29
	lea	rdi, .LC4[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L29:
	lea	rcx, -1040[rbp]
	mov	eax, DWORD PTR -1072[rbp]
	mov	edx, 39
	mov	rsi, rcx
	mov	edi, eax
	call	full_read
	test	rax, rax
	jns	.L30
	lea	rdi, .LC15[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L30:
	mov	edi, 2
	call	sleep@PLT
	lea	rax, -1040[rbp]
	mov	rdi, rax
	call	puts@PLT
	mov	edi, 0
	call	exit@PLT
	.cfi_endproc
.LFE8:
	.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	"983616.c"
	.text
	.align	2
	.global	full_read
	.syntax unified
	.arm
	.fpu softvfp
	.type	full_read, %function
full_read:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	str	r2, [fp, #-24]
	ldr	r3, [fp, #-24]
	str	r3, [fp, #-12]
	b	.L2
.L7:
	ldr	r2, [fp, #-12]
	ldr	r1, [fp, #-20]
	ldr	r0, [fp, #-16]
	bl	read
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bge	.L3
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	cmp	r3, #4
	bne	.L4
	b	.L2
.L4:
	ldr	r0, [fp, #-8]
	bl	exit
.L3:
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	beq	.L9
	ldr	r3, [fp, #-8]
	ldr	r2, [fp, #-12]
	sub	r3, r2, r3
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-8]
	ldr	r2, [fp, #-20]
	add	r3, r2, r3
	str	r3, [fp, #-20]
.L2:
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	bne	.L7
	b	.L6
.L9:
	nop
.L6:
	mov	r3, #0
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-12]
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	full_read, .-full_read
	.align	2
	.global	full_write
	.syntax unified
	.arm
	.fpu softvfp
	.type	full_write, %function
full_write:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	str	r2, [fp, #-24]
	ldr	r3, [fp, #-24]
	str	r3, [fp, #-12]
	b	.L11
.L14:
	ldr	r2, [fp, #-12]
	ldr	r1, [fp, #-20]
	ldr	r0, [fp, #-16]
	bl	write
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bge	.L12
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	cmp	r3, #4
	bne	.L13
	b	.L11
.L13:
	ldr	r0, [fp, #-8]
	bl	exit
.L12:
	ldr	r3, [fp, #-8]
	ldr	r2, [fp, #-12]
	sub	r3, r2, r3
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-8]
	ldr	r2, [fp, #-20]
	add	r3, r2, r3
	str	r3, [fp, #-20]
.L11:
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	bne	.L14
	mov	r3, #0
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-12]
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	full_write, .-full_write
	.section	.rodata
	.align	2
.LC0:
	.ascii	"socket() error\000"
	.align	2
.LC1:
	.ascii	"127.0.0.1\000"
	.align	2
.LC2:
	.ascii	"inet_pton() error\000"
	.align	2
.LC3:
	.ascii	"connect() error\000"
	.align	2
.LC4:
	.ascii	"full_write() error\000"
	.align	2
.LC5:
	.ascii	"*** ASL ***\000"
	.align	2
.LC6:
	.ascii	"Immettere un numero di tessera sanitaria ed il refe"
	.ascii	"rto di un tampone per invalidare o ripristinare un "
	.ascii	"Green Pass\000"
	.align	2
.LC7:
	.ascii	"Inserisci codice tessera sanitaria [Massimo 10 cara"
	.ascii	"tteri]: \000"
	.align	2
.LC8:
	.ascii	"fgets() error\000"
	.align	2
.LC9:
	.ascii	"Numero caratteri tessera sanitaria non corretto, de"
	.ascii	"vono essere esattamente 10! Riprovare\012\000"
	.align	2
.LC10:
	.ascii	"Inserire 0 [Green Pass Non Valido]\012Inserire 1 [G"
	.ascii	"reen Pass Valido]\012[INPUT]: \000"
	.align	2
.LC11:
	.ascii	"%c\000"
	.align	2
.LC12:
	.ascii	"Errore: input errato, riprovare...\012\000"
	.align	2
.LC13:
	.ascii	"\012Invio richiesta di ripristino Green Pass...\000"
	.align	2
.LC14:
	.ascii	"\012Invio richiesta di sospensione Green Pass...\000"
	.align	2
.LC15:
	.ascii	"full_read() error\000"
	.align	2
.LC16:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 1072
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #1072
	str	r0, [fp, #-1072]
	str	r1, [fp, #-1076]
	ldr	r3, .L33
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #49
	strb	r3, [fp, #-1065]
	mov	r2, #0
	mov	r1, #1
	mov	r0, #2
	bl	socket
	str	r0, [fp, #-1064]
	ldr	r3, [fp, #-1064]
	cmp	r3, #0
	bge	.L17
	ldr	r0, .L33+4
	bl	perror
	mov	r0, #1
	bl	exit
.L17:
	sub	r3, fp, #4
	sub	r3, r3, #1040
	sub	r3, r3, #4
	mov	r2, #2
	strh	r2, [r3]	@ movhi
	ldr	r0, .L33+8
	bl	htons
	mov	r3, r0
	mov	r2, r3
	sub	r3, fp, #4
	sub	r3, r3, #1040
	sub	r3, r3, #4
	strh	r2, [r3, #2]	@ movhi
	sub	r3, fp, #1040
	sub	r3, r3, #4
	sub	r3, r3, #4
	add	r3, r3, #4
	mov	r2, r3
	ldr	r1, .L33+12
	mov	r0, #2
	bl	inet_pton
	mov	r3, r0
	cmp	r3, #0
	bgt	.L18
	ldr	r0, .L33+16
	bl	perror
	mov	r0, #1
	bl	exit
.L18:
	sub	r3, fp, #1040
	sub	r3, r3, #4
	sub	r3, r3, #4
	mov	r2, #16
	mov	r1, r3
	ldr	r0, [fp, #-1064]
	bl	connect
	mov	r3, r0
	cmp	r3, #0
	bge	.L19
	ldr	r0, .L33+20
	bl	perror
	mov	r0, #1
	bl	exit
.L19:
	sub	r3, fp, #1056
	sub	r3, r3, #4
	sub	r3, r3, #5
	mov	r2, #1
	mov	r1, r3
	ldr	r0, [fp, #-1064]
	bl	full_write
	mov	r3, r0
	cmp	r3, #0
	bge	.L20
	ldr	r0, .L33+24
	bl	perror
	mov	r0, #1
	bl	exit
.L20:
	ldr	r0, .L33+28
	bl	puts
	ldr	r0, .L33+32
	bl	puts
.L25:
	ldr	r0, .L33+36
	bl	printf
	ldr	r3, .L33+40
	ldr	r2, [r3]
	sub	r3, fp, #1056
	sub	r3, r3, #4
	mov	r1, #1024
	mov	r0, r3
	bl	fgets
	mov	r3, r0
	cmp	r3, #0
	bne	.L21
	ldr	r0, .L33+44
	bl	perror
	mov	r0, #1
	bl	exit
.L21:
	sub	r3, fp, #1056
	sub	r3, r3, #4
	mov	r0, r3
	bl	strlen
	mov	r3, r0
	cmp	r3, #11
	beq	.L22
	ldr	r0, .L33+48
	bl	puts
	b	.L25
.L22:
	mov	r3, #0
	strb	r3, [fp, #-1050]
.L24:
	ldr	r0, .L33+52
	bl	printf
	sub	r3, fp, #1056
	sub	r3, r3, #4
	add	r3, r3, #11
	mov	r1, r3
	ldr	r0, .L33+56
	bl	__isoc99_scanf
	ldrb	r3, [fp, #-1049]	@ zero_extendqisi2
	cmp	r3, #49
	beq	.L26
	ldrb	r3, [fp, #-1049]	@ zero_extendqisi2
	cmp	r3, #48
	beq	.L26
	ldr	r0, .L33+60
	bl	puts
	b	.L24
.L26:
	ldrb	r3, [fp, #-1049]	@ zero_extendqisi2
	cmp	r3, #49
	bne	.L27
	ldr	r0, .L33+64
	bl	puts
	b	.L28
.L27:
	ldr	r0, .L33+68
	bl	puts
.L28:
	sub	r3, fp, #1056
	sub	r3, r3, #4
	mov	r2, #12
	mov	r1, r3
	ldr	r0, [fp, #-1064]
	bl	full_write
	mov	r3, r0
	cmp	r3, #0
	bge	.L29
	ldr	r0, .L33+24
	bl	perror
	mov	r0, #1
	bl	exit
.L29:
	sub	r3, fp, #1024
	sub	r3, r3, #4
	sub	r3, r3, #4
	mov	r2, #39
	mov	r1, r3
	ldr	r0, [fp, #-1064]
	bl	full_read
	mov	r3, r0
	cmp	r3, #0
	bge	.L30
	ldr	r0, .L33+72
	bl	perror
	mov	r0, #1
	bl	exit
.L30:
	mov	r0, #2
	bl	sleep
	sub	r3, fp, #1024
	sub	r3, r3, #4
	sub	r3, r3, #4
	mov	r0, r3
	bl	puts
	mov	r0, #0
	bl	exit
.L34:
	.align	2
.L33:
	.word	.LC16
	.word	.LC0
	.word	1026
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	stdin
	.word	.LC8
	.word	.LC9
	.word	.LC10
	.word	.LC11
	.word	.LC12
	.word	.LC13
	.word	.LC14
	.word	.LC15
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
