	.file	"544460.c"
	.intel_syntax noprefix
	.text
	.globl	input_file
	.section	.rodata
	.align 8
	.type	input_file, @object
	.size	input_file, 15
input_file:
	.string	"../Macbeth.txt"
.LC0:
	.string	"r"
	.align 8
.LC1:
	.string	"ERROR: c_init(): unable to open input file '%s'\n"
	.align 8
.LC2:
	.string	"ERROR: c_init(): unable to malloc mem array of size '%d' bytes\n"
	.align 8
.LC3:
	.string	"c_init(): initialized memory of size %0d bytes; %0d bytes pre-loaded from text file '%s'\n"
	.text
	.globl	c_init
	.type	c_init, @function
c_init:
.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	DWORD PTR -36[rbp], edi
	lea	rsi, .LC0[rip]
	lea	rdi, input_file[rip]
	call	fopen@PLT
	mov	QWORD PTR -16[rbp], rax
	cmp	QWORD PTR -16[rbp], 0
	jne	.L2
	mov	rax, QWORD PTR stderr[rip]
	lea	rdx, input_file[rip]
	lea	rsi, .LC1[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	edi, 1
	call	exit@PLT
.L2:
	mov	eax, DWORD PTR -36[rbp]
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR -8[rbp], rax
	cmp	QWORD PTR -8[rbp], 0
	jne	.L3
	mov	rax, QWORD PTR stderr[rip]
	mov	edx, DWORD PTR -36[rbp]
	lea	rsi, .LC2[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	edi, 1
	call	exit@PLT
.L3:
	mov	edx, DWORD PTR -36[rbp]
	mov	rax, QWORD PTR -8[rbp]
	mov	esi, 255
	mov	rdi, rax
	call	memset@PLT
	mov	DWORD PTR -24[rbp], 0
.L6:
	mov	rax, QWORD PTR -16[rbp]
	mov	rdi, rax
	call	fgetc@PLT
	mov	DWORD PTR -20[rbp], eax
	cmp	DWORD PTR -20[rbp], -1
	je	.L9
	mov	edx, DWORD PTR -24[rbp]
	mov	rax, QWORD PTR -8[rbp]
	add	rax, rdx
	mov	edx, DWORD PTR -20[rbp]
	mov	BYTE PTR [rax], dl
	add	DWORD PTR -24[rbp], 1
	jmp	.L6
.L9:
	nop
	mov	rax, QWORD PTR stdout[rip]
	mov	ecx, DWORD PTR -24[rbp]
	mov	edx, DWORD PTR -36[rbp]
	lea	r8, input_file[rip]
	lea	rsi, .LC3[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	rax, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	c_init, .-c_init
	.globl	c_read_byte
	.type	c_read_byte, @function
c_read_byte:
.LFB7:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	QWORD PTR -8[rbp], rdi
	mov	DWORD PTR -12[rbp], esi
	mov	edx, DWORD PTR -12[rbp]
	mov	rax, QWORD PTR -8[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	c_read_byte, .-c_read_byte
	.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	"544460.c"
	.text
	.global	input_file
	.section	.rodata
	.align	2
	.type	input_file, %object
	.size	input_file, 15
input_file:
	.ascii	"../Macbeth.txt\000"
	.align	2
.LC0:
	.ascii	"r\000"
	.align	2
.LC1:
	.ascii	"ERROR: c_init(): unable to open input file '%s'\012"
	.ascii	"\000"
	.align	2
.LC2:
	.ascii	"ERROR: c_init(): unable to malloc mem array of size"
	.ascii	" '%d' bytes\012\000"
	.align	2
.LC3:
	.ascii	"c_init(): initialized memory of size %0d bytes; %0d"
	.ascii	" bytes pre-loaded from text file '%s'\012\000"
	.text
	.align	2
	.global	c_init
	.syntax unified
	.arm
	.fpu softvfp
	.type	c_init, %function
c_init:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #32
	str	r0, [fp, #-24]
	ldr	r1, .L10
	ldr	r0, .L10+4
	bl	fopen
	str	r0, [fp, #-16]
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	bne	.L2
	ldr	r3, .L10+8
	ldr	r3, [r3]
	ldr	r2, .L10+4
	ldr	r1, .L10+12
	mov	r0, r3
	bl	fprintf
	mov	r0, #1
	bl	exit
.L2:
	ldr	r0, [fp, #-24]
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	bne	.L3
	ldr	r3, .L10+8
	ldr	r3, [r3]
	ldr	r2, [fp, #-24]
	ldr	r1, .L10+16
	mov	r0, r3
	bl	fprintf
	mov	r0, #1
	bl	exit
.L3:
	ldr	r2, [fp, #-24]
	mov	r1, #255
	ldr	r0, [fp, #-12]
	bl	memset
	mov	r3, #0
	str	r3, [fp, #-20]
.L6:
	ldr	r0, [fp, #-16]
	bl	fgetc
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmn	r3, #1
	beq	.L9
	ldr	r2, [fp, #-12]
	ldr	r3, [fp, #-20]
	add	r3, r2, r3
	ldr	r2, [fp, #-8]
	and	r2, r2, #255
	strb	r2, [r3]
	ldr	r3, [fp, #-20]
	add	r3, r3, #1
	str	r3, [fp, #-20]
	b	.L6
.L9:
	nop
	ldr	r3, .L10+20
	ldr	r0, [r3]
	ldr	r3, .L10+4
	str	r3, [sp]
	ldr	r3, [fp, #-20]
	ldr	r2, [fp, #-24]
	ldr	r1, .L10+24
	bl	fprintf
	ldr	r3, [fp, #-12]
	mov	r2, r3
	asr	r3, r2, #31
	mov	r0, r2
	mov	r1, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L11:
	.align	2
.L10:
	.word	.LC0
	.word	input_file
	.word	stderr
	.word	.LC1
	.word	.LC2
	.word	stdout
	.word	.LC3
	.size	c_init, .-c_init
	.align	2
	.global	c_read_byte
	.syntax unified
	.arm
	.fpu softvfp
	.type	c_read_byte, %function
c_read_byte:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #12
	str	r0, [fp, #-8]
	str	r1, [fp, #-12]
	ldr	r2, [fp, #-8]
	ldr	r3, [fp, #-12]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	c_read_byte, .-c_read_byte
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
