	.file	"extr_mthca_main.c_mthca_enable_msi_x.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	mthca_enable_msi_x, @function
mthca_enable_msi_x:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	mov	rbx, rdi
	sub	rsp, 32
	.cfi_def_cfa_offset 64
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 24[rsp], rax
	xor	eax, eax
	mov	rbp, rsp
	mov	DWORD PTR [rsp], 0
	mov	rdi, rbp
	mov	DWORD PTR 8[rsp], 1
	mov	DWORD PTR 16[rsp], 2
	call	ARRAY_SIZE@PLT
	mov	rdi, rbp
	mov	r12d, eax
	call	ARRAY_SIZE@PLT
	mov	edi, DWORD PTR 8[rbx]
	mov	ecx, r12d
	mov	rsi, rbp
	mov	edx, eax
	call	pci_enable_msix_range@PLT
	test	eax, eax
	js	.L1
	mov	rax, QWORD PTR [rbx]
	mov	rdx, QWORD PTR MTHCA_EQ_COMP[rip]
	mov	ecx, DWORD PTR 4[rsp]
	mov	DWORD PTR [rax+rdx*4], ecx
	mov	rdx, QWORD PTR MTHCA_EQ_ASYNC[rip]
	mov	ecx, DWORD PTR 12[rsp]
	mov	DWORD PTR [rax+rdx*4], ecx
	mov	rdx, QWORD PTR MTHCA_EQ_CMD[rip]
	mov	ecx, DWORD PTR 20[rsp]
	mov	DWORD PTR [rax+rdx*4], ecx
	xor	eax, eax
.L1:
	mov	rsi, QWORD PTR 24[rsp]
	xor	rsi, QWORD PTR fs:40
	jne	.L6
	add	rsp, 32
	.cfi_remember_state
	.cfi_def_cfa_offset 32
	pop	rbx
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
.L6:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	mthca_enable_msi_x, .-mthca_enable_msi_x
	.comm	MTHCA_EQ_COMP,8,8
	.comm	MTHCA_EQ_CMD,8,8
	.comm	MTHCA_EQ_ASYNC,8,8
	.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_mthca_main.c_mthca_enable_msi_x.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	mthca_enable_msi_x, %function
mthca_enable_msi_x:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, lr}
	mov	r2, #1
	mov	r3, #2
	mov	r4, r0
	mov	r6, #0
	sub	sp, sp, #36
	ldr	r1, .L7
	add	r0, sp, #4
	ldr	r1, [r1]
	str	r1, [sp, #28]
	mov	r1,#0
	ldr	r7, [r4, #4]
	str	r2, [sp, #12]
	str	r3, [sp, #20]
	str	r6, [sp, #4]
	bl	ARRAY_SIZE
	mov	r5, r0
	add	r0, sp, #4
	bl	ARRAY_SIZE
	mov	r2, r5
	mov	r3, r0
	add	r1, sp, #4
	mov	r0, r7
	bl	pci_enable_msix_range
	cmp	r0, #0
	blt	.L1
	mov	r0, r6
	ldr	r1, .L7+4
	ldr	lr, [sp, #8]
	ldr	r1, [r1]
	ldr	r3, [r4]
	ldr	ip, .L7+8
	ldr	r2, .L7+12
	ldr	ip, [ip]
	ldr	r2, [r2]
	str	lr, [r3, r1, lsl #2]
	ldr	lr, [sp, #16]
	ldr	r1, [sp, #24]
	str	lr, [r3, ip, lsl #2]
	str	r1, [r3, r2, lsl #2]
.L1:
	ldr	r3, .L7
	ldr	r2, [r3]
	ldr	r3, [sp, #28]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L6
	add	sp, sp, #36
	@ sp needed
	pop	{r4, r5, r6, r7, pc}
.L6:
	bl	__stack_chk_fail
.L8:
	.align	2
.L7:
	.word	.LC0
	.word	MTHCA_EQ_COMP
	.word	MTHCA_EQ_ASYNC
	.word	MTHCA_EQ_CMD
	.size	mthca_enable_msi_x, .-mthca_enable_msi_x
	.comm	MTHCA_EQ_COMP,4,4
	.comm	MTHCA_EQ_CMD,4,4
	.comm	MTHCA_EQ_ASYNC,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
