	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_performance_counter_register   ## -- Begin function performance_counter_register
	.p2align	4, 0x90
_performance_counter_register:          ## @performance_counter_register
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	cmpl	$0, (%rdi)
	je	LBB0_1
LBB0_3:
	popq	%rbp
	retq
LBB0_1:
	movq	_perf_ptr_libretro@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rax
	movq	_MAX_COUNTERS@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rax
	jge	LBB0_3
## %bb.2:
	movq	_perf_counters_libretro@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	leaq	1(%rax), %rsi
	movq	%rsi, (%rcx)
	movq	%rdi, (%rdx,%rax,8)
	movl	$1, (%rdi)
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_perf_ptr_libretro,8,3          ## @perf_ptr_libretro
	.comm	_MAX_COUNTERS,8,3               ## @MAX_COUNTERS
	.comm	_perf_counters_libretro,8,3     ## @perf_counters_libretro
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_performance_counter_register   ; -- Begin function performance_counter_register
	.p2align	2
_performance_counter_register:          ; @performance_counter_register
	.cfi_startproc
; %bb.0:
	ldr	w8, [x0]
	cbz	w8, LBB0_2
LBB0_1:
	ret
LBB0_2:
Lloh0:
	adrp	x9, _perf_ptr_libretro@GOTPAGE
Lloh1:
	ldr	x9, [x9, _perf_ptr_libretro@GOTPAGEOFF]
	ldr	x8, [x9]
Lloh2:
	adrp	x10, _MAX_COUNTERS@GOTPAGE
Lloh3:
	ldr	x10, [x10, _MAX_COUNTERS@GOTPAGEOFF]
Lloh4:
	ldr	x10, [x10]
	cmp	x8, x10
	b.ge	LBB0_1
; %bb.3:
Lloh5:
	adrp	x10, _perf_counters_libretro@GOTPAGE
Lloh6:
	ldr	x10, [x10, _perf_counters_libretro@GOTPAGEOFF]
Lloh7:
	ldr	x10, [x10]
	add	x11, x8, #1
	str	x11, [x9]
	str	x0, [x10, x8, lsl #3]
	mov	w8, #1
	str	w8, [x0]
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_perf_ptr_libretro,8,3          ; @perf_ptr_libretro
	.comm	_MAX_COUNTERS,8,3               ; @MAX_COUNTERS
	.comm	_perf_counters_libretro,8,3     ; @perf_counters_libretro
.subsections_via_symbols
