	.file	"153268073.c"
	.intel_syntax noprefix
	.text
	.globl	bp
	.bss
	.align 8
	.type	bp, @object
	.size	bp, 14
bp:
	.zero	14
	.section	.rodata
.LC0:
	.string	"/dev/mem"
.LC1:
	.string	"Can't open %s\n"
	.align 8
.LC2:
	.string	"Can't lseek to offset %d in %s\n"
.LC3:
	.string	"Can't read %d bytes from %s\n"
.LC4:
	.string	"res = %d  "
.LC5:
	.string	"read"
.LC6:
	.string	"com%d = 0x%04x\n"
.LC7:
	.string	"lpt%d = 0x%04x\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, 16
	mov	esi, 0
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	open@PLT
	mov	DWORD PTR -8[rbp], eax
	cmp	DWORD PTR -8[rbp], 0
	jns	.L2
	lea	rsi, .LC0[rip]
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edi, 1
	call	exit@PLT
.L2:
	mov	eax, DWORD PTR -8[rbp]
	mov	edx, 0
	mov	esi, 1024
	mov	edi, eax
	mov	eax, 0
	call	lseek@PLT
	cmp	eax, 1024
	je	.L3
	lea	rdx, .LC0[rip]
	mov	esi, 1024
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edi, 1
	call	exit@PLT
.L3:
	mov	eax, DWORD PTR -8[rbp]
	mov	edx, 14
	lea	rsi, bp[rip]
	mov	edi, eax
	mov	eax, 0
	call	read@PLT
	mov	DWORD PTR -4[rbp], eax
	cmp	DWORD PTR -4[rbp], 14
	je	.L4
	lea	rdx, .LC0[rip]
	mov	esi, 14
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L4:
	mov	DWORD PTR -12[rbp], 0
	jmp	.L5
.L6:
	mov	eax, DWORD PTR -12[rbp]
	cdqe
	lea	rdx, [rax+rax]
	lea	rax, bp[rip]
	movzx	eax, WORD PTR [rdx+rax]
	cwde
	mov	edx, DWORD PTR -12[rbp]
	lea	ecx, 1[rdx]
	mov	edx, eax
	mov	esi, ecx
	lea	rdi, .LC6[rip]
	mov	eax, 0
	call	printf@PLT
	add	DWORD PTR -12[rbp], 1
.L5:
	cmp	DWORD PTR -12[rbp], 3
	jle	.L6
	mov	DWORD PTR -12[rbp], 0
	jmp	.L7
.L8:
	mov	eax, DWORD PTR -12[rbp]
	cdqe
	lea	rdx, [rax+rax]
	lea	rax, bp[rip+8]
	movzx	eax, WORD PTR [rdx+rax]
	cwde
	mov	edx, DWORD PTR -12[rbp]
	lea	ecx, 1[rdx]
	mov	edx, eax
	mov	esi, ecx
	lea	rdi, .LC7[rip]
	mov	eax, 0
	call	printf@PLT
	add	DWORD PTR -12[rbp], 1
.L7:
	cmp	DWORD PTR -12[rbp], 2
	jle	.L8
	mov	eax, DWORD PTR -8[rbp]
	mov	edi, eax
	mov	eax, 0
	call	close@PLT
	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	"153268073.c"
	.text
	.comm	bp,14,4
	.section	.rodata
	.align	2
.LC0:
	.ascii	"/dev/mem\000"
	.align	2
.LC1:
	.ascii	"Can't open %s\012\000"
	.align	2
.LC2:
	.ascii	"Can't lseek to offset %d in %s\012\000"
	.align	2
.LC3:
	.ascii	"Can't read %d bytes from %s\012\000"
	.align	2
.LC4:
	.ascii	"res = %d  \000"
	.align	2
.LC5:
	.ascii	"read\000"
	.align	2
.LC6:
	.ascii	"com%d = 0x%04x\012\000"
	.align	2
.LC7:
	.ascii	"lpt%d = 0x%04x\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
	mov	r1, #0
	ldr	r0, .L9
	bl	open
	str	r0, [fp, #-12]
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	bge	.L2
	ldr	r1, .L9
	ldr	r0, .L9+4
	bl	printf
	mov	r0, #1
	bl	exit
.L2:
	mov	r2, #0
	mov	r1, #1024
	ldr	r0, [fp, #-12]
	bl	lseek
	mov	r3, r0
	cmp	r3, #1024
	beq	.L3
	ldr	r2, .L9
	mov	r1, #1024
	ldr	r0, .L9+8
	bl	printf
	mov	r0, #1
	bl	exit
.L3:
	mov	r2, #14
	ldr	r1, .L9+12
	ldr	r0, [fp, #-12]
	bl	read
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #14
	beq	.L4
	ldr	r2, .L9
	mov	r1, #14
	ldr	r0, .L9+16
	bl	printf
	ldr	r0, .L9+20
	bl	printf
	ldr	r0, .L9+24
	bl	perror
	mov	r0, #1
	bl	exit
.L4:
	mov	r3, #0
	str	r3, [fp, #-16]
	b	.L5
.L6:
	ldr	r3, [fp, #-16]
	add	r1, r3, #1
	ldr	r2, .L9+12
	ldr	r3, [fp, #-16]
	lsl	r3, r3, #1
	add	r3, r2, r3
	ldrsh	r3, [r3]
	mov	r2, r3
	ldr	r0, .L9+28
	bl	printf
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
.L5:
	ldr	r3, [fp, #-16]
	cmp	r3, #3
	ble	.L6
	mov	r3, #0
	str	r3, [fp, #-16]
	b	.L7
.L8:
	ldr	r3, [fp, #-16]
	add	r1, r3, #1
	ldr	r2, .L9+12
	ldr	r3, [fp, #-16]
	add	r3, r3, #4
	lsl	r3, r3, #1
	add	r3, r2, r3
	ldrsh	r3, [r3]
	mov	r2, r3
	ldr	r0, .L9+32
	bl	printf
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
.L7:
	ldr	r3, [fp, #-16]
	cmp	r3, #2
	ble	.L8
	ldr	r0, [fp, #-12]
	bl	close
	mov	r0, #0
	bl	exit
.L10:
	.align	2
.L9:
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	bp
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
