	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nic_mbx_send_ready
_nic_mbx_send_ready:                    ## @nic_mbx_send_ready
	.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	$32, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r14d
	movq	%rdi, %rbx
	xorps	%xmm0, %xmm0
	movups	%xmm0, -60(%rbp)
	movq	_NIC_MBOX_MSG_READY@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -40(%rbp)
	movl	%esi, -64(%rbp)
	movq	_NIC_TNS_BYPASS_MODE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -44(%rbp)
	cmpl	%esi, (%rdi)
	jle	LBB0_3
## %bb.1:
	movq	8(%rbx), %rax
	movslq	%r14d, %r12
	movl	(%rax,%r12,4), %edi
	callq	_NIC_GET_BGX_FROM_VF_LMAC_MAP
	movl	%eax, %r15d
	movq	8(%rbx), %rax
	movl	(%rax,%r12,4), %edi
	callq	_NIC_GET_LMAC_FROM_VF_LMAC_MAP
	movl	4(%rbx), %edi
	movl	%r15d, %esi
	movl	%eax, %edx
	callq	_bgx_get_lmac_mac
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	leaq	-48(%rbp), %rdi
	movq	%rax, %rsi
	callq	_ether_addr_copy
LBB0_3:
	xorl	%eax, %eax
	xorl	%ecx, %ecx
	cmpl	%r14d, (%rbx)
	setle	%al
	movl	%eax, -60(%rbp)
	movl	4(%rbx), %eax
	movl	%eax, -52(%rbp)
	setg	%cl
	movl	%ecx, -56(%rbp)
	leaq	-64(%rbp), %rdx
	movq	%rbx, %rdi
	movl	%r14d, %esi
	callq	_nic_send_msg_to_vf
	addq	$32, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NIC_MBOX_MSG_READY,4,2         ## @NIC_MBOX_MSG_READY
	.comm	_NIC_TNS_BYPASS_MODE,4,2        ## @NIC_TNS_BYPASS_MODE
	.no_dead_strip	_nic_mbx_send_ready
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nic_mbx_send_ready
_nic_mbx_send_ready:                    ; @nic_mbx_send_ready
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	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
	mov	x19, x1
	mov	x20, x0
	stur	xzr, [sp, #12]
	stur	xzr, [sp, #4]
Lloh0:
	adrp	x8, _NIC_MBOX_MSG_READY@GOTPAGE
Lloh1:
	ldr	x8, [x8, _NIC_MBOX_MSG_READY@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _NIC_TNS_BYPASS_MODE@GOTPAGE
Lloh4:
	ldr	x9, [x9, _NIC_TNS_BYPASS_MODE@GOTPAGEOFF]
	str	w1, [sp]
Lloh5:
	ldr	w9, [x9]
	stp	w9, w8, [sp, #20]
	ldr	w8, [x0]
	cmp	w8, w1
	b.le	LBB0_3
; %bb.1:
	ldr	x8, [x20, #8]
	sbfiz	x22, x19, #2, #32
	ldr	w0, [x8, x22]
	bl	_NIC_GET_BGX_FROM_VF_LMAC_MAP
	mov	x21, x0
	ldr	x8, [x20, #8]
	ldr	w0, [x8, x22]
	bl	_NIC_GET_LMAC_FROM_VF_LMAC_MAP
	mov	x2, x0
	ldr	w0, [x20, #4]
	mov	x1, x21
	bl	_bgx_get_lmac_mac
	cbz	x0, LBB0_3
; %bb.2:
	mov	x1, x0
	mov	x8, sp
	add	x0, x8, #16
	bl	_ether_addr_copy
LBB0_3:
	ldp	w8, w10, [x20]
	cmp	w8, w19
	cset	w8, le
	cset	w9, gt
	str	w8, [sp, #4]
	stp	w9, w10, [sp, #8]
	mov	x2, sp
	mov	x0, x20
	mov	x1, x19
	bl	_nic_send_msg_to_vf
	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
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_NIC_MBOX_MSG_READY,4,2         ; @NIC_MBOX_MSG_READY
	.comm	_NIC_TNS_BYPASS_MODE,4,2        ; @NIC_TNS_BYPASS_MODE
	.no_dead_strip	_nic_mbx_send_ready
.subsections_via_symbols
