	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function acpi_init
_acpi_init:                             ## @acpi_init
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	_ACPIDEV@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	movq	_O_RDWR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_open
	movq	_acpifd@GOTPCREL(%rip), %rbx
	movl	%eax, (%rbx)
	cmpl	$-1, %eax
	jne	LBB0_2
## %bb.1:
	movl	(%r14), %edi
	movq	_O_RDONLY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_open
	movl	%eax, (%rbx)
	cmpl	$-1, %eax
	je	LBB0_3
LBB0_2:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_3:
	movq	_EX_OSFILE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%r14), %esi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_err                            ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_ACPIDEV,4,2                    ## @ACPIDEV
	.comm	_O_RDWR,4,2                     ## @O_RDWR
	.comm	_acpifd,4,2                     ## @acpifd
	.comm	_O_RDONLY,4,2                   ## @O_RDONLY
	.comm	_EX_OSFILE,4,2                  ## @EX_OSFILE
	.no_dead_strip	_acpi_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function acpi_init
_acpi_init:                             ; @acpi_init
	.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	x19, _ACPIDEV@GOTPAGE
Lloh1:
	ldr	x19, [x19, _ACPIDEV@GOTPAGEOFF]
	ldr	w0, [x19]
Lloh2:
	adrp	x8, _O_RDWR@GOTPAGE
Lloh3:
	ldr	x8, [x8, _O_RDWR@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	bl	_open
Lloh5:
	adrp	x20, _acpifd@GOTPAGE
Lloh6:
	ldr	x20, [x20, _acpifd@GOTPAGEOFF]
	str	w0, [x20]
	cmn	w0, #1
	b.ne	LBB0_2
; %bb.1:
	ldr	w0, [x19]
Lloh7:
	adrp	x8, _O_RDONLY@GOTPAGE
Lloh8:
	ldr	x8, [x8, _O_RDONLY@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
	bl	_open
	str	w0, [x20]
	cmn	w0, #1
	b.eq	LBB0_3
LBB0_2:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_3:
Lloh10:
	adrp	x8, _EX_OSFILE@GOTPAGE
Lloh11:
	ldr	x8, [x8, _EX_OSFILE@GOTPAGEOFF]
Lloh12:
	ldr	w0, [x8]
	ldr	w1, [x19]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_err
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_ACPIDEV,4,2                    ; @ACPIDEV
	.comm	_O_RDWR,4,2                     ; @O_RDWR
	.comm	_acpifd,4,2                     ; @acpifd
	.comm	_O_RDONLY,4,2                   ; @O_RDONLY
	.comm	_EX_OSFILE,4,2                  ; @EX_OSFILE
	.no_dead_strip	_acpi_init
.subsections_via_symbols
