	.file	"extr_ioapic.c_IRQPolarity.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"Broken BIOS!!\n"
	.text
	.p2align 4
	.type	IRQPolarity, @function
IRQPolarity:
.LFB0:
	.cfi_startproc
	endbr64
	mov	rdx, rdi
	sal	rdx, 4
	add	rdx, QWORD PTR IRQMap[rip]
	mov	eax, DWORD PTR 8[rdx]
	and	eax, 3
	cmp	eax, 2
	je	.L2
	cmp	eax, 3
	je	.L9
	cmp	eax, 1
	je	.L10
	mov	rdx, QWORD PTR [rdx]
	mov	rax, QWORD PTR BUSMap[rip]
	mov	eax, DWORD PTR [rax+rdx*4]
	cmp	eax, 130
	je	.L4
	jg	.L5
	cmp	eax, 128
	je	.L6
	cmp	eax, 129
	jne	.L2
	jmp	default_MCA_polarity@PLT
	.p2align 4,,10
	.p2align 3
.L5:
	cmp	eax, 131
	jne	.L2
	jmp	default_EISA_polarity@PLT
	.p2align 4,,10
	.p2align 3
.L2:
	sub	rsp, 8
	.cfi_def_cfa_offset 16
	lea	rdi, .LC0[rip]
	call	DPRINT@PLT
	mov	eax, 1
	add	rsp, 8
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L10:
	xor	eax, eax
	ret
	.p2align 4,,10
	.p2align 3
.L9:
	mov	eax, 1
	ret
	.p2align 4,,10
	.p2align 3
.L6:
	jmp	default_PCI_polarity@PLT
	.p2align 4,,10
	.p2align 3
.L4:
	jmp	default_ISA_polarity@PLT
	.cfi_endproc
.LFE0:
	.size	IRQPolarity, .-IRQPolarity
	.comm	IRQMap,8,8
	.comm	BUSMap,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_ioapic.c_IRQPolarity.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Broken BIOS!!\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	IRQPolarity, %function
IRQPolarity:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r3, .L18
	ldr	r2, [r3]
	add	r3, r2, r0, lsl #3
	ldr	r3, [r3, #4]
	and	r3, r3, #3
	cmp	r3, #2
	beq	.L2
	cmp	r3, #3
	beq	.L9
	cmp	r3, #1
	beq	.L10
	ldr	r3, .L18+4
	ldr	r2, [r2, r0, lsl #3]
	ldr	r3, [r3]
	ldr	r3, [r3, r2, lsl #2]
	sub	r3, r3, #128
	cmp	r3, #3
	ldrls	pc, [pc, r3, asl #2]
	b	.L2
.L5:
	.word	.L8
	.word	.L7
	.word	.L6
	.word	.L4
.L10:
	mov	r0, #0
	bx	lr
.L9:
	mov	r0, #1
	bx	lr
.L2:
	push	{r4, lr}
	ldr	r0, .L18+8
	bl	DPRINT
	mov	r0, #1
	pop	{r4, pc}
.L4:
	b	default_EISA_polarity
.L8:
	b	default_PCI_polarity
.L7:
	b	default_MCA_polarity
.L6:
	b	default_ISA_polarity
.L19:
	.align	2
.L18:
	.word	IRQMap
	.word	BUSMap
	.word	.LC0
	.size	IRQPolarity, .-IRQPolarity
	.comm	IRQMap,4,4
	.comm	BUSMap,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
