	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hclge_handle_pf_ras_error
_hclge_handle_pf_ras_error:             ## @hclge_handle_pf_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
	movl	%edx, %r13d
	movq	%rsi, %rbx
	movq	%rdi, %r12
	movq	8(%rdi), %r15
	movq	16(%rdi), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	_HCLGE_QUERY_CLEAR_PF_RAS_INT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	$1, %edx
	callq	_hclge_cmd_setup_basic_desc
	movq	%r12, %rdi
	movq	%rbx, %rsi
	movl	%r13d, %edx
	callq	_hclge_cmd_send
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	movl	%eax, %r14d
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	movl	%eax, %edx
	callq	_dev_err
	jmp	LBB0_14
LBB0_2:
	movl	%r13d, -44(%rbp)                ## 4-byte Spill
	movq	(%rbx), %rax
	movl	(%rax), %edi
	callq	_le32_to_cpu
	testl	%eax, %eax
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	je	LBB0_4
## %bb.3:
	movq	_hclge_ssu_port_based_err_int@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rdx
	leaq	L_.str.1(%rip), %rsi
	movq	%r15, %rdi
	movl	%eax, %ecx
	movq	%r14, %r8
	callq	_hclge_log_error
LBB0_4:
	movq	(%rbx), %rax
	movl	4(%rax), %edi
	callq	_le32_to_cpu
	testl	%eax, %eax
	je	LBB0_6
## %bb.5:
	movq	_hclge_ssu_fifo_overflow_int@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rdx
	leaq	L_.str.2(%rip), %rsi
	movq	%r15, %rdi
	movl	%eax, %ecx
	movq	%r14, %r8
	callq	_hclge_log_error
LBB0_6:
	movq	(%rbx), %rax
	movl	8(%rax), %edi
	callq	_le32_to_cpu
	testl	%eax, %eax
	je	LBB0_8
## %bb.7:
	movq	_hclge_ssu_ets_tcg_int@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rdx
	leaq	L_.str.3(%rip), %rsi
	movq	%r15, %rdi
	movl	%eax, %ecx
	movq	%r14, %r8
	callq	_hclge_log_error
LBB0_8:
	movl	8(%rbx), %edi
	callq	_le32_to_cpu
	movq	_HCLGE_IGU_EGU_TNL_INT_MASK@GOTPCREL(%rip), %rcx
	andl	(%rcx), %eax
	je	LBB0_10
## %bb.9:
	movq	_hclge_igu_egu_tnl_int@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rdx
	leaq	L_.str.4(%rip), %rsi
	movq	%r15, %rdi
	movl	%eax, %ecx
	movq	%r14, %r8
	callq	_hclge_log_error
LBB0_10:
	movl	24(%rbx), %edi
	callq	_le32_to_cpu
	movq	_HCLGE_PPU_PF_INT_RAS_MASK@GOTPCREL(%rip), %rcx
	andl	(%rcx), %eax
	je	LBB0_12
## %bb.11:
	movq	_hclge_ppu_pf_abnormal_int@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rdx
	leaq	L_.str.5(%rip), %rsi
	movq	%r15, %rdi
	movl	%eax, %ecx
	movq	%r14, %r8
	callq	_hclge_log_error
	movq	_HNAE3_PPU_POISON_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_hclge_report_hw_error
LBB0_12:
	xorl	%r14d, %r14d
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_hclge_cmd_reuse_desc
	movq	%r12, %rdi
	movq	%rbx, %rsi
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	callq	_hclge_cmd_send
	testl	%eax, %eax
	je	LBB0_14
## %bb.13:
	movl	%eax, %ebx
	leaq	L_.str.6(%rip), %rsi
	movq	%r15, %rdi
	movl	%eax, %edx
	callq	_dev_err
	movl	%ebx, %r14d
LBB0_14:
	movl	%r14d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_HCLGE_QUERY_CLEAR_PF_RAS_INT,4,2 ## @HCLGE_QUERY_CLEAR_PF_RAS_INT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"query all pf ras int cmd failed (%d)\n"

L_.str.1:                               ## @.str.1
	.asciz	"SSU_PORT_BASED_ERR_INT"

	.comm	_hclge_ssu_port_based_err_int,8,3 ## @hclge_ssu_port_based_err_int
L_.str.2:                               ## @.str.2
	.asciz	"SSU_FIFO_OVERFLOW_INT"

	.comm	_hclge_ssu_fifo_overflow_int,8,3 ## @hclge_ssu_fifo_overflow_int
L_.str.3:                               ## @.str.3
	.asciz	"SSU_ETS_TCG_INT"

	.comm	_hclge_ssu_ets_tcg_int,8,3      ## @hclge_ssu_ets_tcg_int
	.comm	_HCLGE_IGU_EGU_TNL_INT_MASK,4,2 ## @HCLGE_IGU_EGU_TNL_INT_MASK
L_.str.4:                               ## @.str.4
	.asciz	"IGU_EGU_TNL_INT_STS"

	.comm	_hclge_igu_egu_tnl_int,8,3      ## @hclge_igu_egu_tnl_int
	.comm	_HCLGE_PPU_PF_INT_RAS_MASK,4,2  ## @HCLGE_PPU_PF_INT_RAS_MASK
L_.str.5:                               ## @.str.5
	.asciz	"PPU_PF_ABNORMAL_INT_ST0"

	.comm	_hclge_ppu_pf_abnormal_int,8,3  ## @hclge_ppu_pf_abnormal_int
	.comm	_HNAE3_PPU_POISON_ERROR,4,2     ## @HNAE3_PPU_POISON_ERROR
L_.str.6:                               ## @.str.6
	.asciz	"clear all pf ras int cmd failed (%d)\n"

	.no_dead_strip	_hclge_handle_pf_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_handle_pf_ras_error
_hclge_handle_pf_ras_error:             ; @hclge_handle_pf_ras_error
	.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	x20, x2
	mov	x21, x1
	mov	x22, x0
	ldp	x19, x23, [x0, #8]
Lloh0:
	adrp	x8, _HCLGE_QUERY_CLEAR_PF_RAS_INT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _HCLGE_QUERY_CLEAR_PF_RAS_INT@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x21
	mov	w2, #1
	bl	_hclge_cmd_setup_basic_desc
	mov	x0, x22
	mov	x1, x21
	mov	x2, x20
	bl	_hclge_cmd_send
	cbz	w0, LBB0_2
; %bb.1:
	mov	x24, x0
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_14
LBB0_2:
	ldr	x8, [x21]
	ldr	w0, [x8]
	bl	_le32_to_cpu
	cbz	w0, LBB0_4
; %bb.3:
	mov	x3, x0
Lloh5:
	adrp	x8, _hclge_ssu_port_based_err_int@GOTPAGE
Lloh6:
	ldr	x8, [x8, _hclge_ssu_port_based_err_int@GOTPAGEOFF]
Lloh7:
	ldr	x2, [x8]
Lloh8:
	adrp	x1, l_.str.1@PAGE
Lloh9:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	mov	x4, x23
	bl	_hclge_log_error
LBB0_4:
	ldr	x8, [x21]
	ldr	w0, [x8, #4]
	bl	_le32_to_cpu
	cbz	w0, LBB0_6
; %bb.5:
	mov	x3, x0
Lloh10:
	adrp	x8, _hclge_ssu_fifo_overflow_int@GOTPAGE
Lloh11:
	ldr	x8, [x8, _hclge_ssu_fifo_overflow_int@GOTPAGEOFF]
Lloh12:
	ldr	x2, [x8]
Lloh13:
	adrp	x1, l_.str.2@PAGE
Lloh14:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	mov	x4, x23
	bl	_hclge_log_error
LBB0_6:
	ldr	x8, [x21]
	ldr	w0, [x8, #8]
	bl	_le32_to_cpu
	cbz	w0, LBB0_8
; %bb.7:
	mov	x3, x0
Lloh15:
	adrp	x8, _hclge_ssu_ets_tcg_int@GOTPAGE
Lloh16:
	ldr	x8, [x8, _hclge_ssu_ets_tcg_int@GOTPAGEOFF]
Lloh17:
	ldr	x2, [x8]
Lloh18:
	adrp	x1, l_.str.3@PAGE
Lloh19:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x19
	mov	x4, x23
	bl	_hclge_log_error
LBB0_8:
	ldr	w0, [x21, #8]
	bl	_le32_to_cpu
Lloh20:
	adrp	x8, _HCLGE_IGU_EGU_TNL_INT_MASK@GOTPAGE
Lloh21:
	ldr	x8, [x8, _HCLGE_IGU_EGU_TNL_INT_MASK@GOTPAGEOFF]
Lloh22:
	ldr	w8, [x8]
	ands	w3, w8, w0
	b.eq	LBB0_10
; %bb.9:
Lloh23:
	adrp	x8, _hclge_igu_egu_tnl_int@GOTPAGE
Lloh24:
	ldr	x8, [x8, _hclge_igu_egu_tnl_int@GOTPAGEOFF]
Lloh25:
	ldr	x2, [x8]
Lloh26:
	adrp	x1, l_.str.4@PAGE
Lloh27:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x19
	mov	x4, x23
	bl	_hclge_log_error
LBB0_10:
	ldr	w0, [x21, #24]
	bl	_le32_to_cpu
Lloh28:
	adrp	x8, _HCLGE_PPU_PF_INT_RAS_MASK@GOTPAGE
Lloh29:
	ldr	x8, [x8, _HCLGE_PPU_PF_INT_RAS_MASK@GOTPAGEOFF]
Lloh30:
	ldr	w8, [x8]
	ands	w3, w8, w0
	b.eq	LBB0_12
; %bb.11:
Lloh31:
	adrp	x8, _hclge_ppu_pf_abnormal_int@GOTPAGE
Lloh32:
	ldr	x8, [x8, _hclge_ppu_pf_abnormal_int@GOTPAGEOFF]
Lloh33:
	ldr	x2, [x8]
Lloh34:
	adrp	x1, l_.str.5@PAGE
Lloh35:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x0, x19
	mov	x4, x23
	bl	_hclge_log_error
Lloh36:
	adrp	x8, _HNAE3_PPU_POISON_ERROR@GOTPAGE
Lloh37:
	ldr	x8, [x8, _HNAE3_PPU_POISON_ERROR@GOTPAGEOFF]
Lloh38:
	ldr	w1, [x8]
	mov	x0, x22
	bl	_hclge_report_hw_error
LBB0_12:
	mov	x0, x21
	mov	w1, #0
	bl	_hclge_cmd_reuse_desc
	mov	x0, x22
	mov	x1, x21
	mov	x2, x20
	bl	_hclge_cmd_send
	mov	x24, x0
	cbz	w0, LBB0_15
; %bb.13:
Lloh39:
	adrp	x1, l_.str.6@PAGE
Lloh40:
	add	x1, x1, l_.str.6@PAGEOFF
LBB0_14:
	mov	x0, x19
	mov	x2, x24
	bl	_dev_err
LBB0_15:
	mov	x0, x24
	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	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpAdd	Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpAdd	Lloh39, Lloh40
	.cfi_endproc
                                        ; -- End function
	.comm	_HCLGE_QUERY_CLEAR_PF_RAS_INT,4,2 ; @HCLGE_QUERY_CLEAR_PF_RAS_INT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"query all pf ras int cmd failed (%d)\n"

l_.str.1:                               ; @.str.1
	.asciz	"SSU_PORT_BASED_ERR_INT"

	.comm	_hclge_ssu_port_based_err_int,8,3 ; @hclge_ssu_port_based_err_int
l_.str.2:                               ; @.str.2
	.asciz	"SSU_FIFO_OVERFLOW_INT"

	.comm	_hclge_ssu_fifo_overflow_int,8,3 ; @hclge_ssu_fifo_overflow_int
l_.str.3:                               ; @.str.3
	.asciz	"SSU_ETS_TCG_INT"

	.comm	_hclge_ssu_ets_tcg_int,8,3      ; @hclge_ssu_ets_tcg_int
	.comm	_HCLGE_IGU_EGU_TNL_INT_MASK,4,2 ; @HCLGE_IGU_EGU_TNL_INT_MASK
l_.str.4:                               ; @.str.4
	.asciz	"IGU_EGU_TNL_INT_STS"

	.comm	_hclge_igu_egu_tnl_int,8,3      ; @hclge_igu_egu_tnl_int
	.comm	_HCLGE_PPU_PF_INT_RAS_MASK,4,2  ; @HCLGE_PPU_PF_INT_RAS_MASK
l_.str.5:                               ; @.str.5
	.asciz	"PPU_PF_ABNORMAL_INT_ST0"

	.comm	_hclge_ppu_pf_abnormal_int,8,3  ; @hclge_ppu_pf_abnormal_int
	.comm	_HNAE3_PPU_POISON_ERROR,4,2     ; @HNAE3_PPU_POISON_ERROR
l_.str.6:                               ; @.str.6
	.asciz	"clear all pf ras int cmd failed (%d)\n"

	.no_dead_strip	_hclge_handle_pf_ras_error
.subsections_via_symbols
