	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function read_PMC
_read_PMC:                              ## @read_PMC
	.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	_EL_SVP@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_rPMC@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	_ssp@GOTPCREL(%rip), %r13
	movq	(%r13), %rax
	movq	_SSP_PMC_HAVE_ADDR@GOTPCREL(%rip), %r12
	movl	(%r12), %r15d
	andl	(%rax), %r15d
	xorl	%eax, %eax
	callq	_GET_PPC_OFFS
	testl	%r15d, %r15d
	movl	$97, %edx
	movl	$109, %ecx
	cmovel	%edx, %ecx
	leaq	L_.str(%rip), %rsi
	movl	%ebx, %edi
	movl	%r14d, %edx
	movl	%eax, %r8d
	callq	_elprintf
	movq	(%r13), %rax
	movl	(%rax), %ecx
	movl	(%r12), %edx
	testl	%ecx, %edx
	je	LBB0_2
## %bb.1:
	movq	_SSP_PMC_SET@GOTPCREL(%rip), %rdx
	orl	(%rdx), %ecx
	movl	%ecx, (%rax)
	movl	(%r12), %edx
	notl	%edx
	andl	%ecx, %edx
	movl	%edx, (%rax)
	movq	_rPMC@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, %ecx
	shll	$4, %ecx
	movzwl	%cx, %ecx
	shrl	$4, %eax
	andl	$15, %eax
	orl	%ecx, %eax
	jmp	LBB0_3
LBB0_2:
	orl	%ecx, %edx
	movl	%edx, (%rax)
	movq	_rPMC@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_3:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EL_SVP,4,2                     ## @EL_SVP
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"PMC r a %04x (st %c) @ %04x"

	.comm	_rPMC,4,2                       ## @rPMC
	.comm	_ssp,8,3                        ## @ssp
	.comm	_SSP_PMC_HAVE_ADDR,4,2          ## @SSP_PMC_HAVE_ADDR
	.comm	_SSP_PMC_SET,4,2                ## @SSP_PMC_SET
	.no_dead_strip	_read_PMC
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function read_PMC
_read_PMC:                              ; @read_PMC
	.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
Lloh0:
	adrp	x8, _EL_SVP@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EL_SVP@GOTPAGEOFF]
Lloh2:
	ldr	w19, [x8]
Lloh3:
	adrp	x21, _rPMC@GOTPAGE
Lloh4:
	ldr	x21, [x21, _rPMC@GOTPAGEOFF]
Lloh5:
	adrp	x23, _ssp@GOTPAGE
Lloh6:
	ldr	x23, [x23, _ssp@GOTPAGEOFF]
	ldr	w20, [x21]
	ldr	x8, [x23]
	ldr	w24, [x8]
Lloh7:
	adrp	x22, _SSP_PMC_HAVE_ADDR@GOTPAGE
Lloh8:
	ldr	x22, [x22, _SSP_PMC_HAVE_ADDR@GOTPAGEOFF]
	ldr	w25, [x22]
	bl	_GET_PPC_OFFS
	mov	x4, x0
	tst	w25, w24
	mov	w8, #109
	mov	w9, #97
	csel	w3, w9, w8, eq
Lloh9:
	adrp	x1, l_.str@PAGE
Lloh10:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	mov	x2, x20
	bl	_elprintf
	ldr	x8, [x23]
	ldr	w9, [x8]
	ldr	w10, [x22]
	tst	w10, w9
	b.eq	LBB0_2
; %bb.1:
Lloh11:
	adrp	x10, _SSP_PMC_SET@GOTPAGE
Lloh12:
	ldr	x10, [x10, _SSP_PMC_SET@GOTPAGEOFF]
Lloh13:
	ldr	w10, [x10]
	orr	w9, w10, w9
	str	w9, [x8]
	ldr	w10, [x22]
	bic	w9, w9, w10
	str	w9, [x8]
	ldr	w8, [x21]
	ubfx	w0, w8, #4, #4
	bfi	w0, w8, #4, #12
	b	LBB0_3
LBB0_2:
	orr	w9, w10, w9
	str	w9, [x8]
	ldr	w0, [x21]
LBB0_3:
	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 AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_EL_SVP,4,2                     ; @EL_SVP
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"PMC r a %04x (st %c) @ %04x"

	.comm	_rPMC,4,2                       ; @rPMC
	.comm	_ssp,8,3                        ; @ssp
	.comm	_SSP_PMC_HAVE_ADDR,4,2          ; @SSP_PMC_HAVE_ADDR
	.comm	_SSP_PMC_SET,4,2                ; @SSP_PMC_SET
	.no_dead_strip	_read_PMC
.subsections_via_symbols
