	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_acpi_ev_install_xrupt_handlers ## -- Begin function acpi_ev_install_xrupt_handlers
	.p2align	4, 0x90
_acpi_ev_install_xrupt_handlers:        ## @acpi_ev_install_xrupt_handlers
	.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
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	_ev_install_xrupt_handlers@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_ACPI_FUNCTION_TRACE
	xorl	%eax, %eax
	callq	_acpi_ev_install_sci_handler
	movl	%eax, %ebx
	movl	%eax, %edi
	callq	_ACPI_FAILURE
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rdi
                                        ## kill: def $edi killed $edi killed $rdi
	callq	_ACPI_EXCEPTION
	movl	%ebx, %edi
	callq	_return_ACPI_STATUS
LBB0_2:
	xorl	%eax, %eax
	callq	_acpi_ev_init_global_lock_handler
	movl	%eax, %ebx
	movl	%eax, %edi
	callq	_ACPI_FAILURE
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	leaq	L_.str.1(%rip), %rdi
                                        ## kill: def $edi killed $edi killed $rdi
	callq	_ACPI_EXCEPTION
	movl	%ebx, %edi
	callq	_return_ACPI_STATUS
LBB0_4:
	movq	_TRUE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_acpi_gbl_events_initialized@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	movl	%ebx, %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_return_ACPI_STATUS             ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_ev_install_xrupt_handlers,4,2  ## @ev_install_xrupt_handlers
	.comm	_AE_INFO,4,2                    ## @AE_INFO
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Unable to install System Control Interrupt handler"

L_.str.1:                               ## @.str.1
	.asciz	"Unable to initialize Global Lock handler"

	.comm	_TRUE,4,2                       ## @TRUE
	.comm	_acpi_gbl_events_initialized,4,2 ## @acpi_gbl_events_initialized
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_acpi_ev_install_xrupt_handlers ; -- Begin function acpi_ev_install_xrupt_handlers
	.p2align	2
_acpi_ev_install_xrupt_handlers:        ; @acpi_ev_install_xrupt_handlers
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
Lloh0:
	adrp	x8, _ev_install_xrupt_handlers@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ev_install_xrupt_handlers@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_ACPI_FUNCTION_TRACE
	bl	_acpi_ev_install_sci_handler
	mov	x19, x0
	bl	_ACPI_FAILURE
	cbz	x0, LBB0_2
; %bb.1:
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
                                        ; kill: def $w0 killed $w0 killed $x0
	bl	_ACPI_EXCEPTION
	mov	x0, x19
	bl	_return_ACPI_STATUS
LBB0_2:
	bl	_acpi_ev_init_global_lock_handler
	mov	x19, x0
	bl	_ACPI_FAILURE
	cbz	x0, LBB0_4
; %bb.3:
Lloh5:
	adrp	x0, l_.str.1@PAGE
Lloh6:
	add	x0, x0, l_.str.1@PAGEOFF
                                        ; kill: def $w0 killed $w0 killed $x0
	bl	_ACPI_EXCEPTION
	mov	x0, x19
	bl	_return_ACPI_STATUS
LBB0_4:
Lloh7:
	adrp	x8, _TRUE@GOTPAGE
Lloh8:
	ldr	x8, [x8, _TRUE@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
Lloh10:
	adrp	x9, _acpi_gbl_events_initialized@GOTPAGE
Lloh11:
	ldr	x9, [x9, _acpi_gbl_events_initialized@GOTPAGEOFF]
Lloh12:
	str	w8, [x9]
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_return_ACPI_STATUS
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotStr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_ev_install_xrupt_handlers,4,2  ; @ev_install_xrupt_handlers
	.comm	_AE_INFO,4,2                    ; @AE_INFO
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Unable to install System Control Interrupt handler"

l_.str.1:                               ; @.str.1
	.asciz	"Unable to initialize Global Lock handler"

	.comm	_TRUE,4,2                       ; @TRUE
	.comm	_acpi_gbl_events_initialized,4,2 ; @acpi_gbl_events_initialized
.subsections_via_symbols
