	.file	"extr_irq.c_bcm1480_unmask_irq.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	bcm1480_unmask_irq
	.type	bcm1480_unmask_irq, @function
bcm1480_unmask_irq:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	mov	r12d, edi
	lea	rdi, bcm1480_imr_lock[rip]
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	xor	ebp, ebp
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	mov	ebx, esi
	xor	esi, esi
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	call	spin_lock_irqsave@PLT
	mov	eax, DWORD PTR BCM1480_NR_IRQS_HALF[rip]
	cmp	eax, ebx
	jg	.L2
	cmp	DWORD PTR BCM1480_NR_IRQS[rip], ebx
	jl	.L2
	mov	rbp, QWORD PTR BCM1480_IMR_HL_SPACING[rip]
	sub	ebx, eax
.L2:
	mov	edi, r12d
	call	A_BCM1480_IMR_MAPPER@PLT
	add	rax, QWORD PTR R_BCM1480_IMR_INTERRUPT_MASK_H[rip]
	mov	rdi, rax
	add	rdi, rbp
	call	IOADDR@PLT
	mov	edi, eax
	call	____raw_readq@PLT
	mov	edi, r12d
	btr	eax, ebx
	mov	r13d, eax
	call	A_BCM1480_IMR_MAPPER@PLT
	add	rax, QWORD PTR R_BCM1480_IMR_INTERRUPT_MASK_H[rip]
	mov	rdi, rax
	add	rdi, rbp
	call	IOADDR@PLT
	mov	edi, r13d
	mov	esi, eax
	call	____raw_writeq@PLT
	add	rsp, 8
	.cfi_def_cfa_offset 40
	xor	esi, esi
	lea	rdi, bcm1480_imr_lock[rip]
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	jmp	spin_unlock_irqrestore@PLT
	.cfi_endproc
.LFE0:
	.size	bcm1480_unmask_irq, .-bcm1480_unmask_irq
	.comm	bcm1480_imr_lock,4,4
	.comm	R_BCM1480_IMR_INTERRUPT_MASK_H,8,8
	.comm	BCM1480_NR_IRQS_HALF,4,4
	.comm	BCM1480_NR_IRQS,4,4
	.comm	BCM1480_IMR_HL_SPACING,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_irq.c_bcm1480_unmask_irq.c"
	.text
	.align	2
	.global	bcm1480_unmask_irq
	.syntax unified
	.arm
	.fpu softvfp
	.type	bcm1480_unmask_irq, %function
bcm1480_unmask_irq:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r4, r1
	mov	r5, r0
	mov	r1, #0
	ldr	r0, .L8
	bl	spin_lock_irqsave
	ldr	r3, .L8+4
	ldr	r3, [r3]
	cmp	r3, r4
	bgt	.L4
	ldr	r2, .L8+8
	ldr	r2, [r2]
	cmp	r2, r4
	bge	.L7
.L4:
	mov	r6, #0
.L2:
	mov	r0, r5
	bl	A_BCM1480_IMR_MAPPER
	ldr	r7, .L8+12
	ldr	r3, [r7]
	add	r0, r0, r3
	add	r0, r0, r6
	bl	IOADDR
	bl	____raw_readq
	mov	r3, #1
	mov	r1, r0
	mov	r0, r5
	bic	r4, r1, r3, lsl r4
	bl	A_BCM1480_IMR_MAPPER
	ldr	r3, [r7]
	add	r0, r0, r3
	add	r0, r0, r6
	bl	IOADDR
	mov	r1, r0
	mov	r0, r4
	bl	____raw_writeq
	pop	{r4, r5, r6, r7, r8, lr}
	mov	r1, #0
	ldr	r0, .L8
	b	spin_unlock_irqrestore
.L7:
	ldr	r2, .L8+16
	sub	r4, r4, r3
	ldr	r6, [r2]
	b	.L2
.L9:
	.align	2
.L8:
	.word	bcm1480_imr_lock
	.word	BCM1480_NR_IRQS_HALF
	.word	BCM1480_NR_IRQS
	.word	R_BCM1480_IMR_INTERRUPT_MASK_H
	.word	BCM1480_IMR_HL_SPACING
	.size	bcm1480_unmask_irq, .-bcm1480_unmask_irq
	.comm	bcm1480_imr_lock,4,4
	.comm	R_BCM1480_IMR_INTERRUPT_MASK_H,4,4
	.comm	BCM1480_NR_IRQS_HALF,4,4
	.comm	BCM1480_NR_IRQS,4,4
	.comm	BCM1480_IMR_HL_SPACING,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
