	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function acpi_bus_check_add
_acpi_bus_check_add:                    ## @acpi_bus_check_add
	.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	%r12
	pushq	%rbx
	subq	$32, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r14
	movq	%rdx, %r15
	movl	%edi, %ebx
	leaq	-44(%rbp), %rsi
	leaq	-56(%rbp), %rdx
	callq	_acpi_bus_type_and_status
	movq	_AE_OK@GOTPCREL(%rip), %r12
	testl	%eax, %eax
	je	LBB0_1
LBB0_13:
	movq	%r12, %rbx
LBB0_14:
	movl	(%rbx), %eax
	addq	$32, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movq	-56(%rbp), %rax
	movq	_ACPI_STA_DEVICE_PRESENT@GOTPCREL(%rip), %rcx
	testq	%rax, (%rcx)
	jne	LBB0_4
## %bb.2:
	movq	_ACPI_STA_DEVICE_FUNCTIONING@GOTPCREL(%rip), %rcx
	testq	%rax, (%rcx)
	je	LBB0_3
LBB0_4:
	movq	$0, -40(%rbp)
	leaq	-40(%rbp), %rsi
	movl	%ebx, %edi
	callq	_acpi_bus_get_device
	cmpq	$0, (%r15)
	movq	-40(%rbp), %rdi
	je	LBB0_7
## %bb.5:
	testq	%rdi, %rdi
	jne	LBB0_7
## %bb.6:
	movl	-44(%rbp), %edx
	movq	-56(%rbp), %rcx
	leaq	-40(%rbp), %rdi
	movl	%ebx, %esi
	movq	%r15, %r8
	callq	_acpi_add_single_object
	movq	-40(%rbp), %rdi
LBB0_7:
	movq	_AE_CTRL_DEPTH@GOTPCREL(%rip), %rbx
	testq	%rdi, %rdi
	je	LBB0_14
## %bb.8:
	cmpq	$0, 8(%r15)
	je	LBB0_11
## %bb.9:
	cmpq	$0, (%r15)
	jne	LBB0_11
## %bb.10:
	callq	_acpi_start_single_object
	movl	%eax, %edi
	callq	_ACPI_FAILURE
	testq	%rax, %rax
	jne	LBB0_14
LBB0_11:
	cmpq	$0, (%r14)
	jne	LBB0_13
## %bb.12:
	movq	-40(%rbp), %rax
	movq	%rax, (%r14)
	jmp	LBB0_13
LBB0_3:
	movq	_AE_CTRL_DEPTH@GOTPCREL(%rip), %rbx
	jmp	LBB0_14
	.cfi_endproc
                                        ## -- End function
	.comm	_AE_OK,4,2                      ## @AE_OK
	.comm	_ACPI_STA_DEVICE_PRESENT,8,3    ## @ACPI_STA_DEVICE_PRESENT
	.comm	_ACPI_STA_DEVICE_FUNCTIONING,8,3 ## @ACPI_STA_DEVICE_FUNCTIONING
	.comm	_AE_CTRL_DEPTH,4,2              ## @AE_CTRL_DEPTH
	.no_dead_strip	_acpi_bus_check_add
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function acpi_bus_check_add
_acpi_bus_check_add:                    ; @acpi_bus_check_add
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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, x3
	mov	x20, x2
	mov	x21, x0
	add	x1, sp, #28
	add	x2, sp, #16
	bl	_acpi_bus_type_and_status
	cbz	w0, LBB0_3
LBB0_1:
Lloh0:
	adrp	x8, _AE_OK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AE_OK@GOTPAGEOFF]
LBB0_2:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_3:
	ldr	x8, [sp, #16]
Lloh2:
	adrp	x9, _ACPI_STA_DEVICE_PRESENT@GOTPAGE
Lloh3:
	ldr	x9, [x9, _ACPI_STA_DEVICE_PRESENT@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
	tst	x9, x8
	b.ne	LBB0_5
; %bb.4:
Lloh5:
	adrp	x9, _ACPI_STA_DEVICE_FUNCTIONING@GOTPAGE
Lloh6:
	ldr	x9, [x9, _ACPI_STA_DEVICE_FUNCTIONING@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
	tst	x9, x8
	b.eq	LBB0_14
LBB0_5:
	str	xzr, [sp, #8]
	add	x1, sp, #8
	mov	x0, x21
	bl	_acpi_bus_get_device
	ldr	x8, [x20]
	ldr	x0, [sp, #8]
	cbz	x8, LBB0_8
; %bb.6:
	cbnz	x0, LBB0_8
; %bb.7:
	ldr	w2, [sp, #28]
	ldr	x3, [sp, #16]
	add	x0, sp, #8
	mov	x1, x21
	mov	x4, x20
	bl	_acpi_add_single_object
	ldr	x0, [sp, #8]
LBB0_8:
	cbz	x0, LBB0_14
; %bb.9:
	ldr	x8, [x20, #8]
	cbz	x8, LBB0_11
; %bb.10:
	ldr	x8, [x20]
	cbz	x8, LBB0_13
LBB0_11:
	ldr	x8, [x19]
	cbnz	x8, LBB0_1
; %bb.12:
	ldr	x8, [sp, #8]
	str	x8, [x19]
	b	LBB0_1
LBB0_13:
	bl	_acpi_start_single_object
	bl	_ACPI_FAILURE
	cbz	x0, LBB0_11
LBB0_14:
Lloh8:
	adrp	x8, _AE_CTRL_DEPTH@GOTPAGE
Lloh9:
	ldr	x8, [x8, _AE_CTRL_DEPTH@GOTPAGEOFF]
	b	LBB0_2
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_AE_OK,4,2                      ; @AE_OK
	.comm	_ACPI_STA_DEVICE_PRESENT,8,3    ; @ACPI_STA_DEVICE_PRESENT
	.comm	_ACPI_STA_DEVICE_FUNCTIONING,8,3 ; @ACPI_STA_DEVICE_FUNCTIONING
	.comm	_AE_CTRL_DEPTH,4,2              ; @AE_CTRL_DEPTH
	.no_dead_strip	_acpi_bus_check_add
.subsections_via_symbols
