	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hclge_set_all_vf_rst
_hclge_set_all_vf_rst:                  ## @hclge_set_all_vf_rst
	.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
	movl	(%rdi), %eax
	incl	%eax
	xorl	%ebx, %ebx
	cmpl	4(%rdi), %eax
	jge	LBB0_9
## %bb.1:
	movq	%rdi, %r13
	movslq	%eax, %r14
	leaq	(,%r14,8), %r12
	movl	%esi, %ebx
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_2 Depth=1
	incq	%r14
	movslq	4(%r13), %rax
	addq	$8, %r12
	cmpq	%rax, %r14
	jge	LBB0_8
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	16(%r13), %r15
	movl	(%r15,%r12), %esi
	movq	%r13, %rdi
	movl	%ebx, %edx
	callq	_hclge_set_vf_rst
	testl	%eax, %eax
	jne	LBB0_10
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	%ebx, %ecx
	testl	%ebx, %ebx
	je	LBB0_7
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	_HCLGE_VPORT_STATE_ALIVE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	(%r15,%r12), %rsi
	addq	$4, %rsi
	callq	_test_bit
	testl	%eax, %eax
	je	LBB0_7
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	leaq	(%r15,%r12), %rdi
	callq	_hclge_inform_reset_assert_to_vf
	testl	%eax, %eax
	je	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	8(%r13), %rdi
	movl	(%r15,%r12), %edx
	leaq	L_.str.1(%rip), %rsi
	movl	%eax, %ecx
	callq	_dev_warn
	jmp	LBB0_7
LBB0_8:
	xorl	%ebx, %ebx
	jmp	LBB0_9
LBB0_10:
	movl	%eax, %ebx
	movq	8(%r13), %rdi
	movl	(%r15,%r12), %edx
	leaq	L_.str(%rip), %rsi
	movl	%eax, %ecx
	callq	_dev_err
LBB0_9:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"set vf(%d) rst failed %d!\n"

	.comm	_HCLGE_VPORT_STATE_ALIVE,4,2    ## @HCLGE_VPORT_STATE_ALIVE
L_.str.1:                               ## @.str.1
	.asciz	"inform reset to vf(%d) failed %d!\n"

	.no_dead_strip	_hclge_set_all_vf_rst
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hclge_set_all_vf_rst
_hclge_set_all_vf_rst:                  ; @hclge_set_all_vf_rst
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	ldp	w8, w9, [x0]
	add	w8, w8, #1
	cmp	w8, w9
	b.ge	LBB0_8
; %bb.1:
	mov	x20, x1
	mov	x19, x0
	sxtw	x25, w8
	sbfiz	x24, x8, #3, #32
Lloh0:
	adrp	x26, _HCLGE_VPORT_STATE_ALIVE@GOTPAGE
Lloh1:
	ldr	x26, [x26, _HCLGE_VPORT_STATE_ALIVE@GOTPAGEOFF]
Lloh2:
	adrp	x21, l_.str.1@PAGE
Lloh3:
	add	x21, x21, l_.str.1@PAGEOFF
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x25, x25, #1
	ldrsw	x8, [x19, #4]
	add	x24, x24, #8
	cmp	x25, x8
	b.ge	LBB0_8
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x27, [x19, #16]
	add	x22, x27, x24
	ldr	w1, [x22]
	mov	x0, x19
	mov	x2, x20
	bl	_hclge_set_vf_rst
	cbnz	w0, LBB0_9
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	cbz	w20, LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w0, [x26]
	add	x8, x27, x24
	add	x1, x8, #4
	bl	_test_bit
	cbz	w0, LBB0_2
; %bb.6:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x22
	bl	_hclge_inform_reset_assert_to_vf
	cbz	w0, LBB0_2
; %bb.7:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x3, x0
	ldr	x0, [x19, #8]
	ldr	w2, [x27, x24]
	mov	x1, x21
	bl	_dev_warn
	b	LBB0_2
LBB0_8:
	mov	w23, #0
	b	LBB0_10
LBB0_9:
	mov	x23, x0
	ldr	x0, [x19, #8]
	ldr	w2, [x27, x24]
Lloh4:
	adrp	x1, l_.str@PAGE
Lloh5:
	add	x1, x1, l_.str@PAGEOFF
	mov	x3, x23
	bl	_dev_err
LBB0_10:
	mov	x0, x23
	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
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"set vf(%d) rst failed %d!\n"

	.comm	_HCLGE_VPORT_STATE_ALIVE,4,2    ; @HCLGE_VPORT_STATE_ALIVE
l_.str.1:                               ; @.str.1
	.asciz	"inform reset to vf(%d) failed %d!\n"

	.no_dead_strip	_hclge_set_all_vf_rst
.subsections_via_symbols
