	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hns_roce_v2_set_path
_hns_roce_v2_set_path:                  ## @hns_roce_v2_set_path
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, -56(%rbp)                  ## 8-byte Spill
	movq	%rcx, %r12
	movl	%edx, %r14d
	movq	%rsi, %r13
	movq	%rdi, %rbx
	leaq	8(%rsi), %rdi
	movq	%rdi, -64(%rbp)                 ## 8-byte Spill
	callq	_rdma_ah_read_grh
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	movl	(%rbx), %edi
	callq	_to_hr_dev
	movq	%rax, %r15
	movq	%rbx, %rdi
	callq	_to_hr_qp
	movq	$65535, -72(%rbp)               ## imm = 0xFFFF
	movq	_IB_QP_PORT@GOTPCREL(%rip), %rcx
	testl	%r14d, (%rcx)
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	je	LBB0_2
## %bb.1:
	movq	(%r13), %r14
	jmp	LBB0_3
LBB0_2:
	movq	(%rax), %r14
	incq	%r14
LBB0_3:
	leaq	24(%r15), %rdi
	movq	%r14, %rsi
	callq	_rdma_cap_eth_ah
	testq	%rax, %rax
	je	LBB0_4
## %bb.5:
	xorl	%eax, %eax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	callq	_rdma_ah_get_ah_flags
	movq	_IB_AH_GRH@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_9
## %bb.6:
	movq	16(%r13), %rbx
	leaq	-72(%rbp), %rsi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_rdma_read_gid_l2_fields
	movl	%eax, %r13d
	testl	%eax, %eax
	jne	LBB0_17
## %bb.7:
	xorl	%eax, %eax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	testq	%rbx, %rbx
	je	LBB0_9
## %bb.8:
	movq	(%rbx), %rax
	movq	_IB_GID_TYPE_ROCE_UDP_ENCAP@GOTPCREL(%rip), %rcx
	xorl	%edx, %edx
	cmpq	(%rcx), %rax
	sete	%dl
	movq	%rdx, -48(%rbp)                 ## 8-byte Spill
	jmp	LBB0_9
LBB0_4:
	xorl	%eax, %eax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
LBB0_9:
	movq	-72(%rbp), %rcx
	movq	_VLAN_CFI_MASK@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rcx
	jge	LBB0_11
## %bb.10:
	movl	24(%r12), %edi
	movq	_V2_QPC_BYTE_76_RQ_VLAN_EN_S@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	movl	$1, %edx
	callq	_roce_set_bit
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movl	24(%rbx), %edi
	movl	(%r13), %esi
	xorl	%edx, %edx
	callq	_roce_set_bit
	movl	20(%r12), %edi
	movq	_V2_QPC_BYTE_168_SQ_VLAN_EN_S@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	movl	$1, %edx
	callq	_roce_set_bit
	movl	20(%rbx), %edi
	movl	(%r13), %esi
	xorl	%edx, %edx
	callq	_roce_set_bit
	movq	-72(%rbp), %rcx
LBB0_11:
	movl	8(%r12), %edi
	movq	_V2_QPC_BYTE_24_VLAN_ID_M@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	movq	_V2_QPC_BYTE_24_VLAN_ID_S@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edx
                                        ## kill: def $ecx killed $ecx killed $rcx
	callq	_roce_set_field
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	8(%rax), %edi
	movl	(%r13), %esi
	movl	(%rbx), %edx
	xorl	%r13d, %r13d
	xorl	%ecx, %ecx
	callq	_roce_set_field
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %edx
	movq	16(%r15), %rax
	movl	-4(%rax,%r14,4), %ecx
	cmpl	%ecx, %edx
	jge	LBB0_12
## %bb.14:
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	movq	(%rdx), %rax
	movq	_RDMA_AH_ATTR_TYPE_ROCE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_15
## %bb.16:
	movl	16(%r12), %edi
	movq	_V2_QPC_BYTE_52_UDPSPN_M@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	movq	_V2_QPC_BYTE_52_UDPSPN_S@GOTPCREL(%rip), %r13
	movl	(%r13), %edx
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	testl	%eax, %eax
	movl	$4791, %ecx                     ## imm = 0x12B7
	cmovel	%eax, %ecx
	callq	_roce_set_field
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movl	16(%rbx), %edi
	movl	(%r14), %esi
	movl	(%r13), %edx
	xorl	%r13d, %r13d
	xorl	%ecx, %ecx
	callq	_roce_set_field
	movl	12(%r12), %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
	movq	-80(%rbp), %r14                 ## 8-byte Reload
	movl	(%r14), %ecx
	callq	_roce_set_field
	movl	12(%rbx), %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
	xorl	%ecx, %ecx
	callq	_roce_set_field
	movl	8(%r12), %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
	movl	4(%r14), %ecx
	callq	_roce_set_field
	movl	8(%rbx), %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
	xorl	%ecx, %ecx
	callq	_roce_set_field
	movl	8(%r14), %eax
	movl	%eax, %ecx
	sarl	$2, %ecx
	cmpl	$0, -48(%rbp)                   ## 4-byte Folded Reload
	movq	(%r15), %rdx
	cmovel	%eax, %ecx
	cmpl	$33, (%rdx)
	movl	8(%r12), %edi
	movq	_V2_QPC_BYTE_24_TC_M@GOTPCREL(%rip), %rdx
	movl	(%rdx), %esi
	movq	_V2_QPC_BYTE_24_TC_S@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edx
	cmovnel	%eax, %ecx
	callq	_roce_set_field
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	movl	8(%r15), %edi
	movq	_V2_QPC_BYTE_24_TC_M@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%rbx), %edx
	xorl	%ecx, %ecx
	callq	_roce_set_field
	movl	(%r12), %edi
	movq	_V2_QPC_BYTE_28_FL_M@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_V2_QPC_BYTE_28_FL_S@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edx
	movl	12(%r14), %ecx
	callq	_roce_set_field
	movl	(%r15), %edi
	movq	_V2_QPC_BYTE_28_FL_M@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%rbx), %edx
	xorl	%ecx, %ecx
	callq	_roce_set_field
	movl	4(%r12), %edi
	movl	16(%r14), %esi
	movl	$4, %edx
	callq	_memcpy
	movl	4(%r15), %edi
	xorl	%esi, %esi
	movl	$4, %edx
	callq	_memset
	movl	(%r12), %r14d
	movq	_V2_QPC_BYTE_28_SL_M@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movq	_V2_QPC_BYTE_28_SL_S@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	-64(%rbp), %r12                 ## 8-byte Reload
	movq	%r12, %rdi
	callq	_rdma_ah_get_sl
	movl	%r14d, %edi
	movl	%r15d, %esi
	movl	%ebx, %edx
	movl	%eax, %ecx
	callq	_roce_set_field
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %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
	xorl	%ecx, %ecx
	callq	_roce_set_field
	movq	%r12, %rdi
	callq	_rdma_ah_get_sl
	movq	-88(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, 8(%rcx)
	jmp	LBB0_17
LBB0_12:
	movl	8(%r15), %edi
	leaq	L_.str(%rip), %rsi
	xorl	%eax, %eax
	callq	_dev_err
	jmp	LBB0_13
LBB0_15:
	movl	8(%r15), %edi
	leaq	L_.str.1(%rip), %rsi
	xorl	%r13d, %r13d
	xorl	%eax, %eax
	callq	_dev_err
LBB0_13:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	subl	(%rax), %r13d
LBB0_17:
	movl	%r13d, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IB_QP_PORT,4,2                 ## @IB_QP_PORT
	.comm	_IB_AH_GRH,4,2                  ## @IB_AH_GRH
	.comm	_IB_GID_TYPE_ROCE_UDP_ENCAP,8,3 ## @IB_GID_TYPE_ROCE_UDP_ENCAP
	.comm	_VLAN_CFI_MASK,8,3              ## @VLAN_CFI_MASK
	.comm	_V2_QPC_BYTE_76_RQ_VLAN_EN_S,4,2 ## @V2_QPC_BYTE_76_RQ_VLAN_EN_S
	.comm	_V2_QPC_BYTE_168_SQ_VLAN_EN_S,4,2 ## @V2_QPC_BYTE_168_SQ_VLAN_EN_S
	.comm	_V2_QPC_BYTE_24_VLAN_ID_M,4,2   ## @V2_QPC_BYTE_24_VLAN_ID_M
	.comm	_V2_QPC_BYTE_24_VLAN_ID_S,4,2   ## @V2_QPC_BYTE_24_VLAN_ID_S
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"sgid_index(%u) too large. max is %d\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_RDMA_AH_ATTR_TYPE_ROCE,8,3     ## @RDMA_AH_ATTR_TYPE_ROCE
L_.str.1:                               ## @.str.1
	.asciz	"ah attr is not RDMA roce type\n"

	.comm	_V2_QPC_BYTE_52_UDPSPN_M,4,2    ## @V2_QPC_BYTE_52_UDPSPN_M
	.comm	_V2_QPC_BYTE_52_UDPSPN_S,4,2    ## @V2_QPC_BYTE_52_UDPSPN_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_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_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
	.no_dead_strip	_hns_roce_v2_set_path
.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_set_path
_hns_roce_v2_set_path:                  ; @hns_roce_v2_set_path
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x20, x4
	mov	x22, x3
	mov	x25, x2
	mov	x26, x1
	mov	x21, x0
	add	x19, x1, #8
	mov	x0, x19
	bl	_rdma_ah_read_grh
	mov	x23, x0
	ldr	w0, [x21]
	bl	_to_hr_dev
	mov	x24, x0
	mov	x0, x21
	bl	_to_hr_qp
	mov	x21, x0
	mov	w8, #65535
	str	x8, [sp, #24]
Lloh0:
	adrp	x8, _IB_QP_PORT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IB_QP_PORT@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	tst	w8, w25
	b.eq	LBB0_2
; %bb.1:
	ldr	x25, [x26]
	b	LBB0_3
LBB0_2:
	ldr	x8, [x21]
	add	x25, x8, #1
LBB0_3:
	add	x0, x24, #24
	mov	x1, x25
	bl	_rdma_cap_eth_ah
	cbz	x0, LBB0_8
; %bb.4:
	mov	x0, x19
	bl	_rdma_ah_get_ah_flags
Lloh3:
	adrp	x8, _IB_AH_GRH@GOTPAGE
Lloh4:
	ldr	x8, [x8, _IB_AH_GRH@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_8
; %bb.5:
	ldr	x26, [x26, #16]
	add	x1, sp, #24
	mov	x0, x26
	mov	x2, #0
	bl	_rdma_read_gid_l2_fields
	cbnz	w0, LBB0_17
; %bb.6:
	cbz	x26, LBB0_9
; %bb.7:
	ldr	x8, [x26]
Lloh6:
	adrp	x9, _IB_GID_TYPE_ROCE_UDP_ENCAP@GOTPAGE
Lloh7:
	ldr	x9, [x9, _IB_GID_TYPE_ROCE_UDP_ENCAP@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	cmp	x8, x9
	cset	w26, eq
	b	LBB0_9
LBB0_8:
	mov	w26, #0
LBB0_9:
	sub	x25, x25, #1
	ldr	x3, [sp, #24]
Lloh9:
	adrp	x8, _VLAN_CFI_MASK@GOTPAGE
Lloh10:
	ldr	x8, [x8, _VLAN_CFI_MASK@GOTPAGEOFF]
Lloh11:
	ldr	x8, [x8]
	cmp	x3, x8
	b.ge	LBB0_11
; %bb.10:
	ldr	w0, [x22, #24]
Lloh12:
	adrp	x27, _V2_QPC_BYTE_76_RQ_VLAN_EN_S@GOTPAGE
Lloh13:
	ldr	x27, [x27, _V2_QPC_BYTE_76_RQ_VLAN_EN_S@GOTPAGEOFF]
	ldr	w1, [x27]
	mov	w2, #1
	bl	_roce_set_bit
	ldr	w0, [x20, #24]
	ldr	w1, [x27]
	mov	w2, #0
	bl	_roce_set_bit
	ldr	w0, [x22, #20]
Lloh14:
	adrp	x27, _V2_QPC_BYTE_168_SQ_VLAN_EN_S@GOTPAGE
Lloh15:
	ldr	x27, [x27, _V2_QPC_BYTE_168_SQ_VLAN_EN_S@GOTPAGEOFF]
	ldr	w1, [x27]
	mov	w2, #1
	bl	_roce_set_bit
	ldr	w0, [x20, #20]
	ldr	w1, [x27]
	mov	w2, #0
	bl	_roce_set_bit
	ldr	x3, [sp, #24]
LBB0_11:
	ldr	w0, [x22, #8]
Lloh16:
	adrp	x27, _V2_QPC_BYTE_24_VLAN_ID_M@GOTPAGE
Lloh17:
	ldr	x27, [x27, _V2_QPC_BYTE_24_VLAN_ID_M@GOTPAGEOFF]
	ldr	w1, [x27]
Lloh18:
	adrp	x28, _V2_QPC_BYTE_24_VLAN_ID_S@GOTPAGE
Lloh19:
	ldr	x28, [x28, _V2_QPC_BYTE_24_VLAN_ID_S@GOTPAGEOFF]
	ldr	w2, [x28]
                                        ; kill: def $w3 killed $w3 killed $x3
	bl	_roce_set_field
	ldr	w0, [x20, #8]
	ldr	w1, [x27]
	ldr	w2, [x28]
	mov	w3, #0
	bl	_roce_set_field
	ldr	w8, [x23]
	ldr	x9, [x24, #16]
	ldr	w9, [x9, x25, lsl #2]
	cmp	w8, w9
	b.ge	LBB0_14
; %bb.12:
	ldr	x8, [x19]
Lloh20:
	adrp	x9, _RDMA_AH_ATTR_TYPE_ROCE@GOTPAGE
Lloh21:
	ldr	x9, [x9, _RDMA_AH_ATTR_TYPE_ROCE@GOTPAGEOFF]
Lloh22:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_15
; %bb.13:
	ldr	w0, [x22, #16]
Lloh23:
	adrp	x25, _V2_QPC_BYTE_52_UDPSPN_M@GOTPAGE
Lloh24:
	ldr	x25, [x25, _V2_QPC_BYTE_52_UDPSPN_M@GOTPAGEOFF]
	ldr	w1, [x25]
Lloh25:
	adrp	x27, _V2_QPC_BYTE_52_UDPSPN_S@GOTPAGE
Lloh26:
	ldr	x27, [x27, _V2_QPC_BYTE_52_UDPSPN_S@GOTPAGEOFF]
	ldr	w2, [x27]
	mov	w8, #4791
	cmp	w26, #0
	csel	w3, w8, wzr, ne
	bl	_roce_set_field
	ldr	w0, [x20, #16]
	ldr	w1, [x25]
	ldr	w2, [x27]
	mov	w3, #0
	bl	_roce_set_field
Lloh27:
	adrp	x25, _V2_QPC_BYTE_20_SGID_IDX_M@GOTPAGE
Lloh28:
	ldr	x25, [x25, _V2_QPC_BYTE_20_SGID_IDX_M@GOTPAGEOFF]
	ldr	w0, [x22, #12]
	ldr	w1, [x25]
Lloh29:
	adrp	x27, _V2_QPC_BYTE_20_SGID_IDX_S@GOTPAGE
Lloh30:
	ldr	x27, [x27, _V2_QPC_BYTE_20_SGID_IDX_S@GOTPAGEOFF]
	ldr	w2, [x27]
	ldr	w3, [x23]
	bl	_roce_set_field
	ldr	w0, [x20, #12]
	ldr	w1, [x25]
	ldr	w2, [x27]
	mov	w3, #0
	bl	_roce_set_field
Lloh31:
	adrp	x25, _V2_QPC_BYTE_24_HOP_LIMIT_M@GOTPAGE
Lloh32:
	ldr	x25, [x25, _V2_QPC_BYTE_24_HOP_LIMIT_M@GOTPAGEOFF]
	ldr	w0, [x22, #8]
	ldr	w1, [x25]
Lloh33:
	adrp	x27, _V2_QPC_BYTE_24_HOP_LIMIT_S@GOTPAGE
Lloh34:
	ldr	x27, [x27, _V2_QPC_BYTE_24_HOP_LIMIT_S@GOTPAGEOFF]
	ldr	w2, [x27]
	ldr	w3, [x23, #4]
	bl	_roce_set_field
	ldr	w0, [x20, #8]
	ldr	w1, [x25]
	ldr	w2, [x27]
	mov	w3, #0
	bl	_roce_set_field
	cmp	w26, #0
	ldr	x8, [x24]
	ldr	w8, [x8]
	mov	w9, #33
	ccmp	w8, w9, #0, ne
	ldr	w0, [x22, #8]
Lloh35:
	adrp	x24, _V2_QPC_BYTE_24_TC_M@GOTPAGE
Lloh36:
	ldr	x24, [x24, _V2_QPC_BYTE_24_TC_M@GOTPAGEOFF]
	ldr	w1, [x24]
Lloh37:
	adrp	x25, _V2_QPC_BYTE_24_TC_S@GOTPAGE
Lloh38:
	ldr	x25, [x25, _V2_QPC_BYTE_24_TC_S@GOTPAGEOFF]
	ldr	w2, [x25]
	ldr	w8, [x23, #8]
	asr	w9, w8, #2
	csel	w3, w9, w8, eq
	bl	_roce_set_field
	ldr	w0, [x20, #8]
	ldr	w1, [x24]
	ldr	w2, [x25]
	mov	w3, #0
	bl	_roce_set_field
Lloh39:
	adrp	x24, _V2_QPC_BYTE_28_FL_M@GOTPAGE
Lloh40:
	ldr	x24, [x24, _V2_QPC_BYTE_28_FL_M@GOTPAGEOFF]
	ldr	w0, [x22]
	ldr	w1, [x24]
Lloh41:
	adrp	x25, _V2_QPC_BYTE_28_FL_S@GOTPAGE
Lloh42:
	ldr	x25, [x25, _V2_QPC_BYTE_28_FL_S@GOTPAGEOFF]
	ldr	w2, [x25]
	ldr	w3, [x23, #12]
	bl	_roce_set_field
	ldr	w0, [x20]
	ldr	w1, [x24]
	ldr	w2, [x25]
	mov	w3, #0
	bl	_roce_set_field
	ldr	w0, [x22, #4]
	ldr	w1, [x23, #16]
	mov	w2, #4
	bl	_memcpy
	ldr	w0, [x20, #4]
	mov	w1, #0
	mov	w2, #4
	bl	_memset
	ldr	w22, [x22]
Lloh43:
	adrp	x25, _V2_QPC_BYTE_28_SL_M@GOTPAGE
Lloh44:
	ldr	x25, [x25, _V2_QPC_BYTE_28_SL_M@GOTPAGEOFF]
	ldr	w23, [x25]
Lloh45:
	adrp	x26, _V2_QPC_BYTE_28_SL_S@GOTPAGE
Lloh46:
	ldr	x26, [x26, _V2_QPC_BYTE_28_SL_S@GOTPAGEOFF]
	ldr	w24, [x26]
	mov	x0, x19
	bl	_rdma_ah_get_sl
	mov	x3, x0
	mov	x0, x22
	mov	x1, x23
	mov	x2, x24
	bl	_roce_set_field
	ldr	w0, [x20]
	ldr	w1, [x25]
	ldr	w2, [x26]
	mov	w3, #0
	bl	_roce_set_field
	mov	x0, x19
	bl	_rdma_ah_get_sl
	mov	x8, x0
	mov	w0, #0
	str	w8, [x21, #8]
	b	LBB0_17
LBB0_14:
	ldr	w0, [x24, #8]
	stp	x8, x9, [sp]
Lloh47:
	adrp	x1, l_.str@PAGE
Lloh48:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_16
LBB0_15:
	ldr	w0, [x24, #8]
Lloh49:
	adrp	x1, l_.str.1@PAGE
Lloh50:
	add	x1, x1, l_.str.1@PAGEOFF
LBB0_16:
	bl	_dev_err
Lloh51:
	adrp	x8, _EINVAL@GOTPAGE
Lloh52:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh53:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_17:
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh45, Lloh46
	.loh AdrpLdrGot	Lloh43, Lloh44
	.loh AdrpLdrGot	Lloh41, Lloh42
	.loh AdrpLdrGot	Lloh39, Lloh40
	.loh AdrpLdrGot	Lloh37, Lloh38
	.loh AdrpLdrGot	Lloh35, Lloh36
	.loh AdrpLdrGot	Lloh33, Lloh34
	.loh AdrpLdrGot	Lloh31, Lloh32
	.loh AdrpLdrGot	Lloh29, Lloh30
	.loh AdrpLdrGot	Lloh27, Lloh28
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpAdd	Lloh47, Lloh48
	.loh AdrpAdd	Lloh49, Lloh50
	.loh AdrpLdrGotLdr	Lloh51, Lloh52, Lloh53
	.cfi_endproc
                                        ; -- End function
	.comm	_IB_QP_PORT,4,2                 ; @IB_QP_PORT
	.comm	_IB_AH_GRH,4,2                  ; @IB_AH_GRH
	.comm	_IB_GID_TYPE_ROCE_UDP_ENCAP,8,3 ; @IB_GID_TYPE_ROCE_UDP_ENCAP
	.comm	_VLAN_CFI_MASK,8,3              ; @VLAN_CFI_MASK
	.comm	_V2_QPC_BYTE_76_RQ_VLAN_EN_S,4,2 ; @V2_QPC_BYTE_76_RQ_VLAN_EN_S
	.comm	_V2_QPC_BYTE_168_SQ_VLAN_EN_S,4,2 ; @V2_QPC_BYTE_168_SQ_VLAN_EN_S
	.comm	_V2_QPC_BYTE_24_VLAN_ID_M,4,2   ; @V2_QPC_BYTE_24_VLAN_ID_M
	.comm	_V2_QPC_BYTE_24_VLAN_ID_S,4,2   ; @V2_QPC_BYTE_24_VLAN_ID_S
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"sgid_index(%u) too large. max is %d\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_RDMA_AH_ATTR_TYPE_ROCE,8,3     ; @RDMA_AH_ATTR_TYPE_ROCE
l_.str.1:                               ; @.str.1
	.asciz	"ah attr is not RDMA roce type\n"

	.comm	_V2_QPC_BYTE_52_UDPSPN_M,4,2    ; @V2_QPC_BYTE_52_UDPSPN_M
	.comm	_V2_QPC_BYTE_52_UDPSPN_S,4,2    ; @V2_QPC_BYTE_52_UDPSPN_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_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_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
	.no_dead_strip	_hns_roce_v2_set_path
.subsections_via_symbols
