	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function acpi_processor_get_platform_limit
_acpi_processor_get_platform_limit:     ## @acpi_processor_get_platform_limit
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	$0, -32(%rbp)
	testq	%rdi, %rdi
	je	LBB0_1
## %bb.3:
	movq	%rdi, %r14
	movl	8(%rdi), %edi
	leaq	L_.str(%rip), %rsi
	leaq	-32(%rbp), %rcx
	xorl	%edx, %edx
	callq	_acpi_evaluate_integer
	movq	%rax, %rbx
	movq	_AE_NOT_FOUND@GOTPCREL(%rip), %r15
	cmpq	(%r15), %rax
	je	LBB0_5
## %bb.4:
	movq	_PPC_IN_USE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_acpi_processor_ppc_status@GOTPCREL(%rip), %rcx
	orl	%eax, (%rcx)
LBB0_5:
	movq	%rbx, %rdi
	callq	_ACPI_FAILURE
	testq	%rax, %rax
	je	LBB0_8
## %bb.6:
	cmpq	(%r15), %rbx
	je	LBB0_8
## %bb.7:
	leaq	L_.str.1(%rip), %rdi
                                        ## kill: def $edi killed $edi killed $rdi
	callq	_ACPI_EXCEPTION
	movq	_ENODEV@GOTPCREL(%rip), %rcx
	jmp	LBB0_2
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
LBB0_2:
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_9
LBB0_8:
	movl	4(%r14), %esi
	movq	-32(%rbp), %rdx
	testq	%rdx, %rdx
	leaq	L_.str.4(%rip), %rax
	leaq	L_.str.3(%rip), %rcx
	cmoveq	%rax, %rcx
	leaq	L_.str.2(%rip), %rdi
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_cpufreq_printk
	movl	-32(%rbp), %eax
	movl	%eax, (%r14)
	xorl	%eax, %eax
LBB0_9:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"_PPC"

	.comm	_AE_NOT_FOUND,8,3               ## @AE_NOT_FOUND
	.comm	_PPC_IN_USE,4,2                 ## @PPC_IN_USE
	.comm	_acpi_processor_ppc_status,4,2  ## @acpi_processor_ppc_status
	.comm	_AE_INFO,4,2                    ## @AE_INFO
L_.str.1:                               ## @.str.1
	.asciz	"Evaluating _PPC"

	.comm	_ENODEV,4,2                     ## @ENODEV
L_.str.2:                               ## @.str.2
	.asciz	"CPU %d: _PPC is %d - frequency %s limited\n"

L_.str.3:                               ## @.str.3
	.space	1

L_.str.4:                               ## @.str.4
	.asciz	"not"

	.no_dead_strip	_acpi_processor_get_platform_limit
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function acpi_processor_get_platform_limit
_acpi_processor_get_platform_limit:     ; @acpi_processor_get_platform_limit
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	str	xzr, [sp, #8]
	cbz	x0, LBB0_5
; %bb.1:
	mov	x19, x0
	ldr	w0, [x0, #8]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	add	x3, sp, #8
	mov	x2, #0
	bl	_acpi_evaluate_integer
	mov	x20, x0
Lloh2:
	adrp	x21, _AE_NOT_FOUND@GOTPAGE
Lloh3:
	ldr	x21, [x21, _AE_NOT_FOUND@GOTPAGEOFF]
	ldr	x8, [x21]
	cmp	x0, x8
	b.eq	LBB0_3
; %bb.2:
Lloh4:
	adrp	x8, _PPC_IN_USE@GOTPAGE
Lloh5:
	ldr	x8, [x8, _PPC_IN_USE@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
Lloh7:
	adrp	x9, _acpi_processor_ppc_status@GOTPAGE
Lloh8:
	ldr	x9, [x9, _acpi_processor_ppc_status@GOTPAGEOFF]
	ldr	w10, [x9]
	orr	w8, w10, w8
	str	w8, [x9]
LBB0_3:
	mov	x0, x20
	bl	_ACPI_FAILURE
	ldr	x8, [x21]
	cmp	x0, #0
	ccmp	x20, x8, #4, ne
	b.ne	LBB0_6
; %bb.4:
	ldr	w1, [x19, #4]
	ldr	x2, [sp, #8]
Lloh9:
	adrp	x8, l_.str.3@PAGE
Lloh10:
	add	x8, x8, l_.str.3@PAGEOFF
Lloh11:
	adrp	x9, l_.str.4@PAGE
Lloh12:
	add	x9, x9, l_.str.4@PAGEOFF
	cmp	x2, #0
	csel	x3, x9, x8, eq
Lloh13:
	adrp	x0, l_.str.2@PAGE
Lloh14:
	add	x0, x0, l_.str.2@PAGEOFF
                                        ; kill: def $w2 killed $w2 killed $x2
	bl	_cpufreq_printk
	mov	w0, #0
	ldr	x8, [sp, #8]
	str	w8, [x19]
	b	LBB0_8
LBB0_5:
Lloh15:
	adrp	x8, _EINVAL@GOTPAGE
Lloh16:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_7
LBB0_6:
Lloh17:
	adrp	x0, l_.str.1@PAGE
Lloh18:
	add	x0, x0, l_.str.1@PAGEOFF
                                        ; kill: def $w0 killed $w0 killed $x0
	bl	_ACPI_EXCEPTION
Lloh19:
	adrp	x8, _ENODEV@GOTPAGE
Lloh20:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
LBB0_7:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_8:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpAdd	Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"_PPC"

	.comm	_AE_NOT_FOUND,8,3               ; @AE_NOT_FOUND
	.comm	_PPC_IN_USE,4,2                 ; @PPC_IN_USE
	.comm	_acpi_processor_ppc_status,4,2  ; @acpi_processor_ppc_status
	.comm	_AE_INFO,4,2                    ; @AE_INFO
l_.str.1:                               ; @.str.1
	.asciz	"Evaluating _PPC"

	.comm	_ENODEV,4,2                     ; @ENODEV
l_.str.2:                               ; @.str.2
	.asciz	"CPU %d: _PPC is %d - frequency %s limited\n"

l_.str.3:                               ; @.str.3
	.space	1

l_.str.4:                               ; @.str.4
	.asciz	"not"

	.no_dead_strip	_acpi_processor_get_platform_limit
.subsections_via_symbols
