	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mtk_stats_update_mac           ## -- Begin function mtk_stats_update_mac
	.p2align	4, 0x90
_mtk_stats_update_mac:                  ## @mtk_stats_update_mac
	.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	%rdi, %rbx
	movq	8(%rdi), %r12
	movq	_MTK_GDM1_TX_GBCNT@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	movl	56(%r12), %r14d
	leal	(%r14,%r13), %r15d
	leaq	48(%r12), %rdi
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	callq	_u64_stats_update_begin
	movl	(%rbx), %edi
	movl	%r15d, %esi
	callq	_mtk_r32
	addl	%eax, (%r12)
	movl	(%rbx), %edi
	leal	(%r14,%r13), %esi
	addl	$4, %esi
	callq	_mtk_r32
	movl	(%rbx), %edi
	leal	(%r14,%r13), %esi
	addl	$8, %esi
	callq	_mtk_r32
	addl	%eax, 4(%r12)
	movl	(%rbx), %edi
	leal	(%r14,%r13), %esi
	addl	$16, %esi
	callq	_mtk_r32
	addl	%eax, 8(%r12)
	movl	(%rbx), %edi
	leal	(%r14,%r13), %esi
	addl	$20, %esi
	callq	_mtk_r32
	addl	%eax, 12(%r12)
	movl	(%rbx), %edi
	leal	(%r14,%r13), %esi
	addl	$24, %esi
	callq	_mtk_r32
	addl	%eax, 16(%r12)
	movl	(%rbx), %edi
	leal	(%r14,%r13), %esi
	addl	$28, %esi
	callq	_mtk_r32
	addl	%eax, 20(%r12)
	movl	(%rbx), %edi
	leal	(%r14,%r13), %esi
	addl	$32, %esi
	callq	_mtk_r32
	addl	%eax, 24(%r12)
	movl	(%rbx), %edi
	leal	(%r14,%r13), %esi
	addl	$36, %esi
	callq	_mtk_r32
	addl	%eax, 28(%r12)
	movl	(%rbx), %edi
	leal	(%r14,%r13), %esi
	addl	$40, %esi
	callq	_mtk_r32
	addl	%eax, 32(%r12)
	movl	(%rbx), %edi
	leal	(%r14,%r13), %esi
	addl	$44, %esi
	callq	_mtk_r32
	addl	%eax, 36(%r12)
	movl	(%rbx), %edi
	leal	(%r14,%r13), %esi
	addl	$48, %esi
	callq	_mtk_r32
	addl	%eax, 40(%r12)
	movl	(%rbx), %edi
	leal	(%r14,%r13), %esi
	addl	$52, %esi
	callq	_mtk_r32
	movl	(%rbx), %edi
	leal	(%r14,%r13), %esi
	addl	$56, %esi
	callq	_mtk_r32
	addl	%eax, 44(%r12)
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_u64_stats_update_end           ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_MTK_GDM1_TX_GBCNT,4,2          ## @MTK_GDM1_TX_GBCNT
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mtk_stats_update_mac           ; -- Begin function mtk_stats_update_mac
	.p2align	2
_mtk_stats_update_mac:                  ; @mtk_stats_update_mac
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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, x0
	ldr	x22, [x0, #8]
Lloh0:
	adrp	x8, _MTK_GDM1_TX_GBCNT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MTK_GDM1_TX_GBCNT@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	ldr	w9, [x22, #56]
	add	w21, w8, w9
	add	x19, x22, #48
	mov	x0, x19
	bl	_u64_stats_update_begin
	ldr	w0, [x20]
	mov	x1, x21
	bl	_mtk_r32
	ldr	w8, [x22]
	add	w8, w8, w0
	str	w8, [x22]
	ldr	w0, [x20]
	add	w1, w21, #4
	bl	_mtk_r32
	ldr	w0, [x20]
	add	w1, w21, #8
	bl	_mtk_r32
	ldr	w8, [x22, #4]
	add	w8, w8, w0
	str	w8, [x22, #4]
	ldr	w0, [x20]
	add	w1, w21, #16
	bl	_mtk_r32
	ldr	w8, [x22, #8]
	add	w8, w8, w0
	str	w8, [x22, #8]
	ldr	w0, [x20]
	add	w1, w21, #20
	bl	_mtk_r32
	ldr	w8, [x22, #12]
	add	w8, w8, w0
	str	w8, [x22, #12]
	ldr	w0, [x20]
	add	w1, w21, #24
	bl	_mtk_r32
	ldr	w8, [x22, #16]
	add	w8, w8, w0
	str	w8, [x22, #16]
	ldr	w0, [x20]
	add	w1, w21, #28
	bl	_mtk_r32
	ldr	w8, [x22, #20]
	add	w8, w8, w0
	str	w8, [x22, #20]
	ldr	w0, [x20]
	add	w1, w21, #32
	bl	_mtk_r32
	ldr	w8, [x22, #24]
	add	w8, w8, w0
	str	w8, [x22, #24]
	ldr	w0, [x20]
	add	w1, w21, #36
	bl	_mtk_r32
	ldr	w8, [x22, #28]
	add	w8, w8, w0
	str	w8, [x22, #28]
	ldr	w0, [x20]
	add	w1, w21, #40
	bl	_mtk_r32
	ldr	w8, [x22, #32]
	add	w8, w8, w0
	str	w8, [x22, #32]
	ldr	w0, [x20]
	add	w1, w21, #44
	bl	_mtk_r32
	ldr	w8, [x22, #36]
	add	w8, w8, w0
	str	w8, [x22, #36]
	ldr	w0, [x20]
	add	w1, w21, #48
	bl	_mtk_r32
	ldr	w8, [x22, #40]
	add	w8, w8, w0
	str	w8, [x22, #40]
	ldr	w0, [x20]
	add	w1, w21, #52
	bl	_mtk_r32
	ldr	w0, [x20]
	add	w1, w21, #56
	bl	_mtk_r32
	ldr	w8, [x22, #44]
	add	w8, w8, w0
	str	w8, [x22, #44]
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_u64_stats_update_end
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_MTK_GDM1_TX_GBCNT,4,2          ; @MTK_GDM1_TX_GBCNT
.subsections_via_symbols
