	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_acpi_hw_get_mode               ## -- Begin function acpi_hw_get_mode
	.p2align	4, 0x90
_acpi_hw_get_mode:                      ## @acpi_hw_get_mode
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	subq	$16, %rsp
	movq	_hw_get_mode@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_ACPI_FUNCTION_TRACE
	movq	_acpi_gbl_FADT@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	jne	LBB0_2
## %bb.1:
	movq	_ACPI_SYS_MODE_ACPI@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_return_UINT32
LBB0_2:
	movq	_ACPI_BITREG_SCI_ENABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	-8(%rbp), %rsi
	callq	_acpi_read_bit_register
	movl	%eax, %edi
	callq	_ACPI_FAILURE
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movq	_ACPI_SYS_MODE_LEGACY@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_return_UINT32
LBB0_4:
	cmpq	$0, -8(%rbp)
	jne	LBB0_5
## %bb.6:
	movq	_ACPI_SYS_MODE_LEGACY@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_5:
	movq	_ACPI_SYS_MODE_ACPI@GOTPCREL(%rip), %rax
LBB0_7:
	movl	(%rax), %edi
	callq	_return_UINT32
	addq	$16, %rsp
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_hw_get_mode,4,2                ## @hw_get_mode
	.comm	_acpi_gbl_FADT,4,2              ## @acpi_gbl_FADT
	.comm	_ACPI_SYS_MODE_ACPI,4,2         ## @ACPI_SYS_MODE_ACPI
	.comm	_ACPI_BITREG_SCI_ENABLE,4,2     ## @ACPI_BITREG_SCI_ENABLE
	.comm	_ACPI_SYS_MODE_LEGACY,4,2       ## @ACPI_SYS_MODE_LEGACY
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_acpi_hw_get_mode               ; -- Begin function acpi_hw_get_mode
	.p2align	2
_acpi_hw_get_mode:                      ; @acpi_hw_get_mode
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
Lloh0:
	adrp	x8, _hw_get_mode@GOTPAGE
Lloh1:
	ldr	x8, [x8, _hw_get_mode@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_ACPI_FUNCTION_TRACE
Lloh3:
	adrp	x8, _acpi_gbl_FADT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _acpi_gbl_FADT@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
Lloh6:
	adrp	x19, _ACPI_SYS_MODE_ACPI@GOTPAGE
Lloh7:
	ldr	x19, [x19, _ACPI_SYS_MODE_ACPI@GOTPAGEOFF]
	cbnz	w8, LBB0_2
; %bb.1:
	ldr	w0, [x19]
	bl	_return_UINT32
LBB0_2:
Lloh8:
	adrp	x8, _ACPI_BITREG_SCI_ENABLE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ACPI_BITREG_SCI_ENABLE@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
	add	x1, sp, #8
	bl	_acpi_read_bit_register
	bl	_ACPI_FAILURE
Lloh11:
	adrp	x20, _ACPI_SYS_MODE_LEGACY@GOTPAGE
Lloh12:
	ldr	x20, [x20, _ACPI_SYS_MODE_LEGACY@GOTPAGEOFF]
	cbz	x0, LBB0_4
; %bb.3:
	ldr	w0, [x20]
	bl	_return_UINT32
LBB0_4:
	ldr	x8, [sp, #8]
	cmp	x8, #0
	csel	x8, x20, x19, eq
	ldr	w0, [x8]
	bl	_return_UINT32
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_hw_get_mode,4,2                ; @hw_get_mode
	.comm	_acpi_gbl_FADT,4,2              ; @acpi_gbl_FADT
	.comm	_ACPI_SYS_MODE_ACPI,4,2         ; @ACPI_SYS_MODE_ACPI
	.comm	_ACPI_BITREG_SCI_ENABLE,4,2     ; @ACPI_BITREG_SCI_ENABLE
	.comm	_ACPI_SYS_MODE_LEGACY,4,2       ; @ACPI_SYS_MODE_LEGACY
.subsections_via_symbols
