	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function __perf_evsel__hw_cache_name
___perf_evsel__hw_cache_name:           ## @__perf_evsel__hw_cache_name
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	%rsi, %r15
	movl	%edi, %eax
	movzbl	%al, %ebx
	movq	_PERF_COUNT_HW_CACHE_MAX@GOTPCREL(%rip), %rcx
	cmpq	%rbx, (%rcx)
	jge	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rcx
	jmp	LBB0_8
LBB0_2:
	movzbl	%ah, %edx
	movq	_PERF_COUNT_HW_CACHE_OP_MAX@GOTPCREL(%rip), %rcx
	cmpq	%rdx, (%rcx)
	jge	LBB0_4
## %bb.3:
	leaq	L_.str.1(%rip), %rcx
	jmp	LBB0_8
LBB0_4:
	shrl	$16, %eax
	movzbl	%al, %r12d
	movq	_PERF_COUNT_HW_CACHE_RESULT_MAX@GOTPCREL(%rip), %rax
	cmpq	%r12, (%rax)
	jge	LBB0_6
## %bb.5:
	leaq	L_.str.2(%rip), %rcx
	jmp	LBB0_8
LBB0_6:
	movq	%rbx, %rdi
	movq	%rdx, %r13
	movq	%rdx, %rsi
	callq	_perf_evsel__is_cache_op_valid
	testl	%eax, %eax
	je	LBB0_7
## %bb.9:
	movq	%rbx, %rdi
	movq	%r13, %rsi
	movq	%r12, %rdx
	movq	%r15, %rcx
	movq	%r14, %r8
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	___perf_evsel__hw_cache_type_op_res_name ## TAILCALL
LBB0_7:
	leaq	L_.str.3(%rip), %rcx
LBB0_8:
	leaq	L_.str.4(%rip), %rdx
	movq	%r15, %rdi
	movq	%r14, %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_scnprintf                      ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"unknown-ext-hardware-cache-type"

	.comm	_PERF_COUNT_HW_CACHE_MAX,8,3    ## @PERF_COUNT_HW_CACHE_MAX
L_.str.1:                               ## @.str.1
	.asciz	"unknown-ext-hardware-cache-op"

	.comm	_PERF_COUNT_HW_CACHE_OP_MAX,8,3 ## @PERF_COUNT_HW_CACHE_OP_MAX
L_.str.2:                               ## @.str.2
	.asciz	"unknown-ext-hardware-cache-result"

	.comm	_PERF_COUNT_HW_CACHE_RESULT_MAX,8,3 ## @PERF_COUNT_HW_CACHE_RESULT_MAX
L_.str.3:                               ## @.str.3
	.asciz	"invalid-cache"

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

	.no_dead_strip	___perf_evsel__hw_cache_name
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function __perf_evsel__hw_cache_name
___perf_evsel__hw_cache_name:           ; @__perf_evsel__hw_cache_name
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x19, x2
	mov	x20, x1
	and	w21, w0, #0xff
Lloh0:
	adrp	x8, _PERF_COUNT_HW_CACHE_MAX@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PERF_COUNT_HW_CACHE_MAX@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x8, x21
	b.ge	LBB0_2
; %bb.1:
Lloh3:
	adrp	x3, l_.str@PAGE
Lloh4:
	add	x3, x3, l_.str@PAGEOFF
	b	LBB0_9
LBB0_2:
	ubfx	w22, w0, #8, #8
Lloh5:
	adrp	x8, _PERF_COUNT_HW_CACHE_OP_MAX@GOTPAGE
Lloh6:
	ldr	x8, [x8, _PERF_COUNT_HW_CACHE_OP_MAX@GOTPAGEOFF]
Lloh7:
	ldr	x8, [x8]
	cmp	x8, x22
	b.ge	LBB0_4
; %bb.3:
Lloh8:
	adrp	x3, l_.str.1@PAGE
Lloh9:
	add	x3, x3, l_.str.1@PAGEOFF
	b	LBB0_9
LBB0_4:
	ubfx	w23, w0, #16, #8
Lloh10:
	adrp	x8, _PERF_COUNT_HW_CACHE_RESULT_MAX@GOTPAGE
Lloh11:
	ldr	x8, [x8, _PERF_COUNT_HW_CACHE_RESULT_MAX@GOTPAGEOFF]
Lloh12:
	ldr	x8, [x8]
	cmp	x8, x23
	b.ge	LBB0_6
; %bb.5:
Lloh13:
	adrp	x3, l_.str.2@PAGE
Lloh14:
	add	x3, x3, l_.str.2@PAGEOFF
	b	LBB0_9
LBB0_6:
	mov	x0, x21
	mov	x1, x22
	bl	_perf_evsel__is_cache_op_valid
	cbz	w0, LBB0_8
; %bb.7:
	mov	x0, x21
	mov	x1, x22
	mov	x2, x23
	mov	x3, x20
	mov	x4, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	___perf_evsel__hw_cache_type_op_res_name
LBB0_8:
Lloh15:
	adrp	x3, l_.str.3@PAGE
Lloh16:
	add	x3, x3, l_.str.3@PAGEOFF
LBB0_9:
Lloh17:
	adrp	x2, l_.str.4@PAGE
Lloh18:
	add	x2, x2, l_.str.4@PAGEOFF
	mov	x0, x20
	mov	x1, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_scnprintf
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"unknown-ext-hardware-cache-type"

	.comm	_PERF_COUNT_HW_CACHE_MAX,8,3    ; @PERF_COUNT_HW_CACHE_MAX
l_.str.1:                               ; @.str.1
	.asciz	"unknown-ext-hardware-cache-op"

	.comm	_PERF_COUNT_HW_CACHE_OP_MAX,8,3 ; @PERF_COUNT_HW_CACHE_OP_MAX
l_.str.2:                               ; @.str.2
	.asciz	"unknown-ext-hardware-cache-result"

	.comm	_PERF_COUNT_HW_CACHE_RESULT_MAX,8,3 ; @PERF_COUNT_HW_CACHE_RESULT_MAX
l_.str.3:                               ; @.str.3
	.asciz	"invalid-cache"

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

	.no_dead_strip	___perf_evsel__hw_cache_name
.subsections_via_symbols
