	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_bnx2x_iov_link_update_vf       ## -- Begin function bnx2x_iov_link_update_vf
	.p2align	4, 0x90
_bnx2x_iov_link_update_vf:              ## @bnx2x_iov_link_update_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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r14d
	movq	%rdi, %r12
	leaq	-48(%rbp), %rdx
	leaq	-40(%rbp), %rcx
	xorl	%r8d, %r8d
	callq	_bnx2x_vf_op_prep
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_22
## %bb.1:
	movq	(%r12), %rdi
	callq	_mutex_lock
	movq	-48(%rbp), %rax
	movq	(%rax), %rax
	movq	_IFLA_VF_LINK_STATE_AUTO@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_11
## %bb.2:
	movq	_LINK_VALID@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	movl	$1, %eax
	shll	%cl, %eax
	movq	-40(%rbp), %rcx
	orl	%eax, (%rcx)
	leaq	8(%r12), %r15
	movl	12(%r12), %eax
	movl	%eax, 8(%rcx)
	movl	$0, 4(%rcx)
	movq	_BNX2X_LINK_REPORT_LINK_DOWN@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r15, %rsi
	callq	_test_bit
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movq	_VFPF_LINK_REPORT_LINK_DOWN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	-40(%rbp), %rcx
	orl	%eax, 4(%rcx)
LBB0_4:
	movq	_BNX2X_LINK_REPORT_FD@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r15, %rsi
	callq	_test_bit
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	movq	_VFPF_LINK_REPORT_FULL_DUPLEX@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	-40(%rbp), %rcx
	orl	%eax, 4(%rcx)
LBB0_6:
	movq	_BNX2X_LINK_REPORT_RX_FC_ON@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r15, %rsi
	callq	_test_bit
	testq	%rax, %rax
	je	LBB0_8
## %bb.7:
	movq	_VFPF_LINK_REPORT_RX_FC_ON@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	-40(%rbp), %rcx
	orl	%eax, 4(%rcx)
LBB0_8:
	movq	_BNX2X_LINK_REPORT_TX_FC_ON@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r15, %rsi
	callq	_test_bit
	testq	%rax, %rax
	je	LBB0_9
## %bb.10:
	movq	_VFPF_LINK_REPORT_TX_FC_ON@GOTPCREL(%rip), %rax
	movq	-40(%rbp), %rdx
	movl	4(%rdx), %r9d
	orl	(%rax), %r9d
	jmp	LBB0_17
LBB0_11:
	movq	_IFLA_VF_LINK_STATE_DISABLE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_14
## %bb.12:
	movq	-40(%rbp), %rdx
	movl	4(%rdx), %r9d
	movq	_VFPF_LINK_REPORT_LINK_DOWN@GOTPCREL(%rip), %rsi
	testl	%r9d, (%rsi)
	je	LBB0_13
LBB0_14:
	movq	_IFLA_VF_LINK_STATE_ENABLE@GOTPCREL(%rip), %rcx
	xorl	%ebx, %ebx
	cmpq	(%rcx), %rax
	jne	LBB0_21
## %bb.15:
	movq	-40(%rbp), %rax
	movq	_VFPF_LINK_REPORT_LINK_DOWN@GOTPCREL(%rip), %r15
	movl	(%r15), %ecx
	testl	%ecx, 4(%rax)
	je	LBB0_21
## %bb.16:
	movq	_LINK_VALID@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	movl	$1, %edx
	shll	%cl, %edx
	orl	%edx, (%rax)
	movq	%r12, %rdi
	callq	_bnx2x_max_speed_cap
	movq	-40(%rbp), %rdx
	movl	%eax, 8(%rdx)
	movl	(%r15), %r9d
	notl	%r9d
	andl	4(%rdx), %r9d
	jmp	LBB0_17
LBB0_9:
	movq	-40(%rbp), %rdx
	movl	4(%rdx), %r9d
	jmp	LBB0_18
LBB0_13:
	movq	_LINK_VALID@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	movl	$1, %eax
	shll	%cl, %eax
	orl	%eax, (%rdx)
	orl	(%rsi), %r9d
LBB0_17:
	movl	%r9d, 4(%rdx)
LBB0_18:
	movq	_NETIF_MSG_LINK@GOTPCREL(%rip), %rax
	movq	_BNX2X_MSG_IOV@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	orl	(%rax), %edi
	movq	-48(%rbp), %rax
	movq	(%rax), %rcx
	movl	8(%rdx), %r8d
	leaq	L_.str(%rip), %rsi
	movl	%r14d, %edx
	callq	_DP
	movq	%r12, %rdi
	movl	%r14d, %esi
	callq	_bnx2x_post_vf_bulletin
	testl	%eax, %eax
	je	LBB0_19
## %bb.20:
	movl	%eax, %ebx
	leaq	L_.str.1(%rip), %rdi
	movl	%r14d, %esi
	callq	_BNX2X_ERR
	jmp	LBB0_21
LBB0_19:
	xorl	%ebx, %ebx
LBB0_21:
	movq	(%r12), %rdi
	callq	_mutex_unlock
LBB0_22:
	movl	%ebx, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IFLA_VF_LINK_STATE_AUTO,8,3    ## @IFLA_VF_LINK_STATE_AUTO
	.comm	_LINK_VALID,4,2                 ## @LINK_VALID
	.comm	_BNX2X_LINK_REPORT_LINK_DOWN,4,2 ## @BNX2X_LINK_REPORT_LINK_DOWN
	.comm	_VFPF_LINK_REPORT_LINK_DOWN,4,2 ## @VFPF_LINK_REPORT_LINK_DOWN
	.comm	_BNX2X_LINK_REPORT_FD,4,2       ## @BNX2X_LINK_REPORT_FD
	.comm	_VFPF_LINK_REPORT_FULL_DUPLEX,4,2 ## @VFPF_LINK_REPORT_FULL_DUPLEX
	.comm	_BNX2X_LINK_REPORT_RX_FC_ON,4,2 ## @BNX2X_LINK_REPORT_RX_FC_ON
	.comm	_VFPF_LINK_REPORT_RX_FC_ON,4,2  ## @VFPF_LINK_REPORT_RX_FC_ON
	.comm	_BNX2X_LINK_REPORT_TX_FC_ON,4,2 ## @BNX2X_LINK_REPORT_TX_FC_ON
	.comm	_VFPF_LINK_REPORT_TX_FC_ON,4,2  ## @VFPF_LINK_REPORT_TX_FC_ON
	.comm	_IFLA_VF_LINK_STATE_DISABLE,8,3 ## @IFLA_VF_LINK_STATE_DISABLE
	.comm	_IFLA_VF_LINK_STATE_ENABLE,8,3  ## @IFLA_VF_LINK_STATE_ENABLE
	.comm	_NETIF_MSG_LINK,4,2             ## @NETIF_MSG_LINK
	.comm	_BNX2X_MSG_IOV,4,2              ## @BNX2X_MSG_IOV
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"vf %d mode %u speed %d flags %x\n"

L_.str.1:                               ## @.str.1
	.asciz	"failed to update VF[%d] bulletin\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_bnx2x_iov_link_update_vf       ; -- Begin function bnx2x_iov_link_update_vf
	.p2align	2
_bnx2x_iov_link_update_vf:              ; @bnx2x_iov_link_update_vf
	.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, x1
	mov	x19, x0
	mov	x2, sp
	add	x3, sp, #8
	mov	w4, #0
	bl	_bnx2x_vf_op_prep
	mov	x21, x0
	cbnz	w0, LBB0_22
; %bb.1:
	ldr	x0, [x19]
	bl	_mutex_lock
	ldr	x8, [sp]
	ldr	x9, [x8]
Lloh0:
	adrp	x8, _IFLA_VF_LINK_STATE_AUTO@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IFLA_VF_LINK_STATE_AUTO@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x9, x8
	b.ne	LBB0_10
; %bb.2:
Lloh3:
	adrp	x8, _LINK_VALID@GOTPAGE
Lloh4:
	ldr	x8, [x8, _LINK_VALID@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	mov	w9, #1
	lsl	w8, w9, w8
	ldr	x9, [sp, #8]
	ldr	w10, [x9]
	orr	w8, w10, w8
	str	w8, [x9]
	add	x21, x19, #8
	ldr	w8, [x19, #12]
	stp	wzr, w8, [x9, #4]
Lloh6:
	adrp	x8, _BNX2X_LINK_REPORT_LINK_DOWN@GOTPAGE
Lloh7:
	ldr	x8, [x8, _BNX2X_LINK_REPORT_LINK_DOWN@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	mov	x1, x21
	bl	_test_bit
	cbz	x0, LBB0_4
; %bb.3:
Lloh9:
	adrp	x8, _VFPF_LINK_REPORT_LINK_DOWN@GOTPAGE
Lloh10:
	ldr	x8, [x8, _VFPF_LINK_REPORT_LINK_DOWN@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	ldr	x9, [sp, #8]
	ldr	w10, [x9, #4]
	orr	w8, w10, w8
	str	w8, [x9, #4]
LBB0_4:
Lloh12:
	adrp	x8, _BNX2X_LINK_REPORT_FD@GOTPAGE
Lloh13:
	ldr	x8, [x8, _BNX2X_LINK_REPORT_FD@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
	mov	x1, x21
	bl	_test_bit
	cbz	x0, LBB0_6
; %bb.5:
Lloh15:
	adrp	x8, _VFPF_LINK_REPORT_FULL_DUPLEX@GOTPAGE
Lloh16:
	ldr	x8, [x8, _VFPF_LINK_REPORT_FULL_DUPLEX@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	ldr	x9, [sp, #8]
	ldr	w10, [x9, #4]
	orr	w8, w10, w8
	str	w8, [x9, #4]
LBB0_6:
Lloh18:
	adrp	x8, _BNX2X_LINK_REPORT_RX_FC_ON@GOTPAGE
Lloh19:
	ldr	x8, [x8, _BNX2X_LINK_REPORT_RX_FC_ON@GOTPAGEOFF]
Lloh20:
	ldr	w0, [x8]
	mov	x1, x21
	bl	_test_bit
	cbz	x0, LBB0_8
; %bb.7:
Lloh21:
	adrp	x8, _VFPF_LINK_REPORT_RX_FC_ON@GOTPAGE
Lloh22:
	ldr	x8, [x8, _VFPF_LINK_REPORT_RX_FC_ON@GOTPAGEOFF]
Lloh23:
	ldr	w8, [x8]
	ldr	x9, [sp, #8]
	ldr	w10, [x9, #4]
	orr	w8, w10, w8
	str	w8, [x9, #4]
LBB0_8:
Lloh24:
	adrp	x8, _BNX2X_LINK_REPORT_TX_FC_ON@GOTPAGE
Lloh25:
	ldr	x8, [x8, _BNX2X_LINK_REPORT_TX_FC_ON@GOTPAGEOFF]
Lloh26:
	ldr	w0, [x8]
	mov	x1, x21
	bl	_test_bit
	cbz	x0, LBB0_16
; %bb.9:
Lloh27:
	adrp	x8, _VFPF_LINK_REPORT_TX_FC_ON@GOTPAGE
Lloh28:
	ldr	x8, [x8, _VFPF_LINK_REPORT_TX_FC_ON@GOTPAGEOFF]
Lloh29:
	ldr	w9, [x8]
	ldr	x8, [sp, #8]
	ldr	w10, [x8, #4]
	orr	w5, w10, w9
	b	LBB0_18
LBB0_10:
Lloh30:
	adrp	x8, _IFLA_VF_LINK_STATE_DISABLE@GOTPAGE
Lloh31:
	ldr	x8, [x8, _IFLA_VF_LINK_STATE_DISABLE@GOTPAGEOFF]
Lloh32:
	ldr	x8, [x8]
	cmp	x9, x8
	b.ne	LBB0_12
; %bb.11:
	ldr	x8, [sp, #8]
	ldr	w10, [x8, #4]
Lloh33:
	adrp	x11, _VFPF_LINK_REPORT_LINK_DOWN@GOTPAGE
Lloh34:
	ldr	x11, [x11, _VFPF_LINK_REPORT_LINK_DOWN@GOTPAGEOFF]
	ldr	w12, [x11]
	tst	w12, w10
	b.eq	LBB0_17
LBB0_12:
Lloh35:
	adrp	x8, _IFLA_VF_LINK_STATE_ENABLE@GOTPAGE
Lloh36:
	ldr	x8, [x8, _IFLA_VF_LINK_STATE_ENABLE@GOTPAGEOFF]
Lloh37:
	ldr	x8, [x8]
	cmp	x9, x8
	b.ne	LBB0_15
; %bb.13:
	ldr	x8, [sp, #8]
	ldr	w9, [x8, #4]
Lloh38:
	adrp	x21, _VFPF_LINK_REPORT_LINK_DOWN@GOTPAGE
Lloh39:
	ldr	x21, [x21, _VFPF_LINK_REPORT_LINK_DOWN@GOTPAGEOFF]
	ldr	w10, [x21]
	tst	w10, w9
	b.eq	LBB0_15
; %bb.14:
Lloh40:
	adrp	x9, _LINK_VALID@GOTPAGE
Lloh41:
	ldr	x9, [x9, _LINK_VALID@GOTPAGEOFF]
Lloh42:
	ldr	w9, [x9]
	mov	w10, #1
	lsl	w9, w10, w9
	ldr	w10, [x8]
	orr	w9, w10, w9
	str	w9, [x8]
	mov	x0, x19
	bl	_bnx2x_max_speed_cap
	ldr	x8, [sp, #8]
	ldr	w9, [x21]
	ldr	w10, [x8, #4]
	bic	w5, w10, w9
	str	w0, [x8, #8]
	b	LBB0_18
LBB0_15:
	mov	w21, #0
	b	LBB0_21
LBB0_16:
	ldr	x8, [sp, #8]
	ldr	w5, [x8, #4]
	b	LBB0_19
LBB0_17:
Lloh43:
	adrp	x9, _LINK_VALID@GOTPAGE
Lloh44:
	ldr	x9, [x9, _LINK_VALID@GOTPAGEOFF]
Lloh45:
	ldr	w9, [x9]
	mov	w12, #1
	lsl	w9, w12, w9
	ldr	w12, [x8]
	orr	w9, w12, w9
	str	w9, [x8]
	ldr	w9, [x11]
	orr	w5, w9, w10
LBB0_18:
	str	w5, [x8, #4]
LBB0_19:
Lloh46:
	adrp	x9, _NETIF_MSG_LINK@GOTPAGE
Lloh47:
	ldr	x9, [x9, _NETIF_MSG_LINK@GOTPAGEOFF]
Lloh48:
	adrp	x10, _BNX2X_MSG_IOV@GOTPAGE
Lloh49:
	ldr	x10, [x10, _BNX2X_MSG_IOV@GOTPAGEOFF]
Lloh50:
	ldr	w9, [x9]
Lloh51:
	ldr	w10, [x10]
	orr	w0, w10, w9
	ldr	x9, [sp]
	ldr	x3, [x9]
	ldr	w4, [x8, #8]
Lloh52:
	adrp	x1, l_.str@PAGE
Lloh53:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x20
	bl	_DP
	mov	x0, x19
	mov	x1, x20
	bl	_bnx2x_post_vf_bulletin
	mov	x21, x0
	cbz	w0, LBB0_21
; %bb.20:
Lloh54:
	adrp	x0, l_.str.1@PAGE
Lloh55:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x20
	bl	_BNX2X_ERR
LBB0_21:
	ldr	x0, [x19]
	bl	_mutex_unlock
LBB0_22:
	mov	x0, x21
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGot	Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGot	Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.loh AdrpAdd	Lloh52, Lloh53
	.loh AdrpLdrGotLdr	Lloh48, Lloh49, Lloh51
	.loh AdrpLdrGotLdr	Lloh46, Lloh47, Lloh50
	.loh AdrpAdd	Lloh54, Lloh55
	.cfi_endproc
                                        ; -- End function
	.comm	_IFLA_VF_LINK_STATE_AUTO,8,3    ; @IFLA_VF_LINK_STATE_AUTO
	.comm	_LINK_VALID,4,2                 ; @LINK_VALID
	.comm	_BNX2X_LINK_REPORT_LINK_DOWN,4,2 ; @BNX2X_LINK_REPORT_LINK_DOWN
	.comm	_VFPF_LINK_REPORT_LINK_DOWN,4,2 ; @VFPF_LINK_REPORT_LINK_DOWN
	.comm	_BNX2X_LINK_REPORT_FD,4,2       ; @BNX2X_LINK_REPORT_FD
	.comm	_VFPF_LINK_REPORT_FULL_DUPLEX,4,2 ; @VFPF_LINK_REPORT_FULL_DUPLEX
	.comm	_BNX2X_LINK_REPORT_RX_FC_ON,4,2 ; @BNX2X_LINK_REPORT_RX_FC_ON
	.comm	_VFPF_LINK_REPORT_RX_FC_ON,4,2  ; @VFPF_LINK_REPORT_RX_FC_ON
	.comm	_BNX2X_LINK_REPORT_TX_FC_ON,4,2 ; @BNX2X_LINK_REPORT_TX_FC_ON
	.comm	_VFPF_LINK_REPORT_TX_FC_ON,4,2  ; @VFPF_LINK_REPORT_TX_FC_ON
	.comm	_IFLA_VF_LINK_STATE_DISABLE,8,3 ; @IFLA_VF_LINK_STATE_DISABLE
	.comm	_IFLA_VF_LINK_STATE_ENABLE,8,3  ; @IFLA_VF_LINK_STATE_ENABLE
	.comm	_NETIF_MSG_LINK,4,2             ; @NETIF_MSG_LINK
	.comm	_BNX2X_MSG_IOV,4,2              ; @BNX2X_MSG_IOV
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"vf %d mode %u speed %d flags %x\n"

l_.str.1:                               ; @.str.1
	.asciz	"failed to update VF[%d] bulletin\n"

.subsections_via_symbols
