	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function acpi_bus_scan
_acpi_bus_scan:                         ## @acpi_bus_scan
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	%rsi, %r15
	movl	%edi, %ebx
	movq	$0, -32(%rbp)
	leaq	-32(%rbp), %rcx
	xorl	%esi, %esi
	movq	%r15, %rdx
	callq	_acpi_bus_check_add
	movl	%eax, %edi
	callq	_ACPI_SUCCESS
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	_ACPI_TYPE_ANY@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_ACPI_UINT32_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_acpi_bus_check_add@GOTPCREL(%rip), %rcx
	leaq	-32(%rbp), %r9
	movl	%ebx, %esi
	movq	%r15, %r8
	callq	_acpi_walk_namespace
LBB0_2:
	testq	%r14, %r14
	je	LBB0_3
## %bb.4:
	movq	-32(%rbp), %rcx
	movq	%rcx, (%r14)
	jmp	LBB0_5
LBB0_3:
	movq	-32(%rbp), %rcx
LBB0_5:
	movq	_ENODEV@GOTPCREL(%rip), %rdx
	xorl	%eax, %eax
	subl	(%rdx), %eax
	xorl	%edx, %edx
	testq	%rcx, %rcx
	cmovnel	%edx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ACPI_TYPE_ANY,4,2              ## @ACPI_TYPE_ANY
	.comm	_ACPI_UINT32_MAX,4,2            ## @ACPI_UINT32_MAX
	.comm	_ENODEV,4,2                     ## @ENODEV
	.no_dead_strip	_acpi_bus_scan
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function acpi_bus_scan
_acpi_bus_scan:                         ; @acpi_bus_scan
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	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
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x19, x2
	mov	x20, x1
	mov	x21, x0
	str	xzr, [sp, #8]
	add	x3, sp, #8
	mov	w1, #0
	mov	x2, x20
	bl	_acpi_bus_check_add
	bl	_ACPI_SUCCESS
	cbz	x0, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _ACPI_TYPE_ANY@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ACPI_TYPE_ANY@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x8, _ACPI_UINT32_MAX@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ACPI_UINT32_MAX@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
Lloh6:
	adrp	x3, _acpi_bus_check_add@GOTPAGE
Lloh7:
	ldr	x3, [x3, _acpi_bus_check_add@GOTPAGEOFF]
	add	x5, sp, #8
	mov	x1, x21
	mov	x4, x20
	bl	_acpi_walk_namespace
LBB0_2:
	cbz	x19, LBB0_4
; %bb.3:
	ldr	x8, [sp, #8]
	str	x8, [x19]
	b	LBB0_5
LBB0_4:
	ldr	x8, [sp, #8]
LBB0_5:
Lloh8:
	adrp	x9, _ENODEV@GOTPAGE
Lloh9:
	ldr	x9, [x9, _ENODEV@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	cmp	x8, #0
	csneg	w0, wzr, w9, ne
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_ACPI_TYPE_ANY,4,2              ; @ACPI_TYPE_ANY
	.comm	_ACPI_UINT32_MAX,4,2            ; @ACPI_UINT32_MAX
	.comm	_ENODEV,4,2                     ; @ENODEV
	.no_dead_strip	_acpi_bus_scan
.subsections_via_symbols
