	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hns_roce_v2_query_qp
_hns_roce_v2_query_qp:                  ## @hns_roce_v2_query_qp
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	subq	$88, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r13
	movq	%rsi, %r12
	movq	%rdi, %rbx
	movl	4(%rdi), %edi
	callq	_to_hr_dev
	movq	%rax, %r15
	movq	%rbx, -120(%rbp)                ## 8-byte Spill
	movq	%rbx, %rdi
	callq	_to_hr_qp
	movq	%rax, %rbx
	xorps	%xmm0, %xmm0
	movaps	%xmm0, -80(%rbp)
	movaps	%xmm0, -96(%rbp)
	movaps	%xmm0, -112(%rbp)
	movq	$0, -64(%rbp)
	movq	(%r15), %r14
	movq	%r12, %rdi
	xorl	%esi, %esi
	movl	$120, %edx
	callq	_memset
	movq	%r13, %rdi
	xorl	%esi, %esi
	movl	$120, %edx
	callq	_memset
	leaq	4(%rbx), %rdi
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	callq	_mutex_lock
	movl	(%rbx), %eax
	movq	_IB_QPS_RESET@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_2
## %bb.1:
	movq	%r13, %r15
	movl	%eax, (%r12)
LBB0_13:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	-120(%rbp), %rdx                ## 8-byte Reload
	movl	%eax, 28(%r12)
	movl	20(%rbx), %ecx
	leaq	32(%r12), %rax
	movl	%ecx, 44(%r12)
	movl	16(%rbx), %ecx
	movl	%ecx, 40(%r12)
	movq	%rbx, %rsi
	xorl	%ebx, %ebx
	cmpl	$0, (%rdx)
	movl	$0, %edx
	movl	$0, %ecx
	jne	LBB0_15
## %bb.14:
	movl	8(%rsi), %ecx
	movl	12(%rsi), %edx
LBB0_15:
	movl	%edx, 36(%r12)
	movl	%ecx, 32(%r12)
	movups	(%rax), %xmm0
	movups	%xmm0, 32(%r15)
	jmp	LBB0_16
LBB0_2:
	leaq	-112(%rbp), %rdx
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_hns_roce_v2_query_qpc
	testl	%eax, %eax
	je	LBB0_5
## %bb.3:
	leaq	L_.str(%rip), %rsi
LBB0_4:
	movq	%r14, %rdi
	callq	_dev_err
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
LBB0_16:
	callq	_mutex_unlock
	movl	%ebx, %eax
	addq	$88, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movl	-60(%rbp), %edi
	movq	_V2_QPC_BYTE_60_QP_ST_M@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_V2_QPC_BYTE_60_QP_ST_S@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_roce_get_field
	movl	%eax, %edi
	callq	_to_ib_qp_st
	cmpl	$-1, %eax
	je	LBB0_6
## %bb.7:
	movq	%r13, %r15
	movl	%eax, (%rbx)
	movl	%eax, (%r12)
	movl	-84(%rbp), %edi
	movq	_V2_QPC_BYTE_24_MTU_M@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_V2_QPC_BYTE_24_MTU_S@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_roce_get_field
	movl	%eax, 4(%r12)
	movq	_IB_MIG_ARMED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 116(%r12)
	movq	_RDMA_AH_ATTR_TYPE_ROCE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 88(%r12)
	movq	32(%rbx), %rax
	movq	_IB_QPT_UD@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	movq	%rbx, %r13
	jne	LBB0_9
## %bb.8:
	movq	_V2_QKEY_VAL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 112(%r12)
LBB0_9:
	movl	-64(%rbp), %edi
	movq	_V2_QPC_BYTE_108_RX_REQ_EPSN_M@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_V2_QPC_BYTE_108_RX_REQ_EPSN_S@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_roce_get_field
	movl	%eax, 8(%r12)
	movl	-68(%rbp), %edi
	movq	_V2_QPC_BYTE_172_SQ_CUR_PSN_M@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_V2_QPC_BYTE_172_SQ_CUR_PSN_S@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_roce_get_field
	cltq
	movq	%rax, 104(%r12)
	movl	-72(%rbp), %edi
	movq	_V2_QPC_BYTE_56_DQPN_M@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_V2_QPC_BYTE_56_DQPN_S@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_roce_get_field
	cltq
	movq	%rax, 96(%r12)
	movl	-76(%rbp), %edi
	movq	_V2_QPC_BYTE_76_RRE_S@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_roce_get_bit
	movl	%eax, %r14d
	movq	_V2_QP_RRE_S@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	shll	%cl, %r14d
	movl	-76(%rbp), %edi
	movq	_V2_QPC_BYTE_76_RWE_S@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_roce_get_bit
	movl	%eax, %ebx
	movq	_V2_QP_RWE_S@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	shll	%cl, %ebx
	orl	%r14d, %ebx
	movl	-76(%rbp), %edi
	movq	_V2_QPC_BYTE_76_ATE_S@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_roce_get_bit
	movq	_V2_QP_ATE_S@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shll	%cl, %eax
	orl	%ebx, %eax
	movl	%eax, 12(%r12)
	movq	32(%r13), %rax
	movq	_IB_QPT_RC@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_11
## %bb.10:
	movq	_IB_QPT_UC@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_12
LBB0_11:
	leaq	88(%r12), %rbx
	movq	%rbx, %rdi
	callq	_rdma_ah_retrieve_grh
	movq	%rax, %r14
	movl	-104(%rbp), %edi
	movq	_V2_QPC_BYTE_28_SL_M@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_V2_QPC_BYTE_28_SL_S@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_roce_get_field
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_rdma_ah_set_sl
	movl	-104(%rbp), %edi
	movq	_V2_QPC_BYTE_28_FL_M@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_V2_QPC_BYTE_28_FL_S@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_roce_get_field
	movl	%eax, (%r14)
	movl	-80(%rbp), %edi
	movq	_V2_QPC_BYTE_20_SGID_IDX_M@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_V2_QPC_BYTE_20_SGID_IDX_S@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_roce_get_field
	movl	%eax, 4(%r14)
	movl	-84(%rbp), %edi
	movq	_V2_QPC_BYTE_24_HOP_LIMIT_M@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_V2_QPC_BYTE_24_HOP_LIMIT_S@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_roce_get_field
	movl	%eax, 8(%r14)
	movl	-84(%rbp), %edi
	movq	_V2_QPC_BYTE_24_TC_M@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_V2_QPC_BYTE_24_TC_S@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_roce_get_field
	movl	%eax, 12(%r14)
	movl	16(%r14), %edi
	movl	-88(%rbp), %esi
	movl	$4, %edx
	callq	_memcpy
LBB0_12:
	movq	24(%r13), %rax
	incq	%rax
	movq	%rax, 80(%r12)
	movq	$0, 72(%r12)
	movl	-92(%rbp), %edi
	movq	_V2_QPC_BYTE_208_SR_MAX_M@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_V2_QPC_BYTE_208_SR_MAX_S@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_roce_get_field
	movl	$1, %edx
	movl	%eax, %ecx
	shll	%cl, %edx
	movl	$1, %ebx
	movl	%edx, 16(%r12)
	movl	-96(%rbp), %edi
	movq	_V2_QPC_BYTE_140_RR_MAX_M@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_V2_QPC_BYTE_140_RR_MAX_S@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_roce_get_field
	movl	%eax, %ecx
	shll	%cl, %ebx
	movl	%ebx, 20(%r12)
	movq	%r13, %rbx
	movl	-100(%rbp), %edi
	movq	_V2_QPC_BYTE_80_MIN_RNR_TIME_M@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_V2_QPC_BYTE_80_MIN_RNR_TIME_S@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_roce_get_field
	cltq
	movq	%rax, 64(%r12)
	movl	-104(%rbp), %edi
	movq	_V2_QPC_BYTE_28_AT_M@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_V2_QPC_BYTE_28_AT_S@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_roce_get_field
	cltq
	movq	%rax, 56(%r12)
	movl	-108(%rbp), %edi
	movq	_V2_QPC_BYTE_212_RETRY_CNT_M@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_V2_QPC_BYTE_212_RETRY_CNT_S@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_roce_get_field
	movl	%eax, 24(%r12)
	movl	-112(%rbp), %edi
	callq	_le32_to_cpu
	movl	%eax, 48(%r12)
	movl	(%r12), %eax
	jmp	LBB0_13
LBB0_6:
	leaq	L_.str.1(%rip), %rsi
	jmp	LBB0_4
	.cfi_endproc
                                        ## -- End function
	.comm	_IB_QPS_RESET,4,2               ## @IB_QPS_RESET
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"query qpc error\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_V2_QPC_BYTE_60_QP_ST_M,4,2     ## @V2_QPC_BYTE_60_QP_ST_M
	.comm	_V2_QPC_BYTE_60_QP_ST_S,4,2     ## @V2_QPC_BYTE_60_QP_ST_S
L_.str.1:                               ## @.str.1
	.asciz	"Illegal ib_qp_state\n"

	.comm	_V2_QPC_BYTE_24_MTU_M,4,2       ## @V2_QPC_BYTE_24_MTU_M
	.comm	_V2_QPC_BYTE_24_MTU_S,4,2       ## @V2_QPC_BYTE_24_MTU_S
	.comm	_IB_MIG_ARMED,4,2               ## @IB_MIG_ARMED
	.comm	_RDMA_AH_ATTR_TYPE_ROCE,4,2     ## @RDMA_AH_ATTR_TYPE_ROCE
	.comm	_IB_QPT_UD,8,3                  ## @IB_QPT_UD
	.comm	_V2_QKEY_VAL,4,2                ## @V2_QKEY_VAL
	.comm	_V2_QPC_BYTE_108_RX_REQ_EPSN_M,4,2 ## @V2_QPC_BYTE_108_RX_REQ_EPSN_M
	.comm	_V2_QPC_BYTE_108_RX_REQ_EPSN_S,4,2 ## @V2_QPC_BYTE_108_RX_REQ_EPSN_S
	.comm	_V2_QPC_BYTE_172_SQ_CUR_PSN_M,4,2 ## @V2_QPC_BYTE_172_SQ_CUR_PSN_M
	.comm	_V2_QPC_BYTE_172_SQ_CUR_PSN_S,4,2 ## @V2_QPC_BYTE_172_SQ_CUR_PSN_S
	.comm	_V2_QPC_BYTE_56_DQPN_M,4,2      ## @V2_QPC_BYTE_56_DQPN_M
	.comm	_V2_QPC_BYTE_56_DQPN_S,4,2      ## @V2_QPC_BYTE_56_DQPN_S
	.comm	_V2_QPC_BYTE_76_RRE_S,4,2       ## @V2_QPC_BYTE_76_RRE_S
	.comm	_V2_QP_RRE_S,4,2                ## @V2_QP_RRE_S
	.comm	_V2_QPC_BYTE_76_RWE_S,4,2       ## @V2_QPC_BYTE_76_RWE_S
	.comm	_V2_QP_RWE_S,4,2                ## @V2_QP_RWE_S
	.comm	_V2_QPC_BYTE_76_ATE_S,4,2       ## @V2_QPC_BYTE_76_ATE_S
	.comm	_V2_QP_ATE_S,4,2                ## @V2_QP_ATE_S
	.comm	_IB_QPT_RC,8,3                  ## @IB_QPT_RC
	.comm	_IB_QPT_UC,8,3                  ## @IB_QPT_UC
	.comm	_V2_QPC_BYTE_28_SL_M,4,2        ## @V2_QPC_BYTE_28_SL_M
	.comm	_V2_QPC_BYTE_28_SL_S,4,2        ## @V2_QPC_BYTE_28_SL_S
	.comm	_V2_QPC_BYTE_28_FL_M,4,2        ## @V2_QPC_BYTE_28_FL_M
	.comm	_V2_QPC_BYTE_28_FL_S,4,2        ## @V2_QPC_BYTE_28_FL_S
	.comm	_V2_QPC_BYTE_20_SGID_IDX_M,4,2  ## @V2_QPC_BYTE_20_SGID_IDX_M
	.comm	_V2_QPC_BYTE_20_SGID_IDX_S,4,2  ## @V2_QPC_BYTE_20_SGID_IDX_S
	.comm	_V2_QPC_BYTE_24_HOP_LIMIT_M,4,2 ## @V2_QPC_BYTE_24_HOP_LIMIT_M
	.comm	_V2_QPC_BYTE_24_HOP_LIMIT_S,4,2 ## @V2_QPC_BYTE_24_HOP_LIMIT_S
	.comm	_V2_QPC_BYTE_24_TC_M,4,2        ## @V2_QPC_BYTE_24_TC_M
	.comm	_V2_QPC_BYTE_24_TC_S,4,2        ## @V2_QPC_BYTE_24_TC_S
	.comm	_V2_QPC_BYTE_208_SR_MAX_M,4,2   ## @V2_QPC_BYTE_208_SR_MAX_M
	.comm	_V2_QPC_BYTE_208_SR_MAX_S,4,2   ## @V2_QPC_BYTE_208_SR_MAX_S
	.comm	_V2_QPC_BYTE_140_RR_MAX_M,4,2   ## @V2_QPC_BYTE_140_RR_MAX_M
	.comm	_V2_QPC_BYTE_140_RR_MAX_S,4,2   ## @V2_QPC_BYTE_140_RR_MAX_S
	.comm	_V2_QPC_BYTE_80_MIN_RNR_TIME_M,4,2 ## @V2_QPC_BYTE_80_MIN_RNR_TIME_M
	.comm	_V2_QPC_BYTE_80_MIN_RNR_TIME_S,4,2 ## @V2_QPC_BYTE_80_MIN_RNR_TIME_S
	.comm	_V2_QPC_BYTE_28_AT_M,4,2        ## @V2_QPC_BYTE_28_AT_M
	.comm	_V2_QPC_BYTE_28_AT_S,4,2        ## @V2_QPC_BYTE_28_AT_S
	.comm	_V2_QPC_BYTE_212_RETRY_CNT_M,4,2 ## @V2_QPC_BYTE_212_RETRY_CNT_M
	.comm	_V2_QPC_BYTE_212_RETRY_CNT_S,4,2 ## @V2_QPC_BYTE_212_RETRY_CNT_S
	.no_dead_strip	_hns_roce_v2_query_qp
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hns_roce_v2_query_qp
_hns_roce_v2_query_qp:                  ; @hns_roce_v2_query_qp
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x26, x25, [sp, #64]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x3
	mov	x22, x1
	mov	x21, x0
	ldr	w0, [x0, #4]
	bl	_to_hr_dev
	mov	x25, x0
	mov	x0, x21
	bl	_to_hr_qp
	mov	x23, x0
	str	xzr, [sp, #48]
	movi.2d	v0, #0000000000000000
	stp	q0, q0, [sp, #16]
	str	q0, [sp]
	ldr	x24, [x25]
	mov	x0, x22
	mov	w1, #0
	mov	w2, #120
	bl	_memset
	mov	x0, x19
	mov	w1, #0
	mov	w2, #120
	bl	_memset
	add	x20, x23, #4
	mov	x0, x20
	bl	_mutex_lock
	ldr	w8, [x23]
Lloh0:
	adrp	x9, _IB_QPS_RESET@GOTPAGE
Lloh1:
	ldr	x9, [x9, _IB_QPS_RESET@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_4
; %bb.1:
	str	w8, [x22]
LBB0_2:
	str	w8, [x22, #28]
	add	x8, x22, #32
	ldr	d0, [x23, #16]
	str	d0, [x22, #40]
	ldr	w9, [x21]
	cbz	w9, LBB0_7
; %bb.3:
	movi.2d	v0, #0000000000000000
	b	LBB0_8
LBB0_4:
	mov	x2, sp
	mov	x0, x25
	mov	x1, x23
	bl	_hns_roce_v2_query_qpc
	cbz	w0, LBB0_10
; %bb.5:
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
LBB0_6:
	mov	x0, x24
	bl	_dev_err
Lloh5:
	adrp	x8, _EINVAL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_9
LBB0_7:
	ldr	d0, [x23, #8]
LBB0_8:
	mov	w21, #0
	str	d0, [x8]
	ldr	q0, [x8]
	str	q0, [x19, #32]
LBB0_9:
	mov	x0, x20
	bl	_mutex_unlock
	mov	x0, x21
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
LBB0_10:
	ldr	w0, [sp, #52]
Lloh8:
	adrp	x8, _V2_QPC_BYTE_60_QP_ST_M@GOTPAGE
Lloh9:
	ldr	x8, [x8, _V2_QPC_BYTE_60_QP_ST_M@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
Lloh11:
	adrp	x8, _V2_QPC_BYTE_60_QP_ST_S@GOTPAGE
Lloh12:
	ldr	x8, [x8, _V2_QPC_BYTE_60_QP_ST_S@GOTPAGEOFF]
Lloh13:
	ldr	w2, [x8]
	bl	_roce_get_field
	bl	_to_ib_qp_st
	cmn	w0, #1
	b.eq	LBB0_17
; %bb.11:
	str	w0, [x23]
	str	w0, [x22]
	ldr	w0, [sp, #28]
Lloh14:
	adrp	x8, _V2_QPC_BYTE_24_MTU_M@GOTPAGE
Lloh15:
	ldr	x8, [x8, _V2_QPC_BYTE_24_MTU_M@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
Lloh17:
	adrp	x8, _V2_QPC_BYTE_24_MTU_S@GOTPAGE
Lloh18:
	ldr	x8, [x8, _V2_QPC_BYTE_24_MTU_S@GOTPAGEOFF]
Lloh19:
	ldr	w2, [x8]
	bl	_roce_get_field
Lloh20:
	adrp	x8, _RDMA_AH_ATTR_TYPE_ROCE@GOTPAGE
Lloh21:
	ldr	x8, [x8, _RDMA_AH_ATTR_TYPE_ROCE@GOTPAGEOFF]
Lloh22:
	ldr	w8, [x8]
	mov	x24, x22
	str	w8, [x24, #88]!
	stur	w0, [x24, #-84]
Lloh23:
	adrp	x8, _IB_MIG_ARMED@GOTPAGE
Lloh24:
	ldr	x8, [x8, _IB_MIG_ARMED@GOTPAGEOFF]
Lloh25:
	ldr	w8, [x8]
	str	w8, [x24, #28]
	ldr	x8, [x23, #32]
Lloh26:
	adrp	x9, _IB_QPT_UD@GOTPAGE
Lloh27:
	ldr	x9, [x9, _IB_QPT_UD@GOTPAGEOFF]
Lloh28:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_13
; %bb.12:
Lloh29:
	adrp	x8, _V2_QKEY_VAL@GOTPAGE
Lloh30:
	ldr	x8, [x8, _V2_QKEY_VAL@GOTPAGEOFF]
Lloh31:
	ldr	w8, [x8]
	str	w8, [x22, #112]
LBB0_13:
	ldr	w0, [sp, #48]
Lloh32:
	adrp	x8, _V2_QPC_BYTE_108_RX_REQ_EPSN_M@GOTPAGE
Lloh33:
	ldr	x8, [x8, _V2_QPC_BYTE_108_RX_REQ_EPSN_M@GOTPAGEOFF]
Lloh34:
	ldr	w1, [x8]
Lloh35:
	adrp	x8, _V2_QPC_BYTE_108_RX_REQ_EPSN_S@GOTPAGE
Lloh36:
	ldr	x8, [x8, _V2_QPC_BYTE_108_RX_REQ_EPSN_S@GOTPAGEOFF]
Lloh37:
	ldr	w2, [x8]
	bl	_roce_get_field
	str	w0, [x22, #8]
	ldr	w0, [sp, #44]
Lloh38:
	adrp	x8, _V2_QPC_BYTE_172_SQ_CUR_PSN_M@GOTPAGE
Lloh39:
	ldr	x8, [x8, _V2_QPC_BYTE_172_SQ_CUR_PSN_M@GOTPAGEOFF]
Lloh40:
	ldr	w1, [x8]
Lloh41:
	adrp	x8, _V2_QPC_BYTE_172_SQ_CUR_PSN_S@GOTPAGE
Lloh42:
	ldr	x8, [x8, _V2_QPC_BYTE_172_SQ_CUR_PSN_S@GOTPAGEOFF]
Lloh43:
	ldr	w2, [x8]
	bl	_roce_get_field
                                        ; kill: def $w0 killed $w0 def $x0
	sxtw	x8, w0
	str	x8, [x22, #104]
	ldr	w0, [sp, #40]
Lloh44:
	adrp	x8, _V2_QPC_BYTE_56_DQPN_M@GOTPAGE
Lloh45:
	ldr	x8, [x8, _V2_QPC_BYTE_56_DQPN_M@GOTPAGEOFF]
Lloh46:
	ldr	w1, [x8]
Lloh47:
	adrp	x8, _V2_QPC_BYTE_56_DQPN_S@GOTPAGE
Lloh48:
	ldr	x8, [x8, _V2_QPC_BYTE_56_DQPN_S@GOTPAGEOFF]
Lloh49:
	ldr	w2, [x8]
	bl	_roce_get_field
                                        ; kill: def $w0 killed $w0 def $x0
	sxtw	x8, w0
	str	x8, [x22, #96]
	ldr	w0, [sp, #36]
Lloh50:
	adrp	x8, _V2_QPC_BYTE_76_RRE_S@GOTPAGE
Lloh51:
	ldr	x8, [x8, _V2_QPC_BYTE_76_RRE_S@GOTPAGEOFF]
Lloh52:
	ldr	w1, [x8]
	bl	_roce_get_bit
Lloh53:
	adrp	x8, _V2_QP_RRE_S@GOTPAGE
Lloh54:
	ldr	x8, [x8, _V2_QP_RRE_S@GOTPAGEOFF]
Lloh55:
	ldr	w8, [x8]
	lsl	w25, w0, w8
	ldr	w0, [sp, #36]
Lloh56:
	adrp	x8, _V2_QPC_BYTE_76_RWE_S@GOTPAGE
Lloh57:
	ldr	x8, [x8, _V2_QPC_BYTE_76_RWE_S@GOTPAGEOFF]
Lloh58:
	ldr	w1, [x8]
	bl	_roce_get_bit
Lloh59:
	adrp	x8, _V2_QP_RWE_S@GOTPAGE
Lloh60:
	ldr	x8, [x8, _V2_QP_RWE_S@GOTPAGEOFF]
Lloh61:
	ldr	w8, [x8]
	lsl	w8, w0, w8
	orr	w25, w8, w25
	ldr	w0, [sp, #36]
Lloh62:
	adrp	x8, _V2_QPC_BYTE_76_ATE_S@GOTPAGE
Lloh63:
	ldr	x8, [x8, _V2_QPC_BYTE_76_ATE_S@GOTPAGEOFF]
Lloh64:
	ldr	w1, [x8]
	bl	_roce_get_bit
Lloh65:
	adrp	x8, _V2_QP_ATE_S@GOTPAGE
Lloh66:
	ldr	x8, [x8, _V2_QP_ATE_S@GOTPAGEOFF]
Lloh67:
	ldr	w8, [x8]
	lsl	w8, w0, w8
	orr	w8, w25, w8
	str	w8, [x22, #12]
	ldr	x8, [x23, #32]
Lloh68:
	adrp	x9, _IB_QPT_RC@GOTPAGE
Lloh69:
	ldr	x9, [x9, _IB_QPT_RC@GOTPAGEOFF]
Lloh70:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_15
; %bb.14:
Lloh71:
	adrp	x9, _IB_QPT_UC@GOTPAGE
Lloh72:
	ldr	x9, [x9, _IB_QPT_UC@GOTPAGEOFF]
Lloh73:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_16
LBB0_15:
	mov	x0, x24
	bl	_rdma_ah_retrieve_grh
	mov	x25, x0
	ldr	w0, [sp, #8]
Lloh74:
	adrp	x8, _V2_QPC_BYTE_28_SL_M@GOTPAGE
Lloh75:
	ldr	x8, [x8, _V2_QPC_BYTE_28_SL_M@GOTPAGEOFF]
Lloh76:
	ldr	w1, [x8]
Lloh77:
	adrp	x8, _V2_QPC_BYTE_28_SL_S@GOTPAGE
Lloh78:
	ldr	x8, [x8, _V2_QPC_BYTE_28_SL_S@GOTPAGEOFF]
Lloh79:
	ldr	w2, [x8]
	bl	_roce_get_field
	mov	x1, x0
	mov	x0, x24
	bl	_rdma_ah_set_sl
	ldr	w0, [sp, #8]
Lloh80:
	adrp	x8, _V2_QPC_BYTE_28_FL_M@GOTPAGE
Lloh81:
	ldr	x8, [x8, _V2_QPC_BYTE_28_FL_M@GOTPAGEOFF]
Lloh82:
	ldr	w1, [x8]
Lloh83:
	adrp	x8, _V2_QPC_BYTE_28_FL_S@GOTPAGE
Lloh84:
	ldr	x8, [x8, _V2_QPC_BYTE_28_FL_S@GOTPAGEOFF]
Lloh85:
	ldr	w2, [x8]
	bl	_roce_get_field
	str	w0, [x25]
	ldr	w0, [sp, #32]
Lloh86:
	adrp	x8, _V2_QPC_BYTE_20_SGID_IDX_M@GOTPAGE
Lloh87:
	ldr	x8, [x8, _V2_QPC_BYTE_20_SGID_IDX_M@GOTPAGEOFF]
Lloh88:
	ldr	w1, [x8]
Lloh89:
	adrp	x8, _V2_QPC_BYTE_20_SGID_IDX_S@GOTPAGE
Lloh90:
	ldr	x8, [x8, _V2_QPC_BYTE_20_SGID_IDX_S@GOTPAGEOFF]
Lloh91:
	ldr	w2, [x8]
	bl	_roce_get_field
	str	w0, [x25, #4]
	ldr	w0, [sp, #28]
Lloh92:
	adrp	x8, _V2_QPC_BYTE_24_HOP_LIMIT_M@GOTPAGE
Lloh93:
	ldr	x8, [x8, _V2_QPC_BYTE_24_HOP_LIMIT_M@GOTPAGEOFF]
Lloh94:
	ldr	w1, [x8]
Lloh95:
	adrp	x8, _V2_QPC_BYTE_24_HOP_LIMIT_S@GOTPAGE
Lloh96:
	ldr	x8, [x8, _V2_QPC_BYTE_24_HOP_LIMIT_S@GOTPAGEOFF]
Lloh97:
	ldr	w2, [x8]
	bl	_roce_get_field
	str	w0, [x25, #8]
	ldr	w0, [sp, #28]
Lloh98:
	adrp	x8, _V2_QPC_BYTE_24_TC_M@GOTPAGE
Lloh99:
	ldr	x8, [x8, _V2_QPC_BYTE_24_TC_M@GOTPAGEOFF]
Lloh100:
	ldr	w1, [x8]
Lloh101:
	adrp	x8, _V2_QPC_BYTE_24_TC_S@GOTPAGE
Lloh102:
	ldr	x8, [x8, _V2_QPC_BYTE_24_TC_S@GOTPAGEOFF]
Lloh103:
	ldr	w2, [x8]
	bl	_roce_get_field
	str	w0, [x25, #12]
	ldr	w0, [x25, #16]
	ldr	w1, [sp, #24]
	mov	w2, #4
	bl	_memcpy
LBB0_16:
	ldr	x8, [x23, #24]
	add	x8, x8, #1
	stp	xzr, x8, [x22, #72]
	ldr	w0, [sp, #20]
Lloh104:
	adrp	x8, _V2_QPC_BYTE_208_SR_MAX_M@GOTPAGE
Lloh105:
	ldr	x8, [x8, _V2_QPC_BYTE_208_SR_MAX_M@GOTPAGEOFF]
Lloh106:
	ldr	w1, [x8]
Lloh107:
	adrp	x8, _V2_QPC_BYTE_208_SR_MAX_S@GOTPAGE
Lloh108:
	ldr	x8, [x8, _V2_QPC_BYTE_208_SR_MAX_S@GOTPAGEOFF]
Lloh109:
	ldr	w2, [x8]
	bl	_roce_get_field
	mov	w24, #1
	lsl	w8, w24, w0
	str	w8, [x22, #16]
	ldr	w0, [sp, #16]
Lloh110:
	adrp	x8, _V2_QPC_BYTE_140_RR_MAX_M@GOTPAGE
Lloh111:
	ldr	x8, [x8, _V2_QPC_BYTE_140_RR_MAX_M@GOTPAGEOFF]
Lloh112:
	ldr	w1, [x8]
Lloh113:
	adrp	x8, _V2_QPC_BYTE_140_RR_MAX_S@GOTPAGE
Lloh114:
	ldr	x8, [x8, _V2_QPC_BYTE_140_RR_MAX_S@GOTPAGEOFF]
Lloh115:
	ldr	w2, [x8]
	bl	_roce_get_field
	lsl	w8, w24, w0
	str	w8, [x22, #20]
	ldr	w0, [sp, #12]
Lloh116:
	adrp	x8, _V2_QPC_BYTE_80_MIN_RNR_TIME_M@GOTPAGE
Lloh117:
	ldr	x8, [x8, _V2_QPC_BYTE_80_MIN_RNR_TIME_M@GOTPAGEOFF]
Lloh118:
	ldr	w1, [x8]
Lloh119:
	adrp	x8, _V2_QPC_BYTE_80_MIN_RNR_TIME_S@GOTPAGE
Lloh120:
	ldr	x8, [x8, _V2_QPC_BYTE_80_MIN_RNR_TIME_S@GOTPAGEOFF]
Lloh121:
	ldr	w2, [x8]
	bl	_roce_get_field
                                        ; kill: def $w0 killed $w0 def $x0
	sxtw	x8, w0
	str	x8, [x22, #64]
	ldr	w0, [sp, #8]
Lloh122:
	adrp	x8, _V2_QPC_BYTE_28_AT_M@GOTPAGE
Lloh123:
	ldr	x8, [x8, _V2_QPC_BYTE_28_AT_M@GOTPAGEOFF]
Lloh124:
	ldr	w1, [x8]
Lloh125:
	adrp	x8, _V2_QPC_BYTE_28_AT_S@GOTPAGE
Lloh126:
	ldr	x8, [x8, _V2_QPC_BYTE_28_AT_S@GOTPAGEOFF]
Lloh127:
	ldr	w2, [x8]
	bl	_roce_get_field
                                        ; kill: def $w0 killed $w0 def $x0
	sxtw	x8, w0
	str	x8, [x22, #56]
	ldr	w0, [sp, #4]
Lloh128:
	adrp	x8, _V2_QPC_BYTE_212_RETRY_CNT_M@GOTPAGE
Lloh129:
	ldr	x8, [x8, _V2_QPC_BYTE_212_RETRY_CNT_M@GOTPAGEOFF]
Lloh130:
	ldr	w1, [x8]
Lloh131:
	adrp	x8, _V2_QPC_BYTE_212_RETRY_CNT_S@GOTPAGE
Lloh132:
	ldr	x8, [x8, _V2_QPC_BYTE_212_RETRY_CNT_S@GOTPAGEOFF]
Lloh133:
	ldr	w2, [x8]
	bl	_roce_get_field
	str	w0, [x22, #24]
	ldr	w0, [sp]
	bl	_le32_to_cpu
	str	w0, [x22, #48]
	ldr	w8, [x22]
	b	LBB0_2
LBB0_17:
Lloh134:
	adrp	x1, l_.str.1@PAGE
Lloh135:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_6
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh68, Lloh69, Lloh70
	.loh AdrpLdrGotLdr	Lloh65, Lloh66, Lloh67
	.loh AdrpLdrGotLdr	Lloh62, Lloh63, Lloh64
	.loh AdrpLdrGotLdr	Lloh59, Lloh60, Lloh61
	.loh AdrpLdrGotLdr	Lloh56, Lloh57, Lloh58
	.loh AdrpLdrGotLdr	Lloh53, Lloh54, Lloh55
	.loh AdrpLdrGotLdr	Lloh50, Lloh51, Lloh52
	.loh AdrpLdrGotLdr	Lloh47, Lloh48, Lloh49
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh71, Lloh72, Lloh73
	.loh AdrpLdrGotLdr	Lloh101, Lloh102, Lloh103
	.loh AdrpLdrGotLdr	Lloh98, Lloh99, Lloh100
	.loh AdrpLdrGotLdr	Lloh95, Lloh96, Lloh97
	.loh AdrpLdrGotLdr	Lloh92, Lloh93, Lloh94
	.loh AdrpLdrGotLdr	Lloh89, Lloh90, Lloh91
	.loh AdrpLdrGotLdr	Lloh86, Lloh87, Lloh88
	.loh AdrpLdrGotLdr	Lloh83, Lloh84, Lloh85
	.loh AdrpLdrGotLdr	Lloh80, Lloh81, Lloh82
	.loh AdrpLdrGotLdr	Lloh77, Lloh78, Lloh79
	.loh AdrpLdrGotLdr	Lloh74, Lloh75, Lloh76
	.loh AdrpLdrGotLdr	Lloh131, Lloh132, Lloh133
	.loh AdrpLdrGotLdr	Lloh128, Lloh129, Lloh130
	.loh AdrpLdrGotLdr	Lloh125, Lloh126, Lloh127
	.loh AdrpLdrGotLdr	Lloh122, Lloh123, Lloh124
	.loh AdrpLdrGotLdr	Lloh119, Lloh120, Lloh121
	.loh AdrpLdrGotLdr	Lloh116, Lloh117, Lloh118
	.loh AdrpLdrGotLdr	Lloh113, Lloh114, Lloh115
	.loh AdrpLdrGotLdr	Lloh110, Lloh111, Lloh112
	.loh AdrpLdrGotLdr	Lloh107, Lloh108, Lloh109
	.loh AdrpLdrGotLdr	Lloh104, Lloh105, Lloh106
	.loh AdrpAdd	Lloh134, Lloh135
	.cfi_endproc
                                        ; -- End function
	.comm	_IB_QPS_RESET,4,2               ; @IB_QPS_RESET
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"query qpc error\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_V2_QPC_BYTE_60_QP_ST_M,4,2     ; @V2_QPC_BYTE_60_QP_ST_M
	.comm	_V2_QPC_BYTE_60_QP_ST_S,4,2     ; @V2_QPC_BYTE_60_QP_ST_S
l_.str.1:                               ; @.str.1
	.asciz	"Illegal ib_qp_state\n"

	.comm	_V2_QPC_BYTE_24_MTU_M,4,2       ; @V2_QPC_BYTE_24_MTU_M
	.comm	_V2_QPC_BYTE_24_MTU_S,4,2       ; @V2_QPC_BYTE_24_MTU_S
	.comm	_IB_MIG_ARMED,4,2               ; @IB_MIG_ARMED
	.comm	_RDMA_AH_ATTR_TYPE_ROCE,4,2     ; @RDMA_AH_ATTR_TYPE_ROCE
	.comm	_IB_QPT_UD,8,3                  ; @IB_QPT_UD
	.comm	_V2_QKEY_VAL,4,2                ; @V2_QKEY_VAL
	.comm	_V2_QPC_BYTE_108_RX_REQ_EPSN_M,4,2 ; @V2_QPC_BYTE_108_RX_REQ_EPSN_M
	.comm	_V2_QPC_BYTE_108_RX_REQ_EPSN_S,4,2 ; @V2_QPC_BYTE_108_RX_REQ_EPSN_S
	.comm	_V2_QPC_BYTE_172_SQ_CUR_PSN_M,4,2 ; @V2_QPC_BYTE_172_SQ_CUR_PSN_M
	.comm	_V2_QPC_BYTE_172_SQ_CUR_PSN_S,4,2 ; @V2_QPC_BYTE_172_SQ_CUR_PSN_S
	.comm	_V2_QPC_BYTE_56_DQPN_M,4,2      ; @V2_QPC_BYTE_56_DQPN_M
	.comm	_V2_QPC_BYTE_56_DQPN_S,4,2      ; @V2_QPC_BYTE_56_DQPN_S
	.comm	_V2_QPC_BYTE_76_RRE_S,4,2       ; @V2_QPC_BYTE_76_RRE_S
	.comm	_V2_QP_RRE_S,4,2                ; @V2_QP_RRE_S
	.comm	_V2_QPC_BYTE_76_RWE_S,4,2       ; @V2_QPC_BYTE_76_RWE_S
	.comm	_V2_QP_RWE_S,4,2                ; @V2_QP_RWE_S
	.comm	_V2_QPC_BYTE_76_ATE_S,4,2       ; @V2_QPC_BYTE_76_ATE_S
	.comm	_V2_QP_ATE_S,4,2                ; @V2_QP_ATE_S
	.comm	_IB_QPT_RC,8,3                  ; @IB_QPT_RC
	.comm	_IB_QPT_UC,8,3                  ; @IB_QPT_UC
	.comm	_V2_QPC_BYTE_28_SL_M,4,2        ; @V2_QPC_BYTE_28_SL_M
	.comm	_V2_QPC_BYTE_28_SL_S,4,2        ; @V2_QPC_BYTE_28_SL_S
	.comm	_V2_QPC_BYTE_28_FL_M,4,2        ; @V2_QPC_BYTE_28_FL_M
	.comm	_V2_QPC_BYTE_28_FL_S,4,2        ; @V2_QPC_BYTE_28_FL_S
	.comm	_V2_QPC_BYTE_20_SGID_IDX_M,4,2  ; @V2_QPC_BYTE_20_SGID_IDX_M
	.comm	_V2_QPC_BYTE_20_SGID_IDX_S,4,2  ; @V2_QPC_BYTE_20_SGID_IDX_S
	.comm	_V2_QPC_BYTE_24_HOP_LIMIT_M,4,2 ; @V2_QPC_BYTE_24_HOP_LIMIT_M
	.comm	_V2_QPC_BYTE_24_HOP_LIMIT_S,4,2 ; @V2_QPC_BYTE_24_HOP_LIMIT_S
	.comm	_V2_QPC_BYTE_24_TC_M,4,2        ; @V2_QPC_BYTE_24_TC_M
	.comm	_V2_QPC_BYTE_24_TC_S,4,2        ; @V2_QPC_BYTE_24_TC_S
	.comm	_V2_QPC_BYTE_208_SR_MAX_M,4,2   ; @V2_QPC_BYTE_208_SR_MAX_M
	.comm	_V2_QPC_BYTE_208_SR_MAX_S,4,2   ; @V2_QPC_BYTE_208_SR_MAX_S
	.comm	_V2_QPC_BYTE_140_RR_MAX_M,4,2   ; @V2_QPC_BYTE_140_RR_MAX_M
	.comm	_V2_QPC_BYTE_140_RR_MAX_S,4,2   ; @V2_QPC_BYTE_140_RR_MAX_S
	.comm	_V2_QPC_BYTE_80_MIN_RNR_TIME_M,4,2 ; @V2_QPC_BYTE_80_MIN_RNR_TIME_M
	.comm	_V2_QPC_BYTE_80_MIN_RNR_TIME_S,4,2 ; @V2_QPC_BYTE_80_MIN_RNR_TIME_S
	.comm	_V2_QPC_BYTE_28_AT_M,4,2        ; @V2_QPC_BYTE_28_AT_M
	.comm	_V2_QPC_BYTE_28_AT_S,4,2        ; @V2_QPC_BYTE_28_AT_S
	.comm	_V2_QPC_BYTE_212_RETRY_CNT_M,4,2 ; @V2_QPC_BYTE_212_RETRY_CNT_M
	.comm	_V2_QPC_BYTE_212_RETRY_CNT_S,4,2 ; @V2_QPC_BYTE_212_RETRY_CNT_S
	.no_dead_strip	_hns_roce_v2_query_qp
.subsections_via_symbols
