	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pmcc_do_list_state
_pmcc_do_list_state:                    ## @pmcc_do_list_state
	.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
	leaq	-56(%rbp), %rdi
	callq	_pmc_cpuinfo
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	_EX_OSERR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	xorl	%eax, %eax
	callq	_err
LBB0_2:
	movq	-56(%rbp), %rax
	movl	(%rax), %ebx
	movq	8(%rax), %rdi
	callq	_pmc_name_of_cputype
	movq	-56(%rbp), %rcx
	movl	16(%rcx), %ecx
	leaq	L_.str.1(%rip), %rdi
	movl	%ebx, %esi
	movq	%rax, %rdx
	xorl	%eax, %eax
	callq	_printf
	movq	__SC_CPUSET_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_sysconf
	movq	%rax, %rbx
	cmpq	$-1, %rax
	je	LBB0_4
## %bb.3:
	cmpl	$5, %ebx
	jb	LBB0_5
LBB0_4:
	movq	_EX_OSERR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.2(%rip), %rsi
	xorl	%eax, %eax
	callq	_err
LBB0_5:
	leaq	-44(%rbp), %r14
	movq	%r14, %rdi
	callq	_CPU_ZERO
	movq	%rbx, -104(%rbp)
	leaq	L_.str.3(%rip), %rdi
	leaq	-104(%rbp), %rdx
	movq	%r14, %rsi
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	callq	_sysctlbyname
	testq	%rax, %rax
	jns	LBB0_7
## %bb.6:
	leaq	-44(%rbp), %rdi
	callq	_CPU_ZERO
LBB0_7:
	movq	-56(%rbp), %rax
	movl	(%rax), %ecx
	movl	%ecx, -60(%rbp)                 ## 4-byte Spill
	testl	%ecx, %ecx
	jle	LBB0_23
## %bb.8:
	xorl	%r14d, %r14d
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_9:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_16 Depth 2
	movq	8(%rax), %rax
	movq	_PMC_CPU_INTEL_PIV@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_9 Depth=1
	movl	%ebx, %edi
	leaq	-44(%rbp), %rsi
	callq	_CPU_ISSET
	testq	%rax, %rax
	jne	LBB0_21
LBB0_11:                                ##   in Loop: Header=BB0_9 Depth=1
	movl	%ebx, %edi
	leaq	-80(%rbp), %rsi
	callq	_pmc_pmcinfo
	testq	%rax, %rax
	jns	LBB0_14
## %bb.12:                              ##   in Loop: Header=BB0_9 Depth=1
	movq	_errno@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_ENXIO@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_21
## %bb.13:                              ##   in Loop: Header=BB0_9 Depth=1
	movq	_EX_OSERR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.4(%rip), %rsi
	movl	%ebx, %edx
	xorl	%eax, %eax
	callq	_err
LBB0_14:                                ##   in Loop: Header=BB0_9 Depth=1
	leaq	L_.str.5(%rip), %rdi
	movl	%r14d, -68(%rbp)                ## 4-byte Spill
	movl	%r14d, %esi
	xorl	%eax, %eax
	callq	_printf
	movl	%ebx, -64(%rbp)                 ## 4-byte Spill
	movl	%ebx, %edi
	callq	_pmc_npmc
	movl	%eax, %ebx
	leaq	L_str(%rip), %rdi
	callq	_puts
	testl	%ebx, %ebx
	jle	LBB0_20
## %bb.15:                              ##   in Loop: Header=BB0_9 Depth=1
	movl	%ebx, %eax
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	movl	$40, %r14d
	xorl	%r13d, %r13d
	jmp	LBB0_16
	.p2align	4, 0x90
LBB0_19:                                ##   in Loop: Header=BB0_16 Depth=2
	movl	$10, %edi
	callq	_putchar
	incq	%r13
	addq	$48, %r14
	cmpq	%r13, -88(%rbp)                 ## 8-byte Folded Reload
	je	LBB0_20
LBB0_16:                                ##   Parent Loop BB0_9 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	-80(%rbp), %rax
	movq	(%rax), %rbx
	movq	-40(%rbx,%r14), %rax
	movq	%rax, -96(%rbp)                 ## 8-byte Spill
	movl	(%rbx,%r14), %edi
	callq	_pmc_name_of_class
	cmpq	$0, -8(%rbx,%r14)
	movq	%rax, %r12
	leaq	L_.str.8(%rip), %r15
	leaq	L_.str.9(%rip), %rax
	cmoveq	%rax, %r15
	movl	-16(%rbx,%r14), %edi
	callq	_pmc_name_of_disposition
	leaq	L_.str.7(%rip), %rdi
	movl	%r13d, %esi
	movq	-96(%rbp), %rdx                 ## 8-byte Reload
	movq	%r12, %rcx
	movq	%r15, %r8
	movq	%rax, %r9
	xorl	%eax, %eax
	callq	_printf
	movl	-32(%rbx,%r14), %esi
	cmpl	$-1, %esi
	je	LBB0_19
## %bb.17:                              ##   in Loop: Header=BB0_16 Depth=2
	leaq	L_.str.10(%rip), %rdi
	xorl	%eax, %eax
	callq	_printf
	movl	-20(%rbx,%r14), %edi
	callq	_pmc_name_of_event
	leaq	L_.str.11(%rip), %rdi
	movq	%rax, %rsi
	xorl	%eax, %eax
	callq	_printf
	movl	-24(%rbx,%r14), %edi
	callq	_PMC_IS_SAMPLING_MODE
	testq	%rax, %rax
	je	LBB0_19
## %bb.18:                              ##   in Loop: Header=BB0_16 Depth=2
	movl	-28(%rbx,%r14), %esi
	leaq	L_.str.12(%rip), %rdi
	xorl	%eax, %eax
	callq	_printf
	jmp	LBB0_19
	.p2align	4, 0x90
LBB0_20:                                ##   in Loop: Header=BB0_9 Depth=1
	movl	-68(%rbp), %r14d                ## 4-byte Reload
	incl	%r14d
	movq	-80(%rbp), %rdi
	callq	_free
	movl	-64(%rbp), %ebx                 ## 4-byte Reload
LBB0_21:                                ##   in Loop: Header=BB0_9 Depth=1
	incl	%ebx
	cmpl	-60(%rbp), %ebx                 ## 4-byte Folded Reload
	je	LBB0_23
## %bb.22:                              ##   in Loop: Header=BB0_9 Depth=1
	movq	-56(%rbp), %rax
	jmp	LBB0_9
LBB0_23:
	xorl	%eax, %eax
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EX_OSERR,4,2                   ## @EX_OSERR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Unable to determine CPU information"

L_.str.1:                               ## @.str.1
	.asciz	"%d %s CPUs present, with %d PMCs per CPU\n"

	.comm	__SC_CPUSET_SIZE,4,2            ## @_SC_CPUSET_SIZE
L_.str.2:                               ## @.str.2
	.asciz	"Cannot determine which CPUs are logical"

L_.str.3:                               ## @.str.3
	.asciz	"machdep.logical_cpus_mask"

	.comm	_PMC_CPU_INTEL_PIV,8,3          ## @PMC_CPU_INTEL_PIV
	.comm	_errno,8,3                      ## @errno
	.comm	_ENXIO,8,3                      ## @ENXIO
L_.str.4:                               ## @.str.4
	.asciz	"Unable to get PMC status for CPU %d"

L_.str.5:                               ## @.str.5
	.asciz	"#CPU %d:\n"

L_.str.7:                               ## @.str.7
	.asciz	" %-2d %-16s %-6s %-8s %-10s"

L_.str.8:                               ## @.str.8
	.asciz	"ENABLED"

L_.str.9:                               ## @.str.9
	.asciz	"DISABLED"

L_.str.10:                              ## @.str.10
	.asciz	" (pid %d)"

L_.str.11:                              ## @.str.11
	.asciz	" %-32s"

L_.str.12:                              ## @.str.12
	.asciz	" (reload count %jd)"

L_str:                                  ## @str
	.asciz	"#N  NAME             CLASS  STATE    ROW-DISP"

	.no_dead_strip	_pmcc_do_list_state
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pmcc_do_list_state
_pmcc_do_list_state:                    ; @pmcc_do_list_state
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #192
	.cfi_def_cfa_offset 192
	stp	x28, x27, [sp, #96]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #112]            ; 16-byte Folded Spill
	stp	x24, x23, [sp, #128]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #144]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #160]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #176]            ; 16-byte Folded Spill
	add	x29, sp, #176
	.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
	add	x0, sp, #64
	bl	_pmc_cpuinfo
Lloh0:
	adrp	x20, _EX_OSERR@GOTPAGE
Lloh1:
	ldr	x20, [x20, _EX_OSERR@GOTPAGEOFF]
	cbz	x0, LBB0_2
; %bb.1:
	ldr	w0, [x20]
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	bl	_err
LBB0_2:
	ldr	x8, [sp, #64]
	ldr	x0, [x8, #8]
	ldr	w19, [x8]
	bl	_pmc_name_of_cputype
	ldr	x8, [sp, #64]
	ldr	w8, [x8, #16]
	stp	x0, x8, [sp, #8]
	str	x19, [sp]
Lloh4:
	adrp	x0, l_.str.1@PAGE
Lloh5:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_printf
Lloh6:
	adrp	x8, __SC_CPUSET_SIZE@GOTPAGE
Lloh7:
	ldr	x8, [x8, __SC_CPUSET_SIZE@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	bl	_sysconf
	mov	x19, x0
	cmn	x0, #1
	ccmp	w19, #5, #2, ne
	b.lo	LBB0_4
; %bb.3:
	ldr	w0, [x20]
Lloh9:
	adrp	x1, l_.str.2@PAGE
Lloh10:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_err
LBB0_4:
	sub	x0, x29, #84
	bl	_CPU_ZERO
	str	x19, [sp, #80]
Lloh11:
	adrp	x0, l_.str.3@PAGE
Lloh12:
	add	x0, x0, l_.str.3@PAGEOFF
	sub	x1, x29, #84
	add	x2, sp, #80
	mov	x3, #0
	mov	w4, #0
	bl	_sysctlbyname
	tbz	x0, #63, LBB0_6
; %bb.5:
	sub	x0, x29, #84
	bl	_CPU_ZERO
LBB0_6:
	ldr	x8, [sp, #64]
	ldr	w8, [x8]
	str	w8, [sp, #52]                   ; 4-byte Folded Spill
	cmp	w8, #1
	b.lt	LBB0_19
; %bb.7:
	mov	w20, #0
	mov	w19, #0
Lloh13:
	adrp	x23, l_.str.7@PAGE
Lloh14:
	add	x23, x23, l_.str.7@PAGEOFF
	b	LBB0_10
LBB0_8:                                 ;   in Loop: Header=BB0_10 Depth=1
	ldr	x20, [sp, #56]                  ; 8-byte Folded Reload
	add	w20, w20, #1
	ldr	x0, [sp, #72]
	bl	_free
LBB0_9:                                 ;   in Loop: Header=BB0_10 Depth=1
	add	w19, w19, #1
	ldr	w8, [sp, #52]                   ; 4-byte Folded Reload
	cmp	w19, w8
	b.eq	LBB0_19
LBB0_10:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_16 Depth 2
	add	x1, sp, #72
	mov	x0, x19
	bl	_pmc_pmcinfo
	tbz	x0, #63, LBB0_13
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=1
Lloh15:
	adrp	x8, _errno@GOTPAGE
Lloh16:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh17:
	ldr	x8, [x8]
Lloh18:
	adrp	x9, _ENXIO@GOTPAGE
Lloh19:
	ldr	x9, [x9, _ENXIO@GOTPAGEOFF]
Lloh20:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_9
; %bb.12:                               ;   in Loop: Header=BB0_10 Depth=1
Lloh21:
	adrp	x8, _EX_OSERR@GOTPAGE
Lloh22:
	ldr	x8, [x8, _EX_OSERR@GOTPAGEOFF]
Lloh23:
	ldr	w0, [x8]
	str	x19, [sp]
Lloh24:
	adrp	x1, l_.str.4@PAGE
Lloh25:
	add	x1, x1, l_.str.4@PAGEOFF
	bl	_err
LBB0_13:                                ;   in Loop: Header=BB0_10 Depth=1
	str	x20, [sp, #56]                  ; 8-byte Folded Spill
	str	x20, [sp]
Lloh26:
	adrp	x0, l_.str.5@PAGE
Lloh27:
	add	x0, x0, l_.str.5@PAGEOFF
	bl	_printf
	mov	x0, x19
	bl	_pmc_npmc
	mov	x27, x0
Lloh28:
	adrp	x0, l_str@PAGE
Lloh29:
	add	x0, x0, l_str@PAGEOFF
	bl	_puts
	cmp	w27, #1
	b.lt	LBB0_8
; %bb.14:                               ;   in Loop: Header=BB0_10 Depth=1
	mov	x28, #0
	mov	w20, #0
	mov	w8, #48
	umull	x26, w27, w8
	b	LBB0_16
LBB0_15:                                ;   in Loop: Header=BB0_16 Depth=2
	mov	w0, #10
	bl	_putchar
	add	w20, w20, #1
	add	x28, x28, #48
	cmp	x26, x28
	b.eq	LBB0_8
LBB0_16:                                ;   Parent Loop BB0_10 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x8, [sp, #72]
	ldr	x24, [x8]
	add	x25, x24, x28
	ldr	x21, [x25]
	ldr	w0, [x25, #40]
	bl	_pmc_name_of_class
	mov	x27, x0
	ldr	x8, [x25, #32]
	cmp	x8, #0
Lloh30:
	adrp	x8, l_.str.8@PAGE
Lloh31:
	add	x8, x8, l_.str.8@PAGEOFF
Lloh32:
	adrp	x9, l_.str.9@PAGE
Lloh33:
	add	x9, x9, l_.str.9@PAGEOFF
	csel	x22, x9, x8, eq
	ldr	w0, [x25, #24]
	bl	_pmc_name_of_disposition
	stp	x22, x0, [sp, #24]
	stp	x21, x27, [sp, #8]
	str	x20, [sp]
	mov	x0, x23
	bl	_printf
	ldr	w8, [x25, #8]
	cmn	w8, #1
	b.eq	LBB0_15
; %bb.17:                               ;   in Loop: Header=BB0_16 Depth=2
	str	x8, [sp]
Lloh34:
	adrp	x0, l_.str.10@PAGE
Lloh35:
	add	x0, x0, l_.str.10@PAGEOFF
	bl	_printf
	ldr	w0, [x25, #20]
	bl	_pmc_name_of_event
	str	x0, [sp]
Lloh36:
	adrp	x0, l_.str.11@PAGE
Lloh37:
	add	x0, x0, l_.str.11@PAGEOFF
	bl	_printf
	ldr	w0, [x25, #16]
	bl	_PMC_IS_SAMPLING_MODE
	cbz	x0, LBB0_15
; %bb.18:                               ;   in Loop: Header=BB0_16 Depth=2
	add	x8, x24, x28
	ldr	w8, [x8, #12]
	str	x8, [sp]
Lloh38:
	adrp	x0, l_.str.12@PAGE
Lloh39:
	add	x0, x0, l_.str.12@PAGEOFF
	bl	_printf
	b	LBB0_15
LBB0_19:
	mov	w0, #0
	ldp	x29, x30, [sp, #176]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #160]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #144]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #128]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #112]            ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #96]             ; 16-byte Folded Reload
	add	sp, sp, #192
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpAdd	Lloh32, Lloh33
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpAdd	Lloh36, Lloh37
	.loh AdrpAdd	Lloh34, Lloh35
	.loh AdrpAdd	Lloh38, Lloh39
	.cfi_endproc
                                        ; -- End function
	.comm	_EX_OSERR,4,2                   ; @EX_OSERR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Unable to determine CPU information"

l_.str.1:                               ; @.str.1
	.asciz	"%d %s CPUs present, with %d PMCs per CPU\n"

	.comm	__SC_CPUSET_SIZE,4,2            ; @_SC_CPUSET_SIZE
l_.str.2:                               ; @.str.2
	.asciz	"Cannot determine which CPUs are logical"

l_.str.3:                               ; @.str.3
	.asciz	"machdep.logical_cpus_mask"

	.comm	_errno,8,3                      ; @errno
	.comm	_ENXIO,8,3                      ; @ENXIO
l_.str.4:                               ; @.str.4
	.asciz	"Unable to get PMC status for CPU %d"

l_.str.5:                               ; @.str.5
	.asciz	"#CPU %d:\n"

l_.str.7:                               ; @.str.7
	.asciz	" %-2d %-16s %-6s %-8s %-10s"

l_.str.8:                               ; @.str.8
	.asciz	"ENABLED"

l_.str.9:                               ; @.str.9
	.asciz	"DISABLED"

l_.str.10:                              ; @.str.10
	.asciz	" (pid %d)"

l_.str.11:                              ; @.str.11
	.asciz	" %-32s"

l_.str.12:                              ; @.str.12
	.asciz	" (reload count %jd)"

	.comm	_PMC_CPU_INTEL_PIV,8,3          ; @PMC_CPU_INTEL_PIV
l_str:                                  ; @str
	.asciz	"#N  NAME             CLASS  STATE    ROW-DISP"

	.no_dead_strip	_pmcc_do_list_state
.subsections_via_symbols
