	.file	"10648.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"[parent] il mio PID \303\250: %d\n"
	.align 8
.LC1:
	.string	"[child] sono il processo figlio (child process), il mio PID \303\250: %d\n"
.LC2:
	.string	"dialog"
.LC3:
	.string	"--backtitle"
.LC4:
	.string	"backtitle del dialog"
.LC5:
	.string	"--title"
.LC6:
	.string	"titolo del dialog"
.LC7:
	.string	"--yesno"
.LC8:
	.string	"\nBla bla bla...\n\nTi va bene?"
.LC9:
	.string	"10"
.LC10:
	.string	"30"
.LC11:
	.string	"[child] prima di execve"
.LC12:
	.string	"/usr/bin/dialog"
	.align 8
.LC13:
	.string	"[child] se siamo qui, qualcosa \303\250 andato storto\n"
	.align 8
.LC14:
	.string	"[parent] dopo il fork, sono il processo padre\n[parent] il PID del processo figlio \303\250 %d\n"
.LC15:
	.string	"[parent] waitpid"
	.align 8
.LC16:
	.string	"[parent] child process \303\250 terminato, ha restituito: %d\n"
	.align 8
.LC17:
	.string	"[parent] child process killed by signal %d\n"
	.align 8
.LC18:
	.string	"[parent] child process stopped by signal %d\n"
	.align 8
.LC19:
	.string	"[parent] child process continued"
	.text
	.globl	modal_dialog
	.type	modal_dialog, @function
modal_dialog:
.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, 112
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -108[rbp], -1
	call	getpid@PLT
	mov	esi, eax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	call	fork@PLT
	mov	DWORD PTR -104[rbp], eax
	cmp	DWORD PTR -104[rbp], 0
	jne	.L2
	call	getpid@PLT
	mov	esi, eax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, .LC2[rip]
	mov	QWORD PTR -96[rbp], rax
	lea	rax, .LC3[rip]
	mov	QWORD PTR -88[rbp], rax
	lea	rax, .LC4[rip]
	mov	QWORD PTR -80[rbp], rax
	lea	rax, .LC5[rip]
	mov	QWORD PTR -72[rbp], rax
	lea	rax, .LC6[rip]
	mov	QWORD PTR -64[rbp], rax
	lea	rax, .LC7[rip]
	mov	QWORD PTR -56[rbp], rax
	lea	rax, .LC8[rip]
	mov	QWORD PTR -48[rbp], rax
	lea	rax, .LC9[rip]
	mov	QWORD PTR -40[rbp], rax
	lea	rax, .LC10[rip]
	mov	QWORD PTR -32[rbp], rax
	mov	QWORD PTR -24[rbp], 0
	lea	rdi, .LC11[rip]
	call	puts@PLT
	mov	rdx, QWORD PTR environ[rip]
	lea	rax, -96[rbp]
	mov	rsi, rax
	lea	rdi, .LC12[rip]
	call	execve@PLT
	lea	rdi, .LC13[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L2:
	mov	eax, DWORD PTR -104[rbp]
	mov	esi, eax
	lea	rdi, .LC14[rip]
	mov	eax, 0
	call	printf@PLT
.L9:
	lea	rcx, -112[rbp]
	mov	eax, DWORD PTR -104[rbp]
	mov	edx, 10
	mov	rsi, rcx
	mov	edi, eax
	call	waitpid@PLT
	mov	DWORD PTR -100[rbp], eax
	cmp	DWORD PTR -100[rbp], -1
	jne	.L3
	lea	rdi, .LC15[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L3:
	mov	eax, DWORD PTR -112[rbp]
	and	eax, 127
	test	eax, eax
	jne	.L4
	mov	eax, DWORD PTR -112[rbp]
	sar	eax, 8
	and	eax, 255
	mov	DWORD PTR -108[rbp], eax
	mov	eax, DWORD PTR -108[rbp]
	mov	esi, eax
	lea	rdi, .LC16[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L5
.L4:
	mov	eax, DWORD PTR -112[rbp]
	and	eax, 127
	add	eax, 1
	sar	al
	test	al, al
	jle	.L6
	mov	eax, DWORD PTR -112[rbp]
	and	eax, 127
	mov	esi, eax
	lea	rdi, .LC17[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L5
.L6:
	mov	eax, DWORD PTR -112[rbp]
	movzx	eax, al
	cmp	eax, 127
	jne	.L7
	mov	eax, DWORD PTR -112[rbp]
	sar	eax, 8
	movzx	eax, al
	mov	esi, eax
	lea	rdi, .LC18[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L5
.L7:
	mov	eax, DWORD PTR -112[rbp]
	cmp	eax, 65535
	jne	.L5
	lea	rdi, .LC19[rip]
	call	puts@PLT
.L5:
	mov	eax, DWORD PTR -112[rbp]
	and	eax, 127
	test	eax, eax
	je	.L8
	mov	eax, DWORD PTR -112[rbp]
	and	eax, 127
	add	eax, 1
	sar	al
	test	al, al
	jle	.L9
.L8:
	mov	eax, DWORD PTR -108[rbp]
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L11
	call	__stack_chk_fail@PLT
.L11:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	modal_dialog, .-modal_dialog
	.section	.rodata
.LC20:
	.string	"/usr/bin/clear"
.LC21:
	.string	"scelta_utente = %d\n"
	.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, 32
	mov	DWORD PTR -20[rbp], edi
	mov	QWORD PTR -32[rbp], rsi
	mov	eax, 0
	call	modal_dialog
	mov	DWORD PTR -4[rbp], eax
	lea	rdi, .LC20[rip]
	call	system@PLT
	mov	eax, DWORD PTR -4[rbp]
	mov	esi, eax
	lea	rdi, .LC21[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, 0
	leave
	.cfi_def_cfa 7, 8
	ret
	.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	"10648.c"
	.section	.rodata
	.align	2
.LC0:
	.ascii	"dialog\000"
	.align	2
.LC1:
	.ascii	"--backtitle\000"
	.align	2
.LC2:
	.ascii	"backtitle del dialog\000"
	.align	2
.LC3:
	.ascii	"--title\000"
	.align	2
.LC4:
	.ascii	"titolo del dialog\000"
	.align	2
.LC5:
	.ascii	"--yesno\000"
	.align	2
.LC6:
	.ascii	"\012Bla bla bla...\012\012Ti va bene?\000"
	.align	2
.LC7:
	.ascii	"10\000"
	.align	2
.LC8:
	.ascii	"30\000"
	.text
	.section	.rodata
	.align	2
.LC10:
	.ascii	"[parent] il mio PID \303\250: %d\012\000"
	.align	2
.LC11:
	.ascii	"[child] sono il processo figlio (child process), il"
	.ascii	" mio PID \303\250: %d\012\000"
	.align	2
.LC13:
	.ascii	"[child] prima di execve\000"
	.align	2
.LC14:
	.ascii	"/usr/bin/dialog\000"
	.align	2
.LC15:
	.ascii	"[child] se siamo qui, qualcosa \303\250 andato stor"
	.ascii	"to\012\000"
	.align	2
.LC16:
	.ascii	"[parent] dopo il fork, sono il processo padre\012[p"
	.ascii	"arent] il PID del processo figlio \303\250 %d\012\000"
	.align	2
.LC17:
	.ascii	"[parent] waitpid\000"
	.align	2
.LC18:
	.ascii	"[parent] child process \303\250 terminato, ha resti"
	.ascii	"tuito: %d\012\000"
	.align	2
.LC19:
	.ascii	"[parent] child process killed by signal %d\012\000"
	.align	2
.LC20:
	.ascii	"[parent] child process stopped by signal %d\012\000"
	.align	2
.LC21:
	.ascii	"[parent] child process continued\000"
	.align	2
.LC12:
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.word	0
	.align	2
.LC22:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	modal_dialog
	.syntax unified
	.arm
	.fpu softvfp
	.type	modal_dialog, %function
modal_dialog:
	@ args = 0, pretend = 0, frame = 64
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #64
	ldr	r3, .L12
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mvn	r3, #0
	str	r3, [fp, #-60]
	bl	getpid
	mov	r3, r0
	mov	r1, r3
	ldr	r0, .L12+4
	bl	printf
	bl	fork
	mov	r3, r0
	str	r3, [fp, #-56]
	ldr	r3, [fp, #-56]
	cmp	r3, #0
	bne	.L2
	bl	getpid
	mov	r3, r0
	mov	r1, r3
	ldr	r0, .L12+8
	bl	printf
	ldr	r3, .L12+12
	sub	ip, fp, #48
	mov	lr, r3
	ldmia	lr!, {r0, r1, r2, r3}
	stmia	ip!, {r0, r1, r2, r3}
	ldmia	lr!, {r0, r1, r2, r3}
	stmia	ip!, {r0, r1, r2, r3}
	ldm	lr, {r0, r1}
	stm	ip, {r0, r1}
	ldr	r0, .L12+16
	bl	puts
	ldr	r3, .L12+20
	ldr	r2, [r3]
	sub	r3, fp, #48
	mov	r1, r3
	ldr	r0, .L12+24
	bl	execve
	ldr	r0, .L12+28
	bl	perror
	mov	r0, #1
	bl	exit
.L2:
	ldr	r1, [fp, #-56]
	ldr	r0, .L12+32
	bl	printf
.L9:
	sub	r3, fp, #64
	mov	r2, #10
	mov	r1, r3
	ldr	r0, [fp, #-56]
	bl	waitpid
	str	r0, [fp, #-52]
	ldr	r3, [fp, #-52]
	cmn	r3, #1
	bne	.L3
	ldr	r0, .L12+36
	bl	perror
	mov	r0, #1
	bl	exit
.L3:
	ldr	r3, [fp, #-64]
	and	r3, r3, #127
	cmp	r3, #0
	bne	.L4
	ldr	r3, [fp, #-64]
	asr	r3, r3, #8
	and	r3, r3, #255
	str	r3, [fp, #-60]
	ldr	r1, [fp, #-60]
	ldr	r0, .L12+40
	bl	printf
	b	.L5
.L4:
	ldr	r3, [fp, #-64]
	and	r3, r3, #255
	and	r3, r3, #127
	and	r3, r3, #255
	add	r3, r3, #1
	and	r3, r3, #255
	lsl	r3, r3, #24
	asr	r3, r3, #24
	asr	r3, r3, #1
	lsl	r3, r3, #24
	asr	r3, r3, #24
	cmp	r3, #0
	ble	.L6
	ldr	r3, [fp, #-64]
	and	r3, r3, #127
	mov	r1, r3
	ldr	r0, .L12+44
	bl	printf
	b	.L5
.L6:
	ldr	r3, [fp, #-64]
	and	r3, r3, #255
	cmp	r3, #127
	bne	.L7
	ldr	r3, [fp, #-64]
	asr	r3, r3, #8
	and	r3, r3, #255
	mov	r1, r3
	ldr	r0, .L12+48
	bl	printf
	b	.L5
.L7:
	ldr	r3, [fp, #-64]
	ldr	r2, .L12+52
	cmp	r3, r2
	bne	.L5
	ldr	r0, .L12+56
	bl	puts
.L5:
	ldr	r3, [fp, #-64]
	and	r3, r3, #127
	cmp	r3, #0
	beq	.L8
	ldr	r3, [fp, #-64]
	and	r3, r3, #255
	and	r3, r3, #127
	and	r3, r3, #255
	add	r3, r3, #1
	and	r3, r3, #255
	lsl	r3, r3, #24
	asr	r3, r3, #24
	asr	r3, r3, #1
	lsl	r3, r3, #24
	asr	r3, r3, #24
	cmp	r3, #0
	ble	.L9
.L8:
	ldr	r3, [fp, #-60]
	ldr	r2, .L12
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L11
	bl	__stack_chk_fail
.L11:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L13:
	.align	2
.L12:
	.word	.LC22
	.word	.LC10
	.word	.LC11
	.word	.LC12
	.word	.LC13
	.word	environ
	.word	.LC14
	.word	.LC15
	.word	.LC16
	.word	.LC17
	.word	.LC18
	.word	.LC19
	.word	.LC20
	.word	65535
	.word	.LC21
	.size	modal_dialog, .-modal_dialog
	.section	.rodata
	.align	2
.LC23:
	.ascii	"/usr/bin/clear\000"
	.align	2
.LC24:
	.ascii	"scelta_utente = %d\012\000"
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	bl	modal_dialog
	str	r0, [fp, #-8]
	ldr	r0, .L16
	bl	system
	ldr	r1, [fp, #-8]
	ldr	r0, .L16+4
	bl	printf
	mov	r3, #0
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L17:
	.align	2
.L16:
	.word	.LC23
	.word	.LC24
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
