	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mod_stats_create               ## -- Begin function mod_stats_create
	.p2align	4, 0x90
_mod_stats_create:                      ## @mod_stats_create
	.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
	testq	%rdi, %rdi
	je	LBB0_15
## %bb.1:
	movq	%rdi, %rbx
	movq	_GFP_KERNEL@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movl	$64, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_15
## %bb.2:
	movq	%rax, %r14
	movq	%rbx, 56(%rax)
	movq	_DAL_STATS_ENABLE_REGKEY_DEFAULT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r14)
	movl	(%rbx), %edi
	movq	_DAL_STATS_ENABLE_REGKEY@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	-40(%rbp), %r12
	movq	%r12, (%rsp)
	leaq	-36(%rbp), %r8
	xorl	%esi, %esi
	xorl	%edx, %edx
	movl	$4, %r9d
	callq	_dm_read_persistent_data
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movl	-36(%rbp), %eax
	movl	%eax, (%r14)
	testl	%eax, %eax
	je	LBB0_16
LBB0_6:
	movq	_DAL_STATS_ENTRIES_REGKEY_DEFAULT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 4(%r14)
	movl	(%rbx), %edi
	movq	_DAL_STATS_ENTRIES_REGKEY@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r12, (%rsp)
	leaq	-36(%rbp), %r8
	xorl	%esi, %esi
	xorl	%edx, %edx
	movl	$4, %r9d
	callq	_dm_read_persistent_data
	testq	%rax, %rax
	je	LBB0_7
## %bb.8:
	movl	-36(%rbp), %eax
	movq	_DAL_STATS_ENTRIES_REGKEY_MAX@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	cmpl	%edi, %eax
	jbe	LBB0_10
## %bb.9:
	movl	%edi, 4(%r14)
	jmp	LBB0_11
LBB0_4:
	movl	(%r14), %eax
	testl	%eax, %eax
	jne	LBB0_6
LBB0_16:
	movl	$0, 4(%r14)
	jmp	LBB0_17
LBB0_7:
	movl	4(%r14), %edi
	jmp	LBB0_11
LBB0_10:
	movl	%eax, 4(%r14)
	movl	%eax, %edi
LBB0_11:
	movl	(%r15), %edx
	movl	$4, %esi
	callq	_kcalloc
	movq	%rax, 16(%r14)
	testq	%rax, %rax
	je	LBB0_14
## %bb.12:
	movq	_DAL_STATS_EVENT_ENTRIES_DEFAULT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%edi, 8(%r14)
	movl	(%r15), %edx
	movl	$4, %esi
	callq	_kcalloc
	movq	%rax, 48(%r14)
	testq	%rax, %rax
	je	LBB0_13
LBB0_17:
	movl	$1, 12(%r14)
	movq	%r14, %rax
	addq	$24, %rax
	xorps	%xmm0, %xmm0
	movups	%xmm0, 32(%r14)
	jmp	LBB0_18
LBB0_13:
	movq	16(%r14), %rdi
	callq	_kfree
LBB0_14:
	movq	%r14, %rdi
	callq	_kfree
LBB0_15:
	xorl	%eax, %eax
LBB0_18:
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_DAL_STATS_ENABLE_REGKEY_DEFAULT,4,2 ## @DAL_STATS_ENABLE_REGKEY_DEFAULT
	.comm	_DAL_STATS_ENABLE_REGKEY,4,2    ## @DAL_STATS_ENABLE_REGKEY
	.comm	_DAL_STATS_ENTRIES_REGKEY_DEFAULT,4,2 ## @DAL_STATS_ENTRIES_REGKEY_DEFAULT
	.comm	_DAL_STATS_ENTRIES_REGKEY,4,2   ## @DAL_STATS_ENTRIES_REGKEY
	.comm	_DAL_STATS_ENTRIES_REGKEY_MAX,4,2 ## @DAL_STATS_ENTRIES_REGKEY_MAX
	.comm	_DAL_STATS_EVENT_ENTRIES_DEFAULT,4,2 ## @DAL_STATS_EVENT_ENTRIES_DEFAULT
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mod_stats_create               ; -- Begin function mod_stats_create
	.p2align	2
_mod_stats_create:                      ; @mod_stats_create
	.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
	cbz	x0, LBB0_16
; %bb.1:
	mov	x20, x0
Lloh0:
	adrp	x21, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x21, [x21, _GFP_KERNEL@GOTPAGEOFF]
	ldr	w1, [x21]
	mov	w0, #64
	bl	_kzalloc
	cbz	x0, LBB0_16
; %bb.2:
	mov	x19, x0
	str	x20, [x0, #56]
Lloh2:
	adrp	x8, _DAL_STATS_ENABLE_REGKEY_DEFAULT@GOTPAGE
Lloh3:
	ldr	x8, [x8, _DAL_STATS_ENABLE_REGKEY_DEFAULT@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	str	w8, [x0]
	ldr	w0, [x20]
Lloh5:
	adrp	x8, _DAL_STATS_ENABLE_REGKEY@GOTPAGE
Lloh6:
	ldr	x8, [x8, _DAL_STATS_ENABLE_REGKEY@GOTPAGEOFF]
Lloh7:
	ldr	w3, [x8]
	add	x4, sp, #4
	add	x6, sp, #8
	mov	x1, #0
	mov	x2, #0
	mov	w5, #4
	bl	_dm_read_persistent_data
	cbz	x0, LBB0_7
; %bb.3:
	ldr	w8, [sp, #4]
	str	w8, [x19]
	cbz	w8, LBB0_8
LBB0_4:
Lloh8:
	adrp	x8, _DAL_STATS_ENTRIES_REGKEY_DEFAULT@GOTPAGE
Lloh9:
	ldr	x8, [x8, _DAL_STATS_ENTRIES_REGKEY_DEFAULT@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	str	w8, [x19, #4]
	ldr	w0, [x20]
Lloh11:
	adrp	x8, _DAL_STATS_ENTRIES_REGKEY@GOTPAGE
Lloh12:
	ldr	x8, [x8, _DAL_STATS_ENTRIES_REGKEY@GOTPAGEOFF]
Lloh13:
	ldr	w3, [x8]
	add	x4, sp, #4
	add	x6, sp, #8
	mov	x1, #0
	mov	x2, #0
	mov	w5, #4
	bl	_dm_read_persistent_data
	cbz	x0, LBB0_9
; %bb.5:
	ldr	w8, [sp, #4]
Lloh14:
	adrp	x9, _DAL_STATS_ENTRIES_REGKEY_MAX@GOTPAGE
Lloh15:
	ldr	x9, [x9, _DAL_STATS_ENTRIES_REGKEY_MAX@GOTPAGEOFF]
Lloh16:
	ldr	w0, [x9]
	cmp	w8, w0
	b.ls	LBB0_10
; %bb.6:
	str	w0, [x19, #4]
	b	LBB0_11
LBB0_7:
	ldr	w8, [x19]
	cbnz	w8, LBB0_4
LBB0_8:
	str	wzr, [x19, #4]
	b	LBB0_13
LBB0_9:
	ldr	w0, [x19, #4]
	b	LBB0_11
LBB0_10:
	str	w8, [x19, #4]
	mov	x0, x8
LBB0_11:
	ldr	w2, [x21]
	mov	w1, #4
	bl	_kcalloc
	str	x0, [x19, #16]
	cbz	x0, LBB0_15
; %bb.12:
Lloh17:
	adrp	x8, _DAL_STATS_EVENT_ENTRIES_DEFAULT@GOTPAGE
Lloh18:
	ldr	x8, [x8, _DAL_STATS_EVENT_ENTRIES_DEFAULT@GOTPAGEOFF]
Lloh19:
	ldr	w0, [x8]
	str	w0, [x19, #8]
	ldr	w2, [x21]
	mov	w1, #4
	bl	_kcalloc
	str	x0, [x19, #48]
	cbz	x0, LBB0_14
LBB0_13:
	mov	w8, #1
	str	w8, [x19, #12]
	add	x0, x19, #24
	stp	xzr, xzr, [x19, #32]
	b	LBB0_16
LBB0_14:
	ldr	x0, [x19, #16]
	bl	_kfree
LBB0_15:
	mov	x0, x19
	bl	_kfree
	mov	x0, #0
LBB0_16:
	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	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_DAL_STATS_ENABLE_REGKEY_DEFAULT,4,2 ; @DAL_STATS_ENABLE_REGKEY_DEFAULT
	.comm	_DAL_STATS_ENABLE_REGKEY,4,2    ; @DAL_STATS_ENABLE_REGKEY
	.comm	_DAL_STATS_ENTRIES_REGKEY_DEFAULT,4,2 ; @DAL_STATS_ENTRIES_REGKEY_DEFAULT
	.comm	_DAL_STATS_ENTRIES_REGKEY,4,2   ; @DAL_STATS_ENTRIES_REGKEY
	.comm	_DAL_STATS_ENTRIES_REGKEY_MAX,4,2 ; @DAL_STATS_ENTRIES_REGKEY_MAX
	.comm	_DAL_STATS_EVENT_ENTRIES_DEFAULT,4,2 ; @DAL_STATS_EVENT_ENTRIES_DEFAULT
.subsections_via_symbols
