	.file	"682542.c"
	.intel_syntax noprefix
	.text
	.globl	getStats
	.type	getStats, @function
getStats:
.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, 576
	mov	QWORD PTR -568[rbp], rdi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	BYTE PTR -548[rbp], 127
	mov	BYTE PTR -547[rbp], 0
	lea	rdx, -528[rbp]
	mov	eax, 0
	mov	ecx, 64
	mov	rdi, rdx
	rep stosq
	mov	DWORD PTR -544[rbp], 0
	jmp	.L2
.L5:
	mov	eax, DWORD PTR -544[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -568[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	cmp	BYTE PTR -547[rbp], al
	jge	.L3
	mov	eax, DWORD PTR -544[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -568[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	mov	BYTE PTR -547[rbp], al
.L3:
	mov	eax, DWORD PTR -544[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -568[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	cmp	BYTE PTR -548[rbp], al
	jle	.L4
	mov	eax, DWORD PTR -544[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -568[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	mov	BYTE PTR -548[rbp], al
.L4:
	mov	eax, DWORD PTR -544[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -568[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	movsx	eax, al
	movsx	rdx, eax
	mov	edx, DWORD PTR -528[rbp+rdx*4]
	add	edx, 1
	cdqe
	mov	DWORD PTR -528[rbp+rax*4], edx
	add	DWORD PTR -544[rbp], 1
.L2:
	cmp	DWORD PTR -544[rbp], 9
	jle	.L5
	mov	rax, QWORD PTR -568[rbp]
	movzx	eax, BYTE PTR [rax]
	mov	BYTE PTR -546[rbp], al
	mov	rax, QWORD PTR -568[rbp]
	movzx	eax, BYTE PTR [rax]
	mov	BYTE PTR -545[rbp], al
	mov	DWORD PTR -540[rbp], 0
	jmp	.L6
.L10:
	mov	eax, DWORD PTR -540[rbp]
	cdqe
	mov	eax, DWORD PTR -528[rbp+rax*4]
	test	eax, eax
	je	.L13
	mov	eax, DWORD PTR -540[rbp]
	cdqe
	mov	edx, DWORD PTR -528[rbp+rax*4]
	movsx	eax, BYTE PTR -545[rbp]
	cdqe
	mov	eax, DWORD PTR -528[rbp+rax*4]
	cmp	edx, eax
	jle	.L9
	mov	eax, DWORD PTR -540[rbp]
	mov	BYTE PTR -545[rbp], al
.L9:
	mov	eax, DWORD PTR -540[rbp]
	cdqe
	mov	edx, DWORD PTR -528[rbp+rax*4]
	movsx	eax, BYTE PTR -546[rbp]
	cdqe
	mov	eax, DWORD PTR -528[rbp+rax*4]
	cmp	edx, eax
	jge	.L8
	mov	eax, DWORD PTR -540[rbp]
	mov	BYTE PTR -546[rbp], al
	jmp	.L8
.L13:
	nop
.L8:
	add	DWORD PTR -540[rbp], 1
.L6:
	cmp	DWORD PTR -540[rbp], 127
	jle	.L10
	mov	edi, 4
	call	malloc@PLT
	mov	QWORD PTR -536[rbp], rax
	mov	rax, QWORD PTR -536[rbp]
	movzx	edx, BYTE PTR -548[rbp]
	mov	BYTE PTR [rax], dl
	mov	rax, QWORD PTR -536[rbp]
	lea	rdx, 1[rax]
	movzx	eax, BYTE PTR -547[rbp]
	mov	BYTE PTR [rdx], al
	mov	rax, QWORD PTR -536[rbp]
	lea	rdx, 2[rax]
	movzx	eax, BYTE PTR -545[rbp]
	mov	BYTE PTR [rdx], al
	mov	rax, QWORD PTR -536[rbp]
	lea	rdx, 3[rax]
	movzx	eax, BYTE PTR -546[rbp]
	mov	BYTE PTR [rdx], al
	mov	rax, QWORD PTR -536[rbp]
	mov	rsi, QWORD PTR -8[rbp]
	sub	rsi, QWORD PTR fs:40
	je	.L12
	call	__stack_chk_fail@PLT
.L12:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	getStats, .-getStats
	.section	.rodata
	.align 8
.LC0:
	.string	"Numero processi generati: %d\n."
	.align 8
.LC1:
	.string	"Statistiche:\n1) Carattere minimo: %c.\n2) Carattere massimo: %c.\n3) Carattere con pi\303\271 occorrenze: %c.\n4) Carattere con meno occorrenze: %c.\n"
.LC2:
	.string	"fork"
	.text
	.globl	main
	.type	main, @function
main:
.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, 64
	mov	DWORD PTR -52[rbp], edi
	mov	QWORD PTR -64[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -40[rbp], 0
	mov	DWORD PTR -36[rbp], 0
.L19:
	call	getchar@PLT
	mov	ecx, eax
	mov	eax, DWORD PTR -40[rbp]
	lea	edx, 1[rax]
	mov	DWORD PTR -40[rbp], edx
	mov	edx, ecx
	cdqe
	mov	BYTE PTR -18[rbp+rax], dl
	mov	eax, DWORD PTR -40[rbp]
	sub	eax, 1
	cdqe
	movzx	eax, BYTE PTR -18[rbp+rax]
	cmp	al, -1
	jne	.L15
	mov	eax, DWORD PTR -36[rbp]
	mov	esi, eax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edi, 0
	call	exit@PLT
.L15:
	cmp	DWORD PTR -40[rbp], 10
	jne	.L21
	call	fork@PLT
	cmp	eax, -1
	je	.L17
	test	eax, eax
	jne	.L18
	lea	rax, -18[rbp]
	mov	rdi, rax
	call	getStats
	mov	QWORD PTR -32[rbp], rax
	mov	rax, QWORD PTR -32[rbp]
	add	rax, 3
	movzx	eax, BYTE PTR [rax]
	movsx	esi, al
	mov	rax, QWORD PTR -32[rbp]
	add	rax, 2
	movzx	eax, BYTE PTR [rax]
	movsx	ecx, al
	mov	rax, QWORD PTR -32[rbp]
	add	rax, 1
	movzx	eax, BYTE PTR [rax]
	movsx	edx, al
	mov	rax, QWORD PTR -32[rbp]
	movzx	eax, BYTE PTR [rax]
	movsx	eax, al
	mov	r8d, esi
	mov	esi, eax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edi, 0
	call	exit@PLT
.L17:
	lea	rdi, .LC2[rip]
	call	perror@PLT
.L18:
	mov	edi, 0
	call	wait@PLT
	mov	DWORD PTR -40[rbp], 0
	add	DWORD PTR -36[rbp], 1
	jmp	.L16
.L21:
	nop
.L16:
	jmp	.L19
	.cfi_endproc
.LFE7:
	.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	"682542.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	getStats
	.syntax unified
	.arm
	.fpu softvfp
	.type	getStats, %function
getStats:
	@ args = 0, pretend = 0, frame = 1056
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #1056
	str	r0, [fp, #-1056]
	ldr	r3, .L14
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mvn	r3, #0
	strb	r3, [fp, #-1048]
	mov	r3, #0
	strb	r3, [fp, #-1047]
	sub	r3, fp, #1024
	sub	r3, r3, #4
	sub	r3, r3, #4
	mov	r2, #1024
	mov	r1, #0
	mov	r0, r3
	bl	memset
	mov	r3, #0
	str	r3, [fp, #-1044]
	b	.L2
.L5:
	ldr	r3, [fp, #-1044]
	ldr	r2, [fp, #-1056]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	ldrb	r2, [fp, #-1047]	@ zero_extendqisi2
	cmp	r2, r3
	bcs	.L3
	ldr	r3, [fp, #-1044]
	ldr	r2, [fp, #-1056]
	add	r3, r2, r3
	ldrb	r3, [r3]
	strb	r3, [fp, #-1047]
.L3:
	ldr	r3, [fp, #-1044]
	ldr	r2, [fp, #-1056]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	ldrb	r2, [fp, #-1048]	@ zero_extendqisi2
	cmp	r2, r3
	bls	.L4
	ldr	r3, [fp, #-1044]
	ldr	r2, [fp, #-1056]
	add	r3, r2, r3
	ldrb	r3, [r3]
	strb	r3, [fp, #-1048]
.L4:
	ldr	r3, [fp, #-1044]
	ldr	r2, [fp, #-1056]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r2, r3
	lsl	r3, r2, #2
	sub	r1, fp, #4
	add	r3, r1, r3
	ldr	r3, [r3, #-1028]
	add	r1, r3, #1
	lsl	r3, r2, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	str	r1, [r3, #-1028]
	ldr	r3, [fp, #-1044]
	add	r3, r3, #1
	str	r3, [fp, #-1044]
.L2:
	ldr	r3, [fp, #-1044]
	cmp	r3, #9
	ble	.L5
	ldr	r3, [fp, #-1056]
	ldrb	r3, [r3]
	strb	r3, [fp, #-1046]
	ldr	r3, [fp, #-1056]
	ldrb	r3, [r3]
	strb	r3, [fp, #-1045]
	mov	r3, #0
	str	r3, [fp, #-1040]
	b	.L6
.L10:
	ldr	r3, [fp, #-1040]
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r3, [r3, #-1028]
	cmp	r3, #0
	beq	.L13
	ldr	r3, [fp, #-1040]
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r2, [r3, #-1028]
	ldrb	r3, [fp, #-1045]	@ zero_extendqisi2
	lsl	r3, r3, #2
	sub	r1, fp, #4
	add	r3, r1, r3
	ldr	r3, [r3, #-1028]
	cmp	r2, r3
	ble	.L9
	ldr	r3, [fp, #-1040]
	strb	r3, [fp, #-1045]
.L9:
	ldr	r3, [fp, #-1040]
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r2, [r3, #-1028]
	ldrb	r3, [fp, #-1046]	@ zero_extendqisi2
	lsl	r3, r3, #2
	sub	r1, fp, #4
	add	r3, r1, r3
	ldr	r3, [r3, #-1028]
	cmp	r2, r3
	bge	.L8
	ldr	r3, [fp, #-1040]
	strb	r3, [fp, #-1046]
	b	.L8
.L13:
	nop
.L8:
	ldr	r3, [fp, #-1040]
	add	r3, r3, #1
	str	r3, [fp, #-1040]
.L6:
	ldr	r3, [fp, #-1040]
	cmp	r3, #255
	ble	.L10
	mov	r0, #4
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-1036]
	ldr	r3, [fp, #-1036]
	ldrb	r2, [fp, #-1048]
	strb	r2, [r3]
	ldr	r3, [fp, #-1036]
	add	r3, r3, #1
	ldrb	r2, [fp, #-1047]
	strb	r2, [r3]
	ldr	r3, [fp, #-1036]
	add	r3, r3, #2
	ldrb	r2, [fp, #-1045]
	strb	r2, [r3]
	ldr	r3, [fp, #-1036]
	add	r3, r3, #3
	ldrb	r2, [fp, #-1046]
	strb	r2, [r3]
	ldr	r3, [fp, #-1036]
	ldr	r2, .L14
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L12
	bl	__stack_chk_fail
.L12:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L15:
	.align	2
.L14:
	.word	.LC0
	.size	getStats, .-getStats
	.section	.rodata
	.align	2
.LC1:
	.ascii	"Statistiche:\0121) Carattere minimo: %c.\0122) Cara"
	.ascii	"ttere massimo: %c.\0123) Carattere con pi\303\271 o"
	.ascii	"ccorrenze: %c.\0124) Carattere con meno occorrenze:"
	.ascii	" %c.\012\000"
	.align	2
.LC2:
	.ascii	"fork\000"
	.align	2
.LC3:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 40
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #48
	str	r0, [fp, #-40]
	str	r1, [fp, #-44]
	ldr	r3, .L23
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-32]
	mov	r3, #0
	str	r3, [fp, #-28]
.L20:
	bl	getchar
	mov	r1, r0
	ldr	r3, [fp, #-32]
	add	r2, r3, #1
	str	r2, [fp, #-32]
	and	r2, r1, #255
	sub	r1, fp, #4
	add	r3, r1, r3
	strb	r2, [r3, #-16]
	ldr	r3, [fp, #-32]
	cmp	r3, #10
	bne	.L22
	bl	fork
	mov	r3, r0
	cmn	r3, #1
	beq	.L18
	cmp	r3, #0
	bne	.L19
	sub	r3, fp, #20
	mov	r0, r3
	bl	getStats
	str	r0, [fp, #-24]
	ldr	r3, [fp, #-24]
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r1, r3
	ldr	r3, [fp, #-24]
	add	r3, r3, #1
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r2, r3
	ldr	r3, [fp, #-24]
	add	r3, r3, #2
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r0, r3
	ldr	r3, [fp, #-24]
	add	r3, r3, #3
	ldrb	r3, [r3]	@ zero_extendqisi2
	str	r3, [sp]
	mov	r3, r0
	ldr	r0, .L23+4
	bl	printf
	mov	r0, #0
	bl	exit
.L18:
	ldr	r0, .L23+8
	bl	perror
.L19:
	mov	r0, #0
	bl	wait
	mov	r3, #0
	str	r3, [fp, #-32]
	ldr	r3, [fp, #-28]
	add	r3, r3, #1
	str	r3, [fp, #-28]
	b	.L17
.L22:
	nop
.L17:
	b	.L20
.L24:
	.align	2
.L23:
	.word	.LC3
	.word	.LC1
	.word	.LC2
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
