	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function acpi_platform_notify
_acpi_platform_notify:                  ## @acpi_platform_notify
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %r14
	movl	4(%rdi), %edi
	testl	%edi, %edi
	je	LBB0_2
## %bb.1:
	cmpl	$0, 8(%r14)
	je	LBB0_2
## %bb.3:
	callq	_acpi_get_bus_type
	testq	%rax, %rax
	je	LBB0_4
## %bb.7:
	leaq	-20(%rbp), %rsi
	movq	%r14, %rdi
	callq	*(%rax)
	testl	%eax, %eax
	je	LBB0_6
## %bb.8:
	movl	%eax, %ebx
	movq	%r14, %rdi
	callq	_dev_name
	leaq	L_.str.1(%rip), %rdi
	movl	%eax, %esi
	xorl	%eax, %eax
	callq	_DBG
	jmp	LBB0_9
LBB0_2:
	leaq	-20(%rbp), %rsi
	movq	%r14, %rdi
	callq	_acpi_find_bridge_device
	movl	%eax, %ebx
	testl	%ebx, %ebx
	jne	LBB0_9
LBB0_6:
	movl	-20(%rbp), %esi
	movq	%r14, %rdi
	callq	_acpi_bind_one
	xorl	%ebx, %ebx
LBB0_9:
	movl	%ebx, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_4:
	movq	%r14, %rdi
	callq	_dev_name
	leaq	L_.str(%rip), %rdi
	xorl	%ebx, %ebx
	movl	%eax, %esi
	xorl	%eax, %eax
	callq	_DBG
	movq	_EINVAL@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
	testl	%ebx, %ebx
	jne	LBB0_9
	jmp	LBB0_6
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"No ACPI bus support for %s\n"

L_.str.1:                               ## @.str.1
	.asciz	"Can't get handler for %s\n"

	.comm	_ACPI_ALLOCATE_BUFFER,4,2       ## @ACPI_ALLOCATE_BUFFER
	.comm	_ACPI_FULL_PATHNAME,4,2         ## @ACPI_FULL_PATHNAME
	.no_dead_strip	_acpi_platform_notify
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function acpi_platform_notify
_acpi_platform_notify:                  ; @acpi_platform_notify
	.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
	mov	x19, x0
	ldr	w0, [x0, #4]
	cbz	w0, LBB0_5
; %bb.1:
	ldr	w8, [x19, #8]
	cbz	w8, LBB0_5
; %bb.2:
	bl	_acpi_get_bus_type
	cbz	x0, LBB0_8
; %bb.3:
	ldr	x8, [x0]
	add	x1, sp, #12
	mov	x0, x19
	blr	x8
	cbz	w0, LBB0_6
; %bb.4:
	mov	x20, x0
	mov	x0, x19
	bl	_dev_name
	mov	x1, x0
Lloh0:
	adrp	x0, l_.str.1@PAGE
Lloh1:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_DBG
	b	LBB0_7
LBB0_5:
	add	x1, sp, #12
	mov	x0, x19
	bl	_acpi_find_bridge_device
	mov	x20, x0
	cbnz	w20, LBB0_7
LBB0_6:
	ldr	w1, [sp, #12]
	mov	x0, x19
	bl	_acpi_bind_one
	mov	w20, #0
LBB0_7:
	mov	x0, x20
	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:
	mov	x0, x19
	bl	_dev_name
	mov	x1, x0
Lloh2:
	adrp	x0, l_.str@PAGE
Lloh3:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DBG
Lloh4:
	adrp	x8, _EINVAL@GOTPAGE
Lloh5:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	neg	w20, w8
	cbnz	w20, LBB0_7
	b	LBB0_6
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"No ACPI bus support for %s\n"

l_.str.1:                               ; @.str.1
	.asciz	"Can't get handler for %s\n"

	.comm	_ACPI_ALLOCATE_BUFFER,4,2       ; @ACPI_ALLOCATE_BUFFER
	.comm	_ACPI_FULL_PATHNAME,4,2         ; @ACPI_FULL_PATHNAME
	.no_dead_strip	_acpi_platform_notify
.subsections_via_symbols
