	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pmcpl_gmon_process             ## -- Begin function pmcpl_gmon_process
	.p2align	4, 0x90
_pmcpl_gmon_process:                    ## @pmcpl_gmon_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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r14
	movq	%rsi, %r15
	testl	%r8d, %r8d
	jne	LBB0_2
## %bb.1:
	movq	_pmcstat_kernproc@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
LBB0_2:
	movq	(%r14), %rsi
	callq	_pmcstat_process_find_map
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	movq	%rax, %r12
	movq	(%r14), %rax
	xorl	%edi, %edi
	cmpq	(%r12), %rax
	jl	LBB0_6
## %bb.5:
	xorl	%edi, %edi
	cmpq	8(%r12), %rax
	setl	%dil
LBB0_6:
	callq	_assert
	movq	16(%r12), %rbx
	movl	(%r15), %r13d
	movq	(%rbx), %rax
	movq	_PMCSTAT_IMAGE_UNKNOWN@GOTPCREL(%rip), %r15
	movq	(%r15), %rcx
	cmpq	%rcx, %rax
	jne	LBB0_8
## %bb.7:
	movq	_args@GOTPCREL(%rip), %rsi
	movq	%rbx, %rdi
	callq	_pmcstat_image_determine_type
	movq	(%rbx), %rax
	movq	(%r15), %rcx
LBB0_8:
	xorl	%edi, %edi
	cmpq	%rcx, %rax
	setne	%dil
	callq	_assert
	movq	(%rbx), %rax
	movq	_PMCSTAT_IMAGE_INDETERMINABLE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_10
## %bb.9:
	movq	_pmcstat_stats@GOTPCREL(%rip), %rax
	incl	(%rax)
	jmp	LBB0_28
LBB0_3:
	movq	_pmcstat_stats@GOTPCREL(%rip), %rax
	incl	4(%rax)
	jmp	LBB0_28
LBB0_10:
	movq	%rbx, %rdi
	movl	%r13d, %esi
	callq	_pmcstat_image_find_gmonfile
	movq	%rax, %r15
	testq	%rax, %rax
	jne	LBB0_16
## %bb.11:
	movq	_hc_sz@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	jne	LBB0_13
## %bb.12:
	movl	$8, (%rax)
LBB0_13:
	movl	$1, %edi
	movl	$48, %esi
	callq	_calloc
	movq	%rax, %r15
	testq	%rax, %rax
	jne	LBB0_15
## %bb.14:
	movq	_EX_OSERR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_err
LBB0_15:
	movq	$0, 24(%r15)
	movq	_args@GOTPCREL(%rip), %rax
	movl	4(%rax), %edi
	movq	%rbx, %rsi
	movl	%r13d, %edx
	callq	_pmcstat_gmon_create_name
	movl	%eax, 44(%r15)
	movl	%r13d, 40(%r15)
	movq	8(%rbx), %rax
	xorl	%edi, %edi
	cmpq	16(%rbx), %rax
	setg	%dil
	callq	_assert
	movq	8(%rbx), %rdi
	subq	16(%rbx), %rdi
	movq	_FUNCTION_ALIGNMENT@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	callq	_howmany
	movl	%eax, (%r15)
	movq	_hc_sz@GOTPCREL(%rip), %rcx
	imull	(%rcx), %eax
	addl	$4, %eax
	movl	%eax, 4(%r15)
	movq	$0, 16(%r15)
	movq	$0, 32(%r15)
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_pmcstat_gmon_create_file
	addq	$24, %rbx
	movq	_pgf_next@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_LIST_INSERT_HEAD
LBB0_16:
	movq	24(%r15), %rax
	testq	%rax, %rax
	jne	LBB0_18
## %bb.17:
	movq	%r15, %rdi
	callq	_pmcstat_gmon_map_file
	movq	24(%r15), %rax
LBB0_18:
	xorl	%edi, %edi
	testq	%rax, %rax
	setne	%dil
	callq	_assert
	movq	(%r14), %rax
	subq	(%r12), %rax
	movq	_FUNCTION_ALIGNMENT@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	%rax, %rdx
	orq	%rcx, %rdx
	shrq	$32, %rdx
	je	LBB0_19
## %bb.20:
	cqto
	idivq	%rcx
	movq	%rax, %rbx
	jmp	LBB0_21
LBB0_19:
                                        ## kill: def $eax killed $eax killed $rax
	xorl	%edx, %edx
	divl	%ecx
	movl	%eax, %ebx
LBB0_21:
	movslq	(%r15), %rax
	xorl	%edi, %edi
	cmpq	%rax, %rbx
	setl	%dil
	callq	_assert
	movq	_args@GOTPCREL(%rip), %rdx
	movq	_FLAG_DO_WIDE_GPROF_HC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	24(%r15), %rax
	movq	4(%rax,%rbx,8), %rcx
	testl	%esi, (%rdx)
	je	LBB0_25
## %bb.22:
	movq	_WIDEHISTCOUNTER_MAX@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jge	LBB0_26
LBB0_24:
	incq	%rcx
	movq	%rcx, 4(%rax,%rbx,8)
	jmp	LBB0_27
LBB0_25:
	movq	_HISTCOUNTER_MAX@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jl	LBB0_24
LBB0_26:
	movl	$1, 8(%r15)
LBB0_27:
	incq	16(%r15)
LBB0_28:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_pmcstat_kernproc,8,3           ## @pmcstat_kernproc
	.comm	_pmcstat_stats,8,2              ## @pmcstat_stats
	.comm	_PMCSTAT_IMAGE_UNKNOWN,8,3      ## @PMCSTAT_IMAGE_UNKNOWN
	.comm	_args,8,2                       ## @args
	.comm	_PMCSTAT_IMAGE_INDETERMINABLE,8,3 ## @PMCSTAT_IMAGE_INDETERMINABLE
	.comm	_hc_sz,4,2                      ## @hc_sz
	.comm	_FLAG_DO_WIDE_GPROF_HC,4,2      ## @FLAG_DO_WIDE_GPROF_HC
	.comm	_EX_OSERR,4,2                   ## @EX_OSERR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"ERROR:"

	.comm	_FUNCTION_ALIGNMENT,8,3         ## @FUNCTION_ALIGNMENT
	.comm	_pgf_next,4,2                   ## @pgf_next
	.comm	_WIDEHISTCOUNTER_MAX,8,3        ## @WIDEHISTCOUNTER_MAX
	.comm	_HISTCOUNTER_MAX,8,3            ## @HISTCOUNTER_MAX
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pmcpl_gmon_process             ; -- Begin function pmcpl_gmon_process
	.p2align	2
_pmcpl_gmon_process:                    ; @pmcpl_gmon_process
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x19, x3
	mov	x21, x1
Lloh0:
	adrp	x8, _pmcstat_kernproc@GOTPAGE
Lloh1:
	ldr	x8, [x8, _pmcstat_kernproc@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	w4, #0
	csel	x0, x8, x0, eq
	ldr	x1, [x3]
	bl	_pmcstat_process_find_map
	cbz	x0, LBB0_3
; %bb.1:
	mov	x20, x0
	ldr	x8, [x19]
	ldr	x9, [x0]
	cmp	x8, x9
	b.ge	LBB0_4
; %bb.2:
	mov	w0, #0
	b	LBB0_5
LBB0_3:
Lloh3:
	adrp	x8, _pmcstat_stats@GOTPAGE
Lloh4:
	ldr	x8, [x8, _pmcstat_stats@GOTPAGEOFF]
	ldr	w9, [x8, #4]
	add	w9, w9, #1
	str	w9, [x8, #4]
	b	LBB0_24
LBB0_4:
	ldr	x9, [x20, #8]
	cmp	x8, x9
	cset	w0, lt
LBB0_5:
	bl	_assert
	ldr	x22, [x20, #16]
	ldr	w23, [x21]
	ldr	x8, [x22]
Lloh5:
	adrp	x21, _PMCSTAT_IMAGE_UNKNOWN@GOTPAGE
Lloh6:
	ldr	x21, [x21, _PMCSTAT_IMAGE_UNKNOWN@GOTPAGEOFF]
	ldr	x9, [x21]
	cmp	x8, x9
	b.ne	LBB0_7
; %bb.6:
Lloh7:
	adrp	x1, _args@GOTPAGE
Lloh8:
	ldr	x1, [x1, _args@GOTPAGEOFF]
	mov	x0, x22
	bl	_pmcstat_image_determine_type
	ldr	x8, [x22]
	ldr	x9, [x21]
LBB0_7:
	cmp	x8, x9
	cset	w0, ne
	bl	_assert
	ldr	x8, [x22]
Lloh9:
	adrp	x9, _PMCSTAT_IMAGE_INDETERMINABLE@GOTPAGE
Lloh10:
	ldr	x9, [x9, _PMCSTAT_IMAGE_INDETERMINABLE@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_9
; %bb.8:
Lloh12:
	adrp	x8, _pmcstat_stats@GOTPAGE
Lloh13:
	ldr	x8, [x8, _pmcstat_stats@GOTPAGEOFF]
	ldr	w9, [x8]
	add	w9, w9, #1
	str	w9, [x8]
	b	LBB0_24
LBB0_9:
	mov	x0, x22
	mov	x1, x23
	bl	_pmcstat_image_find_gmonfile
	mov	x21, x0
Lloh14:
	adrp	x24, _args@GOTPAGE
Lloh15:
	ldr	x24, [x24, _args@GOTPAGEOFF]
Lloh16:
	adrp	x25, _FUNCTION_ALIGNMENT@GOTPAGE
Lloh17:
	ldr	x25, [x25, _FUNCTION_ALIGNMENT@GOTPAGEOFF]
	cbz	x0, LBB0_14
; %bb.10:
	ldr	x8, [x21, #24]
	cbnz	x8, LBB0_12
LBB0_11:
	mov	x0, x21
	bl	_pmcstat_gmon_map_file
	ldr	x8, [x21, #24]
LBB0_12:
	cmp	x8, #0
	cset	w0, ne
	bl	_assert
	ldr	x8, [x19]
	ldr	x9, [x20]
	sub	x8, x8, x9
	ldr	x9, [x25]
	sdiv	x19, x8, x9
	ldrsw	x8, [x21]
	cmp	x19, x8
	cset	w0, lt
	bl	_assert
	ldr	w10, [x24]
Lloh18:
	adrp	x8, _FLAG_DO_WIDE_GPROF_HC@GOTPAGE
Lloh19:
	ldr	x8, [x8, _FLAG_DO_WIDE_GPROF_HC@GOTPAGEOFF]
Lloh20:
	ldr	w11, [x8]
	ldr	x8, [x21, #24]
	add	x8, x8, #4
	ldr	x9, [x8, x19, lsl #3]
	tst	w11, w10
	b.eq	LBB0_19
; %bb.13:
Lloh21:
	adrp	x10, _WIDEHISTCOUNTER_MAX@GOTPAGE
Lloh22:
	ldr	x10, [x10, _WIDEHISTCOUNTER_MAX@GOTPAGEOFF]
	b	LBB0_20
LBB0_14:
Lloh23:
	adrp	x26, _hc_sz@GOTPAGE
Lloh24:
	ldr	x26, [x26, _hc_sz@GOTPAGEOFF]
	ldr	w8, [x26]
	cbnz	w8, LBB0_16
; %bb.15:
	mov	w8, #8
	str	w8, [x26]
LBB0_16:
	mov	w0, #1
	mov	w1, #48
	bl	_calloc
	mov	x21, x0
	cbnz	x0, LBB0_18
; %bb.17:
Lloh25:
	adrp	x8, _EX_OSERR@GOTPAGE
Lloh26:
	ldr	x8, [x8, _EX_OSERR@GOTPAGEOFF]
Lloh27:
	ldr	w0, [x8]
Lloh28:
	adrp	x1, l_.str@PAGE
Lloh29:
	add	x1, x1, l_.str@PAGEOFF
	bl	_err
LBB0_18:
	str	xzr, [x21, #24]
	ldr	w0, [x24, #4]
	mov	x1, x22
	mov	x2, x23
	bl	_pmcstat_gmon_create_name
	stp	w23, w0, [x21, #40]
	ldp	x8, x9, [x22, #8]
	cmp	x8, x9
	cset	w0, gt
	bl	_assert
	ldp	x8, x9, [x22, #8]
	sub	x0, x8, x9
	ldr	x1, [x25]
	bl	_howmany
	ldr	w8, [x26]
	orr	w9, wzr, #0x4
	madd	w8, w8, w0, w9
	stp	w0, w8, [x21]
	str	xzr, [x21, #16]
	str	xzr, [x21, #32]
	mov	x0, x21
	mov	x1, x22
	bl	_pmcstat_gmon_create_file
	add	x0, x22, #24
Lloh30:
	adrp	x8, _pgf_next@GOTPAGE
Lloh31:
	ldr	x8, [x8, _pgf_next@GOTPAGEOFF]
Lloh32:
	ldr	w2, [x8]
	mov	x1, x21
	bl	_LIST_INSERT_HEAD
	ldr	x8, [x21, #24]
	cbnz	x8, LBB0_12
	b	LBB0_11
LBB0_19:
Lloh33:
	adrp	x10, _HISTCOUNTER_MAX@GOTPAGE
Lloh34:
	ldr	x10, [x10, _HISTCOUNTER_MAX@GOTPAGEOFF]
LBB0_20:
	ldr	x10, [x10]
	cmp	x9, x10
	b.ge	LBB0_22
; %bb.21:
	add	x9, x9, #1
	str	x9, [x8, x19, lsl #3]
	b	LBB0_23
LBB0_22:
	mov	w8, #1
	str	w8, [x21, #8]
LBB0_23:
	ldr	x8, [x21, #16]
	add	x8, x8, #1
	str	x8, [x21, #16]
LBB0_24:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGot	Lloh33, Lloh34
	.cfi_endproc
                                        ; -- End function
	.comm	_pmcstat_kernproc,8,3           ; @pmcstat_kernproc
	.comm	_pmcstat_stats,8,2              ; @pmcstat_stats
	.comm	_PMCSTAT_IMAGE_UNKNOWN,8,3      ; @PMCSTAT_IMAGE_UNKNOWN
	.comm	_args,8,2                       ; @args
	.comm	_PMCSTAT_IMAGE_INDETERMINABLE,8,3 ; @PMCSTAT_IMAGE_INDETERMINABLE
	.comm	_hc_sz,4,2                      ; @hc_sz
	.comm	_FLAG_DO_WIDE_GPROF_HC,4,2      ; @FLAG_DO_WIDE_GPROF_HC
	.comm	_EX_OSERR,4,2                   ; @EX_OSERR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ERROR:"

	.comm	_FUNCTION_ALIGNMENT,8,3         ; @FUNCTION_ALIGNMENT
	.comm	_pgf_next,4,2                   ; @pgf_next
	.comm	_WIDEHISTCOUNTER_MAX,8,3        ; @WIDEHISTCOUNTER_MAX
	.comm	_HISTCOUNTER_MAX,8,3            ; @HISTCOUNTER_MAX
.subsections_via_symbols
