	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_acpi_build                     ## -- Begin function acpi_build
	.p2align	4, 0x90
_acpi_build:                            ## @acpi_build
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	_basl_ncpu@GOTPCREL(%rip), %rax
	movl	%esi, (%rax)
	movq	_hpet_capabilities@GOTPCREL(%rip), %rsi
	callq	_vm_get_hpet_capabilities
	testl	%eax, %eax
	jne	LBB0_10
## %bb.1:
	leaq	L_.str(%rip), %rdi
	callq	_getenv
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	movq	_basl_verbose_iasl@GOTPCREL(%rip), %rax
	movl	$1, (%rax)
LBB0_3:
	leaq	L_.str.1(%rip), %rdi
	callq	_getenv
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movq	_basl_keep_temps@GOTPCREL(%rip), %rax
	movl	$1, (%rax)
LBB0_5:
	xorl	%eax, %eax
	callq	_basl_make_templates
	testl	%eax, %eax
	jne	LBB0_10
## %bb.6:
	movl	$8, %ebx
	movq	_basl_ftables@GOTPCREL(%rip), %r15
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r15), %rax
	movq	(%rax,%rbx), %rsi
	testq	%rsi, %rsi
	je	LBB0_8
## %bb.9:                               ##   in Loop: Header=BB0_7 Depth=1
	movl	-8(%rax,%rbx), %edx
	movq	%r14, %rdi
	callq	_basl_compile
	addq	$16, %rbx
	testl	%eax, %eax
	je	LBB0_7
	jmp	LBB0_10
LBB0_8:
	xorl	%eax, %eax
LBB0_10:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_basl_ncpu,4,2                  ## @basl_ncpu
	.comm	_hpet_capabilities,4,2          ## @hpet_capabilities
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"BHYVE_ACPI_VERBOSE_IASL"

	.comm	_basl_verbose_iasl,4,2          ## @basl_verbose_iasl
L_.str.1:                               ## @.str.1
	.asciz	"BHYVE_ACPI_KEEPTMPS"

	.comm	_basl_keep_temps,4,2            ## @basl_keep_temps
	.comm	_basl_ftables,8,3               ## @basl_ftables
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_acpi_build                     ; -- Begin function acpi_build
	.p2align	2
_acpi_build:                            ; @acpi_build
	.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
Lloh0:
	adrp	x8, _basl_ncpu@GOTPAGE
Lloh1:
	ldr	x8, [x8, _basl_ncpu@GOTPAGEOFF]
Lloh2:
	str	w1, [x8]
Lloh3:
	adrp	x1, _hpet_capabilities@GOTPAGE
Lloh4:
	ldr	x1, [x1, _hpet_capabilities@GOTPAGEOFF]
	bl	_vm_get_hpet_capabilities
	cbnz	w0, LBB0_10
; %bb.1:
Lloh5:
	adrp	x0, l_.str@PAGE
Lloh6:
	add	x0, x0, l_.str@PAGEOFF
	bl	_getenv
	cbz	x0, LBB0_3
; %bb.2:
Lloh7:
	adrp	x8, _basl_verbose_iasl@GOTPAGE
Lloh8:
	ldr	x8, [x8, _basl_verbose_iasl@GOTPAGEOFF]
	mov	w9, #1
Lloh9:
	str	w9, [x8]
LBB0_3:
Lloh10:
	adrp	x0, l_.str.1@PAGE
Lloh11:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_getenv
	cbz	x0, LBB0_5
; %bb.4:
Lloh12:
	adrp	x8, _basl_keep_temps@GOTPAGE
Lloh13:
	ldr	x8, [x8, _basl_keep_temps@GOTPAGEOFF]
	mov	w9, #1
Lloh14:
	str	w9, [x8]
LBB0_5:
	bl	_basl_make_templates
	cbnz	w0, LBB0_10
; %bb.6:
	mov	x20, #0
Lloh15:
	adrp	x21, _basl_ftables@GOTPAGE
Lloh16:
	ldr	x21, [x21, _basl_ftables@GOTPAGEOFF]
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x21]
	add	x9, x8, x20
	ldr	x1, [x9, #8]
	cbz	x1, LBB0_9
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	w2, [x8, x20]
	mov	x0, x19
	bl	_basl_compile
	add	x20, x20, #16
	cbz	w0, LBB0_7
	b	LBB0_10
LBB0_9:
	mov	w0, #0
LBB0_10:
	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
	ret
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotStr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotStr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotStr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_basl_ncpu,4,2                  ; @basl_ncpu
	.comm	_hpet_capabilities,4,2          ; @hpet_capabilities
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"BHYVE_ACPI_VERBOSE_IASL"

	.comm	_basl_verbose_iasl,4,2          ; @basl_verbose_iasl
l_.str.1:                               ; @.str.1
	.asciz	"BHYVE_ACPI_KEEPTMPS"

	.comm	_basl_keep_temps,4,2            ; @basl_keep_temps
	.comm	_basl_ftables,8,3               ; @basl_ftables
.subsections_via_symbols
