	.file	"extr_common.c_op_powerpc_setup.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	op_powerpc_setup, @function
op_powerpc_setup:
.LFB0:
	.cfi_startproc
	endbr64
	sub	rsp, 8
	.cfi_def_cfa_offset 16
	mov	edi, DWORD PTR op_handle_interrupt[rip]
	mov	DWORD PTR op_per_cpu_rc[rip], 0
	call	reserve_pmc_hardware@PLT
	test	eax, eax
	jne	.L1
	mov	rax, QWORD PTR model[rip]
	mov	edi, DWORD PTR ctr[rip]
	lea	rsi, sys[rip]
	mov	edx, DWORD PTR 8[rax]
	call	[QWORD PTR [rax]]
	mov	DWORD PTR op_per_cpu_rc[rip], eax
	test	eax, eax
	je	.L3
.L5:
	xor	eax, eax
	call	release_pmc_hardware@PLT
	mov	eax, DWORD PTR op_per_cpu_rc[rip]
.L1:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L3:
	.cfi_restore_state
	mov	edi, DWORD PTR op_powerpc_cpu_setup[rip]
	mov	edx, 1
	xor	esi, esi
	call	on_each_cpu@PLT
	mov	eax, DWORD PTR op_per_cpu_rc[rip]
	test	eax, eax
	jne	.L5
	add	rsp, 8
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	op_powerpc_setup, .-op_powerpc_setup
	.comm	sys,4,4
	.comm	op_powerpc_cpu_setup,4,4
	.comm	op_per_cpu_rc,4,4
	.comm	op_handle_interrupt,4,4
	.comm	model,8,8
	.comm	ctr,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_common.c_op_powerpc_setup.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	op_powerpc_setup, %function
op_powerpc_setup:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	mov	r3, #0
	ldr	r2, .L8
	push	{r4, r5, r6, lr}
	ldr	r5, .L8+4
	ldr	r0, [r2]
	str	r3, [r5]
	bl	reserve_pmc_hardware
	subs	r4, r0, #0
	bne	.L1
	ldr	r3, .L8+8
	ldr	r2, .L8+12
	ldr	r3, [r3]
	ldr	r0, [r2]
	ldr	r6, [r3]
	ldr	r2, [r3, #4]
	ldr	r1, .L8+16
	blx	r6
	cmp	r0, #0
	str	r0, [r5]
	beq	.L3
.L5:
	bl	release_pmc_hardware
	ldr	r4, [r5]
.L1:
	mov	r0, r4
	pop	{r4, r5, r6, pc}
.L3:
	ldr	r3, .L8+20
	mov	r1, r4
	mov	r2, #1
	ldr	r0, [r3]
	bl	on_each_cpu
	ldr	r4, [r5]
	cmp	r4, #0
	bne	.L5
	mov	r0, r4
	pop	{r4, r5, r6, pc}
.L9:
	.align	2
.L8:
	.word	op_handle_interrupt
	.word	op_per_cpu_rc
	.word	model
	.word	ctr
	.word	sys
	.word	op_powerpc_cpu_setup
	.size	op_powerpc_setup, .-op_powerpc_setup
	.comm	sys,4,4
	.comm	op_powerpc_cpu_setup,4,4
	.comm	op_per_cpu_rc,4,4
	.comm	op_handle_interrupt,4,4
	.comm	model,4,4
	.comm	ctr,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
