	.file	"extr_hwpmc_ppc970.c_ppc970_start_pmc.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	ppc970_start_pmc, @function
ppc970_start_pmc:
.LFB0:
	.cfi_startproc
	endbr64
	mov	rax, QWORD PTR powerpc_pcpu[rip]
	movsx	rdx, edi
	push	rbx
	.cfi_def_cfa_offset 16
	.cfi_offset 3, -16
	mov	rax, QWORD PTR [rax+rdx*8]
	movsx	rdx, esi
	mov	rax, QWORD PTR [rax]
	mov	rbx, QWORD PTR [rax+rdx*8]
	mov	edx, DWORD PTR POWERPC_PMC_ENABLE[rip]
	not	edx
	and	edx, DWORD PTR [rbx]
	call	ppc970_set_pmc@PLT
	mov	ebx, DWORD PTR [rbx]
	mov	edi, DWORD PTR SPR_970MMCR0[rip]
	not	ebx
	and	ebx, DWORD PTR POWERPC_PMC_ENABLE[rip]
	call	mfspr@PLT
	mov	esi, DWORD PTR SPR_MMCR0_FC[rip]
	mov	edi, DWORD PTR SPR_970MMCR0[rip]
	not	esi
	and	esi, eax
	or	esi, ebx
	call	mtspr@PLT
	xor	eax, eax
	pop	rbx
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	ppc970_start_pmc, .-ppc970_start_pmc
	.comm	powerpc_pcpu,8,8
	.comm	SPR_MMCR0_FC,4,4
	.comm	SPR_970MMCR0,4,4
	.comm	POWERPC_PMC_ENABLE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_hwpmc_ppc970.c_ppc970_start_pmc.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	ppc970_start_pmc, %function
ppc970_start_pmc:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r3, .L4
	push	{r4, r5, r6, lr}
	ldr	r3, [r3]
	ldr	r6, .L4+4
	ldr	r3, [r3, r0, lsl #2]
	ldr	r2, [r6]
	ldr	r3, [r3]
	ldr	r5, .L4+8
	ldr	r4, [r3, r1, lsl #2]
	ldr	r3, [r4]
	bic	r2, r3, r2
	bl	ppc970_set_pmc
	ldr	r1, [r4]
	ldr	r4, [r6]
	ldr	r0, [r5]
	bic	r4, r4, r1
	bl	mfspr
	mov	r3, r0
	ldr	r2, .L4+12
	ldr	r0, [r5]
	ldr	r1, [r2]
	bic	r1, r3, r1
	orr	r1, r4, r1
	bl	mtspr
	mov	r0, #0
	pop	{r4, r5, r6, pc}
.L5:
	.align	2
.L4:
	.word	powerpc_pcpu
	.word	POWERPC_PMC_ENABLE
	.word	SPR_970MMCR0
	.word	SPR_MMCR0_FC
	.size	ppc970_start_pmc, .-ppc970_start_pmc
	.comm	powerpc_pcpu,4,4
	.comm	SPR_MMCR0_FC,4,4
	.comm	SPR_970MMCR0,4,4
	.comm	POWERPC_PMC_ENABLE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
