	.file	"820608.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"cat: error: %s: %s\n"
	.text
	.type	print_errno, @function
print_errno:
.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, 16
	mov	QWORD PTR -8[rbp], rdi
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	edi, eax
	call	strerror@PLT
	mov	rcx, rax
	mov	rax, QWORD PTR stdout[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
.LFE6:
	.size	print_errno, .-print_errno
	.local	buf
	.comm	buf,4096,32
	.section	.rodata
.LC1:
	.string	"r"
	.text
	.type	cat, @function
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, 112
	mov	QWORD PTR -104[rbp], rdi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	rax, QWORD PTR -104[rbp]
	lea	rsi, .LC1[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -56[rbp], rax
	cmp	QWORD PTR -56[rbp], 0
	jne	.L3
	mov	rax, QWORD PTR -104[rbp]
	mov	rdi, rax
	call	print_errno
.L3:
	mov	rax, QWORD PTR -56[rbp]
	mov	edx, 2
	mov	esi, 0
	mov	rdi, rax
	call	fseek@PLT
	mov	rax, QWORD PTR -56[rbp]
	mov	rdi, rax
	call	ftell@PLT
	mov	QWORD PTR -48[rbp], rax
	mov	rax, QWORD PTR -56[rbp]
	mov	rdi, rax
	call	rewind@PLT
	cmp	QWORD PTR -48[rbp], 4095
	ja	.L4
	mov	edx, 4096
	mov	esi, 0
	lea	rdi, buf[rip]
	call	memset@PLT
	mov	rdx, QWORD PTR -56[rbp]
	mov	rax, QWORD PTR -48[rbp]
	mov	rcx, rdx
	mov	rdx, rax
	mov	esi, 1
	lea	rdi, buf[rip]
	call	fread@PLT
	cmp	QWORD PTR -48[rbp], rax
	je	.L5
	mov	rax, QWORD PTR -104[rbp]
	mov	rdi, rax
	call	print_errno
.L5:
	lea	rax, buf[rip]
	mov	QWORD PTR -88[rbp], rax
	jmp	.L6
.L4:
	mov	rax, QWORD PTR -48[rbp]
	add	rax, 1
	mov	esi, 1
	mov	rdi, rax
	call	calloc@PLT
	mov	QWORD PTR -88[rbp], rax
	cmp	QWORD PTR -88[rbp], 0
	jne	.L7
	mov	rax, QWORD PTR -104[rbp]
	mov	rdi, rax
	call	print_errno
.L7:
	mov	rcx, QWORD PTR -56[rbp]
	mov	rdx, QWORD PTR -48[rbp]
	mov	rax, QWORD PTR -88[rbp]
	mov	esi, 1
	mov	rdi, rax
	call	fread@PLT
	cmp	QWORD PTR -48[rbp], rax
	je	.L6
	mov	rax, QWORD PTR -104[rbp]
	mov	rdi, rax
	call	print_errno
.L6:
	mov	DWORD PTR -92[rbp], 0
	mov	QWORD PTR -80[rbp], 0
	jmp	.L8
.L10:
	call	__ctype_b_loc@PLT
	mov	rdx, QWORD PTR [rax]
	mov	rcx, QWORD PTR -88[rbp]
	mov	rax, QWORD PTR -80[rbp]
	add	rax, rcx
	movzx	eax, BYTE PTR [rax]
	movsx	rax, al
	add	rax, rax
	add	rax, rdx
	movzx	eax, WORD PTR [rax]
	movzx	eax, ax
	and	eax, 8192
	test	eax, eax
	jne	.L9
	call	__ctype_b_loc@PLT
	mov	rdx, QWORD PTR [rax]
	mov	rcx, QWORD PTR -88[rbp]
	mov	rax, QWORD PTR -80[rbp]
	add	rax, rcx
	movzx	eax, BYTE PTR [rax]
	movsx	rax, al
	add	rax, rax
	add	rax, rdx
	movzx	eax, WORD PTR [rax]
	movzx	eax, ax
	and	eax, 16384
	test	eax, eax
	jne	.L9
	add	DWORD PTR -92[rbp], 1
.L9:
	add	QWORD PTR -80[rbp], 1
.L8:
	mov	rax, QWORD PTR -80[rbp]
	cmp	rax, QWORD PTR -48[rbp]
	jbe	.L10
	cmp	DWORD PTR -92[rbp], 0
	jle	.L11
	mov	DWORD PTR -12[rbp], 12435439
	mov	QWORD PTR -40[rbp], 4
	mov	eax, DWORD PTR -92[rbp]
	cdqe
	imul	rax, QWORD PTR -40[rbp]
	mov	rdx, rax
	mov	rax, QWORD PTR -48[rbp]
	add	rax, rdx
	mov	QWORD PTR -32[rbp], rax
	mov	rax, QWORD PTR -32[rbp]
	mov	esi, 1
	mov	rdi, rax
	call	calloc@PLT
	mov	QWORD PTR -24[rbp], rax
	cmp	QWORD PTR -24[rbp], 0
	jne	.L12
	mov	rax, QWORD PTR -104[rbp]
	mov	rdi, rax
	call	print_errno
.L12:
	mov	QWORD PTR -72[rbp], 0
	mov	QWORD PTR -64[rbp], 0
	jmp	.L13
.L16:
	mov	rdx, QWORD PTR -88[rbp]
	mov	rax, QWORD PTR -64[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	mov	BYTE PTR -93[rbp], al
	call	__ctype_b_loc@PLT
	mov	rdx, QWORD PTR [rax]
	movsx	rax, BYTE PTR -93[rbp]
	add	rax, rax
	add	rax, rdx
	movzx	eax, WORD PTR [rax]
	movzx	eax, ax
	and	eax, 8192
	test	eax, eax
	jne	.L14
	call	__ctype_b_loc@PLT
	mov	rdx, QWORD PTR [rax]
	movsx	rax, BYTE PTR -93[rbp]
	add	rax, rax
	add	rax, rdx
	movzx	eax, WORD PTR [rax]
	movzx	eax, ax
	and	eax, 16384
	test	eax, eax
	jne	.L14
	mov	rdx, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR -72[rbp]
	lea	rcx, [rdx+rax]
	mov	rdx, QWORD PTR -40[rbp]
	lea	rax, -12[rbp]
	mov	rsi, rax
	mov	rdi, rcx
	call	memcpy@PLT
	mov	rdx, QWORD PTR -40[rbp]
	mov	rax, QWORD PTR -72[rbp]
	add	rax, rdx
	sub	rax, 1
	mov	QWORD PTR -72[rbp], rax
	jmp	.L15
.L14:
	mov	rdx, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR -72[rbp]
	add	rdx, rax
	movzx	eax, BYTE PTR -93[rbp]
	mov	BYTE PTR [rdx], al
	add	QWORD PTR -72[rbp], 1
.L15:
	add	QWORD PTR -64[rbp], 1
.L13:
	mov	rax, QWORD PTR -64[rbp]
	cmp	rax, QWORD PTR -48[rbp]
	jb	.L16
	lea	rax, buf[rip]
	cmp	QWORD PTR -88[rbp], rax
	je	.L17
	mov	rax, QWORD PTR -88[rbp]
	mov	rdi, rax
	call	free@PLT
.L17:
	mov	rax, QWORD PTR -24[rbp]
	mov	QWORD PTR -88[rbp], rax
.L11:
	mov	rdx, QWORD PTR stdout[rip]
	mov	rax, QWORD PTR -88[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	fputs@PLT
	mov	rax, QWORD PTR -56[rbp]
	mov	rdi, rax
	call	fclose@PLT
	lea	rax, buf[rip]
	cmp	QWORD PTR -88[rbp], rax
	je	.L18
	mov	rax, QWORD PTR -88[rbp]
	mov	rdi, rax
	call	free@PLT
.L18:
	mov	eax, 0
	mov	rsi, QWORD PTR -8[rbp]
	sub	rsi, QWORD PTR fs:40
	je	.L20
	call	__stack_chk_fail@PLT
.L20:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	cat, .-cat
	.section	.rodata
.LC2:
	.string	"cat"
.LC3:
	.string	"%s: usage: [file...]\n"
	.text
	.globl	main
	.type	main, @function
main:
.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, 32
	mov	DWORD PTR -20[rbp], edi
	mov	QWORD PTR -32[rbp], rsi
	cmp	DWORD PTR -20[rbp], 1
	jne	.L22
	mov	rax, QWORD PTR stdout[rip]
	lea	rdx, .LC2[rip]
	lea	rsi, .LC3[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	eax, 0
	jmp	.L23
.L22:
	mov	QWORD PTR -8[rbp], 1
	jmp	.L24
.L25:
	mov	rax, QWORD PTR -8[rbp]
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -32[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	cat
	add	QWORD PTR -8[rbp], 1
.L24:
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	cmp	QWORD PTR -8[rbp], rax
	jb	.L25
	mov	eax, 0
.L23:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.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	"820608.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"cat: error: %s: %s\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	print_errno, %function
print_errno:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #12
	str	r0, [fp, #-16]
	ldr	r3, .L2
	ldr	r4, [r3]
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r0, r3
	bl	strerror
	mov	r3, r0
	ldr	r2, [fp, #-16]
	ldr	r1, .L2+4
	mov	r0, r4
	bl	fprintf
	mov	r0, #1
	bl	exit
.L3:
	.align	2
.L2:
	.word	stdout
	.word	.LC0
	.size	print_errno, .-print_errno
	.local	buf
	.comm	buf,4096,4
	.section	.rodata
	.align	2
.LC1:
	.ascii	"r\000"
	.align	2
.LC2:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	cat, %function
cat:
	@ args = 0, pretend = 0, frame = 64
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #64
	str	r0, [fp, #-64]
	ldr	r3, .L23
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r1, .L23+4
	ldr	r0, [fp, #-64]
	bl	fopen
	str	r0, [fp, #-32]
	ldr	r3, [fp, #-32]
	cmp	r3, #0
	bne	.L5
	ldr	r0, [fp, #-64]
	bl	print_errno
.L5:
	mov	r2, #2
	mov	r1, #0
	ldr	r0, [fp, #-32]
	bl	fseek
	ldr	r0, [fp, #-32]
	bl	ftell
	mov	r3, r0
	str	r3, [fp, #-28]
	ldr	r0, [fp, #-32]
	bl	rewind
	ldr	r3, [fp, #-28]
	cmp	r3, #4096
	bcs	.L6
	mov	r2, #4096
	mov	r1, #0
	ldr	r0, .L23+8
	bl	memset
	ldr	r3, [fp, #-32]
	ldr	r2, [fp, #-28]
	mov	r1, #1
	ldr	r0, .L23+8
	bl	fread
	mov	r2, r0
	ldr	r3, [fp, #-28]
	cmp	r3, r2
	beq	.L7
	ldr	r0, [fp, #-64]
	bl	print_errno
.L7:
	ldr	r3, .L23+8
	str	r3, [fp, #-52]
	b	.L8
.L6:
	ldr	r3, [fp, #-28]
	add	r3, r3, #1
	mov	r1, #1
	mov	r0, r3
	bl	calloc
	mov	r3, r0
	str	r3, [fp, #-52]
	ldr	r3, [fp, #-52]
	cmp	r3, #0
	bne	.L9
	ldr	r0, [fp, #-64]
	bl	print_errno
.L9:
	ldr	r3, [fp, #-32]
	ldr	r2, [fp, #-28]
	mov	r1, #1
	ldr	r0, [fp, #-52]
	bl	fread
	mov	r2, r0
	ldr	r3, [fp, #-28]
	cmp	r3, r2
	beq	.L8
	ldr	r0, [fp, #-64]
	bl	print_errno
.L8:
	mov	r3, #0
	str	r3, [fp, #-48]
	mov	r3, #0
	str	r3, [fp, #-44]
	b	.L10
.L12:
	bl	__ctype_b_loc
	mov	r3, r0
	ldr	r2, [r3]
	ldr	r1, [fp, #-52]
	ldr	r3, [fp, #-44]
	add	r3, r1, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	lsl	r3, r3, #1
	add	r3, r2, r3
	ldrh	r3, [r3]
	and	r3, r3, #8192
	cmp	r3, #0
	bne	.L11
	bl	__ctype_b_loc
	mov	r3, r0
	ldr	r2, [r3]
	ldr	r1, [fp, #-52]
	ldr	r3, [fp, #-44]
	add	r3, r1, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	lsl	r3, r3, #1
	add	r3, r2, r3
	ldrh	r3, [r3]
	and	r3, r3, #16384
	cmp	r3, #0
	bne	.L11
	ldr	r3, [fp, #-48]
	add	r3, r3, #1
	str	r3, [fp, #-48]
.L11:
	ldr	r3, [fp, #-44]
	add	r3, r3, #1
	str	r3, [fp, #-44]
.L10:
	ldr	r2, [fp, #-44]
	ldr	r3, [fp, #-28]
	cmp	r2, r3
	bls	.L12
	ldr	r3, [fp, #-48]
	cmp	r3, #0
	ble	.L13
	ldr	r3, .L23+12
	str	r3, [fp, #-12]
	mov	r3, #4
	str	r3, [fp, #-24]
	ldr	r3, [fp, #-48]
	ldr	r2, [fp, #-24]
	mul	r3, r2, r3
	ldr	r2, [fp, #-28]
	add	r3, r2, r3
	str	r3, [fp, #-20]
	mov	r1, #1
	ldr	r0, [fp, #-20]
	bl	calloc
	mov	r3, r0
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	bne	.L14
	ldr	r0, [fp, #-64]
	bl	print_errno
.L14:
	mov	r3, #0
	str	r3, [fp, #-40]
	mov	r3, #0
	str	r3, [fp, #-36]
	b	.L15
.L18:
	ldr	r2, [fp, #-52]
	ldr	r3, [fp, #-36]
	add	r3, r2, r3
	ldrb	r3, [r3]
	strb	r3, [fp, #-53]
	bl	__ctype_b_loc
	mov	r3, r0
	ldr	r2, [r3]
	ldrb	r3, [fp, #-53]	@ zero_extendqisi2
	lsl	r3, r3, #1
	add	r3, r2, r3
	ldrh	r3, [r3]
	and	r3, r3, #8192
	cmp	r3, #0
	bne	.L16
	bl	__ctype_b_loc
	mov	r3, r0
	ldr	r2, [r3]
	ldrb	r3, [fp, #-53]	@ zero_extendqisi2
	lsl	r3, r3, #1
	add	r3, r2, r3
	ldrh	r3, [r3]
	and	r3, r3, #16384
	cmp	r3, #0
	bne	.L16
	ldr	r2, [fp, #-16]
	ldr	r3, [fp, #-40]
	add	r3, r2, r3
	sub	r1, fp, #12
	ldr	r2, [fp, #-24]
	mov	r0, r3
	bl	memcpy
	ldr	r2, [fp, #-24]
	ldr	r3, [fp, #-40]
	add	r3, r2, r3
	sub	r3, r3, #1
	str	r3, [fp, #-40]
	b	.L17
.L16:
	ldr	r2, [fp, #-16]
	ldr	r3, [fp, #-40]
	add	r3, r2, r3
	ldrb	r2, [fp, #-53]
	strb	r2, [r3]
	ldr	r3, [fp, #-40]
	add	r3, r3, #1
	str	r3, [fp, #-40]
.L17:
	ldr	r3, [fp, #-36]
	add	r3, r3, #1
	str	r3, [fp, #-36]
.L15:
	ldr	r2, [fp, #-36]
	ldr	r3, [fp, #-28]
	cmp	r2, r3
	bcc	.L18
	ldr	r3, [fp, #-52]
	ldr	r2, .L23+8
	cmp	r3, r2
	beq	.L19
	ldr	r0, [fp, #-52]
	bl	free
.L19:
	ldr	r3, [fp, #-16]
	str	r3, [fp, #-52]
.L13:
	ldr	r3, .L23+16
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, [fp, #-52]
	bl	fputs
	ldr	r0, [fp, #-32]
	bl	fclose
	ldr	r3, [fp, #-52]
	ldr	r2, .L23+8
	cmp	r3, r2
	beq	.L20
	ldr	r0, [fp, #-52]
	bl	free
.L20:
	mov	r3, #0
	ldr	r2, .L23
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L22
	bl	__stack_chk_fail
.L22:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L24:
	.align	2
.L23:
	.word	.LC2
	.word	.LC1
	.word	buf
	.word	12435439
	.word	stdout
	.size	cat, .-cat
	.section	.rodata
	.align	2
.LC3:
	.ascii	"cat\000"
	.align	2
.LC4:
	.ascii	"%s: usage: [file...]\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, #1
	bne	.L26
	ldr	r3, .L30
	ldr	r3, [r3]
	ldr	r2, .L30+4
	ldr	r1, .L30+8
	mov	r0, r3
	bl	fprintf
	mov	r3, #0
	b	.L27
.L26:
	mov	r3, #1
	str	r3, [fp, #-8]
	b	.L28
.L29:
	ldr	r3, [fp, #-8]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-20]
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r0, r3
	bl	cat
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L28:
	ldr	r3, [fp, #-16]
	ldr	r2, [fp, #-8]
	cmp	r2, r3
	bcc	.L29
	mov	r3, #0
.L27:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L31:
	.align	2
.L30:
	.word	stdout
	.word	.LC3
	.word	.LC4
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
