	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_acpi_processor_register_performance ## -- Begin function acpi_processor_register_performance
	.p2align	4, 0x90
_acpi_processor_register_performance:   ## @acpi_processor_register_performance
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	_acpi_processor_ppc_status@GOTPCREL(%rip), %rax
	movq	_PPC_REGISTERED@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%rax)
	je	LBB0_1
## %bb.3:
	movl	%esi, %ebx
	movq	%rdi, %r14
	movq	_performance_mutex@GOTPCREL(%rip), %rdi
	callq	_mutex_lock
	movq	_processors@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%ebx, %esi
	callq	_per_cpu
	testq	%rax, %rax
	je	LBB0_4
## %bb.5:
	movq	%rax, %rbx
	cmpq	$0, (%rax)
	je	LBB0_7
## %bb.6:
	movq	_performance_mutex@GOTPCREL(%rip), %rdi
	callq	_mutex_unlock
	movq	_EBUSY@GOTPCREL(%rip), %rcx
	jmp	LBB0_2
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	jmp	LBB0_2
LBB0_4:
	movq	_performance_mutex@GOTPCREL(%rip), %rdi
	callq	_mutex_unlock
	movq	_ENODEV@GOTPCREL(%rip), %rcx
	jmp	LBB0_2
LBB0_7:
	xorl	%edi, %edi
	testq	%r14, %r14
	sete	%dil
	callq	_WARN_ON
	movq	%r14, (%rbx)
	movq	%rbx, %rdi
	callq	_acpi_processor_get_performance_info
	testq	%rax, %rax
	je	LBB0_9
## %bb.8:
	movq	$0, (%rbx)
	movq	_performance_mutex@GOTPCREL(%rip), %rdi
	callq	_mutex_unlock
	movq	_EIO@GOTPCREL(%rip), %rcx
LBB0_2:
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_10:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_9:
	movq	_performance_mutex@GOTPCREL(%rip), %rdi
	callq	_mutex_unlock
	xorl	%eax, %eax
	jmp	LBB0_10
	.cfi_endproc
                                        ## -- End function
	.comm	_acpi_processor_ppc_status,4,2  ## @acpi_processor_ppc_status
	.comm	_PPC_REGISTERED,4,2             ## @PPC_REGISTERED
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_performance_mutex,4,2          ## @performance_mutex
	.comm	_processors,4,2                 ## @processors
	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_EBUSY,4,2                      ## @EBUSY
	.comm	_EIO,4,2                        ## @EIO
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_acpi_processor_register_performance ; -- Begin function acpi_processor_register_performance
	.p2align	2
_acpi_processor_register_performance:   ; @acpi_processor_register_performance
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
Lloh0:
	adrp	x8, _acpi_processor_ppc_status@GOTPAGE
Lloh1:
	ldr	x8, [x8, _acpi_processor_ppc_status@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _PPC_REGISTERED@GOTPAGE
Lloh4:
	ldr	x9, [x9, _PPC_REGISTERED@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_4
; %bb.1:
	mov	x20, x1
	mov	x19, x0
Lloh6:
	adrp	x0, _performance_mutex@GOTPAGE
Lloh7:
	ldr	x0, [x0, _performance_mutex@GOTPAGEOFF]
	bl	_mutex_lock
Lloh8:
	adrp	x8, _processors@GOTPAGE
Lloh9:
	ldr	x8, [x8, _processors@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
	mov	x1, x20
	bl	_per_cpu
	cbz	x0, LBB0_5
; %bb.2:
	mov	x20, x0
	ldr	x8, [x0]
	cbz	x8, LBB0_6
; %bb.3:
Lloh11:
	adrp	x0, _performance_mutex@GOTPAGE
Lloh12:
	ldr	x0, [x0, _performance_mutex@GOTPAGEOFF]
	bl	_mutex_unlock
Lloh13:
	adrp	x8, _EBUSY@GOTPAGE
Lloh14:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
	b	LBB0_8
LBB0_4:
Lloh15:
	adrp	x8, _EINVAL@GOTPAGE
Lloh16:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_8
LBB0_5:
Lloh17:
	adrp	x0, _performance_mutex@GOTPAGE
Lloh18:
	ldr	x0, [x0, _performance_mutex@GOTPAGEOFF]
	bl	_mutex_unlock
Lloh19:
	adrp	x8, _ENODEV@GOTPAGE
Lloh20:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
	b	LBB0_8
LBB0_6:
	cmp	x19, #0
	cset	w0, eq
	bl	_WARN_ON
	str	x19, [x20]
	mov	x0, x20
	bl	_acpi_processor_get_performance_info
	cbz	x0, LBB0_10
; %bb.7:
	str	xzr, [x20]
Lloh21:
	adrp	x0, _performance_mutex@GOTPAGE
Lloh22:
	ldr	x0, [x0, _performance_mutex@GOTPAGEOFF]
	bl	_mutex_unlock
Lloh23:
	adrp	x8, _EIO@GOTPAGE
Lloh24:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
LBB0_8:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_9:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_10:
Lloh25:
	adrp	x0, _performance_mutex@GOTPAGE
Lloh26:
	ldr	x0, [x0, _performance_mutex@GOTPAGEOFF]
	bl	_mutex_unlock
	mov	w0, #0
	b	LBB0_9
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh25, Lloh26
	.cfi_endproc
                                        ; -- End function
	.comm	_acpi_processor_ppc_status,4,2  ; @acpi_processor_ppc_status
	.comm	_PPC_REGISTERED,4,2             ; @PPC_REGISTERED
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_performance_mutex,4,2          ; @performance_mutex
	.comm	_processors,4,2                 ; @processors
	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_EBUSY,4,2                      ; @EBUSY
	.comm	_EIO,4,2                        ; @EIO
.subsections_via_symbols
