	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_acpi_find_rsd_ptr              ## -- Begin function acpi_find_rsd_ptr
	.p2align	4, 0x90
_acpi_find_rsd_ptr:                     ## @acpi_find_rsd_ptr
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	subq	$48, %rsp
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	callq	_acpi_user_init
	movq	$0, -40(%rbp)
	movq	_KENV_GET@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_hint_acpi_0_rsdp@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-32(%rbp), %rdx
	movl	$20, %ecx
	callq	_kenv
	testq	%rax, %rax
	jle	LBB0_2
## %bb.1:
	leaq	-32(%rbp), %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_strtoul
	movq	%rax, -40(%rbp)
	testq	%rax, %rax
	jne	LBB0_5
LBB0_2:
	movq	$8, -48(%rbp)
	movq	_machdep_acpi_root@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	-40(%rbp), %rsi
	leaq	-48(%rbp), %rdx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	callq	_sysctlbyname
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movq	$0, -40(%rbp)
	jmp	LBB0_6
LBB0_4:
	movq	-40(%rbp), %rax
	testq	%rax, %rax
	je	LBB0_6
LBB0_5:
	movq	%rax, %rdi
	callq	_acpi_get_rsdp
	testq	%rax, %rax
	jne	LBB0_7
LBB0_6:
	xorl	%eax, %eax
	callq	_acpi_scan_rsd_ptr
LBB0_7:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-8(%rbp), %rcx
	jne	LBB0_9
## %bb.8:
	addq	$48, %rsp
	popq	%rbp
	retq
LBB0_9:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_KENV_GET,4,2                   ## @KENV_GET
	.comm	_hint_acpi_0_rsdp,4,2           ## @hint_acpi_0_rsdp
	.comm	_machdep_acpi_root,4,2          ## @machdep_acpi_root
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_acpi_find_rsd_ptr              ; -- Begin function acpi_find_rsd_ptr
	.p2align	2
_acpi_find_rsd_ptr:                     ; @acpi_find_rsd_ptr
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-8]
	bl	_acpi_user_init
	str	xzr, [sp, #8]
Lloh3:
	adrp	x8, _KENV_GET@GOTPAGE
Lloh4:
	ldr	x8, [x8, _KENV_GET@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
Lloh6:
	adrp	x8, _hint_acpi_0_rsdp@GOTPAGE
Lloh7:
	ldr	x8, [x8, _hint_acpi_0_rsdp@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	add	x2, sp, #20
	mov	w3, #20
	bl	_kenv
	cmp	x0, #1
	b.lt	LBB0_2
; %bb.1:
	add	x0, sp, #20
	mov	x1, #0
	mov	w2, #0
	bl	_strtoul
	str	x0, [sp, #8]
	cbnz	x0, LBB0_5
LBB0_2:
	mov	w8, #8
	str	x8, [sp]
Lloh9:
	adrp	x8, _machdep_acpi_root@GOTPAGE
Lloh10:
	ldr	x8, [x8, _machdep_acpi_root@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
	add	x1, sp, #8
	mov	x2, sp
	mov	x3, #0
	mov	w4, #0
	bl	_sysctlbyname
	cbz	x0, LBB0_4
; %bb.3:
	str	xzr, [sp, #8]
	b	LBB0_6
LBB0_4:
	ldr	x0, [sp, #8]
	cbz	x0, LBB0_6
LBB0_5:
	bl	_acpi_get_rsdp
	cbnz	x0, LBB0_7
LBB0_6:
	bl	_acpi_scan_rsd_ptr
LBB0_7:
	ldur	x8, [x29, #-8]
Lloh12:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh13:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh14:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_9
; %bb.8:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
LBB0_9:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_KENV_GET,4,2                   ; @KENV_GET
	.comm	_hint_acpi_0_rsdp,4,2           ; @hint_acpi_0_rsdp
	.comm	_machdep_acpi_root,4,2          ; @machdep_acpi_root
.subsections_via_symbols
