	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nmi_create_files
_nmi_create_files:                      ## @nmi_create_files
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, -48(%rbp)                 ## 8-byte Spill
	movq	_model@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpl	$0, (%rax)
	je	LBB0_5
## %bb.1:
	movq	%rdi, %r15
	movl	$24, %r14d
	xorl	%ebx, %ebx
	movq	_counter_config@GOTPCREL(%rip), %r13
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	incq	%rbx
	movq	_model@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%rax), %eax
	addq	$28, %r14
	cmpq	%rax, %rbx
	jae	LBB0_5
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	%ebx, %edi
	callq	_op_x86_virt_to_phys
	movl	%eax, %edi
	callq	_avail_to_resrv_perfctr_nmi_bit
	testl	%eax, %eax
	je	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	leaq	-52(%rbp), %r12
	movq	%r12, %rdi
	movl	$4, %esi
	leaq	L_.str(%rip), %rdx
	movl	%ebx, %ecx
	callq	_snprintf
	movq	%r15, %rdi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	movq	%r12, %rdx
	callq	_oprofilefs_mkdir
	movq	%rax, %r12
	movq	(%r13), %rcx
	addq	%r14, %rcx
	movq	%r15, %rdi
	movq	%rax, %rsi
	leaq	L_.str.1(%rip), %rdx
	callq	_oprofilefs_create_ulong
	movq	(%r13), %rax
	leaq	(%rax,%r14), %rcx
	addq	$-4, %rcx
	movq	%r15, %rdi
	movq	%r12, %rsi
	leaq	L_.str.2(%rip), %rdx
	callq	_oprofilefs_create_ulong
	movq	(%r13), %rax
	leaq	(%rax,%r14), %rcx
	addq	$-8, %rcx
	movq	%r15, %rdi
	movq	%r12, %rsi
	leaq	L_.str.3(%rip), %rdx
	callq	_oprofilefs_create_ulong
	movq	(%r13), %rax
	leaq	(%rax,%r14), %rcx
	addq	$-12, %rcx
	movq	%r15, %rdi
	movq	%r12, %rsi
	leaq	L_.str.4(%rip), %rdx
	callq	_oprofilefs_create_ulong
	movq	(%r13), %rax
	leaq	(%rax,%r14), %rcx
	addq	$-16, %rcx
	movq	%r15, %rdi
	movq	%r12, %rsi
	leaq	L_.str.5(%rip), %rdx
	callq	_oprofilefs_create_ulong
	movq	(%r13), %rax
	leaq	(%rax,%r14), %rcx
	addq	$-20, %rcx
	movq	%r15, %rdi
	movq	%r12, %rsi
	leaq	L_.str.6(%rip), %rdx
	callq	_oprofilefs_create_ulong
	movq	(%r13), %rax
	leaq	(%rax,%r14), %rcx
	addq	$-24, %rcx
	movq	%r15, %rdi
	movq	%r12, %rsi
	leaq	L_.str.7(%rip), %rdx
	callq	_oprofilefs_create_ulong
	jmp	LBB0_4
LBB0_5:
	xorl	%eax, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_model,8,3                      ## @model
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%d"

L_.str.1:                               ## @.str.1
	.asciz	"enabled"

	.comm	_counter_config,8,3             ## @counter_config
L_.str.2:                               ## @.str.2
	.asciz	"event"

L_.str.3:                               ## @.str.3
	.asciz	"count"

L_.str.4:                               ## @.str.4
	.asciz	"unit_mask"

L_.str.5:                               ## @.str.5
	.asciz	"kernel"

L_.str.6:                               ## @.str.6
	.asciz	"user"

L_.str.7:                               ## @.str.7
	.asciz	"extra"

	.no_dead_strip	_nmi_create_files
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nmi_create_files
_nmi_create_files:                      ; @nmi_create_files
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
Lloh0:
	adrp	x24, _model@GOTPAGE
Lloh1:
	ldr	x24, [x24, _model@GOTPAGEOFF]
	ldr	x8, [x24]
	ldr	w8, [x8]
	cbz	w8, LBB0_5
; %bb.1:
	mov	x19, x1
	mov	x20, x0
	mov	x21, #0
	mov	w25, #24
Lloh2:
	adrp	x26, _counter_config@GOTPAGE
Lloh3:
	ldr	x26, [x26, _counter_config@GOTPAGEOFF]
Lloh4:
	adrp	x27, l_.str.5@PAGE
Lloh5:
	add	x27, x27, l_.str.5@PAGEOFF
Lloh6:
	adrp	x28, l_.str.6@PAGE
Lloh7:
	add	x28, x28, l_.str.6@PAGEOFF
Lloh8:
	adrp	x22, l_.str.7@PAGE
Lloh9:
	add	x22, x22, l_.str.7@PAGEOFF
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x21, x21, #1
	ldr	x8, [x24]
	ldr	w8, [x8]
	add	x25, x25, #28
	cmp	x21, x8
	b.hs	LBB0_5
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x21
	bl	_op_x86_virt_to_phys
	bl	_avail_to_resrv_perfctr_nmi_bit
	cbz	w0, LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	add	x0, sp, #12
	mov	w1, #4
Lloh10:
	adrp	x2, l_.str@PAGE
Lloh11:
	add	x2, x2, l_.str@PAGEOFF
	mov	x3, x21
	bl	_snprintf
	add	x2, sp, #12
	mov	x0, x20
	mov	x1, x19
	bl	_oprofilefs_mkdir
	mov	x23, x0
	ldr	x8, [x26]
	add	x3, x8, x25
	mov	x0, x20
	mov	x1, x23
Lloh12:
	adrp	x2, l_.str.1@PAGE
Lloh13:
	add	x2, x2, l_.str.1@PAGEOFF
	bl	_oprofilefs_create_ulong
	ldr	x8, [x26]
	add	x8, x8, x25
	sub	x3, x8, #4
	mov	x0, x20
	mov	x1, x23
Lloh14:
	adrp	x2, l_.str.2@PAGE
Lloh15:
	add	x2, x2, l_.str.2@PAGEOFF
	bl	_oprofilefs_create_ulong
	ldr	x8, [x26]
	add	x8, x8, x25
	sub	x3, x8, #8
	mov	x0, x20
	mov	x1, x23
Lloh16:
	adrp	x2, l_.str.3@PAGE
Lloh17:
	add	x2, x2, l_.str.3@PAGEOFF
	bl	_oprofilefs_create_ulong
	ldr	x8, [x26]
	add	x8, x8, x25
	sub	x3, x8, #12
	mov	x0, x20
	mov	x1, x23
Lloh18:
	adrp	x2, l_.str.4@PAGE
Lloh19:
	add	x2, x2, l_.str.4@PAGEOFF
	bl	_oprofilefs_create_ulong
	ldr	x8, [x26]
	add	x8, x8, x25
	sub	x3, x8, #16
	mov	x0, x20
	mov	x1, x23
	mov	x2, x27
	bl	_oprofilefs_create_ulong
	ldr	x8, [x26]
	add	x8, x8, x25
	sub	x3, x8, #20
	mov	x0, x20
	mov	x1, x23
	mov	x2, x28
	bl	_oprofilefs_create_ulong
	ldr	x8, [x26]
	add	x8, x8, x25
	sub	x3, x8, #24
	mov	x0, x20
	mov	x1, x23
	mov	x2, x22
	bl	_oprofilefs_create_ulong
	b	LBB0_2
LBB0_5:
	mov	w0, #0
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_model,8,3                      ; @model
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%d"

l_.str.1:                               ; @.str.1
	.asciz	"enabled"

	.comm	_counter_config,8,3             ; @counter_config
l_.str.2:                               ; @.str.2
	.asciz	"event"

l_.str.3:                               ; @.str.3
	.asciz	"count"

l_.str.4:                               ; @.str.4
	.asciz	"unit_mask"

l_.str.5:                               ; @.str.5
	.asciz	"kernel"

l_.str.6:                               ; @.str.6
	.asciz	"user"

l_.str.7:                               ; @.str.7
	.asciz	"extra"

	.no_dead_strip	_nmi_create_files
.subsections_via_symbols
