	.file	"729722.c"
	.intel_syntax noprefix
	.text
	.globl	syserr
	.type	syserr, @function
syserr:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 16
	mov	QWORD PTR -8[rbp], rdi
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
	.cfi_endproc
.LFE0:
	.size	syserr, .-syserr
	.section	.rodata
.LC0:
	.string	"%s\n"
	.text
	.globl	usererr
	.type	usererr, @function
usererr:
.LFB1:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 16
	mov	QWORD PTR -8[rbp], rdi
	mov	rax, QWORD PTR stderr[rip]
	mov	rdx, QWORD PTR -8[rbp]
	lea	rsi, .LC0[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	edi, 1
	call	exit@PLT
	.cfi_endproc
.LFE1:
	.size	usererr, .-usererr
	.section	.rodata
.LC1:
	.string	"r"
	.text
	.globl	read_file
	.type	read_file, @function
read_file:
.LFB2:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 64
	mov	QWORD PTR -56[rbp], rdi
	mov	edi, 2
	call	malloc@PLT
	mov	QWORD PTR -32[rbp], rax
	cmp	QWORD PTR -32[rbp], 0
	jne	.L4
	mov	rax, QWORD PTR -56[rbp]
	mov	rdi, rax
	call	syserr
.L4:
	mov	QWORD PTR -24[rbp], 0
	mov	QWORD PTR -16[rbp], 1
	mov	rax, QWORD PTR -56[rbp]
	lea	rsi, .LC1[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -8[rbp], rax
	cmp	QWORD PTR -8[rbp], 0
	jne	.L6
	mov	rax, QWORD PTR -56[rbp]
	mov	rdi, rax
	call	syserr
	jmp	.L6
.L7:
	mov	rdx, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	edx, DWORD PTR -36[rbp]
	mov	BYTE PTR [rax], dl
	add	QWORD PTR -24[rbp], 1
	mov	rax, QWORD PTR -24[rbp]
	cmp	rax, QWORD PTR -16[rbp]
	jne	.L6
	sal	QWORD PTR -16[rbp]
	mov	rax, QWORD PTR -16[rbp]
	lea	rdx, 1[rax]
	mov	rax, QWORD PTR -32[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	realloc@PLT
	mov	QWORD PTR -32[rbp], rax
	cmp	QWORD PTR -32[rbp], 0
	jne	.L6
	mov	rax, QWORD PTR -56[rbp]
	mov	rdi, rax
	call	syserr
.L6:
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	fgetc@PLT
	mov	DWORD PTR -36[rbp], eax
	cmp	DWORD PTR -36[rbp], -1
	jne	.L7
	mov	rdx, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	BYTE PTR [rax], 0
	mov	rax, QWORD PTR -32[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE2:
	.size	read_file, .-read_file
	.section	.rodata
	.align 8
.LC2:
	.string	"Option '-%c' requires an operand\n"
.LC3:
	.string	"Unrecognized option: '-%c'\n"
.LC4:
	.string	":m:f:e:i"
	.align 8
.LC5:
	.string	"Usage: fsa [-i] [-e input_string] <-m machine_string | -f machine_filename>"
	.text
	.globl	main
	.type	main, @function
main:
.LFB3:
	.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
	mov	QWORD PTR -48[rbp], rsi
	mov	DWORD PTR -20[rbp], -1
	mov	BYTE PTR -24[rbp], 1
	mov	BYTE PTR -22[rbp], 1
	mov	BYTE PTR -21[rbp], 0
	mov	BYTE PTR -23[rbp], 0
	mov	QWORD PTR -16[rbp], 0
	mov	QWORD PTR -8[rbp], 0
	jmp	.L10
.L17:
	cmp	DWORD PTR -20[rbp], 109
	je	.L11
	cmp	DWORD PTR -20[rbp], 109
	jg	.L10
	cmp	DWORD PTR -20[rbp], 105
	je	.L12
	cmp	DWORD PTR -20[rbp], 105
	jg	.L10
	cmp	DWORD PTR -20[rbp], 102
	je	.L13
	cmp	DWORD PTR -20[rbp], 102
	jg	.L10
	cmp	DWORD PTR -20[rbp], 101
	je	.L14
	cmp	DWORD PTR -20[rbp], 101
	jg	.L10
	cmp	DWORD PTR -20[rbp], 58
	je	.L15
	cmp	DWORD PTR -20[rbp], 63
	je	.L16
	jmp	.L10
.L11:
	mov	BYTE PTR -24[rbp], 0
	mov	rax, QWORD PTR optarg[rip]
	mov	QWORD PTR -16[rbp], rax
	jmp	.L10
.L13:
	mov	rax, QWORD PTR optarg[rip]
	mov	QWORD PTR -16[rbp], rax
	jmp	.L10
.L14:
	mov	BYTE PTR -22[rbp], 0
	mov	rax, QWORD PTR optarg[rip]
	mov	QWORD PTR -8[rbp], rax
	jmp	.L10
.L12:
	mov	BYTE PTR -21[rbp], 1
	jmp	.L10
.L15:
	mov	edx, DWORD PTR optopt[rip]
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC2[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	BYTE PTR -23[rbp], 1
	jmp	.L10
.L16:
	mov	edx, DWORD PTR optopt[rip]
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC3[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	BYTE PTR -23[rbp], 1
	nop
.L10:
	mov	rcx, QWORD PTR -48[rbp]
	mov	eax, DWORD PTR -36[rbp]
	lea	rdx, .LC4[rip]
	mov	rsi, rcx
	mov	edi, eax
	call	getopt@PLT
	mov	DWORD PTR -20[rbp], eax
	cmp	DWORD PTR -20[rbp], -1
	jne	.L17
	cmp	BYTE PTR -23[rbp], 0
	jne	.L18
	cmp	QWORD PTR -16[rbp], 0
	jne	.L19
.L18:
	lea	rdi, .LC5[rip]
	call	usererr
.L19:
	cmp	BYTE PTR -24[rbp], 0
	je	.L20
	mov	rax, QWORD PTR -16[rbp]
	mov	rdi, rax
	call	read_file
	mov	QWORD PTR -16[rbp], rax
.L20:
	mov	eax, 0
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE3:
	.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	"729722.c"
	.text
	.align	2
	.global	syserr
	.syntax unified
	.arm
	.fpu softvfp
	.type	syserr, %function
syserr:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	str	r0, [fp, #-8]
	ldr	r0, [fp, #-8]
	bl	perror
	mov	r0, #1
	bl	exit
	.size	syserr, .-syserr
	.section	.rodata
	.align	2
.LC0:
	.ascii	"%s\012\000"
	.text
	.align	2
	.global	usererr
	.syntax unified
	.arm
	.fpu softvfp
	.type	usererr, %function
usererr:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	str	r0, [fp, #-8]
	ldr	r3, .L3
	ldr	r3, [r3]
	ldr	r2, [fp, #-8]
	ldr	r1, .L3+4
	mov	r0, r3
	bl	fprintf
	mov	r0, #1
	bl	exit
.L4:
	.align	2
.L3:
	.word	stderr
	.word	.LC0
	.size	usererr, .-usererr
	.section	.rodata
	.align	2
.LC1:
	.ascii	"r\000"
	.text
	.align	2
	.global	read_file
	.syntax unified
	.arm
	.fpu softvfp
	.type	read_file, %function
read_file:
	@ 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]
	mov	r0, #2
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-24]
	ldr	r3, [fp, #-24]
	cmp	r3, #0
	bne	.L6
	ldr	r0, [fp, #-32]
	bl	syserr
.L6:
	mov	r3, #0
	str	r3, [fp, #-20]
	mov	r3, #1
	str	r3, [fp, #-16]
	ldr	r1, .L11
	ldr	r0, [fp, #-32]
	bl	fopen
	str	r0, [fp, #-12]
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	bne	.L8
	ldr	r0, [fp, #-32]
	bl	syserr
	b	.L8
.L9:
	ldr	r2, [fp, #-24]
	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]
	ldr	r2, [fp, #-20]
	ldr	r3, [fp, #-16]
	cmp	r2, r3
	bne	.L8
	ldr	r3, [fp, #-16]
	lsl	r3, r3, #1
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	mov	r1, r3
	ldr	r0, [fp, #-24]
	bl	realloc
	str	r0, [fp, #-24]
	ldr	r3, [fp, #-24]
	cmp	r3, #0
	bne	.L8
	ldr	r0, [fp, #-32]
	bl	syserr
.L8:
	ldr	r0, [fp, #-12]
	bl	fgetc
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmn	r3, #1
	bne	.L9
	ldr	r2, [fp, #-24]
	ldr	r3, [fp, #-20]
	add	r3, r2, r3
	mov	r2, #0
	strb	r2, [r3]
	ldr	r3, [fp, #-24]
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L12:
	.align	2
.L11:
	.word	.LC1
	.size	read_file, .-read_file
	.section	.rodata
	.align	2
.LC2:
	.ascii	"Option '-%c' requires an operand\012\000"
	.align	2
.LC3:
	.ascii	"Unrecognized option: '-%c'\012\000"
	.align	2
.LC4:
	.ascii	":m:f:e:i\000"
	.align	2
.LC5:
	.ascii	"Usage: fsa [-i] [-e input_string] <-m machine_strin"
	.ascii	"g | -f machine_filename>\000"
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ 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]
	mvn	r3, #0
	str	r3, [fp, #-12]
	mov	r3, #1
	strb	r3, [fp, #-20]
	mov	r3, #1
	strb	r3, [fp, #-18]
	mov	r3, #0
	strb	r3, [fp, #-17]
	mov	r3, #0
	strb	r3, [fp, #-19]
	mov	r3, #0
	str	r3, [fp, #-16]
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L14
.L23:
	ldr	r3, [fp, #-12]
	cmp	r3, #109
	bgt	.L14
	ldr	r3, [fp, #-12]
	cmp	r3, #101
	bge	.L15
	ldr	r3, [fp, #-12]
	cmp	r3, #58
	beq	.L16
	ldr	r3, [fp, #-12]
	cmp	r3, #63
	beq	.L17
	b	.L14
.L15:
	ldr	r3, [fp, #-12]
	sub	r3, r3, #101
	cmp	r3, #8
	ldrls	pc, [pc, r3, asl #2]
	b	.L14
.L19:
	.word	.L22
	.word	.L21
	.word	.L14
	.word	.L14
	.word	.L20
	.word	.L14
	.word	.L14
	.word	.L14
	.word	.L18
.L18:
	mov	r3, #0
	strb	r3, [fp, #-20]
	ldr	r3, .L28
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	b	.L14
.L21:
	ldr	r3, .L28
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	b	.L14
.L22:
	mov	r3, #0
	strb	r3, [fp, #-18]
	ldr	r3, .L28
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	b	.L14
.L20:
	mov	r3, #1
	strb	r3, [fp, #-17]
	b	.L14
.L16:
	ldr	r3, .L28+4
	ldr	r3, [r3]
	ldr	r2, .L28+8
	ldr	r2, [r2]
	ldr	r1, .L28+12
	mov	r0, r3
	bl	fprintf
	mov	r3, #1
	strb	r3, [fp, #-19]
	b	.L14
.L17:
	ldr	r3, .L28+4
	ldr	r3, [r3]
	ldr	r2, .L28+8
	ldr	r2, [r2]
	ldr	r1, .L28+16
	mov	r0, r3
	bl	fprintf
	mov	r3, #1
	strb	r3, [fp, #-19]
	nop
.L14:
	ldr	r2, .L28+20
	ldr	r1, [fp, #-28]
	ldr	r0, [fp, #-24]
	bl	getopt
	str	r0, [fp, #-12]
	ldr	r3, [fp, #-12]
	cmn	r3, #1
	bne	.L23
	ldrb	r3, [fp, #-19]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L24
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	bne	.L25
.L24:
	ldr	r0, .L28+24
	bl	usererr
.L25:
	ldrb	r3, [fp, #-20]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L26
	ldr	r0, [fp, #-16]
	bl	read_file
	str	r0, [fp, #-16]
.L26:
	mov	r3, #0
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L29:
	.align	2
.L28:
	.word	optarg
	.word	stderr
	.word	optopt
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
