	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bnx2x_vf_flr_clnup
_bnx2x_vf_flr_clnup:                    ## @bnx2x_vf_flr_clnup
	.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	%rdi, %r14
	callq	_BNX2X_NR_VIRTFN
	testl	%eax, %eax
	jle	LBB0_6
## %bb.1:
	xorl	%ebx, %ebx
	movq	_state@GOTPCREL(%rip), %r12
	movq	_VF_RESET@GOTPCREL(%rip), %r15
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	incl	%ebx
	movq	%r14, %rdi
	callq	_BNX2X_NR_VIRTFN
	cmpl	%eax, %ebx
	jge	LBB0_6
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r12), %edx
	movq	%r14, %rdi
	movl	%ebx, %esi
	callq	_bnx2x_vf
	cmpq	(%r15), %rax
	jne	LBB0_5
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	_flr_clnup_stage@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	movl	%ebx, %esi
	callq	_bnx2x_vf
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	_BNX2X_MSG_IOV@GOTPCREL(%rip), %rax
	movq	%r12, %r15
	movl	(%rax), %r12d
	movq	%r14, %rdi
	callq	_BNX2X_NR_VIRTFN
	movl	%r12d, %edi
	leaq	L_.str(%rip), %rsi
	movl	%ebx, %edx
	movl	%eax, %ecx
	callq	_DP
	movq	%r14, %rdi
	movl	%ebx, %esi
	callq	_BP_VF
	movq	%rax, %r12
	movq	_CHANNEL_TLV_FLR@GOTPCREL(%rip), %r13
	movl	(%r13), %edx
	movq	%r14, %rdi
	movq	%rax, %rsi
	callq	_bnx2x_lock_vf_pf_channel
	movq	%r14, %rdi
	movq	%r12, %rsi
	callq	_bnx2x_vf_flr
	movl	$0, (%r12)
	movl	(%r13), %edx
	movq	%r14, %rdi
	movq	%r12, %rsi
	movq	%r15, %r12
	movq	_VF_RESET@GOTPCREL(%rip), %r15
	callq	_bnx2x_unlock_vf_pf_channel
	jmp	LBB0_5
LBB0_6:
	movq	_BNX2X_MSG_MCP@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	(%r14), %rax
	movq	(%rax), %rax
	movl	(%rax), %edx
	movl	4(%rax), %ecx
	leaq	L_.str.1(%rip), %rsi
	callq	_DP
	movq	_FLRD_VFS_DWORDS@GOTPCREL(%rip), %r15
	cmpl	$0, (%r15)
	jle	LBB0_9
## %bb.7:
	xorl	%ebx, %ebx
	movq	_drv_ack_vf_disabled@GOTPCREL(%rip), %r12
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r12), %r13
	movq	%r14, %rdi
	callq	_BP_FW_MB_IDX
	movq	(%r13,%rax,8), %rax
	movl	(%rax,%rbx,4), %esi
	movq	(%r14), %rax
	movq	(%rax), %rax
	movl	(%rax,%rbx,4), %edx
	movq	%r14, %rdi
	callq	_SHMEM2_WR
	incq	%rbx
	movslq	(%r15), %rax
	cmpq	%rax, %rbx
	jl	LBB0_8
LBB0_9:
	movq	_DRV_MSG_CODE_VF_DISABLED_DONE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	_bnx2x_fw_command
	cmpl	$0, (%r15)
	jle	LBB0_12
## %bb.10:
	xorl	%ebx, %ebx
	movq	_drv_ack_vf_disabled@GOTPCREL(%rip), %r12
	.p2align	4, 0x90
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	movq	(%r12), %r13
	movq	%r14, %rdi
	callq	_BP_FW_MB_IDX
	movq	(%r13,%rax,8), %rax
	movl	(%rax,%rbx,4), %esi
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	_SHMEM2_WR
	incq	%rbx
	movslq	(%r15), %rax
	cmpq	%rax, %rbx
	jl	LBB0_11
LBB0_12:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_state,4,2                      ## @state
	.comm	_VF_RESET,8,3                   ## @VF_RESET
	.comm	_flr_clnup_stage,4,2            ## @flr_clnup_stage
	.comm	_BNX2X_MSG_IOV,4,2              ## @BNX2X_MSG_IOV
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"next vf to cleanup: %d. Num of vfs: %d\n"

	.comm	_CHANNEL_TLV_FLR,4,2            ## @CHANNEL_TLV_FLR
	.comm	_BNX2X_MSG_MCP,4,2              ## @BNX2X_MSG_MCP
L_.str.1:                               ## @.str.1
	.asciz	"DRV_STATUS_VF_DISABLED ACK for vfs 0x%x 0x%x\n"

	.comm	_FLRD_VFS_DWORDS,4,2            ## @FLRD_VFS_DWORDS
	.comm	_drv_ack_vf_disabled,8,3        ## @drv_ack_vf_disabled
	.comm	_DRV_MSG_CODE_VF_DISABLED_DONE,4,2 ## @DRV_MSG_CODE_VF_DISABLED_DONE
	.no_dead_strip	_bnx2x_vf_flr_clnup
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bnx2x_vf_flr_clnup
_bnx2x_vf_flr_clnup:                    ; @bnx2x_vf_flr_clnup
	.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
	mov	x19, x0
	bl	_BNX2X_NR_VIRTFN
	cmp	w0, #1
	b.lt	LBB0_6
; %bb.1:
	mov	w20, #0
Lloh0:
	adrp	x23, _state@GOTPAGE
Lloh1:
	ldr	x23, [x23, _state@GOTPAGEOFF]
Lloh2:
	adrp	x24, _VF_RESET@GOTPAGE
Lloh3:
	ldr	x24, [x24, _VF_RESET@GOTPAGEOFF]
Lloh4:
	adrp	x25, _flr_clnup_stage@GOTPAGE
Lloh5:
	ldr	x25, [x25, _flr_clnup_stage@GOTPAGEOFF]
Lloh6:
	adrp	x26, _BNX2X_MSG_IOV@GOTPAGE
Lloh7:
	ldr	x26, [x26, _BNX2X_MSG_IOV@GOTPAGEOFF]
Lloh8:
	adrp	x21, l_.str@PAGE
Lloh9:
	add	x21, x21, l_.str@PAGEOFF
Lloh10:
	adrp	x27, _CHANNEL_TLV_FLR@GOTPAGE
Lloh11:
	ldr	x27, [x27, _CHANNEL_TLV_FLR@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	w20, w20, #1
	mov	x0, x19
	bl	_BNX2X_NR_VIRTFN
	cmp	w20, w0
	b.ge	LBB0_6
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w2, [x23]
	mov	x0, x19
	mov	x1, x20
	bl	_bnx2x_vf
	ldr	x8, [x24]
	cmp	x0, x8
	b.ne	LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w2, [x25]
	mov	x0, x19
	mov	x1, x20
	bl	_bnx2x_vf
	cbz	x0, LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w22, [x26]
	mov	x0, x19
	bl	_BNX2X_NR_VIRTFN
	mov	x3, x0
	mov	x0, x22
	mov	x1, x21
	mov	x2, x20
	bl	_DP
	mov	x0, x19
	mov	x1, x20
	bl	_BP_VF
	mov	x22, x0
	ldr	w2, [x27]
	mov	x0, x19
	mov	x1, x22
	bl	_bnx2x_lock_vf_pf_channel
	mov	x0, x19
	mov	x1, x22
	bl	_bnx2x_vf_flr
	str	wzr, [x22]
	ldr	w2, [x27]
	mov	x0, x19
	mov	x1, x22
	bl	_bnx2x_unlock_vf_pf_channel
	b	LBB0_2
LBB0_6:
Lloh12:
	adrp	x8, _BNX2X_MSG_MCP@GOTPAGE
Lloh13:
	ldr	x8, [x8, _BNX2X_MSG_MCP@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
	ldr	x8, [x19]
	ldr	x8, [x8]
	ldp	w2, w3, [x8]
Lloh15:
	adrp	x1, l_.str.1@PAGE
Lloh16:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_DP
Lloh17:
	adrp	x20, _FLRD_VFS_DWORDS@GOTPAGE
Lloh18:
	ldr	x20, [x20, _FLRD_VFS_DWORDS@GOTPAGEOFF]
	ldr	w8, [x20]
Lloh19:
	adrp	x21, _drv_ack_vf_disabled@GOTPAGE
Lloh20:
	ldr	x21, [x21, _drv_ack_vf_disabled@GOTPAGEOFF]
	cmp	w8, #1
	b.lt	LBB0_9
; %bb.7:
	mov	x22, #0
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x23, [x21]
	mov	x0, x19
	bl	_BP_FW_MB_IDX
	ldr	x8, [x23, x0, lsl #3]
	lsl	x9, x22, #2
	ldr	w1, [x8, x9]
	ldr	x8, [x19]
	ldr	x8, [x8]
	ldr	w2, [x8, x9]
	mov	x0, x19
	bl	_SHMEM2_WR
	add	x22, x22, #1
	ldrsw	x8, [x20]
	cmp	x22, x8
	b.lt	LBB0_8
LBB0_9:
Lloh21:
	adrp	x8, _DRV_MSG_CODE_VF_DISABLED_DONE@GOTPAGE
Lloh22:
	ldr	x8, [x8, _DRV_MSG_CODE_VF_DISABLED_DONE@GOTPAGEOFF]
Lloh23:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
	bl	_bnx2x_fw_command
	ldr	w8, [x20]
	cmp	w8, #1
	b.lt	LBB0_12
; %bb.10:
	mov	x22, #0
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	ldr	x23, [x21]
	mov	x0, x19
	bl	_BP_FW_MB_IDX
	ldr	x8, [x23, x0, lsl #3]
	ldr	w1, [x8, x22, lsl #2]
	mov	x0, x19
	mov	w2, #0
	bl	_SHMEM2_WR
	add	x22, x22, #1
	ldrsw	x8, [x20]
	cmp	x22, x8
	b.lt	LBB0_11
LBB0_12:
	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 AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.comm	_state,4,2                      ; @state
	.comm	_VF_RESET,8,3                   ; @VF_RESET
	.comm	_flr_clnup_stage,4,2            ; @flr_clnup_stage
	.comm	_BNX2X_MSG_IOV,4,2              ; @BNX2X_MSG_IOV
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"next vf to cleanup: %d. Num of vfs: %d\n"

	.comm	_CHANNEL_TLV_FLR,4,2            ; @CHANNEL_TLV_FLR
	.comm	_BNX2X_MSG_MCP,4,2              ; @BNX2X_MSG_MCP
l_.str.1:                               ; @.str.1
	.asciz	"DRV_STATUS_VF_DISABLED ACK for vfs 0x%x 0x%x\n"

	.comm	_FLRD_VFS_DWORDS,4,2            ; @FLRD_VFS_DWORDS
	.comm	_drv_ack_vf_disabled,8,3        ; @drv_ack_vf_disabled
	.comm	_DRV_MSG_CODE_VF_DISABLED_DONE,4,2 ; @DRV_MSG_CODE_VF_DISABLED_DONE
	.no_dead_strip	_bnx2x_vf_flr_clnup
.subsections_via_symbols
