	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_acpi_enable                    ## -- Begin function acpi_enable
	.p2align	4, 0x90
_acpi_enable:                           ## @acpi_enable
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	_AE_OK@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	leaq	_acpi_enable(%rip), %rdi
	callq	_ACPI_FUNCTION_TRACE
	xorl	%eax, %eax
	callq	_acpi_tb_tables_loaded
	testl	%eax, %eax
	jne	LBB0_2
## %bb.1:
	movq	_AE_NO_ACPI_TABLES@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_return_ACPI_STATUS
LBB0_2:
	xorl	%eax, %eax
	callq	_acpi_hw_get_mode
	movq	_ACPI_SYS_MODE_ACPI@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rdi
	cmpq	%rdi, %rax
	jne	LBB0_4
## %bb.3:
	leaq	L_.str(%rip), %rdi
	jmp	LBB0_7
LBB0_4:
	callq	_acpi_hw_set_mode
	movl	%eax, %ebx
	movl	%eax, %edi
	callq	_ACPI_FAILURE
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	leaq	L_.str.1(%rip), %rdi
                                        ## kill: def $edi killed $edi killed $rdi
	callq	_ACPI_ERROR
	movl	%ebx, %edi
	callq	_return_ACPI_STATUS
LBB0_6:
	leaq	L_.str.2(%rip), %rdi
LBB0_7:
                                        ## kill: def $edi killed $edi killed $rdi
	callq	_ACPI_DEBUG_PRINT
	movl	%ebx, %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_return_ACPI_STATUS             ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_AE_OK,4,2                      ## @AE_OK
	.comm	_AE_NO_ACPI_TABLES,4,2          ## @AE_NO_ACPI_TABLES
	.comm	_ACPI_SYS_MODE_ACPI,8,3         ## @ACPI_SYS_MODE_ACPI
	.comm	_ACPI_DB_INIT,4,2               ## @ACPI_DB_INIT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"System is already in ACPI mode\n"

	.comm	_AE_INFO,4,2                    ## @AE_INFO
L_.str.1:                               ## @.str.1
	.asciz	"Could not transition to ACPI mode"

L_.str.2:                               ## @.str.2
	.asciz	"Transition to ACPI mode successful\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_acpi_enable                    ; -- Begin function acpi_enable
	.p2align	2
_acpi_enable:                           ; @acpi_enable
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
Lloh0:
	adrp	x8, _AE_OK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AE_OK@GOTPAGEOFF]
Lloh2:
	ldr	w19, [x8]
Lloh3:
	adrp	x0, _acpi_enable@PAGE
Lloh4:
	add	x0, x0, _acpi_enable@PAGEOFF
	bl	_ACPI_FUNCTION_TRACE
	bl	_acpi_tb_tables_loaded
	cbnz	w0, LBB0_2
; %bb.1:
Lloh5:
	adrp	x8, _AE_NO_ACPI_TABLES@GOTPAGE
Lloh6:
	ldr	x8, [x8, _AE_NO_ACPI_TABLES@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
	bl	_return_ACPI_STATUS
LBB0_2:
	bl	_acpi_hw_get_mode
	mov	x8, x0
Lloh8:
	adrp	x9, _ACPI_SYS_MODE_ACPI@GOTPAGE
Lloh9:
	ldr	x9, [x9, _ACPI_SYS_MODE_ACPI@GOTPAGEOFF]
Lloh10:
	ldr	x0, [x9]
	cmp	x8, x0
	b.ne	LBB0_4
; %bb.3:
Lloh11:
	adrp	x0, l_.str@PAGE
Lloh12:
	add	x0, x0, l_.str@PAGEOFF
	b	LBB0_7
LBB0_4:
	bl	_acpi_hw_set_mode
	mov	x19, x0
	bl	_ACPI_FAILURE
	cbz	x0, LBB0_6
; %bb.5:
Lloh13:
	adrp	x0, l_.str.1@PAGE
Lloh14:
	add	x0, x0, l_.str.1@PAGEOFF
                                        ; kill: def $w0 killed $w0 killed $x0
	bl	_ACPI_ERROR
	mov	x0, x19
	bl	_return_ACPI_STATUS
LBB0_6:
Lloh15:
	adrp	x0, l_.str.2@PAGE
Lloh16:
	add	x0, x0, l_.str.2@PAGEOFF
                                        ; kill: def $w0 killed $w0 killed $x0 def $x0
LBB0_7:
                                        ; kill: def $w0 killed $w0 killed $x0
	bl	_ACPI_DEBUG_PRINT
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_return_ACPI_STATUS
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_AE_OK,4,2                      ; @AE_OK
	.comm	_AE_NO_ACPI_TABLES,4,2          ; @AE_NO_ACPI_TABLES
	.comm	_ACPI_SYS_MODE_ACPI,8,3         ; @ACPI_SYS_MODE_ACPI
	.comm	_ACPI_DB_INIT,4,2               ; @ACPI_DB_INIT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"System is already in ACPI mode\n"

	.comm	_AE_INFO,4,2                    ; @AE_INFO
l_.str.1:                               ; @.str.1
	.asciz	"Could not transition to ACPI mode"

l_.str.2:                               ; @.str.2
	.asciz	"Transition to ACPI mode successful\n"

.subsections_via_symbols
