	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function perf_evsel__roundtrip_cache_name_test
_perf_evsel__roundtrip_cache_name_test: ## @perf_evsel__roundtrip_cache_name_test
	.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	$168, %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)
	xorl	%r13d, %r13d
	xorl	%edi, %edi
	xorl	%esi, %esi
	callq	_perf_evlist__new
	testq	%rax, %rax
	je	LBB0_31
## %bb.1:
	movq	%rax, -200(%rbp)                ## 8-byte Spill
	movq	_PERF_COUNT_HW_CACHE_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, %eax
	jle	LBB0_13
## %bb.2:
	movq	_PERF_COUNT_HW_CACHE_OP_MAX@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	xorl	%r13d, %r13d
	xorl	%edi, %edi
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	_PERF_COUNT_HW_CACHE_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	-192(%rbp), %r13                ## 8-byte Reload
LBB0_12:                                ##   in Loop: Header=BB0_3 Depth=1
	incl	%edi
	cmpl	%eax, %edi
	jge	LBB0_13
LBB0_3:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_5 Depth 2
                                        ##       Child Loop BB0_9 Depth 3
	testl	%ecx, %ecx
	jle	LBB0_12
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	%r13, -192(%rbp)                ## 8-byte Spill
	xorl	%esi, %esi
	movl	%edi, -180(%rbp)                ## 4-byte Spill
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_5 Depth=2
	movl	-180(%rbp), %edi                ## 4-byte Reload
	movq	-192(%rbp), %r14                ## 8-byte Reload
	movl	%r13d, %esi
LBB0_10:                                ##   in Loop: Header=BB0_5 Depth=2
	movq	%r14, -192(%rbp)                ## 8-byte Spill
	incl	%esi
	movq	_PERF_COUNT_HW_CACHE_OP_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	cmpl	%ecx, %esi
	jge	LBB0_11
LBB0_5:                                 ##   Parent Loop BB0_3 Depth=1
                                        ## =>  This Loop Header: Depth=2
                                        ##       Child Loop BB0_9 Depth 3
	movl	%esi, %r13d
	callq	_perf_evsel__is_cache_op_valid
	testl	%eax, %eax
	je	LBB0_6
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=2
	movq	_PERF_COUNT_HW_CACHE_RESULT_MAX@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	jle	LBB0_6
## %bb.8:                               ##   in Loop: Header=BB0_5 Depth=2
	xorl	%ebx, %ebx
	movq	_PERF_COUNT_HW_CACHE_RESULT_MAX@GOTPCREL(%rip), %r15
	leaq	-176(%rbp), %r12
	movq	-192(%rbp), %r14                ## 8-byte Reload
	.p2align	4, 0x90
LBB0_9:                                 ##   Parent Loop BB0_3 Depth=1
                                        ##     Parent Loop BB0_5 Depth=2
                                        ## =>    This Inner Loop Header: Depth=3
	movl	-180(%rbp), %edi                ## 4-byte Reload
	movl	%r13d, %esi
	movl	%ebx, %edx
	movq	%r12, %rcx
	movl	$128, %r8d
	callq	___perf_evsel__hw_cache_type_op_res_name
	movq	-200(%rbp), %rdi                ## 8-byte Reload
	movq	%r12, %rsi
	xorl	%edx, %edx
	callq	_parse_events
	movl	%r13d, %esi
	movl	-180(%rbp), %edi                ## 4-byte Reload
	testl	%eax, %eax
	cmovnel	%eax, %r14d
	incl	%ebx
	cmpl	(%r15), %ebx
	jl	LBB0_9
	jmp	LBB0_10
LBB0_13:
	movq	-200(%rbp), %rdi                ## 8-byte Reload
	callq	_perf_evlist__first
	movq	%rax, %r15
	movq	_PERF_COUNT_HW_CACHE_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	testl	%ecx, %ecx
	jle	LBB0_28
## %bb.14:
	movq	_PERF_COUNT_HW_CACHE_OP_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	$0, -180(%rbp)                  ## 4-byte Folded Spill
	movl	$0, -192(%rbp)                  ## 4-byte Folded Spill
	jmp	LBB0_15
	.p2align	4, 0x90
LBB0_26:                                ##   in Loop: Header=BB0_15 Depth=1
	movq	_PERF_COUNT_HW_CACHE_MAX@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
LBB0_27:                                ##   in Loop: Header=BB0_15 Depth=1
	movl	-192(%rbp), %edx                ## 4-byte Reload
	incl	%edx
	movl	%edx, -192(%rbp)                ## 4-byte Spill
	cmpl	%ecx, %edx
	jge	LBB0_28
LBB0_15:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_17 Depth 2
                                        ##       Child Loop BB0_20 Depth 3
	testl	%eax, %eax
	jle	LBB0_27
## %bb.16:                              ##   in Loop: Header=BB0_15 Depth=1
	xorl	%r14d, %r14d
	jmp	LBB0_17
	.p2align	4, 0x90
LBB0_25:                                ##   in Loop: Header=BB0_17 Depth=2
	incl	%r14d
	movq	_PERF_COUNT_HW_CACHE_OP_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	cmpl	%eax, %r14d
	jge	LBB0_26
LBB0_17:                                ##   Parent Loop BB0_15 Depth=1
                                        ## =>  This Loop Header: Depth=2
                                        ##       Child Loop BB0_20 Depth 3
	movl	-192(%rbp), %edi                ## 4-byte Reload
	movl	%r14d, %esi
	callq	_perf_evsel__is_cache_op_valid
	testl	%eax, %eax
	je	LBB0_25
## %bb.18:                              ##   in Loop: Header=BB0_17 Depth=2
	movq	_PERF_COUNT_HW_CACHE_RESULT_MAX@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	jle	LBB0_25
## %bb.19:                              ##   in Loop: Header=BB0_17 Depth=2
	xorl	%r12d, %r12d
	jmp	LBB0_20
	.p2align	4, 0x90
LBB0_23:                                ##   in Loop: Header=BB0_20 Depth=3
	incl	-180(%rbp)                      ## 4-byte Folded Spill
	movq	%r15, %rdi
	callq	_perf_evsel__next
	movq	%rax, %r15
LBB0_24:                                ##   in Loop: Header=BB0_20 Depth=3
	incl	%r12d
	movq	_PERF_COUNT_HW_CACHE_RESULT_MAX@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r12d
	jge	LBB0_25
LBB0_20:                                ##   Parent Loop BB0_15 Depth=1
                                        ##     Parent Loop BB0_17 Depth=2
                                        ## =>    This Inner Loop Header: Depth=3
	movl	-192(%rbp), %edi                ## 4-byte Reload
	movl	%r14d, %esi
	movl	%r12d, %edx
	leaq	-176(%rbp), %rbx
	movq	%rbx, %rcx
	movl	$128, %r8d
	callq	___perf_evsel__hw_cache_type_op_res_name
	movl	-180(%rbp), %eax                ## 4-byte Reload
	cmpl	%eax, (%r15)
	jne	LBB0_24
## %bb.21:                              ##   in Loop: Header=BB0_20 Depth=3
	movq	%r15, %rdi
	callq	_perf_evsel__name
	movl	%eax, %edi
	movq	%rbx, %rsi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_23
## %bb.22:                              ##   in Loop: Header=BB0_20 Depth=3
	movq	%r15, %rdi
	callq	_perf_evsel__name
	leaq	L_.str(%rip), %rdi
	movl	%eax, %esi
	movq	%rbx, %rdx
	callq	_pr_debug
	movl	$-1, %r13d
	jmp	LBB0_23
LBB0_28:
	movq	-200(%rbp), %rdi                ## 8-byte Reload
	callq	_perf_evlist__delete
	jmp	LBB0_29
LBB0_31:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r13d, %r13d
	subl	(%rax), %r13d
LBB0_29:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_32
## %bb.30:
	movl	%r13d, %eax
	addq	$168, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_32:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_PERF_COUNT_HW_CACHE_MAX,4,2    ## @PERF_COUNT_HW_CACHE_MAX
	.comm	_PERF_COUNT_HW_CACHE_OP_MAX,4,2 ## @PERF_COUNT_HW_CACHE_OP_MAX
	.comm	_PERF_COUNT_HW_CACHE_RESULT_MAX,4,2 ## @PERF_COUNT_HW_CACHE_RESULT_MAX
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s != %s\n"

	.no_dead_strip	_perf_evsel__roundtrip_cache_name_test
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function perf_evsel__roundtrip_cache_name_test
_perf_evsel__roundtrip_cache_name_test: ; @perf_evsel__roundtrip_cache_name_test
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #240
	.cfi_def_cfa_offset 240
	stp	x28, x27, [sp, #144]            ; 16-byte Folded Spill
	stp	x26, x25, [sp, #160]            ; 16-byte Folded Spill
	stp	x24, x23, [sp, #176]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #192]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #208]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #224]            ; 16-byte Folded Spill
	add	x29, sp, #224
	.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	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-88]
	mov	x0, #0
	mov	x1, #0
	bl	_perf_evlist__new
	cbz	x0, LBB0_12
; %bb.1:
	mov	x19, x0
Lloh3:
	adrp	x24, _PERF_COUNT_HW_CACHE_MAX@GOTPAGE
Lloh4:
	ldr	x24, [x24, _PERF_COUNT_HW_CACHE_MAX@GOTPAGEOFF]
	ldr	w9, [x24]
Lloh5:
	adrp	x27, _PERF_COUNT_HW_CACHE_OP_MAX@GOTPAGE
Lloh6:
	ldr	x27, [x27, _PERF_COUNT_HW_CACHE_OP_MAX@GOTPAGEOFF]
Lloh7:
	adrp	x28, _PERF_COUNT_HW_CACHE_RESULT_MAX@GOTPAGE
Lloh8:
	ldr	x28, [x28, _PERF_COUNT_HW_CACHE_RESULT_MAX@GOTPAGEOFF]
	cmp	w9, #1
	b.lt	LBB0_13
; %bb.2:
	mov	w20, #0
	mov	w21, #0
	ldr	w8, [x27]
	b	LBB0_5
LBB0_3:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldr	w9, [x24]
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	w21, w21, #1
	cmp	w21, w9
	b.ge	LBB0_14
LBB0_5:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_8 Depth 2
                                        ;       Child Loop BB0_11 Depth 3
	cmp	w8, #1
	b.lt	LBB0_4
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	w22, #0
	b	LBB0_8
LBB0_7:                                 ;   in Loop: Header=BB0_8 Depth=2
	add	w22, w22, #1
	ldr	w8, [x27]
	cmp	w22, w8
	b.ge	LBB0_3
LBB0_8:                                 ;   Parent Loop BB0_5 Depth=1
                                        ; =>  This Loop Header: Depth=2
                                        ;       Child Loop BB0_11 Depth 3
	mov	x0, x21
	mov	x1, x22
	bl	_perf_evsel__is_cache_op_valid
	cbz	w0, LBB0_7
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=2
	ldr	w8, [x28]
	cmp	w8, #1
	b.lt	LBB0_7
; %bb.10:                               ;   in Loop: Header=BB0_8 Depth=2
	mov	w23, #0
LBB0_11:                                ;   Parent Loop BB0_5 Depth=1
                                        ;     Parent Loop BB0_8 Depth=2
                                        ; =>    This Inner Loop Header: Depth=3
	add	x3, sp, #8
	mov	x0, x21
	mov	x1, x22
	mov	x2, x23
	mov	w4, #128
	bl	___perf_evsel__hw_cache_type_op_res_name
	add	x1, sp, #8
	mov	x0, x19
	mov	w2, #0
	bl	_parse_events
	cmp	w0, #0
	csel	w20, w20, w0, eq
	add	w23, w23, #1
	ldr	w8, [x28]
	cmp	w23, w8
	b.lt	LBB0_11
	b	LBB0_7
LBB0_12:
Lloh9:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	neg	w20, w8
	b	LBB0_30
LBB0_13:
	mov	w20, #0
LBB0_14:
	mov	x0, x19
	bl	_perf_evlist__first
	ldr	w9, [x24]
	cmp	w9, #1
	b.lt	LBB0_29
; %bb.15:
	mov	x21, x0
	mov	w26, #0
	mov	w22, #0
	ldr	w8, [x27]
Lloh12:
	adrp	x23, l_.str@PAGE
Lloh13:
	add	x23, x23, l_.str@PAGEOFF
	b	LBB0_18
LBB0_16:                                ;   in Loop: Header=BB0_18 Depth=1
Lloh14:
	adrp	x9, _PERF_COUNT_HW_CACHE_MAX@GOTPAGE
Lloh15:
	ldr	x9, [x9, _PERF_COUNT_HW_CACHE_MAX@GOTPAGEOFF]
Lloh16:
	ldr	w9, [x9]
LBB0_17:                                ;   in Loop: Header=BB0_18 Depth=1
	add	w22, w22, #1
	cmp	w22, w9
	b.ge	LBB0_29
LBB0_18:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_21 Depth 2
                                        ;       Child Loop BB0_26 Depth 3
	cmp	w8, #1
	b.lt	LBB0_17
; %bb.19:                               ;   in Loop: Header=BB0_18 Depth=1
	mov	w24, #0
	b	LBB0_21
LBB0_20:                                ;   in Loop: Header=BB0_21 Depth=2
	add	w24, w24, #1
	ldr	w8, [x27]
	cmp	w24, w8
	b.ge	LBB0_16
LBB0_21:                                ;   Parent Loop BB0_18 Depth=1
                                        ; =>  This Loop Header: Depth=2
                                        ;       Child Loop BB0_26 Depth 3
	mov	x0, x22
	mov	x1, x24
	bl	_perf_evsel__is_cache_op_valid
	cbz	w0, LBB0_20
; %bb.22:                               ;   in Loop: Header=BB0_21 Depth=2
	ldr	w8, [x28]
	cmp	w8, #1
	b.lt	LBB0_20
; %bb.23:                               ;   in Loop: Header=BB0_21 Depth=2
	mov	w25, #0
	b	LBB0_26
LBB0_24:                                ;   in Loop: Header=BB0_26 Depth=3
	add	w26, w26, #1
	mov	x0, x21
	bl	_perf_evsel__next
	mov	x21, x0
LBB0_25:                                ;   in Loop: Header=BB0_26 Depth=3
	add	w25, w25, #1
	ldr	w8, [x28]
	cmp	w25, w8
	b.ge	LBB0_20
LBB0_26:                                ;   Parent Loop BB0_18 Depth=1
                                        ;     Parent Loop BB0_21 Depth=2
                                        ; =>    This Inner Loop Header: Depth=3
	add	x3, sp, #8
	mov	x0, x22
	mov	x1, x24
	mov	x2, x25
	mov	w4, #128
	bl	___perf_evsel__hw_cache_type_op_res_name
	ldr	w8, [x21]
	cmp	w8, w26
	b.ne	LBB0_25
; %bb.27:                               ;   in Loop: Header=BB0_26 Depth=3
	mov	x0, x21
	bl	_perf_evsel__name
	add	x1, sp, #8
	bl	_strcmp
	cbz	x0, LBB0_24
; %bb.28:                               ;   in Loop: Header=BB0_26 Depth=3
	mov	x0, x21
	bl	_perf_evsel__name
	mov	x1, x0
	add	x2, sp, #8
	mov	x0, x23
	bl	_pr_debug
	mov	w20, #-1
	b	LBB0_24
LBB0_29:
	mov	x0, x19
	bl	_perf_evlist__delete
LBB0_30:
	ldur	x8, [x29, #-88]
Lloh17:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh18:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh19:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_32
; %bb.31:
	mov	x0, x20
	ldp	x29, x30, [sp, #224]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #208]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #192]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #176]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #160]            ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #144]            ; 16-byte Folded Reload
	add	sp, sp, #240
	ret
LBB0_32:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_PERF_COUNT_HW_CACHE_MAX,4,2    ; @PERF_COUNT_HW_CACHE_MAX
	.comm	_PERF_COUNT_HW_CACHE_OP_MAX,4,2 ; @PERF_COUNT_HW_CACHE_OP_MAX
	.comm	_PERF_COUNT_HW_CACHE_RESULT_MAX,4,2 ; @PERF_COUNT_HW_CACHE_RESULT_MAX
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s != %s\n"

	.no_dead_strip	_perf_evsel__roundtrip_cache_name_test
.subsections_via_symbols
