	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hclge_handle_pf_msix_error
_hclge_handle_pf_msix_error:            ## @hclge_handle_pf_msix_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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, -48(%rbp)                 ## 8-byte Spill
	movl	%edx, %r15d
	movq	%rsi, %rbx
	movq	%rdi, %r12
	movq	8(%rdi), %r14
	movq	_HCLGE_QUERY_CLEAR_ALL_PF_MSIX_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	%r15d, %edx
	callq	_hclge_cmd_send
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	movl	%eax, %r13d
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	movl	%eax, %edx
	callq	_dev_err
	jmp	LBB0_12
LBB0_2:
	movq	(%rbx), %rax
	movl	(%rax), %edi
	callq	_le32_to_cpu
	movq	_HCLGE_SSU_PORT_INT_MSIX_MASK@GOTPCREL(%rip), %rcx
	andl	(%rcx), %eax
	movq	-48(%rbp), %r13                 ## 8-byte Reload
	je	LBB0_4
## %bb.3:
	movq	_hclge_ssu_port_based_pf_int@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rdx
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	movl	%eax, %ecx
	movq	%r13, %r8
	callq	_hclge_log_error
LBB0_4:
	movl	16(%rbx), %edi
	callq	_le32_to_cpu
	testl	%eax, %eax
	je	LBB0_6
## %bb.5:
	movq	_hclge_ppp_pf_abnormal_int@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rdx
	leaq	L_.str.2(%rip), %rsi
	movq	%r14, %rdi
	movl	%eax, %ecx
	movq	%r13, %r8
	callq	_hclge_log_error
LBB0_6:
	movl	24(%rbx), %edi
	callq	_le32_to_cpu
	movq	_HCLGE_PPU_PF_INT_MSIX_MASK@GOTPCREL(%rip), %rcx
	andl	(%rcx), %eax
	je	LBB0_8
## %bb.7:
	movq	_hclge_ppu_pf_abnormal_int@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rdx
	leaq	L_.str.3(%rip), %rsi
	movq	%r14, %rdi
	movl	%eax, %ecx
	movq	%r13, %r8
	callq	_hclge_log_error
LBB0_8:
	movl	24(%rbx), %edi
	callq	_le32_to_cpu
	movq	_HCLGE_PPU_PF_OVER_8BD_ERR_MASK@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_10
## %bb.9:
	movq	%r12, %rdi
	movq	%r13, %rsi
	callq	_hclge_handle_over_8bd_err
LBB0_10:
	xorl	%r13d, %r13d
	movq	%r12, %rdi
	movq	%rbx, %rsi
	xorl	%edx, %edx
	movl	%r15d, %ecx
	callq	_hclge_clear_hw_msix_error
	testl	%eax, %eax
	je	LBB0_12
## %bb.11:
	movl	%eax, %ebx
	leaq	L_.str.4(%rip), %rsi
	movq	%r14, %rdi
	movl	%eax, %edx
	callq	_dev_err
	movl	%ebx, %r13d
LBB0_12:
	movl	%r13d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_HCLGE_QUERY_CLEAR_ALL_PF_MSIX_INT,4,2 ## @HCLGE_QUERY_CLEAR_ALL_PF_MSIX_INT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"query all pf msix int cmd failed (%d)\n"

	.comm	_HCLGE_SSU_PORT_INT_MSIX_MASK,4,2 ## @HCLGE_SSU_PORT_INT_MSIX_MASK
L_.str.1:                               ## @.str.1
	.asciz	"SSU_PORT_BASED_ERR_INT"

	.comm	_hclge_ssu_port_based_pf_int,8,3 ## @hclge_ssu_port_based_pf_int
L_.str.2:                               ## @.str.2
	.asciz	"PPP_PF_ABNORMAL_INT_ST0"

	.comm	_hclge_ppp_pf_abnormal_int,8,3  ## @hclge_ppp_pf_abnormal_int
	.comm	_HCLGE_PPU_PF_INT_MSIX_MASK,4,2 ## @HCLGE_PPU_PF_INT_MSIX_MASK
L_.str.3:                               ## @.str.3
	.asciz	"PPU_PF_ABNORMAL_INT_ST"

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

	.no_dead_strip	_hclge_handle_pf_msix_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_msix_error
_hclge_handle_pf_msix_error:            ; @hclge_handle_pf_msix_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	x23, x3
	mov	x20, x2
	mov	x21, x1
	mov	x22, x0
	ldr	x19, [x0, #8]
Lloh0:
	adrp	x8, _HCLGE_QUERY_CLEAR_ALL_PF_MSIX_INT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _HCLGE_QUERY_CLEAR_ALL_PF_MSIX_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_12
LBB0_2:
	ldr	x8, [x21]
	ldr	w0, [x8]
	bl	_le32_to_cpu
Lloh5:
	adrp	x8, _HCLGE_SSU_PORT_INT_MSIX_MASK@GOTPAGE
Lloh6:
	ldr	x8, [x8, _HCLGE_SSU_PORT_INT_MSIX_MASK@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	ands	w3, w8, w0
	b.eq	LBB0_4
; %bb.3:
Lloh8:
	adrp	x8, _hclge_ssu_port_based_pf_int@GOTPAGE
Lloh9:
	ldr	x8, [x8, _hclge_ssu_port_based_pf_int@GOTPAGEOFF]
Lloh10:
	ldr	x2, [x8]
Lloh11:
	adrp	x1, l_.str.1@PAGE
Lloh12:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	mov	x4, x23
	bl	_hclge_log_error
LBB0_4:
	ldr	w0, [x21, #16]
	bl	_le32_to_cpu
	cbz	w0, LBB0_6
; %bb.5:
	mov	x3, x0
Lloh13:
	adrp	x8, _hclge_ppp_pf_abnormal_int@GOTPAGE
Lloh14:
	ldr	x8, [x8, _hclge_ppp_pf_abnormal_int@GOTPAGEOFF]
Lloh15:
	ldr	x2, [x8]
Lloh16:
	adrp	x1, l_.str.2@PAGE
Lloh17:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	mov	x4, x23
	bl	_hclge_log_error
LBB0_6:
	ldr	w0, [x21, #24]
	bl	_le32_to_cpu
Lloh18:
	adrp	x8, _HCLGE_PPU_PF_INT_MSIX_MASK@GOTPAGE
Lloh19:
	ldr	x8, [x8, _HCLGE_PPU_PF_INT_MSIX_MASK@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	ands	w3, w8, w0
	b.eq	LBB0_8
; %bb.7:
Lloh21:
	adrp	x8, _hclge_ppu_pf_abnormal_int@GOTPAGE
Lloh22:
	ldr	x8, [x8, _hclge_ppu_pf_abnormal_int@GOTPAGEOFF]
Lloh23:
	ldr	x2, [x8]
Lloh24:
	adrp	x1, l_.str.3@PAGE
Lloh25:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x19
	mov	x4, x23
	bl	_hclge_log_error
LBB0_8:
	ldr	w0, [x21, #24]
	bl	_le32_to_cpu
Lloh26:
	adrp	x8, _HCLGE_PPU_PF_OVER_8BD_ERR_MASK@GOTPAGE
Lloh27:
	ldr	x8, [x8, _HCLGE_PPU_PF_OVER_8BD_ERR_MASK@GOTPAGEOFF]
Lloh28:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_10
; %bb.9:
	mov	x0, x22
	mov	x1, x23
	bl	_hclge_handle_over_8bd_err
LBB0_10:
	mov	x0, x22
	mov	x1, x21
	mov	w2, #0
	mov	x3, x20
	bl	_hclge_clear_hw_msix_error
	mov	x24, x0
	cbz	w0, LBB0_13
; %bb.11:
Lloh29:
	adrp	x1, l_.str.4@PAGE
Lloh30:
	add	x1, x1, l_.str.4@PAGEOFF
LBB0_12:
	mov	x0, x19
	mov	x2, x24
	bl	_dev_err
LBB0_13:
	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 AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpAdd	Lloh29, Lloh30
	.cfi_endproc
                                        ; -- End function
	.comm	_HCLGE_QUERY_CLEAR_ALL_PF_MSIX_INT,4,2 ; @HCLGE_QUERY_CLEAR_ALL_PF_MSIX_INT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"query all pf msix int cmd failed (%d)\n"

	.comm	_HCLGE_SSU_PORT_INT_MSIX_MASK,4,2 ; @HCLGE_SSU_PORT_INT_MSIX_MASK
l_.str.1:                               ; @.str.1
	.asciz	"SSU_PORT_BASED_ERR_INT"

	.comm	_hclge_ssu_port_based_pf_int,8,3 ; @hclge_ssu_port_based_pf_int
l_.str.2:                               ; @.str.2
	.asciz	"PPP_PF_ABNORMAL_INT_ST0"

	.comm	_hclge_ppp_pf_abnormal_int,8,3  ; @hclge_ppp_pf_abnormal_int
	.comm	_HCLGE_PPU_PF_INT_MSIX_MASK,4,2 ; @HCLGE_PPU_PF_INT_MSIX_MASK
l_.str.3:                               ; @.str.3
	.asciz	"PPU_PF_ABNORMAL_INT_ST"

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

	.no_dead_strip	_hclge_handle_pf_msix_error
.subsections_via_symbols
