	.file	"extr_msi-octeon.c_octeon_irq_msi_disable_pcie.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	octeon_irq_msi_disable_pcie, @function
octeon_irq_msi_disable_pcie:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	xor	r12d, r12d
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	mov	rsi, r12
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	mov	ebp, DWORD PTR [rdi]
	lea	rdi, octeon_irq_msi_lock[rip]
	sub	ebp, DWORD PTR OCTEON_IRQ_MSI_BIT0[rip]
	mov	ebx, ebp
	call	raw_spin_lock_irqsave@PLT
	sar	ebx, 6
	mov	rax, QWORD PTR mis_ena_reg[rip]
	movsx	rbx, ebx
	mov	edi, DWORD PTR [rax+rbx*4]
	call	cvmx_read_csr@PLT
	btr	rax, rbp
	mov	rsi, rax
	mov	rax, QWORD PTR mis_ena_reg[rip]
	mov	edi, DWORD PTR [rax+rbx*4]
	call	cvmx_write_csr@PLT
	mov	rax, QWORD PTR mis_ena_reg[rip]
	mov	edi, DWORD PTR [rax+rbx*4]
	call	cvmx_read_csr@PLT
	pop	rbx
	.cfi_def_cfa_offset 24
	mov	rsi, r12
	pop	rbp
	.cfi_def_cfa_offset 16
	lea	rdi, octeon_irq_msi_lock[rip]
	pop	r12
	.cfi_def_cfa_offset 8
	jmp	raw_spin_unlock_irqrestore@PLT
	.cfi_endproc
.LFE0:
	.size	octeon_irq_msi_disable_pcie, .-octeon_irq_msi_disable_pcie
	.comm	octeon_irq_msi_lock,4,4
	.comm	mis_ena_reg,8,8
	.comm	OCTEON_IRQ_MSI_BIT0,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_msi-octeon.c_octeon_irq_msi_disable_pcie.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	octeon_irq_msi_disable_pcie, %function
octeon_irq_msi_disable_pcie:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r8, #0
	ldr	r3, .L4
	ldr	r7, .L4+4
	ldr	ip, [r0]
	ldr	r2, [r3]
	ldr	r6, .L4+8
	mov	r1, r8
	mov	r0, r7
	sub	r4, ip, r2
	bl	raw_spin_lock_irqsave
	ldr	r3, [r6]
	asr	r5, r4, #6
	ldr	r0, [r3, r5, lsl #2]
	bl	cvmx_read_csr
	mov	r2, #1
	and	r4, r4, #63
	sub	r3, r4, #32
	rsb	lr, r4, #32
	lsl	r3, r2, r3
	orr	r3, r3, r2, lsr lr
	ldr	lr, [r6]
	bic	r2, r0, r2, lsl r4
	bic	r3, r1, r3
	ldr	r0, [lr, r5, lsl #2]
	bl	cvmx_write_csr
	ldr	r3, [r6]
	ldr	r0, [r3, r5, lsl #2]
	bl	cvmx_read_csr
	mov	r1, r8
	mov	r0, r7
	pop	{r4, r5, r6, r7, r8, lr}
	b	raw_spin_unlock_irqrestore
.L5:
	.align	2
.L4:
	.word	OCTEON_IRQ_MSI_BIT0
	.word	octeon_irq_msi_lock
	.word	mis_ena_reg
	.size	octeon_irq_msi_disable_pcie, .-octeon_irq_msi_disable_pcie
	.comm	octeon_irq_msi_lock,4,4
	.comm	mis_ena_reg,4,4
	.comm	OCTEON_IRQ_MSI_BIT0,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
