	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function acpi_ev_install_handler
_acpi_ev_install_handler:               ## @acpi_ev_install_handler
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r15
	movl	%edi, %ebx
	movq	_ev_install_handler@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_ACPI_FUNCTION_NAME
	testq	%r15, %r15
	je	LBB0_1
## %bb.2:
	movl	%ebx, %edi
	callq	_acpi_ns_map_handle_to_node
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	movq	(%rax), %rcx
	movq	_ACPI_TYPE_DEVICE@GOTPCREL(%rip), %rbx
	cmpq	(%rbx), %rcx
	je	LBB0_7
## %bb.5:
	movq	_ACPI_TYPE_REGION@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	je	LBB0_7
## %bb.6:
	movq	_acpi_gbl_root_node@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_1
LBB0_7:
	movq	%rax, %rdi
	callq	_acpi_ns_get_attached_object
	testq	%rax, %rax
	je	LBB0_1
## %bb.8:
	movq	%rax, %r14
	movq	(%rax), %rax
	cmpq	(%rbx), %rax
	jne	LBB0_15
## %bb.9:
	testq	%rax, %rax
	je	LBB0_1
## %bb.10:
	movq	(%r15), %rdi
	.p2align	4, 0x90
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	cmpq	%rdi, (%rax)
	je	LBB0_12
## %bb.14:                              ##   in Loop: Header=BB0_11 Depth=1
	movq	8(%rax), %rax
	testq	%rax, %rax
	jne	LBB0_11
	jmp	LBB0_1
LBB0_3:
	movq	_AE_BAD_PARAMETER@GOTPCREL(%rip), %rax
	jmp	LBB0_13
LBB0_15:
	cmpq	(%r15), %rax
	jne	LBB0_1
## %bb.16:
	movq	_FALSE@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movq	%r14, %rdi
	callq	_acpi_ev_detach_region
	movl	(%rbx), %edx
	movq	%r15, %rdi
	movq	%r14, %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_acpi_ev_attach_region          ## TAILCALL
LBB0_1:
	movq	_AE_OK@GOTPCREL(%rip), %rax
LBB0_13:
	movl	(%rax), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_12:
	callq	_acpi_ut_get_region_name
	movl	%r15d, %edi
	callq	_ACPI_DEBUG_PRINT
	movq	_AE_CTRL_DEPTH@GOTPCREL(%rip), %rax
	jmp	LBB0_13
	.cfi_endproc
                                        ## -- End function
	.comm	_ev_install_handler,4,2         ## @ev_install_handler
	.comm	_AE_OK,4,2                      ## @AE_OK
	.comm	_AE_BAD_PARAMETER,4,2           ## @AE_BAD_PARAMETER
	.comm	_ACPI_TYPE_DEVICE,8,3           ## @ACPI_TYPE_DEVICE
	.comm	_ACPI_TYPE_REGION,8,3           ## @ACPI_TYPE_REGION
	.comm	_acpi_gbl_root_node,8,3         ## @acpi_gbl_root_node
	.comm	_ACPI_DB_OPREGION,4,2           ## @ACPI_DB_OPREGION
	.comm	_AE_CTRL_DEPTH,4,2              ## @AE_CTRL_DEPTH
	.comm	_FALSE,4,2                      ## @FALSE
	.no_dead_strip	_acpi_ev_install_handler
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function acpi_ev_install_handler
_acpi_ev_install_handler:               ; @acpi_ev_install_handler
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x19, x2
	mov	x20, x0
Lloh0:
	adrp	x8, _ev_install_handler@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ev_install_handler@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_ACPI_FUNCTION_NAME
	cbz	x19, LBB0_12
; %bb.1:
	mov	x0, x20
	bl	_acpi_ns_map_handle_to_node
	cbz	x0, LBB0_9
; %bb.2:
	ldr	x8, [x0]
Lloh3:
	adrp	x21, _ACPI_TYPE_DEVICE@GOTPAGE
Lloh4:
	ldr	x21, [x21, _ACPI_TYPE_DEVICE@GOTPAGEOFF]
	ldr	x9, [x21]
Lloh5:
	adrp	x10, _ACPI_TYPE_REGION@GOTPAGE
Lloh6:
	ldr	x10, [x10, _ACPI_TYPE_REGION@GOTPAGEOFF]
Lloh7:
	ldr	x10, [x10]
Lloh8:
	adrp	x11, _acpi_gbl_root_node@GOTPAGE
Lloh9:
	ldr	x11, [x11, _acpi_gbl_root_node@GOTPAGEOFF]
Lloh10:
	ldr	x11, [x11]
	cmp	x8, x9
	ccmp	x8, x10, #4, ne
	ccmp	x0, x11, #4, ne
	b.ne	LBB0_12
; %bb.3:
	bl	_acpi_ns_get_attached_object
	cbz	x0, LBB0_12
; %bb.4:
	mov	x20, x0
	ldr	x8, [x0]
	ldr	x9, [x21]
	cmp	x8, x9
	b.ne	LBB0_10
; %bb.5:
	cbz	x8, LBB0_12
; %bb.6:
	ldr	x0, [x19]
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x8]
	cmp	x9, x0
	b.eq	LBB0_14
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	x8, [x8, #8]
	cbnz	x8, LBB0_7
	b	LBB0_12
LBB0_9:
Lloh11:
	adrp	x8, _AE_BAD_PARAMETER@GOTPAGE
Lloh12:
	ldr	x8, [x8, _AE_BAD_PARAMETER@GOTPAGEOFF]
	b	LBB0_13
LBB0_10:
	ldr	x9, [x19]
	cmp	x8, x9
	b.ne	LBB0_12
; %bb.11:
Lloh13:
	adrp	x21, _FALSE@GOTPAGE
Lloh14:
	ldr	x21, [x21, _FALSE@GOTPAGEOFF]
	ldr	w1, [x21]
	mov	x0, x20
	bl	_acpi_ev_detach_region
	ldr	w2, [x21]
	mov	x0, x19
	mov	x1, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_acpi_ev_attach_region
LBB0_12:
Lloh15:
	adrp	x8, _AE_OK@GOTPAGE
Lloh16:
	ldr	x8, [x8, _AE_OK@GOTPAGEOFF]
LBB0_13:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_14:
	bl	_acpi_ut_get_region_name
	mov	x0, x19
	bl	_ACPI_DEBUG_PRINT
Lloh17:
	adrp	x8, _AE_CTRL_DEPTH@GOTPAGE
Lloh18:
	ldr	x8, [x8, _AE_CTRL_DEPTH@GOTPAGEOFF]
	b	LBB0_13
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_ev_install_handler,4,2         ; @ev_install_handler
	.comm	_AE_OK,4,2                      ; @AE_OK
	.comm	_AE_BAD_PARAMETER,4,2           ; @AE_BAD_PARAMETER
	.comm	_ACPI_TYPE_DEVICE,8,3           ; @ACPI_TYPE_DEVICE
	.comm	_ACPI_TYPE_REGION,8,3           ; @ACPI_TYPE_REGION
	.comm	_acpi_gbl_root_node,8,3         ; @acpi_gbl_root_node
	.comm	_ACPI_DB_OPREGION,4,2           ; @ACPI_DB_OPREGION
	.comm	_AE_CTRL_DEPTH,4,2              ; @AE_CTRL_DEPTH
	.comm	_FALSE,4,2                      ; @FALSE
	.no_dead_strip	_acpi_ev_install_handler
.subsections_via_symbols
