	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ddr_perf_alloc_counter
_ddr_perf_alloc_counter:                ## @ddr_perf_alloc_counter
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	_EVENT_CYCLES_ID@GOTPCREL(%rip), %rax
	cmpl	%esi, (%rax)
	jne	LBB0_1
## %bb.5:
	movq	(%rdi), %rcx
	movq	_EVENT_CYCLES_COUNTER@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	$0, (%rcx,%rax,8)
	jne	LBB0_6
LBB0_7:
	popq	%rbp
	retq
LBB0_1:
	movq	_NUM_COUNTERS@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	cmpl	$2, %ecx
	jl	LBB0_6
## %bb.2:
	movq	(%rdi), %rdx
	movl	$1, %eax
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	$0, (%rdx,%rax,8)
	je	LBB0_7
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	incq	%rax
	cmpq	%rax, %rcx
	jne	LBB0_3
LBB0_6:
	movq	_ENOENT@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subq	(%rcx), %rax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EVENT_CYCLES_ID,4,2            ## @EVENT_CYCLES_ID
	.comm	_EVENT_CYCLES_COUNTER,8,3       ## @EVENT_CYCLES_COUNTER
	.comm	_ENOENT,8,3                     ## @ENOENT
	.comm	_NUM_COUNTERS,4,2               ## @NUM_COUNTERS
	.no_dead_strip	_ddr_perf_alloc_counter
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ddr_perf_alloc_counter
_ddr_perf_alloc_counter:                ; @ddr_perf_alloc_counter
	.cfi_startproc
; %bb.0:
Lloh0:
	adrp	x8, _EVENT_CYCLES_ID@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EVENT_CYCLES_ID@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, w1
	b.ne	LBB0_3
; %bb.1:
	ldr	x8, [x0]
Lloh3:
	adrp	x9, _EVENT_CYCLES_COUNTER@GOTPAGE
Lloh4:
	ldr	x9, [x9, _EVENT_CYCLES_COUNTER@GOTPAGEOFF]
Lloh5:
	ldr	x0, [x9]
	ldr	x8, [x8, x0, lsl #3]
	cbnz	x8, LBB0_7
LBB0_2:
	ret
LBB0_3:
Lloh6:
	adrp	x8, _NUM_COUNTERS@GOTPAGE
Lloh7:
	ldr	x8, [x8, _NUM_COUNTERS@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	cmp	w8, #2
	b.lt	LBB0_7
; %bb.4:
	ldr	x9, [x0]
	mov	w0, #1
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x10, [x9, x0, lsl #3]
	cbz	x10, LBB0_2
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	add	x0, x0, #1
	cmp	x8, x0
	b.ne	LBB0_5
LBB0_7:
Lloh9:
	adrp	x8, _ENOENT@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ENOENT@GOTPAGEOFF]
Lloh11:
	ldr	x8, [x8]
	neg	x0, x8
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_EVENT_CYCLES_ID,4,2            ; @EVENT_CYCLES_ID
	.comm	_EVENT_CYCLES_COUNTER,8,3       ; @EVENT_CYCLES_COUNTER
	.comm	_ENOENT,8,3                     ; @ENOENT
	.comm	_NUM_COUNTERS,4,2               ; @NUM_COUNTERS
	.no_dead_strip	_ddr_perf_alloc_counter
.subsections_via_symbols
