	.file	"extr_sysctrl.c_pmu_disable.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"lantiq,ar10"
.LC1:
	.string	"lantiq,grx390"
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC2:
	.string	"deactivating PMU module failed!"
	.text
	.p2align 4
	.type	pmu_disable, @function
pmu_disable:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	mov	rbp, rdi
	lea	rdi, .LC0[rip]
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	call	of_machine_is_compatible@PLT
	test	rax, rax
	jne	.L4
	lea	rdi, .LC1[rip]
	call	of_machine_is_compatible@PLT
	test	rax, rax
	je	.L21
.L4:
	mov	edi, DWORD PTR 4[rbp]
	mov	ebx, 999999
	call	PWDCR_DIS_XRX@PLT
	mov	edi, DWORD PTR 0[rbp]
	mov	esi, eax
	call	pmu_w32@PLT
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L7:
	sub	ebx, 1
	je	.L6
.L3:
	mov	edi, DWORD PTR 4[rbp]
	call	PWDSR_XRX@PLT
	mov	edi, eax
	call	pmu_r32@PLT
	test	DWORD PTR 0[rbp], eax
	jne	.L7
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
.L10:
	.cfi_restore_state
	lea	rdi, g_pmu_lock[rip]
	call	spin_unlock@PLT
.L6:
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	lea	rdi, .LC2[rip]
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	jmp	pr_warn@PLT
	.p2align 4,,10
	.p2align 3
.L21:
	.cfi_restore_state
	lea	rdi, g_pmu_lock[rip]
	mov	ebx, 999999
	call	spin_lock@PLT
	mov	edi, DWORD PTR 4[rbp]
	call	PWDCR@PLT
	mov	edi, DWORD PTR 4[rbp]
	mov	r12d, eax
	call	PWDCR@PLT
	mov	edi, eax
	call	pmu_r32@PLT
	or	eax, DWORD PTR 0[rbp]
	mov	esi, r12d
	mov	edi, eax
	call	pmu_w32@PLT
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L11:
	sub	ebx, 1
	je	.L10
.L9:
	mov	edi, DWORD PTR 4[rbp]
	call	PWDSR@PLT
	mov	edi, eax
	call	pmu_r32@PLT
	test	DWORD PTR 0[rbp], eax
	je	.L11
	pop	rbx
	.cfi_def_cfa_offset 24
	lea	rdi, g_pmu_lock[rip]
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	jmp	spin_unlock@PLT
	.cfi_endproc
.LFE0:
	.size	pmu_disable, .-pmu_disable
	.comm	g_pmu_lock,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_sysctrl.c_pmu_disable.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"lantiq,ar10\000"
	.align	2
.LC1:
	.ascii	"lantiq,grx390\000"
	.align	2
.LC2:
	.ascii	"deactivating PMU module failed!\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	pmu_disable, %function
pmu_disable:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r5, r0
	ldr	r0, .L23
	bl	of_machine_is_compatible
	cmp	r0, #0
	bne	.L4
	ldr	r0, .L23+4
	bl	of_machine_is_compatible
	cmp	r0, #0
	beq	.L22
.L4:
	ldr	r0, [r5, #4]
	ldr	r4, [r5]
	bl	PWDCR_DIS_XRX
	mov	r1, r0
	mov	r0, r4
	bl	pmu_w32
	ldr	r4, .L23+8
.L3:
	ldr	r0, [r5, #4]
	bl	PWDSR_XRX
	bl	pmu_r32
	ldr	r3, [r5]
	tst	r0, r3
	popeq	{r4, r5, r6, pc}
	subs	r4, r4, #1
	bne	.L3
.L6:
	ldr	r0, .L23+12
	pop	{r4, r5, r6, lr}
	b	pr_warn
.L22:
	ldr	r0, .L23+16
	bl	spin_lock
	ldr	r0, [r5, #4]
	bl	PWDCR
	bl	pmu_r32
	mov	r4, r0
	ldr	r3, [r5]
	ldr	r0, [r5, #4]
	orr	r4, r4, r3
	bl	PWDCR
	mov	r1, r0
	mov	r0, r4
	bl	pmu_w32
	ldr	r4, .L23+8
	b	.L9
.L11:
	subs	r4, r4, #1
	beq	.L10
.L9:
	ldr	r0, [r5, #4]
	bl	PWDSR
	bl	pmu_r32
	ldr	r3, [r5]
	tst	r0, r3
	beq	.L11
	ldr	r0, .L23+16
	pop	{r4, r5, r6, lr}
	b	spin_unlock
.L10:
	ldr	r0, .L23+16
	bl	spin_unlock
	b	.L6
.L24:
	.align	2
.L23:
	.word	.LC0
	.word	.LC1
	.word	999999
	.word	.LC2
	.word	g_pmu_lock
	.size	pmu_disable, .-pmu_disable
	.comm	g_pmu_lock,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
