	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_acpi_reset                     ## -- Begin function acpi_reset
	.p2align	4, 0x90
_acpi_reset:                            ## @acpi_reset
	.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
	leaq	_acpi_reset(%rip), %rdi
	callq	_ACPI_FUNCTION_TRACE
	movq	_acpi_gbl_FADT@GOTPCREL(%rip), %rbx
	movq	_ACPI_FADT_RESET_REGISTER@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rbx)
	je	LBB0_2
## %bb.1:
	cmpq	$0, 16(%rbx)
	jne	LBB0_3
LBB0_2:
	movq	_AE_NOT_EXIST@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_return_ACPI_STATUS
LBB0_3:
	movq	8(%rbx), %rax
	movq	_ACPI_ADR_SPACE_SYSTEM_IO@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_5
## %bb.4:
	movl	4(%rbx), %esi
	movl	16(%rbx), %edi
	movl	$8, %edx
	callq	_acpi_os_write_port
	jmp	LBB0_6
LBB0_5:
	movl	4(%rbx), %edi
	addq	$8, %rbx
	movq	%rbx, %rsi
	callq	_acpi_hw_write
LBB0_6:
	movl	%eax, %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_return_ACPI_STATUS             ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_acpi_gbl_FADT,24,3             ## @acpi_gbl_FADT
	.comm	_ACPI_FADT_RESET_REGISTER,4,2   ## @ACPI_FADT_RESET_REGISTER
	.comm	_AE_NOT_EXIST,4,2               ## @AE_NOT_EXIST
	.comm	_ACPI_ADR_SPACE_SYSTEM_IO,8,3   ## @ACPI_ADR_SPACE_SYSTEM_IO
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_acpi_reset                     ; -- Begin function acpi_reset
	.p2align	2
_acpi_reset:                            ; @acpi_reset
	.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	x0, _acpi_reset@PAGE
Lloh1:
	add	x0, x0, _acpi_reset@PAGEOFF
	bl	_ACPI_FUNCTION_TRACE
Lloh2:
	adrp	x19, _acpi_gbl_FADT@GOTPAGE
Lloh3:
	ldr	x19, [x19, _acpi_gbl_FADT@GOTPAGEOFF]
Lloh4:
	adrp	x8, _ACPI_FADT_RESET_REGISTER@GOTPAGE
Lloh5:
	ldr	x8, [x8, _ACPI_FADT_RESET_REGISTER@GOTPAGEOFF]
	ldr	w9, [x19]
Lloh6:
	ldr	w8, [x8]
	and	w8, w8, w9
	ldr	x9, [x19, #16]
	cmp	w8, #0
	ccmp	x9, #0, #4, ne
	b.ne	LBB0_2
; %bb.1:
Lloh7:
	adrp	x8, _AE_NOT_EXIST@GOTPAGE
Lloh8:
	ldr	x8, [x8, _AE_NOT_EXIST@GOTPAGEOFF]
Lloh9:
	ldr	w0, [x8]
	bl	_return_ACPI_STATUS
LBB0_2:
	ldr	x8, [x19, #8]
Lloh10:
	adrp	x9, _ACPI_ADR_SPACE_SYSTEM_IO@GOTPAGE
Lloh11:
	ldr	x9, [x9, _ACPI_ADR_SPACE_SYSTEM_IO@GOTPAGEOFF]
Lloh12:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_4
; %bb.3:
	ldr	w0, [x19, #16]
	ldr	w1, [x19, #4]
	mov	w2, #8
	bl	_acpi_os_write_port
	b	LBB0_5
LBB0_4:
	ldr	w0, [x19, #4]
	add	x1, x19, #8
	bl	_acpi_hw_write
LBB0_5:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_return_ACPI_STATUS
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_acpi_gbl_FADT,24,3             ; @acpi_gbl_FADT
	.comm	_ACPI_FADT_RESET_REGISTER,4,2   ; @ACPI_FADT_RESET_REGISTER
	.comm	_AE_NOT_EXIST,4,2               ; @AE_NOT_EXIST
	.comm	_ACPI_ADR_SPACE_SYSTEM_IO,8,3   ; @ACPI_ADR_SPACE_SYSTEM_IO
.subsections_via_symbols
