	.file	"extr_processor_perflib.c_acpi_processor_register_performance.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	acpi_processor_register_performance
	.type	acpi_processor_register_performance, @function
acpi_processor_register_performance:
.LFB0:
	.cfi_startproc
	endbr64
	mov	eax, DWORD PTR acpi_processor_cpufreq_init[rip]
	test	eax, eax
	jne	.L2
	mov	eax, DWORD PTR EINVAL[rip]
	neg	eax
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	ebp, esi
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	mov	rbx, rdi
	lea	rdi, performance_mutex[rip]
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	call	mutex_lock@PLT
	mov	edi, DWORD PTR processors[rip]
	mov	esi, ebp
	call	per_cpu@PLT
	mov	rbp, rax
	test	rax, rax
	je	.L11
	cmp	QWORD PTR [rax], 0
	je	.L5
	lea	rdi, performance_mutex[rip]
	call	mutex_unlock@PLT
	mov	eax, DWORD PTR EBUSY[rip]
	neg	eax
.L1:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L5:
	.cfi_restore_state
	xor	edi, edi
	test	rbx, rbx
	sete	dil
	call	WARN_ON@PLT
	mov	QWORD PTR 0[rbp], rbx
	mov	rdi, rbp
	call	acpi_processor_get_performance_info@PLT
	test	rax, rax
	jne	.L12
	lea	rdi, performance_mutex[rip]
	call	mutex_unlock@PLT
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	xor	eax, eax
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L12:
	.cfi_restore_state
	mov	QWORD PTR 0[rbp], 0
	lea	rdi, performance_mutex[rip]
	call	mutex_unlock@PLT
	mov	eax, DWORD PTR EIO[rip]
	neg	eax
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L11:
	lea	rdi, performance_mutex[rip]
	call	mutex_unlock@PLT
	mov	eax, DWORD PTR ENODEV[rip]
	neg	eax
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	acpi_processor_register_performance, .-acpi_processor_register_performance
	.comm	processors,4,4
	.comm	performance_mutex,4,4
	.comm	acpi_processor_cpufreq_init,4,4
	.comm	ENODEV,4,4
	.comm	EIO,4,4
	.comm	EINVAL,4,4
	.comm	EBUSY,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_processor_perflib.c_acpi_processor_register_performance.c"
	.text
	.align	2
	.global	acpi_processor_register_performance
	.syntax unified
	.arm
	.fpu softvfp
	.type	acpi_processor_register_performance, %function
acpi_processor_register_performance:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r3, .L11
	push	{r4, r5, r6, r7, r8, lr}
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L2
	ldr	r3, .L11+4
	ldr	r4, [r3]
	rsb	r4, r4, #0
.L1:
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, pc}
.L2:
	mov	r4, r1
	mov	r5, r0
	ldr	r0, .L11+8
	bl	mutex_lock
	ldr	r3, .L11+12
	mov	r1, r4
	ldr	r0, [r3]
	bl	per_cpu
	subs	r6, r0, #0
	beq	.L9
	ldr	r7, [r6]
	cmp	r7, #0
	beq	.L5
	ldr	r0, .L11+8
	bl	mutex_unlock
	ldr	r3, .L11+16
	ldr	r4, [r3]
	rsb	r4, r4, #0
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, pc}
.L5:
	clz	r0, r5
	lsr	r0, r0, #5
	bl	WARN_ON
	mov	r0, r6
	str	r5, [r6]
	bl	acpi_processor_get_performance_info
	subs	r4, r0, #0
	bne	.L10
	ldr	r0, .L11+8
	bl	mutex_unlock
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, pc}
.L10:
	ldr	r0, .L11+8
	str	r7, [r6]
	bl	mutex_unlock
	ldr	r3, .L11+20
	ldr	r4, [r3]
	rsb	r4, r4, #0
	b	.L1
.L9:
	ldr	r0, .L11+8
	bl	mutex_unlock
	ldr	r3, .L11+24
	ldr	r4, [r3]
	rsb	r4, r4, #0
	b	.L1
.L12:
	.align	2
.L11:
	.word	acpi_processor_cpufreq_init
	.word	EINVAL
	.word	performance_mutex
	.word	processors
	.word	EBUSY
	.word	EIO
	.word	ENODEV
	.size	acpi_processor_register_performance, .-acpi_processor_register_performance
	.comm	processors,4,4
	.comm	performance_mutex,4,4
	.comm	acpi_processor_cpufreq_init,4,4
	.comm	ENODEV,4,4
	.comm	EIO,4,4
	.comm	EINVAL,4,4
	.comm	EBUSY,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
