	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pmu_events_mfr
_pmu_events_mfr:                        ## @pmu_events_mfr
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	leaq	L_.str(%rip), %rdi
	leaq	-24(%rbp), %rdx
	xorl	%esi, %esi
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	callq	_sysctlbyname
	cmpl	$-1, %eax
	je	LBB0_1
## %bb.2:
	movq	-24(%rbp), %rdi
	incq	%rdi
	callq	_malloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.3:
	movq	%rax, %r14
	leaq	L_.str(%rip), %rdi
	leaq	-24(%rbp), %rdx
	movq	%rax, %rsi
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	callq	_sysctlbyname
	cmpl	$-1, %eax
	je	LBB0_4
## %bb.5:
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	callq	_strcasestr
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:
	movq	_PMU_AMD@GOTPCREL(%rip), %rax
	jmp	LBB0_10
LBB0_4:
	movq	%r14, %rdi
	callq	_free
LBB0_1:
	movq	_PMU_INVALID@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	jmp	LBB0_11
LBB0_7:
	leaq	L_.str.2(%rip), %rsi
	movq	%r14, %rdi
	callq	_strcasestr
	testq	%rax, %rax
	jne	LBB0_8
## %bb.9:
	movq	_PMU_INVALID@GOTPCREL(%rip), %rax
	jmp	LBB0_10
LBB0_8:
	movq	_PMU_INTEL@GOTPCREL(%rip), %rax
LBB0_10:
	movl	(%rax), %ebx
	movq	%r14, %rdi
	callq	_free
LBB0_11:
	movl	%ebx, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"kern.hwpmc.cpuid"

	.comm	_PMU_INVALID,4,2                ## @PMU_INVALID
L_.str.1:                               ## @.str.1
	.asciz	"AuthenticAMD"

	.comm	_PMU_AMD,4,2                    ## @PMU_AMD
L_.str.2:                               ## @.str.2
	.asciz	"GenuineIntel"

	.comm	_PMU_INTEL,4,2                  ## @PMU_INTEL
	.no_dead_strip	_pmu_events_mfr
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pmu_events_mfr
_pmu_events_mfr:                        ; @pmu_events_mfr
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	add	x2, sp, #8
	mov	x1, #0
	mov	x3, #0
	mov	w4, #0
	bl	_sysctlbyname
	cmn	w0, #1
	b.eq	LBB0_6
; %bb.1:
	ldr	x8, [sp, #8]
	add	x0, x8, #1
	bl	_malloc
	cbz	x0, LBB0_6
; %bb.2:
	mov	x19, x0
Lloh2:
	adrp	x0, l_.str@PAGE
Lloh3:
	add	x0, x0, l_.str@PAGEOFF
	add	x2, sp, #8
	mov	x1, x19
	mov	x3, #0
	mov	w4, #0
	bl	_sysctlbyname
	cmn	w0, #1
	b.eq	LBB0_5
; %bb.3:
Lloh4:
	adrp	x1, l_.str.1@PAGE
Lloh5:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_strcasestr
	cbz	x0, LBB0_7
; %bb.4:
Lloh6:
	adrp	x8, _PMU_AMD@GOTPAGE
Lloh7:
	ldr	x8, [x8, _PMU_AMD@GOTPAGEOFF]
	b	LBB0_8
LBB0_5:
	mov	x0, x19
	bl	_free
LBB0_6:
Lloh8:
	adrp	x8, _PMU_INVALID@GOTPAGE
Lloh9:
	ldr	x8, [x8, _PMU_INVALID@GOTPAGEOFF]
Lloh10:
	ldr	w20, [x8]
	b	LBB0_9
LBB0_7:
Lloh11:
	adrp	x1, l_.str.2@PAGE
Lloh12:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_strcasestr
Lloh13:
	adrp	x8, _PMU_INTEL@GOTPAGE
Lloh14:
	ldr	x8, [x8, _PMU_INTEL@GOTPAGEOFF]
Lloh15:
	adrp	x9, _PMU_INVALID@GOTPAGE
Lloh16:
	ldr	x9, [x9, _PMU_INVALID@GOTPAGEOFF]
	cmp	x0, #0
	csel	x8, x9, x8, eq
LBB0_8:
	ldr	w20, [x8]
	mov	x0, x19
	bl	_free
LBB0_9:
	mov	x0, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpAdd	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"kern.hwpmc.cpuid"

	.comm	_PMU_INVALID,4,2                ; @PMU_INVALID
l_.str.1:                               ; @.str.1
	.asciz	"AuthenticAMD"

	.comm	_PMU_AMD,4,2                    ; @PMU_AMD
l_.str.2:                               ; @.str.2
	.asciz	"GenuineIntel"

	.comm	_PMU_INTEL,4,2                  ; @PMU_INTEL
	.no_dead_strip	_pmu_events_mfr
.subsections_via_symbols
