	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hclge_func_reset_sync_vf
_hclge_func_reset_sync_vf:              ## @hclge_func_reset_sync_vf
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	_HCLGE_OPC_QUERY_VF_RST_RDY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-56(%rbp), %r15
	movq	%r15, %rdi
	movl	$1, %edx
	callq	_hclge_cmd_setup_basic_desc
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	leaq	8(%rbx), %r12
	movl	$-1, %ebx
	movq	_EOPNOTSUPP@GOTPCREL(%rip), %r14
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r12, %rdi
	movq	%r15, %rsi
	movl	$1, %edx
	callq	_hclge_cmd_send
	movl	%eax, %r13d
	movl	(%r14), %eax
	addl	%r13d, %eax
	je	LBB0_2
## %bb.3:                               ##   in Loop: Header=BB0_1 Depth=1
	testl	%r13d, %r13d
	jne	LBB0_4
## %bb.5:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	_HCLGE_PF_RESET_SYNC_TIME@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_msleep
	movq	%r15, %rdi
	movl	$1, %esi
	callq	_hclge_cmd_reuse_desc
	incl	%ebx
	movq	_HCLGE_PF_RESET_SYNC_CNT@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ebx
	jl	LBB0_1
## %bb.6:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rdi
	leaq	L_.str.1(%rip), %rsi
	xorl	%r13d, %r13d
	xorl	%eax, %eax
	callq	_dev_err
	movq	_ETIME@GOTPCREL(%rip), %rax
	subl	(%rax), %r13d
	jmp	LBB0_7
LBB0_2:
	movq	_HCLGE_RESET_SYNC_TIME@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_msleep
	xorl	%r13d, %r13d
	jmp	LBB0_7
LBB0_4:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rdi
	leaq	L_.str(%rip), %rsi
	movl	%r13d, %edx
	xorl	%eax, %eax
	callq	_dev_err
LBB0_7:
	movl	%r13d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_HCLGE_OPC_QUERY_VF_RST_RDY,4,2 ## @HCLGE_OPC_QUERY_VF_RST_RDY
	.comm	_EOPNOTSUPP,4,2                 ## @EOPNOTSUPP
	.comm	_HCLGE_RESET_SYNC_TIME,4,2      ## @HCLGE_RESET_SYNC_TIME
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"sync with VF fail %d!\n"

	.comm	_HCLGE_PF_RESET_SYNC_TIME,4,2   ## @HCLGE_PF_RESET_SYNC_TIME
	.comm	_HCLGE_PF_RESET_SYNC_CNT,4,2    ## @HCLGE_PF_RESET_SYNC_CNT
L_.str.1:                               ## @.str.1
	.asciz	"sync with VF timeout!\n"

	.comm	_ETIME,4,2                      ## @ETIME
	.no_dead_strip	_hclge_func_reset_sync_vf
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hclge_func_reset_sync_vf
_hclge_func_reset_sync_vf:              ; @hclge_func_reset_sync_vf
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x0
Lloh0:
	adrp	x8, _HCLGE_OPC_QUERY_VF_RST_RDY@GOTPAGE
Lloh1:
	ldr	x8, [x8, _HCLGE_OPC_QUERY_VF_RST_RDY@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	add	x0, sp, #8
	mov	w2, #1
	bl	_hclge_cmd_setup_basic_desc
	add	x20, x19, #8
	mov	w22, #-1
Lloh3:
	adrp	x23, _EOPNOTSUPP@GOTPAGE
Lloh4:
	ldr	x23, [x23, _EOPNOTSUPP@GOTPAGEOFF]
Lloh5:
	adrp	x24, _HCLGE_PF_RESET_SYNC_TIME@GOTPAGE
Lloh6:
	ldr	x24, [x24, _HCLGE_PF_RESET_SYNC_TIME@GOTPAGEOFF]
Lloh7:
	adrp	x25, _HCLGE_PF_RESET_SYNC_CNT@GOTPAGE
Lloh8:
	ldr	x25, [x25, _HCLGE_PF_RESET_SYNC_CNT@GOTPAGEOFF]
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	add	x1, sp, #8
	mov	x0, x20
	mov	w2, #1
	bl	_hclge_cmd_send
	ldr	w8, [x23]
	cmn	w0, w8
	b.eq	LBB0_5
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	mov	x21, x0
	cbnz	w0, LBB0_6
; %bb.3:                                ;   in Loop: Header=BB0_1 Depth=1
	ldr	w0, [x24]
	bl	_msleep
	add	x0, sp, #8
	mov	w1, #1
	bl	_hclge_cmd_reuse_desc
	ldr	w8, [x25]
	add	w22, w22, #1
	cmp	w22, w8
	b.lt	LBB0_1
; %bb.4:
	ldr	x0, [x19]
Lloh9:
	adrp	x1, l_.str.1@PAGE
Lloh10:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_dev_err
Lloh11:
	adrp	x8, _ETIME@GOTPAGE
Lloh12:
	ldr	x8, [x8, _ETIME@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_7
LBB0_5:
Lloh14:
	adrp	x8, _HCLGE_RESET_SYNC_TIME@GOTPAGE
Lloh15:
	ldr	x8, [x8, _HCLGE_RESET_SYNC_TIME@GOTPAGEOFF]
Lloh16:
	ldr	w0, [x8]
	bl	_msleep
	mov	w21, #0
	b	LBB0_7
LBB0_6:
	ldr	x0, [x19]
	str	x21, [sp]
Lloh17:
	adrp	x1, l_.str@PAGE
Lloh18:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_err
LBB0_7:
	mov	x0, x21
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_HCLGE_OPC_QUERY_VF_RST_RDY,4,2 ; @HCLGE_OPC_QUERY_VF_RST_RDY
	.comm	_EOPNOTSUPP,4,2                 ; @EOPNOTSUPP
	.comm	_HCLGE_RESET_SYNC_TIME,4,2      ; @HCLGE_RESET_SYNC_TIME
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"sync with VF fail %d!\n"

	.comm	_HCLGE_PF_RESET_SYNC_TIME,4,2   ; @HCLGE_PF_RESET_SYNC_TIME
	.comm	_HCLGE_PF_RESET_SYNC_CNT,4,2    ; @HCLGE_PF_RESET_SYNC_CNT
l_.str.1:                               ; @.str.1
	.asciz	"sync with VF timeout!\n"

	.comm	_ETIME,4,2                      ; @ETIME
	.no_dead_strip	_hclge_func_reset_sync_vf
.subsections_via_symbols
