	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function acpi_processor_set_throttling_ptc
_acpi_processor_set_throttling_ptc:     ## @acpi_processor_set_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	%r15
	pushq	%r14
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	testq	%rdi, %rdi
	je	LBB0_1
## %bb.3:
	movl	%esi, %r14d
	testl	%esi, %esi
	js	LBB0_1
## %bb.4:
	movq	%rdi, %r15
	cmpl	%r14d, 4(%rdi)
	jle	LBB0_1
## %bb.5:
	cmpl	$0, 12(%r15)
	je	LBB0_6
## %bb.7:
	testl	%edx, %edx
	jne	LBB0_9
## %bb.8:
	xorl	%ebx, %ebx
	cmpl	%r14d, 8(%r15)
	je	LBB0_13
LBB0_9:
	cmpl	%r14d, (%r15)
	jle	LBB0_11
## %bb.10:
	movq	_EPERM@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_2:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_13:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	movq	_ENODEV@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_11:
	movq	$0, -32(%rbp)
	leaq	-32(%rbp), %rdx
	movq	%r15, %rdi
	movl	%r14d, %esi
	callq	_acpi_get_throttling_value
	xorl	%ebx, %ebx
	testl	%eax, %eax
	js	LBB0_13
## %bb.12:
	movq	-32(%rbp), %rsi
	movq	%r15, %rdi
	callq	_acpi_write_throttling_state
	movl	%r14d, 8(%r15)
	jmp	LBB0_13
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_EPERM,4,2                      ## @EPERM
	.no_dead_strip	_acpi_processor_set_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_set_throttling_ptc
_acpi_processor_set_throttling_ptc:     ; @acpi_processor_set_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_8
; %bb.1:
	mov	x19, x1
	tbnz	w1, #31, LBB0_8
; %bb.2:
	mov	x20, x0
	ldr	w8, [x0, #4]
	cmp	w8, w19
	b.le	LBB0_8
; %bb.3:
	ldr	w8, [x20, #12]
	cbz	w8, LBB0_11
; %bb.4:
	cbnz	w2, LBB0_6
; %bb.5:
	ldr	w8, [x20, #8]
	cmp	w8, w19
	b.eq	LBB0_14
LBB0_6:
	ldr	w8, [x20]
	cmp	w8, w19
	b.le	LBB0_12
; %bb.7:
Lloh0:
	adrp	x8, _EPERM@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EPERM@GOTPAGEOFF]
	b	LBB0_9
LBB0_8:
Lloh2:
	adrp	x8, _EINVAL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_9:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_10:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
LBB0_11:
Lloh4:
	adrp	x8, _ENODEV@GOTPAGE
Lloh5:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
	b	LBB0_9
LBB0_12:
	str	xzr, [sp, #8]
	add	x2, sp, #8
	mov	x0, x20
	mov	x1, x19
	bl	_acpi_get_throttling_value
	tbnz	w0, #31, LBB0_14
; %bb.13:
	ldr	x1, [sp, #8]
	mov	x0, x20
	bl	_acpi_write_throttling_state
	mov	w0, #0
	str	w19, [x20, #8]
	b	LBB0_10
LBB0_14:
	mov	w0, #0
	b	LBB0_10
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_EPERM,4,2                      ; @EPERM
	.no_dead_strip	_acpi_processor_set_throttling_ptc
.subsections_via_symbols
