	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mac_update_statistics
_mac_update_statistics:                 ## @mac_update_statistics
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	movq	_MAC_STATS_UPDATE_FULL@GOTPCREL(%rip), %rax
	cmpl	%esi, (%rax)
	je	LBB0_2
## %bb.1:
	movq	16(%rbx), %rax
	movq	(%rax), %rcx
	movq	_MAJOR_UPDATE_TICKS@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jge	LBB0_2
## %bb.3:
	movl	8(%rax), %r14d
	movl	%r14d, %edi
	callq	_REG_RX_OK_BYTES
	leaq	8(%rbx), %rdx
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_rmon_update
	movl	%r14d, %edi
	callq	_REG_RX_BAD_BYTES
	leaq	4(%rbx), %rdx
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_rmon_update
	movl	%r14d, %edi
	callq	_REG_TX_OK_BYTES
	movq	%rbx, %rdi
	movl	%eax, %esi
	movq	%rbx, %rdx
	callq	_rmon_update
	movq	16(%rbx), %rax
	incq	(%rax)
	jmp	LBB0_4
LBB0_2:
	movq	%rbx, %rdi
	callq	_port_stats_update
	movq	16(%rbx), %rax
	movq	$0, (%rax)
LBB0_4:
	movq	%rbx, %rax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MAC_STATS_UPDATE_FULL,4,2      ## @MAC_STATS_UPDATE_FULL
	.comm	_MAJOR_UPDATE_TICKS,8,3         ## @MAJOR_UPDATE_TICKS
	.no_dead_strip	_mac_update_statistics
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mac_update_statistics
_mac_update_statistics:                 ; @mac_update_statistics
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
Lloh0:
	adrp	x8, _MAC_STATS_UPDATE_FULL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MAC_STATS_UPDATE_FULL@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, w1
	b.eq	LBB0_3
; %bb.1:
	ldr	x8, [x19, #16]
	ldr	x9, [x8]
Lloh3:
	adrp	x10, _MAJOR_UPDATE_TICKS@GOTPAGE
Lloh4:
	ldr	x10, [x10, _MAJOR_UPDATE_TICKS@GOTPAGEOFF]
Lloh5:
	ldr	x10, [x10]
	cmp	x9, x10
	b.ge	LBB0_3
; %bb.2:
	ldr	w20, [x8, #8]
	mov	x0, x20
	bl	_REG_RX_OK_BYTES
	mov	x1, x0
	add	x2, x19, #8
	mov	x0, x19
	bl	_rmon_update
	mov	x0, x20
	bl	_REG_RX_BAD_BYTES
	mov	x1, x0
	add	x2, x19, #4
	mov	x0, x19
	bl	_rmon_update
	mov	x0, x20
	bl	_REG_TX_OK_BYTES
	mov	x1, x0
	mov	x0, x19
	mov	x2, x19
	bl	_rmon_update
	ldr	x8, [x19, #16]
	ldr	x9, [x8]
	add	x9, x9, #1
	str	x9, [x8]
	b	LBB0_4
LBB0_3:
	mov	x0, x19
	bl	_port_stats_update
	ldr	x8, [x19, #16]
	str	xzr, [x8]
LBB0_4:
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_MAC_STATS_UPDATE_FULL,4,2      ; @MAC_STATS_UPDATE_FULL
	.comm	_MAJOR_UPDATE_TICKS,8,3         ; @MAJOR_UPDATE_TICKS
	.no_dead_strip	_mac_update_statistics
.subsections_via_symbols
