	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function modify_qp_rtr_to_rts
_modify_qp_rtr_to_rts:                  ## @modify_qp_rtr_to_rts
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, -80(%rbp)                  ## 8-byte Spill
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	movl	%edx, %r14d
	movq	%rdi, %rbx
	movl	8(%rdi), %edi
	callq	_to_hr_dev
	movq	%rax, %r12
	movq	%rbx, -72(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rdi
	callq	_to_hr_qp
	movq	%rax, %r13
	movq	8(%r12), %r15
	movl	$0, -48(%rbp)
	movl	$0, -44(%rbp)
	movq	%rax, %rbx
	addq	$20, %rbx
	leaq	-44(%rbp), %rcx
	movq	%r12, %rdi
	movq	%rbx, %rsi
	xorl	%edx, %edx
	movl	$1, %r8d
	xorl	%r9d, %r9d
	callq	_hns_roce_mtr_find
	testl	%eax, %eax
	jle	LBB0_1
## %bb.4:
	movq	%r13, -64(%rbp)                 ## 8-byte Spill
	movl	16(%r13), %eax
	testl	%eax, %eax
	je	LBB0_7
## %bb.5:
	movq	_PAGE_SHIFT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	addl	(%r12), %ecx
	movl	$1, %esi
                                        ## kill: def $cl killed $cl killed $ecx
	shll	%cl, %esi
	cltd
	idivl	%esi
	leaq	-48(%rbp), %rcx
	movq	%r12, %rdi
	movq	%rbx, %rsi
	movl	%eax, %edx
	movl	$1, %r8d
	xorl	%r9d, %r9d
	callq	_hns_roce_mtr_find
	testl	%eax, %eax
	jle	LBB0_6
LBB0_7:
	movq	_IB_QP_ALT_PATH@GOTPCREL(%rip), %rax
	testl	%r14d, (%rax)
	jne	LBB0_9
## %bb.8:
	movq	_IB_QP_PATH_MIG_STATE@GOTPCREL(%rip), %rax
	testl	%r14d, (%rax)
	je	LBB0_10
LBB0_9:
	leaq	L_.str.2(%rip), %rsi
	movq	%r15, %rdi
	movl	%r14d, %edx
	jmp	LBB0_3
LBB0_1:
	movl	(%r13), %edx
	leaq	L_.str(%rip), %rsi
	jmp	LBB0_2
LBB0_6:
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %edx
	leaq	L_.str.1(%rip), %rsi
LBB0_2:
	movq	%r15, %rdi
LBB0_3:
	callq	_dev_err
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_18:
                                        ## kill: def $eax killed $eax killed $rax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	movl	-44(%rbp), %edi
	movq	_PAGE_ADDR_SHIFT@GOTPCREL(%rip), %rbx
	movb	(%rbx), %cl
	sarl	%cl, %edi
	callq	_cpu_to_le32
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movq	%rax, 56(%rcx)
	movl	48(%rcx), %edi
	movq	_V2_QPC_BYTE_168_SQ_CUR_BLK_ADDR_M@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movq	_V2_QPC_BYTE_168_SQ_CUR_BLK_ADDR_S@GOTPCREL(%rip), %r12
	movl	(%r12), %edx
	movl	-44(%rbp), %eax
	movb	(%rbx), %cl
	sarl	%cl, %eax
	movl	%eax, %ecx
	callq	_roce_set_field
	movq	-80(%rbp), %r13                 ## 8-byte Reload
	movq	$0, 56(%r13)
	movl	48(%r13), %edi
	movl	(%r15), %esi
	movl	(%r12), %edx
	xorl	%ecx, %ecx
	callq	_roce_set_field
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	movq	(%rbx), %r8
	movq	_IB_QPT_GSI@GOTPCREL(%rip), %r15
	movq	(%r15), %rcx
	cmpq	%rcx, %r8
	movq	-64(%rbp), %r14                 ## 8-byte Reload
	je	LBB0_13
## %bb.11:
	movq	8(%r14), %rax
	movq	_HNS_ROCE_V2_UC_RC_SGE_NUM_IN_WQE@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rax
	jle	LBB0_12
LBB0_13:
	movl	-48(%rbp), %edi
	movq	_PAGE_ADDR_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	sarl	%cl, %edi
	callq	_cpu_to_le32
	movq	(%rbx), %r8
	movq	(%r15), %rcx
	jmp	LBB0_14
LBB0_12:
	xorl	%eax, %eax
LBB0_14:
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	movq	%rax, 40(%rdx)
	movl	32(%rdx), %edi
	movq	_V2_QPC_BYTE_184_SQ_CUR_SGE_BLK_ADDR_M@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movq	_V2_QPC_BYTE_184_SQ_CUR_SGE_BLK_ADDR_S@GOTPCREL(%rip), %r12
	movl	(%r12), %edx
	cmpq	%rcx, %r8
	je	LBB0_16
## %bb.15:
	movq	8(%r14), %rcx
	movq	_HNS_ROCE_V2_UC_RC_SGE_NUM_IN_WQE@GOTPCREL(%rip), %r8
	xorl	%eax, %eax
	cmpq	(%r8), %rcx
	jle	LBB0_17
LBB0_16:
	movl	-48(%rbp), %eax
	movq	_PAGE_ADDR_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	sarl	%cl, %eax
LBB0_17:
	movl	%eax, %ecx
	callq	_roce_set_field
	movq	$0, 40(%r13)
	movl	32(%r13), %edi
	movl	(%r15), %esi
	movl	(%r12), %edx
	xorl	%ecx, %ecx
	callq	_roce_set_field
	movl	-44(%rbp), %edi
	movq	_PAGE_ADDR_SHIFT@GOTPCREL(%rip), %rbx
	movb	(%rbx), %cl
	sarl	%cl, %edi
	callq	_cpu_to_le32
	movq	-56(%rbp), %r12                 ## 8-byte Reload
	movq	%rax, 24(%r12)
	movl	20(%r12), %edi
	movq	_V2_QPC_BYTE_232_RX_SQ_CUR_BLK_ADDR_M@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movq	_V2_QPC_BYTE_232_RX_SQ_CUR_BLK_ADDR_S@GOTPCREL(%rip), %r14
	movl	(%r14), %edx
	movl	-44(%rbp), %eax
	movb	(%rbx), %cl
	sarl	%cl, %eax
	movl	%eax, %ecx
	callq	_roce_set_field
	movq	$0, 24(%r13)
	movl	20(%r13), %edi
	movl	(%r15), %esi
	movl	(%r14), %edx
	xorl	%ecx, %ecx
	callq	_roce_set_field
	movl	20(%r13), %edi
	movq	_V2_QPC_BYTE_232_IRRL_SGE_IDX_M@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_V2_QPC_BYTE_232_IRRL_SGE_IDX_S@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%ecx, %ecx
	callq	_roce_set_field
	movl	16(%r13), %edi
	movq	_V2_QPC_BYTE_240_RX_ACK_MSN_M@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_V2_QPC_BYTE_240_RX_ACK_MSN_S@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%ecx, %ecx
	callq	_roce_set_field
	movl	8(%r13), %edi
	movq	_V2_QPC_BYTE_248_ACK_LAST_OPTYPE_M@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_V2_QPC_BYTE_248_ACK_LAST_OPTYPE_S@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%ecx, %ecx
	callq	_roce_set_field
	movl	8(%r13), %edi
	movq	_V2_QPC_BYTE_248_IRRL_PSN_VLD_S@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%edx, %edx
	callq	_roce_set_bit
	movl	8(%r13), %edi
	movq	_V2_QPC_BYTE_248_IRRL_PSN_M@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_V2_QPC_BYTE_248_IRRL_PSN_S@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%ecx, %ecx
	callq	_roce_set_field
	movl	16(%r13), %edi
	movq	_V2_QPC_BYTE_240_IRRL_TAIL_REAL_M@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_V2_QPC_BYTE_240_IRRL_TAIL_REAL_S@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%ecx, %ecx
	callq	_roce_set_field
	movl	12(%r13), %edi
	movq	_V2_QPC_BYTE_220_RETRY_MSG_MSN_M@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_V2_QPC_BYTE_220_RETRY_MSG_MSN_S@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%ecx, %ecx
	callq	_roce_set_field
	movl	8(%r13), %edi
	movq	_V2_QPC_BYTE_248_RNR_RETRY_FLAG_S@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%edx, %edx
	callq	_roce_set_bit
	movl	4(%r13), %edi
	movq	_V2_QPC_BYTE_212_CHECK_FLG_M@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_V2_QPC_BYTE_212_CHECK_FLG_S@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%ecx, %ecx
	callq	_roce_set_field
	movl	4(%r12), %edi
	movq	_V2_QPC_BYTE_212_LSN_M@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	movq	_V2_QPC_BYTE_212_LSN_S@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edx
	movl	$256, %ecx                      ## imm = 0x100
	callq	_roce_set_field
	movl	4(%r13), %edi
	movl	(%r14), %esi
	movl	(%rbx), %edx
	xorl	%ecx, %ecx
	callq	_roce_set_field
	movl	(%r13), %edi
	movq	_V2_QPC_BYTE_196_IRRL_HEAD_M@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_V2_QPC_BYTE_196_IRRL_HEAD_S@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%ecx, %ecx
	callq	_roce_set_field
	xorl	%eax, %eax
	jmp	LBB0_18
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"qp(0x%lx) buf pa find failed\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_PAGE_SHIFT,4,2                 ## @PAGE_SHIFT
L_.str.1:                               ## @.str.1
	.asciz	"qp(0x%lx) sge pa find failed\n"

	.comm	_IB_QP_ALT_PATH,4,2             ## @IB_QP_ALT_PATH
	.comm	_IB_QP_PATH_MIG_STATE,4,2       ## @IB_QP_PATH_MIG_STATE
L_.str.2:                               ## @.str.2
	.asciz	"RTR2RTS attr_mask (0x%x)error\n"

	.comm	_PAGE_ADDR_SHIFT,4,2            ## @PAGE_ADDR_SHIFT
	.comm	_V2_QPC_BYTE_168_SQ_CUR_BLK_ADDR_M,4,2 ## @V2_QPC_BYTE_168_SQ_CUR_BLK_ADDR_M
	.comm	_V2_QPC_BYTE_168_SQ_CUR_BLK_ADDR_S,4,2 ## @V2_QPC_BYTE_168_SQ_CUR_BLK_ADDR_S
	.comm	_IB_QPT_GSI,8,3                 ## @IB_QPT_GSI
	.comm	_HNS_ROCE_V2_UC_RC_SGE_NUM_IN_WQE,8,3 ## @HNS_ROCE_V2_UC_RC_SGE_NUM_IN_WQE
	.comm	_V2_QPC_BYTE_184_SQ_CUR_SGE_BLK_ADDR_M,4,2 ## @V2_QPC_BYTE_184_SQ_CUR_SGE_BLK_ADDR_M
	.comm	_V2_QPC_BYTE_184_SQ_CUR_SGE_BLK_ADDR_S,4,2 ## @V2_QPC_BYTE_184_SQ_CUR_SGE_BLK_ADDR_S
	.comm	_V2_QPC_BYTE_232_RX_SQ_CUR_BLK_ADDR_M,4,2 ## @V2_QPC_BYTE_232_RX_SQ_CUR_BLK_ADDR_M
	.comm	_V2_QPC_BYTE_232_RX_SQ_CUR_BLK_ADDR_S,4,2 ## @V2_QPC_BYTE_232_RX_SQ_CUR_BLK_ADDR_S
	.comm	_V2_QPC_BYTE_232_IRRL_SGE_IDX_M,4,2 ## @V2_QPC_BYTE_232_IRRL_SGE_IDX_M
	.comm	_V2_QPC_BYTE_232_IRRL_SGE_IDX_S,4,2 ## @V2_QPC_BYTE_232_IRRL_SGE_IDX_S
	.comm	_V2_QPC_BYTE_240_RX_ACK_MSN_M,4,2 ## @V2_QPC_BYTE_240_RX_ACK_MSN_M
	.comm	_V2_QPC_BYTE_240_RX_ACK_MSN_S,4,2 ## @V2_QPC_BYTE_240_RX_ACK_MSN_S
	.comm	_V2_QPC_BYTE_248_ACK_LAST_OPTYPE_M,4,2 ## @V2_QPC_BYTE_248_ACK_LAST_OPTYPE_M
	.comm	_V2_QPC_BYTE_248_ACK_LAST_OPTYPE_S,4,2 ## @V2_QPC_BYTE_248_ACK_LAST_OPTYPE_S
	.comm	_V2_QPC_BYTE_248_IRRL_PSN_VLD_S,4,2 ## @V2_QPC_BYTE_248_IRRL_PSN_VLD_S
	.comm	_V2_QPC_BYTE_248_IRRL_PSN_M,4,2 ## @V2_QPC_BYTE_248_IRRL_PSN_M
	.comm	_V2_QPC_BYTE_248_IRRL_PSN_S,4,2 ## @V2_QPC_BYTE_248_IRRL_PSN_S
	.comm	_V2_QPC_BYTE_240_IRRL_TAIL_REAL_M,4,2 ## @V2_QPC_BYTE_240_IRRL_TAIL_REAL_M
	.comm	_V2_QPC_BYTE_240_IRRL_TAIL_REAL_S,4,2 ## @V2_QPC_BYTE_240_IRRL_TAIL_REAL_S
	.comm	_V2_QPC_BYTE_220_RETRY_MSG_MSN_M,4,2 ## @V2_QPC_BYTE_220_RETRY_MSG_MSN_M
	.comm	_V2_QPC_BYTE_220_RETRY_MSG_MSN_S,4,2 ## @V2_QPC_BYTE_220_RETRY_MSG_MSN_S
	.comm	_V2_QPC_BYTE_248_RNR_RETRY_FLAG_S,4,2 ## @V2_QPC_BYTE_248_RNR_RETRY_FLAG_S
	.comm	_V2_QPC_BYTE_212_CHECK_FLG_M,4,2 ## @V2_QPC_BYTE_212_CHECK_FLG_M
	.comm	_V2_QPC_BYTE_212_CHECK_FLG_S,4,2 ## @V2_QPC_BYTE_212_CHECK_FLG_S
	.comm	_V2_QPC_BYTE_212_LSN_M,4,2      ## @V2_QPC_BYTE_212_LSN_M
	.comm	_V2_QPC_BYTE_212_LSN_S,4,2      ## @V2_QPC_BYTE_212_LSN_S
	.comm	_V2_QPC_BYTE_196_IRRL_HEAD_M,4,2 ## @V2_QPC_BYTE_196_IRRL_HEAD_M
	.comm	_V2_QPC_BYTE_196_IRRL_HEAD_S,4,2 ## @V2_QPC_BYTE_196_IRRL_HEAD_S
	.no_dead_strip	_modify_qp_rtr_to_rts
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function modify_qp_rtr_to_rts
_modify_qp_rtr_to_rts:                  ; @modify_qp_rtr_to_rts
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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, x4
	mov	x20, x3
	mov	x23, x2
	mov	x22, x0
	ldr	w0, [x0, #8]
	bl	_to_hr_dev
	mov	x25, x0
	mov	x0, x22
	bl	_to_hr_qp
	mov	x21, x0
	ldr	x24, [x25, #8]
	str	xzr, [sp, #8]
	add	x26, x0, #20
	add	x3, sp, #8
	mov	x0, x25
	mov	x1, x26
	mov	w2, #0
	mov	w4, #1
	mov	x5, #0
	bl	_hns_roce_mtr_find
	cmp	w0, #0
	b.le	LBB0_6
; %bb.1:
	ldr	w8, [x21, #16]
	cbz	w8, LBB0_3
; %bb.2:
Lloh0:
	adrp	x9, _PAGE_SHIFT@GOTPAGE
Lloh1:
	ldr	x9, [x9, _PAGE_SHIFT@GOTPAGEOFF]
	ldr	w10, [x25]
Lloh2:
	ldr	w9, [x9]
	add	w9, w9, w10
	mov	w10, #1
	lsl	w9, w10, w9
	sdiv	w2, w8, w9
	add	x3, sp, #12
	mov	x0, x25
	mov	x1, x26
	mov	w4, #1
	mov	x5, #0
	bl	_hns_roce_mtr_find
	cmp	w0, #0
	b.le	LBB0_7
LBB0_3:
Lloh3:
	adrp	x8, _IB_QP_ALT_PATH@GOTPAGE
Lloh4:
	ldr	x8, [x8, _IB_QP_ALT_PATH@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	tst	w8, w23
	b.ne	LBB0_5
; %bb.4:
Lloh6:
	adrp	x8, _IB_QP_PATH_MIG_STATE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _IB_QP_PATH_MIG_STATE@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	tst	w8, w23
	b.eq	LBB0_11
LBB0_5:
Lloh9:
	adrp	x1, l_.str.2@PAGE
Lloh10:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x24
	mov	x2, x23
	b	LBB0_9
LBB0_6:
	ldr	w2, [x21]
Lloh11:
	adrp	x1, l_.str@PAGE
Lloh12:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_8
LBB0_7:
	ldr	w2, [x21]
Lloh13:
	adrp	x1, l_.str.1@PAGE
Lloh14:
	add	x1, x1, l_.str.1@PAGEOFF
LBB0_8:
	mov	x0, x24
LBB0_9:
	bl	_dev_err
Lloh15:
	adrp	x8, _EINVAL@GOTPAGE
Lloh16:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_10:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_11:
	ldr	w8, [sp, #8]
Lloh18:
	adrp	x23, _PAGE_ADDR_SHIFT@GOTPAGE
Lloh19:
	ldr	x23, [x23, _PAGE_ADDR_SHIFT@GOTPAGEOFF]
	ldr	w9, [x23]
	asr	w0, w8, w9
	bl	_cpu_to_le32
	str	x0, [x20, #56]
	ldr	w0, [x20, #48]
Lloh20:
	adrp	x24, _V2_QPC_BYTE_168_SQ_CUR_BLK_ADDR_M@GOTPAGE
Lloh21:
	ldr	x24, [x24, _V2_QPC_BYTE_168_SQ_CUR_BLK_ADDR_M@GOTPAGEOFF]
	ldr	w1, [x24]
Lloh22:
	adrp	x25, _V2_QPC_BYTE_168_SQ_CUR_BLK_ADDR_S@GOTPAGE
Lloh23:
	ldr	x25, [x25, _V2_QPC_BYTE_168_SQ_CUR_BLK_ADDR_S@GOTPAGEOFF]
	ldr	w2, [x25]
	ldr	w8, [sp, #8]
	ldr	w9, [x23]
	asr	w3, w8, w9
	bl	_roce_set_field
	str	xzr, [x19, #56]
	ldr	w0, [x19, #48]
	ldr	w1, [x24]
	ldr	w2, [x25]
	mov	w3, #0
	bl	_roce_set_field
	ldr	x8, [x22]
Lloh24:
	adrp	x25, _IB_QPT_GSI@GOTPAGE
Lloh25:
	ldr	x25, [x25, _IB_QPT_GSI@GOTPAGEOFF]
	ldr	x9, [x25]
Lloh26:
	adrp	x24, _HNS_ROCE_V2_UC_RC_SGE_NUM_IN_WQE@GOTPAGE
Lloh27:
	ldr	x24, [x24, _HNS_ROCE_V2_UC_RC_SGE_NUM_IN_WQE@GOTPAGEOFF]
	cmp	x8, x9
	b.eq	LBB0_13
; %bb.12:
	ldr	x10, [x21, #8]
	ldr	x11, [x24]
	cmp	x10, x11
	b.le	LBB0_14
LBB0_13:
	ldr	w8, [sp, #12]
	ldr	w9, [x23]
	asr	w0, w8, w9
	bl	_cpu_to_le32
	ldr	x8, [x22]
	ldr	x9, [x25]
	b	LBB0_15
LBB0_14:
	mov	x0, #0
LBB0_15:
	str	x0, [x20, #40]
Lloh28:
	adrp	x22, _V2_QPC_BYTE_184_SQ_CUR_SGE_BLK_ADDR_M@GOTPAGE
Lloh29:
	ldr	x22, [x22, _V2_QPC_BYTE_184_SQ_CUR_SGE_BLK_ADDR_M@GOTPAGEOFF]
	ldr	w0, [x20, #32]
	ldr	w1, [x22]
Lloh30:
	adrp	x25, _V2_QPC_BYTE_184_SQ_CUR_SGE_BLK_ADDR_S@GOTPAGE
Lloh31:
	ldr	x25, [x25, _V2_QPC_BYTE_184_SQ_CUR_SGE_BLK_ADDR_S@GOTPAGEOFF]
	ldr	w2, [x25]
	cmp	x8, x9
	b.eq	LBB0_17
; %bb.16:
	ldr	x8, [x21, #8]
	ldr	x9, [x24]
	cmp	x8, x9
	b.le	LBB0_18
LBB0_17:
	ldr	w8, [sp, #12]
	ldr	w9, [x23]
	asr	w3, w8, w9
	b	LBB0_19
LBB0_18:
	mov	w3, #0
LBB0_19:
	bl	_roce_set_field
	str	xzr, [x19, #40]
	ldr	w0, [x19, #32]
	ldr	w1, [x22]
	ldr	w2, [x25]
	mov	w3, #0
	bl	_roce_set_field
	ldr	w8, [sp, #8]
	ldr	w9, [x23]
	asr	w0, w8, w9
	bl	_cpu_to_le32
	str	x0, [x20, #24]
	ldr	w0, [x20, #20]
Lloh32:
	adrp	x21, _V2_QPC_BYTE_232_RX_SQ_CUR_BLK_ADDR_M@GOTPAGE
Lloh33:
	ldr	x21, [x21, _V2_QPC_BYTE_232_RX_SQ_CUR_BLK_ADDR_M@GOTPAGEOFF]
	ldr	w1, [x21]
Lloh34:
	adrp	x22, _V2_QPC_BYTE_232_RX_SQ_CUR_BLK_ADDR_S@GOTPAGE
Lloh35:
	ldr	x22, [x22, _V2_QPC_BYTE_232_RX_SQ_CUR_BLK_ADDR_S@GOTPAGEOFF]
	ldr	w2, [x22]
	ldr	w8, [sp, #8]
	ldr	w9, [x23]
	asr	w3, w8, w9
	bl	_roce_set_field
	str	xzr, [x19, #24]
	ldr	w0, [x19, #20]
	ldr	w1, [x21]
	ldr	w2, [x22]
	mov	w3, #0
	bl	_roce_set_field
	ldr	w0, [x19, #20]
Lloh36:
	adrp	x8, _V2_QPC_BYTE_232_IRRL_SGE_IDX_M@GOTPAGE
Lloh37:
	ldr	x8, [x8, _V2_QPC_BYTE_232_IRRL_SGE_IDX_M@GOTPAGEOFF]
Lloh38:
	ldr	w1, [x8]
Lloh39:
	adrp	x8, _V2_QPC_BYTE_232_IRRL_SGE_IDX_S@GOTPAGE
Lloh40:
	ldr	x8, [x8, _V2_QPC_BYTE_232_IRRL_SGE_IDX_S@GOTPAGEOFF]
Lloh41:
	ldr	w2, [x8]
	mov	w3, #0
	bl	_roce_set_field
	ldr	w0, [x19, #16]
Lloh42:
	adrp	x8, _V2_QPC_BYTE_240_RX_ACK_MSN_M@GOTPAGE
Lloh43:
	ldr	x8, [x8, _V2_QPC_BYTE_240_RX_ACK_MSN_M@GOTPAGEOFF]
Lloh44:
	ldr	w1, [x8]
Lloh45:
	adrp	x8, _V2_QPC_BYTE_240_RX_ACK_MSN_S@GOTPAGE
Lloh46:
	ldr	x8, [x8, _V2_QPC_BYTE_240_RX_ACK_MSN_S@GOTPAGEOFF]
Lloh47:
	ldr	w2, [x8]
	mov	w3, #0
	bl	_roce_set_field
	ldr	w0, [x19, #8]
Lloh48:
	adrp	x8, _V2_QPC_BYTE_248_ACK_LAST_OPTYPE_M@GOTPAGE
Lloh49:
	ldr	x8, [x8, _V2_QPC_BYTE_248_ACK_LAST_OPTYPE_M@GOTPAGEOFF]
Lloh50:
	ldr	w1, [x8]
Lloh51:
	adrp	x8, _V2_QPC_BYTE_248_ACK_LAST_OPTYPE_S@GOTPAGE
Lloh52:
	ldr	x8, [x8, _V2_QPC_BYTE_248_ACK_LAST_OPTYPE_S@GOTPAGEOFF]
Lloh53:
	ldr	w2, [x8]
	mov	w3, #0
	bl	_roce_set_field
	ldr	w0, [x19, #8]
Lloh54:
	adrp	x8, _V2_QPC_BYTE_248_IRRL_PSN_VLD_S@GOTPAGE
Lloh55:
	ldr	x8, [x8, _V2_QPC_BYTE_248_IRRL_PSN_VLD_S@GOTPAGEOFF]
Lloh56:
	ldr	w1, [x8]
	mov	w2, #0
	bl	_roce_set_bit
	ldr	w0, [x19, #8]
Lloh57:
	adrp	x8, _V2_QPC_BYTE_248_IRRL_PSN_M@GOTPAGE
Lloh58:
	ldr	x8, [x8, _V2_QPC_BYTE_248_IRRL_PSN_M@GOTPAGEOFF]
Lloh59:
	ldr	w1, [x8]
Lloh60:
	adrp	x8, _V2_QPC_BYTE_248_IRRL_PSN_S@GOTPAGE
Lloh61:
	ldr	x8, [x8, _V2_QPC_BYTE_248_IRRL_PSN_S@GOTPAGEOFF]
Lloh62:
	ldr	w2, [x8]
	mov	w3, #0
	bl	_roce_set_field
	ldr	w0, [x19, #16]
Lloh63:
	adrp	x8, _V2_QPC_BYTE_240_IRRL_TAIL_REAL_M@GOTPAGE
Lloh64:
	ldr	x8, [x8, _V2_QPC_BYTE_240_IRRL_TAIL_REAL_M@GOTPAGEOFF]
Lloh65:
	ldr	w1, [x8]
Lloh66:
	adrp	x8, _V2_QPC_BYTE_240_IRRL_TAIL_REAL_S@GOTPAGE
Lloh67:
	ldr	x8, [x8, _V2_QPC_BYTE_240_IRRL_TAIL_REAL_S@GOTPAGEOFF]
Lloh68:
	ldr	w2, [x8]
	mov	w3, #0
	bl	_roce_set_field
	ldr	w0, [x19, #12]
Lloh69:
	adrp	x8, _V2_QPC_BYTE_220_RETRY_MSG_MSN_M@GOTPAGE
Lloh70:
	ldr	x8, [x8, _V2_QPC_BYTE_220_RETRY_MSG_MSN_M@GOTPAGEOFF]
Lloh71:
	ldr	w1, [x8]
Lloh72:
	adrp	x8, _V2_QPC_BYTE_220_RETRY_MSG_MSN_S@GOTPAGE
Lloh73:
	ldr	x8, [x8, _V2_QPC_BYTE_220_RETRY_MSG_MSN_S@GOTPAGEOFF]
Lloh74:
	ldr	w2, [x8]
	mov	w3, #0
	bl	_roce_set_field
	ldr	w0, [x19, #8]
Lloh75:
	adrp	x8, _V2_QPC_BYTE_248_RNR_RETRY_FLAG_S@GOTPAGE
Lloh76:
	ldr	x8, [x8, _V2_QPC_BYTE_248_RNR_RETRY_FLAG_S@GOTPAGEOFF]
Lloh77:
	ldr	w1, [x8]
	mov	w2, #0
	bl	_roce_set_bit
	ldr	w0, [x19, #4]
Lloh78:
	adrp	x8, _V2_QPC_BYTE_212_CHECK_FLG_M@GOTPAGE
Lloh79:
	ldr	x8, [x8, _V2_QPC_BYTE_212_CHECK_FLG_M@GOTPAGEOFF]
Lloh80:
	ldr	w1, [x8]
Lloh81:
	adrp	x8, _V2_QPC_BYTE_212_CHECK_FLG_S@GOTPAGE
Lloh82:
	ldr	x8, [x8, _V2_QPC_BYTE_212_CHECK_FLG_S@GOTPAGEOFF]
Lloh83:
	ldr	w2, [x8]
	mov	w3, #0
	bl	_roce_set_field
	ldr	w0, [x20, #4]
Lloh84:
	adrp	x20, _V2_QPC_BYTE_212_LSN_M@GOTPAGE
Lloh85:
	ldr	x20, [x20, _V2_QPC_BYTE_212_LSN_M@GOTPAGEOFF]
	ldr	w1, [x20]
Lloh86:
	adrp	x21, _V2_QPC_BYTE_212_LSN_S@GOTPAGE
Lloh87:
	ldr	x21, [x21, _V2_QPC_BYTE_212_LSN_S@GOTPAGEOFF]
	ldr	w2, [x21]
	mov	w3, #256
	bl	_roce_set_field
	ldr	w0, [x19, #4]
	ldr	w1, [x20]
	ldr	w2, [x21]
	mov	w3, #0
	bl	_roce_set_field
	ldr	w0, [x19]
Lloh88:
	adrp	x8, _V2_QPC_BYTE_196_IRRL_HEAD_M@GOTPAGE
Lloh89:
	ldr	x8, [x8, _V2_QPC_BYTE_196_IRRL_HEAD_M@GOTPAGEOFF]
Lloh90:
	ldr	w1, [x8]
Lloh91:
	adrp	x8, _V2_QPC_BYTE_196_IRRL_HEAD_S@GOTPAGE
Lloh92:
	ldr	x8, [x8, _V2_QPC_BYTE_196_IRRL_HEAD_S@GOTPAGEOFF]
Lloh93:
	ldr	w2, [x8]
	mov	w3, #0
	bl	_roce_set_field
	mov	w0, #0
	b	LBB0_10
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh30, Lloh31
	.loh AdrpLdrGot	Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh91, Lloh92, Lloh93
	.loh AdrpLdrGotLdr	Lloh88, Lloh89, Lloh90
	.loh AdrpLdrGot	Lloh86, Lloh87
	.loh AdrpLdrGot	Lloh84, Lloh85
	.loh AdrpLdrGotLdr	Lloh81, Lloh82, Lloh83
	.loh AdrpLdrGotLdr	Lloh78, Lloh79, Lloh80
	.loh AdrpLdrGotLdr	Lloh75, Lloh76, Lloh77
	.loh AdrpLdrGotLdr	Lloh72, Lloh73, Lloh74
	.loh AdrpLdrGotLdr	Lloh69, Lloh70, Lloh71
	.loh AdrpLdrGotLdr	Lloh66, Lloh67, Lloh68
	.loh AdrpLdrGotLdr	Lloh63, Lloh64, Lloh65
	.loh AdrpLdrGotLdr	Lloh60, Lloh61, Lloh62
	.loh AdrpLdrGotLdr	Lloh57, Lloh58, Lloh59
	.loh AdrpLdrGotLdr	Lloh54, Lloh55, Lloh56
	.loh AdrpLdrGotLdr	Lloh51, Lloh52, Lloh53
	.loh AdrpLdrGotLdr	Lloh48, Lloh49, Lloh50
	.loh AdrpLdrGotLdr	Lloh45, Lloh46, Lloh47
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGot	Lloh34, Lloh35
	.loh AdrpLdrGot	Lloh32, Lloh33
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"qp(0x%lx) buf pa find failed\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_PAGE_SHIFT,4,2                 ; @PAGE_SHIFT
l_.str.1:                               ; @.str.1
	.asciz	"qp(0x%lx) sge pa find failed\n"

	.comm	_IB_QP_ALT_PATH,4,2             ; @IB_QP_ALT_PATH
	.comm	_IB_QP_PATH_MIG_STATE,4,2       ; @IB_QP_PATH_MIG_STATE
l_.str.2:                               ; @.str.2
	.asciz	"RTR2RTS attr_mask (0x%x)error\n"

	.comm	_PAGE_ADDR_SHIFT,4,2            ; @PAGE_ADDR_SHIFT
	.comm	_V2_QPC_BYTE_168_SQ_CUR_BLK_ADDR_M,4,2 ; @V2_QPC_BYTE_168_SQ_CUR_BLK_ADDR_M
	.comm	_V2_QPC_BYTE_168_SQ_CUR_BLK_ADDR_S,4,2 ; @V2_QPC_BYTE_168_SQ_CUR_BLK_ADDR_S
	.comm	_IB_QPT_GSI,8,3                 ; @IB_QPT_GSI
	.comm	_HNS_ROCE_V2_UC_RC_SGE_NUM_IN_WQE,8,3 ; @HNS_ROCE_V2_UC_RC_SGE_NUM_IN_WQE
	.comm	_V2_QPC_BYTE_184_SQ_CUR_SGE_BLK_ADDR_M,4,2 ; @V2_QPC_BYTE_184_SQ_CUR_SGE_BLK_ADDR_M
	.comm	_V2_QPC_BYTE_184_SQ_CUR_SGE_BLK_ADDR_S,4,2 ; @V2_QPC_BYTE_184_SQ_CUR_SGE_BLK_ADDR_S
	.comm	_V2_QPC_BYTE_232_RX_SQ_CUR_BLK_ADDR_M,4,2 ; @V2_QPC_BYTE_232_RX_SQ_CUR_BLK_ADDR_M
	.comm	_V2_QPC_BYTE_232_RX_SQ_CUR_BLK_ADDR_S,4,2 ; @V2_QPC_BYTE_232_RX_SQ_CUR_BLK_ADDR_S
	.comm	_V2_QPC_BYTE_232_IRRL_SGE_IDX_M,4,2 ; @V2_QPC_BYTE_232_IRRL_SGE_IDX_M
	.comm	_V2_QPC_BYTE_232_IRRL_SGE_IDX_S,4,2 ; @V2_QPC_BYTE_232_IRRL_SGE_IDX_S
	.comm	_V2_QPC_BYTE_240_RX_ACK_MSN_M,4,2 ; @V2_QPC_BYTE_240_RX_ACK_MSN_M
	.comm	_V2_QPC_BYTE_240_RX_ACK_MSN_S,4,2 ; @V2_QPC_BYTE_240_RX_ACK_MSN_S
	.comm	_V2_QPC_BYTE_248_ACK_LAST_OPTYPE_M,4,2 ; @V2_QPC_BYTE_248_ACK_LAST_OPTYPE_M
	.comm	_V2_QPC_BYTE_248_ACK_LAST_OPTYPE_S,4,2 ; @V2_QPC_BYTE_248_ACK_LAST_OPTYPE_S
	.comm	_V2_QPC_BYTE_248_IRRL_PSN_VLD_S,4,2 ; @V2_QPC_BYTE_248_IRRL_PSN_VLD_S
	.comm	_V2_QPC_BYTE_248_IRRL_PSN_M,4,2 ; @V2_QPC_BYTE_248_IRRL_PSN_M
	.comm	_V2_QPC_BYTE_248_IRRL_PSN_S,4,2 ; @V2_QPC_BYTE_248_IRRL_PSN_S
	.comm	_V2_QPC_BYTE_240_IRRL_TAIL_REAL_M,4,2 ; @V2_QPC_BYTE_240_IRRL_TAIL_REAL_M
	.comm	_V2_QPC_BYTE_240_IRRL_TAIL_REAL_S,4,2 ; @V2_QPC_BYTE_240_IRRL_TAIL_REAL_S
	.comm	_V2_QPC_BYTE_220_RETRY_MSG_MSN_M,4,2 ; @V2_QPC_BYTE_220_RETRY_MSG_MSN_M
	.comm	_V2_QPC_BYTE_220_RETRY_MSG_MSN_S,4,2 ; @V2_QPC_BYTE_220_RETRY_MSG_MSN_S
	.comm	_V2_QPC_BYTE_248_RNR_RETRY_FLAG_S,4,2 ; @V2_QPC_BYTE_248_RNR_RETRY_FLAG_S
	.comm	_V2_QPC_BYTE_212_CHECK_FLG_M,4,2 ; @V2_QPC_BYTE_212_CHECK_FLG_M
	.comm	_V2_QPC_BYTE_212_CHECK_FLG_S,4,2 ; @V2_QPC_BYTE_212_CHECK_FLG_S
	.comm	_V2_QPC_BYTE_212_LSN_M,4,2      ; @V2_QPC_BYTE_212_LSN_M
	.comm	_V2_QPC_BYTE_212_LSN_S,4,2      ; @V2_QPC_BYTE_212_LSN_S
	.comm	_V2_QPC_BYTE_196_IRRL_HEAD_M,4,2 ; @V2_QPC_BYTE_196_IRRL_HEAD_M
	.comm	_V2_QPC_BYTE_196_IRRL_HEAD_S,4,2 ; @V2_QPC_BYTE_196_IRRL_HEAD_S
	.no_dead_strip	_modify_qp_rtr_to_rts
.subsections_via_symbols
