	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_bnx2x_unlock_vf_pf_channel     ## -- Begin function bnx2x_unlock_vf_pf_channel
	.p2align	4, 0x90
_bnx2x_unlock_vf_pf_channel:            ## @bnx2x_unlock_vf_pf_channel
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	testq	%rsi, %rsi
	je	LBB0_3
## %bb.1:
	movl	%edx, %r15d
	movq	%rsi, %rbx
	movl	(%rsi), %r14d
	movl	%edx, %edi
	callq	_bnx2x_tlv_supported
	testl	%eax, %eax
	je	LBB0_2
## %bb.4:
	movl	(%rbx), %ecx
	xorl	%edi, %edi
	cmpl	%r15d, %ecx
	setne	%dil
	leaq	L_.str.1(%rip), %rsi
	movl	%r15d, %edx
	callq	_WARN
	movq	_CHANNEL_TLV_NONE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%rbx)
	leaq	8(%rbx), %rdi
	callq	_mutex_unlock
	movq	_BNX2X_MSG_IOV@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	4(%rbx), %edx
	leaq	L_.str.2(%rip), %rsi
	movl	%r14d, %ecx
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_DP                             ## TAILCALL
LBB0_3:
	leaq	L_.str(%rip), %rdi
	xorl	%esi, %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_BNX2X_ERR                      ## TAILCALL
LBB0_2:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"VF was %p\n"

L_.str.1:                               ## @.str.1
	.asciz	"lock mismatch: expected %d found %d"

	.comm	_CHANNEL_TLV_NONE,4,2           ## @CHANNEL_TLV_NONE
	.comm	_BNX2X_MSG_IOV,4,2              ## @BNX2X_MSG_IOV
L_.str.2:                               ## @.str.2
	.asciz	"VF[%d]: vf pf channel unlocked by %d\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_bnx2x_unlock_vf_pf_channel     ; -- Begin function bnx2x_unlock_vf_pf_channel
	.p2align	2
_bnx2x_unlock_vf_pf_channel:            ; @bnx2x_unlock_vf_pf_channel
	.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
	cbz	x1, LBB0_3
; %bb.1:
	mov	x21, x2
	mov	x20, x1
	ldr	w19, [x1]
	mov	x0, x2
	bl	_bnx2x_tlv_supported
	cbz	w0, LBB0_4
; %bb.2:
	ldr	w3, [x20]
	cmp	w3, w21
	cset	w0, ne
Lloh0:
	adrp	x1, l_.str.1@PAGE
Lloh1:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x2, x21
	bl	_WARN
Lloh2:
	adrp	x8, _CHANNEL_TLV_NONE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _CHANNEL_TLV_NONE@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	str	w8, [x20]
	add	x0, x20, #8
	bl	_mutex_unlock
Lloh5:
	adrp	x8, _BNX2X_MSG_IOV@GOTPAGE
Lloh6:
	ldr	x8, [x8, _BNX2X_MSG_IOV@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
	ldr	w2, [x20, #4]
Lloh8:
	adrp	x1, l_.str.2@PAGE
Lloh9:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x3, x19
	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	_DP
LBB0_3:
Lloh10:
	adrp	x0, l_.str@PAGE
Lloh11:
	add	x0, x0, l_.str@PAGEOFF
	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	_BNX2X_ERR
LBB0_4:
	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 AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"VF was %p\n"

l_.str.1:                               ; @.str.1
	.asciz	"lock mismatch: expected %d found %d"

	.comm	_CHANNEL_TLV_NONE,4,2           ; @CHANNEL_TLV_NONE
	.comm	_BNX2X_MSG_IOV,4,2              ; @BNX2X_MSG_IOV
l_.str.2:                               ; @.str.2
	.asciz	"VF[%d]: vf pf channel unlocked by %d\n"

.subsections_via_symbols
