	.file	"292071.c"
	.intel_syntax noprefix
	.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
	sub	rsp, 32
	mov	DWORD PTR -20[rbp], edi
	mov	QWORD PTR -32[rbp], rsi
	cmp	DWORD PTR -20[rbp], 1
	jg	.L2
	mov	eax, 0
	call	do_stdin_cat
.L2:
	mov	DWORD PTR -4[rbp], 1
	jmp	.L3
.L4:
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -32[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	do_cat
	add	DWORD PTR -4[rbp], 1
.L3:
	mov	eax, DWORD PTR -4[rbp]
	cmp	eax, DWORD PTR -20[rbp]
	jl	.L4
	mov	edi, 0
	call	exit@PLT
	.cfi_endproc
.LFE6:
	.size	main, .-main
	.section	.rodata
.LC0:
	.string	""
	.text
	.type	do_stdin_cat, @function
do_stdin_cat:
.LFB7:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 2080
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
.L7:
	lea	rax, -2064[rbp]
	mov	edx, 2048
	mov	rsi, rax
	mov	edi, 0
	call	read@PLT
	mov	DWORD PTR -2068[rbp], eax
	cmp	DWORD PTR -2068[rbp], 0
	jns	.L6
	lea	rdi, .LC0[rip]
	call	die
.L6:
	mov	eax, DWORD PTR -2068[rbp]
	movsx	rdx, eax
	lea	rax, -2064[rbp]
	mov	rsi, rax
	mov	edi, 1
	call	write@PLT
	jmp	.L7
	.cfi_endproc
.LFE7:
	.size	do_stdin_cat, .-do_stdin_cat
	.type	do_cat, @function
do_cat:
.LFB8:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 2096
	mov	QWORD PTR -2088[rbp], rdi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	rax, QWORD PTR -2088[rbp]
	mov	esi, 0
	mov	rdi, rax
	mov	eax, 0
	call	open@PLT
	mov	DWORD PTR -2072[rbp], eax
	cmp	DWORD PTR -2072[rbp], 0
	jns	.L15
	mov	rax, QWORD PTR -2088[rbp]
	mov	rdi, rax
	call	die
.L15:
	lea	rcx, -2064[rbp]
	mov	eax, DWORD PTR -2072[rbp]
	mov	edx, 2048
	mov	rsi, rcx
	mov	edi, eax
	call	read@PLT
	mov	DWORD PTR -2068[rbp], eax
	cmp	DWORD PTR -2068[rbp], 0
	jns	.L11
	mov	rax, QWORD PTR -2088[rbp]
	mov	rdi, rax
	call	die
.L11:
	cmp	DWORD PTR -2068[rbp], 0
	je	.L19
	mov	eax, DWORD PTR -2068[rbp]
	movsx	rdx, eax
	lea	rax, -2064[rbp]
	mov	rsi, rax
	mov	edi, 1
	call	write@PLT
	test	rax, rax
	jns	.L15
	mov	rax, QWORD PTR -2088[rbp]
	mov	rdi, rax
	call	die
	jmp	.L15
.L19:
	nop
	mov	eax, DWORD PTR -2072[rbp]
	mov	edi, eax
	call	close@PLT
	test	eax, eax
	jns	.L20
	mov	rax, QWORD PTR -2088[rbp]
	mov	rdi, rax
	call	die
.L20:
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L17
	call	__stack_chk_fail@PLT
.L17:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	do_cat, .-do_cat
	.type	die, @function
die:
.LFB9:
	.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
.LFE9:
	.size	die, .-die
	.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	"292071.c"
	.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, #1
	bgt	.L2
	bl	do_stdin_cat
.L2:
	mov	r3, #1
	str	r3, [fp, #-8]
	b	.L3
.L4:
	ldr	r3, [fp, #-8]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-20]
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r0, r3
	bl	do_cat
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L3:
	ldr	r2, [fp, #-8]
	ldr	r3, [fp, #-16]
	cmp	r2, r3
	blt	.L4
	mov	r0, #0
	bl	exit
	.size	main, .-main
	.section	.rodata
	.align	2
.LC0:
	.ascii	"\000"
	.align	2
.LC1:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	do_stdin_cat, %function
do_stdin_cat:
	@ args = 0, pretend = 0, frame = 2056
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #2048
	sub	sp, sp, #8
	ldr	r3, .L9
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
.L7:
	sub	r3, fp, #2048
	sub	r3, r3, #4
	sub	r3, r3, #4
	mov	r2, #2048
	mov	r1, r3
	mov	r0, #0
	bl	read
	str	r0, [fp, #-2060]
	ldr	r3, [fp, #-2060]
	cmp	r3, #0
	bge	.L6
	ldr	r0, .L9+4
	bl	die
.L6:
	ldr	r2, [fp, #-2060]
	sub	r3, fp, #2048
	sub	r3, r3, #4
	sub	r3, r3, #4
	mov	r1, r3
	mov	r0, #1
	bl	write
	b	.L7
.L10:
	.align	2
.L9:
	.word	.LC1
	.word	.LC0
	.size	do_stdin_cat, .-do_stdin_cat
	.section	.rodata
	.align	2
.LC2:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	do_cat, %function
do_cat:
	@ args = 0, pretend = 0, frame = 2072
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #2064
	sub	sp, sp, #8
	str	r0, [fp, #-2072]
	ldr	r3, .L23
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r1, #0
	ldr	r0, [fp, #-2072]
	bl	open
	str	r0, [fp, #-2064]
	ldr	r3, [fp, #-2064]
	cmp	r3, #0
	bge	.L17
	ldr	r0, [fp, #-2072]
	bl	die
.L17:
	sub	r3, fp, #2048
	sub	r3, r3, #4
	sub	r3, r3, #4
	mov	r2, #2048
	mov	r1, r3
	ldr	r0, [fp, #-2064]
	bl	read
	str	r0, [fp, #-2060]
	ldr	r3, [fp, #-2060]
	cmp	r3, #0
	bge	.L13
	ldr	r0, [fp, #-2072]
	bl	die
.L13:
	ldr	r3, [fp, #-2060]
	cmp	r3, #0
	beq	.L21
	ldr	r2, [fp, #-2060]
	sub	r3, fp, #2048
	sub	r3, r3, #4
	sub	r3, r3, #4
	mov	r1, r3
	mov	r0, #1
	bl	write
	mov	r3, r0
	cmp	r3, #0
	bge	.L17
	ldr	r0, [fp, #-2072]
	bl	die
	b	.L17
.L21:
	nop
	ldr	r0, [fp, #-2064]
	bl	close
	mov	r3, r0
	cmp	r3, #0
	bge	.L22
	ldr	r0, [fp, #-2072]
	bl	die
.L22:
	nop
	ldr	r3, .L23
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L19
	bl	__stack_chk_fail
.L19:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L24:
	.align	2
.L23:
	.word	.LC2
	.size	do_cat, .-do_cat
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	die, %function
die:
	@ 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	die, .-die
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
