	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function acpi_handle_fadt
_acpi_handle_fadt:                      ## @acpi_handle_fadt
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r12
	callq	_acpi_print_fadt
	movq	%r12, %rdi
	callq	_acpi_get_fadt_revision
	movl	%eax, %r14d
	xorl	%eax, %eax
	cmpl	$1, %r14d
	sete	%al
	movl	8(%r12,%rax,4), %edi
	callq	_acpi_map_sdt
	movq	%rax, %r15
	movl	4(%rax), %edi
	movq	_ACPI_SIG_FACS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$4, %edx
	callq	_memcmp
	testq	%rax, %rax
	jne	LBB0_2
## %bb.1:
	cmpl	$63, (%r15)
	jg	LBB0_3
LBB0_2:
	leaq	L_.str(%rip), %rsi
	movl	$1, %edi
	callq	_errx
LBB0_3:
	xorl	%ebx, %ebx
	cmpl	$1, %r14d
	sete	%bl
	movq	%r15, %rdi
	callq	_acpi_print_facs
	movl	(%r12,%rbx,4), %edi
	callq	_acpi_map_sdt
	movq	%rax, %rbx
	movl	(%rax), %esi
	movq	%rax, %rdi
	callq	_acpi_checksum
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	leaq	L_.str.1(%rip), %rsi
	movl	$1, %edi
	callq	_errx
LBB0_5:
	movq	%rbx, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_acpi_print_dsdt                ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_ACPI_SIG_FACS,4,2              ## @ACPI_SIG_FACS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"FACS is corrupt"

L_.str.1:                               ## @.str.1
	.asciz	"DSDT is corrupt"

	.no_dead_strip	_acpi_handle_fadt
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function acpi_handle_fadt
_acpi_handle_fadt:                      ; @acpi_handle_fadt
	.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, x0
	bl	_acpi_print_fadt
	mov	x0, x19
	bl	_acpi_get_fadt_revision
	mov	x20, x0
	cmp	w0, #1
	mov	w8, #8
	mov	w9, #12
	csel	x8, x9, x8, eq
	ldr	w0, [x19, x8]
	bl	_acpi_map_sdt
	mov	x21, x0
	ldr	w0, [x0, #4]
Lloh0:
	adrp	x8, _ACPI_SIG_FACS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ACPI_SIG_FACS@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	w2, #4
	bl	_memcmp
	cbnz	x0, LBB0_2
; %bb.1:
	ldr	w8, [x21]
	cmp	w8, #63
	b.gt	LBB0_3
LBB0_2:
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #1
	bl	_errx
LBB0_3:
	cmp	w20, #1
	cset	w20, eq
	mov	x0, x21
	bl	_acpi_print_facs
	ldr	w0, [x19, w20, uxtw #2]
	bl	_acpi_map_sdt
	mov	x19, x0
	ldr	w1, [x0]
	bl	_acpi_checksum
	cbz	x0, LBB0_5
; %bb.4:
Lloh5:
	adrp	x1, l_.str.1@PAGE
Lloh6:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	w0, #1
	bl	_errx
LBB0_5:
	mov	x0, x19
	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_print_dsdt
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_ACPI_SIG_FACS,4,2              ; @ACPI_SIG_FACS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"FACS is corrupt"

l_.str.1:                               ; @.str.1
	.asciz	"DSDT is corrupt"

	.no_dead_strip	_acpi_handle_fadt
.subsections_via_symbols
