	.file	"extr_vioapic.c_vioapic_set_irqstate.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"vioapic_set_irqstate: invalid irqstate %d"
	.text
	.p2align 4
	.type	vioapic_set_irqstate, @function
vioapic_set_irqstate:
.LFB0:
	.cfi_startproc
	endbr64
	test	esi, esi
	js	.L12
	cmp	DWORD PTR REDIR_ENTRIES[rip], esi
	mov	eax, DWORD PTR EINVAL[rip]
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	ebp, esi
	jg	.L17
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L17:
	.cfi_restore_state
	mov	r12d, edx
	call	vm_ioapic@PLT
	mov	rdi, rax
	mov	r13, rax
	call	VIOAPIC_LOCK@PLT
	cmp	r12d, 129
	je	.L15
	cmp	r12d, 130
	je	.L6
	cmp	r12d, 128
	je	.L18
	mov	esi, r12d
	lea	rdi, .LC0[rip]
	call	panic@PLT
.L9:
	mov	rdi, r13
	call	VIOAPIC_UNLOCK@PLT
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	xor	eax, eax
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L18:
	.cfi_restore_state
	mov	edx, 1
	mov	esi, ebp
	mov	rdi, r13
	call	vioapic_set_pinstate@PLT
.L15:
	xor	edx, edx
	mov	esi, ebp
	mov	rdi, r13
	call	vioapic_set_pinstate@PLT
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L12:
	.cfi_def_cfa_offset 8
	.cfi_restore 6
	.cfi_restore 12
	.cfi_restore 13
	mov	eax, DWORD PTR EINVAL[rip]
	ret
	.p2align 4,,10
	.p2align 3
.L6:
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	.cfi_offset 12, -24
	.cfi_offset 13, -16
	mov	edx, 1
	mov	esi, ebp
	mov	rdi, r13
	call	vioapic_set_pinstate@PLT
	jmp	.L9
	.cfi_endproc
.LFE0:
	.size	vioapic_set_irqstate, .-vioapic_set_irqstate
	.comm	REDIR_ENTRIES,4,4
	.comm	EINVAL,4,4
	.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_vioapic.c_vioapic_set_irqstate.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"vioapic_set_irqstate: invalid irqstate %d\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	vioapic_set_irqstate, %function
vioapic_set_irqstate:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	subs	r4, r1, #0
	blt	.L2
	ldr	r3, .L15
	ldr	r3, [r3]
	cmp	r3, r4
	bgt	.L3
.L2:
	ldr	r3, .L15+4
	ldr	r0, [r3]
	pop	{r4, r5, r6, pc}
.L3:
	mov	r5, r2
	bl	vm_ioapic
	mov	r6, r0
	bl	VIOAPIC_LOCK
	cmp	r5, #129
	beq	.L12
	cmp	r5, #130
	beq	.L6
	cmp	r5, #128
	beq	.L14
	mov	r1, r5
	ldr	r0, .L15+8
	bl	panic
.L9:
	mov	r0, r6
	bl	VIOAPIC_UNLOCK
	mov	r0, #0
	pop	{r4, r5, r6, pc}
.L14:
	mov	r2, #1
	mov	r1, r4
	mov	r0, r6
	bl	vioapic_set_pinstate
.L12:
	mov	r1, r4
	mov	r2, #0
	mov	r0, r6
	bl	vioapic_set_pinstate
	b	.L9
.L6:
	mov	r1, r4
	mov	r2, #1
	mov	r0, r6
	bl	vioapic_set_pinstate
	b	.L9
.L16:
	.align	2
.L15:
	.word	REDIR_ENTRIES
	.word	EINVAL
	.word	.LC0
	.size	vioapic_set_irqstate, .-vioapic_set_irqstate
	.comm	REDIR_ENTRIES,4,4
	.comm	EINVAL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
