	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hclge_log_and_clear_rocee_ras_error
_hclge_log_and_clear_rocee_ras_error:   ## @hclge_log_and_clear_rocee_ras_error
	.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	%rdi, %r15
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_HNAE3_NONE_RESET@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	8(%rdi), %r14
	movq	_HCLGE_QUERY_CLEAR_ROCEE_RAS_INT@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-64(%rbp), %rsi
	xorl	%ecx, %ecx
	callq	_hclge_cmd_query_error
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rsi
LBB0_16:
	movq	%r14, %rdi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_dev_err
LBB0_17:
	movq	_HNAE3_GLOBAL_RESET@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
LBB0_18:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_20
## %bb.19:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	movq	-64(%rbp), %rax
	movl	(%rax), %edi
	callq	_le32_to_cpu
	movl	%eax, %r12d
	movq	_HCLGE_ROCEE_AXI_ERR_INT_MASK@GOTPCREL(%rip), %rax
	testl	%r12d, (%rax)
	je	LBB0_8
## %bb.3:
	movq	_HCLGE_ROCEE_RERR_INT_MASK@GOTPCREL(%rip), %rax
	testl	%r12d, (%rax)
	je	LBB0_5
## %bb.4:
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_dev_err
LBB0_5:
	movq	_HCLGE_ROCEE_BERR_INT_MASK@GOTPCREL(%rip), %rax
	testl	%r12d, (%rax)
	je	LBB0_7
## %bb.6:
	leaq	L_.str.2(%rip), %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_dev_err
LBB0_7:
	movq	_HNAE3_FUNC_RESET@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	%r15, %rdi
	callq	_hclge_log_rocee_axi_error
	testl	%eax, %eax
	jne	LBB0_17
LBB0_8:
	movq	_HCLGE_ROCEE_ECC_INT_MASK@GOTPCREL(%rip), %rax
	testl	%r12d, (%rax)
	je	LBB0_11
## %bb.9:
	leaq	L_.str.3(%rip), %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	movq	_HNAE3_GLOBAL_RESET@GOTPCREL(%rip), %r13
	movl	(%r13), %ebx
	movq	%r15, %rdi
	callq	_hclge_log_rocee_ecc_error
	testl	%eax, %eax
	je	LBB0_11
## %bb.10:
	movl	(%r13), %ebx
	jmp	LBB0_18
LBB0_11:
	movq	_HCLGE_ROCEE_OVF_INT_MASK@GOTPCREL(%rip), %rax
	testl	%r12d, (%rax)
	je	LBB0_14
## %bb.12:
	movq	%r15, %rdi
	callq	_hclge_log_rocee_ovf_error
	testl	%eax, %eax
	je	LBB0_14
## %bb.13:
	leaq	L_.str.4(%rip), %rsi
	jmp	LBB0_16
LBB0_14:
	leaq	-64(%rbp), %r12
	movq	%r12, %rdi
	xorl	%esi, %esi
	callq	_hclge_cmd_reuse_desc
	movq	%r15, %rdi
	movq	%r12, %rsi
	movl	$1, %edx
	callq	_hclge_cmd_send
	testl	%eax, %eax
	je	LBB0_18
## %bb.15:
	leaq	L_.str.5(%rip), %rsi
	jmp	LBB0_16
LBB0_20:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_HNAE3_NONE_RESET,4,2           ## @HNAE3_NONE_RESET
	.comm	_HCLGE_QUERY_CLEAR_ROCEE_RAS_INT,4,2 ## @HCLGE_QUERY_CLEAR_ROCEE_RAS_INT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"failed(%d) to query ROCEE RAS INT SRC\n"

	.comm	_HNAE3_GLOBAL_RESET,4,2         ## @HNAE3_GLOBAL_RESET
	.comm	_HCLGE_ROCEE_AXI_ERR_INT_MASK,4,2 ## @HCLGE_ROCEE_AXI_ERR_INT_MASK
	.comm	_HCLGE_ROCEE_RERR_INT_MASK,4,2  ## @HCLGE_ROCEE_RERR_INT_MASK
L_.str.1:                               ## @.str.1
	.asciz	"ROCEE RAS AXI rresp error\n"

	.comm	_HCLGE_ROCEE_BERR_INT_MASK,4,2  ## @HCLGE_ROCEE_BERR_INT_MASK
L_.str.2:                               ## @.str.2
	.asciz	"ROCEE RAS AXI bresp error\n"

	.comm	_HNAE3_FUNC_RESET,4,2           ## @HNAE3_FUNC_RESET
	.comm	_HCLGE_ROCEE_ECC_INT_MASK,4,2   ## @HCLGE_ROCEE_ECC_INT_MASK
L_.str.3:                               ## @.str.3
	.asciz	"ROCEE RAS 2bit ECC error\n"

	.comm	_HCLGE_ROCEE_OVF_INT_MASK,4,2   ## @HCLGE_ROCEE_OVF_INT_MASK
L_.str.4:                               ## @.str.4
	.asciz	"failed(%d) to process ovf error\n"

L_.str.5:                               ## @.str.5
	.asciz	"failed(%d) to clear ROCEE RAS error\n"

	.no_dead_strip	_hclge_log_and_clear_rocee_ras_error
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hclge_log_and_clear_rocee_ras_error
_hclge_log_and_clear_rocee_ras_error:   ; @hclge_log_and_clear_rocee_ras_error
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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	x20, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
Lloh3:
	adrp	x9, _HNAE3_NONE_RESET@GOTPAGE
Lloh4:
	ldr	x9, [x9, _HNAE3_NONE_RESET@GOTPAGEOFF]
	str	x8, [sp, #24]
Lloh5:
	ldr	w21, [x9]
	ldr	x19, [x0, #8]
Lloh6:
	adrp	x8, _HCLGE_QUERY_CLEAR_ROCEE_RAS_INT@GOTPAGE
Lloh7:
	ldr	x8, [x8, _HCLGE_QUERY_CLEAR_ROCEE_RAS_INT@GOTPAGEOFF]
Lloh8:
	ldr	w2, [x8]
	add	x1, sp, #8
	mov	w3, #0
	bl	_hclge_cmd_query_error
                                        ; kill: def $w0 killed $w0 def $x0
	cbz	w0, LBB0_6
; %bb.1:
	str	x0, [sp]
Lloh9:
	adrp	x1, l_.str@PAGE
Lloh10:
	add	x1, x1, l_.str@PAGEOFF
LBB0_2:
	mov	x0, x19
	bl	_dev_err
LBB0_3:
Lloh11:
	adrp	x8, _HNAE3_GLOBAL_RESET@GOTPAGE
Lloh12:
	ldr	x8, [x8, _HNAE3_GLOBAL_RESET@GOTPAGEOFF]
Lloh13:
	ldr	w21, [x8]
LBB0_4:
	ldr	x8, [sp, #24]
Lloh14:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh15:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh16:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_20
; %bb.5:
	mov	x0, x21
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_6:
	ldr	x8, [sp, #8]
	ldr	w0, [x8]
	bl	_le32_to_cpu
	mov	x22, x0
Lloh17:
	adrp	x8, _HCLGE_ROCEE_AXI_ERR_INT_MASK@GOTPAGE
Lloh18:
	ldr	x8, [x8, _HCLGE_ROCEE_AXI_ERR_INT_MASK@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_12
; %bb.7:
Lloh20:
	adrp	x8, _HCLGE_ROCEE_RERR_INT_MASK@GOTPAGE
Lloh21:
	ldr	x8, [x8, _HCLGE_ROCEE_RERR_INT_MASK@GOTPAGEOFF]
Lloh22:
	ldr	w8, [x8]
	tst	w8, w22
	b.eq	LBB0_9
; %bb.8:
Lloh23:
	adrp	x1, l_.str.1@PAGE
Lloh24:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_dev_err
LBB0_9:
Lloh25:
	adrp	x8, _HCLGE_ROCEE_BERR_INT_MASK@GOTPAGE
Lloh26:
	ldr	x8, [x8, _HCLGE_ROCEE_BERR_INT_MASK@GOTPAGEOFF]
Lloh27:
	ldr	w8, [x8]
	tst	w8, w22
	b.eq	LBB0_11
; %bb.10:
Lloh28:
	adrp	x1, l_.str.2@PAGE
Lloh29:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_dev_err
LBB0_11:
Lloh30:
	adrp	x8, _HNAE3_FUNC_RESET@GOTPAGE
Lloh31:
	ldr	x8, [x8, _HNAE3_FUNC_RESET@GOTPAGEOFF]
Lloh32:
	ldr	w21, [x8]
	mov	x0, x20
	bl	_hclge_log_rocee_axi_error
	cbnz	w0, LBB0_3
LBB0_12:
Lloh33:
	adrp	x8, _HCLGE_ROCEE_ECC_INT_MASK@GOTPAGE
Lloh34:
	ldr	x8, [x8, _HCLGE_ROCEE_ECC_INT_MASK@GOTPAGEOFF]
Lloh35:
	ldr	w8, [x8]
	tst	w8, w22
	b.eq	LBB0_15
; %bb.13:
Lloh36:
	adrp	x1, l_.str.3@PAGE
Lloh37:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x19
	bl	_dev_err
Lloh38:
	adrp	x23, _HNAE3_GLOBAL_RESET@GOTPAGE
Lloh39:
	ldr	x23, [x23, _HNAE3_GLOBAL_RESET@GOTPAGEOFF]
	ldr	w21, [x23]
	mov	x0, x20
	bl	_hclge_log_rocee_ecc_error
	cbz	w0, LBB0_15
; %bb.14:
	ldr	w21, [x23]
	b	LBB0_4
LBB0_15:
Lloh40:
	adrp	x8, _HCLGE_ROCEE_OVF_INT_MASK@GOTPAGE
Lloh41:
	ldr	x8, [x8, _HCLGE_ROCEE_OVF_INT_MASK@GOTPAGEOFF]
Lloh42:
	ldr	w8, [x8]
	tst	w8, w22
	b.eq	LBB0_18
; %bb.16:
	mov	x0, x20
	bl	_hclge_log_rocee_ovf_error
                                        ; kill: def $w0 killed $w0 def $x0
	cbz	w0, LBB0_18
; %bb.17:
	str	x0, [sp]
Lloh43:
	adrp	x1, l_.str.4@PAGE
Lloh44:
	add	x1, x1, l_.str.4@PAGEOFF
	b	LBB0_2
LBB0_18:
	add	x0, sp, #8
	mov	w1, #0
	bl	_hclge_cmd_reuse_desc
	add	x1, sp, #8
	mov	x0, x20
	mov	w2, #1
	bl	_hclge_cmd_send
                                        ; kill: def $w0 killed $w0 def $x0
	cbz	w0, LBB0_4
; %bb.19:
	str	x0, [sp]
Lloh45:
	adrp	x1, l_.str.5@PAGE
Lloh46:
	add	x1, x1, l_.str.5@PAGEOFF
	b	LBB0_2
LBB0_20:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGot	Lloh38, Lloh39
	.loh AdrpAdd	Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpAdd	Lloh43, Lloh44
	.loh AdrpAdd	Lloh45, Lloh46
	.cfi_endproc
                                        ; -- End function
	.comm	_HNAE3_NONE_RESET,4,2           ; @HNAE3_NONE_RESET
	.comm	_HCLGE_QUERY_CLEAR_ROCEE_RAS_INT,4,2 ; @HCLGE_QUERY_CLEAR_ROCEE_RAS_INT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"failed(%d) to query ROCEE RAS INT SRC\n"

	.comm	_HNAE3_GLOBAL_RESET,4,2         ; @HNAE3_GLOBAL_RESET
	.comm	_HCLGE_ROCEE_AXI_ERR_INT_MASK,4,2 ; @HCLGE_ROCEE_AXI_ERR_INT_MASK
	.comm	_HCLGE_ROCEE_RERR_INT_MASK,4,2  ; @HCLGE_ROCEE_RERR_INT_MASK
l_.str.1:                               ; @.str.1
	.asciz	"ROCEE RAS AXI rresp error\n"

	.comm	_HCLGE_ROCEE_BERR_INT_MASK,4,2  ; @HCLGE_ROCEE_BERR_INT_MASK
l_.str.2:                               ; @.str.2
	.asciz	"ROCEE RAS AXI bresp error\n"

	.comm	_HNAE3_FUNC_RESET,4,2           ; @HNAE3_FUNC_RESET
	.comm	_HCLGE_ROCEE_ECC_INT_MASK,4,2   ; @HCLGE_ROCEE_ECC_INT_MASK
l_.str.3:                               ; @.str.3
	.asciz	"ROCEE RAS 2bit ECC error\n"

	.comm	_HCLGE_ROCEE_OVF_INT_MASK,4,2   ; @HCLGE_ROCEE_OVF_INT_MASK
l_.str.4:                               ; @.str.4
	.asciz	"failed(%d) to process ovf error\n"

l_.str.5:                               ; @.str.5
	.asciz	"failed(%d) to clear ROCEE RAS error\n"

	.no_dead_strip	_hclge_log_and_clear_rocee_ras_error
.subsections_via_symbols
