	.file	"875890.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"Invalid syntax!"
.LC1:
	.string	"use 'cat -h' for help!"
	.align 8
.LC2:
	.string	"cat: Prints out the content of files"
.LC3:
	.string	"Syntax:"
.LC4:
	.string	"cat [file]"
	.align 8
.LC5:
	.string	"cat command, part of snekutils"
.LC6:
	.string	"version 1.0"
.LC7:
	.string	"hv"
.LC8:
	.string	"r"
	.align 8
.LC9:
	.string	"cat: File '%s' does not exist!\n"
	.text
	.globl	main
	.type	main, @function
main:
.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, 32
	mov	DWORD PTR -20[rbp], edi
	mov	QWORD PTR -32[rbp], rsi
	cmp	DWORD PTR -20[rbp], 2
	je	.L13
	lea	rdi, .LC0[rip]
	call	puts@PLT
	lea	rdi, .LC1[rip]
	call	puts@PLT
	mov	eax, 1
	jmp	.L3
.L8:
	cmp	DWORD PTR -12[rbp], 104
	je	.L5
	cmp	DWORD PTR -12[rbp], 118
	je	.L6
	jmp	.L12
.L5:
	lea	rdi, .LC2[rip]
	call	puts@PLT
	lea	rdi, .LC3[rip]
	call	puts@PLT
	lea	rdi, .LC4[rip]
	call	puts@PLT
	mov	eax, 0
	jmp	.L3
.L6:
	lea	rdi, .LC5[rip]
	call	puts@PLT
	lea	rdi, .LC6[rip]
	call	puts@PLT
	mov	eax, 0
	jmp	.L3
.L12:
	mov	eax, 0
	jmp	.L3
.L13:
	nop
	mov	rcx, QWORD PTR -32[rbp]
	mov	eax, DWORD PTR -20[rbp]
	lea	rdx, .LC7[rip]
	mov	rsi, rcx
	mov	edi, eax
	call	getopt@PLT
	mov	DWORD PTR -12[rbp], eax
	cmp	DWORD PTR -12[rbp], -1
	jne	.L8
	mov	rax, QWORD PTR -32[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC8[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -8[rbp], rax
	cmp	QWORD PTR -8[rbp], 0
	jne	.L10
	mov	rax, QWORD PTR -32[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	mov	rsi, rax
	lea	rdi, .LC9[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, 1
	jmp	.L3
.L11:
	movsx	eax, BYTE PTR -13[rbp]
	mov	edi, eax
	call	putchar@PLT
.L10:
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	fgetc@PLT
	mov	BYTE PTR -13[rbp], al
	cmp	BYTE PTR -13[rbp], -1
	jne	.L11
	mov	edi, 10
	call	putchar@PLT
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	fclose@PLT
	mov	eax, 0
.L3:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.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	"875890.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"Invalid syntax!\000"
	.align	2
.LC1:
	.ascii	"use 'cat -h' for help!\000"
	.align	2
.LC2:
	.ascii	"cat: Prints out the content of files\000"
	.align	2
.LC3:
	.ascii	"Syntax:\000"
	.align	2
.LC4:
	.ascii	"cat [file]\000"
	.align	2
.LC5:
	.ascii	"cat command, part of snekutils\000"
	.align	2
.LC6:
	.ascii	"version 1.0\000"
	.align	2
.LC7:
	.ascii	"hv\000"
	.align	2
.LC8:
	.ascii	"r\000"
	.align	2
.LC9:
	.ascii	"cat: File '%s' does not exist!\012\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]
	ldr	r3, [fp, #-24]
	cmp	r3, #2
	beq	.L14
	ldr	r0, .L15
	bl	puts
	ldr	r0, .L15+4
	bl	puts
	mov	r3, #1
	b	.L3
.L8:
	ldr	r3, [fp, #-12]
	cmp	r3, #104
	beq	.L5
	ldr	r3, [fp, #-12]
	cmp	r3, #118
	beq	.L6
	b	.L12
.L5:
	ldr	r0, .L15+8
	bl	puts
	ldr	r0, .L15+12
	bl	puts
	ldr	r0, .L15+16
	bl	puts
	mov	r3, #0
	b	.L3
.L6:
	ldr	r0, .L15+20
	bl	puts
	ldr	r0, .L15+24
	bl	puts
	mov	r3, #0
	b	.L3
.L12:
	mov	r3, #0
	b	.L3
.L14:
	nop
	ldr	r2, .L15+28
	ldr	r1, [fp, #-28]
	ldr	r0, [fp, #-24]
	bl	getopt
	str	r0, [fp, #-12]
	ldr	r3, [fp, #-12]
	cmn	r3, #1
	bne	.L8
	ldr	r3, [fp, #-28]
	add	r3, r3, #4
	ldr	r3, [r3]
	ldr	r1, .L15+32
	mov	r0, r3
	bl	fopen
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bne	.L10
	ldr	r3, [fp, #-28]
	add	r3, r3, #4
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L15+36
	bl	printf
	mov	r3, #1
	b	.L3
.L13:
	ldrb	r3, [fp, #-13]	@ zero_extendqisi2
	mov	r0, r3
	bl	putchar
.L10:
	ldr	r0, [fp, #-8]
	bl	fgetc
	mov	r3, r0
	strb	r3, [fp, #-13]
	b	.L13
.L3:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L16:
	.align	2
.L15:
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.word	.LC9
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
