	.file	"538349.c"
	.intel_syntax noprefix
	.text
	.data
	.align 4
	.type	__iopl_fd, @object
	.size	__iopl_fd, 4
__iopl_fd:
	.long	-1
	.section	.rodata
.LC0:
	.string	"/dev/io"
	.text
	.globl	iopl
	.type	iopl, @function
iopl:
.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	DWORD PTR -4[rbp], edi
	cmp	DWORD PTR -4[rbp], 0
	je	.L2
	cmp	DWORD PTR -4[rbp], 3
	jne	.L3
	mov	eax, DWORD PTR __iopl_fd[rip]
	cmp	eax, -1
	je	.L4
	mov	eax, 0
	jmp	.L5
.L4:
	mov	esi, 2
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	__open@PLT
	mov	DWORD PTR __iopl_fd[rip], eax
	mov	eax, DWORD PTR __iopl_fd[rip]
	cmp	eax, -1
	jne	.L6
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	cmp	eax, 13
	jne	.L7
	mov	edi, 1
	mov	eax, 0
	call	__set_errno@PLT
.L7:
	mov	eax, -1
	jmp	.L5
.L6:
	mov	eax, 0
	jmp	.L5
.L2:
	mov	eax, DWORD PTR __iopl_fd[rip]
	cmp	eax, -1
	je	.L8
	mov	eax, DWORD PTR __iopl_fd[rip]
	mov	edi, eax
	mov	eax, 0
	call	__close@PLT
	cmp	eax, -1
	jne	.L8
	mov	eax, 1
	jmp	.L5
.L8:
	mov	eax, 0
	jmp	.L5
.L3:
	mov	edi, 22
	mov	eax, 0
	call	__set_errno@PLT
	mov	eax, -1
.L5:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	iopl, .-iopl
	.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	"538349.c"
	.text
	.data
	.align	2
	.type	__iopl_fd, %object
	.size	__iopl_fd, 4
__iopl_fd:
	.word	-1
	.section	.rodata
	.align	2
.LC0:
	.ascii	"/dev/io\000"
	.text
	.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, #0
	beq	.L2
	ldr	r3, [fp, #-8]
	cmp	r3, #3
	bne	.L3
	ldr	r3, .L9
	ldr	r3, [r3]
	cmn	r3, #1
	beq	.L4
	mov	r3, #0
	b	.L5
.L4:
	mov	r1, #2
	ldr	r0, .L9+4
	bl	__open
	mov	r3, r0
	ldr	r2, .L9
	str	r3, [r2]
	ldr	r3, .L9
	ldr	r3, [r3]
	cmn	r3, #1
	bne	.L6
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	cmp	r3, #13
	bne	.L7
	mov	r0, #1
	bl	__set_errno
.L7:
	mvn	r3, #0
	b	.L5
.L6:
	mov	r3, #0
	b	.L5
.L2:
	ldr	r3, .L9
	ldr	r3, [r3]
	cmn	r3, #1
	beq	.L8
	ldr	r3, .L9
	ldr	r3, [r3]
	mov	r0, r3
	bl	__close
	mov	r3, r0
	cmn	r3, #1
	bne	.L8
	mov	r3, #1
	b	.L5
.L8:
	mov	r3, #0
	b	.L5
.L3:
	mov	r0, #22
	bl	__set_errno
	mvn	r3, #0
.L5:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L10:
	.align	2
.L9:
	.word	__iopl_fd
	.word	.LC0
	.size	iopl, .-iopl
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
