	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_biosacpi_detect                ## -- Begin function biosacpi_detect
	.p2align	4, 0x90
_biosacpi_detect:                       ## @biosacpi_detect
	.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	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	xorl	%eax, %eax
	callq	_biosacpi_find_rsdp
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	movq	%rax, %r14
	movq	%rax, %rdi
	callq	_VTOP
	leaq	L_.str(%rip), %r15
	leaq	-80(%rbp), %r12
	movq	%r12, %rdi
	movq	%r15, %rsi
	movl	%eax, %edx
	callq	_sprintf
	leaq	L_.str.1(%rip), %rdi
	movl	$1, %r13d
	movq	%r12, %rsi
	movl	$1, %edx
	callq	_setenv
	leaq	L_.str.2(%rip), %rdi
	movq	%r12, %rsi
	movl	$1, %edx
	callq	_setenv
	movl	(%r14), %ebx
	testl	%ebx, %ebx
	cmovel	%r13d, %ebx
	leaq	L_.str.3(%rip), %rsi
	movq	%r12, %rdi
	movl	%ebx, %edx
	callq	_sprintf
	leaq	L_.str.4(%rip), %rdi
	movq	%r12, %rsi
	movl	$1, %edx
	callq	_setenv
	leaq	L_.str.5(%rip), %rdi
	movq	%r12, %rsi
	movl	$1, %edx
	callq	_setenv
	movl	16(%r14), %esi
	movq	%r12, %rdi
	movl	$4, %edx
	callq	_strncpy
	movb	$0, -76(%rbp)
	leaq	L_.str.6(%rip), %rdi
	movq	%r12, %rsi
	movl	$1, %edx
	callq	_setenv
	leaq	L_.str.7(%rip), %rdi
	movq	%r12, %rsi
	movl	$1, %edx
	callq	_setenv
	movl	4(%r14), %edx
	movq	%r12, %rdi
	movq	%r15, %rsi
	callq	_sprintf
	leaq	L_.str.8(%rip), %rdi
	movq	%r12, %rsi
	movl	$1, %edx
	callq	_setenv
	leaq	L_.str.9(%rip), %rdi
	movq	%r12, %rsi
	movl	$1, %edx
	callq	_setenv
	cmpl	$2, %ebx
	jl	LBB0_3
## %bb.2:
	movl	8(%r14), %edx
	leaq	L_.str.10(%rip), %rsi
	leaq	-80(%rbp), %rbx
	movq	%rbx, %rdi
	callq	_sprintf
	leaq	L_.str.11(%rip), %rdi
	movq	%rbx, %rsi
	movl	$1, %edx
	callq	_setenv
	leaq	L_.str.12(%rip), %rdi
	movq	%rbx, %rsi
	movl	$1, %edx
	callq	_setenv
	movl	12(%r14), %edx
	leaq	L_.str.3(%rip), %rsi
	movq	%rbx, %rdi
	callq	_sprintf
	leaq	L_.str.13(%rip), %rdi
	movq	%rbx, %rsi
	movl	$1, %edx
	callq	_setenv
	leaq	L_.str.14(%rip), %rdi
	movq	%rbx, %rsi
	movl	$1, %edx
	callq	_setenv
LBB0_3:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_5
## %bb.4:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"0x%08x"

L_.str.1:                               ## @.str.1
	.asciz	"hint.acpi.0.rsdp"

L_.str.2:                               ## @.str.2
	.asciz	"acpi.rsdp"

L_.str.3:                               ## @.str.3
	.asciz	"%d"

L_.str.4:                               ## @.str.4
	.asciz	"hint.acpi.0.revision"

L_.str.5:                               ## @.str.5
	.asciz	"acpi.revision"

L_.str.6:                               ## @.str.6
	.asciz	"hint.acpi.0.oem"

L_.str.7:                               ## @.str.7
	.asciz	"acpi.oem"

L_.str.8:                               ## @.str.8
	.asciz	"hint.acpi.0.rsdt"

L_.str.9:                               ## @.str.9
	.asciz	"acpi.rsdt"

L_.str.10:                              ## @.str.10
	.asciz	"0x%016llx"

L_.str.11:                              ## @.str.11
	.asciz	"hint.acpi.0.xsdt"

L_.str.12:                              ## @.str.12
	.asciz	"acpi.xsdt"

L_.str.13:                              ## @.str.13
	.asciz	"hint.acpi.0.xsdt_length"

L_.str.14:                              ## @.str.14
	.asciz	"acpi.xsdt_length"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_biosacpi_detect                ; -- Begin function biosacpi_detect
	.p2align	2
_biosacpi_detect:                       ; @biosacpi_detect
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	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
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #24]
	bl	_biosacpi_find_rsdp
	cbz	x0, LBB0_3
; %bb.1:
	mov	x19, x0
	bl	_VTOP
	mov	x2, x0
Lloh3:
	adrp	x20, l_.str@PAGE
Lloh4:
	add	x20, x20, l_.str@PAGEOFF
	mov	x0, sp
	mov	x1, x20
	bl	_sprintf
Lloh5:
	adrp	x0, l_.str.1@PAGE
Lloh6:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, sp
	mov	w2, #1
	bl	_setenv
Lloh7:
	adrp	x0, l_.str.2@PAGE
Lloh8:
	add	x0, x0, l_.str.2@PAGEOFF
	mov	x1, sp
	mov	w2, #1
	bl	_setenv
	ldr	w8, [x19]
	cmp	w8, #0
	csinc	w21, w8, wzr, ne
Lloh9:
	adrp	x1, l_.str.3@PAGE
Lloh10:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, sp
	mov	x2, x21
	bl	_sprintf
Lloh11:
	adrp	x0, l_.str.4@PAGE
Lloh12:
	add	x0, x0, l_.str.4@PAGEOFF
	mov	x1, sp
	mov	w2, #1
	bl	_setenv
Lloh13:
	adrp	x0, l_.str.5@PAGE
Lloh14:
	add	x0, x0, l_.str.5@PAGEOFF
	mov	x1, sp
	mov	w2, #1
	bl	_setenv
	ldr	w1, [x19, #16]
	mov	x0, sp
	mov	w2, #4
	bl	_strncpy
	strb	wzr, [sp, #4]
Lloh15:
	adrp	x0, l_.str.6@PAGE
Lloh16:
	add	x0, x0, l_.str.6@PAGEOFF
	mov	x1, sp
	mov	w2, #1
	bl	_setenv
Lloh17:
	adrp	x0, l_.str.7@PAGE
Lloh18:
	add	x0, x0, l_.str.7@PAGEOFF
	mov	x1, sp
	mov	w2, #1
	bl	_setenv
	ldr	w2, [x19, #4]
	mov	x0, sp
	mov	x1, x20
	bl	_sprintf
Lloh19:
	adrp	x0, l_.str.8@PAGE
Lloh20:
	add	x0, x0, l_.str.8@PAGEOFF
	mov	x1, sp
	mov	w2, #1
	bl	_setenv
Lloh21:
	adrp	x0, l_.str.9@PAGE
Lloh22:
	add	x0, x0, l_.str.9@PAGEOFF
	mov	x1, sp
	mov	w2, #1
	bl	_setenv
	cmp	w21, #2
	b.lt	LBB0_3
; %bb.2:
	ldr	w2, [x19, #8]
Lloh23:
	adrp	x1, l_.str.10@PAGE
Lloh24:
	add	x1, x1, l_.str.10@PAGEOFF
	mov	x0, sp
	bl	_sprintf
Lloh25:
	adrp	x0, l_.str.11@PAGE
Lloh26:
	add	x0, x0, l_.str.11@PAGEOFF
	mov	x1, sp
	mov	w2, #1
	bl	_setenv
Lloh27:
	adrp	x0, l_.str.12@PAGE
Lloh28:
	add	x0, x0, l_.str.12@PAGEOFF
	mov	x1, sp
	mov	w2, #1
	bl	_setenv
	ldr	w2, [x19, #12]
Lloh29:
	adrp	x1, l_.str.3@PAGE
Lloh30:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, sp
	bl	_sprintf
Lloh31:
	adrp	x0, l_.str.13@PAGE
Lloh32:
	add	x0, x0, l_.str.13@PAGEOFF
	mov	x1, sp
	mov	w2, #1
	bl	_setenv
Lloh33:
	adrp	x0, l_.str.14@PAGE
Lloh34:
	add	x0, x0, l_.str.14@PAGEOFF
	mov	x1, sp
	mov	w2, #1
	bl	_setenv
LBB0_3:
	ldr	x8, [sp, #24]
Lloh35:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh36:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh37:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_5
; %bb.4:
	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
	add	sp, sp, #80
	ret
LBB0_5:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh33, Lloh34
	.loh AdrpAdd	Lloh31, Lloh32
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"0x%08x"

l_.str.1:                               ; @.str.1
	.asciz	"hint.acpi.0.rsdp"

l_.str.2:                               ; @.str.2
	.asciz	"acpi.rsdp"

l_.str.3:                               ; @.str.3
	.asciz	"%d"

l_.str.4:                               ; @.str.4
	.asciz	"hint.acpi.0.revision"

l_.str.5:                               ; @.str.5
	.asciz	"acpi.revision"

l_.str.6:                               ; @.str.6
	.asciz	"hint.acpi.0.oem"

l_.str.7:                               ; @.str.7
	.asciz	"acpi.oem"

l_.str.8:                               ; @.str.8
	.asciz	"hint.acpi.0.rsdt"

l_.str.9:                               ; @.str.9
	.asciz	"acpi.rsdt"

l_.str.10:                              ; @.str.10
	.asciz	"0x%016llx"

l_.str.11:                              ; @.str.11
	.asciz	"hint.acpi.0.xsdt"

l_.str.12:                              ; @.str.12
	.asciz	"acpi.xsdt"

l_.str.13:                              ; @.str.13
	.asciz	"hint.acpi.0.xsdt_length"

l_.str.14:                              ; @.str.14
	.asciz	"acpi.xsdt_length"

.subsections_via_symbols
