	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function perf_evsel__process_free_event
_perf_evsel__process_free_event:        ## @perf_evsel__process_free_event
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	leaq	L_.str(%rip), %rdx
	callq	_perf_evsel__intval
	movq	_ptr_cmp@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	_root_alloc_stat@GOTPCREL(%rip), %rdx
	xorl	%r14d, %r14d
	movq	%rax, %rdi
	xorl	%esi, %esi
	callq	_search_alloc_stat
	testq	%rax, %rax
	je	LBB0_6
## %bb.1:
	movq	%rax, %rbx
	movswl	(%r15), %eax
	movswl	(%rbx), %ecx
	cmpl	%ecx, %eax
	je	LBB0_5
## %bb.2:
	incl	4(%rbx)
	movl	8(%rbx), %esi
	movq	_callsite_cmp@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_root_caller_stat@GOTPCREL(%rip), %rdx
	xorl	%edi, %edi
	callq	_search_alloc_stat
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	incl	4(%rax)
LBB0_5:
	movw	$-1, (%rbx)
	jmp	LBB0_6
LBB0_3:
	movl	$-1, %r14d
LBB0_6:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"ptr"

	.comm	_root_alloc_stat,4,2            ## @root_alloc_stat
	.comm	_ptr_cmp,4,2                    ## @ptr_cmp
	.comm	_root_caller_stat,4,2           ## @root_caller_stat
	.comm	_callsite_cmp,4,2               ## @callsite_cmp
	.no_dead_strip	_perf_evsel__process_free_event
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function perf_evsel__process_free_event
_perf_evsel__process_free_event:        ; @perf_evsel__process_free_event
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x20, x1
Lloh0:
	adrp	x2, l_.str@PAGE
Lloh1:
	add	x2, x2, l_.str@PAGEOFF
	bl	_perf_evsel__intval
Lloh2:
	adrp	x8, _ptr_cmp@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ptr_cmp@GOTPAGEOFF]
Lloh4:
	ldr	w3, [x8]
Lloh5:
	adrp	x2, _root_alloc_stat@GOTPAGE
Lloh6:
	ldr	x2, [x2, _root_alloc_stat@GOTPAGEOFF]
	mov	w1, #0
	bl	_search_alloc_stat
	cbz	x0, LBB0_6
; %bb.1:
	mov	x19, x0
	ldrsh	w8, [x20]
	ldrsh	w9, [x0]
	cmp	w8, w9
	b.eq	LBB0_4
; %bb.2:
	ldp	w8, w1, [x19, #4]
	add	w8, w8, #1
	str	w8, [x19, #4]
Lloh7:
	adrp	x8, _callsite_cmp@GOTPAGE
Lloh8:
	ldr	x8, [x8, _callsite_cmp@GOTPAGEOFF]
Lloh9:
	ldr	w3, [x8]
Lloh10:
	adrp	x2, _root_caller_stat@GOTPAGE
Lloh11:
	ldr	x2, [x2, _root_caller_stat@GOTPAGEOFF]
	mov	x0, #0
	bl	_search_alloc_stat
	cbz	x0, LBB0_5
; %bb.3:
	ldr	w8, [x0, #4]
	add	w8, w8, #1
	str	w8, [x0, #4]
LBB0_4:
	mov	w0, #0
	mov	w8, #65535
	strh	w8, [x19]
	b	LBB0_6
LBB0_5:
	mov	w0, #-1
LBB0_6:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ptr"

	.comm	_root_alloc_stat,4,2            ; @root_alloc_stat
	.comm	_ptr_cmp,4,2                    ; @ptr_cmp
	.comm	_root_caller_stat,4,2           ; @root_caller_stat
	.comm	_callsite_cmp,4,2               ; @callsite_cmp
	.no_dead_strip	_perf_evsel__process_free_event
.subsections_via_symbols
