	.file	"extr_qp.c_query_qp_attr.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	query_qp_attr, @function
query_qp_attr:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	mov	r14, rsi
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	rbx, rdx
	sub	rsp, 24
	.cfi_def_cfa_offset 80
	mov	QWORD PTR 8[rsp], rdi
	mov	edi, DWORD PTR query_qp_out[rip]
	call	MLX5_ST_SZ_BYTES@PLT
	mov	esi, DWORD PTR GFP_KERNEL[rip]
	mov	edi, eax
	mov	r13d, eax
	call	kzalloc@PLT
	mov	r15d, DWORD PTR ENOMEM[rip]
	neg	r15d
	test	rax, rax
	je	.L1
	mov	rdx, rax
	mov	r12, rax
	mov	rax, QWORD PTR 8[rsp]
	lea	rsi, 12[r14]
	mov	ecx, r13d
	mov	edi, DWORD PTR [rax]
	call	mlx5_core_qp_query@PLT
	mov	r15d, eax
	test	eax, eax
	je	.L9
.L4:
	mov	rdi, r12
	call	kfree@PLT
.L1:
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	eax, r15d
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L9:
	.cfi_restore_state
	mov	edx, DWORD PTR qpc[rip]
	mov	edi, DWORD PTR query_qp_out[rip]
	mov	rsi, r12
	call	MLX5_ADDR_OF@PLT
	mov	edi, DWORD PTR 52[rax]
	mov	rbp, rax
	call	be32_to_cpu@PLT
	sar	eax, 28
	mov	edi, eax
	mov	r13d, eax
	call	to_ib_qp_state@PLT
	mov	edi, DWORD PTR 52[rbp]
	mov	DWORD PTR 8[r14], eax
	mov	eax, DWORD PTR 0[rbp]
	sar	eax, 5
	mov	DWORD PTR [rbx], eax
	call	be32_to_cpu@PLT
	sar	eax, 11
	mov	edi, eax
	and	edi, 3
	call	to_ib_mig_state@PLT
	mov	edi, DWORD PTR 48[rbp]
	mov	DWORD PTR 88[rbx], eax
	call	be32_to_cpu@PLT
	mov	edi, DWORD PTR 32[rbp]
	mov	DWORD PTR 4[rbx], eax
	call	be32_to_cpu@PLT
	mov	edi, DWORD PTR 44[rbp]
	and	eax, 16777215
	mov	DWORD PTR 8[rbx], eax
	call	be32_to_cpu@PLT
	mov	edi, DWORD PTR 40[rbp]
	and	eax, 16777215
	mov	DWORD PTR 12[rbx], eax
	call	be32_to_cpu@PLT
	mov	edi, DWORD PTR 36[rbp]
	and	eax, 16777215
	mov	DWORD PTR 16[rbx], eax
	call	be32_to_cpu@PLT
	mov	edi, eax
	call	to_ib_qp_access_flags@PLT
	mov	DWORD PTR 84[rbx], eax
	mov	rax, QWORD PTR [r14]
	cmp	rax, QWORD PTR IB_QPT_RC[rip]
	je	.L5
	cmp	rax, QWORD PTR IB_QPT_UC[rip]
	je	.L5
.L6:
	mov	edi, DWORD PTR 28[rbp]
	call	be16_to_cpu@PLT
	mov	edi, DWORD PTR 16[rbp]
	mov	QWORD PTR 56[rbx], rax
	mov	eax, DWORD PTR 24[rbp]
	mov	DWORD PTR 52[rbx], eax
	xor	eax, eax
	cmp	DWORD PTR MLX5_QP_STATE_SQ_DRAINING[rip], r13d
	mov	r13d, 1
	sete	al
	mov	DWORD PTR 20[rbx], eax
	call	be32_to_cpu@PLT
	mov	edi, DWORD PTR 36[rbp]
	sar	eax, 21
	mov	ecx, eax
	mov	eax, r13d
	and	ecx, 7
	sal	eax, cl
	mov	DWORD PTR 24[rbx], eax
	call	be32_to_cpu@PLT
	mov	edi, DWORD PTR 32[rbp]
	sar	eax, 21
	mov	ecx, eax
	and	ecx, 7
	sal	r13d, cl
	mov	DWORD PTR 28[rbx], r13d
	call	be32_to_cpu@PLT
	mov	edi, DWORD PTR 16[rbp]
	sar	eax, 24
	and	eax, 31
	mov	DWORD PTR 32[rbx], eax
	mov	eax, DWORD PTR 20[rbp]
	sar	eax, 3
	mov	DWORD PTR 36[rbx], eax
	call	be32_to_cpu@PLT
	mov	edi, DWORD PTR 16[rbp]
	sar	eax, 16
	and	eax, 7
	mov	DWORD PTR 40[rbx], eax
	call	be32_to_cpu@PLT
	sar	eax, 13
	and	eax, 7
	mov	DWORD PTR 44[rbx], eax
	mov	eax, DWORD PTR 4[rbp]
	sar	eax, 3
	mov	DWORD PTR 48[rbx], eax
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L5:
	mov	rdi, QWORD PTR 8[rsp]
	lea	rdx, 20[rbp]
	lea	rsi, 80[rbx]
	lea	r14, 64[rbx]
	call	to_rdma_ah_attr@PLT
	mov	rdi, QWORD PTR 8[rsp]
	lea	rdx, 4[rbp]
	mov	rsi, r14
	call	to_rdma_ah_attr@PLT
	mov	edi, DWORD PTR 12[rbp]
	call	be16_to_cpu@PLT
	mov	rdi, r14
	mov	QWORD PTR 72[rbx], rax
	call	rdma_ah_get_port_num@PLT
	mov	DWORD PTR 68[rbx], eax
	jmp	.L6
	.cfi_endproc
.LFE0:
	.size	query_qp_attr, .-query_qp_attr
	.comm	query_qp_out,4,4
	.comm	qpc,4,4
	.comm	MLX5_QP_STATE_SQ_DRAINING,4,4
	.comm	IB_QPT_UC,8,8
	.comm	IB_QPT_RC,8,8
	.comm	GFP_KERNEL,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_qp.c_query_qp_attr.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	query_qp_attr, %function
query_qp_attr:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	ldr	r9, .L11
	mov	r8, r0
	ldr	r0, [r9]
	mov	r7, r1
	mov	r4, r2
	bl	MLX5_ST_SZ_BYTES
	ldr	r3, .L11+4
	mov	r5, r0
	ldr	r1, [r3]
	bl	kzalloc
	subs	r10, r0, #0
	beq	.L9
	mov	r3, r5
	mov	r2, r10
	ldr	r0, [r8]
	add	r1, r7, #8
	bl	mlx5_core_qp_query
	subs	r6, r0, #0
	beq	.L10
.L4:
	mov	r0, r10
	bl	kfree
	mov	r0, r6
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L10:
	ldr	r3, .L11+8
	mov	r1, r10
	ldr	r2, [r3]
	ldr	r0, [r9]
	bl	MLX5_ADDR_OF
	mov	r5, r0
	ldr	r0, [r0, #52]
	bl	be32_to_cpu
	asr	r9, r0, #28
	mov	r0, r9
	bl	to_ib_qp_state
	ldr	r3, [r5]
	str	r0, [r7, #4]
	asr	r3, r3, #5
	str	r3, [r4]
	ldr	r0, [r5, #52]
	bl	be32_to_cpu
	asr	r0, r0, #11
	and	r0, r0, #3
	bl	to_ib_mig_state
	str	r0, [r4, #80]
	ldr	r0, [r5, #48]
	bl	be32_to_cpu
	str	r0, [r4, #4]
	ldr	r0, [r5, #32]
	bl	be32_to_cpu
	bic	r0, r0, #-16777216
	str	r0, [r4, #8]
	ldr	r0, [r5, #44]
	bl	be32_to_cpu
	bic	r0, r0, #-16777216
	str	r0, [r4, #12]
	ldr	r0, [r5, #40]
	bl	be32_to_cpu
	bic	r0, r0, #-16777216
	str	r0, [r4, #16]
	ldr	r0, [r5, #36]
	bl	be32_to_cpu
	bl	to_ib_qp_access_flags
	ldr	r2, .L11+12
	ldr	r3, [r7]
	ldr	r2, [r2]
	str	r0, [r4, #76]
	cmp	r3, r2
	beq	.L5
	ldr	r2, .L11+16
	ldr	r2, [r2]
	cmp	r3, r2
	beq	.L5
.L6:
	ldr	r0, [r5, #28]
	bl	be16_to_cpu
	ldr	r3, .L11+20
	str	r0, [r4, #56]
	ldr	r0, [r3]
	ldr	r3, [r5, #24]
	sub	r9, r0, r9
	clz	r9, r9
	lsr	r9, r9, #5
	str	r3, [r4, #52]
	ldr	r0, [r5, #16]
	str	r9, [r4, #20]
	bl	be32_to_cpu
	mov	r7, #1
	asr	r0, r0, #21
	and	r0, r0, #7
	lsl	r0, r7, r0
	str	r0, [r4, #24]
	ldr	r0, [r5, #36]
	bl	be32_to_cpu
	asr	r0, r0, #21
	and	r0, r0, #7
	lsl	r0, r7, r0
	str	r0, [r4, #28]
	ldr	r0, [r5, #32]
	bl	be32_to_cpu
	ldr	r3, [r5, #20]
	asr	r0, r0, #24
	asr	r3, r3, #3
	and	r0, r0, #31
	str	r3, [r4, #36]
	str	r0, [r4, #32]
	ldr	r0, [r5, #16]
	bl	be32_to_cpu
	asr	r0, r0, #16
	and	r0, r0, #7
	str	r0, [r4, #40]
	ldr	r0, [r5, #16]
	bl	be32_to_cpu
	ldr	r3, [r5, #4]
	asr	r0, r0, #13
	and	r0, r0, #7
	asr	r3, r3, #3
	str	r0, [r4, #44]
	str	r3, [r4, #48]
	b	.L4
.L9:
	ldr	r3, .L11+24
	ldr	r6, [r3]
	rsb	r6, r6, #0
	mov	r0, r6
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L5:
	add	r2, r5, #20
	add	r1, r4, #72
	add	r7, r4, #60
	mov	r0, r8
	bl	to_rdma_ah_attr
	mov	r1, r7
	add	r2, r5, #4
	mov	r0, r8
	bl	to_rdma_ah_attr
	ldr	r0, [r5, #12]
	bl	be16_to_cpu
	mov	r3, r0
	mov	r0, r7
	str	r3, [r4, #68]
	bl	rdma_ah_get_port_num
	str	r0, [r4, #64]
	b	.L6
.L12:
	.align	2
.L11:
	.word	query_qp_out
	.word	GFP_KERNEL
	.word	qpc
	.word	IB_QPT_RC
	.word	IB_QPT_UC
	.word	MLX5_QP_STATE_SQ_DRAINING
	.word	ENOMEM
	.size	query_qp_attr, .-query_qp_attr
	.comm	query_qp_out,4,4
	.comm	qpc,4,4
	.comm	MLX5_QP_STATE_SQ_DRAINING,4,4
	.comm	IB_QPT_UC,4,4
	.comm	IB_QPT_RC,4,4
	.comm	GFP_KERNEL,4,4
	.comm	ENOMEM,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
