	.file	"extr_msi.c_rtas_msi_check_device.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	rtas_msi_check_device, @function
rtas_msi_check_device:
.LFB0:
	.cfi_startproc
	endbr64
	cmp	DWORD PTR PCI_CAP_ID_MSIX[rip], edx
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	mov	ebx, esi
	je	.L12
	call	check_req_msi@PLT
	mov	r12d, eax
.L3:
	test	r12d, r12d
	je	.L13
.L1:
	mov	eax, r12d
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L13:
	.cfi_restore_state
	mov	esi, ebx
	mov	rdi, rbp
	call	msi_quota_for_device@PLT
	test	eax, eax
	je	.L1
	cmp	ebx, eax
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	cmovg	r12d, eax
	mov	eax, r12d
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L12:
	.cfi_restore_state
	call	check_req_msix@PLT
	mov	r12d, eax
	jmp	.L3
	.cfi_endproc
.LFE0:
	.size	rtas_msi_check_device, .-rtas_msi_check_device
	.comm	PCI_CAP_ID_MSIX,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_rtas_msi_check_device.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	rtas_msi_check_device, %function
rtas_msi_check_device:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r3, .L9
	push	{r4, r5, r6, lr}
	ldr	r3, [r3]
	mov	r6, r0
	cmp	r3, r2
	mov	r5, r1
	beq	.L8
	bl	check_req_msi
	mov	r4, r0
.L3:
	cmp	r4, #0
	bne	.L1
	mov	r0, r6
	mov	r1, r5
	bl	msi_quota_for_device
	cmp	r0, #0
	cmpne	r5, r0
	movgt	r4, r0
.L1:
	mov	r0, r4
	pop	{r4, r5, r6, pc}
.L8:
	bl	check_req_msix
	mov	r4, r0
	b	.L3
.L10:
	.align	2
.L9:
	.word	PCI_CAP_ID_MSIX
	.size	rtas_msi_check_device, .-rtas_msi_check_device
	.comm	PCI_CAP_ID_MSIX,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
