	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function write_PMC
_write_PMC:                             ## @write_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	_ssp@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%rax), %edx
	movq	_SSP_PMC_HAVE_ADDR@GOTPCREL(%rip), %rsi
	movl	(%rsi), %ecx
	testl	%edx, %ecx
	je	LBB0_2
## %bb.1:
	movq	_SSP_PMC_SET@GOTPCREL(%rip), %rcx
	orl	(%rcx), %edx
	movl	%edx, (%rax)
	movl	(%rsi), %ecx
	notl	%ecx
	andl	%edx, %ecx
	movq	_rPMC@GOTPCREL(%rip), %rdx
	addq	$8, %rdx
	leaq	L_.str(%rip), %r15
	jmp	LBB0_3
LBB0_2:
	orl	%edx, %ecx
	leaq	L_.str.1(%rip), %r15
	movq	_rPMC@GOTPCREL(%rip), %rdx
LBB0_3:
	movl	%ecx, (%rax)
	movq	%r14, (%rdx)
	movq	_EL_SVP@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	xorl	%eax, %eax
	callq	_GET_PPC_OFFS
	movl	%ebx, %edi
	movq	%r15, %rsi
	movq	%r14, %rdx
	movl	%eax, %ecx
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_elprintf                       ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.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
	.comm	_rPMC,16,3                      ## @rPMC
	.comm	_EL_SVP,4,2                     ## @EL_SVP
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"PMC w m %04x @ %04x"

L_.str.1:                               ## @.str.1
	.asciz	"PMC w a %04x @ %04x"

	.no_dead_strip	_write_PMC
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function write_PMC
_write_PMC:                             ; @write_PMC
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x0
Lloh0:
	adrp	x8, _ssp@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ssp@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	ldr	w9, [x8]
Lloh3:
	adrp	x10, _SSP_PMC_HAVE_ADDR@GOTPAGE
Lloh4:
	ldr	x10, [x10, _SSP_PMC_HAVE_ADDR@GOTPAGEOFF]
	ldr	w11, [x10]
	tst	w11, w9
	b.eq	LBB0_2
; %bb.1:
Lloh5:
	adrp	x11, _SSP_PMC_SET@GOTPAGE
Lloh6:
	ldr	x11, [x11, _SSP_PMC_SET@GOTPAGEOFF]
Lloh7:
	ldr	w11, [x11]
	orr	w9, w11, w9
	str	w9, [x8]
	ldr	w10, [x10]
	bic	w9, w9, w10
Lloh8:
	adrp	x10, _rPMC@GOTPAGE
Lloh9:
	ldr	x10, [x10, _rPMC@GOTPAGEOFF]
	add	x10, x10, #8
Lloh10:
	adrp	x20, l_.str@PAGE
Lloh11:
	add	x20, x20, l_.str@PAGEOFF
	b	LBB0_3
LBB0_2:
	orr	w9, w11, w9
Lloh12:
	adrp	x20, l_.str.1@PAGE
Lloh13:
	add	x20, x20, l_.str.1@PAGEOFF
Lloh14:
	adrp	x10, _rPMC@GOTPAGE
Lloh15:
	ldr	x10, [x10, _rPMC@GOTPAGEOFF]
LBB0_3:
	str	w9, [x8]
	str	x19, [x10]
Lloh16:
	adrp	x8, _EL_SVP@GOTPAGE
Lloh17:
	ldr	x8, [x8, _EL_SVP@GOTPAGEOFF]
Lloh18:
	ldr	w21, [x8]
	bl	_GET_PPC_OFFS
	mov	x3, x0
	mov	x0, x21
	mov	x1, x20
	mov	x2, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_elprintf
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.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
	.comm	_rPMC,16,3                      ; @rPMC
	.comm	_EL_SVP,4,2                     ; @EL_SVP
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"PMC w m %04x @ %04x"

l_.str.1:                               ; @.str.1
	.asciz	"PMC w a %04x @ %04x"

	.no_dead_strip	_write_PMC
.subsections_via_symbols
