	.file	"extr_i8259.c_i8259A_irq_pending.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	i8259A_irq_pending
	.type	i8259A_irq_pending, @function
i8259A_irq_pending:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	xor	esi, esi
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	mov	ebx, 1
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	sub	edi, DWORD PTR I8259A_IRQ_BASE[rip]
	mov	r12d, edi
	mov	ecx, edi
	lea	rdi, i8259A_lock[rip]
	sal	ebx, cl
	call	spin_lock_irqsave@PLT
	cmp	r12d, 7
	ja	.L2
	mov	edi, DWORD PTR PIC_MASTER_CMD[rip]
	call	inb@PLT
	and	eax, ebx
	mov	r12d, eax
.L3:
	xor	esi, esi
	lea	rdi, i8259A_lock[rip]
	call	spin_unlock_irqrestore@PLT
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	mov	eax, r12d
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	mov	edi, DWORD PTR PIC_SLAVE_CMD[rip]
	shr	ebx, 8
	call	inb@PLT
	and	ebx, eax
	mov	r12d, ebx
	jmp	.L3
	.cfi_endproc
.LFE0:
	.size	i8259A_irq_pending, .-i8259A_irq_pending
	.comm	i8259A_lock,4,4
	.comm	PIC_SLAVE_CMD,4,4
	.comm	PIC_MASTER_CMD,4,4
	.comm	I8259A_IRQ_BASE,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_i8259.c_i8259A_irq_pending.c"
	.text
	.align	2
	.global	i8259A_irq_pending
	.syntax unified
	.arm
	.fpu softvfp
	.type	i8259A_irq_pending, %function
i8259A_irq_pending:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r5, r0
	mov	r4, #1
	ldr	r3, .L6
	mov	r1, #0
	ldr	r3, [r3]
	ldr	r0, .L6+4
	sub	r5, r5, r3
	bl	spin_lock_irqsave
	cmp	r5, #7
	lsl	r4, r4, r5
	bhi	.L2
	ldr	r3, .L6+8
	ldr	r0, [r3]
	bl	inb
	and	r4, r4, r0
.L3:
	mov	r1, #0
	ldr	r0, .L6+4
	bl	spin_unlock_irqrestore
	mov	r0, r4
	pop	{r4, r5, r6, pc}
.L2:
	ldr	r3, .L6+12
	ldr	r0, [r3]
	bl	inb
	and	r4, r0, r4, lsr #8
	b	.L3
.L7:
	.align	2
.L6:
	.word	I8259A_IRQ_BASE
	.word	i8259A_lock
	.word	PIC_MASTER_CMD
	.word	PIC_SLAVE_CMD
	.size	i8259A_irq_pending, .-i8259A_irq_pending
	.comm	i8259A_lock,4,4
	.comm	PIC_SLAVE_CMD,4,4
	.comm	PIC_MASTER_CMD,4,4
	.comm	I8259A_IRQ_BASE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
