	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_acpi_install_fixed_event_handler ## -- Begin function acpi_install_fixed_event_handler
	.p2align	4, 0x90
_acpi_install_fixed_event_handler:      ## @acpi_install_fixed_event_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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r12
	movq	%rsi, -48(%rbp)                 ## 8-byte Spill
	movq	%rdi, %r14
	leaq	_acpi_install_fixed_event_handler(%rip), %rdi
	callq	_ACPI_FUNCTION_TRACE
	movq	_ACPI_EVENT_MAX@GOTPCREL(%rip), %rax
	cmpq	%r14, (%rax)
	jae	LBB0_2
## %bb.1:
	movq	_AE_BAD_PARAMETER@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_return_ACPI_STATUS
LBB0_2:
	movq	_ACPI_MTX_EVENTS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_acpi_ut_acquire_mutex
	movl	%eax, %ebx
	movl	%eax, %edi
	callq	_ACPI_FAILURE
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movl	%ebx, %edi
	callq	_return_ACPI_STATUS
LBB0_4:
	movq	_acpi_gbl_fixed_event_handlers@GOTPCREL(%rip), %r13
	movq	(%r13), %rax
	movq	%r14, %r15
	shlq	$4, %r15
	cmpq	$0, 8(%rax,%r15)
	je	LBB0_6
## %bb.5:
	movq	_AE_ALREADY_EXISTS@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	jmp	LBB0_11
LBB0_6:
	addq	%r15, %rax
	addq	$8, %rax
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movq	%rcx, (%rax)
	movq	(%r13), %rax
	movq	%r12, (%rax,%r15)
	movq	%r14, %rdi
	callq	_acpi_clear_event
	movl	%eax, %ebx
	movl	%eax, %edi
	callq	_ACPI_SUCCESS
	testq	%rax, %rax
	je	LBB0_8
## %bb.7:
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_acpi_enable_event
	movl	%eax, %ebx
LBB0_8:
	movl	%ebx, %edi
	callq	_ACPI_FAILURE
	testq	%rax, %rax
	je	LBB0_10
## %bb.9:
	movl	%r14d, %edi
	callq	_ACPI_WARNING
	movq	(%r13), %rax
	movq	$0, 8(%rax,%r15)
	movq	(%r13), %rax
	movq	$0, (%rax,%r15)
	jmp	LBB0_11
LBB0_10:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
                                        ## kill: def $edi killed $edi killed $rdi
	callq	_ACPI_DEBUG_PRINT
LBB0_11:
	movq	_ACPI_MTX_EVENTS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_acpi_ut_release_mutex
	movl	%ebx, %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_return_ACPI_STATUS             ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_ACPI_EVENT_MAX,8,3             ## @ACPI_EVENT_MAX
	.comm	_AE_BAD_PARAMETER,4,2           ## @AE_BAD_PARAMETER
	.comm	_ACPI_MTX_EVENTS,4,2            ## @ACPI_MTX_EVENTS
	.comm	_acpi_gbl_fixed_event_handlers,8,3 ## @acpi_gbl_fixed_event_handlers
	.comm	_AE_ALREADY_EXISTS,4,2          ## @AE_ALREADY_EXISTS
	.comm	_AE_INFO,4,2                    ## @AE_INFO
	.comm	_ACPI_DB_INFO,4,2               ## @ACPI_DB_INFO
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_acpi_install_fixed_event_handler ; -- Begin function acpi_install_fixed_event_handler
	.p2align	2
_acpi_install_fixed_event_handler:      ; @acpi_install_fixed_event_handler
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x21, x2
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x0, _acpi_install_fixed_event_handler@PAGE
Lloh1:
	add	x0, x0, _acpi_install_fixed_event_handler@PAGEOFF
	bl	_ACPI_FUNCTION_TRACE
Lloh2:
	adrp	x8, _ACPI_EVENT_MAX@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ACPI_EVENT_MAX@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	cmp	x8, x20
	b.hs	LBB0_2
; %bb.1:
Lloh5:
	adrp	x8, _AE_BAD_PARAMETER@GOTPAGE
Lloh6:
	ldr	x8, [x8, _AE_BAD_PARAMETER@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
	bl	_return_ACPI_STATUS
LBB0_2:
Lloh8:
	adrp	x23, _ACPI_MTX_EVENTS@GOTPAGE
Lloh9:
	ldr	x23, [x23, _ACPI_MTX_EVENTS@GOTPAGEOFF]
	ldr	w0, [x23]
	bl	_acpi_ut_acquire_mutex
	mov	x22, x0
	bl	_ACPI_FAILURE
	cbz	x0, LBB0_4
; %bb.3:
	mov	x0, x22
	bl	_return_ACPI_STATUS
LBB0_4:
Lloh10:
	adrp	x22, _acpi_gbl_fixed_event_handlers@GOTPAGE
Lloh11:
	ldr	x22, [x22, _acpi_gbl_fixed_event_handlers@GOTPAGEOFF]
	ldr	x8, [x22]
	add	x8, x8, x20, lsl #4
	ldr	x9, [x8, #8]!
	cbz	x9, LBB0_6
; %bb.5:
Lloh12:
	adrp	x8, _AE_ALREADY_EXISTS@GOTPAGE
Lloh13:
	ldr	x8, [x8, _AE_ALREADY_EXISTS@GOTPAGEOFF]
Lloh14:
	ldr	w21, [x8]
	b	LBB0_11
LBB0_6:
	str	x19, [x8]
	ldr	x8, [x22]
	lsl	x24, x20, #4
	str	x21, [x8, x24]
	mov	x0, x20
	bl	_acpi_clear_event
	mov	x21, x0
	bl	_ACPI_SUCCESS
	cbz	x0, LBB0_8
; %bb.7:
	mov	x0, x20
	mov	w1, #0
	bl	_acpi_enable_event
	mov	x21, x0
LBB0_8:
	mov	x0, x21
	bl	_ACPI_FAILURE
	cbz	x0, LBB0_10
; %bb.9:
	mov	x0, x20
	bl	_ACPI_WARNING
	ldr	x8, [x22]
	add	x8, x8, x24
	str	xzr, [x8, #8]
	ldr	x8, [x22]
	str	xzr, [x8, x24]
	b	LBB0_11
LBB0_10:
	mov	x0, x19
	bl	_ACPI_DEBUG_PRINT
LBB0_11:
	ldr	w0, [x23]
	bl	_acpi_ut_release_mutex
	mov	x0, x21
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_return_ACPI_STATUS
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_ACPI_EVENT_MAX,8,3             ; @ACPI_EVENT_MAX
	.comm	_AE_BAD_PARAMETER,4,2           ; @AE_BAD_PARAMETER
	.comm	_ACPI_MTX_EVENTS,4,2            ; @ACPI_MTX_EVENTS
	.comm	_acpi_gbl_fixed_event_handlers,8,3 ; @acpi_gbl_fixed_event_handlers
	.comm	_AE_ALREADY_EXISTS,4,2          ; @AE_ALREADY_EXISTS
	.comm	_AE_INFO,4,2                    ; @AE_INFO
	.comm	_ACPI_DB_INFO,4,2               ; @ACPI_DB_INFO
.subsections_via_symbols
