	.file	"extr_msi.c_msi_capability_init.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	msi_capability_init, @function
msi_capability_init:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	mov	r13, rdx
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	mov	r12d, esi
	xor	esi, esi
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	mov	rbp, rdi
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	call	pci_msi_set_enable@PLT
	mov	rdx, r13
	mov	esi, r12d
	mov	rdi, rbp
	call	msi_setup_entry@PLT
	test	rax, rax
	je	.L10
	mov	edi, DWORD PTR 8[rax]
	mov	r13, rax
	call	msi_mask@PLT
	mov	rdi, r13
	mov	edx, eax
	mov	esi, eax
	mov	r14d, eax
	call	msi_mask_irq@PLT
	lea	rdi, 8[rbp]
	call	dev_to_msi_list@PLT
	lea	rdi, 4[r13]
	mov	esi, eax
	call	list_add_tail@PLT
	mov	edx, DWORD PTR PCI_CAP_ID_MSI[rip]
	mov	esi, r12d
	mov	rdi, rbp
	call	pci_msi_setup_msi_irqs@PLT
	mov	r12d, eax
	test	eax, eax
	jne	.L8
	mov	rdi, rbp
	call	msi_verify_entries@PLT
	mov	r12d, eax
	test	eax, eax
	jne	.L8
	mov	rdi, rbp
	call	populate_msi_sysfs@PLT
	mov	r12d, eax
	test	eax, eax
	jne	.L8
	mov	rdi, rbp
	xor	esi, esi
	call	pci_intx_for_msi@PLT
	mov	rdi, rbp
	mov	esi, 1
	call	pci_msi_set_enable@PLT
	mov	DWORD PTR 0[rbp], 1
	mov	rdi, rbp
	call	pcibios_free_irq@PLT
	mov	eax, DWORD PTR 0[r13]
	mov	DWORD PTR 4[rbp], eax
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	eax, r12d
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L8:
	.cfi_restore_state
	mov	edx, r14d
	mov	esi, r14d
	mov	rdi, r13
	not	edx
	call	msi_mask_irq@PLT
	mov	rdi, rbp
	call	free_msi_irqs@PLT
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	eax, r12d
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L10:
	.cfi_restore_state
	mov	r12d, DWORD PTR ENOMEM[rip]
	add	rsp, 8
	.cfi_def_cfa_offset 40
	pop	rbp
	.cfi_def_cfa_offset 32
	neg	r12d
	mov	eax, r12d
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	msi_capability_init, .-msi_capability_init
	.comm	PCI_CAP_ID_MSI,4,4
	.comm	ENOMEM,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_capability_init.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	msi_capability_init, %function
msi_capability_init:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r8, r1
	mov	r4, r2
	mov	r5, r0
	mov	r1, #0
	bl	pci_msi_set_enable
	mov	r2, r4
	mov	r1, r8
	mov	r0, r5
	bl	msi_setup_entry
	subs	r6, r0, #0
	beq	.L10
	ldr	r0, [r6, #8]
	bl	msi_mask
	mov	r7, r0
	mov	r0, r6
	mov	r2, r7
	mov	r1, r7
	bl	msi_mask_irq
	add	r0, r5, #8
	bl	dev_to_msi_list
	mov	r1, r0
	add	r0, r6, #4
	bl	list_add_tail
	ldr	r3, .L11
	mov	r1, r8
	mov	r0, r5
	ldr	r2, [r3]
	bl	pci_msi_setup_msi_irqs
	subs	r4, r0, #0
	bne	.L8
	mov	r0, r5
	bl	msi_verify_entries
	subs	r4, r0, #0
	bne	.L8
	mov	r0, r5
	bl	populate_msi_sysfs
	subs	r4, r0, #0
	bne	.L8
	mov	r1, r4
	mov	r0, r5
	bl	pci_intx_for_msi
	mov	r1, #1
	mov	r0, r5
	bl	pci_msi_set_enable
	mov	r3, #1
	mov	r0, r5
	str	r3, [r5]
	bl	pcibios_free_irq
	ldr	r3, [r6]
	mov	r0, r4
	str	r3, [r5, #4]
	pop	{r4, r5, r6, r7, r8, pc}
.L8:
	mvn	r2, r7
	mov	r1, r7
	mov	r0, r6
	bl	msi_mask_irq
	mov	r0, r5
	bl	free_msi_irqs
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, pc}
.L10:
	ldr	r3, .L11+4
	ldr	r4, [r3]
	rsb	r4, r4, #0
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, pc}
.L12:
	.align	2
.L11:
	.word	PCI_CAP_ID_MSI
	.word	ENOMEM
	.size	msi_capability_init, .-msi_capability_init
	.comm	PCI_CAP_ID_MSI,4,4
	.comm	ENOMEM,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
