	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pmcpl_ct_process               ## -- Begin function pmcpl_ct_process
	.p2align	4, 0x90
_pmcpl_ct_process:                      ## @pmcpl_ct_process
	.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
	subq	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r8d, %r13d
	movq	%rcx, -64(%rbp)                 ## 8-byte Spill
	movq	%rdx, %r12
	movq	%rsi, -96(%rbp)                 ## 8-byte Spill
	movq	%rdi, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_PMC_CALLCHAIN_DEPTH_MAX@GOTPCREL(%rip), %rax
	movslq	(%rax), %rbx
	movl	%ebx, %eax
	shlq	$3, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, -56(%rbp)                 ## 8-byte Spill
	leal	1(%rbx), %eax
	shlq	$3, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r15
	testq	%r12, %r12
	setg	%al
	cmpq	%r12, %rbx
	setge	%cl
	andb	%al, %cl
	movzbl	%cl, %edi
	callq	_assert
	movq	-96(%rbp), %rcx                 ## 8-byte Reload
	testl	%r12d, %r12d
	jle	LBB0_10
## %bb.1:
	movq	%r15, -72(%rbp)                 ## 8-byte Spill
	movslq	(%rcx), %rax
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	movq	_pmcstat_kernproc@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	movq	%r12, -88(%rbp)                 ## 8-byte Spill
	movl	%r12d, %eax
	movq	%rax, -104(%rbp)                ## 8-byte Spill
	xorl	%r15d, %r15d
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rcx, %r12
	testl	%r13d, %r13d
	movq	%rbx, %rdi
	cmovneq	%r14, %rdi
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax,%r15,8), %rsi
	callq	_pmcstat_process_find_map
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movq	%rax, (%rcx,%r15,8)
	testl	%r13d, %r13d
	jne	LBB0_5
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	testq	%rax, %rax
	jne	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax,%r15,8), %rsi
	movq	%r14, %rdi
	callq	_pmcstat_process_find_map
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movq	%rax, (%rcx,%r15,8)
	testq	%rax, %rax
	cmovneq	%r14, %rbx
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	%r12, %rcx
	testq	%rax, %rax
	je	LBB0_8
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	incq	%r15
	cmpq	%r15, -104(%rbp)                ## 8-byte Folded Reload
	jne	LBB0_2
## %bb.7:
	movq	-88(%rbp), %rbx                 ## 8-byte Reload
	jmp	LBB0_9
LBB0_8:
	movl	%r15d, %ebx
LBB0_9:
	testl	%ebx, %ebx
	movq	-80(%rbp), %r15                 ## 8-byte Reload
	movq	-72(%rbp), %r12                 ## 8-byte Reload
	je	LBB0_10
## %bb.13:
	movq	_pmcpl_ct_callid@GOTPCREL(%rip), %r14
	movq	%r14, %rdi
	callq	_pmcpl_ct_samples_grow
	movq	(%r14), %rax
	incl	(%rax,%r15,4)
	movq	_pmcpl_ct_root@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%r12)
	testl	%ebx, %ebx
	jle	LBB0_11
## %bb.14:
	movl	%ebx, %r13d
	incq	%r13
	movl	$1, %r15d
	jmp	LBB0_15
	.p2align	4, 0x90
LBB0_20:                                ##   in Loop: Header=BB0_15 Depth=1
	movslq	%r15d, %rcx
	incl	%r15d
	movq	%rax, (%r12,%rcx,8)
LBB0_21:                                ##   in Loop: Header=BB0_15 Depth=1
	decq	%r13
	cmpq	$1, %r13
	jbe	LBB0_22
LBB0_15:                                ## =>This Inner Loop Header: Depth=1
	leal	-2(%r13), %eax
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movq	(%rcx,%rax,8), %rcx
	movq	(%rcx), %r14
	movq	8(%r14), %rdx
	addq	8(%rcx), %rdx
	movq	(%r14), %rbx
	subq	%rdx, %rbx
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	addq	(%rcx,%rax,8), %rbx
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_pmcstat_symbol_search
	testq	%rax, %rax
	je	LBB0_17
## %bb.16:                              ##   in Loop: Header=BB0_15 Depth=1
	movq	(%rax), %rbx
	jmp	LBB0_18
	.p2align	4, 0x90
LBB0_17:                                ##   in Loop: Header=BB0_15 Depth=1
	movq	_pmcstat_stats@GOTPCREL(%rip), %rcx
	incl	4(%rcx)
LBB0_18:                                ##   in Loop: Header=BB0_15 Depth=1
	movq	%r14, %rdi
	movq	%rbx, %rsi
	movq	%rax, %rdx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	callq	_pmcpl_ct_node_hash_lookup
	testq	%rax, %rax
	jne	LBB0_20
## %bb.19:                              ##   in Loop: Header=BB0_15 Depth=1
	movq	_pmcstat_stats@GOTPCREL(%rip), %rax
	incl	(%rax)
	jmp	LBB0_21
LBB0_10:
	movq	_pmcstat_stats@GOTPCREL(%rip), %rax
	incl	(%rax)
	incl	4(%rcx)
LBB0_11:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_29
## %bb.12:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_22:
	cmpl	$1, %r15d
	movq	-80(%rbp), %r13                 ## 8-byte Reload
	je	LBB0_11
## %bb.23:
	jle	LBB0_26
## %bb.24:
	movl	%r15d, %r14d
	movq	(%r12), %rdi
	movl	$1, %ebx
	.p2align	4, 0x90
LBB0_25:                                ## =>This Inner Loop Header: Depth=1
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax,%rbx,8), %r12
	movq	%r12, %rsi
	movl	%r13d, %edx
	movl	$1, %ecx
	movl	$1, %r8d
	callq	_pmcpl_ct_node_update
	incq	%rbx
	movq	%r12, %rdi
	movq	-72(%rbp), %r12                 ## 8-byte Reload
	cmpq	%rbx, %r14
	jne	LBB0_25
LBB0_26:
	movslq	%r15d, %rax
	movq	-8(%r12,%rax,8), %rbx
	movq	%rbx, %rdi
	callq	_pmcpl_ct_samples_grow
	movq	(%rbx), %rax
	incl	(%rax,%r13,4)
	movq	_args@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_11
## %bb.27:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rax
	movq	(%rax), %rcx
	movq	8(%rax), %rax
	addq	8(%rcx), %rax
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	movq	(%rdx), %rdx
	subq	%rax, %rdx
	addq	(%rcx), %rdx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_29
## %bb.28:
	movq	%rbx, %rdi
	movl	%r13d, %esi
	movl	$1, %ecx
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_pmcpl_ct_instr_add             ## TAILCALL
LBB0_29:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_PMC_CALLCHAIN_DEPTH_MAX,4,2    ## @PMC_CALLCHAIN_DEPTH_MAX
	.comm	_pmcstat_kernproc,8,3           ## @pmcstat_kernproc
	.comm	_pmcstat_stats,8,2              ## @pmcstat_stats
	.comm	_pmcpl_ct_callid,8,3            ## @pmcpl_ct_callid
	.comm	_pmcpl_ct_root,8,3              ## @pmcpl_ct_root
	.comm	_args,8,3                       ## @args
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pmcpl_ct_process               ; -- Begin function pmcpl_ct_process
	.p2align	2
_pmcpl_ct_process:                      ; @pmcpl_ct_process
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	sub	sp, sp, #32
	mov	x23, x4
	mov	x19, x3
	mov	x21, x2
	mov	x22, x1
	mov	x24, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-88]
Lloh3:
	adrp	x8, _PMC_CALLCHAIN_DEPTH_MAX@GOTPAGE
Lloh4:
	ldr	x8, [x8, _PMC_CALLCHAIN_DEPTH_MAX@GOTPAGEOFF]
Lloh5:
	ldrsw	x12, [x8]
	and	x8, x12, #0xffffffff
	lsl	x8, x8, #3
	mov	x9, x8
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0xffffffff0
	sub	x25, x9, x8
	mov	sp, x25
	add	w8, w12, #1
	lsl	x8, x8, #3
	mov	x9, x8
Lloh8:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh9:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0xffffffff0
	sub	x26, x9, x8
	mov	sp, x26
	cmp	x2, #0
	ccmp	x12, x2, #8, gt
	cset	w0, ge
	bl	_assert
	cmp	w21, #1
	b.lt	LBB0_18
; %bb.1:
	mov	x27, #0
	ldrsw	x8, [x22]
	stp	x22, x8, [x29, #-104]           ; 16-byte Folded Spill
Lloh10:
	adrp	x8, _pmcstat_kernproc@GOTPAGE
Lloh11:
	ldr	x8, [x8, _pmcstat_kernproc@GOTPAGEOFF]
Lloh12:
	ldr	x28, [x8]
	and	x20, x21, #0xffffffff
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	cmp	w23, #0
	csel	x0, x24, x28, ne
	lsl	x22, x27, #3
	ldr	x1, [x19, x22]
	bl	_pmcstat_process_find_map
	str	x0, [x25, x22]
	cbnz	w23, LBB0_5
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	cbnz	x0, LBB0_5
; %bb.4:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	x1, [x19, x22]
	mov	x0, x24
	bl	_pmcstat_process_find_map
	str	x0, [x25, x22]
	cmp	x0, #0
	csel	x28, x28, x24, eq
LBB0_5:                                 ;   in Loop: Header=BB0_2 Depth=1
	cbz	x0, LBB0_17
; %bb.6:                                ;   in Loop: Header=BB0_2 Depth=1
	add	x27, x27, #1
	cmp	x20, x27
	b.ne	LBB0_2
; %bb.7:
	ldp	x22, x20, [x29, #-104]          ; 16-byte Folded Reload
	cbz	w21, LBB0_18
LBB0_8:
Lloh13:
	adrp	x22, _pmcpl_ct_callid@GOTPAGE
Lloh14:
	ldr	x22, [x22, _pmcpl_ct_callid@GOTPAGEOFF]
	mov	x0, x22
	bl	_pmcpl_ct_samples_grow
	ldr	x8, [x22]
	lsl	x23, x20, #2
	ldr	w9, [x8, x23]
	add	w9, w9, #1
	str	w9, [x8, x23]
Lloh15:
	adrp	x8, _pmcpl_ct_root@GOTPAGE
Lloh16:
	ldr	x8, [x8, _pmcpl_ct_root@GOTPAGEOFF]
Lloh17:
	ldr	x8, [x8]
	str	x8, [x26]
	cmp	w21, #1
	b.lt	LBB0_19
; %bb.9:
	mov	w8, w21
	add	x27, x8, #1
	mov	w24, #1
Lloh18:
	adrp	x28, _pmcstat_stats@GOTPAGE
Lloh19:
	ldr	x28, [x28, _pmcstat_stats@GOTPAGEOFF]
	b	LBB0_12
LBB0_10:                                ;   in Loop: Header=BB0_12 Depth=1
	str	x0, [x26, w24, sxtw #3]
	add	w24, w24, #1
LBB0_11:                                ;   in Loop: Header=BB0_12 Depth=1
	sub	x27, x27, #1
	cmp	x27, #1
	b.ls	LBB0_21
LBB0_12:                                ; =>This Inner Loop Header: Depth=1
	sub	w8, w27, #2
	lsl	x8, x8, #3
	ldr	x9, [x25, x8]
	ldp	x21, x9, [x9]
	ldp	x11, x10, [x21]
	add	x9, x10, x9
	sub	x9, x11, x9
	ldr	x8, [x19, x8]
	add	x22, x9, x8
	mov	x0, x21
	mov	x1, x22
	bl	_pmcstat_symbol_search
	mov	x2, x0
	cbz	x0, LBB0_14
; %bb.13:                               ;   in Loop: Header=BB0_12 Depth=1
	ldr	x22, [x2]
	b	LBB0_15
LBB0_14:                                ;   in Loop: Header=BB0_12 Depth=1
	ldr	w8, [x28, #4]
	add	w8, w8, #1
	str	w8, [x28, #4]
LBB0_15:                                ;   in Loop: Header=BB0_12 Depth=1
	mov	x0, x21
	mov	x1, x22
	mov	x3, #0
	mov	x4, #0
	bl	_pmcpl_ct_node_hash_lookup
	cbnz	x0, LBB0_10
; %bb.16:                               ;   in Loop: Header=BB0_12 Depth=1
	ldr	w8, [x28]
	add	w8, w8, #1
	str	w8, [x28]
	b	LBB0_11
LBB0_17:
	mov	x21, x27
	ldp	x22, x20, [x29, #-104]          ; 16-byte Folded Reload
	cbnz	w21, LBB0_8
LBB0_18:
Lloh20:
	adrp	x8, _pmcstat_stats@GOTPAGE
Lloh21:
	ldr	x8, [x8, _pmcstat_stats@GOTPAGEOFF]
	ldr	w9, [x8]
	add	w9, w9, #1
	str	w9, [x8]
	ldr	w8, [x22, #4]
	add	w8, w8, #1
	str	w8, [x22, #4]
LBB0_19:
	ldur	x8, [x29, #-88]
Lloh22:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh23:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh24:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_28
; %bb.20:
	sub	sp, x29, #80
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_21:
	subs	w20, w24, #1
	ldur	x27, [x29, #-96]                ; 8-byte Folded Reload
	b.eq	LBB0_19
; %bb.22:
	cmp	w24, #2
	b.lt	LBB0_25
; %bb.23:
	mov	w8, w24
	mov	x22, x26
	ldr	x0, [x22], #8
	sub	x24, x8, #1
LBB0_24:                                ; =>This Inner Loop Header: Depth=1
	ldr	x21, [x22], #8
	mov	x1, x21
	mov	x2, x27
	mov	w3, #1
	mov	w4, #1
	bl	_pmcpl_ct_node_update
	mov	x0, x21
	subs	x24, x24, #1
	b.ne	LBB0_24
LBB0_25:
	ldr	x21, [x26, w20, sxtw #3]
	mov	x0, x21
	bl	_pmcpl_ct_samples_grow
	ldr	x8, [x21]
	ldr	w9, [x8, x23]
	add	w9, w9, #1
	str	w9, [x8, x23]
Lloh25:
	adrp	x8, _args@GOTPAGE
Lloh26:
	ldr	x8, [x8, _args@GOTPAGEOFF]
Lloh27:
	ldr	x8, [x8]
	cbz	x8, LBB0_19
; %bb.26:
	ldr	x8, [x19]
	ldr	x10, [x25]
	ldp	x10, x9, [x10]
	ldp	x10, x11, [x10]
	ldur	x12, [x29, #-88]
Lloh28:
	adrp	x13, ___stack_chk_guard@GOTPAGE
Lloh29:
	ldr	x13, [x13, ___stack_chk_guard@GOTPAGEOFF]
Lloh30:
	ldr	x13, [x13]
	cmp	x13, x12
	b.ne	LBB0_28
; %bb.27:
	add	x9, x9, x11
	sub	x8, x8, x9
	add	x2, x8, x10
	mov	x0, x21
	mov	x1, x27
	mov	w3, #1
	sub	sp, x29, #80
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	b	_pmcpl_ct_instr_add
LBB0_28:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.cfi_endproc
                                        ; -- End function
	.comm	_PMC_CALLCHAIN_DEPTH_MAX,4,2    ; @PMC_CALLCHAIN_DEPTH_MAX
	.comm	_pmcstat_kernproc,8,3           ; @pmcstat_kernproc
	.comm	_pmcstat_stats,8,2              ; @pmcstat_stats
	.comm	_pmcpl_ct_callid,8,3            ; @pmcpl_ct_callid
	.comm	_pmcpl_ct_root,8,3              ; @pmcpl_ct_root
	.comm	_args,8,3                       ; @args
.subsections_via_symbols
