	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hclge_config_rocee_ras_interrupt ## -- Begin function hclge_config_rocee_ras_interrupt
	.p2align	4, 0x90
_hclge_config_rocee_ras_interrupt:      ## @hclge_config_rocee_ras_interrupt
	.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
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	8(%rdi), %r14
	xorl	%r15d, %r15d
	cmpl	$33, (%r14)
	jl	LBB0_6
## %bb.1:
	movl	%esi, %r12d
	movq	%rdi, %rbx
	callq	_hnae3_dev_roce_supported
	testl	%eax, %eax
	je	LBB0_6
## %bb.2:
	movq	_HCLGE_CONFIG_ROCEE_RAS_INT_EN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-40(%rbp), %rdi
	xorl	%r15d, %r15d
	xorl	%edx, %edx
	callq	_hclge_cmd_setup_basic_desc
	testl	%r12d, %r12d
	je	LBB0_4
## %bb.3:
	movq	_HCLGE_ROCEE_RAS_NFE_INT_EN@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_cpu_to_le32
	movq	-40(%rbp), %rcx
	movq	%rax, (%rcx)
	movq	_HCLGE_ROCEE_RAS_CE_INT_EN@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_cpu_to_le32
	movq	-40(%rbp), %rcx
	movq	%rax, 8(%rcx)
	movq	%rbx, %rdi
	callq	_hclge_log_and_clear_rocee_ras_error
LBB0_4:
	movq	_HCLGE_ROCEE_RAS_NFE_INT_EN_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_cpu_to_le32
	movq	-40(%rbp), %rcx
	movq	%rax, 16(%rcx)
	movq	_HCLGE_ROCEE_RAS_CE_INT_EN_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_cpu_to_le32
	movq	-40(%rbp), %rcx
	movq	%rax, 24(%rcx)
	leaq	-40(%rbp), %rsi
	movq	%rbx, %rdi
	movl	$1, %edx
	callq	_hclge_cmd_send
	testl	%eax, %eax
	je	LBB0_6
## %bb.5:
	movl	%eax, %ebx
	addq	$4, %r14
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	movl	%eax, %edx
	callq	_dev_err
	movl	%ebx, %r15d
LBB0_6:
	movl	%r15d, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_HCLGE_CONFIG_ROCEE_RAS_INT_EN,4,2 ## @HCLGE_CONFIG_ROCEE_RAS_INT_EN
	.comm	_HCLGE_ROCEE_RAS_NFE_INT_EN,4,2 ## @HCLGE_ROCEE_RAS_NFE_INT_EN
	.comm	_HCLGE_ROCEE_RAS_CE_INT_EN,4,2  ## @HCLGE_ROCEE_RAS_CE_INT_EN
	.comm	_HCLGE_ROCEE_RAS_NFE_INT_EN_MASK,4,2 ## @HCLGE_ROCEE_RAS_NFE_INT_EN_MASK
	.comm	_HCLGE_ROCEE_RAS_CE_INT_EN_MASK,4,2 ## @HCLGE_ROCEE_RAS_CE_INT_EN_MASK
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"failed(%d) to config ROCEE RAS interrupt\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hclge_config_rocee_ras_interrupt ; -- Begin function hclge_config_rocee_ras_interrupt
	.p2align	2
_hclge_config_rocee_ras_interrupt:      ; @hclge_config_rocee_ras_interrupt
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	ldr	x19, [x0, #8]
	ldr	w8, [x19], #4
	cmp	w8, #33
	b.lt	LBB0_6
; %bb.1:
	mov	x21, x1
	mov	x20, x0
	bl	_hnae3_dev_roce_supported
	cbz	w0, LBB0_6
; %bb.2:
Lloh0:
	adrp	x8, _HCLGE_CONFIG_ROCEE_RAS_INT_EN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _HCLGE_CONFIG_ROCEE_RAS_INT_EN@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	add	x0, sp, #8
	mov	w2, #0
	bl	_hclge_cmd_setup_basic_desc
	cbz	w21, LBB0_4
; %bb.3:
Lloh3:
	adrp	x8, _HCLGE_ROCEE_RAS_NFE_INT_EN@GOTPAGE
Lloh4:
	ldr	x8, [x8, _HCLGE_ROCEE_RAS_NFE_INT_EN@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	bl	_cpu_to_le32
	ldr	x8, [sp, #8]
	str	x0, [x8]
Lloh6:
	adrp	x8, _HCLGE_ROCEE_RAS_CE_INT_EN@GOTPAGE
Lloh7:
	ldr	x8, [x8, _HCLGE_ROCEE_RAS_CE_INT_EN@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	bl	_cpu_to_le32
	ldr	x8, [sp, #8]
	str	x0, [x8, #8]
	mov	x0, x20
	bl	_hclge_log_and_clear_rocee_ras_error
LBB0_4:
Lloh9:
	adrp	x8, _HCLGE_ROCEE_RAS_NFE_INT_EN_MASK@GOTPAGE
Lloh10:
	ldr	x8, [x8, _HCLGE_ROCEE_RAS_NFE_INT_EN_MASK@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
	bl	_cpu_to_le32
	ldr	x8, [sp, #8]
	str	x0, [x8, #16]
Lloh12:
	adrp	x8, _HCLGE_ROCEE_RAS_CE_INT_EN_MASK@GOTPAGE
Lloh13:
	ldr	x8, [x8, _HCLGE_ROCEE_RAS_CE_INT_EN_MASK@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
	bl	_cpu_to_le32
	ldr	x8, [sp, #8]
	str	x0, [x8, #24]
	add	x1, sp, #8
	mov	x0, x20
	mov	w2, #1
	bl	_hclge_cmd_send
	mov	x20, x0
	cbz	w0, LBB0_7
; %bb.5:
Lloh15:
	adrp	x1, l_.str@PAGE
Lloh16:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	mov	x2, x20
	bl	_dev_err
	b	LBB0_7
LBB0_6:
	mov	w20, #0
LBB0_7:
	mov	x0, x20
	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
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_HCLGE_CONFIG_ROCEE_RAS_INT_EN,4,2 ; @HCLGE_CONFIG_ROCEE_RAS_INT_EN
	.comm	_HCLGE_ROCEE_RAS_NFE_INT_EN,4,2 ; @HCLGE_ROCEE_RAS_NFE_INT_EN
	.comm	_HCLGE_ROCEE_RAS_CE_INT_EN,4,2  ; @HCLGE_ROCEE_RAS_CE_INT_EN
	.comm	_HCLGE_ROCEE_RAS_NFE_INT_EN_MASK,4,2 ; @HCLGE_ROCEE_RAS_NFE_INT_EN_MASK
	.comm	_HCLGE_ROCEE_RAS_CE_INT_EN_MASK,4,2 ; @HCLGE_ROCEE_RAS_CE_INT_EN_MASK
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"failed(%d) to config ROCEE RAS interrupt\n"

.subsections_via_symbols
