	.file	"extr_irq.c_ack_bcm1480_irq.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	ack_bcm1480_irq, @function
ack_bcm1480_irq:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	mov	ecx, edi
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13d, edi
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 8
	.cfi_def_cfa_offset 64
	mov	eax, DWORD PTR BCM1480_NR_IRQS_HALF[rip]
	cmp	eax, edi
	ja	.L2
	cmp	DWORD PTR BCM1480_NR_IRQS[rip], edi
	jnb	.L13
.L2:
	mov	ebp, r13d
	mov	ebx, 1
	xor	r14d, r14d
	lea	r12, 0[0+rbp*4]
	sal	ebx, cl
.L4:
	mov	esi, DWORD PTR BCM1480_IMR_HL_SPACING[rip]
	mov	rax, QWORD PTR bcm1480_irq_owner[rip]
	imul	esi, r14d
	mov	edi, DWORD PTR [rax+r12]
	movsx	rsi, esi
	add	rsi, QWORD PTR R_BCM1480_IMR_LDT_INTERRUPT_H[rip]
	call	A_BCM1480_IMR_REGISTER@PLT
	mov	edi, eax
	call	IOADDR@PLT
	mov	edi, eax
	call	__raw_readq@PLT
	and	eax, ebx
	mov	r15d, eax
	jne	.L14
.L3:
	cmp	r14d, 1
	jne	.L7
	mov	rax, QWORD PTR bcm1480_irq_owner[rip]
	mov	esi, r13d
	mov	edi, DWORD PTR [rax+rbp*4]
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	jmp	bcm1480_mask_irq@PLT
	.p2align 4,,10
	.p2align 3
.L7:
	.cfi_restore_state
	mov	r14d, 1
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L14:
	mov	esi, DWORD PTR BCM1480_IMR_HL_SPACING[rip]
	xor	edi, edi
	imul	esi, r14d
	movsx	rsi, esi
	add	rsi, QWORD PTR R_BCM1480_IMR_LDT_INTERRUPT_CLR_H[rip]
	call	A_BCM1480_IMR_REGISTER@PLT
	mov	edi, eax
	call	IOADDR@PLT
	mov	edi, r15d
	mov	esi, eax
	call	__raw_writeq@PLT
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L13:
	sub	ecx, eax
	jmp	.L2
	.cfi_endproc
.LFE0:
	.size	ack_bcm1480_irq, .-ack_bcm1480_irq
	.comm	ht_eoi_space,8,8
	.comm	bcm1480_irq_owner,8,8
	.comm	R_BCM1480_IMR_LDT_INTERRUPT_H,8,8
	.comm	R_BCM1480_IMR_LDT_INTERRUPT_CLR_H,8,8
	.comm	NR_CPUS,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
	.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_ack_bcm1480_irq.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	ack_bcm1480_irq, %function
ack_bcm1480_irq:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r3, r4, r5, r6, r7, r8, r9, r10, fp, lr}
	ldr	r3, .L14
	mov	r5, r0
	ldr	r6, [r3]
	cmp	r6, r0
	bhi	.L6
	ldr	r3, .L14+4
	ldr	r3, [r3]
	cmp	r3, r0
	subcs	r6, r0, r6
	bcc	.L6
.L2:
	mov	r3, #1
	mov	r7, #0
	ldr	r10, .L14+8
	ldr	r8, .L14+12
	ldr	fp, .L14+16
	lsl	r9, r5, #2
	lsl	r6, r3, r6
.L4:
	ldr	r2, [fp]
	ldr	r0, [r10]
	ldr	r1, [r8]
	mla	r1, r0, r7, r1
	ldr	r0, [r2, r9]
	bl	A_BCM1480_IMR_REGISTER
	bl	IOADDR
	bl	__raw_readq
	ands	r4, r6, r0
	bne	.L13
.L3:
	cmp	r7, #1
	bne	.L7
	ldr	r3, [fp]
	mov	r1, r5
	ldr	r0, [r3, r5, lsl #2]
	pop	{r3, r4, r5, r6, r7, r8, r9, r10, fp, lr}
	b	bcm1480_mask_irq
.L6:
	mov	r6, r5
	b	.L2
.L7:
	mov	r7, #1
	b	.L4
.L13:
	ldr	r3, .L14+20
	ldr	r1, [r10]
	ldr	r2, [r3]
	mov	r0, #0
	mla	r1, r7, r1, r2
	bl	A_BCM1480_IMR_REGISTER
	bl	IOADDR
	mov	r1, r0
	mov	r0, r4
	bl	__raw_writeq
	b	.L3
.L15:
	.align	2
.L14:
	.word	BCM1480_NR_IRQS_HALF
	.word	BCM1480_NR_IRQS
	.word	BCM1480_IMR_HL_SPACING
	.word	R_BCM1480_IMR_LDT_INTERRUPT_H
	.word	bcm1480_irq_owner
	.word	R_BCM1480_IMR_LDT_INTERRUPT_CLR_H
	.size	ack_bcm1480_irq, .-ack_bcm1480_irq
	.comm	ht_eoi_space,4,4
	.comm	bcm1480_irq_owner,4,4
	.comm	R_BCM1480_IMR_LDT_INTERRUPT_H,4,4
	.comm	R_BCM1480_IMR_LDT_INTERRUPT_CLR_H,4,4
	.comm	NR_CPUS,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
