	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pmu_events_map_get
_pmu_events_map_get:                    ## @pmu_events_map_get
	.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	$104, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	testq	%rdi, %rdi
	je	LBB0_2
## %bb.1:
	movq	%rdi, %rsi
	leaq	-128(%rbp), %rdi
	movl	$64, %edx
	callq	_memcpy
LBB0_4:
	movq	_pmu_events_map@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	movq	(%rbx), %rsi
	testq	%rsi, %rsi
	je	LBB0_11
## %bb.5:
	movq	_REG_EXTENDED@GOTPCREL(%rip), %r15
	leaq	-140(%rbp), %r14
	leaq	L_.str.1(%rip), %r13
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_6 Depth=1
	movq	(%rbx), %rsi
	movq	%r13, %rdi
	callq	_printf
LBB0_10:                                ##   in Loop: Header=BB0_6 Depth=1
	movq	8(%rbx), %rsi
	addq	$8, %rbx
	testq	%rsi, %rsi
	je	LBB0_11
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r15), %edx
	movq	%r14, %rdi
	callq	_regcomp
	testq	%rax, %rax
	jne	LBB0_7
## %bb.8:                               ##   in Loop: Header=BB0_6 Depth=1
	movq	%r14, %rdi
	leaq	-128(%rbp), %rsi
	movl	$1, %edx
	leaq	-64(%rbp), %rcx
	xorl	%r8d, %r8d
	callq	_regexec
	movl	%eax, %r12d
	movq	%r14, %rdi
	callq	_regfree
	testl	%r12d, %r12d
	jne	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_6 Depth=1
	movq	-64(%rbp), %r12
	subq	-56(%rbp), %r12
	leaq	-128(%rbp), %rdi
	callq	_strlen
	cmpq	%rax, %r12
	jne	LBB0_10
	jmp	LBB0_12
LBB0_11:
	xorl	%ebx, %ebx
LBB0_12:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_14
## %bb.13:
	movq	%rbx, %rax
	addq	$104, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	leaq	L_.str(%rip), %rdi
	xorl	%ebx, %ebx
	leaq	-136(%rbp), %rdx
	xorl	%esi, %esi
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	callq	_sysctlbyname
	cmpl	$-1, %eax
	je	LBB0_12
## %bb.3:
	leaq	L_.str(%rip), %rdi
	xorl	%ebx, %ebx
	leaq	-128(%rbp), %rsi
	leaq	-136(%rbp), %rdx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	callq	_sysctlbyname
	cmpl	$-1, %eax
	jne	LBB0_4
	jmp	LBB0_12
LBB0_14:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"kern.hwpmc.cpuid"

	.comm	_pmu_events_map,8,3             ## @pmu_events_map
	.comm	_REG_EXTENDED,4,2               ## @REG_EXTENDED
L_.str.1:                               ## @.str.1
	.asciz	"regex '%s' failed to compile, ignoring\n"

	.no_dead_strip	_pmu_events_map_get
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pmu_events_map_get
_pmu_events_map_get:                    ; @pmu_events_map_get
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #160
	.cfi_def_cfa_offset 160
	stp	x22, x21, [sp, #112]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #128]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #144]            ; 16-byte Folded Spill
	add	x29, sp, #144
	.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	x1, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-40]
	cbz	x0, LBB0_9
; %bb.1:
	add	x0, sp, #24
	mov	w2, #64
	bl	_memcpy
LBB0_2:
Lloh3:
	adrp	x8, _pmu_events_map@GOTPAGE
Lloh4:
	ldr	x8, [x8, _pmu_events_map@GOTPAGEOFF]
Lloh5:
	ldr	x19, [x8]
	ldr	x1, [x19]
	cbz	x1, LBB0_11
; %bb.3:
Lloh6:
	adrp	x22, _REG_EXTENDED@GOTPAGE
Lloh7:
	ldr	x22, [x22, _REG_EXTENDED@GOTPAGEOFF]
Lloh8:
	adrp	x20, l_.str.1@PAGE
Lloh9:
	add	x20, x20, l_.str.1@PAGEOFF
	b	LBB0_6
LBB0_4:                                 ;   in Loop: Header=BB0_6 Depth=1
	ldr	x1, [x19]
	mov	x0, x20
	bl	_printf
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	ldr	x1, [x19, #8]!
	cbz	x1, LBB0_11
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w2, [x22]
	add	x0, sp, #20
	bl	_regcomp
	cbnz	x0, LBB0_4
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	add	x0, sp, #20
	add	x1, sp, #24
	sub	x3, x29, #56
	mov	w2, #1
	mov	w4, #0
	bl	_regexec
	mov	x21, x0
	add	x0, sp, #20
	bl	_regfree
	cbnz	w21, LBB0_5
; %bb.8:                                ;   in Loop: Header=BB0_6 Depth=1
	ldp	x8, x9, [x29, #-56]
	sub	x21, x8, x9
	add	x0, sp, #24
	bl	_strlen
	cmp	x21, x0
	b.ne	LBB0_5
	b	LBB0_12
LBB0_9:
Lloh10:
	adrp	x0, l_.str@PAGE
Lloh11:
	add	x0, x0, l_.str@PAGEOFF
	add	x2, sp, #8
	mov	x3, #0
	mov	w4, #0
	bl	_sysctlbyname
	cmn	w0, #1
	b.eq	LBB0_11
; %bb.10:
Lloh12:
	adrp	x0, l_.str@PAGE
Lloh13:
	add	x0, x0, l_.str@PAGEOFF
	add	x1, sp, #24
	add	x2, sp, #8
	mov	x3, #0
	mov	w4, #0
	bl	_sysctlbyname
	cmn	w0, #1
	b.ne	LBB0_2
LBB0_11:
	mov	x19, #0
LBB0_12:
	ldur	x8, [x29, #-40]
Lloh14:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh15:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh16:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_14
; %bb.13:
	mov	x0, x19
	ldp	x29, x30, [sp, #144]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #128]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #112]            ; 16-byte Folded Reload
	add	sp, sp, #160
	ret
LBB0_14:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"kern.hwpmc.cpuid"

	.comm	_pmu_events_map,8,3             ; @pmu_events_map
	.comm	_REG_EXTENDED,4,2               ; @REG_EXTENDED
l_.str.1:                               ; @.str.1
	.asciz	"regex '%s' failed to compile, ignoring\n"

	.no_dead_strip	_pmu_events_map_get
.subsections_via_symbols
