	.file	"extr_eisa.c_eisa_disable_irq.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"disable irq %d\n"
.LC1:
	.string	"pic0 mask %02x\n"
.LC2:
	.string	"pic1 mask %02x\n"
	.text
	.p2align 4
	.type	eisa_disable_irq, @function
eisa_disable_irq:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbx
	.cfi_def_cfa_offset 16
	.cfi_offset 3, -16
	mov	esi, edi
	mov	ebx, edi
	lea	rdi, .LC0[rip]
	call	EISA_DBG@PLT
	xor	esi, esi
	lea	rdi, eisa_irq_lock[rip]
	call	spin_lock_irqsave@PLT
	mov	ecx, ebx
	mov	edi, 1
	and	ecx, 7
	sal	edi, cl
	and	ebx, 8
	je	.L2
	or	edi, DWORD PTR slave_mask[rip]
	mov	esi, 161
	mov	DWORD PTR slave_mask[rip], edi
	call	eisa_out8@PLT
.L3:
	xor	esi, esi
	lea	rdi, eisa_irq_lock[rip]
	call	spin_unlock_irqrestore@PLT
	mov	edi, 33
	call	eisa_in8@PLT
	lea	rdi, .LC1[rip]
	mov	esi, eax
	call	EISA_DBG@PLT
	mov	edi, 161
	call	eisa_in8@PLT
	lea	rdi, .LC2[rip]
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	mov	esi, eax
	jmp	EISA_DBG@PLT
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	or	edi, DWORD PTR master_mask[rip]
	mov	esi, 33
	mov	DWORD PTR master_mask[rip], edi
	call	eisa_out8@PLT
	jmp	.L3
	.cfi_endproc
.LFE0:
	.size	eisa_disable_irq, .-eisa_disable_irq
	.comm	slave_mask,4,4
	.comm	master_mask,4,4
	.comm	eisa_irq_lock,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_eisa.c_eisa_disable_irq.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"disable irq %d\012\000"
	.align	2
.LC1:
	.ascii	"pic0 mask %02x\012\000"
	.align	2
.LC2:
	.ascii	"pic1 mask %02x\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	eisa_disable_irq, %function
eisa_disable_irq:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, lr}
	mov	r4, r0
	ldr	r0, .L6
	mov	r1, r4
	bl	EISA_DBG
	mov	r1, #0
	ldr	r0, .L6+4
	bl	spin_lock_irqsave
	mov	r0, #1
	tst	r4, #8
	ldrne	r3, .L6+8
	ldreq	r3, .L6+12
	and	r4, r4, #7
	lsl	r4, r0, r4
	ldr	r0, [r3]
	movne	r1, #161
	orr	r0, r4, r0
	moveq	r1, #33
	str	r0, [r3]
	bl	eisa_out8
	mov	r1, #0
	ldr	r0, .L6+4
	bl	spin_unlock_irqrestore
	mov	r0, #33
	bl	eisa_in8
	mov	r1, r0
	ldr	r0, .L6+16
	bl	EISA_DBG
	mov	r0, #161
	bl	eisa_in8
	pop	{r4, lr}
	mov	r1, r0
	ldr	r0, .L6+20
	b	EISA_DBG
.L7:
	.align	2
.L6:
	.word	.LC0
	.word	eisa_irq_lock
	.word	slave_mask
	.word	master_mask
	.word	.LC1
	.word	.LC2
	.size	eisa_disable_irq, .-eisa_disable_irq
	.comm	slave_mask,4,4
	.comm	master_mask,4,4
	.comm	eisa_irq_lock,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
