	.file	"extr_mthca_qp.c_get_send_wqe.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	get_send_wqe, @function
get_send_wqe:
.LFB0:
	.cfi_startproc
	endbr64
	mov	ecx, DWORD PTR 4[rdi]
	mov	edx, DWORD PTR [rdi]
	sal	esi, cl
	cmp	QWORD PTR 24[rdi], 0
	je	.L2
	movsx	rax, edx
	movsx	rsi, esi
	add	rax, rsi
	add	rax, QWORD PTR 16[rdi]
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	add	edx, esi
	mov	ecx, DWORD PTR PAGE_SHIFT[rip]
	mov	rsi, QWORD PTR 8[rdi]
	mov	eax, edx
	sar	eax, cl
	movsx	rcx, eax
	mov	eax, DWORD PTR PAGE_SIZE[rip]
	sub	eax, 1
	and	eax, edx
	cdqe
	add	rax, QWORD PTR [rsi+rcx*8]
	ret
	.cfi_endproc
.LFE0:
	.size	get_send_wqe, .-get_send_wqe
	.comm	PAGE_SIZE,4,4
	.comm	PAGE_SHIFT,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_mthca_qp.c_get_send_wqe.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	get_send_wqe, %function
get_send_wqe:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	@ link register save eliminated.
	ldr	r2, [r0, #16]
	ldr	r3, [r0, #4]
	cmp	r2, #0
	lsl	r1, r1, r3
	ldr	r3, [r0]
	beq	.L2
	ldr	r0, [r0, #12]
	add	r3, r3, r1
	add	r0, r0, r3
	bx	lr
.L2:
	ldr	r2, .L5
	ldr	ip, .L5+4
	ldr	r2, [r2]
	add	r3, r3, r1
	ldr	r0, [r0, #8]
	ldr	r1, [ip]
	asr	r2, r3, r2
	ldr	r0, [r0, r2, lsl #2]
	sub	r1, r1, #1
	and	r3, r3, r1
	add	r0, r0, r3
	bx	lr
.L6:
	.align	2
.L5:
	.word	PAGE_SHIFT
	.word	PAGE_SIZE
	.size	get_send_wqe, .-get_send_wqe
	.comm	PAGE_SIZE,4,4
	.comm	PAGE_SHIFT,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
