	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function acpi_pcc_retrieve_biosdata
_acpi_pcc_retrieve_biosdata:            ## @acpi_pcc_retrieve_biosdata
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r12
	movq	_ACPI_ALLOCATE_BUFFER@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	movq	%rax, -72(%rbp)
	movq	$0, -64(%rbp)
	movl	$0, -56(%rbp)
	movl	16(%rdi), %edi
	movq	_METHOD_HKEY_SINF@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%ebx, %ebx
	leaq	-72(%rbp), %rcx
	xorl	%edx, %edx
	callq	_acpi_evaluate_object
	movq	%rax, %r14
	movq	%rax, %rdi
	callq	_ACPI_FAILURE
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rdi
                                        ## kill: def $edi killed $edi killed $rdi
	callq	_ACPI_DEBUG_PRINT
	jmp	LBB0_18
LBB0_2:
	movq	-72(%rbp), %r13
	testq	%r13, %r13
	je	LBB0_4
## %bb.3:
	movq	(%r13), %rax
	movq	_ACPI_TYPE_PACKAGE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_4
## %bb.6:
	cmpl	%eax, (%r12)
	jge	LBB0_7
## %bb.9:
	leaq	L_.str.2(%rip), %rdi
	jmp	LBB0_5
LBB0_4:
	leaq	L_.str.1(%rip), %rdi
LBB0_5:
                                        ## kill: def $edi killed $edi killed $rdi
	callq	_ACPI_DEBUG_PRINT
	movq	_AE_ERROR@GOTPCREL(%rip), %rax
	movq	(%rax), %r14
LBB0_17:
	movq	-72(%rbp), %rdi
	callq	_kfree
	movq	_AE_OK@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	cmpq	(%rax), %r14
	sete	%bl
LBB0_18:
	movl	%ebx, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	testl	%eax, %eax
	jle	LBB0_8
## %bb.10:
	movq	%r14, -48(%rbp)                 ## 8-byte Spill
	xorl	%ebx, %ebx
	xorl	%r15d, %r15d
	jmp	LBB0_11
	.p2align	4, 0x90
LBB0_13:                                ##   in Loop: Header=BB0_11 Depth=1
	leaq	L_.str.3(%rip), %rdi
                                        ## kill: def $edi killed $edi killed $rdi
	callq	_ACPI_DEBUG_PRINT
LBB0_14:                                ##   in Loop: Header=BB0_11 Depth=1
	incq	%r15
	movslq	(%r13), %rax
	addq	$4, %rbx
	cmpq	%rax, %r15
	jge	LBB0_15
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	movq	8(%r13), %r14
	movq	(%r14,%rbx,4), %rax
	xorl	%edi, %edi
	movq	_ACPI_TYPE_INTEGER@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	sete	%dil
	callq	_likely
	testq	%rax, %rax
	je	LBB0_13
## %bb.12:                              ##   in Loop: Header=BB0_11 Depth=1
	movl	(%r14,%rbx,4), %eax
	movq	8(%r12), %rcx
	movl	%eax, (%rcx,%rbx)
	jmp	LBB0_14
LBB0_15:
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	jmp	LBB0_16
LBB0_8:
	cltq
LBB0_16:
	movq	8(%r12), %rcx
	movl	$-1, (%rcx,%rax,4)
	jmp	LBB0_17
	.cfi_endproc
                                        ## -- End function
	.comm	_ACPI_ALLOCATE_BUFFER,4,2       ## @ACPI_ALLOCATE_BUFFER
	.comm	_METHOD_HKEY_SINF,4,2           ## @METHOD_HKEY_SINF
	.comm	_ACPI_DB_ERROR,4,2              ## @ACPI_DB_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"evaluation error HKEY.SINF\n"

	.comm	_ACPI_TYPE_PACKAGE,8,3          ## @ACPI_TYPE_PACKAGE
L_.str.1:                               ## @.str.1
	.asciz	"Invalid HKEY.SINF\n"

	.comm	_AE_ERROR,8,3                   ## @AE_ERROR
L_.str.2:                               ## @.str.2
	.asciz	"SQTY reports bad SINF length\n"

	.comm	_ACPI_TYPE_INTEGER,8,3          ## @ACPI_TYPE_INTEGER
L_.str.3:                               ## @.str.3
	.asciz	"Invalid HKEY.SINF data\n"

	.comm	_AE_OK,8,3                      ## @AE_OK
	.no_dead_strip	_acpi_pcc_retrieve_biosdata
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function acpi_pcc_retrieve_biosdata
_acpi_pcc_retrieve_biosdata:            ; @acpi_pcc_retrieve_biosdata
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	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
	mov	x20, x0
Lloh0:
	adrp	x8, _ACPI_ALLOCATE_BUFFER@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ACPI_ALLOCATE_BUFFER@GOTPAGEOFF]
Lloh2:
	ldrsw	x8, [x8]
	stp	x8, xzr, [sp, #8]
	str	wzr, [sp, #24]
	ldr	w0, [x0, #16]
Lloh3:
	adrp	x8, _METHOD_HKEY_SINF@GOTPAGE
Lloh4:
	ldr	x8, [x8, _METHOD_HKEY_SINF@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	add	x3, sp, #8
	mov	x2, #0
	bl	_acpi_evaluate_object
	mov	x19, x0
	bl	_ACPI_FAILURE
	cbz	x0, LBB0_2
; %bb.1:
Lloh6:
	adrp	x0, l_.str@PAGE
Lloh7:
	add	x0, x0, l_.str@PAGEOFF
                                        ; kill: def $w0 killed $w0 killed $x0
	bl	_ACPI_DEBUG_PRINT
	mov	w0, #0
	b	LBB0_9
LBB0_2:
	ldr	x22, [sp, #8]
	cbz	x22, LBB0_6
; %bb.3:
	ldr	x8, [x22]
Lloh8:
	adrp	x9, _ACPI_TYPE_PACKAGE@GOTPAGE
Lloh9:
	ldr	x9, [x9, _ACPI_TYPE_PACKAGE@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_6
; %bb.4:
	ldr	w9, [x20]
	cmp	w9, w8
	b.ge	LBB0_10
; %bb.5:
Lloh11:
	adrp	x0, l_.str.2@PAGE
Lloh12:
	add	x0, x0, l_.str.2@PAGEOFF
	b	LBB0_7
LBB0_6:
Lloh13:
	adrp	x0, l_.str.1@PAGE
Lloh14:
	add	x0, x0, l_.str.1@PAGEOFF
LBB0_7:
                                        ; kill: def $w0 killed $w0 killed $x0
	bl	_ACPI_DEBUG_PRINT
Lloh15:
	adrp	x8, _AE_ERROR@GOTPAGE
Lloh16:
	ldr	x8, [x8, _AE_ERROR@GOTPAGEOFF]
Lloh17:
	ldr	x19, [x8]
LBB0_8:
	ldr	x0, [sp, #8]
	bl	_kfree
Lloh18:
	adrp	x8, _AE_OK@GOTPAGE
Lloh19:
	ldr	x8, [x8, _AE_OK@GOTPAGEOFF]
Lloh20:
	ldr	x8, [x8]
	cmp	x19, x8
	cset	w0, eq
LBB0_9:
	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
	add	sp, sp, #112
	ret
LBB0_10:
	cmp	w8, #0
	b.le	LBB0_16
; %bb.11:
	mov	x23, #0
	mov	x24, #0
Lloh21:
	adrp	x25, _ACPI_TYPE_INTEGER@GOTPAGE
Lloh22:
	ldr	x25, [x25, _ACPI_TYPE_INTEGER@GOTPAGEOFF]
Lloh23:
	adrp	x21, l_.str.3@PAGE
Lloh24:
	add	x21, x21, l_.str.3@PAGEOFF
	b	LBB0_14
LBB0_12:                                ;   in Loop: Header=BB0_14 Depth=1
	mov	x0, x21
	bl	_ACPI_DEBUG_PRINT
LBB0_13:                                ;   in Loop: Header=BB0_14 Depth=1
	add	x24, x24, #1
	ldrsw	x8, [x22]
	add	x23, x23, #16
	cmp	x24, x8
	b.ge	LBB0_17
LBB0_14:                                ; =>This Inner Loop Header: Depth=1
	ldr	x26, [x22, #8]
	ldr	x8, [x26, x23]
	ldr	x9, [x25]
	cmp	x8, x9
	cset	w0, eq
	bl	_likely
	cbz	x0, LBB0_12
; %bb.15:                               ;   in Loop: Header=BB0_14 Depth=1
	ldr	w8, [x26, x23]
	ldr	x9, [x20, #8]
	str	w8, [x9, x24, lsl #2]
	b	LBB0_13
LBB0_16:
	sxtw	x8, w8
LBB0_17:
	ldr	x9, [x20, #8]
	mov	w10, #-1
	str	w10, [x9, x8, lsl #2]
	b	LBB0_8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_ACPI_ALLOCATE_BUFFER,4,2       ; @ACPI_ALLOCATE_BUFFER
	.comm	_METHOD_HKEY_SINF,4,2           ; @METHOD_HKEY_SINF
	.comm	_ACPI_DB_ERROR,4,2              ; @ACPI_DB_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"evaluation error HKEY.SINF\n"

	.comm	_ACPI_TYPE_PACKAGE,8,3          ; @ACPI_TYPE_PACKAGE
l_.str.1:                               ; @.str.1
	.asciz	"Invalid HKEY.SINF\n"

	.comm	_AE_ERROR,8,3                   ; @AE_ERROR
l_.str.2:                               ; @.str.2
	.asciz	"SQTY reports bad SINF length\n"

	.comm	_ACPI_TYPE_INTEGER,8,3          ; @ACPI_TYPE_INTEGER
l_.str.3:                               ; @.str.3
	.asciz	"Invalid HKEY.SINF data\n"

	.comm	_AE_OK,8,3                      ; @AE_OK
	.no_dead_strip	_acpi_pcc_retrieve_biosdata
.subsections_via_symbols
