	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function processor_set_cur_state
_processor_set_cur_state:               ## @processor_set_cur_state
	.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	%rsi, %r14
	movq	(%rdi), %rbx
	movq	%rbx, %rdi
	callq	_acpi_driver_data
	testq	%rbx, %rbx
	je	LBB0_2
## %bb.1:
	movq	%rax, %r15
	testq	%rax, %rax
	je	LBB0_2
## %bb.3:
	movl	(%r15), %edi
	callq	_cpufreq_get_max_state
	movl	%eax, %ebx
	movq	%r15, %rdi
	callq	_acpi_processor_max_state
	cmpq	%r14, %rax
	jae	LBB0_4
LBB0_2:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_9:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movslq	%ebx, %rbx
	cmpq	%r14, %rbx
	jae	LBB0_5
## %bb.10:
	movl	(%r15), %edi
	movl	%ebx, %esi
	callq	_cpufreq_set_cur_state
	subq	%rbx, %r14
	movq	%r15, %rdi
	movq	%r14, %rsi
	xorl	%edx, %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_acpi_processor_set_throttling  ## TAILCALL
LBB0_5:
	xorl	%ebx, %ebx
	cmpq	$0, 16(%r15)
	je	LBB0_8
## %bb.6:
	cmpq	$0, 8(%r15)
	je	LBB0_8
## %bb.7:
	movq	%r15, %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_acpi_processor_set_throttling
	movl	%eax, %ebx
LBB0_8:
	movl	(%r15), %edi
	movl	%r14d, %esi
	callq	_cpufreq_set_cur_state
	jmp	LBB0_9
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_processor_set_cur_state
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function processor_set_cur_state
_processor_set_cur_state:               ; @processor_set_cur_state
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x19, x1
	ldr	x21, [x0]
	mov	x0, x21
	bl	_acpi_driver_data
	cmp	x21, #0
	ccmp	x0, #0, #4, ne
	b.eq	LBB0_2
; %bb.1:
	mov	x20, x0
	ldr	w0, [x0]
	bl	_cpufreq_get_max_state
	mov	x21, x0
	mov	x0, x20
	bl	_acpi_processor_max_state
	cmp	x0, x19
	b.hs	LBB0_4
LBB0_2:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w21, w8
LBB0_3:
	mov	x0, x21
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_4:
	sxtw	x22, w21
	cmp	x22, x19
	b.hs	LBB0_6
; %bb.5:
	ldr	w0, [x20]
	mov	x1, x21
	bl	_cpufreq_set_cur_state
	sub	x1, x19, x22
	mov	x0, x20
	mov	w2, #0
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_acpi_processor_set_throttling
LBB0_6:
	ldr	x8, [x20, #16]
	cbz	x8, LBB0_9
; %bb.7:
	ldr	x8, [x20, #8]
	cbz	x8, LBB0_9
; %bb.8:
	mov	x0, x20
	mov	x1, #0
	mov	w2, #0
	bl	_acpi_processor_set_throttling
	mov	x21, x0
	b	LBB0_10
LBB0_9:
	mov	w21, #0
LBB0_10:
	ldr	w0, [x20]
	mov	x1, x19
	bl	_cpufreq_set_cur_state
	b	LBB0_3
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_processor_set_cur_state
.subsections_via_symbols
