	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_nicvf_send_msg_to_pf           ## -- Begin function nicvf_send_msg_to_pf
	.p2align	4, 0x90
_nicvf_send_msg_to_pf:                  ## @nicvf_send_msg_to_pf
	.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	%rsi, %r14
	movq	%rdi, %r13
	movq	_NIC_MBOX_MSG_TIMEOUT@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	leaq	8(%rdi), %r15
	movq	%r15, %rdi
	callq	_mutex_lock
	movq	$0, (%r13)
	movq	%r13, %rdi
	movq	%r14, %rsi
	callq	_nicvf_write_to_mbx
	cmpl	$0, (%r13)
	sete	%al
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	testb	$1, %al
	je	LBB0_8
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	cmpl	$0, 4(%r13)
	jne	LBB0_3
## %bb.4:                               ##   in Loop: Header=BB0_1 Depth=1
	movl	$10, %edi
	callq	_msleep
	cmpl	$0, (%r13)
	jne	LBB0_8
## %bb.5:                               ##   in Loop: Header=BB0_1 Depth=1
	movb	$1, %al
	addl	$-10, %r12d
	jne	LBB0_1
## %bb.6:
	leaq	L_.str.1(%rip), %rsi
	movq	_EBUSY@GOTPCREL(%rip), %r12
	jmp	LBB0_7
LBB0_3:
	movq	_EINVAL@GOTPCREL(%rip), %r12
	leaq	L_.str(%rip), %rsi
LBB0_7:
	movl	12(%r13), %ecx
	movl	16(%r13), %edi
	movzbl	(%r14), %edx
	callq	_netdev_err
	xorl	%ebx, %ebx
	subl	(%r12), %ebx
LBB0_8:
	movq	%r15, %rdi
	callq	_mutex_unlock
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NIC_MBOX_MSG_TIMEOUT,4,2       ## @NIC_MBOX_MSG_TIMEOUT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"PF NACK to mbox msg 0x%02x from VF%d\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
L_.str.1:                               ## @.str.1
	.asciz	"PF didn't ACK to mbox msg 0x%02x from VF%d\n"

	.comm	_EBUSY,4,2                      ## @EBUSY
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_nicvf_send_msg_to_pf           ; -- Begin function nicvf_send_msg_to_pf
	.p2align	2
_nicvf_send_msg_to_pf:                  ; @nicvf_send_msg_to_pf
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x21, x1
	mov	x20, x0
Lloh0:
	adrp	x8, _NIC_MBOX_MSG_TIMEOUT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _NIC_MBOX_MSG_TIMEOUT@GOTPAGEOFF]
Lloh2:
	ldr	w23, [x8]
	add	x19, x0, #8
	mov	x0, x19
	bl	_mutex_lock
	str	xzr, [x20]
	mov	x0, x20
	mov	x1, x21
	bl	_nicvf_write_to_mbx
	ldr	w8, [x20]
	cmp	w8, #0
	cset	w8, eq
Lloh3:
	adrp	x24, _EINVAL@GOTPAGE
Lloh4:
	ldr	x24, [x24, _EINVAL@GOTPAGEOFF]
Lloh5:
	adrp	x22, l_.str@PAGE
Lloh6:
	add	x22, x22, l_.str@PAGEOFF
Lloh7:
	adrp	x25, _EBUSY@GOTPAGE
Lloh8:
	ldr	x25, [x25, _EBUSY@GOTPAGEOFF]
Lloh9:
	adrp	x26, l_.str.1@PAGE
Lloh10:
	add	x26, x26, l_.str.1@PAGEOFF
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	tbz	w8, #0, LBB0_7
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	ldr	w8, [x20, #4]
	cbnz	w8, LBB0_6
; %bb.3:                                ;   in Loop: Header=BB0_1 Depth=1
	mov	w0, #10
	bl	_msleep
	ldr	w8, [x20]
	cbnz	w8, LBB0_7
; %bb.4:                                ;   in Loop: Header=BB0_1 Depth=1
	mov	w8, #1
	subs	w23, w23, #10
	b.ne	LBB0_1
; %bb.5:
	mov	x22, x26
	mov	x24, x25
LBB0_6:
	ldrb	w2, [x21]
	ldp	w3, w0, [x20, #12]
	mov	x1, x22
	bl	_netdev_err
	ldr	w8, [x24]
	neg	w20, w8
	b	LBB0_8
LBB0_7:
	mov	w20, #0
LBB0_8:
	mov	x0, x19
	bl	_mutex_unlock
	mov	x0, x20
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_NIC_MBOX_MSG_TIMEOUT,4,2       ; @NIC_MBOX_MSG_TIMEOUT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"PF NACK to mbox msg 0x%02x from VF%d\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
l_.str.1:                               ; @.str.1
	.asciz	"PF didn't ACK to mbox msg 0x%02x from VF%d\n"

	.comm	_EBUSY,4,2                      ; @EBUSY
.subsections_via_symbols
