	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mod_stats_update_event         ## -- Begin function mod_stats_update_event
	.p2align	4, 0x90
_mod_stats_update_event:                ## @mod_stats_update_event
	.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
	testq	%rdi, %rdi
	je	LBB0_3
## %bb.1:
	movl	%edx, %r14d
	movq	%rsi, %r15
	callq	_MOD_STATS_TO_CORE
	movl	(%rax), %r12d
	cmpl	4(%rax), %r12d
	jae	LBB0_3
## %bb.2:
	movq	%rax, %rbx
	movq	16(%rax), %r13
	movq	_MOD_STATS_EVENT_STRING_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	cmpl	%r14d, %eax
	cmovbl	%eax, %r14d
	shlq	$4, %r12
	leaq	(%r12,%r13), %rdi
	movq	%r15, %rsi
	movl	%r14d, %edx
	callq	_memcpy
	movq	(%r13,%r12), %rax
	decl	%r14d
	movb	$0, (%rax,%r14)
	movl	8(%rbx), %eax
	movl	%eax, 8(%r13,%r12)
	incl	(%rbx)
	incl	%eax
	movl	%eax, 8(%rbx)
LBB0_3:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MOD_STATS_EVENT_STRING_MAX,4,2 ## @MOD_STATS_EVENT_STRING_MAX
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mod_stats_update_event         ; -- Begin function mod_stats_update_event
	.p2align	2
_mod_stats_update_event:                ; @mod_stats_update_event
	.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
	cbz	x0, LBB0_3
; %bb.1:
	mov	x21, x2
	mov	x20, x1
	bl	_MOD_STATS_TO_CORE
	ldp	w8, w9, [x0]
	cmp	w8, w9
	b.hs	LBB0_3
; %bb.2:
	mov	x19, x0
	ldr	x9, [x0, #16]
Lloh0:
	adrp	x10, _MOD_STATS_EVENT_STRING_MAX@GOTPAGE
Lloh1:
	ldr	x10, [x10, _MOD_STATS_EVENT_STRING_MAX@GOTPAGEOFF]
Lloh2:
	ldr	w10, [x10]
	cmp	w10, w21
	csel	w21, w10, w21, lo
	add	x22, x9, x8, lsl #4
	mov	x0, x22
	mov	x1, x20
	mov	x2, x21
	bl	_memcpy
	ldr	x8, [x22]
	sub	w9, w21, #1
	strb	wzr, [x8, w9, uxtw]
	ldr	w8, [x19, #8]
	str	w8, [x22, #8]
	ldr	w9, [x19]
	add	w9, w9, #1
	str	w9, [x19]
	add	w8, w8, #1
	str	w8, [x19, #8]
LBB0_3:
	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
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_MOD_STATS_EVENT_STRING_MAX,4,2 ; @MOD_STATS_EVENT_STRING_MAX
.subsections_via_symbols
