	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pmcpl_ct_node_dumptop
_pmcpl_ct_node_dumptop:                 ## @pmcpl_ct_node_dumptop
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_PMCPL_PCT_GREY@GOTPCREL(%rip), %r10
	movq	(%r10), %rbx
	xorl	%eax, %eax
	cmpq	%rbx, (%rsi)
	je	LBB0_27
## %bb.1:
	movq	%rsi, %r13
	movq	_PMCPL_CT_MAXCOL@GOTPCREL(%rip), %r9
	movq	_pmcpl_ct_topscreen@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movslq	%ecx, %rsi
	movq	(%rax,%rsi,8), %r11
	movslq	(%r8), %rax
	cmpl	%ecx, (%r9)
	jle	LBB0_2
## %bb.3:
	movq	%rsi, -72(%rbp)                 ## 8-byte Spill
	movl	%edi, -44(%rbp)                 ## 4-byte Spill
	movq	%rdx, -64(%rbp)                 ## 8-byte Spill
	movq	%r8, -56(%rbp)                  ## 8-byte Spill
	movl	%ecx, -48(%rbp)                 ## 4-byte Spill
	movq	%r13, (%r11,%rax,8)
	cmpl	$0, 8(%r13)
	jle	LBB0_11
## %bb.4:
	movl	$8, %r14d
	movl	$1, %r12d
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	16(%r13), %r15
	movq	-8(%r15,%r14), %rcx
	cmpq	%rbx, (%rcx)
	je	LBB0_8
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	addq	%r14, %r15
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	movq	%r15, %rsi
	movq	%r10, %rbx
	callq	_PMCPL_CT_SAMPLE
	movq	%rbx, %r10
	testq	%rax, %rax
	je	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=1
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	movq	%r15, %rsi
	callq	_PMCPL_CT_SAMPLEP
	movq	%rbx, %r10
	movq	_pmcstat_threshold@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jg	LBB0_10
LBB0_8:                                 ##   in Loop: Header=BB0_5 Depth=1
	movslq	8(%r13), %rax
	cmpq	%rax, %r12
	jge	LBB0_11
## %bb.9:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	(%r10), %rbx
	addq	$16, %r14
	incq	%r12
	jmp	LBB0_5
LBB0_2:
	movq	$0, (%r11,%rax,8)
	movl	$1, %eax
	jmp	LBB0_27
LBB0_10:
	cmpl	$0, 8(%r13)
	je	LBB0_11
## %bb.19:
	movq	(%r10), %rax
	movq	%rax, (%r13)
	movl	-48(%rbp), %r12d                ## 4-byte Reload
	movl	-44(%rbp), %ebx                 ## 4-byte Reload
	jle	LBB0_26
## %bb.20:
	incl	%r12d
	movl	$8, %r14d
	xorl	%r15d, %r15d
	jmp	LBB0_21
	.p2align	4, 0x90
LBB0_25:                                ##   in Loop: Header=BB0_21 Depth=1
	incq	%r15
	movslq	8(%r13), %rax
	addq	$16, %r14
	cmpq	%rax, %r15
	jge	LBB0_26
LBB0_21:                                ## =>This Inner Loop Header: Depth=1
	movq	16(%r13), %rsi
	addq	%r14, %rsi
	movl	%ebx, %edi
	callq	_PMCPL_CT_SAMPLE
	testq	%rax, %rax
	je	LBB0_25
## %bb.22:                              ##   in Loop: Header=BB0_21 Depth=1
	movq	16(%r13), %rsi
	addq	%r14, %rsi
	movl	%ebx, %edi
	callq	_PMCPL_CT_SAMPLEP
	movq	_pmcstat_threshold@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jle	LBB0_25
## %bb.23:                              ##   in Loop: Header=BB0_21 Depth=1
	movq	16(%r13), %rax
	movq	-8(%rax,%r14), %rsi
	movl	%ebx, %edi
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	movl	%r12d, %ecx
	movq	-56(%rbp), %r8                  ## 8-byte Reload
	callq	_pmcpl_ct_node_dumptop
	testl	%eax, %eax
	je	LBB0_25
## %bb.24:
	movq	_PMCPL_PCT_BLACK@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%r13)
	movl	$1, %eax
	jmp	LBB0_27
LBB0_11:
	movq	_pmcpl_ct_topscreen@GOTPCREL(%rip), %r10
	movq	(%r10), %rax
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	movq	8(%rax,%rcx,8), %rcx
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	movslq	(%rsi), %r9
	movq	$0, (%rcx,%r9,8)
	movq	_PMCPL_CT_MAXLINE@GOTPCREL(%rip), %rcx
	movl	$1, %eax
	cmpl	(%rcx), %r9d
	movl	-48(%rbp), %edx                 ## 4-byte Reload
	jge	LBB0_27
## %bb.12:
	leal	1(%r9), %ecx
	movl	%ecx, (%rsi)
	movl	$0, %eax
	testl	%edx, %edx
	jle	LBB0_27
## %bb.13:
	movslq	%ecx, %rcx
	movl	%edx, %r8d
	leaq	-1(%r8), %rsi
	movl	%r8d, %edx
	andl	$3, %edx
	xorl	%eax, %eax
	cmpq	$3, %rsi
	jae	LBB0_15
## %bb.14:
	xorl	%esi, %esi
	jmp	LBB0_17
LBB0_15:
	andl	$-4, %r8d
	xorl	%esi, %esi
	.p2align	4, 0x90
LBB0_16:                                ## =>This Inner Loop Header: Depth=1
	movq	(%r10), %rbx
	movq	(%rbx,%rsi,8), %rbx
	movq	(%rbx,%r9,8), %rdi
	movq	%rdi, (%rbx,%rcx,8)
	movq	(%r10), %rdi
	movq	8(%rdi,%rsi,8), %rdi
	movq	(%rdi,%r9,8), %rbx
	movq	%rbx, (%rdi,%rcx,8)
	movq	(%r10), %rdi
	movq	16(%rdi,%rsi,8), %rdi
	movq	(%rdi,%r9,8), %rbx
	movq	%rbx, (%rdi,%rcx,8)
	movq	(%r10), %rdi
	movq	24(%rdi,%rsi,8), %rdi
	movq	(%rdi,%r9,8), %rbx
	movq	%rbx, (%rdi,%rcx,8)
	addq	$4, %rsi
	cmpq	%rsi, %r8
	jne	LBB0_16
LBB0_17:
	testq	%rdx, %rdx
	je	LBB0_27
	.p2align	4, 0x90
LBB0_18:                                ## =>This Inner Loop Header: Depth=1
	movq	(%r10), %rdi
	movq	(%rdi,%rsi,8), %rdi
	movq	(%rdi,%r9,8), %rbx
	movq	%rbx, (%rdi,%rcx,8)
	incq	%rsi
	decq	%rdx
	jne	LBB0_18
	jmp	LBB0_27
LBB0_26:
	movq	_PMCPL_PCT_BLACK@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%r13)
	xorl	%eax, %eax
LBB0_27:
                                        ## kill: def $eax killed $eax killed $rax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PMCPL_PCT_GREY,8,3             ## @PMCPL_PCT_GREY
	.comm	_PMCPL_CT_MAXCOL,4,2            ## @PMCPL_CT_MAXCOL
	.comm	_pmcpl_ct_topscreen,8,3         ## @pmcpl_ct_topscreen
	.comm	_pmcstat_threshold,8,3          ## @pmcstat_threshold
	.comm	_PMCPL_CT_MAXLINE,4,2           ## @PMCPL_CT_MAXLINE
	.comm	_PMCPL_PCT_BLACK,8,3            ## @PMCPL_PCT_BLACK
	.no_dead_strip	_pmcpl_ct_node_dumptop
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pmcpl_ct_node_dumptop
_pmcpl_ct_node_dumptop:                 ; @pmcpl_ct_node_dumptop
	.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
	ldr	x9, [x1]
Lloh0:
	adrp	x27, _PMCPL_PCT_GREY@GOTPAGE
Lloh1:
	ldr	x27, [x27, _PMCPL_PCT_GREY@GOTPAGEOFF]
	ldr	x8, [x27]
	cmp	x9, x8
	b.ne	LBB0_2
LBB0_1:
	mov	w0, #0
	b	LBB0_24
LBB0_2:
	mov	x19, x4
	mov	x23, x3
Lloh2:
	adrp	x9, _PMCPL_CT_MAXCOL@GOTPAGE
Lloh3:
	ldr	x9, [x9, _PMCPL_CT_MAXCOL@GOTPAGEOFF]
Lloh4:
	adrp	x26, _pmcpl_ct_topscreen@GOTPAGE
Lloh5:
	ldr	x26, [x26, _pmcpl_ct_topscreen@GOTPAGEOFF]
Lloh6:
	ldr	w11, [x9]
	ldr	x9, [x26]
	ldr	x9, [x9, w3, sxtw #3]
	ldrsw	x10, [x4]
	cmp	w11, w3
	b.le	LBB0_10
; %bb.3:
	mov	x20, x1
	str	x1, [x9, x10, lsl #3]
	ldr	w9, [x1, #8]
	cmp	w9, #1
	b.lt	LBB0_19
; %bb.4:
	mov	x21, x2
	mov	x22, x0
	mov	x28, #0
	mov	w25, #1
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x20, #16]
	ldr	x10, [x9, x28]
	ldr	x10, [x10]
	cmp	x10, x8
	b.eq	LBB0_8
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	add	x8, x9, x28
	add	x24, x8, #8
	mov	x0, x22
	mov	x1, x24
	bl	_PMCPL_CT_SAMPLE
	cbz	x0, LBB0_8
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x22
	mov	x1, x24
	bl	_PMCPL_CT_SAMPLEP
Lloh7:
	adrp	x8, _pmcstat_threshold@GOTPAGE
Lloh8:
	ldr	x8, [x8, _pmcstat_threshold@GOTPAGEOFF]
Lloh9:
	ldr	x8, [x8]
	cmp	x0, x8
	b.gt	LBB0_11
LBB0_8:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldrsw	x8, [x20, #8]
	cmp	x25, x8
	b.ge	LBB0_19
; %bb.9:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [x27]
	add	x28, x28, #16
	add	x25, x25, #1
	b	LBB0_5
LBB0_10:
	str	xzr, [x9, x10, lsl #3]
	mov	w0, #1
	b	LBB0_24
LBB0_11:
	ldr	w8, [x20, #8]
	cbz	w8, LBB0_19
; %bb.12:
	ldr	x9, [x27]
	str	x9, [x20]
	cmp	w8, #1
	b.lt	LBB0_25
; %bb.13:
	mov	x24, #0
	mov	x26, #0
	add	w23, w23, #1
	b	LBB0_15
LBB0_14:                                ;   in Loop: Header=BB0_15 Depth=1
	add	x26, x26, #1
	ldrsw	x8, [x20, #8]
	add	x24, x24, #16
	cmp	x26, x8
	b.ge	LBB0_25
LBB0_15:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x20, #16]
	add	x8, x8, x24
	add	x1, x8, #8
	mov	x0, x22
	bl	_PMCPL_CT_SAMPLE
	cbz	x0, LBB0_14
; %bb.16:                               ;   in Loop: Header=BB0_15 Depth=1
	ldr	x8, [x20, #16]
	add	x8, x8, x24
	add	x1, x8, #8
	mov	x0, x22
	bl	_PMCPL_CT_SAMPLEP
Lloh10:
	adrp	x8, _pmcstat_threshold@GOTPAGE
Lloh11:
	ldr	x8, [x8, _pmcstat_threshold@GOTPAGEOFF]
Lloh12:
	ldr	x8, [x8]
	cmp	x0, x8
	b.le	LBB0_14
; %bb.17:                               ;   in Loop: Header=BB0_15 Depth=1
	ldr	x8, [x20, #16]
	ldr	x1, [x8, x24]
	mov	x0, x22
	mov	x2, x21
	mov	x3, x23
	mov	x4, x19
	bl	_pmcpl_ct_node_dumptop
	cbz	w0, LBB0_14
; %bb.18:
Lloh13:
	adrp	x8, _PMCPL_PCT_BLACK@GOTPAGE
Lloh14:
	ldr	x8, [x8, _PMCPL_PCT_BLACK@GOTPAGEOFF]
Lloh15:
	ldr	x8, [x8]
	str	x8, [x20]
	mov	w0, #1
	b	LBB0_24
LBB0_19:
	sxtw	x8, w23
	ldr	x9, [x26]
	add	x8, x9, x8, lsl #3
	ldr	x9, [x8, #8]
	ldrsw	x8, [x19]
	str	xzr, [x9, x8, lsl #3]
Lloh16:
	adrp	x9, _PMCPL_CT_MAXLINE@GOTPAGE
Lloh17:
	ldr	x9, [x9, _PMCPL_CT_MAXLINE@GOTPAGEOFF]
Lloh18:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ge	LBB0_23
; %bb.20:
	add	w10, w8, #1
	str	w10, [x19]
	cmp	w23, #1
	b.lt	LBB0_1
; %bb.21:
	mov	x9, #0
	sxtw	x10, w10
	mov	w11, w23
	lsl	x11, x11, #3
LBB0_22:                                ; =>This Inner Loop Header: Depth=1
	ldr	x12, [x26]
	ldr	x12, [x12, x9]
	ldr	x13, [x12, x8, lsl #3]
	str	x13, [x12, x10, lsl #3]
	add	x9, x9, #8
	cmp	x11, x9
	b.ne	LBB0_22
	b	LBB0_1
LBB0_23:
	mov	w0, #1
LBB0_24:
	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_25:
	mov	w0, #0
Lloh19:
	adrp	x8, _PMCPL_PCT_BLACK@GOTPAGE
Lloh20:
	ldr	x8, [x8, _PMCPL_PCT_BLACK@GOTPAGEOFF]
Lloh21:
	ldr	x8, [x8]
	str	x8, [x20]
	b	LBB0_24
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_PMCPL_PCT_GREY,8,3             ; @PMCPL_PCT_GREY
	.comm	_PMCPL_CT_MAXCOL,4,2            ; @PMCPL_CT_MAXCOL
	.comm	_pmcpl_ct_topscreen,8,3         ; @pmcpl_ct_topscreen
	.comm	_pmcstat_threshold,8,3          ; @pmcstat_threshold
	.comm	_PMCPL_CT_MAXLINE,4,2           ; @PMCPL_CT_MAXLINE
	.comm	_PMCPL_PCT_BLACK,8,3            ; @PMCPL_PCT_BLACK
	.no_dead_strip	_pmcpl_ct_node_dumptop
.subsections_via_symbols
