	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hclge_config_common_hw_err_int
_hclge_config_common_hw_err_int:        ## @hclge_config_common_hw_err_int
	.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	$48, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %ebx
	movq	%rdi, %r15
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -40(%rbp)
	movq	8(%rdi), %r14
	movq	_HCLGE_COMMON_ECC_INT_CFG@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	leaq	-80(%rbp), %rdi
	xorl	%edx, %edx
	callq	_hclge_cmd_setup_basic_desc
	movq	_HCLGE_CMD_FLAG_NEXT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_cpu_to_le16
	orl	%eax, -72(%rbp)
	leaq	-64(%rbp), %rdi
	movl	(%r12), %esi
	xorl	%edx, %edx
	callq	_hclge_cmd_setup_basic_desc
	testl	%ebx, %ebx
	je	LBB0_2
## %bb.1:
	movq	_HCLGE_IMP_TCM_ECC_ERR_INT_EN@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_cpu_to_le32
	movq	-80(%rbp), %rcx
	movq	%rax, (%rcx)
	movq	_HCLGE_CMDQ_NIC_ECC_ERR_INT_EN@GOTPCREL(%rip), %rax
	movq	_HCLGE_CMDQ_ROCEE_ECC_ERR_INT_EN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	orl	(%rax), %edi
	callq	_cpu_to_le32
	movq	-80(%rbp), %rcx
	movq	%rax, 16(%rcx)
	movq	_HCLGE_IMP_RD_POISON_ERR_INT_EN@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_cpu_to_le32
	movq	-80(%rbp), %rcx
	movq	%rax, 24(%rcx)
	movq	_HCLGE_TQP_ECC_ERR_INT_EN@GOTPCREL(%rip), %rax
	movq	_HCLGE_MSIX_SRAM_ECC_ERR_INT_EN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	orl	(%rax), %edi
	callq	_cpu_to_le32
	movq	-80(%rbp), %rcx
	movq	%rax, 32(%rcx)
	movq	_HCLGE_IMP_ITCM4_ECC_ERR_INT_EN@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_cpu_to_le32
	movq	-80(%rbp), %rcx
	movq	%rax, 40(%rcx)
LBB0_2:
	movq	_HCLGE_IMP_TCM_ECC_ERR_INT_EN_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_cpu_to_le32
	movq	-64(%rbp), %rcx
	movq	%rax, (%rcx)
	movq	_HCLGE_CMDQ_NIC_ECC_ERR_INT_EN_MASK@GOTPCREL(%rip), %rax
	movq	_HCLGE_CMDQ_ROCEE_ECC_ERR_INT_EN_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	orl	(%rax), %edi
	callq	_cpu_to_le32
	movq	-64(%rbp), %rcx
	movq	%rax, 16(%rcx)
	movq	_HCLGE_IMP_RD_POISON_ERR_INT_EN_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_cpu_to_le32
	movq	-64(%rbp), %rcx
	movq	%rax, 24(%rcx)
	movq	_HCLGE_TQP_ECC_ERR_INT_EN_MASK@GOTPCREL(%rip), %rax
	movq	_HCLGE_MSIX_SRAM_ECC_ERR_INT_EN_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	orl	(%rax), %edi
	callq	_cpu_to_le32
	movq	-64(%rbp), %rcx
	movq	%rax, 32(%rcx)
	movq	_HCLGE_IMP_ITCM4_ECC_ERR_INT_EN_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_cpu_to_le32
	movq	-64(%rbp), %rcx
	movq	%rax, 40(%rcx)
	leaq	-80(%rbp), %rsi
	movq	%r15, %rdi
	movl	$2, %edx
	callq	_hclge_cmd_send
	movl	%eax, %ebx
	testl	%eax, %eax
	je	LBB0_4
## %bb.3:
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	movl	%ebx, %edx
	callq	_dev_err
LBB0_4:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-40(%rbp), %rax
	jne	LBB0_6
## %bb.5:
	movl	%ebx, %eax
	addq	$48, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_HCLGE_COMMON_ECC_INT_CFG,4,2   ## @HCLGE_COMMON_ECC_INT_CFG
	.comm	_HCLGE_CMD_FLAG_NEXT,4,2        ## @HCLGE_CMD_FLAG_NEXT
	.comm	_HCLGE_IMP_TCM_ECC_ERR_INT_EN,4,2 ## @HCLGE_IMP_TCM_ECC_ERR_INT_EN
	.comm	_HCLGE_CMDQ_NIC_ECC_ERR_INT_EN,4,2 ## @HCLGE_CMDQ_NIC_ECC_ERR_INT_EN
	.comm	_HCLGE_CMDQ_ROCEE_ECC_ERR_INT_EN,4,2 ## @HCLGE_CMDQ_ROCEE_ECC_ERR_INT_EN
	.comm	_HCLGE_IMP_RD_POISON_ERR_INT_EN,4,2 ## @HCLGE_IMP_RD_POISON_ERR_INT_EN
	.comm	_HCLGE_TQP_ECC_ERR_INT_EN,4,2   ## @HCLGE_TQP_ECC_ERR_INT_EN
	.comm	_HCLGE_MSIX_SRAM_ECC_ERR_INT_EN,4,2 ## @HCLGE_MSIX_SRAM_ECC_ERR_INT_EN
	.comm	_HCLGE_IMP_ITCM4_ECC_ERR_INT_EN,4,2 ## @HCLGE_IMP_ITCM4_ECC_ERR_INT_EN
	.comm	_HCLGE_IMP_TCM_ECC_ERR_INT_EN_MASK,4,2 ## @HCLGE_IMP_TCM_ECC_ERR_INT_EN_MASK
	.comm	_HCLGE_CMDQ_NIC_ECC_ERR_INT_EN_MASK,4,2 ## @HCLGE_CMDQ_NIC_ECC_ERR_INT_EN_MASK
	.comm	_HCLGE_CMDQ_ROCEE_ECC_ERR_INT_EN_MASK,4,2 ## @HCLGE_CMDQ_ROCEE_ECC_ERR_INT_EN_MASK
	.comm	_HCLGE_IMP_RD_POISON_ERR_INT_EN_MASK,4,2 ## @HCLGE_IMP_RD_POISON_ERR_INT_EN_MASK
	.comm	_HCLGE_TQP_ECC_ERR_INT_EN_MASK,4,2 ## @HCLGE_TQP_ECC_ERR_INT_EN_MASK
	.comm	_HCLGE_MSIX_SRAM_ECC_ERR_INT_EN_MASK,4,2 ## @HCLGE_MSIX_SRAM_ECC_ERR_INT_EN_MASK
	.comm	_HCLGE_IMP_ITCM4_ECC_ERR_INT_EN_MASK,4,2 ## @HCLGE_IMP_ITCM4_ECC_ERR_INT_EN_MASK
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"fail(%d) to configure common err interrupts\n"

	.no_dead_strip	_hclge_config_common_hw_err_int
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hclge_config_common_hw_err_int
_hclge_config_common_hw_err_int:        ; @hclge_config_common_hw_err_int
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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	x21, x1
	mov	x20, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #40]
	ldr	x19, [x0, #8]
Lloh3:
	adrp	x22, _HCLGE_COMMON_ECC_INT_CFG@GOTPAGE
Lloh4:
	ldr	x22, [x22, _HCLGE_COMMON_ECC_INT_CFG@GOTPAGEOFF]
	ldr	w1, [x22]
	add	x23, sp, #8
	add	x0, sp, #8
	mov	w2, #0
	bl	_hclge_cmd_setup_basic_desc
Lloh5:
	adrp	x8, _HCLGE_CMD_FLAG_NEXT@GOTPAGE
Lloh6:
	ldr	x8, [x8, _HCLGE_CMD_FLAG_NEXT@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
	bl	_cpu_to_le16
	ldr	w8, [sp, #16]
	orr	w8, w8, w0
	str	w8, [sp, #16]
	add	x0, x23, #16
	ldr	w1, [x22]
	mov	w2, #0
	bl	_hclge_cmd_setup_basic_desc
	cbz	w21, LBB0_2
; %bb.1:
Lloh8:
	adrp	x8, _HCLGE_IMP_TCM_ECC_ERR_INT_EN@GOTPAGE
Lloh9:
	ldr	x8, [x8, _HCLGE_IMP_TCM_ECC_ERR_INT_EN@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
	bl	_cpu_to_le32
	ldr	x8, [sp, #8]
Lloh11:
	adrp	x9, _HCLGE_CMDQ_NIC_ECC_ERR_INT_EN@GOTPAGE
Lloh12:
	ldr	x9, [x9, _HCLGE_CMDQ_NIC_ECC_ERR_INT_EN@GOTPAGEOFF]
	str	x0, [x8]
Lloh13:
	ldr	w8, [x9]
Lloh14:
	adrp	x9, _HCLGE_CMDQ_ROCEE_ECC_ERR_INT_EN@GOTPAGE
Lloh15:
	ldr	x9, [x9, _HCLGE_CMDQ_ROCEE_ECC_ERR_INT_EN@GOTPAGEOFF]
Lloh16:
	ldr	w9, [x9]
	orr	w0, w9, w8
	bl	_cpu_to_le32
	ldr	x8, [sp, #8]
	str	x0, [x8, #16]
Lloh17:
	adrp	x8, _HCLGE_IMP_RD_POISON_ERR_INT_EN@GOTPAGE
Lloh18:
	ldr	x8, [x8, _HCLGE_IMP_RD_POISON_ERR_INT_EN@GOTPAGEOFF]
Lloh19:
	ldr	w0, [x8]
	bl	_cpu_to_le32
	ldr	x8, [sp, #8]
Lloh20:
	adrp	x9, _HCLGE_TQP_ECC_ERR_INT_EN@GOTPAGE
Lloh21:
	ldr	x9, [x9, _HCLGE_TQP_ECC_ERR_INT_EN@GOTPAGEOFF]
	str	x0, [x8, #24]
Lloh22:
	ldr	w8, [x9]
Lloh23:
	adrp	x9, _HCLGE_MSIX_SRAM_ECC_ERR_INT_EN@GOTPAGE
Lloh24:
	ldr	x9, [x9, _HCLGE_MSIX_SRAM_ECC_ERR_INT_EN@GOTPAGEOFF]
Lloh25:
	ldr	w9, [x9]
	orr	w0, w9, w8
	bl	_cpu_to_le32
	ldr	x8, [sp, #8]
	str	x0, [x8, #32]
Lloh26:
	adrp	x8, _HCLGE_IMP_ITCM4_ECC_ERR_INT_EN@GOTPAGE
Lloh27:
	ldr	x8, [x8, _HCLGE_IMP_ITCM4_ECC_ERR_INT_EN@GOTPAGEOFF]
Lloh28:
	ldr	w0, [x8]
	bl	_cpu_to_le32
	ldr	x8, [sp, #8]
	str	x0, [x8, #40]
LBB0_2:
Lloh29:
	adrp	x8, _HCLGE_IMP_TCM_ECC_ERR_INT_EN_MASK@GOTPAGE
Lloh30:
	ldr	x8, [x8, _HCLGE_IMP_TCM_ECC_ERR_INT_EN_MASK@GOTPAGEOFF]
Lloh31:
	ldr	w0, [x8]
	bl	_cpu_to_le32
	ldr	x8, [sp, #24]
Lloh32:
	adrp	x9, _HCLGE_CMDQ_NIC_ECC_ERR_INT_EN_MASK@GOTPAGE
Lloh33:
	ldr	x9, [x9, _HCLGE_CMDQ_NIC_ECC_ERR_INT_EN_MASK@GOTPAGEOFF]
	str	x0, [x8]
Lloh34:
	ldr	w8, [x9]
Lloh35:
	adrp	x9, _HCLGE_CMDQ_ROCEE_ECC_ERR_INT_EN_MASK@GOTPAGE
Lloh36:
	ldr	x9, [x9, _HCLGE_CMDQ_ROCEE_ECC_ERR_INT_EN_MASK@GOTPAGEOFF]
Lloh37:
	ldr	w9, [x9]
	orr	w0, w9, w8
	bl	_cpu_to_le32
	ldr	x8, [sp, #24]
	str	x0, [x8, #16]
Lloh38:
	adrp	x8, _HCLGE_IMP_RD_POISON_ERR_INT_EN_MASK@GOTPAGE
Lloh39:
	ldr	x8, [x8, _HCLGE_IMP_RD_POISON_ERR_INT_EN_MASK@GOTPAGEOFF]
Lloh40:
	ldr	w0, [x8]
	bl	_cpu_to_le32
	ldr	x8, [sp, #24]
Lloh41:
	adrp	x9, _HCLGE_TQP_ECC_ERR_INT_EN_MASK@GOTPAGE
Lloh42:
	ldr	x9, [x9, _HCLGE_TQP_ECC_ERR_INT_EN_MASK@GOTPAGEOFF]
	str	x0, [x8, #24]
Lloh43:
	ldr	w8, [x9]
Lloh44:
	adrp	x9, _HCLGE_MSIX_SRAM_ECC_ERR_INT_EN_MASK@GOTPAGE
Lloh45:
	ldr	x9, [x9, _HCLGE_MSIX_SRAM_ECC_ERR_INT_EN_MASK@GOTPAGEOFF]
Lloh46:
	ldr	w9, [x9]
	orr	w0, w9, w8
	bl	_cpu_to_le32
	ldr	x8, [sp, #24]
	str	x0, [x8, #32]
Lloh47:
	adrp	x8, _HCLGE_IMP_ITCM4_ECC_ERR_INT_EN_MASK@GOTPAGE
Lloh48:
	ldr	x8, [x8, _HCLGE_IMP_ITCM4_ECC_ERR_INT_EN_MASK@GOTPAGEOFF]
Lloh49:
	ldr	w0, [x8]
	bl	_cpu_to_le32
	ldr	x8, [sp, #24]
	str	x0, [x8, #40]
	add	x1, sp, #8
	mov	x0, x20
	mov	w2, #2
	bl	_hclge_cmd_send
	mov	x20, x0
	cbz	w0, LBB0_4
; %bb.3:
Lloh50:
	adrp	x1, l_.str@PAGE
Lloh51:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	mov	x2, x20
	bl	_dev_err
LBB0_4:
	ldr	x8, [sp, #40]
Lloh52:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh53:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh54:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_6
; %bb.5:
	mov	x0, x20
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_6:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh47, Lloh48, Lloh49
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpAdd	Lloh50, Lloh51
	.loh AdrpLdrGotLdr	Lloh52, Lloh53, Lloh54
	.cfi_endproc
                                        ; -- End function
	.comm	_HCLGE_COMMON_ECC_INT_CFG,4,2   ; @HCLGE_COMMON_ECC_INT_CFG
	.comm	_HCLGE_CMD_FLAG_NEXT,4,2        ; @HCLGE_CMD_FLAG_NEXT
	.comm	_HCLGE_IMP_TCM_ECC_ERR_INT_EN,4,2 ; @HCLGE_IMP_TCM_ECC_ERR_INT_EN
	.comm	_HCLGE_CMDQ_NIC_ECC_ERR_INT_EN,4,2 ; @HCLGE_CMDQ_NIC_ECC_ERR_INT_EN
	.comm	_HCLGE_CMDQ_ROCEE_ECC_ERR_INT_EN,4,2 ; @HCLGE_CMDQ_ROCEE_ECC_ERR_INT_EN
	.comm	_HCLGE_IMP_RD_POISON_ERR_INT_EN,4,2 ; @HCLGE_IMP_RD_POISON_ERR_INT_EN
	.comm	_HCLGE_TQP_ECC_ERR_INT_EN,4,2   ; @HCLGE_TQP_ECC_ERR_INT_EN
	.comm	_HCLGE_MSIX_SRAM_ECC_ERR_INT_EN,4,2 ; @HCLGE_MSIX_SRAM_ECC_ERR_INT_EN
	.comm	_HCLGE_IMP_ITCM4_ECC_ERR_INT_EN,4,2 ; @HCLGE_IMP_ITCM4_ECC_ERR_INT_EN
	.comm	_HCLGE_IMP_TCM_ECC_ERR_INT_EN_MASK,4,2 ; @HCLGE_IMP_TCM_ECC_ERR_INT_EN_MASK
	.comm	_HCLGE_CMDQ_NIC_ECC_ERR_INT_EN_MASK,4,2 ; @HCLGE_CMDQ_NIC_ECC_ERR_INT_EN_MASK
	.comm	_HCLGE_CMDQ_ROCEE_ECC_ERR_INT_EN_MASK,4,2 ; @HCLGE_CMDQ_ROCEE_ECC_ERR_INT_EN_MASK
	.comm	_HCLGE_IMP_RD_POISON_ERR_INT_EN_MASK,4,2 ; @HCLGE_IMP_RD_POISON_ERR_INT_EN_MASK
	.comm	_HCLGE_TQP_ECC_ERR_INT_EN_MASK,4,2 ; @HCLGE_TQP_ECC_ERR_INT_EN_MASK
	.comm	_HCLGE_MSIX_SRAM_ECC_ERR_INT_EN_MASK,4,2 ; @HCLGE_MSIX_SRAM_ECC_ERR_INT_EN_MASK
	.comm	_HCLGE_IMP_ITCM4_ECC_ERR_INT_EN_MASK,4,2 ; @HCLGE_IMP_ITCM4_ECC_ERR_INT_EN_MASK
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"fail(%d) to configure common err interrupts\n"

	.no_dead_strip	_hclge_config_common_hw_err_int
.subsections_via_symbols
