	.file	"extr_mlx4_ib_qp.c_is_sqp.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	is_sqp, @function
is_sqp:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsi
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	mov	rbx, rdi
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	mov	rdi, QWORD PTR [rdi]
	call	mlx4_is_master@PLT
	test	rax, rax
	je	.L17
.L2:
	mov	rdi, QWORD PTR [rbx]
	mov	rdx, QWORD PTR 8[rbp]
	mov	rax, QWORD PTR 24[rdi]
	cmp	rdx, rax
	jl	.L3
	add	rax, 3
	cmp	rdx, rax
	jle	.L6
.L3:
	call	mlx4_is_mfunc@PLT
	test	rax, rax
	je	.L5
.L19:
	mov	rsi, QWORD PTR [rbx]
	mov	eax, DWORD PTR [rsi]
	test	eax, eax
	jle	.L5
	sub	eax, 1
	mov	rdx, QWORD PTR 8[rbp]
	mov	rdi, QWORD PTR 8[rsi]
	lea	r8, 8[0+rax*8]
	xor	eax, eax
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L18:
	mov	rcx, QWORD PTR 16[rsi]
	cmp	rdx, QWORD PTR [rcx+rax]
	je	.L6
	add	rax, 8
	cmp	r8, rax
	je	.L5
.L7:
	cmp	rdx, QWORD PTR [rdi+rax]
	jne	.L18
.L6:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	mov	eax, 1
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L5:
	.cfi_restore_state
	mov	eax, DWORD PTR 0[rbp]
	test	DWORD PTR MLX4_IB_ROCE_V2_GSI_QP[rip], eax
	setne	al
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	movzx	eax, al
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L17:
	.cfi_restore_state
	mov	rdi, QWORD PTR [rbx]
	call	mlx4_is_mfunc@PLT
	test	rax, rax
	je	.L2
	mov	rdi, QWORD PTR [rbx]
	call	mlx4_is_mfunc@PLT
	test	rax, rax
	je	.L5
	jmp	.L19
	.cfi_endproc
.LFE0:
	.size	is_sqp, .-is_sqp
	.comm	MLX4_IB_ROCE_V2_GSI_QP,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_mlx4_ib_qp.c_is_sqp.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	is_sqp, %function
is_sqp:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r5, r0
	ldr	r0, [r0]
	mov	r4, r1
	bl	mlx4_is_master
	cmp	r0, #0
	beq	.L17
.L2:
	ldr	r0, [r5]
	ldr	r2, [r4, #4]
	ldr	r3, [r0, #12]
	cmp	r2, r3
	blt	.L3
	add	r3, r3, #3
	cmp	r2, r3
	ble	.L6
.L3:
	bl	mlx4_is_mfunc
	cmp	r0, #0
	beq	.L5
.L19:
	ldr	r1, [r5]
	ldr	lr, [r1]
	cmp	lr, #0
	ble	.L5
	ldr	r2, [r1, #4]
	mov	r3, #0
	ldr	r0, [r4, #4]
	sub	r2, r2, #4
	b	.L7
.L18:
	ldr	ip, [r1, #8]
	ldr	ip, [ip, r3, lsl #2]
	add	r3, r3, #1
	cmp	r0, ip
	beq	.L6
	cmp	lr, r3
	beq	.L5
.L7:
	ldr	ip, [r2, #4]!
	cmp	r0, ip
	bne	.L18
.L6:
	mov	r0, #1
	pop	{r4, r5, r6, pc}
.L5:
	ldr	r3, .L20
	ldr	r2, [r4]
	ldr	r3, [r3]
	tst	r2, r3
	movne	r0, #1
	moveq	r0, #0
	pop	{r4, r5, r6, pc}
.L17:
	ldr	r0, [r5]
	bl	mlx4_is_mfunc
	cmp	r0, #0
	beq	.L2
	ldr	r0, [r5]
	bl	mlx4_is_mfunc
	cmp	r0, #0
	beq	.L5
	b	.L19
.L21:
	.align	2
.L20:
	.word	MLX4_IB_ROCE_V2_GSI_QP
	.size	is_sqp, .-is_sqp
	.comm	MLX4_IB_ROCE_V2_GSI_QP,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
