	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hclge_do_reset
_hclge_do_reset:                        ## @hclge_do_reset
	.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
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	16(%rdi), %r14
	movq	24(%rdi), %rdi
	callq	_hclge_get_hw_reset_stat
	testq	%rax, %rax
	je	LBB0_1
## %bb.9:
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_dev_info
	addq	$8, %rbx
	movq	_HCLGE_FUN_RST_ING@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_hclge_read_dev
	movl	%eax, %r15d
	movq	_HCLGE_GLOBAL_RESET_REG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_hclge_read_dev
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	movl	%r15d, %edx
	movl	%eax, %ecx
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_dev_info                       ## TAILCALL
LBB0_1:
	movl	(%rbx), %edx
	cmpl	$130, %edx
	je	LBB0_7
## %bb.2:
	cmpl	$129, %edx
	je	LBB0_5
## %bb.3:
	cmpl	$128, %edx
	jne	LBB0_8
## %bb.4:
	addq	$8, %rbx
	movq	_HCLGE_GLOBAL_RESET_REG@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movq	%rbx, %rdi
	callq	_hclge_read_dev
	movl	%eax, %r15d
	movq	_HCLGE_GLOBAL_RESET_BIT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r15d, %edi
	movl	$1, %edx
	callq	_hnae3_set_bit
	movl	(%r12), %esi
	movq	%rbx, %rdi
	movl	%r15d, %edx
	callq	_hclge_write_dev
	leaq	L_.str.2(%rip), %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_dev_info                       ## TAILCALL
LBB0_7:
	leaq	L_.str.4(%rip), %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_dev_info
	leaq	4(%rbx), %rsi
	movl	$130, %edi
	jmp	LBB0_6
LBB0_5:
	leaq	L_.str.3(%rip), %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_dev_info
	leaq	4(%rbx), %rsi
	movl	$129, %edi
LBB0_6:
	callq	_set_bit
	movq	%rbx, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_hclge_reset_task_schedule      ## TAILCALL
LBB0_8:
	leaq	L_.str.5(%rip), %rsi
	movq	%r14, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_dev_warn                       ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Hardware reset not finish\n"

L_.str.1:                               ## @.str.1
	.asciz	"func_rst_reg:0x%x, global_rst_reg:0x%x\n"

	.comm	_HCLGE_FUN_RST_ING,4,2          ## @HCLGE_FUN_RST_ING
	.comm	_HCLGE_GLOBAL_RESET_REG,4,2     ## @HCLGE_GLOBAL_RESET_REG
	.comm	_HCLGE_GLOBAL_RESET_BIT,4,2     ## @HCLGE_GLOBAL_RESET_BIT
L_.str.2:                               ## @.str.2
	.asciz	"Global Reset requested\n"

L_.str.3:                               ## @.str.3
	.asciz	"PF Reset requested\n"

L_.str.4:                               ## @.str.4
	.asciz	"FLR requested\n"

L_.str.5:                               ## @.str.5
	.asciz	"Unsupported reset type: %d\n"

	.no_dead_strip	_hclge_do_reset
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hclge_do_reset
_hclge_do_reset:                        ; @hclge_do_reset
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x20, x0
	ldr	x0, [x0, #24]
	ldr	x19, [x20, #16]
	bl	_hclge_get_hw_reset_stat
	cbz	x0, LBB0_2
; %bb.1:
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_dev_info
	add	x20, x20, #8
Lloh2:
	adrp	x8, _HCLGE_FUN_RST_ING@GOTPAGE
Lloh3:
	ldr	x8, [x8, _HCLGE_FUN_RST_ING@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_hclge_read_dev
	mov	x21, x0
Lloh5:
	adrp	x8, _HCLGE_GLOBAL_RESET_REG@GOTPAGE
Lloh6:
	ldr	x8, [x8, _HCLGE_GLOBAL_RESET_REG@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_hclge_read_dev
                                        ; kill: def $w0 killed $w0 def $x0
	stp	x21, x0, [sp]
Lloh8:
	adrp	x1, l_.str.1@PAGE
Lloh9:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_dev_info
	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
	add	sp, sp, #64
	ret
LBB0_2:
	ldr	w2, [x20]
	cmp	w2, #130
	b.eq	LBB0_6
; %bb.3:
	cmp	w2, #129
	b.eq	LBB0_7
; %bb.4:
	cmp	w2, #128
	b.ne	LBB0_9
; %bb.5:
	add	x20, x20, #8
Lloh10:
	adrp	x22, _HCLGE_GLOBAL_RESET_REG@GOTPAGE
Lloh11:
	ldr	x22, [x22, _HCLGE_GLOBAL_RESET_REG@GOTPAGEOFF]
	ldr	w1, [x22]
	mov	x0, x20
	bl	_hclge_read_dev
	mov	x21, x0
Lloh12:
	adrp	x8, _HCLGE_GLOBAL_RESET_BIT@GOTPAGE
Lloh13:
	ldr	x8, [x8, _HCLGE_GLOBAL_RESET_BIT@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	mov	w2, #1
	bl	_hnae3_set_bit
	ldr	w1, [x22]
	mov	x0, x20
	mov	x2, x21
	bl	_hclge_write_dev
Lloh15:
	adrp	x1, l_.str.2@PAGE
Lloh16:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	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
	add	sp, sp, #64
	b	_dev_info
LBB0_6:
Lloh17:
	adrp	x1, l_.str.4@PAGE
Lloh18:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x19
	bl	_dev_info
	add	x1, x20, #4
	mov	w0, #130
	b	LBB0_8
LBB0_7:
Lloh19:
	adrp	x1, l_.str.3@PAGE
Lloh20:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x19
	bl	_dev_info
	add	x1, x20, #4
	mov	w0, #129
LBB0_8:
	bl	_set_bit
	mov	x0, x20
	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
	add	sp, sp, #64
	b	_hclge_reset_task_schedule
LBB0_9:
Lloh21:
	adrp	x1, l_.str.5@PAGE
Lloh22:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x0, x19
	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
	add	sp, sp, #64
	b	_dev_warn
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpAdd	Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Hardware reset not finish\n"

l_.str.1:                               ; @.str.1
	.asciz	"func_rst_reg:0x%x, global_rst_reg:0x%x\n"

	.comm	_HCLGE_FUN_RST_ING,4,2          ; @HCLGE_FUN_RST_ING
	.comm	_HCLGE_GLOBAL_RESET_REG,4,2     ; @HCLGE_GLOBAL_RESET_REG
	.comm	_HCLGE_GLOBAL_RESET_BIT,4,2     ; @HCLGE_GLOBAL_RESET_BIT
l_.str.2:                               ; @.str.2
	.asciz	"Global Reset requested\n"

l_.str.3:                               ; @.str.3
	.asciz	"PF Reset requested\n"

l_.str.4:                               ; @.str.4
	.asciz	"FLR requested\n"

l_.str.5:                               ; @.str.5
	.asciz	"Unsupported reset type: %d\n"

	.no_dead_strip	_hclge_do_reset
.subsections_via_symbols
