	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_acpi_processor_get_throttling_info ## -- Begin function acpi_processor_get_throttling_info
	.p2align	4, 0x90
_acpi_processor_get_throttling_info:    ## @acpi_processor_get_throttling_info
	.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
	testq	%rdi, %rdi
	je	LBB0_1
## %bb.2:
	movq	%rdi, %r14
	movl	56(%rdi), %edi
	callq	_ACPI_DEBUG_PRINT
	movq	%r14, %rdi
	callq	_acpi_processor_get_throttling_control
	testq	%rax, %rax
	jne	LBB0_5
## %bb.3:
	movq	%r14, %rdi
	callq	_acpi_processor_get_throttling_states
	testq	%rax, %rax
	jne	LBB0_5
## %bb.4:
	movq	%r14, %rdi
	callq	_acpi_processor_get_platform_limit
	testq	%rax, %rax
	je	LBB0_6
LBB0_5:
	movq	_acpi_processor_get_throttling_fadt@GOTPCREL(%rip), %rax
	movq	%rax, 48(%r14)
	movq	_acpi_processor_set_throttling_fadt@GOTPCREL(%rip), %rax
	movq	%rax, 40(%r14)
	movq	%r14, %rdi
	callq	_acpi_processor_get_fadt_info
	xorl	%ebx, %ebx
	testq	%rax, %rax
	jne	LBB0_16
LBB0_7:
	movq	%r14, %rdi
	callq	_acpi_processor_get_tsd
	testq	%rax, %rax
	je	LBB0_9
## %bb.8:
	movq	$0, 32(%r14)
	movl	24(%r14), %esi
	movl	72(%r14), %edi
	callq	_cpumask_set_cpu
	movq	_DOMAIN_COORD_TYPE_SW_ALL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 20(%r14)
LBB0_9:
	movq	_errata@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_11
## %bb.10:
	leaq	L_.str.1(%rip), %rdi
                                        ## kill: def $edi killed $edi killed $rdi
	callq	_ACPI_DEBUG_PRINT
	xorl	%ebx, %ebx
	jmp	LBB0_16
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_16:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_11:
	movl	16(%r14), %edi
	callq	_ACPI_DEBUG_PRINT
	movl	$1, (%r14)
	movq	%r14, %rdi
	callq	_acpi_processor_get_throttling
	testl	%eax, %eax
	je	LBB0_12
LBB0_15:
	movl	$0, (%r14)
	movl	%eax, %ebx
	jmp	LBB0_16
LBB0_12:
	movq	8(%r14), %rdi
	testq	%rdi, %rdi
	je	LBB0_13
## %bb.14:
                                        ## kill: def $edi killed $edi killed $rdi
	callq	_ACPI_DEBUG_PRINT
	xorl	%ebx, %ebx
	movq	%r14, %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_acpi_processor_set_throttling
	testl	%eax, %eax
	jne	LBB0_15
	jmp	LBB0_16
LBB0_6:
	movq	_acpi_processor_get_throttling_ptc@GOTPCREL(%rip), %rax
	movq	%rax, 48(%r14)
	movq	_acpi_processor_set_throttling_ptc@GOTPCREL(%rip), %rax
	movq	%rax, 40(%r14)
	jmp	LBB0_7
LBB0_13:
	xorl	%ebx, %ebx
	jmp	LBB0_16
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_ACPI_DB_INFO,4,2               ## @ACPI_DB_INFO
	.comm	_acpi_processor_get_throttling_fadt,4,2 ## @acpi_processor_get_throttling_fadt
	.comm	_acpi_processor_set_throttling_fadt,4,2 ## @acpi_processor_set_throttling_fadt
	.comm	_acpi_processor_get_throttling_ptc,4,2 ## @acpi_processor_get_throttling_ptc
	.comm	_acpi_processor_set_throttling_ptc,4,2 ## @acpi_processor_set_throttling_ptc
	.comm	_DOMAIN_COORD_TYPE_SW_ALL,4,2   ## @DOMAIN_COORD_TYPE_SW_ALL
	.comm	_errata,8,3                     ## @errata
	.section	__TEXT,__cstring,cstring_literals
L_.str.1:                               ## @.str.1
	.asciz	"Throttling not supported on PIIX4 A- or B-step\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_acpi_processor_get_throttling_info ; -- Begin function acpi_processor_get_throttling_info
	.p2align	2
_acpi_processor_get_throttling_info:    ; @acpi_processor_get_throttling_info
	.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
	cbz	x0, LBB0_6
; %bb.1:
	mov	x19, x0
	ldr	w0, [x0, #56]
	bl	_ACPI_DEBUG_PRINT
	mov	x0, x19
	bl	_acpi_processor_get_throttling_control
	cbnz	x0, LBB0_4
; %bb.2:
	mov	x0, x19
	bl	_acpi_processor_get_throttling_states
	cbnz	x0, LBB0_4
; %bb.3:
	mov	x0, x19
	bl	_acpi_processor_get_platform_limit
	cbz	x0, LBB0_7
LBB0_4:
Lloh0:
	adrp	x8, _acpi_processor_get_throttling_fadt@GOTPAGE
Lloh1:
	ldr	x8, [x8, _acpi_processor_get_throttling_fadt@GOTPAGEOFF]
Lloh2:
	adrp	x9, _acpi_processor_set_throttling_fadt@GOTPAGE
Lloh3:
	ldr	x9, [x9, _acpi_processor_set_throttling_fadt@GOTPAGEOFF]
	stp	x9, x8, [x19, #40]
	mov	x0, x19
	bl	_acpi_processor_get_fadt_info
	cbz	x0, LBB0_8
; %bb.5:
	mov	w0, #0
	b	LBB0_14
LBB0_6:
Lloh4:
	adrp	x8, _EINVAL@GOTPAGE
Lloh5:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_14
LBB0_7:
Lloh7:
	adrp	x8, _acpi_processor_get_throttling_ptc@GOTPAGE
Lloh8:
	ldr	x8, [x8, _acpi_processor_get_throttling_ptc@GOTPAGEOFF]
Lloh9:
	adrp	x9, _acpi_processor_set_throttling_ptc@GOTPAGE
Lloh10:
	ldr	x9, [x9, _acpi_processor_set_throttling_ptc@GOTPAGEOFF]
	stp	x9, x8, [x19, #40]
LBB0_8:
	mov	x0, x19
	bl	_acpi_processor_get_tsd
	cbz	x0, LBB0_10
; %bb.9:
	str	xzr, [x19, #32]
	ldr	w0, [x19, #72]
	ldr	w1, [x19, #24]
	bl	_cpumask_set_cpu
Lloh11:
	adrp	x8, _DOMAIN_COORD_TYPE_SW_ALL@GOTPAGE
Lloh12:
	ldr	x8, [x8, _DOMAIN_COORD_TYPE_SW_ALL@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	str	w8, [x19, #20]
LBB0_10:
Lloh14:
	adrp	x8, _errata@GOTPAGE
Lloh15:
	ldr	x8, [x8, _errata@GOTPAGEOFF]
Lloh16:
	ldr	x8, [x8]
	cbz	x8, LBB0_12
; %bb.11:
Lloh17:
	adrp	x0, l_.str.1@PAGE
Lloh18:
	add	x0, x0, l_.str.1@PAGEOFF
                                        ; kill: def $w0 killed $w0 killed $x0
	bl	_ACPI_DEBUG_PRINT
	mov	w0, #0
	b	LBB0_14
LBB0_12:
	ldr	w0, [x19, #16]
	bl	_ACPI_DEBUG_PRINT
	mov	w8, #1
	str	w8, [x19]
	mov	x0, x19
	bl	_acpi_processor_get_throttling
	cbz	w0, LBB0_15
LBB0_13:
	str	wzr, [x19]
LBB0_14:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_15:
	ldr	x0, [x19, #8]
	cbz	x0, LBB0_14
; %bb.16:
                                        ; kill: def $w0 killed $w0 killed $x0
	bl	_ACPI_DEBUG_PRINT
	mov	x0, x19
	mov	w1, #0
	mov	w2, #0
	bl	_acpi_processor_set_throttling
	cbnz	w0, LBB0_13
	b	LBB0_14
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_ACPI_DB_INFO,4,2               ; @ACPI_DB_INFO
	.comm	_acpi_processor_get_throttling_fadt,4,2 ; @acpi_processor_get_throttling_fadt
	.comm	_acpi_processor_set_throttling_fadt,4,2 ; @acpi_processor_set_throttling_fadt
	.comm	_acpi_processor_get_throttling_ptc,4,2 ; @acpi_processor_get_throttling_ptc
	.comm	_acpi_processor_set_throttling_ptc,4,2 ; @acpi_processor_set_throttling_ptc
	.comm	_DOMAIN_COORD_TYPE_SW_ALL,4,2   ; @DOMAIN_COORD_TYPE_SW_ALL
	.comm	_errata,8,3                     ; @errata
	.section	__TEXT,__cstring,cstring_literals
l_.str.1:                               ; @.str.1
	.asciz	"Throttling not supported on PIIX4 A- or B-step\n"

.subsections_via_symbols
