	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function acpi_bus_get_parent
_acpi_bus_get_parent:                   ## @acpi_bus_get_parent
	.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	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, -40(%rbp)
	testq	%rdi, %rdi
	je	LBB0_5
## %bb.1:
	leaq	-40(%rbp), %rsi
	callq	_acpi_get_parent
	movq	_AE_NULL_ENTRY@GOTPCREL(%rip), %rbx
	cmpq	(%rbx), %rax
	jne	LBB0_3
## %bb.2:
	xorl	%r14d, %r14d
	jmp	LBB0_9
LBB0_3:
	leaq	-48(%rbp), %r12
	leaq	-40(%rbp), %r15
	xorl	%r14d, %r14d
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rax, %rdi
	callq	_ACPI_FAILURE
	testq	%rax, %rax
	jne	LBB0_5
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	-40(%rbp), %rdi
	movq	%r12, %rsi
	callq	_acpi_bus_get_device
	testl	%eax, %eax
	je	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	-40(%rbp), %rdi
	movq	%r15, %rsi
	callq	_acpi_get_parent
	cmpq	(%rbx), %rax
	jne	LBB0_4
	jmp	LBB0_9
LBB0_5:
	movq	_acpi_root@GOTPCREL(%rip), %rax
	movq	(%rax), %r14
LBB0_9:
	movq	%r14, %rax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	movq	-48(%rbp), %r14
	jmp	LBB0_9
	.cfi_endproc
                                        ## -- End function
	.comm	_acpi_root,8,3                  ## @acpi_root
	.comm	_AE_NULL_ENTRY,8,3              ## @AE_NULL_ENTRY
	.no_dead_strip	_acpi_bus_get_parent
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function acpi_bus_get_parent
_acpi_bus_get_parent:                   ; @acpi_bus_get_parent
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	str	x0, [sp, #8]
	cbz	x0, LBB0_6
; %bb.1:
	add	x1, sp, #8
	bl	_acpi_get_parent
Lloh0:
	adrp	x19, _AE_NULL_ENTRY@GOTPAGE
Lloh1:
	ldr	x19, [x19, _AE_NULL_ENTRY@GOTPAGEOFF]
	ldr	x8, [x19]
	cmp	x0, x8
	b.eq	LBB0_5
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	bl	_ACPI_FAILURE
	cbnz	x0, LBB0_6
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	x0, [sp, #8]
	mov	x1, sp
	bl	_acpi_bus_get_device
	cbz	w0, LBB0_8
; %bb.4:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	x0, [sp, #8]
	add	x1, sp, #8
	bl	_acpi_get_parent
	ldr	x8, [x19]
	cmp	x0, x8
	b.ne	LBB0_2
LBB0_5:
	mov	x0, #0
	b	LBB0_7
LBB0_6:
Lloh2:
	adrp	x8, _acpi_root@GOTPAGE
Lloh3:
	ldr	x8, [x8, _acpi_root@GOTPAGEOFF]
Lloh4:
	ldr	x0, [x8]
LBB0_7:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
LBB0_8:
	ldr	x0, [sp]
	b	LBB0_7
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_acpi_root,8,3                  ; @acpi_root
	.comm	_AE_NULL_ENTRY,8,3              ; @AE_NULL_ENTRY
	.no_dead_strip	_acpi_bus_get_parent
.subsections_via_symbols
