	.file	"947326.c"
	.intel_syntax noprefix
	.text
	.globl	buffer
	.bss
	.align 32
	.type	buffer, @object
	.size	buffer, 2048
buffer:
	.zero	2048
	.section	.rodata
.LC0:
	.string	"r"
	.align 8
.LC1:
	.string	"captoinfo: cannot open file %s\n"
.LC2:
	.string	"ungetc failed.\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
	jne	.L3
	mov	rdx, QWORD PTR stdin[rip]
	mov	rax, QWORD PTR -32[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC0[rip]
	mov	rdi, rax
	call	freopen@PLT
	test	rax, rax
	jne	.L3
	mov	rax, QWORD PTR -32[rbp]
	add	rax, 8
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC1[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	edi, 1
	call	exit@PLT
.L8:
	cmp	DWORD PTR -4[rbp], 35
	jne	.L4
	mov	eax, DWORD PTR -4[rbp]
	mov	edi, eax
	call	putchar@PLT
.L5:
	call	getchar@PLT
	mov	DWORD PTR -4[rbp], eax
	mov	eax, DWORD PTR -4[rbp]
	mov	edi, eax
	call	putchar@PLT
	cmp	DWORD PTR -4[rbp], 10
	jne	.L5
	jmp	.L3
.L4:
	mov	rdx, QWORD PTR stdin[rip]
	mov	eax, DWORD PTR -4[rbp]
	mov	rsi, rdx
	mov	edi, eax
	call	ungetc@PLT
	cmp	eax, -1
	jne	.L6
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 15
	mov	esi, 1
	lea	rdi, .LC2[rip]
	call	fwrite@PLT
	mov	edi, 1
	call	exit@PLT
.L6:
	mov	eax, 0
	call	get_termcap@PLT
	lea	rax, buffer[rip]
	movzx	eax, BYTE PTR [rax]
	test	al, al
	jne	.L7
	mov	edi, 10
	call	putchar@PLT
	jmp	.L3
.L7:
	mov	eax, 0
	call	print_name@PLT
	mov	eax, 0
	call	print_bools@PLT
	mov	eax, 0
	call	print_nums@PLT
	mov	eax, 0
	call	print_strs@PLT
.L3:
	call	getchar@PLT
	mov	DWORD PTR -4[rbp], eax
	cmp	DWORD PTR -4[rbp], -1
	jne	.L8
	mov	edi, 0
	call	exit@PLT
	.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	"947326.c"
	.text
	.comm	buffer,2048,4
	.section	.rodata
	.align	2
.LC0:
	.ascii	"r\000"
	.align	2
.LC1:
	.ascii	"captoinfo: cannot open file %s\012\000"
	.align	2
.LC2:
	.ascii	"ungetc failed.\012\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, #2
	bne	.L3
	ldr	r3, [fp, #-20]
	add	r3, r3, #4
	ldr	r3, [r3]
	ldr	r2, .L9
	ldr	r2, [r2]
	ldr	r1, .L9+4
	mov	r0, r3
	bl	freopen
	mov	r3, r0
	cmp	r3, #0
	bne	.L3
	ldr	r3, .L9+8
	ldr	r0, [r3]
	ldr	r3, [fp, #-20]
	add	r3, r3, #4
	ldr	r3, [r3]
	mov	r2, r3
	ldr	r1, .L9+12
	bl	fprintf
	mov	r0, #1
	bl	exit
.L8:
	ldr	r3, [fp, #-8]
	cmp	r3, #35
	bne	.L4
	ldr	r0, [fp, #-8]
	bl	putchar
.L5:
	bl	getchar
	str	r0, [fp, #-8]
	ldr	r0, [fp, #-8]
	bl	putchar
	ldr	r3, [fp, #-8]
	cmp	r3, #10
	bne	.L5
	b	.L3
.L4:
	ldr	r3, .L9
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, [fp, #-8]
	bl	ungetc
	mov	r3, r0
	cmn	r3, #1
	bne	.L6
	ldr	r3, .L9+8
	ldr	r3, [r3]
	mov	r2, #15
	mov	r1, #1
	ldr	r0, .L9+16
	bl	fwrite
	mov	r0, #1
	bl	exit
.L6:
	bl	get_termcap
	ldr	r3, .L9+20
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L7
	mov	r0, #10
	bl	putchar
	b	.L3
.L7:
	bl	print_name
	bl	print_bools
	bl	print_nums
	bl	print_strs
.L3:
	bl	getchar
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmn	r3, #1
	bne	.L8
	mov	r0, #0
	bl	exit
.L10:
	.align	2
.L9:
	.word	stdin
	.word	.LC0
	.word	stderr
	.word	.LC1
	.word	.LC2
	.word	buffer
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
