	.file	"extr_io.c_IOWriteW.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	IOWriteW
	.type	IOWriteW, @function
IOWriteW:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	mov	rax, QWORD PTR IoPortProc[rip]
	mov	r12, rsi
	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
	add	rax, rbx
	mov	rdx, QWORD PTR 8[rax]
	cmp	rdx, QWORD PTR INVALID_HANDLE_VALUE[rip]
	je	.L11
	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	rax, QWORD PTR [rax+rbx]
.L9:
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	mov	rsi, r12
	mov	rdi, rbp
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	jmp	rax
	.p2align 4,,10
	.p2align 3
.L11:
	.cfi_restore_state
	mov	rax, QWORD PTR 16[rax]
	test	rax, rax
	jne	.L9
.L3:
	mov	rdi, r12
	call	LOBYTE@PLT
	mov	rdi, rbp
	mov	esi, eax
	call	IOWriteB@PLT
	mov	rdi, r12
	call	HIBYTE@PLT
	pop	rbx
	.cfi_def_cfa_offset 24
	lea	rdi, 4[rbp]
	pop	rbp
	.cfi_def_cfa_offset 16
	mov	esi, eax
	pop	r12
	.cfi_def_cfa_offset 8
	jmp	IOWriteB@PLT
	.cfi_endproc
.LFE0:
	.size	IOWriteW, .-IOWriteW
	.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_IOWriteW.c"
	.text
	.align	2
	.global	IOWriteW
	.syntax unified
	.arm
	.fpu softvfp
	.type	IOWriteW, %function
IOWriteW:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	ldr	r7, .L15
	ldr	r5, .L15+4
	ldr	ip, [r7]
	add	r3, r0, r0, lsl #1
	add	lr, ip, r3, lsl #2
	ldr	r5, [r5]
	ldr	r2, [lr, #4]
	mov	r4, r0
	cmp	r2, r5
	mov	r5, r1
	beq	.L14
	cmp	r2, #0
	beq	.L3
	lsl	r6, r3, #2
	ldr	r3, [ip, r6]
	cmp	r3, #0
	beq	.L3
	ldr	r3, .L15+8
	ldr	r0, [r3]
	cmp	r0, r4
	movcc	r0, #0
	movcs	r0, #1
	bl	ASSERT
	mov	r1, r5
	mov	r0, r4
	ldr	r3, [r7]
	ldr	r3, [r3, r6]
.L12:
	pop	{r4, r5, r6, r7, r8, lr}
	bx	r3
.L14:
	ldr	r3, [lr, #8]
	cmp	r3, #0
	bne	.L12
.L3:
	mov	r0, r5
	bl	LOBYTE
	mov	r1, r0
	mov	r0, r4
	bl	IOWriteB
	mov	r0, r5
	bl	HIBYTE
	mov	r1, r0
	add	r0, r4, #4
	pop	{r4, r5, r6, r7, r8, lr}
	b	IOWriteB
.L16:
	.align	2
.L15:
	.word	IoPortProc
	.word	INVALID_HANDLE_VALUE
	.word	MAXWORD
	.size	IOWriteW, .-IOWriteW
	.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
