	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function acpi_device_install_notify_handler
_acpi_device_install_notify_handler:    ## @acpi_device_install_notify_handler
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	%rdi, %rcx
	movq	(%rdi), %rax
	movq	_ACPI_BUS_TYPE_POWER_BUTTON@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rax
	jne	LBB0_3
## %bb.1:
	movq	_ACPI_EVENT_POWER_BUTTON@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_3:
	movq	_ACPI_BUS_TYPE_SLEEP_BUTTON@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rax
	jne	LBB0_5
## %bb.4:
	movq	_ACPI_EVENT_SLEEP_BUTTON@GOTPCREL(%rip), %rax
LBB0_2:
	movl	(%rax), %edi
	movq	_acpi_device_notify_fixed@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rcx, %rdx
	callq	_acpi_install_fixed_event_handler
	jmp	LBB0_6
LBB0_5:
	movl	8(%rcx), %edi
	movq	_ACPI_DEVICE_NOTIFY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_acpi_device_notify@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_acpi_install_notify_handler
LBB0_6:
	movl	%eax, %edi
	callq	_ACPI_FAILURE
	movq	_EINVAL@GOTPCREL(%rip), %rdx
	xorl	%ecx, %ecx
	subl	(%rdx), %ecx
	xorl	%edx, %edx
	testq	%rax, %rax
	cmovel	%edx, %ecx
	movl	%ecx, %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ACPI_BUS_TYPE_POWER_BUTTON,8,3 ## @ACPI_BUS_TYPE_POWER_BUTTON
	.comm	_ACPI_EVENT_POWER_BUTTON,4,2    ## @ACPI_EVENT_POWER_BUTTON
	.comm	_acpi_device_notify_fixed,4,2   ## @acpi_device_notify_fixed
	.comm	_ACPI_BUS_TYPE_SLEEP_BUTTON,8,3 ## @ACPI_BUS_TYPE_SLEEP_BUTTON
	.comm	_ACPI_EVENT_SLEEP_BUTTON,4,2    ## @ACPI_EVENT_SLEEP_BUTTON
	.comm	_ACPI_DEVICE_NOTIFY,4,2         ## @ACPI_DEVICE_NOTIFY
	.comm	_acpi_device_notify,4,2         ## @acpi_device_notify
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_acpi_device_install_notify_handler
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function acpi_device_install_notify_handler
_acpi_device_install_notify_handler:    ; @acpi_device_install_notify_handler
	.cfi_startproc
; %bb.0:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	mov	x3, x0
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _ACPI_BUS_TYPE_POWER_BUTTON@GOTPAGE
Lloh1:
	ldr	x9, [x9, _ACPI_BUS_TYPE_POWER_BUTTON@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _ACPI_EVENT_POWER_BUTTON@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ACPI_EVENT_POWER_BUTTON@GOTPAGEOFF]
	b	LBB0_4
LBB0_2:
Lloh5:
	adrp	x9, _ACPI_BUS_TYPE_SLEEP_BUTTON@GOTPAGE
Lloh6:
	ldr	x9, [x9, _ACPI_BUS_TYPE_SLEEP_BUTTON@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_5
; %bb.3:
Lloh8:
	adrp	x8, _ACPI_EVENT_SLEEP_BUTTON@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ACPI_EVENT_SLEEP_BUTTON@GOTPAGEOFF]
LBB0_4:
	ldr	w0, [x8]
Lloh10:
	adrp	x8, _acpi_device_notify_fixed@GOTPAGE
Lloh11:
	ldr	x8, [x8, _acpi_device_notify_fixed@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
	mov	x2, x3
	bl	_acpi_install_fixed_event_handler
	b	LBB0_6
LBB0_5:
	ldr	w0, [x3, #8]
Lloh13:
	adrp	x8, _ACPI_DEVICE_NOTIFY@GOTPAGE
Lloh14:
	ldr	x8, [x8, _ACPI_DEVICE_NOTIFY@GOTPAGEOFF]
Lloh15:
	ldr	w1, [x8]
Lloh16:
	adrp	x8, _acpi_device_notify@GOTPAGE
Lloh17:
	ldr	x8, [x8, _acpi_device_notify@GOTPAGEOFF]
Lloh18:
	ldr	w2, [x8]
	bl	_acpi_install_notify_handler
LBB0_6:
	bl	_ACPI_FAILURE
Lloh19:
	adrp	x8, _EINVAL@GOTPAGE
Lloh20:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh21:
	ldr	w8, [x8]
	cmp	x0, #0
	csneg	w0, wzr, w8, eq
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_ACPI_BUS_TYPE_POWER_BUTTON,8,3 ; @ACPI_BUS_TYPE_POWER_BUTTON
	.comm	_ACPI_EVENT_POWER_BUTTON,4,2    ; @ACPI_EVENT_POWER_BUTTON
	.comm	_acpi_device_notify_fixed,4,2   ; @acpi_device_notify_fixed
	.comm	_ACPI_BUS_TYPE_SLEEP_BUTTON,8,3 ; @ACPI_BUS_TYPE_SLEEP_BUTTON
	.comm	_ACPI_EVENT_SLEEP_BUTTON,4,2    ; @ACPI_EVENT_SLEEP_BUTTON
	.comm	_ACPI_DEVICE_NOTIFY,4,2         ; @ACPI_DEVICE_NOTIFY
	.comm	_acpi_device_notify,4,2         ; @acpi_device_notify
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_acpi_device_install_notify_handler
.subsections_via_symbols
