	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hns_roce_v1_int_mask_enable
_hns_roce_v1_int_mask_enable:           ## @hns_roce_v1_int_mask_enable
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movq	_ROCEE_CAEP_AE_MASK_REG@GOTPCREL(%rip), %r12
	movq	(%r12), %rsi
	callq	_roce_read
	movl	%eax, %edi
	callq	_cpu_to_le32
	movl	%eax, %r14d
	movq	_ROCEE_CAEP_AE_MASK_CAEP_AEQ_ALM_OVF_MASK_S@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%ebx, %ebx
	movl	%r14d, %edi
	xorl	%edx, %edx
	callq	_roce_set_bit
	movq	_ROCEE_CAEP_AE_MASK_CAEP_AE_IRQ_MASK_S@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r14d, %edi
	xorl	%edx, %edx
	callq	_roce_set_bit
	movl	%r14d, %edi
	callq	_le32_to_cpu
	movq	(%r12), %rsi
	movq	%r15, %rdi
	movl	%eax, %edx
	callq	_roce_write
	cmpl	$0, (%r15)
	jle	LBB0_3
## %bb.1:
	movq	_ROCEE_CAEP_CE_IRQ_MASK_0_REG@GOTPCREL(%rip), %r14
	movq	_CEQ_REG_OFFSET@GOTPCREL(%rip), %r12
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movslq	(%r12), %rsi
	movslq	%ebx, %rbx
	imulq	%rbx, %rsi
	addq	(%r14), %rsi
	movq	%r15, %rdi
	xorl	%edx, %edx
	callq	_roce_write
	incl	%ebx
	cmpl	(%r15), %ebx
	jl	LBB0_2
LBB0_3:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ROCEE_CAEP_AE_MASK_REG,8,3     ## @ROCEE_CAEP_AE_MASK_REG
	.comm	_ROCEE_CAEP_AE_MASK_CAEP_AEQ_ALM_OVF_MASK_S,4,2 ## @ROCEE_CAEP_AE_MASK_CAEP_AEQ_ALM_OVF_MASK_S
	.comm	_ROCEE_CAEP_AE_MASK_CAEP_AE_IRQ_MASK_S,4,2 ## @ROCEE_CAEP_AE_MASK_CAEP_AE_IRQ_MASK_S
	.comm	_ROCEE_CAEP_CE_IRQ_MASK_0_REG,8,3 ## @ROCEE_CAEP_CE_IRQ_MASK_0_REG
	.comm	_CEQ_REG_OFFSET,4,2             ## @CEQ_REG_OFFSET
	.no_dead_strip	_hns_roce_v1_int_mask_enable
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hns_roce_v1_int_mask_enable
_hns_roce_v1_int_mask_enable:           ; @hns_roce_v1_int_mask_enable
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x0
Lloh0:
	adrp	x21, _ROCEE_CAEP_AE_MASK_REG@GOTPAGE
Lloh1:
	ldr	x21, [x21, _ROCEE_CAEP_AE_MASK_REG@GOTPAGEOFF]
	ldr	x1, [x21]
	bl	_roce_read
	bl	_cpu_to_le32
	mov	x20, x0
Lloh2:
	adrp	x8, _ROCEE_CAEP_AE_MASK_CAEP_AEQ_ALM_OVF_MASK_S@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ROCEE_CAEP_AE_MASK_CAEP_AEQ_ALM_OVF_MASK_S@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	mov	w2, #0
	bl	_roce_set_bit
Lloh5:
	adrp	x8, _ROCEE_CAEP_AE_MASK_CAEP_AE_IRQ_MASK_S@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ROCEE_CAEP_AE_MASK_CAEP_AE_IRQ_MASK_S@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	mov	x0, x20
	mov	w2, #0
	bl	_roce_set_bit
	mov	x0, x20
	bl	_le32_to_cpu
	mov	x2, x0
	ldr	x1, [x21]
	mov	x0, x19
	bl	_roce_write
	ldr	w8, [x19]
	cmp	w8, #1
	b.lt	LBB0_3
; %bb.1:
	mov	w20, #0
Lloh8:
	adrp	x21, _ROCEE_CAEP_CE_IRQ_MASK_0_REG@GOTPAGE
Lloh9:
	ldr	x21, [x21, _ROCEE_CAEP_CE_IRQ_MASK_0_REG@GOTPAGEOFF]
Lloh10:
	adrp	x22, _CEQ_REG_OFFSET@GOTPAGE
Lloh11:
	ldr	x22, [x22, _CEQ_REG_OFFSET@GOTPAGEOFF]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x21]
	ldrsw	x9, [x22]
	sxtw	x10, w20
	madd	x1, x9, x10, x8
	mov	x0, x19
	mov	w2, #0
	bl	_roce_write
	add	w20, w20, #1
	ldr	w8, [x19]
	cmp	w20, w8
	b.lt	LBB0_2
LBB0_3:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_ROCEE_CAEP_AE_MASK_REG,8,3     ; @ROCEE_CAEP_AE_MASK_REG
	.comm	_ROCEE_CAEP_AE_MASK_CAEP_AEQ_ALM_OVF_MASK_S,4,2 ; @ROCEE_CAEP_AE_MASK_CAEP_AEQ_ALM_OVF_MASK_S
	.comm	_ROCEE_CAEP_AE_MASK_CAEP_AE_IRQ_MASK_S,4,2 ; @ROCEE_CAEP_AE_MASK_CAEP_AE_IRQ_MASK_S
	.comm	_ROCEE_CAEP_CE_IRQ_MASK_0_REG,8,3 ; @ROCEE_CAEP_CE_IRQ_MASK_0_REG
	.comm	_CEQ_REG_OFFSET,4,2             ; @CEQ_REG_OFFSET
	.no_dead_strip	_hns_roce_v1_int_mask_enable
.subsections_via_symbols
