	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hclge_clear_reset_cause
_hclge_clear_reset_cause:               ## @hclge_clear_reset_cause
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	movl	(%rdi), %eax
	cmpl	$128, %eax
	je	LBB0_1
## %bb.2:
	cmpl	$129, %eax
	jne	LBB0_8
## %bb.3:
	movq	_HCLGE_VECTOR0_GLOBALRESET_INT_B@GOTPCREL(%rip), %rax
	jmp	LBB0_4
LBB0_1:
	movq	_HCLGE_VECTOR0_IMPRESET_INT_B@GOTPCREL(%rip), %rax
LBB0_4:
	movl	(%rax), %edi
	callq	_BIT
	testq	%rax, %rax
	je	LBB0_8
## %bb.5:
	movq	16(%rbx), %rcx
	cmpl	$32, (%rcx)
	jne	LBB0_7
## %bb.6:
	leaq	8(%rbx), %rdi
	movq	_HCLGE_MISC_RESET_STS_REG@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	%rax, %rdx
	callq	_hclge_write_dev
LBB0_7:
	addq	$4, %rbx
	movq	%rbx, %rdi
	movl	$1, %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_hclge_enable_vector            ## TAILCALL
LBB0_8:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_HCLGE_VECTOR0_IMPRESET_INT_B,4,2 ## @HCLGE_VECTOR0_IMPRESET_INT_B
	.comm	_HCLGE_VECTOR0_GLOBALRESET_INT_B,4,2 ## @HCLGE_VECTOR0_GLOBALRESET_INT_B
	.comm	_HCLGE_MISC_RESET_STS_REG,4,2   ## @HCLGE_MISC_RESET_STS_REG
	.no_dead_strip	_hclge_clear_reset_cause
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hclge_clear_reset_cause
_hclge_clear_reset_cause:               ; @hclge_clear_reset_cause
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	ldr	w8, [x0]
	cmp	w8, #128
	b.eq	LBB0_3
; %bb.1:
	cmp	w8, #129
	b.ne	LBB0_8
; %bb.2:
Lloh0:
	adrp	x8, _HCLGE_VECTOR0_GLOBALRESET_INT_B@GOTPAGE
Lloh1:
	ldr	x8, [x8, _HCLGE_VECTOR0_GLOBALRESET_INT_B@GOTPAGEOFF]
	b	LBB0_4
LBB0_3:
Lloh2:
	adrp	x8, _HCLGE_VECTOR0_IMPRESET_INT_B@GOTPAGE
Lloh3:
	ldr	x8, [x8, _HCLGE_VECTOR0_IMPRESET_INT_B@GOTPAGEOFF]
LBB0_4:
	ldr	w0, [x8]
	bl	_BIT
	cbz	x0, LBB0_8
; %bb.5:
	ldr	x8, [x19, #16]
	ldr	w8, [x8]
	cmp	w8, #32
	b.ne	LBB0_7
; %bb.6:
	mov	x2, x0
	add	x0, x19, #8
Lloh4:
	adrp	x8, _HCLGE_MISC_RESET_STS_REG@GOTPAGE
Lloh5:
	ldr	x8, [x8, _HCLGE_MISC_RESET_STS_REG@GOTPAGEOFF]
Lloh6:
	ldr	w1, [x8]
	bl	_hclge_write_dev
LBB0_7:
	add	x0, x19, #4
	mov	w1, #1
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_hclge_enable_vector
LBB0_8:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_HCLGE_VECTOR0_IMPRESET_INT_B,4,2 ; @HCLGE_VECTOR0_IMPRESET_INT_B
	.comm	_HCLGE_VECTOR0_GLOBALRESET_INT_B,4,2 ; @HCLGE_VECTOR0_GLOBALRESET_INT_B
	.comm	_HCLGE_MISC_RESET_STS_REG,4,2   ; @HCLGE_MISC_RESET_STS_REG
	.no_dead_strip	_hclge_clear_reset_cause
.subsections_via_symbols
