	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function est_acpi_info
_est_acpi_info:                         ## @est_acpi_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	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	subq	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r13
	movq	%rsi, %r14
	movq	%rdi, %r15
	callq	_device_get_parent
	leaq	L_.str(%rip), %rsi
	movl	%eax, %edi
	movl	$-1, %edx
	callq	_device_find_child
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_device_is_attached
	testl	%eax, %eax
	je	LBB0_2
## %bb.3:
	movq	%r14, -88(%rbp)                 ## 8-byte Spill
	movq	%r15, %rdi
	callq	_device_get_softc
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	movq	_MAX_SETTINGS@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	shll	$5, %edi
	movq	_M_TEMP@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_M_NOWAIT@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_malloc
	testq	%rax, %rax
	je	LBB0_4
## %bb.5:
	movq	%rax, %r14
	movl	(%r12), %eax
	movl	%eax, -44(%rbp)
	leaq	-44(%rbp), %rdx
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_CPUFREQ_DRV_SETTINGS
	movl	%eax, %r12d
	testl	%eax, %eax
	jne	LBB0_17
## %bb.6:
	movl	-44(%rbp), %edi
	shll	$5, %edi
	movq	_M_DEVBUF@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_M_NOWAIT@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_malloc
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	testq	%rax, %rax
	je	LBB0_7
## %bb.8:
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	movq	%r13, -72(%rbp)                 ## 8-byte Spill
	leaq	-48(%rbp), %rdi
	callq	_est_get_id16
	xorl	%r12d, %r12d
	cmpl	$0, -44(%rbp)
	movl	$0, %ebx
	jle	LBB0_16
## %bb.9:
	xorl	%r13d, %r13d
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	xorl	%ebx, %ebx
	jmp	LBB0_10
LBB0_2:
	movq	_ENXIO@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	jmp	LBB0_18
	.p2align	4, 0x90
LBB0_14:                                ##   in Loop: Header=BB0_10 Depth=1
	movq	(%r14), %rax
	movslq	%ebx, %rbx
	movq	%rbx, %rcx
	shlq	$5, %rcx
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	movq	%rax, (%rdx,%rcx)
	movl	28(%r14), %eax
	movl	%eax, 28(%rdx,%rcx)
	movq	16(%r14), %rax
	movl	(%rax), %eax
	movl	%eax, 24(%rdx,%rcx)
	movl	8(%r14), %eax
	movl	%eax, 8(%rdx,%rcx)
	incl	%ebx
LBB0_15:                                ##   in Loop: Header=BB0_10 Depth=1
	incq	%r13
	movslq	-44(%rbp), %rax
	addq	$32, %r14
	cmpq	%rax, %r13
	jge	LBB0_16
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	cmpq	$0, (%r14)
	jle	LBB0_15
## %bb.11:                              ##   in Loop: Header=BB0_10 Depth=1
	movq	16(%r14), %rax
	movl	(%rax), %esi
	movq	_strict@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	callq	_est_set_id16
	testl	%eax, %eax
	je	LBB0_14
## %bb.12:                              ##   in Loop: Header=BB0_10 Depth=1
	movq	_bootverbose@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_15
## %bb.13:                              ##   in Loop: Header=BB0_10 Depth=1
	movq	(%r14), %rdx
	movq	%r15, %rdi
	leaq	L_.str.1(%rip), %rsi
	callq	_device_printf
	jmp	LBB0_15
LBB0_4:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	jmp	LBB0_18
LBB0_16:
	movl	-48(%rbp), %esi
	movq	%r15, %rdi
	xorl	%edx, %edx
	callq	_est_set_id16
	movq	_TRUE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	-80(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, (%rcx)
	movq	-88(%rbp), %rax                 ## 8-byte Reload
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movq	%rcx, (%rax)
	movslq	%ebx, %rax
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	movq	%rax, (%rcx)
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	jmp	LBB0_17
LBB0_7:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
LBB0_17:
	movq	_M_TEMP@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_free
LBB0_18:
	movl	%r12d, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"acpi_perf"

	.comm	_ENXIO,4,2                      ## @ENXIO
	.comm	_MAX_SETTINGS,4,2               ## @MAX_SETTINGS
	.comm	_M_TEMP,4,2                     ## @M_TEMP
	.comm	_M_NOWAIT,4,2                   ## @M_NOWAIT
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_M_DEVBUF,4,2                   ## @M_DEVBUF
	.comm	_strict,4,2                     ## @strict
	.comm	_bootverbose,8,3                ## @bootverbose
L_.str.1:                               ## @.str.1
	.asciz	"Invalid freq %u, ignored.\n"

	.comm	_TRUE,4,2                       ## @TRUE
	.no_dead_strip	_est_acpi_info
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function est_acpi_info
_est_acpi_info:                         ; @est_acpi_info
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x2
	mov	x20, x1
	mov	x21, x0
	bl	_device_get_parent
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	w2, #-1
	bl	_device_find_child
	cbz	x0, LBB0_7
; %bb.1:
	mov	x24, x0
	bl	_device_is_attached
	cbz	w0, LBB0_7
; %bb.2:
	mov	x0, x21
	bl	_device_get_softc
	mov	x27, x0
Lloh2:
	adrp	x25, _MAX_SETTINGS@GOTPAGE
Lloh3:
	ldr	x25, [x25, _MAX_SETTINGS@GOTPAGEOFF]
	ldr	w8, [x25]
	lsl	w0, w8, #5
Lloh4:
	adrp	x26, _M_TEMP@GOTPAGE
Lloh5:
	ldr	x26, [x26, _M_TEMP@GOTPAGEOFF]
	ldr	w1, [x26]
Lloh6:
	adrp	x22, _M_NOWAIT@GOTPAGE
Lloh7:
	ldr	x22, [x22, _M_NOWAIT@GOTPAGEOFF]
	ldr	w2, [x22]
	bl	_malloc
	cbz	x0, LBB0_14
; %bb.3:
	mov	x23, x0
	ldr	w8, [x25]
	str	w8, [sp, #12]
	add	x2, sp, #12
	mov	x0, x24
	mov	x1, x23
	bl	_CPUFREQ_DRV_SETTINGS
	mov	x25, x0
	cbnz	w0, LBB0_18
; %bb.4:
	ldr	w8, [sp, #12]
	lsl	w0, w8, #5
Lloh8:
	adrp	x8, _M_DEVBUF@GOTPAGE
Lloh9:
	ldr	x8, [x8, _M_DEVBUF@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	ldr	w2, [x22]
	bl	_malloc
	cbz	x0, LBB0_15
; %bb.5:
	mov	x24, x0
	str	x27, [sp]                       ; 8-byte Folded Spill
	add	x0, sp, #8
	bl	_est_get_id16
	ldr	w8, [sp, #12]
	cmp	w8, #1
	b.lt	LBB0_16
; %bb.6:
	mov	x28, #0
	mov	w27, #0
Lloh11:
	adrp	x25, _strict@GOTPAGE
Lloh12:
	ldr	x25, [x25, _strict@GOTPAGEOFF]
	mov	x22, x23
	b	LBB0_10
LBB0_7:
Lloh13:
	adrp	x8, _ENXIO@GOTPAGE
Lloh14:
	ldr	x8, [x8, _ENXIO@GOTPAGEOFF]
Lloh15:
	ldr	w25, [x8]
	b	LBB0_19
LBB0_8:                                 ;   in Loop: Header=BB0_10 Depth=1
	ldr	x8, [x22]
	sxtw	x9, w27
	add	x9, x24, x9, lsl #5
	str	x8, [x9]
	ldr	w8, [x22, #28]
	str	w8, [x9, #28]
	ldr	x8, [x22, #16]
	ldr	w8, [x8]
	str	w8, [x9, #24]
	ldr	w8, [x22, #8]
	str	w8, [x9, #8]
	add	w27, w27, #1
LBB0_9:                                 ;   in Loop: Header=BB0_10 Depth=1
	add	x28, x28, #1
	ldrsw	x8, [sp, #12]
	add	x22, x22, #32
	cmp	x28, x8
	b.ge	LBB0_17
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x22]
	cmp	x8, #1
	b.lt	LBB0_9
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=1
	ldr	x8, [x22, #16]
	ldr	w1, [x8]
	ldr	w2, [x25]
	mov	x0, x21
	bl	_est_set_id16
	cbz	w0, LBB0_8
; %bb.12:                               ;   in Loop: Header=BB0_10 Depth=1
Lloh16:
	adrp	x8, _bootverbose@GOTPAGE
Lloh17:
	ldr	x8, [x8, _bootverbose@GOTPAGEOFF]
Lloh18:
	ldr	x8, [x8]
	cbz	x8, LBB0_9
; %bb.13:                               ;   in Loop: Header=BB0_10 Depth=1
	ldr	x2, [x22]
	mov	x0, x21
Lloh19:
	adrp	x1, l_.str.1@PAGE
Lloh20:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_device_printf
	b	LBB0_9
LBB0_14:
Lloh21:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh22:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh23:
	ldr	w25, [x8]
	b	LBB0_19
LBB0_15:
Lloh24:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh25:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh26:
	ldr	w25, [x8]
	b	LBB0_18
LBB0_16:
	mov	w27, #0
LBB0_17:
	ldr	w1, [sp, #8]
	mov	x0, x21
	mov	w2, #0
	bl	_est_set_id16
	mov	w25, #0
Lloh27:
	adrp	x8, _TRUE@GOTPAGE
Lloh28:
	ldr	x8, [x8, _TRUE@GOTPAGEOFF]
Lloh29:
	ldr	w8, [x8]
	ldr	x9, [sp]                        ; 8-byte Folded Reload
	str	w8, [x9]
	str	x24, [x20]
                                        ; kill: def $w27 killed $w27 killed $x27 def $x27
	sxtw	x8, w27
	str	x8, [x19]
LBB0_18:
	ldr	w1, [x26]
	mov	x0, x23
	bl	_free
LBB0_19:
	mov	x0, x25
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"acpi_perf"

	.comm	_ENXIO,4,2                      ; @ENXIO
	.comm	_MAX_SETTINGS,4,2               ; @MAX_SETTINGS
	.comm	_M_TEMP,4,2                     ; @M_TEMP
	.comm	_M_NOWAIT,4,2                   ; @M_NOWAIT
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_M_DEVBUF,4,2                   ; @M_DEVBUF
	.comm	_strict,4,2                     ; @strict
	.comm	_bootverbose,8,3                ; @bootverbose
l_.str.1:                               ; @.str.1
	.asciz	"Invalid freq %u, ignored.\n"

	.comm	_TRUE,4,2                       ; @TRUE
	.no_dead_strip	_est_acpi_info
.subsections_via_symbols
