	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hwpstate_get_info_from_acpi_perf
_hwpstate_get_info_from_acpi_perf:      ## @hwpstate_get_info_from_acpi_perf
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %ebx
	movl	%edi, %r14d
	movq	_MAX_SETTINGS@GOTPCREL(%rip), %r13
	movl	(%r13), %eax
	shll	$3, %eax
	leal	(%rax,%rax,2), %edi
	movq	_M_TEMP@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movq	_M_NOWAIT@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_malloc
	testq	%rax, %rax
	je	LBB0_4
## %bb.1:
	movq	%rax, %r15
	movl	(%r13), %eax
	movl	%eax, -44(%rbp)
	leaq	-44(%rbp), %rdx
	movl	%ebx, %edi
	movq	%r15, %rsi
	callq	_CPUFREQ_DRV_SETTINGS
	testl	%eax, %eax
	je	LBB0_6
## %bb.2:
	movl	%eax, %ebx
	leaq	L_.str.1(%rip), %rsi
	movl	%r14d, %edi
	callq	_HWPSTATE_DEBUG
	jmp	LBB0_3
LBB0_4:
	leaq	L_.str(%rip), %rsi
	movl	%r14d, %edi
	callq	_HWPSTATE_DEBUG
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	jmp	LBB0_5
LBB0_6:
	movl	%r14d, %edi
	callq	_device_get_softc
	movl	-44(%rbp), %ecx
	movl	%ecx, (%rax)
	cmpl	$0, -44(%rbp)
	jle	LBB0_11
## %bb.7:
	movq	8(%rax), %rax
	movq	%r15, %rcx
	addq	$8, %rcx
	addq	$4, %rax
	xorl	%edx, %edx
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movq	-8(%rcx), %rsi
	movl	(%rsi), %esi
	cmpq	%rsi, %rdx
	jne	LBB0_12
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=1
	movl	%edx, -4(%rax)
	movups	(%rcx), %xmm0
	movups	%xmm0, (%rax)
	incq	%rdx
	movslq	-44(%rbp), %rsi
	addq	$24, %rcx
	addq	$20, %rax
	cmpq	%rsi, %rdx
	jl	LBB0_8
LBB0_11:
	xorl	%ebx, %ebx
	jmp	LBB0_3
LBB0_12:
	leaq	L_.str.2(%rip), %rsi
	movl	%r14d, %edi
	callq	_HWPSTATE_DEBUG
	movq	_ENXIO@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
LBB0_3:
	movl	(%r12), %esi
	movq	%r15, %rdi
	callq	_free
LBB0_5:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MAX_SETTINGS,4,2               ## @MAX_SETTINGS
	.comm	_M_TEMP,4,2                     ## @M_TEMP
	.comm	_M_NOWAIT,4,2                   ## @M_NOWAIT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"nomem\n"

	.comm	_ENOMEM,4,2                     ## @ENOMEM
L_.str.1:                               ## @.str.1
	.asciz	"error: CPUFREQ_DRV_SETTINGS.\n"

L_.str.2:                               ## @.str.2
	.asciz	"ACPI _PSS object mismatch.\n"

	.comm	_ENXIO,4,2                      ## @ENXIO
	.no_dead_strip	_hwpstate_get_info_from_acpi_perf
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hwpstate_get_info_from_acpi_perf
_hwpstate_get_info_from_acpi_perf:      ; @hwpstate_get_info_from_acpi_perf
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x21, x1
	mov	x20, x0
Lloh0:
	adrp	x23, _MAX_SETTINGS@GOTPAGE
Lloh1:
	ldr	x23, [x23, _MAX_SETTINGS@GOTPAGEOFF]
	ldr	w8, [x23]
	add	w8, w8, w8, lsl #1
	lsl	w0, w8, #3
Lloh2:
	adrp	x22, _M_TEMP@GOTPAGE
Lloh3:
	ldr	x22, [x22, _M_TEMP@GOTPAGEOFF]
	ldr	w1, [x22]
Lloh4:
	adrp	x8, _M_NOWAIT@GOTPAGE
Lloh5:
	ldr	x8, [x8, _M_NOWAIT@GOTPAGEOFF]
Lloh6:
	ldr	w2, [x8]
	bl	_malloc
	cbz	x0, LBB0_3
; %bb.1:
	mov	x19, x0
	ldr	w8, [x23]
	str	w8, [sp, #12]
	add	x2, sp, #12
	mov	x0, x21
	mov	x1, x19
	bl	_CPUFREQ_DRV_SETTINGS
	cbz	w0, LBB0_4
; %bb.2:
	mov	x21, x0
Lloh7:
	adrp	x1, l_.str.1@PAGE
Lloh8:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	bl	_HWPSTATE_DEBUG
	b	LBB0_10
LBB0_3:
Lloh9:
	adrp	x1, l_.str@PAGE
Lloh10:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_HWPSTATE_DEBUG
Lloh11:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh12:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh13:
	ldr	w21, [x8]
	b	LBB0_11
LBB0_4:
	mov	x0, x20
	bl	_device_get_softc
	ldr	w8, [sp, #12]
	str	w8, [x0]
	ldr	w8, [sp, #12]
	cmp	w8, #1
	b.lt	LBB0_8
; %bb.5:
	mov	x8, #0
	ldr	x10, [x0, #8]
	add	x9, x19, #8
	add	x10, x10, #4
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldur	x11, [x9, #-8]
	ldr	w11, [x11]
	cmp	x8, x11
	b.ne	LBB0_9
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	stur	w8, [x10, #-4]
	ldr	q0, [x9], #24
	str	q0, [x10], #20
	add	x8, x8, #1
	ldrsw	x11, [sp, #12]
	cmp	x8, x11
	b.lt	LBB0_6
LBB0_8:
	mov	w21, #0
	b	LBB0_10
LBB0_9:
Lloh14:
	adrp	x1, l_.str.2@PAGE
Lloh15:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x20
	bl	_HWPSTATE_DEBUG
Lloh16:
	adrp	x8, _ENXIO@GOTPAGE
Lloh17:
	ldr	x8, [x8, _ENXIO@GOTPAGEOFF]
Lloh18:
	ldr	w21, [x8]
LBB0_10:
	ldr	w1, [x22]
	mov	x0, x19
	bl	_free
LBB0_11:
	mov	x0, x21
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpAdd	Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_MAX_SETTINGS,4,2               ; @MAX_SETTINGS
	.comm	_M_TEMP,4,2                     ; @M_TEMP
	.comm	_M_NOWAIT,4,2                   ; @M_NOWAIT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"nomem\n"

	.comm	_ENOMEM,4,2                     ; @ENOMEM
l_.str.1:                               ; @.str.1
	.asciz	"error: CPUFREQ_DRV_SETTINGS.\n"

l_.str.2:                               ; @.str.2
	.asciz	"ACPI _PSS object mismatch.\n"

	.comm	_ENXIO,4,2                      ; @ENXIO
	.no_dead_strip	_hwpstate_get_info_from_acpi_perf
.subsections_via_symbols
