	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_acpi_find_table                ## -- Begin function acpi_find_table
	.p2align	4, 0x90
_acpi_find_table:                       ## @acpi_find_table
	.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
	movq	%rdi, %r14
	leaq	L_.str(%rip), %rdi
	xorl	%r13d, %r13d
	xorl	%esi, %esi
	callq	_resource_disabled
	testq	%rax, %rax
	jne	LBB0_1
## %bb.2:
	xorl	%r13d, %r13d
	xorl	%eax, %eax
	callq	_AcpiOsGetRootPointer
	testl	%eax, %eax
	je	LBB0_1
## %bb.3:
	movl	%eax, %edi
	movl	$24, %esi
	callq	_pmap_mapbios
	testq	%rax, %rax
	je	LBB0_15
## %bb.4:
	movq	%rax, %r15
	cmpl	$2, (%rax)
	jl	LBB0_9
## %bb.5:
	cmpq	$0, 8(%r15)
	je	LBB0_9
## %bb.6:
	movq	_ACPI_RSDP_XCHECKSUM_LENGTH@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_AcpiTbChecksum
	testq	%rax, %rax
	je	LBB0_32
## %bb.7:
	movq	_bootverbose@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_20
## %bb.8:
	leaq	L_str.8(%rip), %rdi
	jmp	LBB0_19
LBB0_9:
	movq	16(%r15), %rdi
	movq	_ACPI_SIG_RSDT@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	movl	$2, %esi
	callq	_map_table
	testq	%rax, %rax
	je	LBB0_17
## %bb.10:
	movq	%rax, %r12
	movslq	8(%rax), %rcx
	movabsq	$17179869168, %rax              ## imm = 0x3FFFFFFF0
	addq	%rcx, %rax
	shrq	$2, %rax
	testl	%eax, %eax
	jle	LBB0_42
## %bb.11:
	movq	%r15, -48(%rbp)                 ## 8-byte Spill
	movl	%eax, %r15d
	xorl	%r13d, %r13d
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_12:                                ## =>This Inner Loop Header: Depth=1
	movq	(%r12), %rax
	movq	(%rax,%rbx,8), %rdi
	movq	%r14, %rsi
	callq	_probe_table
	testq	%rax, %rax
	jne	LBB0_22
## %bb.13:                              ##   in Loop: Header=BB0_12 Depth=1
	incq	%rbx
	cmpq	%rbx, %r15
	jne	LBB0_12
## %bb.14:
	movq	-48(%rbp), %r15                 ## 8-byte Reload
	jmp	LBB0_24
LBB0_15:
	movq	_bootverbose@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_20
## %bb.16:
	leaq	L_str.9(%rip), %rdi
	jmp	LBB0_19
LBB0_17:
	movq	_bootverbose@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_20
## %bb.18:
	leaq	L_str(%rip), %rdi
LBB0_19:
	callq	_puts
LBB0_20:
	xorl	%r13d, %r13d
LBB0_1:
	movq	%r13, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_22:
	movq	-48(%rbp), %r15                 ## 8-byte Reload
LBB0_23:
	movl	%ebx, %eax
	movq	(%r12), %rcx
	movq	(%rcx,%rax,8), %r13
	jmp	LBB0_24
LBB0_32:
	movq	8(%r15), %rdi
	movq	_ACPI_SIG_XSDT@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	movl	$2, %esi
	callq	_map_table
	testq	%rax, %rax
	je	LBB0_40
## %bb.33:
	movq	%rax, %r12
	movslq	8(%rax), %rcx
	movabsq	$17179869168, %rax              ## imm = 0x3FFFFFFF0
	addq	%rcx, %rax
	shrq	$2, %rax
	testl	%eax, %eax
	jle	LBB0_42
## %bb.34:
	movl	%eax, %eax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	xorl	%r13d, %r13d
	xorl	%ebx, %ebx
LBB0_35:                                ## =>This Inner Loop Header: Depth=1
	movq	(%r12), %rax
	movq	(%rax,%rbx,8), %rdi
	movq	%r14, %rsi
	callq	_probe_table
	testq	%rax, %rax
	jne	LBB0_23
## %bb.36:                              ##   in Loop: Header=BB0_35 Depth=1
	incq	%rbx
	cmpq	%rbx, -48(%rbp)                 ## 8-byte Folded Reload
	jne	LBB0_35
	jmp	LBB0_24
LBB0_42:
	xorl	%r13d, %r13d
LBB0_24:
	movq	%r12, %rdi
	callq	_acpi_unmap_table
	movl	%r15d, %edi
	movl	$24, %esi
	callq	_pmap_unmapbios
	movq	_bootverbose@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	testq	%r13, %r13
	je	LBB0_29
## %bb.25:
	testq	%rax, %rax
	je	LBB0_27
## %bb.26:
	leaq	L_.str.6(%rip), %rdi
	movq	%r14, %rsi
	movl	%r13d, %edx
	xorl	%eax, %eax
	callq	_printf
LBB0_27:
	movq	%r13, %rdi
	xorl	%esi, %esi
	movq	%r14, %rdx
	callq	_map_table
	testq	%rax, %rax
	je	LBB0_20
## %bb.28:
	movq	%rax, %rdi
	callq	_acpi_unmap_table
	jmp	LBB0_1
LBB0_29:
	testq	%rax, %rax
	je	LBB0_20
## %bb.30:
	leaq	L_.str.5(%rip), %rdi
	xorl	%r13d, %r13d
	movq	%r14, %rsi
	xorl	%eax, %eax
	callq	_printf
	jmp	LBB0_1
LBB0_40:
	movq	_bootverbose@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_20
## %bb.41:
	leaq	L_str.7(%rip), %rdi
	jmp	LBB0_19
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"acpi"

	.comm	_bootverbose,8,3                ## @bootverbose
	.comm	_ACPI_RSDP_XCHECKSUM_LENGTH,4,2 ## @ACPI_RSDP_XCHECKSUM_LENGTH
	.comm	_ACPI_SIG_XSDT,8,3              ## @ACPI_SIG_XSDT
	.comm	_ACPI_SIG_RSDT,8,3              ## @ACPI_SIG_RSDT
L_.str.5:                               ## @.str.5
	.asciz	"ACPI: No %s table found\n"

L_.str.6:                               ## @.str.6
	.asciz	"%s: Found table at 0x%jx\n"

L_str:                                  ## @str
	.asciz	"ACPI: Failed to map RSDT"

L_str.7:                                ## @str.7
	.asciz	"ACPI: Failed to map XSDT"

L_str.8:                                ## @str.8
	.asciz	"ACPI: RSDP failed extended checksum"

L_str.9:                                ## @str.9
	.asciz	"ACPI: Failed to map RSDP"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_acpi_find_table                ; -- Begin function acpi_find_table
	.p2align	2
_acpi_find_table:                       ; @acpi_find_table
	.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	x19, x0
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	mov	w1, #0
	bl	_resource_disabled
	cbz	x0, LBB0_3
LBB0_1:
	mov	x22, #0
LBB0_2:
	mov	x0, x22
	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
LBB0_3:
	bl	_AcpiOsGetRootPointer
	cbz	w0, LBB0_1
; %bb.4:
	mov	w1, #24
	bl	_pmap_mapbios
	cbz	x0, LBB0_16
; %bb.5:
	mov	x20, x0
	ldr	w8, [x0]
	cmp	w8, #2
	b.lt	LBB0_10
; %bb.6:
	ldr	x8, [x20, #8]
	cbz	x8, LBB0_10
; %bb.7:
Lloh2:
	adrp	x8, _ACPI_RSDP_XCHECKSUM_LENGTH@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ACPI_RSDP_XCHECKSUM_LENGTH@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_AcpiTbChecksum
	cbz	x0, LBB0_21
; %bb.8:
Lloh5:
	adrp	x8, _bootverbose@GOTPAGE
Lloh6:
	ldr	x8, [x8, _bootverbose@GOTPAGEOFF]
Lloh7:
	ldr	x8, [x8]
	cbz	x8, LBB0_1
; %bb.9:
Lloh8:
	adrp	x0, l_str.8@PAGE
Lloh9:
	add	x0, x0, l_str.8@PAGEOFF
	b	LBB0_20
LBB0_10:
	ldr	x0, [x20, #16]
Lloh10:
	adrp	x8, _ACPI_SIG_RSDT@GOTPAGE
Lloh11:
	ldr	x8, [x8, _ACPI_SIG_RSDT@GOTPAGEOFF]
Lloh12:
	ldr	x2, [x8]
	mov	w1, #2
	bl	_map_table
	cbz	x0, LBB0_18
; %bb.11:
	mov	x21, x0
	ldrsw	x8, [x0, #8]
	mov	x9, #17179869168
	add	x8, x8, x9
	lsr	x9, x8, #2
	cmp	w9, #1
	b.lt	LBB0_15
; %bb.12:
	mov	x22, #0
	ubfx	x23, x8, #2, #32
LBB0_13:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x21]
	ldr	x0, [x8, x22, lsl #3]
	mov	x1, x19
	bl	_probe_table
	cbnz	x0, LBB0_26
; %bb.14:                               ;   in Loop: Header=BB0_13 Depth=1
	add	x22, x22, #1
	cmp	x23, x22
	b.ne	LBB0_13
LBB0_15:
	mov	x22, #0
	b	LBB0_27
LBB0_16:
Lloh13:
	adrp	x8, _bootverbose@GOTPAGE
Lloh14:
	ldr	x8, [x8, _bootverbose@GOTPAGEOFF]
Lloh15:
	ldr	x8, [x8]
	cbz	x8, LBB0_1
; %bb.17:
Lloh16:
	adrp	x0, l_str.9@PAGE
Lloh17:
	add	x0, x0, l_str.9@PAGEOFF
	b	LBB0_20
LBB0_18:
Lloh18:
	adrp	x8, _bootverbose@GOTPAGE
Lloh19:
	ldr	x8, [x8, _bootverbose@GOTPAGEOFF]
Lloh20:
	ldr	x8, [x8]
	cbz	x8, LBB0_1
; %bb.19:
Lloh21:
	adrp	x0, l_str@PAGE
Lloh22:
	add	x0, x0, l_str@PAGEOFF
LBB0_20:
	bl	_puts
	b	LBB0_1
LBB0_21:
	ldr	x0, [x20, #8]
Lloh23:
	adrp	x8, _ACPI_SIG_XSDT@GOTPAGE
Lloh24:
	ldr	x8, [x8, _ACPI_SIG_XSDT@GOTPAGEOFF]
Lloh25:
	ldr	x2, [x8]
	mov	w1, #2
	bl	_map_table
	cbz	x0, LBB0_34
; %bb.22:
	mov	x21, x0
	ldrsw	x8, [x0, #8]
	mov	x9, #17179869168
	add	x8, x8, x9
	lsr	x9, x8, #2
	cmp	w9, #1
	b.lt	LBB0_15
; %bb.23:
	mov	x22, #0
	ubfx	x23, x8, #2, #32
LBB0_24:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x21]
	ldr	x0, [x8, x22, lsl #3]
	mov	x1, x19
	bl	_probe_table
	cbnz	x0, LBB0_26
; %bb.25:                               ;   in Loop: Header=BB0_24 Depth=1
	add	x22, x22, #1
	cmp	x23, x22
	b.ne	LBB0_24
	b	LBB0_15
LBB0_26:
	ldr	x8, [x21]
	ldr	x22, [x8, w22, uxtw #3]
LBB0_27:
	mov	x0, x21
	bl	_acpi_unmap_table
	mov	x0, x20
	mov	w1, #24
	bl	_pmap_unmapbios
Lloh26:
	adrp	x8, _bootverbose@GOTPAGE
Lloh27:
	ldr	x8, [x8, _bootverbose@GOTPAGEOFF]
Lloh28:
	ldr	x8, [x8]
	cbz	x22, LBB0_32
; %bb.28:
	cbz	x8, LBB0_30
; %bb.29:
	stp	x19, x22, [sp]
Lloh29:
	adrp	x0, l_.str.6@PAGE
Lloh30:
	add	x0, x0, l_.str.6@PAGEOFF
	bl	_printf
LBB0_30:
	mov	x0, x22
	mov	w1, #0
	mov	x2, x19
	bl	_map_table
	cbz	x0, LBB0_1
; %bb.31:
	bl	_acpi_unmap_table
	b	LBB0_2
LBB0_32:
	cbz	x8, LBB0_1
; %bb.33:
	str	x19, [sp]
Lloh31:
	adrp	x0, l_.str.5@PAGE
Lloh32:
	add	x0, x0, l_.str.5@PAGEOFF
	bl	_printf
	b	LBB0_1
LBB0_34:
Lloh33:
	adrp	x8, _bootverbose@GOTPAGE
Lloh34:
	ldr	x8, [x8, _bootverbose@GOTPAGEOFF]
Lloh35:
	ldr	x8, [x8]
	cbz	x8, LBB0_1
; %bb.35:
Lloh36:
	adrp	x0, l_str.7@PAGE
Lloh37:
	add	x0, x0, l_str.7@PAGEOFF
	b	LBB0_20
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpAdd	Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpAdd	Lloh36, Lloh37
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"acpi"

	.comm	_bootverbose,8,3                ; @bootverbose
	.comm	_ACPI_RSDP_XCHECKSUM_LENGTH,4,2 ; @ACPI_RSDP_XCHECKSUM_LENGTH
	.comm	_ACPI_SIG_XSDT,8,3              ; @ACPI_SIG_XSDT
	.comm	_ACPI_SIG_RSDT,8,3              ; @ACPI_SIG_RSDT
l_.str.5:                               ; @.str.5
	.asciz	"ACPI: No %s table found\n"

l_.str.6:                               ; @.str.6
	.asciz	"%s: Found table at 0x%jx\n"

l_str:                                  ; @str
	.asciz	"ACPI: Failed to map RSDT"

l_str.7:                                ; @str.7
	.asciz	"ACPI: Failed to map XSDT"

l_str.8:                                ; @str.8
	.asciz	"ACPI: RSDP failed extended checksum"

l_str.9:                                ; @str.9
	.asciz	"ACPI: Failed to map RSDP"

.subsections_via_symbols
