	.file	"361842.c"
	.intel_syntax noprefix
	.text
	.local	io
	.comm	io,16,16
	.section	.rodata
.LC0:
	.string	"/dev/mem"
	.text
	.globl	_ioperm
	.type	_ioperm, @function
_ioperm:
.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, 64
	mov	QWORD PTR -40[rbp], rdi
	mov	QWORD PTR -48[rbp], rsi
	mov	DWORD PTR -52[rbp], edx
	cmp	QWORD PTR -40[rbp], 65535
	ja	.L2
	mov	rdx, QWORD PTR -40[rbp]
	mov	rax, QWORD PTR -48[rbp]
	add	rax, rdx
	cmp	rax, 65536
	jbe	.L3
.L2:
	mov	edi, 22
	mov	eax, 0
	call	__set_errno@PLT
	mov	eax, -1
	jmp	.L4
.L3:
	cmp	DWORD PTR -52[rbp], 0
	je	.L5
	mov	rax, QWORD PTR io[rip]
	test	rax, rax
	jne	.L6
	mov	eax, 0
	call	__getpagesize@PLT
	sub	eax, 1
	not	eax
	cdqe
	mov	QWORD PTR io[rip+8], rax
#APP
# 81 "the_stack_data/361842.c" 1
	mov rax=ar.k0
# 0 "" 2
#NO_APP
	mov	QWORD PTR -24[rbp], rax
	mov	esi, 1052674
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	__open@PLT
	mov	DWORD PTR -28[rbp], eax
	cmp	DWORD PTR -28[rbp], 0
	jns	.L7
	mov	eax, -1
	jmp	.L4
.L7:
	mov	edi, 65536
	call	io_offset@PLT
	mov	QWORD PTR -16[rbp], rax
	mov	rcx, QWORD PTR -24[rbp]
	mov	edx, DWORD PTR -28[rbp]
	mov	rax, QWORD PTR -16[rbp]
	mov	r9, rcx
	mov	r8d, edx
	mov	ecx, 1
	mov	edx, 3
	mov	rsi, rax
	mov	edi, 0
	mov	eax, 0
	call	__mmap@PLT
	cdqe
	mov	QWORD PTR -8[rbp], rax
	mov	eax, DWORD PTR -28[rbp]
	mov	edi, eax
	mov	eax, 0
	call	__close@PLT
	cmp	QWORD PTR -8[rbp], -1
	jne	.L8
	mov	eax, -1
	jmp	.L4
.L8:
	mov	rax, QWORD PTR -8[rbp]
	mov	QWORD PTR io[rip], rax
	jmp	.L6
.L5:
	mov	rax, QWORD PTR io[rip]
	test	rax, rax
	jne	.L6
	mov	eax, 0
	jmp	.L4
.L6:
	mov	eax, 0
.L4:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	_ioperm, .-_ioperm
	.globl	_iopl
	.type	_iopl, @function
_iopl:
.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
	cmp	DWORD PTR -20[rbp], 3
	jbe	.L10
	mov	edi, 22
	mov	eax, 0
	call	__set_errno@PLT
	mov	eax, -1
	jmp	.L11
.L10:
	cmp	DWORD PTR -20[rbp], 0
	je	.L12
	mov	edx, 1
	mov	esi, 65536
	mov	edi, 0
	call	_ioperm
	mov	DWORD PTR -4[rbp], eax
	cmp	DWORD PTR -4[rbp], 0
	jns	.L13
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	cmp	eax, 13
	jne	.L13
	mov	edi, 1
	mov	eax, 0
	call	__set_errno@PLT
.L13:
	mov	eax, DWORD PTR -4[rbp]
	jmp	.L11
.L12:
	mov	eax, 0
.L11:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	_iopl, .-_iopl
	.globl	_inb
	.type	_inb, @function
_inb:
.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, 32
	mov	QWORD PTR -24[rbp], rdi
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	io_offset@PLT
	mov	rdx, QWORD PTR io[rip]
	add	rax, rdx
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -8[rbp]
	movzx	eax, BYTE PTR [rax]
	mov	BYTE PTR -9[rbp], al
#APP
# 141 "the_stack_data/361842.c" 1
	mf.a
# 0 "" 2
#NO_APP
	movzx	eax, BYTE PTR -9[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	_inb, .-_inb
	.globl	_inw
	.type	_inw, @function
_inw:
.LFB10:
	.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	QWORD PTR -24[rbp], rdi
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	io_offset@PLT
	mov	rdx, QWORD PTR io[rip]
	add	rax, rdx
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -8[rbp]
	movzx	eax, WORD PTR [rax]
	mov	WORD PTR -10[rbp], ax
#APP
# 152 "the_stack_data/361842.c" 1
	mf.a
# 0 "" 2
#NO_APP
	movzx	eax, WORD PTR -10[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	_inw, .-_inw
	.globl	_inl
	.type	_inl, @function
_inl:
.LFB11:
	.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	QWORD PTR -24[rbp], rdi
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	io_offset@PLT
	mov	rdx, QWORD PTR io[rip]
	add	rax, rdx
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR -12[rbp], eax
#APP
# 163 "the_stack_data/361842.c" 1
	mf.a
# 0 "" 2
#NO_APP
	mov	eax, DWORD PTR -12[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE11:
	.size	_inl, .-_inl
	.globl	_outb
	.type	_outb, @function
_outb:
.LFB12:
	.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	eax, edi
	mov	QWORD PTR -32[rbp], rsi
	mov	BYTE PTR -20[rbp], al
	mov	rax, QWORD PTR -32[rbp]
	mov	rdi, rax
	call	io_offset@PLT
	mov	rdx, QWORD PTR io[rip]
	add	rax, rdx
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -8[rbp]
	movzx	edx, BYTE PTR -20[rbp]
	mov	BYTE PTR [rax], dl
#APP
# 173 "the_stack_data/361842.c" 1
	mf.a
# 0 "" 2
#NO_APP
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE12:
	.size	_outb, .-_outb
	.globl	_outw
	.type	_outw, @function
_outw:
.LFB13:
	.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	eax, edi
	mov	QWORD PTR -32[rbp], rsi
	mov	WORD PTR -20[rbp], ax
	mov	rax, QWORD PTR -32[rbp]
	mov	rdi, rax
	call	io_offset@PLT
	mov	rdx, QWORD PTR io[rip]
	add	rax, rdx
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -8[rbp]
	movzx	edx, WORD PTR -20[rbp]
	mov	WORD PTR [rax], dx
#APP
# 182 "the_stack_data/361842.c" 1
	mf.a
# 0 "" 2
#NO_APP
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE13:
	.size	_outw, .-_outw
	.globl	_outl
	.type	_outl, @function
_outl:
.LFB14:
	.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
	mov	rax, QWORD PTR -32[rbp]
	mov	rdi, rax
	call	io_offset@PLT
	mov	rdx, QWORD PTR io[rip]
	add	rax, rdx
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -8[rbp]
	mov	edx, DWORD PTR -20[rbp]
	mov	DWORD PTR [rax], edx
#APP
# 191 "the_stack_data/361842.c" 1
	mf.a
# 0 "" 2
#NO_APP
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE14:
	.size	_outl, .-_outl
	.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	"361842.c"
	.text
	.local	io
	.comm	io,8,4
	.section	.rodata
	.align	2
.LC0:
	.ascii	"/dev/mem\000"
	.text
	.align	2
	.global	_ioperm
	.syntax unified
	.arm
	.fpu softvfp
	.type	_ioperm, %function
_ioperm:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #40
	str	r0, [fp, #-24]
	str	r1, [fp, #-28]
	str	r2, [fp, #-32]
	ldr	r3, [fp, #-24]
	cmp	r3, #65536
	bcs	.L2
	ldr	r2, [fp, #-24]
	ldr	r3, [fp, #-28]
	add	r3, r2, r3
	cmp	r3, #65536
	bls	.L3
.L2:
	mov	r0, #22
	bl	__set_errno
	mvn	r3, #0
	b	.L4
.L3:
	ldr	r3, [fp, #-32]
	cmp	r3, #0
	beq	.L5
	ldr	r3, .L9
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L6
	bl	__getpagesize
	mov	r3, r0
	sub	r3, r3, #1
	mvn	r3, r3
	mov	r2, r3
	ldr	r3, .L9
	str	r2, [r3, #4]
	.syntax divided
@ 81 "the_stack_data/361842.c" 1
	mov r3=ar.k0
@ 0 "" 2
	.arm
	.syntax unified
	str	r3, [fp, #-20]
	ldr	r1, .L9+4
	ldr	r0, .L9+8
	bl	__open
	str	r0, [fp, #-16]
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	bge	.L7
	mvn	r3, #0
	b	.L4
.L7:
	mov	r0, #65536
	bl	io_offset
	str	r0, [fp, #-12]
	ldr	r3, [fp, #-20]
	str	r3, [sp, #4]
	ldr	r3, [fp, #-16]
	str	r3, [sp]
	mov	r3, #1
	mov	r2, #3
	ldr	r1, [fp, #-12]
	mov	r0, #0
	bl	__mmap
	mov	r3, r0
	str	r3, [fp, #-8]
	ldr	r0, [fp, #-16]
	bl	__close
	ldr	r3, [fp, #-8]
	cmn	r3, #1
	bne	.L8
	mvn	r3, #0
	b	.L4
.L8:
	ldr	r2, .L9
	ldr	r3, [fp, #-8]
	str	r3, [r2]
	b	.L6
.L5:
	ldr	r3, .L9
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L6
	mov	r3, #0
	b	.L4
.L6:
	mov	r3, #0
.L4:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L10:
	.align	2
.L9:
	.word	io
	.word	1052674
	.word	.LC0
	.size	_ioperm, .-_ioperm
	.align	2
	.global	_iopl
	.syntax unified
	.arm
	.fpu softvfp
	.type	_iopl, %function
_iopl:
	@ 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]
	ldr	r3, [fp, #-16]
	cmp	r3, #3
	bls	.L12
	mov	r0, #22
	bl	__set_errno
	mvn	r3, #0
	b	.L13
.L12:
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	beq	.L14
	mov	r2, #1
	mov	r1, #65536
	mov	r0, #0
	bl	_ioperm
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bge	.L15
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	cmp	r3, #13
	bne	.L15
	mov	r0, #1
	bl	__set_errno
.L15:
	ldr	r3, [fp, #-8]
	b	.L13
.L14:
	mov	r3, #0
.L13:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	_iopl, .-_iopl
	.align	2
	.global	_inb
	.syntax unified
	.arm
	.fpu softvfp
	.type	_inb, %function
_inb:
	@ 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]
	ldr	r0, [fp, #-16]
	bl	io_offset
	mov	r2, r0
	ldr	r3, .L18
	ldr	r3, [r3]
	add	r3, r2, r3
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	ldrb	r3, [r3]
	strb	r3, [fp, #-9]
	.syntax divided
@ 141 "the_stack_data/361842.c" 1
	mf.a
@ 0 "" 2
	.arm
	.syntax unified
	ldrb	r3, [fp, #-9]	@ zero_extendqisi2
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L19:
	.align	2
.L18:
	.word	io
	.size	_inb, .-_inb
	.align	2
	.global	_inw
	.syntax unified
	.arm
	.fpu softvfp
	.type	_inw, %function
_inw:
	@ 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]
	ldr	r0, [fp, #-16]
	bl	io_offset
	mov	r2, r0
	ldr	r3, .L22
	ldr	r3, [r3]
	add	r3, r2, r3
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	ldrh	r3, [r3]	@ movhi
	strh	r3, [fp, #-10]	@ movhi
	.syntax divided
@ 152 "the_stack_data/361842.c" 1
	mf.a
@ 0 "" 2
	.arm
	.syntax unified
	ldrh	r3, [fp, #-10]
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L23:
	.align	2
.L22:
	.word	io
	.size	_inw, .-_inw
	.align	2
	.global	_inl
	.syntax unified
	.arm
	.fpu softvfp
	.type	_inl, %function
_inl:
	@ 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]
	ldr	r0, [fp, #-16]
	bl	io_offset
	mov	r2, r0
	ldr	r3, .L26
	ldr	r3, [r3]
	add	r3, r2, r3
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-12]
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	.syntax divided
@ 163 "the_stack_data/361842.c" 1
	mf.a
@ 0 "" 2
	.arm
	.syntax unified
	ldr	r3, [fp, #-8]
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L27:
	.align	2
.L26:
	.word	io
	.size	_inl, .-_inl
	.align	2
	.global	_outb
	.syntax unified
	.arm
	.fpu softvfp
	.type	_outb, %function
_outb:
	@ 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	r3, r0
	str	r1, [fp, #-20]
	strb	r3, [fp, #-13]
	ldr	r0, [fp, #-20]
	bl	io_offset
	mov	r2, r0
	ldr	r3, .L29
	ldr	r3, [r3]
	add	r3, r2, r3
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	ldrb	r2, [fp, #-13]
	strb	r2, [r3]
	.syntax divided
@ 173 "the_stack_data/361842.c" 1
	mf.a
@ 0 "" 2
	.arm
	.syntax unified
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L30:
	.align	2
.L29:
	.word	io
	.size	_outb, .-_outb
	.align	2
	.global	_outw
	.syntax unified
	.arm
	.fpu softvfp
	.type	_outw, %function
_outw:
	@ 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	r3, r0
	str	r1, [fp, #-20]
	strh	r3, [fp, #-14]	@ movhi
	ldr	r0, [fp, #-20]
	bl	io_offset
	mov	r2, r0
	ldr	r3, .L32
	ldr	r3, [r3]
	add	r3, r2, r3
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	ldrh	r2, [fp, #-14]	@ movhi
	strh	r2, [r3]	@ movhi
	.syntax divided
@ 182 "the_stack_data/361842.c" 1
	mf.a
@ 0 "" 2
	.arm
	.syntax unified
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L33:
	.align	2
.L32:
	.word	io
	.size	_outw, .-_outw
	.align	2
	.global	_outl
	.syntax unified
	.arm
	.fpu softvfp
	.type	_outl, %function
_outl:
	@ 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	r0, [fp, #-20]
	bl	io_offset
	mov	r2, r0
	ldr	r3, .L35
	ldr	r3, [r3]
	add	r3, r2, r3
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	ldr	r2, [fp, #-16]
	str	r2, [r3]
	.syntax divided
@ 191 "the_stack_data/361842.c" 1
	mf.a
@ 0 "" 2
	.arm
	.syntax unified
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L36:
	.align	2
.L35:
	.word	io
	.size	_outl, .-_outl
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
