	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hns_roce_v2_frmr_write_mtpt
_hns_roce_v2_frmr_write_mtpt:           ## @hns_roce_v2_frmr_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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	xorl	%esi, %esi
	movl	$40, %edx
	callq	_memset
	movl	32(%rbx), %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_FREE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	callq	_roce_set_field
	movl	32(%rbx), %edi
	movq	_V2_MPT_BYTE_4_PBL_HOP_NUM_M@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_V2_MPT_BYTE_4_PBL_HOP_NUM_S@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$1, %ecx
	callq	_roce_set_field
	movl	32(%rbx), %edi
	movq	_V2_MPT_BYTE_4_PBL_BA_PG_SZ_M@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_V2_MPT_BYTE_4_PBL_BA_PG_SZ_S@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_PG_SHIFT_OFFSET@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	addl	(%r14), %ecx
	callq	_roce_set_field
	movl	32(%rbx), %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	4(%r14), %ecx
	callq	_roce_set_field
	movl	28(%rbx), %edi
	movq	_V2_MPT_BYTE_8_RA_EN_S@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$1, %edx
	callq	_roce_set_bit
	movl	28(%rbx), %edi
	movq	_V2_MPT_BYTE_8_R_INV_EN_S@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$1, %edx
	callq	_roce_set_bit
	movl	28(%rbx), %edi
	movq	_V2_MPT_BYTE_8_L_INV_EN_S@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$1, %edx
	callq	_roce_set_bit
	movl	24(%rbx), %edi
	movq	_V2_MPT_BYTE_12_FRE_S@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$1, %edx
	callq	_roce_set_bit
	movl	24(%rbx), %edi
	movq	_V2_MPT_BYTE_12_PA_S@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%edx, %edx
	callq	_roce_set_bit
	movl	24(%rbx), %edi
	movq	_V2_MPT_BYTE_12_MR_MW_S@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%edx, %edx
	callq	_roce_set_bit
	movl	24(%rbx), %edi
	movq	_V2_MPT_BYTE_12_BPD_S@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$1, %edx
	callq	_roce_set_bit
	movl	16(%r14), %edi
	callq	_cpu_to_le32
	movq	%rax, 16(%rbx)
	movl	8(%r14), %edi
	sarl	$3, %edi
	callq	_lower_32_bits
	movl	%eax, %edi
	callq	_cpu_to_le32
	movq	%rax, 8(%rbx)
	movl	4(%rbx), %r15d
	movq	_V2_MPT_BYTE_48_PBL_BA_H_M@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movq	_V2_MPT_BYTE_48_PBL_BA_H_S@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	movl	8(%r14), %edi
	sarl	$3, %edi
	callq	_upper_32_bits
	movl	%r15d, %edi
	movl	%r12d, %esi
	movl	%r13d, %edx
	movl	%eax, %ecx
	callq	_roce_set_field
	movl	(%rbx), %edi
	movq	_V2_MPT_BYTE_64_PBL_BUF_PG_SZ_M@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_V2_MPT_BYTE_64_PBL_BUF_PG_SZ_S@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_PG_SHIFT_OFFSET@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	addl	12(%r14), %ecx
	callq	_roce_set_field
	xorl	%eax, %eax
	addq	$8, %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_FREE,4,2             ## @V2_MPT_ST_FREE
	.comm	_V2_MPT_BYTE_4_PBL_HOP_NUM_M,4,2 ## @V2_MPT_BYTE_4_PBL_HOP_NUM_M
	.comm	_V2_MPT_BYTE_4_PBL_HOP_NUM_S,4,2 ## @V2_MPT_BYTE_4_PBL_HOP_NUM_S
	.comm	_V2_MPT_BYTE_4_PBL_BA_PG_SZ_M,4,2 ## @V2_MPT_BYTE_4_PBL_BA_PG_SZ_M
	.comm	_V2_MPT_BYTE_4_PBL_BA_PG_SZ_S,4,2 ## @V2_MPT_BYTE_4_PBL_BA_PG_SZ_S
	.comm	_PG_SHIFT_OFFSET,4,2            ## @PG_SHIFT_OFFSET
	.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	_V2_MPT_BYTE_8_RA_EN_S,4,2      ## @V2_MPT_BYTE_8_RA_EN_S
	.comm	_V2_MPT_BYTE_8_R_INV_EN_S,4,2   ## @V2_MPT_BYTE_8_R_INV_EN_S
	.comm	_V2_MPT_BYTE_8_L_INV_EN_S,4,2   ## @V2_MPT_BYTE_8_L_INV_EN_S
	.comm	_V2_MPT_BYTE_12_FRE_S,4,2       ## @V2_MPT_BYTE_12_FRE_S
	.comm	_V2_MPT_BYTE_12_PA_S,4,2        ## @V2_MPT_BYTE_12_PA_S
	.comm	_V2_MPT_BYTE_12_MR_MW_S,4,2     ## @V2_MPT_BYTE_12_MR_MW_S
	.comm	_V2_MPT_BYTE_12_BPD_S,4,2       ## @V2_MPT_BYTE_12_BPD_S
	.comm	_V2_MPT_BYTE_48_PBL_BA_H_M,4,2  ## @V2_MPT_BYTE_48_PBL_BA_H_M
	.comm	_V2_MPT_BYTE_48_PBL_BA_H_S,4,2  ## @V2_MPT_BYTE_48_PBL_BA_H_S
	.comm	_V2_MPT_BYTE_64_PBL_BUF_PG_SZ_M,4,2 ## @V2_MPT_BYTE_64_PBL_BUF_PG_SZ_M
	.comm	_V2_MPT_BYTE_64_PBL_BUF_PG_SZ_S,4,2 ## @V2_MPT_BYTE_64_PBL_BUF_PG_SZ_S
	.no_dead_strip	_hns_roce_v2_frmr_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_frmr_write_mtpt
_hns_roce_v2_frmr_write_mtpt:           ; @hns_roce_v2_frmr_write_mtpt
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x19, x1
	mov	x20, x0
	mov	w1, #0
	mov	w2, #40
	bl	_memset
	ldr	w0, [x20, #32]
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_FREE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _V2_MPT_ST_FREE@GOTPAGEOFF]
Lloh8:
	ldr	w3, [x8]
	bl	_roce_set_field
	ldr	w0, [x20, #32]
Lloh9:
	adrp	x8, _V2_MPT_BYTE_4_PBL_HOP_NUM_M@GOTPAGE
Lloh10:
	ldr	x8, [x8, _V2_MPT_BYTE_4_PBL_HOP_NUM_M@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
Lloh12:
	adrp	x8, _V2_MPT_BYTE_4_PBL_HOP_NUM_S@GOTPAGE
Lloh13:
	ldr	x8, [x8, _V2_MPT_BYTE_4_PBL_HOP_NUM_S@GOTPAGEOFF]
Lloh14:
	ldr	w2, [x8]
	mov	w3, #1
	bl	_roce_set_field
	ldr	w0, [x20, #32]
Lloh15:
	adrp	x8, _V2_MPT_BYTE_4_PBL_BA_PG_SZ_M@GOTPAGE
Lloh16:
	ldr	x8, [x8, _V2_MPT_BYTE_4_PBL_BA_PG_SZ_M@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
Lloh18:
	adrp	x8, _V2_MPT_BYTE_4_PBL_BA_PG_SZ_S@GOTPAGE
Lloh19:
	ldr	x8, [x8, _V2_MPT_BYTE_4_PBL_BA_PG_SZ_S@GOTPAGEOFF]
Lloh20:
	ldr	w2, [x8]
	ldr	w8, [x19]
Lloh21:
	adrp	x24, _PG_SHIFT_OFFSET@GOTPAGE
Lloh22:
	ldr	x24, [x24, _PG_SHIFT_OFFSET@GOTPAGEOFF]
	ldr	w9, [x24]
	add	w3, w9, w8
	bl	_roce_set_field
Lloh23:
	adrp	x8, _V2_MPT_BYTE_4_PD_M@GOTPAGE
Lloh24:
	ldr	x8, [x8, _V2_MPT_BYTE_4_PD_M@GOTPAGEOFF]
	ldr	w0, [x20, #32]
Lloh25:
	ldr	w1, [x8]
Lloh26:
	adrp	x8, _V2_MPT_BYTE_4_PD_S@GOTPAGE
Lloh27:
	ldr	x8, [x8, _V2_MPT_BYTE_4_PD_S@GOTPAGEOFF]
Lloh28:
	ldr	w2, [x8]
	ldr	w3, [x19, #4]
	bl	_roce_set_field
	ldr	w0, [x20, #28]
Lloh29:
	adrp	x8, _V2_MPT_BYTE_8_RA_EN_S@GOTPAGE
Lloh30:
	ldr	x8, [x8, _V2_MPT_BYTE_8_RA_EN_S@GOTPAGEOFF]
Lloh31:
	ldr	w1, [x8]
	mov	w2, #1
	bl	_roce_set_bit
	ldr	w0, [x20, #28]
Lloh32:
	adrp	x8, _V2_MPT_BYTE_8_R_INV_EN_S@GOTPAGE
Lloh33:
	ldr	x8, [x8, _V2_MPT_BYTE_8_R_INV_EN_S@GOTPAGEOFF]
Lloh34:
	ldr	w1, [x8]
	mov	w2, #1
	bl	_roce_set_bit
	ldr	w0, [x20, #28]
Lloh35:
	adrp	x8, _V2_MPT_BYTE_8_L_INV_EN_S@GOTPAGE
Lloh36:
	ldr	x8, [x8, _V2_MPT_BYTE_8_L_INV_EN_S@GOTPAGEOFF]
Lloh37:
	ldr	w1, [x8]
	mov	w2, #1
	bl	_roce_set_bit
	ldr	w0, [x20, #24]
Lloh38:
	adrp	x8, _V2_MPT_BYTE_12_FRE_S@GOTPAGE
Lloh39:
	ldr	x8, [x8, _V2_MPT_BYTE_12_FRE_S@GOTPAGEOFF]
Lloh40:
	ldr	w1, [x8]
	mov	w2, #1
	bl	_roce_set_bit
	ldr	w0, [x20, #24]
Lloh41:
	adrp	x8, _V2_MPT_BYTE_12_PA_S@GOTPAGE
Lloh42:
	ldr	x8, [x8, _V2_MPT_BYTE_12_PA_S@GOTPAGEOFF]
Lloh43:
	ldr	w1, [x8]
	mov	w2, #0
	bl	_roce_set_bit
	ldr	w0, [x20, #24]
Lloh44:
	adrp	x8, _V2_MPT_BYTE_12_MR_MW_S@GOTPAGE
Lloh45:
	ldr	x8, [x8, _V2_MPT_BYTE_12_MR_MW_S@GOTPAGEOFF]
Lloh46:
	ldr	w1, [x8]
	mov	w2, #0
	bl	_roce_set_bit
	ldr	w0, [x20, #24]
Lloh47:
	adrp	x8, _V2_MPT_BYTE_12_BPD_S@GOTPAGE
Lloh48:
	ldr	x8, [x8, _V2_MPT_BYTE_12_BPD_S@GOTPAGEOFF]
Lloh49:
	ldr	w1, [x8]
	mov	w2, #1
	bl	_roce_set_bit
	ldr	w0, [x19, #16]
	bl	_cpu_to_le32
	str	x0, [x20, #16]
	ldr	w8, [x19, #8]
	asr	w0, w8, #3
	bl	_lower_32_bits
	bl	_cpu_to_le32
	str	x0, [x20, #8]
	ldr	w21, [x20, #4]
Lloh50:
	adrp	x8, _V2_MPT_BYTE_48_PBL_BA_H_M@GOTPAGE
Lloh51:
	ldr	x8, [x8, _V2_MPT_BYTE_48_PBL_BA_H_M@GOTPAGEOFF]
Lloh52:
	ldr	w22, [x8]
Lloh53:
	adrp	x8, _V2_MPT_BYTE_48_PBL_BA_H_S@GOTPAGE
Lloh54:
	ldr	x8, [x8, _V2_MPT_BYTE_48_PBL_BA_H_S@GOTPAGEOFF]
Lloh55:
	ldr	w23, [x8]
	ldr	w8, [x19, #8]
	asr	w0, w8, #3
	bl	_upper_32_bits
	mov	x3, x0
	mov	x0, x21
	mov	x1, x22
	mov	x2, x23
	bl	_roce_set_field
	ldr	w0, [x20]
Lloh56:
	adrp	x8, _V2_MPT_BYTE_64_PBL_BUF_PG_SZ_M@GOTPAGE
Lloh57:
	ldr	x8, [x8, _V2_MPT_BYTE_64_PBL_BUF_PG_SZ_M@GOTPAGEOFF]
Lloh58:
	ldr	w1, [x8]
Lloh59:
	adrp	x8, _V2_MPT_BYTE_64_PBL_BUF_PG_SZ_S@GOTPAGE
Lloh60:
	ldr	x8, [x8, _V2_MPT_BYTE_64_PBL_BUF_PG_SZ_S@GOTPAGEOFF]
Lloh61:
	ldr	w2, [x8]
	ldr	w8, [x19, #12]
	ldr	w9, [x24]
	add	w3, w9, w8
	bl	_roce_set_field
	mov	w0, #0
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.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	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.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_FREE,4,2             ; @V2_MPT_ST_FREE
	.comm	_V2_MPT_BYTE_4_PBL_HOP_NUM_M,4,2 ; @V2_MPT_BYTE_4_PBL_HOP_NUM_M
	.comm	_V2_MPT_BYTE_4_PBL_HOP_NUM_S,4,2 ; @V2_MPT_BYTE_4_PBL_HOP_NUM_S
	.comm	_V2_MPT_BYTE_4_PBL_BA_PG_SZ_M,4,2 ; @V2_MPT_BYTE_4_PBL_BA_PG_SZ_M
	.comm	_V2_MPT_BYTE_4_PBL_BA_PG_SZ_S,4,2 ; @V2_MPT_BYTE_4_PBL_BA_PG_SZ_S
	.comm	_PG_SHIFT_OFFSET,4,2            ; @PG_SHIFT_OFFSET
	.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	_V2_MPT_BYTE_8_RA_EN_S,4,2      ; @V2_MPT_BYTE_8_RA_EN_S
	.comm	_V2_MPT_BYTE_8_R_INV_EN_S,4,2   ; @V2_MPT_BYTE_8_R_INV_EN_S
	.comm	_V2_MPT_BYTE_8_L_INV_EN_S,4,2   ; @V2_MPT_BYTE_8_L_INV_EN_S
	.comm	_V2_MPT_BYTE_12_FRE_S,4,2       ; @V2_MPT_BYTE_12_FRE_S
	.comm	_V2_MPT_BYTE_12_PA_S,4,2        ; @V2_MPT_BYTE_12_PA_S
	.comm	_V2_MPT_BYTE_12_MR_MW_S,4,2     ; @V2_MPT_BYTE_12_MR_MW_S
	.comm	_V2_MPT_BYTE_12_BPD_S,4,2       ; @V2_MPT_BYTE_12_BPD_S
	.comm	_V2_MPT_BYTE_48_PBL_BA_H_M,4,2  ; @V2_MPT_BYTE_48_PBL_BA_H_M
	.comm	_V2_MPT_BYTE_48_PBL_BA_H_S,4,2  ; @V2_MPT_BYTE_48_PBL_BA_H_S
	.comm	_V2_MPT_BYTE_64_PBL_BUF_PG_SZ_M,4,2 ; @V2_MPT_BYTE_64_PBL_BUF_PG_SZ_M
	.comm	_V2_MPT_BYTE_64_PBL_BUF_PG_SZ_S,4,2 ; @V2_MPT_BYTE_64_PBL_BUF_PG_SZ_S
	.no_dead_strip	_hns_roce_v2_frmr_write_mtpt
.subsections_via_symbols
