	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nic_get_bgx_stats
_nic_get_bgx_stats:                     ## @nic_get_bgx_stats
	.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
	subq	$40, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movq	$0, -32(%rbp)
	movq	8(%rdi), %rax
	movq	(%rsi), %rcx
	movl	(%rax,%rcx,4), %edi
	callq	_NIC_GET_BGX_FROM_VF_LMAC_MAP
	movl	%eax, %r15d
	movq	8(%r14), %rax
	movq	(%rbx), %rcx
	movl	(%rax,%rcx,4), %edi
	callq	_NIC_GET_LMAC_FROM_VF_LMAC_MAP
	movq	_NIC_MBOX_MSG_BGX_STATS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, -32(%rbp)
	movq	(%rbx), %rcx
	movq	%rcx, -56(%rbp)
	movq	16(%rbx), %rdx
	movq	%rdx, -40(%rbp)
	movl	8(%rbx), %ecx
	movl	%ecx, -44(%rbp)
	movl	(%r14), %edi
	movl	%r15d, %esi
	testq	%rdx, %rdx
	je	LBB0_2
## %bb.1:
	movl	%eax, %edx
	callq	_bgx_get_rx_stats
	jmp	LBB0_3
LBB0_2:
	movl	%eax, %edx
	callq	_bgx_get_tx_stats
LBB0_3:
	movl	%eax, -48(%rbp)
	movq	(%rbx), %rsi
	leaq	-56(%rbp), %rdx
	movq	%r14, %rdi
	callq	_nic_send_msg_to_vf
	addq	$40, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NIC_MBOX_MSG_BGX_STATS,4,2     ## @NIC_MBOX_MSG_BGX_STATS
	.no_dead_strip	_nic_get_bgx_stats
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nic_get_bgx_stats
_nic_get_bgx_stats:                     ; @nic_get_bgx_stats
	.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	x20, x1
	mov	x19, x0
	str	xzr, [sp, #24]
	ldr	x8, [x0, #8]
	ldr	x9, [x1]
	ldr	w0, [x8, x9, lsl #2]
	bl	_NIC_GET_BGX_FROM_VF_LMAC_MAP
	mov	x21, x0
	ldr	x8, [x19, #8]
	ldr	x9, [x20]
	ldr	w0, [x8, x9, lsl #2]
	bl	_NIC_GET_LMAC_FROM_VF_LMAC_MAP
	mov	x2, x0
Lloh0:
	adrp	x8, _NIC_MBOX_MSG_BGX_STATS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _NIC_MBOX_MSG_BGX_STATS@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [sp, #24]
	ldr	x8, [x20]
	str	x8, [sp]
	ldr	x8, [x20, #16]
	str	x8, [sp, #16]
	ldr	w3, [x20, #8]
	str	w3, [sp, #12]
	ldr	w0, [x19]
	mov	x1, x21
	cbz	x8, LBB0_2
; %bb.1:
	bl	_bgx_get_rx_stats
	b	LBB0_3
LBB0_2:
	bl	_bgx_get_tx_stats
LBB0_3:
	str	w0, [sp, #8]
	ldr	x1, [x20]
	mov	x2, sp
	mov	x0, 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	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_NIC_MBOX_MSG_BGX_STATS,4,2     ; @NIC_MBOX_MSG_BGX_STATS
	.no_dead_strip	_nic_get_bgx_stats
.subsections_via_symbols
