	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function test_pmu_events
_test_pmu_events:                       ## @test_pmu_events
	.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	$152, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsp, %r12
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_PATH_MAX@GOTPCREL(%rip), %rbx
	movl	(%rbx), %eax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r14
	movl	(%rbx), %r15d
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_sysfs_find_mountpoint
	leaq	L_.str(%rip), %rdx
	movq	%r14, %rdi
	movl	%r15d, %esi
	movq	%rax, %rcx
	callq	_snprintf
	leaq	-176(%rbp), %rsi
	movq	%r14, %rdi
	callq	_stat
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	leaq	L_.str.1(%rip), %rdi
	callq	_pr_debug
	jmp	LBB0_11
LBB0_2:
	movq	%r14, %rdi
	callq	_opendir
	testq	%rax, %rax
	je	LBB0_13
## %bb.3:
	movq	%rax, %r14
	movq	%r12, -168(%rbp)                ## 8-byte Spill
	leaq	L_.str.3(%rip), %r15
	leaq	-160(%rbp), %r13
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_4 Depth=1
	testl	%ebx, %ebx
	jne	LBB0_10
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r14, %rdi
	callq	_readdir
	testq	%rax, %rax
	je	LBB0_5
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	(%rax), %r12
	movq	%r12, %rdi
	movq	%r15, %rsi
	callq	_strcmp
	xorl	%ebx, %ebx
	testl	%eax, %eax
	je	LBB0_9
## %bb.7:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	%r12, %rdi
	leaq	L_.str.4(%rip), %rsi
	callq	_strcmp
	testl	%eax, %eax
	je	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	%r13, %rdi
	movl	$100, %esi
	leaq	L_.str.5(%rip), %rdx
	movq	%r12, %rcx
	callq	_snprintf
	movq	%r13, -192(%rbp)
	movq	_test__checkevent_pmu_events@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -184(%rbp)
	leaq	-192(%rbp), %rdi
	callq	_test_event
	movl	%eax, %ebx
	jmp	LBB0_9
LBB0_13:
	leaq	L_.str.2(%rip), %rdi
	callq	_pr_debug
	movl	$-1, %ebx
	jmp	LBB0_11
LBB0_5:
	xorl	%ebx, %ebx
LBB0_10:
	movq	%r14, %rdi
	callq	_closedir
	movq	-168(%rbp), %r12                ## 8-byte Reload
LBB0_11:
	movq	%r12, %rsp
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_14
## %bb.12:
	movl	%ebx, %eax
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_14:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_PATH_MAX,4,2                   ## @PATH_MAX
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s/bus/event_source/devices/cpu/events/"

L_.str.1:                               ## @.str.1
	.asciz	"ommiting PMU cpu events tests\n"

L_.str.2:                               ## @.str.2
	.asciz	"can't open pmu event dir"

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

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

L_.str.5:                               ## @.str.5
	.asciz	"cpu/event=%s/u"

	.comm	_test__checkevent_pmu_events,4,2 ## @test__checkevent_pmu_events
	.comm	_MAX_NAME,4,2                   ## @MAX_NAME
	.no_dead_strip	_test_pmu_events
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function test_pmu_events
_test_pmu_events:                       ; @test_pmu_events
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	sub	sp, sp, #128
	mov	x24, sp
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-72]
Lloh3:
	adrp	x12, _PATH_MAX@GOTPAGE
Lloh4:
	ldr	x12, [x12, _PATH_MAX@GOTPAGEOFF]
	ldr	w8, [x12]
	mov	x9, x8
Lloh5:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh6:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x1fffffff0
	sub	x19, x9, x8
	mov	sp, x19
	ldr	w20, [x12]
	bl	_sysfs_find_mountpoint
	mov	x3, x0
Lloh7:
	adrp	x2, l_.str@PAGE
Lloh8:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x19
	mov	x1, x20
	bl	_snprintf
	sub	x1, x29, #176
	mov	x0, x19
	bl	_stat
	cbz	w0, LBB0_2
; %bb.1:
Lloh9:
	adrp	x0, l_.str.1@PAGE
Lloh10:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_pr_debug
	mov	w23, #0
	b	LBB0_12
LBB0_2:
	mov	x0, x19
	bl	_opendir
	cbz	x0, LBB0_9
; %bb.3:
	mov	x19, x0
Lloh11:
	adrp	x20, l_.str.3@PAGE
Lloh12:
	add	x20, x20, l_.str.3@PAGEOFF
Lloh13:
	adrp	x21, l_.str.4@PAGE
Lloh14:
	add	x21, x21, l_.str.4@PAGEOFF
	sub	x25, x29, #172
Lloh15:
	adrp	x26, _test__checkevent_pmu_events@GOTPAGE
Lloh16:
	ldr	x26, [x26, _test__checkevent_pmu_events@GOTPAGEOFF]
Lloh17:
	adrp	x22, l_.str.5@PAGE
Lloh18:
	add	x22, x22, l_.str.5@PAGEOFF
	b	LBB0_5
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	mov	w23, #0
	cbnz	w23, LBB0_11
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	bl	_readdir
	cbz	x0, LBB0_10
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x23, [x0]
	mov	x0, x23
	mov	x1, x20
	bl	_strcmp
	cbz	w0, LBB0_4
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x23
	mov	x1, x21
	bl	_strcmp
	cbz	w0, LBB0_4
; %bb.8:                                ;   in Loop: Header=BB0_5 Depth=1
	sub	x0, x29, #172
	mov	w1, #100
	mov	x2, x22
	mov	x3, x23
	bl	_snprintf
	stur	x25, [x29, #-192]
	ldr	w8, [x26]
	stur	w8, [x29, #-184]
	sub	x0, x29, #192
	bl	_test_event
	mov	x23, x0
	cbz	w23, LBB0_5
	b	LBB0_11
LBB0_9:
Lloh19:
	adrp	x0, l_.str.2@PAGE
Lloh20:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_pr_debug
	mov	w23, #-1
	b	LBB0_12
LBB0_10:
	mov	w23, #0
LBB0_11:
	mov	x0, x19
	bl	_closedir
LBB0_12:
	mov	sp, x24
	ldur	x8, [x29, #-72]
Lloh21:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh22:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh23:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_14
; %bb.13:
	mov	x0, x23
	sub	sp, x29, #64
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_14:
	bl	___stack_chk_fail
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.comm	_PATH_MAX,4,2                   ; @PATH_MAX
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s/bus/event_source/devices/cpu/events/"

l_.str.1:                               ; @.str.1
	.asciz	"ommiting PMU cpu events tests\n"

l_.str.2:                               ; @.str.2
	.asciz	"can't open pmu event dir"

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

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

l_.str.5:                               ; @.str.5
	.asciz	"cpu/event=%s/u"

	.comm	_test__checkevent_pmu_events,4,2 ; @test__checkevent_pmu_events
	.comm	_MAX_NAME,4,2                   ; @MAX_NAME
	.no_dead_strip	_test_pmu_events
.subsections_via_symbols
