	.file	"976401.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"toto.txt"
.LC1:
	.string	"Erreur"
.LC2:
	.string	"Hello World %d '%s'\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB6:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	lea	r11, -28672[rsp]
.LPSRL0:
	sub	rsp, 4096
	or	DWORD PTR [rsp], 0
	cmp	rsp, r11
	jne	.LPSRL0
	sub	rsp, 3536
	mov	DWORD PTR -32196[rbp], edi
	mov	QWORD PTR -32208[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	esi, 511
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	open@PLT
	mov	DWORD PTR -32188[rbp], eax
	cmp	DWORD PTR -32188[rbp], 0
	jns	.L2
	lea	rdi, .LC1[rip]
	call	perror@PLT
.L2:
	lea	rdx, -32160[rbp]
	mov	eax, DWORD PTR -32188[rbp]
	mov	rsi, rdx
	mov	edi, eax
	call	fstat@PLT
	mov	QWORD PTR -32176[rbp], 16
	mov	QWORD PTR -32184[rbp], 0
	mov	QWORD PTR -32168[rbp], 0
.L5:
	mov	rdx, QWORD PTR -32176[rbp]
	mov	rax, QWORD PTR -32184[rbp]
	lea	rcx, -32016[rbp]
	add	rcx, rax
	mov	eax, DWORD PTR -32188[rbp]
	mov	rsi, rcx
	mov	edi, eax
	call	read@PLT
	mov	QWORD PTR -32168[rbp], rax
	cmp	QWORD PTR -32168[rbp], 0
	jns	.L3
	mov	eax, 1
	jmp	.L4
.L3:
	mov	rax, QWORD PTR -32168[rbp]
	add	QWORD PTR -32184[rbp], rax
	cmp	QWORD PTR -32168[rbp], 0
	jne	.L5
	lea	rdx, -32016[rbp]
	mov	eax, DWORD PTR -32188[rbp]
	mov	esi, eax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, 0
.L4:
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L6
	call	__stack_chk_fail@PLT
.L6:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.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	"976401.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"toto.txt\000"
	.align	2
.LC1:
	.ascii	"Erreur\000"
	.align	2
.LC2:
	.ascii	"Hello World %d '%s'\012\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 = 32120
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #32000
	sub	sp, sp, #124
	sub	r3, fp, #28672
	sub	r3, r3, #12
	str	r0, [r3, #-3444]
	sub	r3, fp, #28672
	sub	r3, r3, #12
	str	r1, [r3, #-3448]
	ldr	r3, .L7
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	sub	r3, fp, #28672
	sub	r3, r3, #12
	mov	r4, r3
	ldr	r1, .L7+4
	ldr	r0, .L7+8
	bl	open
	str	r0, [r4, #-3436]
	sub	r3, fp, #28672
	sub	r3, r3, #12
	ldr	r3, [r3, #-3436]
	cmp	r3, #0
	bge	.L2
	ldr	r0, .L7+12
	bl	perror
.L2:
	sub	r3, fp, #32000
	sub	r3, r3, #12
	sub	r3, r3, #96
	sub	r2, fp, #28672
	sub	r2, r2, #12
	mov	r1, r3
	ldr	r0, [r2, #-3436]
	bl	fstat
	sub	r3, fp, #28672
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #16
	str	r3, [r2, #-3432]
	sub	r3, fp, #28672
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-3440]
	sub	r3, fp, #28672
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-3428]
.L5:
	sub	r3, fp, #28672
	sub	r3, r3, #12
	ldr	r2, [r3, #-3440]
	sub	r3, fp, #32000
	sub	r3, r3, #12
	sub	r3, r3, #4
	add	r3, r3, r2
	sub	r2, fp, #28672
	sub	r2, r2, #12
	ldr	r2, [r2, #-3432]
	sub	r1, fp, #28672
	sub	r1, r1, #12
	mov	r4, r1
	sub	r1, fp, #28672
	sub	r1, r1, #12
	mov	r0, r1
	mov	r1, r3
	ldr	r0, [r0, #-3436]
	bl	read
	str	r0, [r4, #-3428]
	sub	r3, fp, #28672
	sub	r3, r3, #12
	ldr	r3, [r3, #-3428]
	cmp	r3, #0
	bge	.L3
	mov	r3, #1
	b	.L4
.L3:
	sub	r3, fp, #28672
	sub	r3, r3, #12
	mov	r1, r3
	sub	r3, fp, #28672
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #28672
	sub	r3, r3, #12
	ldr	r2, [r2, #-3440]
	ldr	r3, [r3, #-3428]
	add	r3, r2, r3
	str	r3, [r1, #-3440]
	sub	r3, fp, #28672
	sub	r3, r3, #12
	ldr	r3, [r3, #-3428]
	cmp	r3, #0
	bne	.L5
	sub	r3, fp, #32000
	sub	r3, r3, #12
	sub	r3, r3, #4
	sub	r2, fp, #28672
	sub	r2, r2, #12
	mov	r1, r2
	mov	r2, r3
	ldr	r1, [r1, #-3436]
	ldr	r0, .L7+16
	bl	printf
	mov	r3, #0
.L4:
	ldr	r2, .L7
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L6
	bl	__stack_chk_fail
.L6:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L8:
	.align	2
.L7:
	.word	.LC3
	.word	511
	.word	.LC0
	.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
