	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hclge_reset_event
_hclge_reset_event:                     ## @hclge_reset_event
	.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
	callq	_pci_get_drvdata
	movq	%rax, %r14
	movq	(%rax), %rbx
	movq	_jiffies@GOTPCREL(%rip), %r15
	movq	(%r15), %rdi
	movq	_HCLGE_RESET_INTERVAL@GOTPCREL(%rip), %r12
	movq	(%r12), %rsi
	addq	24(%rbx), %rsi
	callq	_time_before
	testq	%rax, %rax
	je	LBB0_1
## %bb.9:
	addq	$40, %rbx
	movq	(%r12), %rsi
	addq	(%r15), %rsi
	movq	%rbx, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_mod_timer                      ## TAILCALL
LBB0_1:
	cmpq	$0, 32(%rbx)
	je	LBB0_3
## %bb.2:
	leaq	32(%rbx), %rsi
	movq	%r14, %rdi
	callq	_hclge_get_reset_level
	movq	%rax, %rdx
	movq	%rax, (%rbx)
	jmp	LBB0_6
LBB0_3:
	movq	(%r15), %rdi
	movq	_HZ@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	leaq	(%rax,%rax,4), %rsi
	shlq	$2, %rsi
	addq	24(%rbx), %rsi
	callq	_time_after
	testq	%rax, %rax
	je	LBB0_4
## %bb.5:
	movq	_HNAE3_FUNC_RESET@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	movq	%rdx, (%rbx)
	jmp	LBB0_6
LBB0_4:
	movq	(%rbx), %rdx
LBB0_6:
	movq	16(%rbx), %rdi
	leaq	L_.str(%rip), %rsi
	callq	_dev_info
	movq	(%rbx), %rdi
	leaq	8(%rbx), %rsi
	callq	_set_bit
	movq	%rbx, %rdi
	callq	_hclge_reset_task_schedule
	movq	(%rbx), %rax
	movq	_HNAE3_GLOBAL_RESET@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jge	LBB0_8
## %bb.7:
	incq	%rax
	movq	%rax, (%rbx)
LBB0_8:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_jiffies,8,3                    ## @jiffies
	.comm	_HCLGE_RESET_INTERVAL,8,3       ## @HCLGE_RESET_INTERVAL
	.comm	_HZ,4,2                         ## @HZ
	.comm	_HNAE3_FUNC_RESET,8,3           ## @HNAE3_FUNC_RESET
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"received reset event, reset type is %d\n"

	.comm	_HNAE3_GLOBAL_RESET,8,3         ## @HNAE3_GLOBAL_RESET
	.no_dead_strip	_hclge_reset_event
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hclge_reset_event
_hclge_reset_event:                     ; @hclge_reset_event
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	bl	_pci_get_drvdata
	mov	x20, x0
	ldr	x19, [x0]
Lloh0:
	adrp	x21, _jiffies@GOTPAGE
Lloh1:
	ldr	x21, [x21, _jiffies@GOTPAGEOFF]
	ldr	x0, [x21]
	ldr	x8, [x19, #24]
Lloh2:
	adrp	x22, _HCLGE_RESET_INTERVAL@GOTPAGE
Lloh3:
	ldr	x22, [x22, _HCLGE_RESET_INTERVAL@GOTPAGEOFF]
	ldr	x9, [x22]
	add	x1, x9, x8
	bl	_time_before
	cbz	x0, LBB0_2
; %bb.1:
	add	x0, x19, #40
	ldr	x8, [x21]
	ldr	x9, [x22]
	add	x1, x9, x8
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_mod_timer
LBB0_2:
	mov	x1, x19
	ldr	x8, [x1, #32]!
	cbz	x8, LBB0_4
; %bb.3:
	mov	x0, x20
	bl	_hclge_get_reset_level
	mov	x2, x0
	str	x0, [x19]
	b	LBB0_7
LBB0_4:
	ldr	x0, [x21]
	ldr	x8, [x19, #24]
Lloh4:
	adrp	x9, _HZ@GOTPAGE
Lloh5:
	ldr	x9, [x9, _HZ@GOTPAGEOFF]
Lloh6:
	ldrsw	x9, [x9]
	mov	w10, #20
	madd	x1, x9, x10, x8
	bl	_time_after
	cbz	x0, LBB0_6
; %bb.5:
Lloh7:
	adrp	x8, _HNAE3_FUNC_RESET@GOTPAGE
Lloh8:
	ldr	x8, [x8, _HNAE3_FUNC_RESET@GOTPAGEOFF]
Lloh9:
	ldr	x2, [x8]
	str	x2, [x19]
	b	LBB0_7
LBB0_6:
	ldr	x2, [x19]
LBB0_7:
	ldr	x0, [x19, #16]
Lloh10:
	adrp	x1, l_.str@PAGE
Lloh11:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_info
	ldr	x0, [x19]
	add	x1, x19, #8
	bl	_set_bit
	mov	x0, x19
	bl	_hclge_reset_task_schedule
	ldr	x8, [x19]
Lloh12:
	adrp	x9, _HNAE3_GLOBAL_RESET@GOTPAGE
Lloh13:
	ldr	x9, [x9, _HNAE3_GLOBAL_RESET@GOTPAGEOFF]
Lloh14:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ge	LBB0_9
; %bb.8:
	add	x8, x8, #1
	str	x8, [x19]
LBB0_9:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_jiffies,8,3                    ; @jiffies
	.comm	_HCLGE_RESET_INTERVAL,8,3       ; @HCLGE_RESET_INTERVAL
	.comm	_HZ,4,2                         ; @HZ
	.comm	_HNAE3_FUNC_RESET,8,3           ; @HNAE3_FUNC_RESET
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"received reset event, reset type is %d\n"

	.comm	_HNAE3_GLOBAL_RESET,8,3         ; @HNAE3_GLOBAL_RESET
	.no_dead_strip	_hclge_reset_event
.subsections_via_symbols
