	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hclge_get_reset_level
_hclge_get_reset_level:                 ## @hclge_get_reset_level
	.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	%rsi, %rbx
	movq	_HNAE3_NONE_RESET@GOTPCREL(%rip), %r12
	movl	(%r12), %r15d
	movq	(%rdi), %r14
	movq	_HNAE3_UNKNOWN_RESET@GOTPCREL(%rip), %r13
	movl	(%r13), %edi
	callq	_test_bit
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_hclge_handle_hw_msix_error
	movl	(%r13), %edi
	movq	%rbx, %rsi
	callq	_clear_bit
	leaq	8(%r14), %rdi
	movl	$1, %esi
	callq	_hclge_enable_vector
LBB0_2:
	movq	_HNAE3_IMP_RESET@GOTPCREL(%rip), %r13
	movl	(%r13), %edi
	movq	%rbx, %rsi
	callq	_test_bit
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movl	(%r13), %r15d
	movl	%r15d, %edi
	movq	%rbx, %rsi
	callq	_clear_bit
	movq	_HNAE3_GLOBAL_RESET@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	jmp	LBB0_6
LBB0_4:
	movq	_HNAE3_GLOBAL_RESET@GOTPCREL(%rip), %r13
	movl	(%r13), %edi
	movq	%rbx, %rsi
	callq	_test_bit
	testq	%rax, %rax
	je	LBB0_7
## %bb.5:
	movl	(%r13), %r15d
	movl	%r15d, %edi
LBB0_6:
	movq	%rbx, %rsi
	callq	_clear_bit
	movq	_HNAE3_FUNC_RESET@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
LBB0_10:
	movq	%rbx, %rsi
	callq	_clear_bit
LBB0_11:
	movq	(%r14), %rcx
	movq	(%r12), %rdx
	movl	%r15d, %eax
	cmpq	%rax, %rcx
	movl	%edx, %eax
	cmovlel	%r15d, %eax
	cmpq	%rdx, %rcx
	cmovel	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	movq	_HNAE3_FUNC_RESET@GOTPCREL(%rip), %r13
	movl	(%r13), %edi
	movq	%rbx, %rsi
	callq	_test_bit
	testq	%rax, %rax
	jne	LBB0_9
## %bb.8:
	movq	_HNAE3_FLR_RESET@GOTPCREL(%rip), %r13
	movl	(%r13), %edi
	movq	%rbx, %rsi
	callq	_test_bit
	testq	%rax, %rax
	je	LBB0_11
LBB0_9:
	movl	(%r13), %edi
	movl	%edi, %r15d
	jmp	LBB0_10
	.cfi_endproc
                                        ## -- End function
	.comm	_HNAE3_NONE_RESET,8,3           ## @HNAE3_NONE_RESET
	.comm	_HNAE3_UNKNOWN_RESET,4,2        ## @HNAE3_UNKNOWN_RESET
	.comm	_HNAE3_IMP_RESET,4,2            ## @HNAE3_IMP_RESET
	.comm	_HNAE3_GLOBAL_RESET,4,2         ## @HNAE3_GLOBAL_RESET
	.comm	_HNAE3_FUNC_RESET,4,2           ## @HNAE3_FUNC_RESET
	.comm	_HNAE3_FLR_RESET,4,2            ## @HNAE3_FLR_RESET
	.no_dead_strip	_hclge_get_reset_level
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hclge_get_reset_level
_hclge_get_reset_level:                 ; @hclge_get_reset_level
	.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	x21, x1
Lloh0:
	adrp	x22, _HNAE3_NONE_RESET@GOTPAGE
Lloh1:
	ldr	x22, [x22, _HNAE3_NONE_RESET@GOTPAGEOFF]
	ldr	w20, [x22]
	ldr	x19, [x0]
Lloh2:
	adrp	x23, _HNAE3_UNKNOWN_RESET@GOTPAGE
Lloh3:
	ldr	x23, [x23, _HNAE3_UNKNOWN_RESET@GOTPAGEOFF]
	ldr	w0, [x23]
	bl	_test_bit
	cbz	x0, LBB0_2
; %bb.1:
	mov	x0, x19
	mov	x1, x21
	bl	_hclge_handle_hw_msix_error
	ldr	w0, [x23]
	mov	x1, x21
	bl	_clear_bit
	add	x0, x19, #8
	mov	w1, #1
	bl	_hclge_enable_vector
LBB0_2:
Lloh4:
	adrp	x23, _HNAE3_IMP_RESET@GOTPAGE
Lloh5:
	ldr	x23, [x23, _HNAE3_IMP_RESET@GOTPAGEOFF]
	ldr	w0, [x23]
	mov	x1, x21
	bl	_test_bit
	cbz	x0, LBB0_4
; %bb.3:
	ldr	w20, [x23]
	mov	x0, x20
	mov	x1, x21
	bl	_clear_bit
Lloh6:
	adrp	x8, _HNAE3_GLOBAL_RESET@GOTPAGE
Lloh7:
	ldr	x8, [x8, _HNAE3_GLOBAL_RESET@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	b	LBB0_6
LBB0_4:
Lloh9:
	adrp	x23, _HNAE3_GLOBAL_RESET@GOTPAGE
Lloh10:
	ldr	x23, [x23, _HNAE3_GLOBAL_RESET@GOTPAGEOFF]
	ldr	w0, [x23]
	mov	x1, x21
	bl	_test_bit
	cbz	x0, LBB0_9
; %bb.5:
	ldr	w20, [x23]
	mov	x0, x20
LBB0_6:
	mov	x1, x21
	bl	_clear_bit
Lloh11:
	adrp	x8, _HNAE3_FUNC_RESET@GOTPAGE
Lloh12:
	ldr	x8, [x8, _HNAE3_FUNC_RESET@GOTPAGEOFF]
Lloh13:
	ldr	w0, [x8]
LBB0_7:
	mov	x1, x21
	bl	_clear_bit
LBB0_8:
	ldr	x8, [x19]
	ldr	x9, [x22]
	cmp	x8, w20, uxtw
	ccmp	x8, x9, #4, gt
	csel	w0, w9, w20, ne
	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
LBB0_9:
Lloh14:
	adrp	x23, _HNAE3_FUNC_RESET@GOTPAGE
Lloh15:
	ldr	x23, [x23, _HNAE3_FUNC_RESET@GOTPAGEOFF]
	ldr	w0, [x23]
	mov	x1, x21
	bl	_test_bit
	cbnz	x0, LBB0_11
; %bb.10:
Lloh16:
	adrp	x23, _HNAE3_FLR_RESET@GOTPAGE
Lloh17:
	ldr	x23, [x23, _HNAE3_FLR_RESET@GOTPAGEOFF]
	ldr	w0, [x23]
	mov	x1, x21
	bl	_test_bit
	cbz	x0, LBB0_8
LBB0_11:
	ldr	w0, [x23]
	mov	x20, x0
	b	LBB0_7
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_HNAE3_NONE_RESET,8,3           ; @HNAE3_NONE_RESET
	.comm	_HNAE3_UNKNOWN_RESET,4,2        ; @HNAE3_UNKNOWN_RESET
	.comm	_HNAE3_IMP_RESET,4,2            ; @HNAE3_IMP_RESET
	.comm	_HNAE3_GLOBAL_RESET,4,2         ; @HNAE3_GLOBAL_RESET
	.comm	_HNAE3_FUNC_RESET,4,2           ; @HNAE3_FUNC_RESET
	.comm	_HNAE3_FLR_RESET,4,2            ; @HNAE3_FLR_RESET
	.no_dead_strip	_hclge_get_reset_level
.subsections_via_symbols
