	.file	"153816.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"%s%s"
	.text
	.globl	rimpiazza
	.type	rimpiazza, @function
rimpiazza:
.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	QWORD PTR -24[rbp], rdi
	mov	QWORD PTR -32[rbp], rsi
	mov	QWORD PTR -40[rbp], rdx
	mov	rdx, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR -24[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strstr@PLT
	mov	QWORD PTR -8[rbp], rax
	cmp	QWORD PTR -8[rbp], 0
	jne	.L2
	mov	rax, QWORD PTR -24[rbp]
	jmp	.L3
.L2:
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR -24[rbp]
	mov	rdx, rax
	mov	rax, QWORD PTR -24[rbp]
	mov	rsi, rax
	lea	rdi, buff.0[rip]
	call	strncpy@PLT
	mov	rax, QWORD PTR -32[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	rdx, QWORD PTR -8[rbp]
	add	rdx, rax
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR -24[rbp]
	mov	rcx, rax
	lea	rax, buff.0[rip]
	lea	rdi, [rcx+rax]
	mov	rax, QWORD PTR -40[rbp]
	mov	rcx, rdx
	mov	rdx, rax
	lea	rsi, .LC0[rip]
	mov	eax, 0
	call	sprintf@PLT
	lea	rax, buff.0[rip]
.L3:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	rimpiazza, .-rimpiazza
	.section	.rodata
.LC1:
	.string	"r+"
.LC2:
	.string	"sorgente.txt"
.LC3:
	.string	"dizionario.txt"
.LC4:
	.string	"w"
.LC5:
	.string	"ricondizionato.txt"
	.align 8
.LC6:
	.string	"\nErrore nell'apertura del file 1"
	.align 8
.LC7:
	.string	"\nErrore nell'apertura del file 2"
.LC8:
	.string	"%d"
.LC9:
	.string	"%s %s"
	.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
	push	r15
	push	r14
	push	r13
	push	r12
	push	rbx
	sub	rsp, 280
	.cfi_offset 15, -24
	.cfi_offset 14, -32
	.cfi_offset 13, -40
	.cfi_offset 12, -48
	.cfi_offset 3, -56
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -56[rbp], rax
	xor	eax, eax
	mov	rax, rsp
	mov	rbx, rax
	mov	DWORD PTR -308[rbp], 0
	lea	rsi, .LC1[rip]
	lea	rdi, .LC2[rip]
	call	fopen@PLT
	mov	QWORD PTR -296[rbp], rax
	lea	rsi, .LC1[rip]
	lea	rdi, .LC3[rip]
	call	fopen@PLT
	mov	QWORD PTR -288[rbp], rax
	lea	rsi, .LC4[rip]
	lea	rdi, .LC5[rip]
	call	fopen@PLT
	mov	QWORD PTR -280[rbp], rax
	cmp	QWORD PTR -296[rbp], 0
	jne	.L5
	lea	rdi, .LC6[rip]
	call	puts@PLT
	mov	edi, 1
	call	exit@PLT
.L5:
	cmp	QWORD PTR -288[rbp], 0
	jne	.L6
	lea	rdi, .LC7[rip]
	call	puts@PLT
	mov	edi, 1
	call	exit@PLT
.L6:
	lea	rdx, -308[rbp]
	mov	rax, QWORD PTR -288[rbp]
	lea	rsi, .LC8[rip]
	mov	rdi, rax
	mov	eax, 0
	call	__isoc99_fscanf@PLT
	mov	ecx, DWORD PTR -308[rbp]
	movsx	rax, ecx
	sub	rax, 1
	mov	QWORD PTR -272[rbp], rax
	movsx	rax, ecx
	mov	r14, rax
	mov	r15d, 0
	imul	rdx, r15, 320
	imul	rax, r14, 0
	lea	rsi, [rdx+rax]
	mov	eax, 320
	mul	r14
	add	rsi, rdx
	mov	rdx, rsi
	movsx	rdx, ecx
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	sal	rax, 3
	movsx	rax, ecx
	mov	r12, rax
	mov	r13d, 0
	imul	rdx, r13, 320
	imul	rax, r12, 0
	lea	rsi, [rdx+rax]
	mov	eax, 320
	mul	r12
	add	rsi, rdx
	mov	rdx, rsi
	movsx	rdx, ecx
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	sal	rax, 3
	mov	rdx, rax
	mov	eax, 16
	sub	rax, 1
	add	rax, rdx
	mov	edi, 16
	mov	edx, 0
	div	rdi
	imul	rax, rax, 16
	mov	rcx, rax
	and	rcx, -4096
	mov	rdx, rsp
	sub	rdx, rcx
.L7:
	cmp	rsp, rdx
	je	.L8
	sub	rsp, 4096
	or	QWORD PTR 4088[rsp], 0
	jmp	.L7
.L8:
	mov	rdx, rax
	and	edx, 4095
	sub	rsp, rdx
	mov	rdx, rax
	and	edx, 4095
	test	rdx, rdx
	je	.L9
	and	eax, 4095
	sub	rax, 8
	add	rax, rsp
	or	QWORD PTR [rax], 0
.L9:
	mov	rax, rsp
	add	rax, 0
	mov	QWORD PTR -264[rbp], rax
	mov	DWORD PTR -300[rbp], 0
	jmp	.L10
.L11:
	mov	eax, DWORD PTR -300[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	sal	rax, 3
	lea	rdx, 16[rax]
	mov	rax, QWORD PTR -264[rbp]
	add	rax, rdx
	lea	rcx, 4[rax]
	mov	eax, DWORD PTR -300[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	sal	rax, 3
	mov	rdx, QWORD PTR -264[rbp]
	add	rdx, rax
	mov	rax, QWORD PTR -288[rbp]
	lea	rsi, .LC9[rip]
	mov	rdi, rax
	mov	eax, 0
	call	__isoc99_fscanf@PLT
	add	DWORD PTR -300[rbp], 1
.L10:
	mov	eax, DWORD PTR -308[rbp]
	cmp	DWORD PTR -300[rbp], eax
	jl	.L11
	jmp	.L12
.L17:
	mov	DWORD PTR -304[rbp], 0
	jmp	.L13
.L15:
	mov	eax, DWORD PTR -304[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	sal	rax, 3
	mov	rdx, QWORD PTR -264[rbp]
	add	rdx, rax
	mov	eax, DWORD PTR -304[rbp]
	movsx	rcx, eax
	mov	rax, rcx
	sal	rax, 2
	add	rax, rcx
	sal	rax, 3
	lea	rcx, 16[rax]
	mov	rax, QWORD PTR -264[rbp]
	add	rax, rcx
	lea	rcx, 4[rax]
	lea	rax, -256[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	rimpiazza
	mov	rdx, rax
	lea	rax, -256[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcpy@PLT
.L14:
	mov	eax, DWORD PTR -304[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	sal	rax, 3
	lea	rdx, 16[rax]
	mov	rax, QWORD PTR -264[rbp]
	add	rax, rdx
	lea	rdx, 4[rax]
	lea	rax, -256[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strstr@PLT
	test	rax, rax
	jne	.L15
	add	DWORD PTR -304[rbp], 1
.L13:
	mov	eax, DWORD PTR -308[rbp]
	cmp	DWORD PTR -304[rbp], eax
	jl	.L14
	mov	rdx, QWORD PTR -280[rbp]
	lea	rax, -256[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	fputs@PLT
.L12:
	mov	rdx, QWORD PTR -296[rbp]
	lea	rax, -256[rbp]
	mov	esi, 200
	mov	rdi, rax
	call	fgets@PLT
	test	rax, rax
	jne	.L17
	mov	rax, QWORD PTR -296[rbp]
	mov	rdi, rax
	call	fclose@PLT
	mov	rax, QWORD PTR -288[rbp]
	mov	rdi, rax
	call	fclose@PLT
	mov	rax, QWORD PTR -280[rbp]
	mov	rdi, rax
	call	fclose@PLT
	mov	eax, 0
	mov	rsp, rbx
	mov	rbx, QWORD PTR -56[rbp]
	sub	rbx, QWORD PTR fs:40
	je	.L19
	call	__stack_chk_fail@PLT
.L19:
	lea	rsp, -40[rbp]
	pop	rbx
	pop	r12
	pop	r13
	pop	r14
	pop	r15
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	main, .-main
	.local	buff.0
	.comm	buff.0,200,32
	.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	"153816.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"%s%s\000"
	.text
	.align	2
	.global	rimpiazza
	.syntax unified
	.arm
	.fpu softvfp
	.type	rimpiazza, %function
rimpiazza:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #28
	str	r0, [fp, #-24]
	str	r1, [fp, #-28]
	str	r2, [fp, #-32]
	ldr	r1, [fp, #-28]
	ldr	r0, [fp, #-24]
	bl	strstr
	str	r0, [fp, #-16]
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	bne	.L2
	ldr	r3, [fp, #-24]
	b	.L3
.L2:
	ldr	r2, [fp, #-16]
	ldr	r3, [fp, #-24]
	sub	r3, r2, r3
	mov	r2, r3
	ldr	r1, [fp, #-24]
	ldr	r0, .L4
	bl	strncpy
	ldr	r2, [fp, #-16]
	ldr	r3, [fp, #-24]
	sub	r3, r2, r3
	mov	r2, r3
	ldr	r3, .L4
	add	r4, r2, r3
	ldr	r0, [fp, #-28]
	bl	strlen
	mov	r2, r0
	ldr	r3, [fp, #-16]
	add	r3, r3, r2
	ldr	r2, [fp, #-32]
	ldr	r1, .L4+4
	mov	r0, r4
	bl	sprintf
	ldr	r3, .L4
.L3:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L5:
	.align	2
.L4:
	.word	buff.5304
	.word	.LC0
	.size	rimpiazza, .-rimpiazza
	.section	.rodata
	.align	2
.LC1:
	.ascii	"r+\000"
	.align	2
.LC2:
	.ascii	"sorgente.txt\000"
	.align	2
.LC3:
	.ascii	"dizionario.txt\000"
	.align	2
.LC4:
	.ascii	"w\000"
	.align	2
.LC5:
	.ascii	"ricondizionato.txt\000"
	.align	2
.LC6:
	.ascii	"\012Errore nell'apertura del file 1\000"
	.align	2
.LC7:
	.ascii	"\012Errore nell'apertura del file 2\000"
	.align	2
.LC8:
	.ascii	"%d\000"
	.align	2
.LC9:
	.ascii	"%s %s\000"
	.align	2
.LC10:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 240
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, fp, lr}
	add	fp, sp, #16
	sub	sp, sp, #244
	ldr	r3, .L19
	ldr	r3, [r3]
	str	r3, [fp, #-24]
	mov	r3,#0
	mov	r3, sp
	mov	r6, r3
	mov	r3, #0
	str	r3, [fp, #-256]
	ldr	r1, .L19+4
	ldr	r0, .L19+8
	bl	fopen
	str	r0, [fp, #-244]
	ldr	r1, .L19+4
	ldr	r0, .L19+12
	bl	fopen
	str	r0, [fp, #-240]
	ldr	r1, .L19+16
	ldr	r0, .L19+20
	bl	fopen
	str	r0, [fp, #-236]
	ldr	r3, [fp, #-244]
	cmp	r3, #0
	bne	.L7
	ldr	r0, .L19+24
	bl	puts
	mov	r0, #1
	bl	exit
.L7:
	ldr	r3, [fp, #-240]
	cmp	r3, #0
	bne	.L8
	ldr	r0, .L19+28
	bl	puts
	mov	r0, #1
	bl	exit
.L8:
	sub	r3, fp, #256
	mov	r2, r3
	ldr	r1, .L19+32
	ldr	r0, [fp, #-240]
	bl	__isoc99_fscanf
	ldr	ip, [fp, #-256]
	sub	r3, ip, #1
	str	r3, [fp, #-232]
	mov	r3, ip
	mov	r4, r3
	mov	r5, #0
	mov	r2, r4
	mov	r3, r5
	mov	r0, #0
	mov	r1, #0
	lsl	r1, r3, #2
	orr	r1, r1, r2, lsr #30
	lsl	r0, r2, #2
	mov	r2, r0
	mov	r3, r1
	adds	r2, r2, r4
	adc	r3, r3, r5
	mov	r0, #0
	mov	r1, #0
	lsl	r1, r3, #6
	orr	r1, r1, r2, lsr #26
	lsl	r0, r2, #6
	mov	r2, r0
	mov	r3, r1
	mov	r2, ip
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #3
	mov	r3, ip
	mov	r4, r3
	mov	r5, #0
	mov	r2, r4
	mov	r3, r5
	mov	r0, #0
	mov	r1, #0
	lsl	r1, r3, #2
	orr	r1, r1, r2, lsr #30
	lsl	r0, r2, #2
	mov	r2, r0
	mov	r3, r1
	adds	r2, r2, r4
	adc	r3, r3, r5
	mov	r0, #0
	mov	r1, #0
	lsl	r1, r3, #6
	orr	r1, r1, r2, lsr #26
	lsl	r0, r2, #6
	mov	r2, r0
	mov	r3, r1
	mov	r2, ip
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #3
	add	r3, r3, #7
	lsr	r3, r3, #3
	lsl	r3, r3, #3
	sub	sp, sp, r3
	mov	r3, sp
	add	r3, r3, #0
	str	r3, [fp, #-228]
	mov	r3, #0
	str	r3, [fp, #-248]
	b	.L9
.L10:
	ldr	r2, [fp, #-248]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #3
	ldr	r2, [fp, #-228]
	add	r1, r2, r3
	ldr	r2, [fp, #-248]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #3
	add	r3, r3, #16
	ldr	r2, [fp, #-228]
	add	r3, r2, r3
	add	r3, r3, #4
	mov	r2, r1
	ldr	r1, .L19+36
	ldr	r0, [fp, #-240]
	bl	__isoc99_fscanf
	ldr	r3, [fp, #-248]
	add	r3, r3, #1
	str	r3, [fp, #-248]
.L9:
	ldr	r3, [fp, #-256]
	ldr	r2, [fp, #-248]
	cmp	r2, r3
	blt	.L10
	b	.L11
.L16:
	mov	r3, #0
	str	r3, [fp, #-252]
	b	.L12
.L14:
	ldr	r2, [fp, #-252]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #3
	add	r3, r3, #16
	ldr	r2, [fp, #-228]
	add	r3, r2, r3
	add	r1, r3, #4
	ldr	r2, [fp, #-252]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #3
	ldr	r2, [fp, #-228]
	add	r2, r2, r3
	sub	r3, fp, #224
	mov	r0, r3
	bl	rimpiazza
	mov	r2, r0
	sub	r3, fp, #224
	mov	r1, r2
	mov	r0, r3
	bl	strcpy
.L13:
	ldr	r2, [fp, #-252]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #3
	add	r3, r3, #16
	ldr	r2, [fp, #-228]
	add	r3, r2, r3
	add	r2, r3, #4
	sub	r3, fp, #224
	mov	r1, r2
	mov	r0, r3
	bl	strstr
	mov	r3, r0
	cmp	r3, #0
	bne	.L14
	ldr	r3, [fp, #-252]
	add	r3, r3, #1
	str	r3, [fp, #-252]
.L12:
	ldr	r3, [fp, #-256]
	ldr	r2, [fp, #-252]
	cmp	r2, r3
	blt	.L13
	sub	r3, fp, #224
	ldr	r1, [fp, #-236]
	mov	r0, r3
	bl	fputs
.L11:
	sub	r3, fp, #224
	ldr	r2, [fp, #-244]
	mov	r1, #200
	mov	r0, r3
	bl	fgets
	mov	r3, r0
	cmp	r3, #0
	bne	.L16
	ldr	r0, [fp, #-244]
	bl	fclose
	ldr	r0, [fp, #-240]
	bl	fclose
	ldr	r0, [fp, #-236]
	bl	fclose
	mov	r3, #0
	mov	sp, r6
	ldr	r2, .L19
	ldr	r1, [r2]
	ldr	r2, [fp, #-24]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L18
	bl	__stack_chk_fail
.L18:
	mov	r0, r3
	sub	sp, fp, #16
	@ sp needed
	pop	{r4, r5, r6, fp, pc}
.L20:
	.align	2
.L19:
	.word	.LC10
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.word	.LC9
	.size	main, .-main
	.local	buff.5304
	.comm	buff.5304,200,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
