	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hns_roce_v2_rereg_write_mtpt
_hns_roce_v2_rereg_write_mtpt:          ## @hns_roce_v2_rereg_write_mtpt
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, -56(%rbp)                  ## 8-byte Spill
	movl	%r8d, %r14d
	movl	%ecx, %r12d
	movl	%edx, %ebx
	movq	%rsi, %r13
	movq	24(%rbp), %r15
	movq	16(%rbp), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movl	36(%r15), %edi
	movq	_V2_MPT_BYTE_4_MPT_ST_M@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_V2_MPT_BYTE_4_MPT_ST_S@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_V2_MPT_ST_VALID@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	callq	_roce_set_field
	movq	_IB_MR_REREG_PD@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	je	LBB0_2
## %bb.1:
	movl	36(%r15), %edi
	movq	_V2_MPT_BYTE_4_PD_M@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_V2_MPT_BYTE_4_PD_S@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	%r12d, %ecx
	callq	_roce_set_field
	movl	%r12d, 16(%r13)
LBB0_2:
	movq	_IB_MR_REREG_ACCESS@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	je	LBB0_4
## %bb.3:
	movl	32(%r15), %edi
	movq	_V2_MPT_BYTE_8_BIND_EN_S@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_IB_ACCESS_MW_BIND@GOTPCREL(%rip), %rax
	xorl	%edx, %edx
	movl	(%rax), %eax
	andl	%r14d, %eax
	setne	%dl
	callq	_roce_set_bit
	movl	32(%r15), %edi
	movq	_V2_MPT_BYTE_8_ATOMIC_EN_S@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_IB_ACCESS_REMOTE_ATOMIC@GOTPCREL(%rip), %rax
	xorl	%edx, %edx
	movl	(%rax), %eax
	andl	%r14d, %eax
	setne	%dl
	callq	_roce_set_bit
	movl	32(%r15), %edi
	movq	_V2_MPT_BYTE_8_RR_EN_S@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_IB_ACCESS_REMOTE_READ@GOTPCREL(%rip), %rax
	xorl	%edx, %edx
	movl	(%rax), %eax
	andl	%r14d, %eax
	setne	%dl
	callq	_roce_set_bit
	movl	32(%r15), %edi
	movq	_V2_MPT_BYTE_8_RW_EN_S@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_IB_ACCESS_REMOTE_WRITE@GOTPCREL(%rip), %rax
	xorl	%edx, %edx
	movl	(%rax), %eax
	andl	%r14d, %eax
	setne	%dl
	callq	_roce_set_bit
	movl	32(%r15), %edi
	movq	_V2_MPT_BYTE_8_LW_EN_S@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_IB_ACCESS_LOCAL_WRITE@GOTPCREL(%rip), %rax
	xorl	%edx, %edx
	andl	(%rax), %r14d
	setne	%dl
	callq	_roce_set_bit
LBB0_4:
	movq	_IB_MR_REREG_TRANS@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	je	LBB0_5
## %bb.6:
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %rdi
	callq	_lower_32_bits
	movl	%eax, %edi
	callq	_cpu_to_le32
	movq	%rax, 24(%r15)
	movq	%r14, %rdi
	callq	_upper_32_bits
	movl	%eax, %edi
	callq	_cpu_to_le32
	movq	%rax, 16(%r15)
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	callq	_lower_32_bits
	movl	%eax, %edi
	callq	_cpu_to_le32
	movq	%rax, 8(%r15)
	movq	%rbx, %rdi
	callq	_upper_32_bits
	movl	%eax, %edi
	callq	_cpu_to_le32
	movq	%rax, (%r15)
	movq	%r14, 8(%r13)
	movq	%rbx, (%r13)
	movq	%r15, %rdi
	movq	%r13, %rsi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_set_mtpt_pbl                   ## TAILCALL
LBB0_5:
	xorl	%eax, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_V2_MPT_BYTE_4_MPT_ST_M,4,2     ## @V2_MPT_BYTE_4_MPT_ST_M
	.comm	_V2_MPT_BYTE_4_MPT_ST_S,4,2     ## @V2_MPT_BYTE_4_MPT_ST_S
	.comm	_V2_MPT_ST_VALID,4,2            ## @V2_MPT_ST_VALID
	.comm	_IB_MR_REREG_PD,4,2             ## @IB_MR_REREG_PD
	.comm	_V2_MPT_BYTE_4_PD_M,4,2         ## @V2_MPT_BYTE_4_PD_M
	.comm	_V2_MPT_BYTE_4_PD_S,4,2         ## @V2_MPT_BYTE_4_PD_S
	.comm	_IB_MR_REREG_ACCESS,4,2         ## @IB_MR_REREG_ACCESS
	.comm	_V2_MPT_BYTE_8_BIND_EN_S,4,2    ## @V2_MPT_BYTE_8_BIND_EN_S
	.comm	_IB_ACCESS_MW_BIND,4,2          ## @IB_ACCESS_MW_BIND
	.comm	_V2_MPT_BYTE_8_ATOMIC_EN_S,4,2  ## @V2_MPT_BYTE_8_ATOMIC_EN_S
	.comm	_IB_ACCESS_REMOTE_ATOMIC,4,2    ## @IB_ACCESS_REMOTE_ATOMIC
	.comm	_V2_MPT_BYTE_8_RR_EN_S,4,2      ## @V2_MPT_BYTE_8_RR_EN_S
	.comm	_IB_ACCESS_REMOTE_READ,4,2      ## @IB_ACCESS_REMOTE_READ
	.comm	_V2_MPT_BYTE_8_RW_EN_S,4,2      ## @V2_MPT_BYTE_8_RW_EN_S
	.comm	_IB_ACCESS_REMOTE_WRITE,4,2     ## @IB_ACCESS_REMOTE_WRITE
	.comm	_V2_MPT_BYTE_8_LW_EN_S,4,2      ## @V2_MPT_BYTE_8_LW_EN_S
	.comm	_IB_ACCESS_LOCAL_WRITE,4,2      ## @IB_ACCESS_LOCAL_WRITE
	.comm	_IB_MR_REREG_TRANS,4,2          ## @IB_MR_REREG_TRANS
	.no_dead_strip	_hns_roce_v2_rereg_write_mtpt
.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_rereg_write_mtpt
_hns_roce_v2_rereg_write_mtpt:          ; @hns_roce_v2_rereg_write_mtpt
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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, x7
	mov	x20, x6
	mov	x21, x5
	mov	x24, x4
	mov	x25, x3
	mov	x23, x2
	mov	x22, x1
	ldr	w0, [x7, #36]
Lloh0:
	adrp	x8, _V2_MPT_BYTE_4_MPT_ST_M@GOTPAGE
Lloh1:
	ldr	x8, [x8, _V2_MPT_BYTE_4_MPT_ST_M@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x8, _V2_MPT_BYTE_4_MPT_ST_S@GOTPAGE
Lloh4:
	ldr	x8, [x8, _V2_MPT_BYTE_4_MPT_ST_S@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
Lloh6:
	adrp	x8, _V2_MPT_ST_VALID@GOTPAGE
Lloh7:
	ldr	x8, [x8, _V2_MPT_ST_VALID@GOTPAGEOFF]
Lloh8:
	ldr	w3, [x8]
	bl	_roce_set_field
Lloh9:
	adrp	x8, _IB_MR_REREG_PD@GOTPAGE
Lloh10:
	ldr	x8, [x8, _IB_MR_REREG_PD@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	tst	w8, w23
	b.eq	LBB0_2
; %bb.1:
	ldr	w0, [x19, #36]
Lloh12:
	adrp	x8, _V2_MPT_BYTE_4_PD_M@GOTPAGE
Lloh13:
	ldr	x8, [x8, _V2_MPT_BYTE_4_PD_M@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
Lloh15:
	adrp	x8, _V2_MPT_BYTE_4_PD_S@GOTPAGE
Lloh16:
	ldr	x8, [x8, _V2_MPT_BYTE_4_PD_S@GOTPAGEOFF]
Lloh17:
	ldr	w2, [x8]
	mov	x3, x25
	bl	_roce_set_field
	str	w25, [x22, #16]
LBB0_2:
Lloh18:
	adrp	x8, _IB_MR_REREG_ACCESS@GOTPAGE
Lloh19:
	ldr	x8, [x8, _IB_MR_REREG_ACCESS@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	tst	w8, w23
	b.eq	LBB0_4
; %bb.3:
	ldr	w0, [x19, #32]
Lloh21:
	adrp	x8, _V2_MPT_BYTE_8_BIND_EN_S@GOTPAGE
Lloh22:
	ldr	x8, [x8, _V2_MPT_BYTE_8_BIND_EN_S@GOTPAGEOFF]
Lloh23:
	ldr	w1, [x8]
Lloh24:
	adrp	x8, _IB_ACCESS_MW_BIND@GOTPAGE
Lloh25:
	ldr	x8, [x8, _IB_ACCESS_MW_BIND@GOTPAGEOFF]
Lloh26:
	ldr	w8, [x8]
	tst	w8, w24
	cset	w2, ne
	bl	_roce_set_bit
	ldr	w0, [x19, #32]
Lloh27:
	adrp	x8, _V2_MPT_BYTE_8_ATOMIC_EN_S@GOTPAGE
Lloh28:
	ldr	x8, [x8, _V2_MPT_BYTE_8_ATOMIC_EN_S@GOTPAGEOFF]
Lloh29:
	ldr	w1, [x8]
Lloh30:
	adrp	x8, _IB_ACCESS_REMOTE_ATOMIC@GOTPAGE
Lloh31:
	ldr	x8, [x8, _IB_ACCESS_REMOTE_ATOMIC@GOTPAGEOFF]
Lloh32:
	ldr	w8, [x8]
	tst	w8, w24
	cset	w2, ne
	bl	_roce_set_bit
	ldr	w0, [x19, #32]
Lloh33:
	adrp	x8, _V2_MPT_BYTE_8_RR_EN_S@GOTPAGE
Lloh34:
	ldr	x8, [x8, _V2_MPT_BYTE_8_RR_EN_S@GOTPAGEOFF]
Lloh35:
	ldr	w1, [x8]
Lloh36:
	adrp	x8, _IB_ACCESS_REMOTE_READ@GOTPAGE
Lloh37:
	ldr	x8, [x8, _IB_ACCESS_REMOTE_READ@GOTPAGEOFF]
Lloh38:
	ldr	w8, [x8]
	tst	w8, w24
	cset	w2, ne
	bl	_roce_set_bit
	ldr	w0, [x19, #32]
Lloh39:
	adrp	x8, _V2_MPT_BYTE_8_RW_EN_S@GOTPAGE
Lloh40:
	ldr	x8, [x8, _V2_MPT_BYTE_8_RW_EN_S@GOTPAGEOFF]
Lloh41:
	ldr	w1, [x8]
Lloh42:
	adrp	x8, _IB_ACCESS_REMOTE_WRITE@GOTPAGE
Lloh43:
	ldr	x8, [x8, _IB_ACCESS_REMOTE_WRITE@GOTPAGEOFF]
Lloh44:
	ldr	w8, [x8]
	tst	w8, w24
	cset	w2, ne
	bl	_roce_set_bit
	ldr	w0, [x19, #32]
Lloh45:
	adrp	x8, _V2_MPT_BYTE_8_LW_EN_S@GOTPAGE
Lloh46:
	ldr	x8, [x8, _V2_MPT_BYTE_8_LW_EN_S@GOTPAGEOFF]
Lloh47:
	ldr	w1, [x8]
Lloh48:
	adrp	x8, _IB_ACCESS_LOCAL_WRITE@GOTPAGE
Lloh49:
	ldr	x8, [x8, _IB_ACCESS_LOCAL_WRITE@GOTPAGEOFF]
Lloh50:
	ldr	w8, [x8]
	tst	w8, w24
	cset	w2, ne
	bl	_roce_set_bit
LBB0_4:
Lloh51:
	adrp	x8, _IB_MR_REREG_TRANS@GOTPAGE
Lloh52:
	ldr	x8, [x8, _IB_MR_REREG_TRANS@GOTPAGEOFF]
Lloh53:
	ldr	w8, [x8]
	tst	w8, w23
	b.eq	LBB0_6
; %bb.5:
	mov	x0, x21
	bl	_lower_32_bits
	bl	_cpu_to_le32
	str	x0, [x19, #24]
	mov	x0, x21
	bl	_upper_32_bits
	bl	_cpu_to_le32
	str	x0, [x19, #16]
	mov	x0, x20
	bl	_lower_32_bits
	bl	_cpu_to_le32
	str	x0, [x19, #8]
	mov	x0, x20
	bl	_upper_32_bits
	bl	_cpu_to_le32
	str	x0, [x19]
	stp	x20, x21, [x22]
	mov	x0, x19
	mov	x1, x22
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_set_mtpt_pbl
LBB0_6:
	mov	w0, #0
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.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 AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh51, Lloh52, Lloh53
	.cfi_endproc
                                        ; -- End function
	.comm	_V2_MPT_BYTE_4_MPT_ST_M,4,2     ; @V2_MPT_BYTE_4_MPT_ST_M
	.comm	_V2_MPT_BYTE_4_MPT_ST_S,4,2     ; @V2_MPT_BYTE_4_MPT_ST_S
	.comm	_V2_MPT_ST_VALID,4,2            ; @V2_MPT_ST_VALID
	.comm	_IB_MR_REREG_PD,4,2             ; @IB_MR_REREG_PD
	.comm	_V2_MPT_BYTE_4_PD_M,4,2         ; @V2_MPT_BYTE_4_PD_M
	.comm	_V2_MPT_BYTE_4_PD_S,4,2         ; @V2_MPT_BYTE_4_PD_S
	.comm	_IB_MR_REREG_ACCESS,4,2         ; @IB_MR_REREG_ACCESS
	.comm	_V2_MPT_BYTE_8_BIND_EN_S,4,2    ; @V2_MPT_BYTE_8_BIND_EN_S
	.comm	_IB_ACCESS_MW_BIND,4,2          ; @IB_ACCESS_MW_BIND
	.comm	_V2_MPT_BYTE_8_ATOMIC_EN_S,4,2  ; @V2_MPT_BYTE_8_ATOMIC_EN_S
	.comm	_IB_ACCESS_REMOTE_ATOMIC,4,2    ; @IB_ACCESS_REMOTE_ATOMIC
	.comm	_V2_MPT_BYTE_8_RR_EN_S,4,2      ; @V2_MPT_BYTE_8_RR_EN_S
	.comm	_IB_ACCESS_REMOTE_READ,4,2      ; @IB_ACCESS_REMOTE_READ
	.comm	_V2_MPT_BYTE_8_RW_EN_S,4,2      ; @V2_MPT_BYTE_8_RW_EN_S
	.comm	_IB_ACCESS_REMOTE_WRITE,4,2     ; @IB_ACCESS_REMOTE_WRITE
	.comm	_V2_MPT_BYTE_8_LW_EN_S,4,2      ; @V2_MPT_BYTE_8_LW_EN_S
	.comm	_IB_ACCESS_LOCAL_WRITE,4,2      ; @IB_ACCESS_LOCAL_WRITE
	.comm	_IB_MR_REREG_TRANS,4,2          ; @IB_MR_REREG_TRANS
	.no_dead_strip	_hns_roce_v2_rereg_write_mtpt
.subsections_via_symbols
