	.file	"extr_io.c_IOReadW.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	IOReadW
	.type	IOReadW, @function
IOReadW:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	lea	rbx, [rdi+rdi*2]
	sal	rbx, 3
	sub	rsp, 16
	.cfi_def_cfa_offset 48
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	mov	rax, QWORD PTR IoPortProc[rip]
	add	rax, rbx
	mov	rdx, QWORD PTR 8[rax]
	cmp	rdx, QWORD PTR INVALID_HANDLE_VALUE[rip]
	je	.L12
	test	rdx, rdx
	je	.L3
	cmp	QWORD PTR [rax], 0
	je	.L3
	xor	edi, edi
	cmp	QWORD PTR MAXWORD[rip], rbp
	setnb	dil
	call	ASSERT@PLT
	mov	rax, QWORD PTR IoPortProc[rip]
	mov	rsi, rsp
	mov	rdi, rbp
	call	[QWORD PTR [rax+rbx]]
	mov	rax, QWORD PTR [rsp]
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L12:
	mov	rax, QWORD PTR 16[rax]
	test	rax, rax
	jne	.L13
.L3:
	mov	rdi, rbp
	call	IOReadB@PLT
	lea	rdi, 4[rbp]
	mov	r12d, eax
	call	IOReadB@PLT
	mov	edi, r12d
	mov	esi, eax
	call	MAKEWORD@PLT
.L1:
	mov	rcx, QWORD PTR 8[rsp]
	xor	rcx, QWORD PTR fs:40
	jne	.L14
	add	rsp, 16
	.cfi_remember_state
	.cfi_def_cfa_offset 32
	pop	rbx
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L13:
	.cfi_restore_state
	call	rax
	jmp	.L1
.L14:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	IOReadW, .-IOReadW
	.comm	MAXWORD,8,8
	.comm	IoPortProc,8,8
	.comm	INVALID_HANDLE_VALUE,8,8
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.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, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_io.c_IOReadW.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	IOReadW
	.syntax unified
	.arm
	.fpu softvfp
	.type	IOReadW, %function
IOReadW:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, lr}
	ldr	r6, .L18
	ldr	lr, .L18+4
	ldr	r1, [r6]
	add	r3, r0, r0, lsl #1
	add	ip, r1, r3, lsl #2
	ldr	r2, [ip, #4]
	ldr	lr, [lr]
	ldr	r5, .L18+8
	sub	sp, sp, #12
	cmp	r2, lr
	mov	r4, r0
	ldr	r5, [r5]
	str	r5, [sp, #4]
	mov	r5,#0
	beq	.L15
	cmp	r2, #0
	beq	.L3
	lsl	r5, r3, #2
	ldr	r3, [r1, r5]
	cmp	r3, #0
	beq	.L3
	ldr	r3, .L18+12
	ldr	r0, [r3]
	cmp	r0, r4
	movcc	r0, #0
	movcs	r0, #1
	bl	ASSERT
	ldr	r3, [r6]
	mov	r0, r4
	mov	r1, sp
	ldr	r3, [r3, r5]
	blx	r3
	ldr	r0, [sp]
	b	.L1
.L15:
	ldr	r3, [ip, #8]
	cmp	r3, #0
	bne	.L16
.L3:
	mov	r0, r4
	bl	IOReadB
	mov	r3, r0
	add	r0, r4, #4
	mov	r4, r3
	bl	IOReadB
	mov	r1, r0
	mov	r0, r4
	bl	MAKEWORD
.L1:
	ldr	r3, .L18+8
	ldr	r2, [r3]
	ldr	r3, [sp, #4]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L17
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, pc}
.L16:
	blx	r3
	b	.L1
.L17:
	bl	__stack_chk_fail
.L19:
	.align	2
.L18:
	.word	IoPortProc
	.word	INVALID_HANDLE_VALUE
	.word	.LC0
	.word	MAXWORD
	.size	IOReadW, .-IOReadW
	.comm	MAXWORD,4,4
	.comm	IoPortProc,4,4
	.comm	INVALID_HANDLE_VALUE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
