	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dock_create_acpi_device
_dock_create_acpi_device:               ## @dock_create_acpi_device
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -24
	movl	%edi, %ebx
	movq	$0, -16(%rbp)
	leaq	-16(%rbp), %rsi
	callq	_acpi_bus_get_device
	testq	%rax, %rax
	je	LBB0_6
## %bb.1:
	leaq	-20(%rbp), %rsi
	movl	%ebx, %edi
	callq	_acpi_get_parent
	movl	-20(%rbp), %edi
	leaq	-32(%rbp), %rsi
	callq	_acpi_bus_get_device
	testq	%rax, %rax
	je	LBB0_2
## %bb.3:
	movq	$0, -32(%rbp)
	xorl	%esi, %esi
	jmp	LBB0_4
LBB0_2:
	movq	-32(%rbp), %rsi
LBB0_4:
	movq	_ACPI_BUS_TYPE_DEVICE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	-16(%rbp), %rdi
	movl	%ebx, %edx
	callq	_acpi_bus_add
	testl	%eax, %eax
	je	LBB0_6
## %bb.5:
	negl	%eax
	leaq	L_.str(%rip), %rdi
	movl	%eax, %esi
	callq	_pr_debug
	xorl	%eax, %eax
	jmp	LBB0_7
LBB0_6:
	movq	-16(%rbp), %rax
LBB0_7:
	addq	$24, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ACPI_BUS_TYPE_DEVICE,4,2       ## @ACPI_BUS_TYPE_DEVICE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"error adding bus, %x\n"

	.no_dead_strip	_dock_create_acpi_device
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dock_create_acpi_device
_dock_create_acpi_device:               ; @dock_create_acpi_device
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	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
	mov	x19, x0
	str	xzr, [sp, #24]
	add	x1, sp, #24
	bl	_acpi_bus_get_device
	cbz	x0, LBB0_6
; %bb.1:
	add	x1, sp, #12
	mov	x0, x19
	bl	_acpi_get_parent
	ldr	w0, [sp, #12]
	add	x1, sp, #16
	bl	_acpi_bus_get_device
	cbz	x0, LBB0_3
; %bb.2:
	mov	x1, #0
	str	xzr, [sp, #16]
	b	LBB0_4
LBB0_3:
	ldr	x1, [sp, #16]
LBB0_4:
Lloh0:
	adrp	x8, _ACPI_BUS_TYPE_DEVICE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ACPI_BUS_TYPE_DEVICE@GOTPAGEOFF]
Lloh2:
	ldr	w3, [x8]
	add	x0, sp, #24
	mov	x2, x19
	bl	_acpi_bus_add
	cbz	w0, LBB0_6
; %bb.5:
	neg	w1, w0
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pr_debug
	mov	x0, #0
	b	LBB0_7
LBB0_6:
	ldr	x0, [sp, #24]
LBB0_7:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_ACPI_BUS_TYPE_DEVICE,4,2       ; @ACPI_BUS_TYPE_DEVICE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"error adding bus, %x\n"

	.no_dead_strip	_dock_create_acpi_device
.subsections_via_symbols
