	.file	"423661.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	" "
.LC1:
	.string	"%02X%s"
	.text
	.type	print_buf, @function
print_buf:
.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, 48
	mov	QWORD PTR -24[rbp], rdi
	mov	QWORD PTR -32[rbp], rsi
	mov	QWORD PTR -40[rbp], rdx
	mov	QWORD PTR -8[rbp], 0
	mov	QWORD PTR -8[rbp], 0
	jmp	.L2
.L3:
	mov	rdx, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR -8[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	movzx	edx, al
	mov	rax, QWORD PTR stdout[rip]
	lea	rcx, .LC0[rip]
	lea	rsi, .LC1[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	add	QWORD PTR -8[rbp], 1
.L2:
	mov	rax, QWORD PTR -8[rbp]
	cmp	rax, QWORD PTR -32[rbp]
	jb	.L3
	mov	rax, QWORD PTR -40[rbp]
	mov	rdi, rax
	call	puts@PLT
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	print_buf, .-print_buf
	.section	.rodata
.LC2:
	.string	"/dev/hcry"
.LC3:
	.string	"Could not open the device!"
.LC4:
	.string	"thisIsOldKeyAndNowLongEnough"
.LC5:
	.string	"Current encryption key: %s\n\n"
	.align 8
.LC6:
	.string	"\nString that will be encrypted&decrypted: "
.LC7:
	.string	"%[^\n]%*c"
	.align 8
.LC8:
	.string	"Too long msg, maximum size is %d"
	.align 8
.LC9:
	.string	"Could not send the string to the device!"
	.align 8
.LC10:
	.string	"Could not read the binary from the device!"
	.align 8
.LC11:
	.string	"Could not read the string from the device!"
.LC12:
	.string	" <-- Original  message (HEX)"
.LC13:
	.string	" <-- Encrypted message (HEX)"
.LC14:
	.string	" <-- Decrypted message (HEX)"
.LC15:
	.string	"%s <-- Original  message\n"
.LC16:
	.string	"%s <-- Encrypted message\n"
.LC17:
	.string	"%s <-- Decrypted message\n"
.LC18:
	.string	"Current encryption key: %s\n"
	.align 8
.LC19:
	.string	"Setting new encryption key via IOCTL."
	.align 8
.LC20:
	.string	"newKeyHereAndThisIsAlsoLongEnough"
	.text
	.globl	main
	.type	main, @function
main:
.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, 4096
	or	QWORD PTR [rsp], 0
	sub	rsp, 4096
	or	QWORD PTR [rsp], 0
	sub	rsp, 32
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	esi, 2
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	open@PLT
	mov	DWORD PTR -8220[rbp], eax
	cmp	DWORD PTR -8220[rbp], 0
	jns	.L5
	lea	rdi, .LC3[rip]
	call	perror@PLT
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	jmp	.L16
.L5:
	mov	eax, DWORD PTR -8220[rbp]
	lea	rdx, .LC4[rip]
	mov	esi, 1074291457
	mov	edi, eax
	mov	eax, 0
	call	ioctl@PLT
	lea	rdx, -2064[rbp]
	mov	eax, DWORD PTR -8220[rbp]
	mov	esi, 2148033282
	mov	edi, eax
	mov	eax, 0
	call	ioctl@PLT
	lea	rax, -2064[rbp]
	mov	rsi, rax
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rdi, .LC6[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -8208[rbp]
	mov	rsi, rax
	lea	rdi, .LC7[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	lea	rax, -8208[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	DWORD PTR -8216[rbp], eax
	cmp	DWORD PTR -8216[rbp], 2048
	jle	.L7
	mov	esi, 2048
	lea	rdi, .LC8[rip]
	mov	eax, 0
	call	printf@PLT
.L7:
	mov	edi, 10
	call	putchar@PLT
	mov	edx, DWORD PTR -8216[rbp]
	lea	rcx, -8208[rbp]
	mov	eax, DWORD PTR -8220[rbp]
	mov	rsi, rcx
	mov	edi, eax
	mov	eax, 0
	call	write@PLT
	mov	DWORD PTR -8212[rbp], eax
	cmp	DWORD PTR -8212[rbp], 0
	jns	.L8
	lea	rdi, .LC9[rip]
	call	perror@PLT
	mov	eax, DWORD PTR -8220[rbp]
	mov	edi, eax
	mov	eax, 0
	call	close@PLT
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	jmp	.L16
.L8:
	mov	edx, DWORD PTR -8216[rbp]
	lea	rcx, -6160[rbp]
	mov	eax, DWORD PTR -8220[rbp]
	mov	rsi, rcx
	mov	edi, eax
	mov	eax, 0
	call	read@PLT
	mov	DWORD PTR -8212[rbp], eax
	cmp	DWORD PTR -8212[rbp], 0
	jns	.L9
	lea	rdi, .LC10[rip]
	call	perror@PLT
	mov	eax, DWORD PTR -8220[rbp]
	mov	edi, eax
	mov	eax, 0
	call	close@PLT
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	jmp	.L16
.L9:
	lea	rcx, -6160[rbp]
	mov	eax, DWORD PTR -8220[rbp]
	mov	edx, 2
	mov	rsi, rcx
	mov	edi, eax
	mov	eax, 0
	call	write@PLT
	mov	DWORD PTR -8212[rbp], eax
	cmp	DWORD PTR -8212[rbp], 0
	jns	.L10
	lea	rdi, .LC9[rip]
	call	perror@PLT
	mov	eax, DWORD PTR -8220[rbp]
	mov	edi, eax
	mov	eax, 0
	call	close@PLT
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	jmp	.L16
.L10:
	lea	rcx, -4112[rbp]
	mov	eax, DWORD PTR -8220[rbp]
	mov	edx, 2048
	mov	rsi, rcx
	mov	edi, eax
	mov	eax, 0
	call	read@PLT
	mov	DWORD PTR -8212[rbp], eax
	cmp	DWORD PTR -8212[rbp], 0
	jns	.L11
	lea	rdi, .LC11[rip]
	call	perror@PLT
	mov	eax, DWORD PTR -8220[rbp]
	mov	edi, eax
	mov	eax, 0
	call	close@PLT
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	jmp	.L16
.L11:
	mov	eax, DWORD PTR -8216[rbp]
	movsx	rcx, eax
	lea	rax, -8208[rbp]
	lea	rdx, .LC12[rip]
	mov	rsi, rcx
	mov	rdi, rax
	call	print_buf
	mov	eax, DWORD PTR -8216[rbp]
	movsx	rcx, eax
	lea	rax, -6160[rbp]
	lea	rdx, .LC13[rip]
	mov	rsi, rcx
	mov	rdi, rax
	call	print_buf
	mov	eax, DWORD PTR -8216[rbp]
	movsx	rcx, eax
	lea	rax, -4112[rbp]
	lea	rdx, .LC14[rip]
	mov	rsi, rcx
	mov	rdi, rax
	call	print_buf
	lea	rax, -8208[rbp]
	mov	rsi, rax
	lea	rdi, .LC15[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -6160[rbp]
	mov	rsi, rax
	lea	rdi, .LC16[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -4112[rbp]
	mov	rsi, rax
	lea	rdi, .LC17[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edi, 10
	call	putchar@PLT
	lea	rdx, -2064[rbp]
	mov	eax, DWORD PTR -8220[rbp]
	mov	esi, 2148033282
	mov	edi, eax
	mov	eax, 0
	call	ioctl@PLT
	lea	rax, -2064[rbp]
	mov	rsi, rax
	lea	rdi, .LC18[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rdi, .LC19[rip]
	call	puts@PLT
	mov	eax, DWORD PTR -8220[rbp]
	lea	rdx, .LC20[rip]
	mov	esi, 1074291457
	mov	edi, eax
	mov	eax, 0
	call	ioctl@PLT
	lea	rdx, -2064[rbp]
	mov	eax, DWORD PTR -8220[rbp]
	mov	esi, 2148033282
	mov	edi, eax
	mov	eax, 0
	call	ioctl@PLT
	lea	rax, -2064[rbp]
	mov	rsi, rax
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edx, DWORD PTR -8216[rbp]
	lea	rcx, -8208[rbp]
	mov	eax, DWORD PTR -8220[rbp]
	mov	rsi, rcx
	mov	edi, eax
	mov	eax, 0
	call	write@PLT
	mov	DWORD PTR -8212[rbp], eax
	cmp	DWORD PTR -8212[rbp], 0
	jns	.L12
	lea	rdi, .LC9[rip]
	call	perror@PLT
	mov	eax, DWORD PTR -8220[rbp]
	mov	edi, eax
	mov	eax, 0
	call	close@PLT
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	jmp	.L16
.L12:
	lea	rcx, -6160[rbp]
	mov	eax, DWORD PTR -8220[rbp]
	mov	edx, 2048
	mov	rsi, rcx
	mov	edi, eax
	mov	eax, 0
	call	read@PLT
	mov	DWORD PTR -8212[rbp], eax
	cmp	DWORD PTR -8212[rbp], 0
	jns	.L13
	lea	rdi, .LC10[rip]
	call	perror@PLT
	mov	eax, DWORD PTR -8220[rbp]
	mov	edi, eax
	mov	eax, 0
	call	close@PLT
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	jmp	.L16
.L13:
	mov	edx, DWORD PTR -8216[rbp]
	lea	rcx, -6160[rbp]
	mov	eax, DWORD PTR -8220[rbp]
	mov	rsi, rcx
	mov	edi, eax
	mov	eax, 0
	call	write@PLT
	mov	DWORD PTR -8212[rbp], eax
	cmp	DWORD PTR -8212[rbp], 0
	jns	.L14
	lea	rdi, .LC9[rip]
	call	perror@PLT
	mov	eax, DWORD PTR -8220[rbp]
	mov	edi, eax
	mov	eax, 0
	call	close@PLT
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	jmp	.L16
.L14:
	lea	rcx, -4112[rbp]
	mov	eax, DWORD PTR -8220[rbp]
	mov	edx, 2048
	mov	rsi, rcx
	mov	edi, eax
	mov	eax, 0
	call	read@PLT
	mov	DWORD PTR -8212[rbp], eax
	cmp	DWORD PTR -8212[rbp], 0
	jns	.L15
	lea	rdi, .LC11[rip]
	call	perror@PLT
	mov	eax, DWORD PTR -8220[rbp]
	mov	edi, eax
	mov	eax, 0
	call	close@PLT
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	jmp	.L16
.L15:
	mov	eax, DWORD PTR -8216[rbp]
	movsx	rcx, eax
	lea	rax, -8208[rbp]
	lea	rdx, .LC12[rip]
	mov	rsi, rcx
	mov	rdi, rax
	call	print_buf
	mov	eax, DWORD PTR -8216[rbp]
	movsx	rcx, eax
	lea	rax, -6160[rbp]
	lea	rdx, .LC13[rip]
	mov	rsi, rcx
	mov	rdi, rax
	call	print_buf
	mov	eax, DWORD PTR -8216[rbp]
	movsx	rcx, eax
	lea	rax, -4112[rbp]
	lea	rdx, .LC14[rip]
	mov	rsi, rcx
	mov	rdi, rax
	call	print_buf
	lea	rax, -8208[rbp]
	mov	rsi, rax
	lea	rdi, .LC15[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -6160[rbp]
	mov	rsi, rax
	lea	rdi, .LC16[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -4112[rbp]
	mov	rsi, rax
	lea	rdi, .LC17[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edi, 10
	call	putchar@PLT
	mov	eax, DWORD PTR -8220[rbp]
	mov	esi, 6
	mov	edi, eax
	mov	eax, 0
	call	ioctl@PLT
	mov	eax, DWORD PTR -8220[rbp]
	mov	edi, eax
	mov	eax, 0
	call	close@PLT
	mov	eax, 0
.L16:
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L17
	call	__stack_chk_fail@PLT
.L17:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.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	"423661.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	" \000"
	.align	2
.LC1:
	.ascii	"%02X%s\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	print_buf, %function
print_buf:
	@ 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, #-16]
	str	r1, [fp, #-20]
	str	r2, [fp, #-24]
	mov	r3, #0
	str	r3, [fp, #-8]
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L2
.L3:
	ldr	r3, .L4
	ldr	r0, [r3]
	ldr	r2, [fp, #-16]
	ldr	r3, [fp, #-8]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r2, r3
	ldr	r3, .L4+4
	ldr	r1, .L4+8
	bl	fprintf
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L2:
	ldr	r2, [fp, #-8]
	ldr	r3, [fp, #-20]
	cmp	r2, r3
	bcc	.L3
	ldr	r0, [fp, #-24]
	bl	puts
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L5:
	.align	2
.L4:
	.word	stdout
	.word	.LC0
	.word	.LC1
	.size	print_buf, .-print_buf
	.section	.rodata
	.align	2
.LC2:
	.ascii	"/dev/hcry\000"
	.align	2
.LC3:
	.ascii	"Could not open the device!\000"
	.align	2
.LC4:
	.ascii	"thisIsOldKeyAndNowLongEnough\000"
	.align	2
.LC5:
	.ascii	"Current encryption key: %s\012\012\000"
	.align	2
.LC6:
	.ascii	"\012String that will be encrypted&decrypted: \000"
	.align	2
.LC7:
	.ascii	"%[^\012]%*c\000"
	.align	2
.LC8:
	.ascii	"Too long msg, maximum size is %d\000"
	.align	2
.LC9:
	.ascii	"Could not send the string to the device!\000"
	.align	2
.LC10:
	.ascii	"Could not read the binary from the device!\000"
	.align	2
.LC11:
	.ascii	"Could not read the string from the device!\000"
	.align	2
.LC12:
	.ascii	" <-- Original  message (HEX)\000"
	.align	2
.LC13:
	.ascii	" <-- Encrypted message (HEX)\000"
	.align	2
.LC14:
	.ascii	" <-- Decrypted message (HEX)\000"
	.align	2
.LC15:
	.ascii	"%s <-- Original  message\012\000"
	.align	2
.LC16:
	.ascii	"%s <-- Encrypted message\012\000"
	.align	2
.LC17:
	.ascii	"%s <-- Decrypted message\012\000"
	.align	2
.LC18:
	.ascii	"Current encryption key: %s\012\000"
	.align	2
.LC19:
	.ascii	"Setting new encryption key via IOCTL.\000"
	.align	2
.LC20:
	.ascii	"newKeyHereAndThisIsAlsoLongEnough\000"
	.align	2
.LC21:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 8208
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #8192
	sub	sp, sp, #20
	ldr	r3, .L20
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r4, r3
	mov	r1, #2
	ldr	r0, .L20+4
	bl	open
	str	r0, [r4, #-16]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-16]
	cmp	r3, #0
	bge	.L7
	ldr	r0, .L20+8
	bl	perror
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	b	.L18
.L7:
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r2, .L20+12
	ldr	r1, .L20+16
	ldr	r0, [r3, #-16]
	bl	ioctl
	sub	r3, fp, #2048
	sub	r3, r3, #12
	sub	r3, r3, #4
	sub	r2, fp, #8192
	sub	r2, r2, #12
	mov	r0, r2
	mov	r2, r3
	ldr	r1, .L20+20
	ldr	r0, [r0, #-16]
	bl	ioctl
	sub	r3, fp, #2048
	sub	r3, r3, #12
	sub	r3, r3, #4
	mov	r1, r3
	ldr	r0, .L20+24
	bl	printf
	ldr	r0, .L20+28
	bl	printf
	sub	r3, fp, #8192
	sub	r3, r3, #12
	sub	r3, r3, #4
	mov	r1, r3
	ldr	r0, .L20+32
	bl	__isoc99_scanf
	sub	r3, fp, #8192
	sub	r3, r3, #12
	sub	r3, r3, #4
	mov	r0, r3
	bl	strlen
	mov	r3, r0
	sub	r2, fp, #8192
	sub	r2, r2, #12
	str	r3, [r2, #-12]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-12]
	cmp	r3, #2048
	ble	.L9
	mov	r1, #2048
	ldr	r0, .L20+36
	bl	printf
.L9:
	mov	r0, #10
	bl	putchar
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r4, r3
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #8192
	sub	r3, r3, #12
	sub	r3, r3, #4
	sub	r1, fp, #8192
	sub	r1, r1, #12
	mov	r0, r1
	ldr	r2, [r2, #-12]
	mov	r1, r3
	ldr	r0, [r0, #-16]
	bl	write
	str	r0, [r4, #-8]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-8]
	cmp	r3, #0
	bge	.L10
	ldr	r0, .L20+40
	bl	perror
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r0, [r3, #-16]
	bl	close
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	b	.L18
.L10:
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r4, r3
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #6144
	sub	r3, r3, #12
	sub	r3, r3, #4
	sub	r1, fp, #8192
	sub	r1, r1, #12
	mov	r0, r1
	ldr	r2, [r2, #-12]
	mov	r1, r3
	ldr	r0, [r0, #-16]
	bl	read
	str	r0, [r4, #-8]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-8]
	cmp	r3, #0
	bge	.L11
	ldr	r0, .L20+44
	bl	perror
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r0, [r3, #-16]
	bl	close
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	b	.L18
.L11:
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r4, r3
	sub	r3, fp, #6144
	sub	r3, r3, #12
	sub	r3, r3, #4
	sub	r2, fp, #8192
	sub	r2, r2, #12
	mov	r0, r2
	mov	r2, #2
	mov	r1, r3
	ldr	r0, [r0, #-16]
	bl	write
	str	r0, [r4, #-8]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-8]
	cmp	r3, #0
	bge	.L12
	ldr	r0, .L20+40
	bl	perror
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r0, [r3, #-16]
	bl	close
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	b	.L18
.L12:
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r4, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	sub	r3, r3, #4
	sub	r2, fp, #8192
	sub	r2, r2, #12
	mov	r0, r2
	mov	r2, #2048
	mov	r1, r3
	ldr	r0, [r0, #-16]
	bl	read
	str	r0, [r4, #-8]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-8]
	cmp	r3, #0
	bge	.L13
	ldr	r0, .L20+48
	bl	perror
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r0, [r3, #-16]
	bl	close
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	b	.L18
.L13:
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r1, [r3, #-12]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	sub	r3, r3, #4
	ldr	r2, .L20+52
	mov	r0, r3
	bl	print_buf
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r1, [r3, #-12]
	sub	r3, fp, #6144
	sub	r3, r3, #12
	sub	r3, r3, #4
	ldr	r2, .L20+56
	mov	r0, r3
	bl	print_buf
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r1, [r3, #-12]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	sub	r3, r3, #4
	ldr	r2, .L20+60
	mov	r0, r3
	bl	print_buf
	sub	r3, fp, #8192
	sub	r3, r3, #12
	sub	r3, r3, #4
	mov	r1, r3
	ldr	r0, .L20+64
	bl	printf
	sub	r3, fp, #6144
	sub	r3, r3, #12
	sub	r3, r3, #4
	mov	r1, r3
	ldr	r0, .L20+68
	bl	printf
	sub	r3, fp, #4096
	sub	r3, r3, #12
	sub	r3, r3, #4
	mov	r1, r3
	ldr	r0, .L20+72
	bl	printf
	mov	r0, #10
	bl	putchar
	sub	r3, fp, #2048
	sub	r3, r3, #12
	sub	r3, r3, #4
	sub	r2, fp, #8192
	sub	r2, r2, #12
	mov	r0, r2
	mov	r2, r3
	ldr	r1, .L20+20
	ldr	r0, [r0, #-16]
	bl	ioctl
	sub	r3, fp, #2048
	sub	r3, r3, #12
	sub	r3, r3, #4
	mov	r1, r3
	ldr	r0, .L20+76
	bl	printf
	ldr	r0, .L20+80
	bl	puts
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r2, .L20+84
	ldr	r1, .L20+16
	ldr	r0, [r3, #-16]
	bl	ioctl
	sub	r3, fp, #2048
	sub	r3, r3, #12
	sub	r3, r3, #4
	sub	r2, fp, #8192
	sub	r2, r2, #12
	mov	r0, r2
	mov	r2, r3
	ldr	r1, .L20+20
	ldr	r0, [r0, #-16]
	bl	ioctl
	sub	r3, fp, #2048
	sub	r3, r3, #12
	sub	r3, r3, #4
	mov	r1, r3
	ldr	r0, .L20+24
	bl	printf
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r4, r3
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #8192
	sub	r3, r3, #12
	sub	r3, r3, #4
	sub	r1, fp, #8192
	sub	r1, r1, #12
	mov	r0, r1
	ldr	r2, [r2, #-12]
	mov	r1, r3
	ldr	r0, [r0, #-16]
	bl	write
	str	r0, [r4, #-8]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-8]
	cmp	r3, #0
	bge	.L14
	ldr	r0, .L20+40
	bl	perror
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r0, [r3, #-16]
	bl	close
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	b	.L18
.L14:
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r4, r3
	sub	r3, fp, #6144
	sub	r3, r3, #12
	sub	r3, r3, #4
	sub	r2, fp, #8192
	sub	r2, r2, #12
	mov	r0, r2
	mov	r2, #2048
	mov	r1, r3
	ldr	r0, [r0, #-16]
	bl	read
	str	r0, [r4, #-8]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-8]
	cmp	r3, #0
	bge	.L15
	ldr	r0, .L20+44
	bl	perror
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r0, [r3, #-16]
	bl	close
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	b	.L18
.L15:
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r4, r3
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #6144
	sub	r3, r3, #12
	sub	r3, r3, #4
	sub	r1, fp, #8192
	sub	r1, r1, #12
	mov	r0, r1
	ldr	r2, [r2, #-12]
	mov	r1, r3
	ldr	r0, [r0, #-16]
	bl	write
	str	r0, [r4, #-8]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-8]
	cmp	r3, #0
	bge	.L16
	ldr	r0, .L20+40
	bl	perror
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r0, [r3, #-16]
	bl	close
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	b	.L18
.L16:
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r4, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	sub	r3, r3, #4
	sub	r2, fp, #8192
	sub	r2, r2, #12
	mov	r0, r2
	mov	r2, #2048
	mov	r1, r3
	ldr	r0, [r0, #-16]
	bl	read
	str	r0, [r4, #-8]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-8]
	cmp	r3, #0
	bge	.L17
	ldr	r0, .L20+48
	bl	perror
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r0, [r3, #-16]
	bl	close
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	b	.L18
.L17:
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r1, [r3, #-12]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	sub	r3, r3, #4
	ldr	r2, .L20+52
	mov	r0, r3
	bl	print_buf
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r1, [r3, #-12]
	sub	r3, fp, #6144
	sub	r3, r3, #12
	sub	r3, r3, #4
	ldr	r2, .L20+56
	mov	r0, r3
	bl	print_buf
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r1, [r3, #-12]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	sub	r3, r3, #4
	ldr	r2, .L20+60
	mov	r0, r3
	bl	print_buf
	sub	r3, fp, #8192
	sub	r3, r3, #12
	sub	r3, r3, #4
	mov	r1, r3
	ldr	r0, .L20+64
	bl	printf
	sub	r3, fp, #6144
	sub	r3, r3, #12
	sub	r3, r3, #4
	mov	r1, r3
	ldr	r0, .L20+68
	bl	printf
	sub	r3, fp, #4096
	sub	r3, r3, #12
	sub	r3, r3, #4
	mov	r1, r3
	ldr	r0, .L20+72
	bl	printf
	mov	r0, #10
	bl	putchar
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r1, #6
	ldr	r0, [r3, #-16]
	bl	ioctl
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r0, [r3, #-16]
	bl	close
	mov	r3, #0
.L18:
	ldr	r2, .L20
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L19
	bl	__stack_chk_fail
.L19:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L21:
	.align	2
.L20:
	.word	.LC21
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	1074029313
	.word	-2147196158
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.word	.LC9
	.word	.LC10
	.word	.LC11
	.word	.LC12
	.word	.LC13
	.word	.LC14
	.word	.LC15
	.word	.LC16
	.word	.LC17
	.word	.LC18
	.word	.LC19
	.word	.LC20
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
