	.file	"extr_msi.c_msi_map.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	msi_map
	.type	msi_map, @function
msi_map:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	mov	r12, rsi
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	mov	ebp, edi
	lea	rdi, msi_lock[rip]
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	mov	rbx, rdx
	call	mtx_lock@PLT
	mov	edi, ebp
	call	intr_lookup_source@PLT
	test	rax, rax
	je	.L12
	cmp	QWORD PTR 24[rax], 0
	mov	rbp, rax
	je	.L6
	mov	eax, DWORD PTR 40[rax]
	test	eax, eax
	jne	.L5
	mov	rbp, QWORD PTR 32[rbp]
	test	rbp, rbp
	je	.L6
.L5:
	lea	rdi, msi_lock[rip]
	call	mtx_unlock@PLT
	mov	rdi, rbp
	call	INTEL_ADDR@PLT
	mov	rdi, rbp
	mov	DWORD PTR [r12], eax
	call	INTEL_DATA@PLT
	mov	DWORD PTR [rbx], eax
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	xor	eax, eax
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L12:
	.cfi_restore_state
	lea	rdi, msi_lock[rip]
	call	mtx_unlock@PLT
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	mov	eax, DWORD PTR ENOENT[rip]
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L6:
	.cfi_restore_state
	lea	rdi, msi_lock[rip]
	call	mtx_unlock@PLT
	pop	rbx
	.cfi_def_cfa_offset 24
	mov	eax, DWORD PTR ENXIO[rip]
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	msi_map, .-msi_map
	.comm	num_msi_irqs,4,4
	.comm	msi_lock,4,4
	.comm	first_msi_irq,4,4
	.comm	EOPNOTSUPP,4,4
	.comm	ENXIO,4,4
	.comm	ENOENT,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.c_msi_map.c"
	.text
	.align	2
	.global	msi_map
	.syntax unified
	.arm
	.fpu softvfp
	.type	msi_map, %function
msi_map:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r4, r0
	ldr	r0, .L13
	mov	r6, r1
	mov	r5, r2
	bl	mtx_lock
	mov	r0, r4
	bl	intr_lookup_source
	subs	r4, r0, #0
	beq	.L12
	ldr	r3, [r4, #20]
	cmp	r3, #0
	beq	.L6
	ldr	r3, [r4, #28]
	cmp	r3, #0
	bne	.L5
	ldr	r4, [r4, #24]
	cmp	r4, #0
	beq	.L6
.L5:
	ldr	r0, .L13
	bl	mtx_unlock
	mov	r0, r4
	bl	INTEL_ADDR
	mov	r3, r0
	mov	r0, r4
	str	r3, [r6]
	bl	INTEL_DATA
	mov	r3, r0
	mov	r0, #0
	str	r3, [r5]
	pop	{r4, r5, r6, pc}
.L12:
	ldr	r0, .L13
	bl	mtx_unlock
	ldr	r3, .L13+4
	ldr	r0, [r3]
	pop	{r4, r5, r6, pc}
.L6:
	ldr	r0, .L13
	bl	mtx_unlock
	ldr	r3, .L13+8
	ldr	r0, [r3]
	pop	{r4, r5, r6, pc}
.L14:
	.align	2
.L13:
	.word	msi_lock
	.word	ENOENT
	.word	ENXIO
	.size	msi_map, .-msi_map
	.comm	num_msi_irqs,4,4
	.comm	msi_lock,4,4
	.comm	first_msi_irq,4,4
	.comm	EOPNOTSUPP,4,4
	.comm	ENXIO,4,4
	.comm	ENOENT,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
