	.file	"8973.c"
	.intel_syntax noprefix
	.text
	.type	strcopy, @function
strcopy:
.LFB6:
	.cfi_startproc
	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 -40[rbp], rdi
	mov	rax, QWORD PTR -40[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	QWORD PTR -24[rbp], rax
	mov	rax, QWORD PTR -24[rbp]
	add	rax, 1
	mov	QWORD PTR -16[rbp], rax
	mov	rax, QWORD PTR -16[rbp]
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR -8[rbp], rax
	mov	rdx, QWORD PTR -16[rbp]
	mov	rcx, QWORD PTR -40[rbp]
	mov	rax, QWORD PTR -8[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	memcpy@PLT
	mov	rax, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	strcopy, .-strcopy
	.type	strallouer, @function
strallouer:
.LFB7:
	.cfi_startproc
	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	eax, DWORD PTR -20[rbp]
	add	eax, 1
	mov	eax, eax
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR -8[rbp], rax
	cmp	DWORD PTR -20[rbp], 0
	je	.L4
	mov	rax, QWORD PTR -8[rbp]
	mov	BYTE PTR [rax], 0
.L4:
	mov	rax, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	strallouer, .-strallouer
	.section	.rodata
.LC0:
	.string	"the_stack_data/8973.c"
.LC1:
	.string	"argc == 4"
	.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, 32
	mov	DWORD PTR -20[rbp], edi
	mov	QWORD PTR -32[rbp], rsi
	cmp	DWORD PTR -20[rbp], 4
	je	.L7
	lea	rcx, __PRETTY_FUNCTION__.2[rip]
	mov	edx, 74
	lea	rsi, .LC0[rip]
	lea	rdi, .LC1[rip]
	call	__assert_fail@PLT
.L7:
	mov	rax, QWORD PTR -32[rbp]
	add	rax, 24
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	fichier_lire
	mov	QWORD PTR -16[rbp], rax
	mov	rax, QWORD PTR -32[rbp]
	add	rax, 16
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR -32[rbp]
	add	rax, 8
	mov	rcx, QWORD PTR [rax]
	mov	rax, QWORD PTR -16[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	string_replace
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	puts@PLT
	mov	eax, 0
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	main, .-main
	.type	string_replace, @function
string_replace:
.LFB9:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 96
	mov	QWORD PTR -72[rbp], rdi
	mov	QWORD PTR -80[rbp], rsi
	mov	QWORD PTR -88[rbp], rdx
	mov	rax, QWORD PTR -72[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	QWORD PTR -40[rbp], rax
	mov	rax, QWORD PTR -80[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	QWORD PTR -32[rbp], rax
	mov	rax, QWORD PTR -88[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	QWORD PTR -24[rbp], rax
	mov	rdx, QWORD PTR -80[rbp]
	mov	rax, QWORD PTR -72[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	nb_occurrences
	mov	DWORD PTR -44[rbp], eax
	mov	eax, DWORD PTR -44[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -24[rbp]
	sub	rax, QWORD PTR -32[rbp]
	imul	rdx, rax
	mov	rax, QWORD PTR -40[rbp]
	add	rax, rdx
	mov	QWORD PTR -16[rbp], rax
	mov	rax, QWORD PTR -16[rbp]
	add	rax, 1
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -80[rbp]
	movzx	eax, BYTE PTR [rax]
	mov	BYTE PTR -49[rbp], al
	mov	DWORD PTR -48[rbp], 0
	jmp	.L10
.L12:
	mov	rax, QWORD PTR -72[rbp]
	movzx	eax, BYTE PTR [rax]
	cmp	BYTE PTR -49[rbp], al
	jne	.L11
	mov	edx, DWORD PTR -48[rbp]
	mov	rax, QWORD PTR -16[rbp]
	sub	rax, rdx
	cmp	QWORD PTR -32[rbp], rax
	ja	.L11
	mov	rdx, QWORD PTR -32[rbp]
	mov	rcx, QWORD PTR -80[rbp]
	mov	rax, QWORD PTR -72[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	memcmp@PLT
	test	eax, eax
	jne	.L11
	mov	edx, DWORD PTR -48[rbp]
	mov	rax, QWORD PTR -8[rbp]
	lea	rcx, [rdx+rax]
	mov	rdx, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR -88[rbp]
	mov	rsi, rax
	mov	rdi, rcx
	call	memcpy@PLT
	mov	rax, QWORD PTR -24[rbp]
	add	DWORD PTR -48[rbp], eax
	mov	rax, QWORD PTR -32[rbp]
	add	QWORD PTR -72[rbp], rax
	jmp	.L10
.L11:
	mov	edx, DWORD PTR -48[rbp]
	mov	rax, QWORD PTR -8[rbp]
	add	rdx, rax
	mov	rax, QWORD PTR -72[rbp]
	movzx	eax, BYTE PTR [rax]
	mov	BYTE PTR [rdx], al
	add	DWORD PTR -48[rbp], 1
	add	QWORD PTR -72[rbp], 1
.L10:
	mov	rax, QWORD PTR -72[rbp]
	movzx	eax, BYTE PTR [rax]
	test	al, al
	jne	.L12
	mov	edx, DWORD PTR -48[rbp]
	mov	rax, QWORD PTR -8[rbp]
	add	rax, rdx
	mov	BYTE PTR [rax], 0
	mov	rax, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	string_replace, .-string_replace
	.type	nb_occurrences, @function
nb_occurrences:
.LFB10:
	.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	QWORD PTR -24[rbp], rdi
	mov	QWORD PTR -32[rbp], rsi
	mov	DWORD PTR -12[rbp], 0
	mov	rax, QWORD PTR -32[rbp]
	movzx	eax, BYTE PTR [rax]
	mov	BYTE PTR -13[rbp], al
	mov	rax, QWORD PTR -32[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	QWORD PTR -8[rbp], rax
	jmp	.L15
.L17:
	mov	rax, QWORD PTR -24[rbp]
	movzx	eax, BYTE PTR [rax]
	cmp	BYTE PTR -13[rbp], al
	jne	.L16
	mov	rdx, QWORD PTR -8[rbp]
	mov	rcx, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR -24[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	memcmp@PLT
	test	eax, eax
	jne	.L16
	add	DWORD PTR -12[rbp], 1
.L16:
	add	QWORD PTR -24[rbp], 1
.L15:
	mov	rax, QWORD PTR -24[rbp]
	movzx	eax, BYTE PTR [rax]
	test	al, al
	jne	.L17
	mov	eax, DWORD PTR -12[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	nb_occurrences, .-nb_occurrences
	.section	.rodata
.LC2:
	.string	"fichier_nom != NULL"
	.align 8
.LC3:
	.string	"fichier_existe_huh(fichier_nom)"
.LC4:
	.string	""
.LC5:
	.string	"r"
.LC6:
	.string	"fichier != NULL"
.LC7:
	.string	"len <= UINT_MAX_LOCAL"
.LC8:
	.string	"ret == 1"
	.text
	.type	fichier_lire, @function
fichier_lire:
.LFB11:
	.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 -40[rbp], rdi
	cmp	QWORD PTR -40[rbp], 0
	jne	.L20
	lea	rcx, __PRETTY_FUNCTION__.1[rip]
	mov	edx, 143
	lea	rsi, .LC0[rip]
	lea	rdi, .LC2[rip]
	call	__assert_fail@PLT
.L20:
	mov	rax, QWORD PTR -40[rbp]
	mov	rdi, rax
	call	fichier_existe_huh
	test	eax, eax
	jne	.L21
	lea	rcx, __PRETTY_FUNCTION__.1[rip]
	mov	edx, 145
	lea	rsi, .LC0[rip]
	lea	rdi, .LC3[rip]
	call	__assert_fail@PLT
.L21:
	mov	rax, QWORD PTR -40[rbp]
	mov	rdi, rax
	call	fichier_taille
	mov	QWORD PTR -32[rbp], rax
	cmp	QWORD PTR -32[rbp], 0
	jne	.L22
	lea	rdi, .LC4[rip]
	call	strcopy
	jmp	.L23
.L22:
	mov	rax, QWORD PTR -40[rbp]
	lea	rsi, .LC5[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -24[rbp], rax
	cmp	QWORD PTR -24[rbp], 0
	jne	.L24
	lea	rcx, __PRETTY_FUNCTION__.1[rip]
	mov	edx, 156
	lea	rsi, .LC0[rip]
	lea	rdi, .LC6[rip]
	call	__assert_fail@PLT
.L24:
	mov	eax, 4294967295
	cmp	QWORD PTR -32[rbp], rax
	jbe	.L25
	lea	rcx, __PRETTY_FUNCTION__.1[rip]
	mov	edx, 162
	lea	rsi, .LC0[rip]
	lea	rdi, .LC7[rip]
	call	__assert_fail@PLT
.L25:
	mov	rax, QWORD PTR -32[rbp]
	mov	edi, eax
	call	strallouer
	mov	QWORD PTR -16[rbp], rax
	mov	rdx, QWORD PTR -24[rbp]
	mov	rsi, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR -16[rbp]
	mov	rcx, rdx
	mov	edx, 1
	mov	rdi, rax
	call	fread@PLT
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	fclose@PLT
	cmp	QWORD PTR -8[rbp], 1
	je	.L26
	lea	rcx, __PRETTY_FUNCTION__.1[rip]
	mov	edx, 184
	lea	rsi, .LC0[rip]
	lea	rdi, .LC8[rip]
	call	__assert_fail@PLT
.L26:
	mov	rdx, QWORD PTR -16[rbp]
	mov	rax, QWORD PTR -32[rbp]
	add	rax, rdx
	mov	BYTE PTR [rax], 0
	mov	rax, QWORD PTR -16[rbp]
.L23:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE11:
	.size	fichier_lire, .-fichier_lire
	.type	fichier_existe_huh, @function
fichier_existe_huh:
.LFB12:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 192
	mov	QWORD PTR -184[rbp], rdi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rdx, -160[rbp]
	mov	rax, QWORD PTR -184[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	stat@PLT
	mov	DWORD PTR -164[rbp], eax
	cmp	DWORD PTR -164[rbp], 0
	sete	al
	movzx	eax, al
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L29
	call	__stack_chk_fail@PLT
.L29:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE12:
	.size	fichier_existe_huh, .-fichier_existe_huh
	.section	.rodata
.LC9:
	.string	"ret == 0"
	.text
	.type	fichier_taille, @function
fichier_taille:
.LFB13:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 192
	mov	QWORD PTR -184[rbp], rdi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rdx, -160[rbp]
	mov	rax, QWORD PTR -184[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	stat@PLT
	mov	DWORD PTR -164[rbp], eax
	cmp	DWORD PTR -164[rbp], 0
	je	.L31
	lea	rcx, __PRETTY_FUNCTION__.0[rip]
	mov	edx, 213
	lea	rsi, .LC0[rip]
	lea	rdi, .LC9[rip]
	call	__assert_fail@PLT
.L31:
	mov	rax, QWORD PTR -112[rbp]
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L33
	call	__stack_chk_fail@PLT
.L33:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE13:
	.size	fichier_taille, .-fichier_taille
	.section	.rodata
	.type	__PRETTY_FUNCTION__.2, @object
	.size	__PRETTY_FUNCTION__.2, 5
__PRETTY_FUNCTION__.2:
	.string	"main"
	.align 8
	.type	__PRETTY_FUNCTION__.1, @object
	.size	__PRETTY_FUNCTION__.1, 13
__PRETTY_FUNCTION__.1:
	.string	"fichier_lire"
	.align 8
	.type	__PRETTY_FUNCTION__.0, @object
	.size	__PRETTY_FUNCTION__.0, 15
__PRETTY_FUNCTION__.0:
	.string	"fichier_taille"
	.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	"8973.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	strcopy, %function
strcopy:
	@ 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, #-24]
	ldr	r0, [fp, #-24]
	bl	strlen
	str	r0, [fp, #-16]
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-12]
	ldr	r0, [fp, #-12]
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-8]
	ldr	r2, [fp, #-12]
	ldr	r1, [fp, #-24]
	ldr	r0, [fp, #-8]
	bl	memcpy
	ldr	r3, [fp, #-8]
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	strcopy, .-strcopy
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	strallouer, %function
strallouer:
	@ 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]
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	beq	.L4
	ldr	r3, [fp, #-8]
	mov	r2, #0
	strb	r2, [r3]
.L4:
	ldr	r3, [fp, #-8]
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	strallouer, .-strallouer
	.section	.rodata
	.align	2
.LC0:
	.ascii	"the_stack_data/8973.c\000"
	.align	2
.LC1:
	.ascii	"argc == 4\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]
	ldr	r3, [fp, #-16]
	cmp	r3, #4
	beq	.L7
	ldr	r3, .L9
	mov	r2, #74
	ldr	r1, .L9+4
	ldr	r0, .L9+8
	bl	__assert_fail
.L7:
	ldr	r3, [fp, #-20]
	add	r3, r3, #12
	ldr	r3, [r3]
	mov	r0, r3
	bl	fichier_lire
	str	r0, [fp, #-12]
	ldr	r3, [fp, #-20]
	add	r3, r3, #4
	ldr	r1, [r3]
	ldr	r3, [fp, #-20]
	add	r3, r3, #8
	ldr	r3, [r3]
	mov	r2, r3
	ldr	r0, [fp, #-12]
	bl	string_replace
	str	r0, [fp, #-8]
	ldr	r0, [fp, #-8]
	bl	puts
	mov	r3, #0
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L10:
	.align	2
.L9:
	.word	__PRETTY_FUNCTION__.8444
	.word	.LC0
	.word	.LC1
	.size	main, .-main
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	string_replace, %function
string_replace:
	@ args = 0, pretend = 0, frame = 48
	@ 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]
	str	r2, [fp, #-48]
	ldr	r0, [fp, #-40]
	bl	strlen
	str	r0, [fp, #-28]
	ldr	r0, [fp, #-44]
	bl	strlen
	str	r0, [fp, #-24]
	ldr	r0, [fp, #-48]
	bl	strlen
	str	r0, [fp, #-20]
	ldr	r1, [fp, #-44]
	ldr	r0, [fp, #-40]
	bl	nb_occurrences
	str	r0, [fp, #-16]
	ldr	r2, [fp, #-20]
	ldr	r3, [fp, #-24]
	sub	r3, r2, r3
	ldr	r2, [fp, #-16]
	mul	r3, r2, r3
	ldr	r2, [fp, #-28]
	add	r3, r2, r3
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-44]
	ldrb	r3, [r3]
	strb	r3, [fp, #-33]
	mov	r3, #0
	str	r3, [fp, #-32]
	b	.L12
.L14:
	ldr	r3, [fp, #-40]
	ldrb	r3, [r3]	@ zero_extendqisi2
	ldrb	r2, [fp, #-33]	@ zero_extendqisi2
	cmp	r2, r3
	bne	.L13
	ldr	r2, [fp, #-12]
	ldr	r3, [fp, #-32]
	sub	r3, r2, r3
	ldr	r2, [fp, #-24]
	cmp	r2, r3
	bhi	.L13
	ldr	r2, [fp, #-24]
	ldr	r1, [fp, #-44]
	ldr	r0, [fp, #-40]
	bl	memcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L13
	ldr	r2, [fp, #-8]
	ldr	r3, [fp, #-32]
	add	r3, r2, r3
	ldr	r2, [fp, #-20]
	ldr	r1, [fp, #-48]
	mov	r0, r3
	bl	memcpy
	ldr	r2, [fp, #-32]
	ldr	r3, [fp, #-20]
	add	r3, r2, r3
	str	r3, [fp, #-32]
	ldr	r2, [fp, #-40]
	ldr	r3, [fp, #-24]
	add	r3, r2, r3
	str	r3, [fp, #-40]
	b	.L12
.L13:
	ldr	r2, [fp, #-8]
	ldr	r3, [fp, #-32]
	add	r3, r2, r3
	ldr	r2, [fp, #-40]
	ldrb	r2, [r2]	@ zero_extendqisi2
	strb	r2, [r3]
	ldr	r3, [fp, #-32]
	add	r3, r3, #1
	str	r3, [fp, #-32]
	ldr	r3, [fp, #-40]
	add	r3, r3, #1
	str	r3, [fp, #-40]
.L12:
	ldr	r3, [fp, #-40]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L14
	ldr	r2, [fp, #-8]
	ldr	r3, [fp, #-32]
	add	r3, r2, r3
	mov	r2, #0
	strb	r2, [r3]
	ldr	r3, [fp, #-8]
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	string_replace, .-string_replace
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	nb_occurrences, %function
nb_occurrences:
	@ 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, #-24]
	str	r1, [fp, #-28]
	mov	r3, #0
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-28]
	ldrb	r3, [r3]
	strb	r3, [fp, #-13]
	ldr	r0, [fp, #-28]
	bl	strlen
	str	r0, [fp, #-8]
	b	.L17
.L19:
	ldr	r3, [fp, #-24]
	ldrb	r3, [r3]	@ zero_extendqisi2
	ldrb	r2, [fp, #-13]	@ zero_extendqisi2
	cmp	r2, r3
	bne	.L18
	ldr	r2, [fp, #-8]
	ldr	r1, [fp, #-28]
	ldr	r0, [fp, #-24]
	bl	memcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L18
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L18:
	ldr	r3, [fp, #-24]
	add	r3, r3, #1
	str	r3, [fp, #-24]
.L17:
	ldr	r3, [fp, #-24]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L19
	ldr	r3, [fp, #-12]
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	nb_occurrences, .-nb_occurrences
	.section	.rodata
	.align	2
.LC2:
	.ascii	"fichier_nom != NULL\000"
	.align	2
.LC3:
	.ascii	"fichier_existe_huh(fichier_nom)\000"
	.align	2
.LC4:
	.ascii	"\000"
	.align	2
.LC5:
	.ascii	"r\000"
	.align	2
.LC6:
	.ascii	"fichier != NULL\000"
	.align	2
.LC7:
	.ascii	"len <= UINT_MAX_LOCAL\000"
	.align	2
.LC8:
	.ascii	"len <= SIZE_T_MAX_LOCAL\000"
	.align	2
.LC9:
	.ascii	"ret == 1\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	fichier_lire, %function
fichier_lire:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #32
	str	r0, [fp, #-32]
	ldr	r3, [fp, #-32]
	cmp	r3, #0
	bne	.L22
	ldr	r3, .L30
	mov	r2, #143
	ldr	r1, .L30+4
	ldr	r0, .L30+8
	bl	__assert_fail
.L22:
	ldr	r0, [fp, #-32]
	bl	fichier_existe_huh
	mov	r3, r0
	cmp	r3, #0
	bne	.L23
	ldr	r3, .L30
	mov	r2, #145
	ldr	r1, .L30+4
	ldr	r0, .L30+12
	bl	__assert_fail
.L23:
	ldr	r0, [fp, #-32]
	bl	fichier_taille
	str	r0, [fp, #-12]
	str	r1, [fp, #-8]
	sub	r3, fp, #12
	ldmia	r3, {r2-r3}
	orrs	r3, r2, r3
	bne	.L24
	ldr	r0, .L30+16
	bl	strcopy
	mov	r3, r0
	b	.L25
.L24:
	ldr	r1, .L30+20
	ldr	r0, [fp, #-32]
	bl	fopen
	str	r0, [fp, #-24]
	ldr	r3, [fp, #-24]
	cmp	r3, #0
	bne	.L26
	ldr	r3, .L30
	mov	r2, #156
	ldr	r1, .L30+4
	ldr	r0, .L30+24
	bl	__assert_fail
.L26:
	sub	r3, fp, #12
	ldmia	r3, {r2-r3}
	mvn	r0, #0
	mov	r1, #0
	cmp	r3, r1
	cmpeq	r2, r0
	bls	.L27
	ldr	r3, .L30
	mov	r2, #162
	ldr	r1, .L30+4
	ldr	r0, .L30+28
	bl	__assert_fail
.L27:
	ldr	r3, [fp, #-12]
	mov	r0, r3
	bl	strallouer
	str	r0, [fp, #-20]
	sub	r3, fp, #12
	ldmia	r3, {r2-r3}
	mvn	r0, #0
	mov	r1, #0
	cmp	r3, r1
	cmpeq	r2, r0
	bls	.L28
	ldr	r3, .L30
	mov	r2, #175
	ldr	r1, .L30+4
	ldr	r0, .L30+32
	bl	__assert_fail
.L28:
	ldr	r1, [fp, #-12]
	ldr	r3, [fp, #-24]
	mov	r2, #1
	ldr	r0, [fp, #-20]
	bl	fread
	str	r0, [fp, #-16]
	ldr	r0, [fp, #-24]
	bl	fclose
	ldr	r3, [fp, #-16]
	cmp	r3, #1
	beq	.L29
	ldr	r3, .L30
	mov	r2, #184
	ldr	r1, .L30+4
	ldr	r0, .L30+36
	bl	__assert_fail
.L29:
	ldr	r3, [fp, #-12]
	ldr	r2, [fp, #-20]
	add	r3, r2, r3
	mov	r2, #0
	strb	r2, [r3]
	ldr	r3, [fp, #-20]
.L25:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L31:
	.align	2
.L30:
	.word	__PRETTY_FUNCTION__.8480
	.word	.LC0
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.word	.LC9
	.size	fichier_lire, .-fichier_lire
	.section	.rodata
	.align	2
.LC10:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	fichier_existe_huh, %function
fichier_existe_huh:
	@ args = 0, pretend = 0, frame = 112
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #112
	str	r0, [fp, #-112]
	ldr	r3, .L35
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	sub	r3, fp, #100
	mov	r1, r3
	ldr	r0, [fp, #-112]
	bl	stat
	str	r0, [fp, #-104]
	ldr	r3, [fp, #-104]
	cmp	r3, #0
	moveq	r3, #1
	movne	r3, #0
	and	r3, r3, #255
	ldr	r2, .L35
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L34
	bl	__stack_chk_fail
.L34:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L36:
	.align	2
.L35:
	.word	.LC10
	.size	fichier_existe_huh, .-fichier_existe_huh
	.section	.rodata
	.align	2
.LC11:
	.ascii	"ret == 0\000"
	.align	2
.LC12:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	fichier_taille, %function
fichier_taille:
	@ args = 0, pretend = 0, frame = 112
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #112
	str	r0, [fp, #-112]
	ldr	r3, .L41
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	sub	r3, fp, #100
	mov	r1, r3
	ldr	r0, [fp, #-112]
	bl	stat
	str	r0, [fp, #-104]
	ldr	r3, [fp, #-104]
	cmp	r3, #0
	beq	.L38
	ldr	r3, .L41+4
	mov	r2, #213
	ldr	r1, .L41+8
	ldr	r0, .L41+12
	bl	__assert_fail
.L38:
	ldr	r3, [fp, #-56]
	mov	r2, r3
	asr	r3, r2, #31
	ldr	r1, .L41
	ldr	r0, [r1]
	ldr	r1, [fp, #-8]
	eors	r0, r1, r0
	mov	r1, #0
	beq	.L40
	bl	__stack_chk_fail
.L40:
	mov	r0, r2
	mov	r1, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L42:
	.align	2
.L41:
	.word	.LC12
	.word	__PRETTY_FUNCTION__.8491
	.word	.LC0
	.word	.LC11
	.size	fichier_taille, .-fichier_taille
	.section	.rodata
	.align	2
	.type	__PRETTY_FUNCTION__.8444, %object
	.size	__PRETTY_FUNCTION__.8444, 5
__PRETTY_FUNCTION__.8444:
	.ascii	"main\000"
	.align	2
	.type	__PRETTY_FUNCTION__.8480, %object
	.size	__PRETTY_FUNCTION__.8480, 13
__PRETTY_FUNCTION__.8480:
	.ascii	"fichier_lire\000"
	.align	2
	.type	__PRETTY_FUNCTION__.8491, %object
	.size	__PRETTY_FUNCTION__.8491, 15
__PRETTY_FUNCTION__.8491:
	.ascii	"fichier_taille\000"
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
