	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function armpmu_map_hw_event
_armpmu_map_hw_event:                   ## @armpmu_map_hw_event
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	_PERF_COUNT_HW_MAX@GOTPCREL(%rip), %rax
	cmpq	%rsi, (%rax)
	jbe	LBB0_1
## %bb.3:
	testq	%rdi, %rdi
	je	LBB0_4
## %bb.5:
	movl	(%rdi,%rsi,4), %ecx
	movq	_HW_OP_UNSUPPORTED@GOTPCREL(%rip), %rdx
	movq	_ENOENT@GOTPCREL(%rip), %rsi
	xorl	%eax, %eax
	subl	(%rsi), %eax
	cmpl	(%rdx), %ecx
	cmovnel	%ecx, %eax
	popq	%rbp
	retq
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	jmp	LBB0_2
LBB0_4:
	movq	_ENOENT@GOTPCREL(%rip), %rcx
LBB0_2:
	xorl	%eax, %eax
	subl	(%rcx), %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PERF_COUNT_HW_MAX,8,3          ## @PERF_COUNT_HW_MAX
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_ENOENT,4,2                     ## @ENOENT
	.comm	_HW_OP_UNSUPPORTED,4,2          ## @HW_OP_UNSUPPORTED
	.no_dead_strip	_armpmu_map_hw_event
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function armpmu_map_hw_event
_armpmu_map_hw_event:                   ; @armpmu_map_hw_event
	.cfi_startproc
; %bb.0:
Lloh0:
	adrp	x8, _PERF_COUNT_HW_MAX@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PERF_COUNT_HW_MAX@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x8, x1
	b.ls	LBB0_3
; %bb.1:
	cbz	x0, LBB0_4
; %bb.2:
	ldr	w8, [x0, x1, lsl #2]
Lloh3:
	adrp	x9, _HW_OP_UNSUPPORTED@GOTPAGE
Lloh4:
	ldr	x9, [x9, _HW_OP_UNSUPPORTED@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
Lloh6:
	adrp	x10, _ENOENT@GOTPAGE
Lloh7:
	ldr	x10, [x10, _ENOENT@GOTPAGEOFF]
Lloh8:
	ldr	w10, [x10]
	cmp	w8, w9
	csneg	w0, w8, w10, ne
	ret
LBB0_3:
Lloh9:
	adrp	x8, _EINVAL@GOTPAGE
Lloh10:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_5
LBB0_4:
Lloh11:
	adrp	x8, _ENOENT@GOTPAGE
Lloh12:
	ldr	x8, [x8, _ENOENT@GOTPAGEOFF]
LBB0_5:
	ldr	w8, [x8]
	neg	w0, w8
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_PERF_COUNT_HW_MAX,8,3          ; @PERF_COUNT_HW_MAX
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_ENOENT,4,2                     ; @ENOENT
	.comm	_HW_OP_UNSUPPORTED,4,2          ; @HW_OP_UNSUPPORTED
	.no_dead_strip	_armpmu_map_hw_event
.subsections_via_symbols
