	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_nicvf_update_lmac_stats        ## -- Begin function nicvf_update_lmac_stats
	.p2align	4, 0x90
_nicvf_update_lmac_stats:               ## @nicvf_update_lmac_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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r12
	movl	$0, -44(%rbp)
	movl	4(%rdi), %edi
	callq	_netif_running
	testl	%eax, %eax
	je	LBB0_9
## %bb.1:
	movq	_NIC_MBOX_MSG_BGX_STATS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -36(%rbp)
	movl	(%r12), %eax
	movl	%eax, -40(%rbp)
	movl	$1, -48(%rbp)
	movq	_BGX_RX_STATS_COUNT@GOTPCREL(%rip), %r15
	cmpl	$0, (%r15)
	jle	LBB0_5
## %bb.2:
	xorl	%ebx, %ebx
	leaq	-48(%rbp), %r14
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movl	%ebx, -44(%rbp)
	movq	%r12, %rdi
	movq	%r14, %rsi
	callq	_nicvf_send_msg_to_pf
	testq	%rax, %rax
	jne	LBB0_9
## %bb.3:                               ##   in Loop: Header=BB0_4 Depth=1
	incl	%ebx
	cmpl	(%r15), %ebx
	jl	LBB0_4
LBB0_5:
	movl	$0, -48(%rbp)
	movq	_BGX_TX_STATS_COUNT@GOTPCREL(%rip), %r15
	cmpl	$0, (%r15)
	jle	LBB0_9
## %bb.6:
	xorl	%ebx, %ebx
	leaq	-48(%rbp), %r14
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movl	%ebx, -44(%rbp)
	movq	%r12, %rdi
	movq	%r14, %rsi
	callq	_nicvf_send_msg_to_pf
	testq	%rax, %rax
	jne	LBB0_9
## %bb.7:                               ##   in Loop: Header=BB0_8 Depth=1
	incl	%ebx
	cmpl	(%r15), %ebx
	jl	LBB0_8
LBB0_9:
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NIC_MBOX_MSG_BGX_STATS,4,2     ## @NIC_MBOX_MSG_BGX_STATS
	.comm	_BGX_RX_STATS_COUNT,4,2         ## @BGX_RX_STATS_COUNT
	.comm	_BGX_TX_STATS_COUNT,4,2         ## @BGX_TX_STATS_COUNT
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_nicvf_update_lmac_stats        ; -- Begin function nicvf_update_lmac_stats
	.p2align	2
_nicvf_update_lmac_stats:               ; @nicvf_update_lmac_stats
	.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	x19, x0
	str	wzr, [sp, #4]
	ldr	w0, [x0, #4]
	bl	_netif_running
	cbz	w0, LBB0_9
; %bb.1:
Lloh0:
	adrp	x8, _NIC_MBOX_MSG_BGX_STATS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _NIC_MBOX_MSG_BGX_STATS@GOTPAGEOFF]
Lloh2:
	ldr	w10, [x8]
	ldr	w8, [x19]
	mov	w9, #1
	stp	w8, w10, [sp, #8]
	str	w9, [sp]
Lloh3:
	adrp	x20, _BGX_RX_STATS_COUNT@GOTPAGE
Lloh4:
	ldr	x20, [x20, _BGX_RX_STATS_COUNT@GOTPAGEOFF]
	ldr	w8, [x20]
	cmp	w8, #1
	b.lt	LBB0_5
; %bb.2:
	mov	w21, #0
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	str	w21, [sp, #4]
	mov	x1, sp
	mov	x0, x19
	bl	_nicvf_send_msg_to_pf
	cbnz	x0, LBB0_9
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	add	w21, w21, #1
	ldr	w8, [x20]
	cmp	w21, w8
	b.lt	LBB0_3
LBB0_5:
	str	wzr, [sp]
Lloh5:
	adrp	x20, _BGX_TX_STATS_COUNT@GOTPAGE
Lloh6:
	ldr	x20, [x20, _BGX_TX_STATS_COUNT@GOTPAGEOFF]
	ldr	w8, [x20]
	cmp	w8, #1
	b.lt	LBB0_9
; %bb.6:
	mov	w21, #0
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	str	w21, [sp, #4]
	mov	x1, sp
	mov	x0, x19
	bl	_nicvf_send_msg_to_pf
	cbnz	x0, LBB0_9
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	add	w21, w21, #1
	ldr	w8, [x20]
	cmp	w21, w8
	b.lt	LBB0_7
LBB0_9:
	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 AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_NIC_MBOX_MSG_BGX_STATS,4,2     ; @NIC_MBOX_MSG_BGX_STATS
	.comm	_BGX_RX_STATS_COUNT,4,2         ; @BGX_RX_STATS_COUNT
	.comm	_BGX_TX_STATS_COUNT,4,2         ; @BGX_TX_STATS_COUNT
.subsections_via_symbols
