	.file	"740506.c"
	.intel_syntax noprefix
	.text
	.local	io
	.comm	io,24,16
	.type	init_iosys, @function
init_iosys:
.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	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	QWORD PTR -16[rbp], 8
	lea	rax, -16[rbp]
	mov	r9d, 0
	mov	r8d, 0
	mov	rcx, rax
	lea	rdx, io[rip+8]
	mov	esi, 3
	lea	rdi, iobase_name.1[rip]
	mov	eax, 0
	call	__sysctl@PLT
	test	eax, eax
	jne	.L2
	lea	rax, -16[rbp]
	mov	r9d, 0
	mov	r8d, 0
	mov	rcx, rax
	lea	rdx, io[rip+16]
	mov	esi, 3
	lea	rdi, ioshift_name.0[rip]
	mov	eax, 0
	call	__sysctl@PLT
	test	eax, eax
	jne	.L2
	mov	DWORD PTR io[rip+20], 1
	mov	eax, 0
	jmp	.L4
.L2:
	mov	edi, 19
	mov	eax, 0
	call	__set_errno@PLT
	mov	eax, -1
.L4:
	mov	rdx, QWORD PTR -8[rbp]
	sub	rdx, QWORD PTR fs:40
	je	.L5
	call	__stack_chk_fail@PLT
.L5:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	init_iosys, .-init_iosys
	.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, 48
	mov	QWORD PTR -24[rbp], rdi
	mov	QWORD PTR -32[rbp], rsi
	mov	DWORD PTR -36[rbp], edx
	mov	eax, DWORD PTR io[rip+20]
	test	eax, eax
	jne	.L7
	call	init_iosys
	test	eax, eax
	jns	.L7
	mov	eax, -1
	jmp	.L8
.L7:
	cmp	QWORD PTR -24[rbp], 65535
	ja	.L9
	mov	rdx, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR -32[rbp]
	add	rax, rdx
	cmp	rax, 65536
	jbe	.L10
.L9:
	mov	edi, 22
	mov	eax, 0
	call	__set_errno@PLT
	mov	eax, -1
	jmp	.L8
.L10:
	cmp	DWORD PTR -36[rbp], 0
	je	.L11
	mov	rax, QWORD PTR io[rip]
	test	rax, rax
	jne	.L11
	mov	esi, 2
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	__open@PLT
	mov	DWORD PTR -4[rbp], eax
	cmp	DWORD PTR -4[rbp], 0
	jns	.L12
	mov	eax, -1
	jmp	.L8
.L12:
	mov	rsi, QWORD PTR io[rip+8]
	mov	eax, DWORD PTR io[rip+16]
	mov	edx, 65536
	mov	ecx, eax
	sal	edx, cl
	mov	eax, edx
	mov	edx, DWORD PTR -4[rbp]
	mov	r9, rsi
	mov	r8d, edx
	mov	ecx, 1
	mov	edx, 3
	mov	esi, eax
	mov	edi, 0
	mov	eax, 0
	call	__mmap@PLT
	cdqe
	mov	QWORD PTR io[rip], rax
	mov	eax, DWORD PTR -4[rbp]
	mov	edi, eax
	mov	eax, 0
	call	__close@PLT
	mov	rax, QWORD PTR io[rip]
	cmp	rax, -1
	jne	.L11
	mov	eax, -1
	jmp	.L8
.L11:
	mov	eax, 0
.L8:
	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, 16
	mov	DWORD PTR -4[rbp], edi
	cmp	DWORD PTR -4[rbp], 3
	jbe	.L14
	mov	edi, 22
	mov	eax, 0
	call	__set_errno@PLT
	mov	eax, -1
	jmp	.L15
.L14:
	cmp	DWORD PTR -4[rbp], 0
	je	.L16
	mov	edx, 1
	mov	esi, 65536
	mov	edi, 0
	call	_ioperm
	jmp	.L15
.L16:
	mov	eax, 0
.L15:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	_iopl, .-_iopl
	.globl	_outb
	.type	_outb, @function
_outb:
.LFB9:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	eax, edi
	mov	QWORD PTR -16[rbp], rsi
	mov	BYTE PTR -4[rbp], al
	mov	rsi, QWORD PTR io[rip]
	mov	eax, DWORD PTR io[rip+16]
	mov	rdx, QWORD PTR -16[rbp]
	mov	ecx, eax
	sal	rdx, cl
	mov	rax, rdx
	add	rax, rsi
	mov	rdx, rax
	movzx	eax, BYTE PTR -4[rbp]
	mov	BYTE PTR [rdx], al
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	_outb, .-_outb
	.globl	_outw
	.type	_outw, @function
_outw:
.LFB10:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	eax, edi
	mov	QWORD PTR -16[rbp], rsi
	mov	WORD PTR -4[rbp], ax
	mov	rsi, QWORD PTR io[rip]
	mov	eax, DWORD PTR io[rip+16]
	mov	rdx, QWORD PTR -16[rbp]
	mov	ecx, eax
	sal	rdx, cl
	mov	rax, rdx
	add	rax, rsi
	mov	rdx, rax
	movzx	eax, WORD PTR -4[rbp]
	mov	WORD PTR [rdx], ax
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	_outw, .-_outw
	.globl	_outl
	.type	_outl, @function
_outl:
.LFB11:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	DWORD PTR -4[rbp], edi
	mov	QWORD PTR -16[rbp], rsi
	mov	rsi, QWORD PTR io[rip]
	mov	eax, DWORD PTR io[rip+16]
	mov	rdx, QWORD PTR -16[rbp]
	mov	ecx, eax
	sal	rdx, cl
	mov	rax, rdx
	add	rax, rsi
	mov	rdx, rax
	mov	eax, DWORD PTR -4[rbp]
	mov	QWORD PTR [rdx], rax
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE11:
	.size	_outl, .-_outl
	.globl	_inb
	.type	_inb, @function
_inb:
.LFB12:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	QWORD PTR -8[rbp], rdi
	mov	rsi, QWORD PTR io[rip]
	mov	eax, DWORD PTR io[rip+16]
	mov	rdx, QWORD PTR -8[rbp]
	mov	ecx, eax
	sal	rdx, cl
	mov	rax, rdx
	add	rax, rsi
	movzx	eax, BYTE PTR [rax]
	movzx	eax, al
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE12:
	.size	_inb, .-_inb
	.globl	_inw
	.type	_inw, @function
_inw:
.LFB13:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	QWORD PTR -8[rbp], rdi
	mov	rsi, QWORD PTR io[rip]
	mov	eax, DWORD PTR io[rip+16]
	mov	rdx, QWORD PTR -8[rbp]
	mov	ecx, eax
	sal	rdx, cl
	mov	rax, rdx
	add	rax, rsi
	movzx	eax, WORD PTR [rax]
	movzx	eax, ax
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE13:
	.size	_inw, .-_inw
	.globl	_inl
	.type	_inl, @function
_inl:
.LFB14:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	QWORD PTR -8[rbp], rdi
	mov	rsi, QWORD PTR io[rip]
	mov	eax, DWORD PTR io[rip+16]
	mov	rdx, QWORD PTR -8[rbp]
	mov	ecx, eax
	sal	rdx, cl
	mov	rax, rdx
	add	rax, rsi
	mov	rax, QWORD PTR [rax]
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE14:
	.size	_inl, .-_inl
	.data
	.align 8
	.type	iobase_name.1, @object
	.size	iobase_name.1, 12
iobase_name.1:
	.long	8
	.long	1
	.long	2
	.align 8
	.type	ioshift_name.0, @object
	.size	ioshift_name.0, 12
ioshift_name.0:
	.long	8
	.long	1
	.long	3
	.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	"740506.c"
	.text
	.local	io
	.comm	io,16,4
	.section	.rodata
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	init_iosys, %function
init_iosys:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	ldr	r3, .L6
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #4
	str	r3, [fp, #-12]
	sub	r3, fp, #12
	mov	r2, #0
	str	r2, [sp, #4]
	mov	r2, #0
	str	r2, [sp]
	ldr	r2, .L6+4
	mov	r1, #3
	ldr	r0, .L6+8
	bl	__sysctl
	mov	r3, r0
	cmp	r3, #0
	bne	.L2
	sub	r3, fp, #12
	mov	r2, #0
	str	r2, [sp, #4]
	mov	r2, #0
	str	r2, [sp]
	ldr	r2, .L6+12
	mov	r1, #3
	ldr	r0, .L6+16
	bl	__sysctl
	mov	r3, r0
	cmp	r3, #0
	bne	.L2
	ldr	r3, .L6+20
	mov	r2, #1
	str	r2, [r3, #12]
	mov	r3, #0
	b	.L4
.L2:
	mov	r0, #19
	bl	__set_errno
	mvn	r3, #0
.L4:
	ldr	r2, .L6
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L5
	bl	__stack_chk_fail
.L5:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L7:
	.align	2
.L6:
	.word	.LC0
	.word	io+4
	.word	iobase_name.6623
	.word	io+8
	.word	ioshift_name.6624
	.word	io
	.size	init_iosys, .-init_iosys
	.section	.rodata
	.align	2
.LC1:
	.ascii	"/dev/mem\000"
	.text
	.align	2
	.global	_ioperm
	.syntax unified
	.arm
	.fpu softvfp
	.type	_ioperm, %function
_ioperm:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #32
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	str	r2, [fp, #-24]
	ldr	r3, .L15
	ldr	r3, [r3, #12]
	cmp	r3, #0
	bne	.L9
	bl	init_iosys
	mov	r3, r0
	cmp	r3, #0
	bge	.L9
	mvn	r3, #0
	b	.L10
.L9:
	ldr	r3, [fp, #-16]
	cmp	r3, #65536
	bcs	.L11
	ldr	r2, [fp, #-16]
	ldr	r3, [fp, #-20]
	add	r3, r2, r3
	cmp	r3, #65536
	bls	.L12
.L11:
	mov	r0, #22
	bl	__set_errno
	mvn	r3, #0
	b	.L10
.L12:
	ldr	r3, [fp, #-24]
	cmp	r3, #0
	beq	.L13
	ldr	r3, .L15
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L13
	mov	r1, #2
	ldr	r0, .L15+4
	bl	__open
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bge	.L14
	mvn	r3, #0
	b	.L10
.L14:
	ldr	r3, .L15
	ldr	r3, [r3, #8]
	mov	r2, #65536
	lsl	r1, r2, r3
	ldr	r3, .L15
	ldr	r3, [r3, #4]
	str	r3, [sp, #4]
	ldr	r3, [fp, #-8]
	str	r3, [sp]
	mov	r3, #1
	mov	r2, #3
	mov	r0, #0
	bl	__mmap
	mov	r3, r0
	mov	r2, r3
	ldr	r3, .L15
	str	r2, [r3]
	ldr	r0, [fp, #-8]
	bl	__close
	ldr	r3, .L15
	ldr	r3, [r3]
	cmn	r3, #1
	bne	.L13
	mvn	r3, #0
	b	.L10
.L13:
	mov	r3, #0
.L10:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L16:
	.align	2
.L15:
	.word	io
	.word	.LC1
	.size	_ioperm, .-_ioperm
	.align	2
	.global	_iopl
	.syntax unified
	.arm
	.fpu softvfp
	.type	_iopl, %function
_iopl:
	@ 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	r3, [fp, #-8]
	cmp	r3, #3
	bls	.L18
	mov	r0, #22
	bl	__set_errno
	mvn	r3, #0
	b	.L19
.L18:
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	beq	.L20
	mov	r2, #1
	mov	r1, #65536
	mov	r0, #0
	bl	_ioperm
	mov	r3, r0
	b	.L19
.L20:
	mov	r3, #0
.L19:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	_iopl, .-_iopl
	.align	2
	.global	_outb
	.syntax unified
	.arm
	.fpu softvfp
	.type	_outb, %function
_outb:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #12
	mov	r3, r0
	str	r1, [fp, #-12]
	strb	r3, [fp, #-5]
	ldr	r3, .L22
	ldr	r2, [r3]
	ldr	r3, .L22
	ldr	r3, [r3, #8]
	ldr	r1, [fp, #-12]
	lsl	r3, r1, r3
	add	r3, r2, r3
	mov	r2, r3
	ldrb	r3, [fp, #-5]
	strb	r3, [r2]
	nop
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L23:
	.align	2
.L22:
	.word	io
	.size	_outb, .-_outb
	.align	2
	.global	_outw
	.syntax unified
	.arm
	.fpu softvfp
	.type	_outw, %function
_outw:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #12
	mov	r3, r0
	str	r1, [fp, #-12]
	strh	r3, [fp, #-6]	@ movhi
	ldr	r3, .L25
	ldr	r2, [r3]
	ldr	r3, .L25
	ldr	r3, [r3, #8]
	ldr	r1, [fp, #-12]
	lsl	r3, r1, r3
	add	r3, r2, r3
	mov	r2, r3
	ldrh	r3, [fp, #-6]	@ movhi
	strh	r3, [r2]	@ movhi
	nop
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L26:
	.align	2
.L25:
	.word	io
	.size	_outw, .-_outw
	.align	2
	.global	_outl
	.syntax unified
	.arm
	.fpu softvfp
	.type	_outl, %function
_outl:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #12
	str	r0, [fp, #-8]
	str	r1, [fp, #-12]
	ldr	r3, .L28
	ldr	r2, [r3]
	ldr	r3, .L28
	ldr	r3, [r3, #8]
	ldr	r1, [fp, #-12]
	lsl	r3, r1, r3
	add	r3, r2, r3
	mov	r2, r3
	ldr	r3, [fp, #-8]
	str	r3, [r2]
	nop
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L29:
	.align	2
.L28:
	.word	io
	.size	_outl, .-_outl
	.align	2
	.global	_inb
	.syntax unified
	.arm
	.fpu softvfp
	.type	_inb, %function
_inb:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #12
	str	r0, [fp, #-8]
	ldr	r3, .L32
	ldr	r2, [r3]
	ldr	r3, .L32
	ldr	r3, [r3, #8]
	ldr	r1, [fp, #-8]
	lsl	r3, r1, r3
	add	r3, r2, r3
	ldrb	r3, [r3]
	and	r3, r3, #255
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L33:
	.align	2
.L32:
	.word	io
	.size	_inb, .-_inb
	.align	2
	.global	_inw
	.syntax unified
	.arm
	.fpu softvfp
	.type	_inw, %function
_inw:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #12
	str	r0, [fp, #-8]
	ldr	r3, .L36
	ldr	r2, [r3]
	ldr	r3, .L36
	ldr	r3, [r3, #8]
	ldr	r1, [fp, #-8]
	lsl	r3, r1, r3
	add	r3, r2, r3
	ldrh	r3, [r3]	@ movhi
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L37:
	.align	2
.L36:
	.word	io
	.size	_inw, .-_inw
	.align	2
	.global	_inl
	.syntax unified
	.arm
	.fpu softvfp
	.type	_inl, %function
_inl:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #12
	str	r0, [fp, #-8]
	ldr	r3, .L40
	ldr	r2, [r3]
	ldr	r3, .L40
	ldr	r3, [r3, #8]
	ldr	r1, [fp, #-8]
	lsl	r3, r1, r3
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L41:
	.align	2
.L40:
	.word	io
	.size	_inl, .-_inl
	.data
	.align	2
	.type	iobase_name.6623, %object
	.size	iobase_name.6623, 12
iobase_name.6623:
	.word	8
	.word	1
	.word	2
	.align	2
	.type	ioshift_name.6624, %object
	.size	ioshift_name.6624, 12
ioshift_name.6624:
	.word	8
	.word	1
	.word	3
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
