	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function acpi_processor_get_throttling_ptc
_acpi_processor_get_throttling_ptc:     ## @acpi_processor_get_throttling_ptc
	.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
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	testq	%rdi, %rdi
	je	LBB0_1
## %bb.3:
	movq	%rdi, %rbx
	cmpl	$0, 4(%rdi)
	je	LBB0_4
## %bb.5:
	movl	$0, (%rbx)
	movq	$0, -24(%rbp)
	leaq	-24(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_acpi_read_throttling_status
	movl	%eax, %ecx
	xorl	%eax, %eax
	testl	%ecx, %ecx
	js	LBB0_9
## %bb.6:
	movq	-24(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_acpi_get_throttling_state
	movl	%eax, %r14d
	cmpl	$-1, %eax
	jne	LBB0_8
## %bb.7:
	leaq	L_.str(%rip), %rdi
                                        ## kill: def $edi killed $edi killed $rdi
	callq	_ACPI_DEBUG_PRINT
	xorl	%r14d, %r14d
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movl	$1, %edx
	callq	_acpi_processor_set_throttling
	testl	%eax, %eax
	jne	LBB0_9
LBB0_8:
	movl	%r14d, (%rbx)
	xorl	%eax, %eax
	jmp	LBB0_9
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	jmp	LBB0_2
LBB0_4:
	movq	_ENODEV@GOTPCREL(%rip), %rcx
LBB0_2:
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_9:
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_ACPI_DB_INFO,4,2               ## @ACPI_DB_INFO
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Invalid throttling state, reset\n"

	.no_dead_strip	_acpi_processor_get_throttling_ptc
.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_throttling_ptc
_acpi_processor_get_throttling_ptc:     ; @acpi_processor_get_throttling_ptc
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	cbz	x0, LBB0_5
; %bb.1:
	mov	x19, x0
	ldr	w8, [x0, #4]
	cbz	w8, LBB0_6
; %bb.2:
	str	wzr, [x19]
	str	xzr, [sp, #8]
	add	x1, sp, #8
	mov	x0, x19
	bl	_acpi_read_throttling_status
	tbnz	w0, #31, LBB0_9
; %bb.3:
	ldr	x1, [sp, #8]
	mov	x0, x19
	bl	_acpi_get_throttling_state
	mov	x8, x0
	cmn	w0, #1
	b.eq	LBB0_10
LBB0_4:
	mov	w0, #0
	str	w8, [x19]
	b	LBB0_8
LBB0_5:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_7
LBB0_6:
Lloh2:
	adrp	x8, _ENODEV@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
LBB0_7:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_8:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
LBB0_9:
	mov	w0, #0
	b	LBB0_8
LBB0_10:
Lloh4:
	adrp	x0, l_.str@PAGE
Lloh5:
	add	x0, x0, l_.str@PAGEOFF
                                        ; kill: def $w0 killed $w0 killed $x0
	bl	_ACPI_DEBUG_PRINT
	mov	x0, x19
	mov	w1, #0
	mov	w2, #1
	bl	_acpi_processor_set_throttling
	cbnz	w0, LBB0_8
; %bb.11:
	mov	w8, #0
	b	LBB0_4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_ACPI_DB_INFO,4,2               ; @ACPI_DB_INFO
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Invalid throttling state, reset\n"

	.no_dead_strip	_acpi_processor_get_throttling_ptc
.subsections_via_symbols
