	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function acpi_ev_install_gpe_block
_acpi_ev_install_gpe_block:             ## @acpi_ev_install_gpe_block
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r15d
	movq	%rdi, %r14
	movq	_ev_install_gpe_block@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_ACPI_FUNCTION_TRACE
	movq	_ACPI_MTX_EVENTS@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	callq	_acpi_ut_acquire_mutex
	movl	%eax, %ebx
	movl	%eax, %edi
	callq	_ACPI_FAILURE
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movl	%ebx, %edi
	callq	_return_ACPI_STATUS
LBB0_2:
	movl	%r15d, %edi
	callq	_acpi_ev_get_gpe_xrupt_block
	testq	%rax, %rax
	je	LBB0_8
## %bb.3:
	movq	%rax, %rbx
	movq	_acpi_gbl_gpe_lock@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	callq	_acpi_os_acquire_lock
	movq	(%rbx), %rcx
	testq	%rcx, %rcx
	je	LBB0_6
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rcx, %rdx
	movq	16(%rcx), %rcx
	testq	%rcx, %rcx
	jne	LBB0_4
## %bb.5:
	movq	%r14, 16(%rdx)
	movq	%rdx, 8(%r14)
	jmp	LBB0_7
LBB0_6:
	movq	%r14, (%rbx)
LBB0_7:
	movq	%rbx, (%r14)
	movl	(%r15), %edi
	movl	%eax, %esi
	callq	_acpi_os_release_lock
LBB0_8:
	movl	(%r12), %edi
	callq	_acpi_ut_release_mutex
	movl	%eax, %edi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_return_ACPI_STATUS             ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_ev_install_gpe_block,4,2       ## @ev_install_gpe_block
	.comm	_ACPI_MTX_EVENTS,4,2            ## @ACPI_MTX_EVENTS
	.comm	_AE_NO_MEMORY,4,2               ## @AE_NO_MEMORY
	.comm	_acpi_gbl_gpe_lock,4,2          ## @acpi_gbl_gpe_lock
	.no_dead_strip	_acpi_ev_install_gpe_block
.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_gpe_block
_acpi_ev_install_gpe_block:             ; @acpi_ev_install_gpe_block
	.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	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _ev_install_gpe_block@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ev_install_gpe_block@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_ACPI_FUNCTION_TRACE
Lloh3:
	adrp	x22, _ACPI_MTX_EVENTS@GOTPAGE
Lloh4:
	ldr	x22, [x22, _ACPI_MTX_EVENTS@GOTPAGEOFF]
	ldr	w0, [x22]
	bl	_acpi_ut_acquire_mutex
	mov	x21, x0
	bl	_ACPI_FAILURE
	cbz	x0, LBB0_2
; %bb.1:
	mov	x0, x21
	bl	_return_ACPI_STATUS
LBB0_2:
	mov	x0, x20
	bl	_acpi_ev_get_gpe_xrupt_block
	cbz	x0, LBB0_8
; %bb.3:
	mov	x20, x0
Lloh5:
	adrp	x21, _acpi_gbl_gpe_lock@GOTPAGE
Lloh6:
	ldr	x21, [x21, _acpi_gbl_gpe_lock@GOTPAGEOFF]
	ldr	w0, [x21]
	bl	_acpi_os_acquire_lock
	mov	x1, x0
	ldr	x8, [x20]
	cbz	x8, LBB0_6
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	mov	x9, x8
	ldr	x8, [x8, #16]
	cbnz	x8, LBB0_4
; %bb.5:
	str	x19, [x9, #16]
	str	x9, [x19, #8]
	b	LBB0_7
LBB0_6:
	str	x19, [x20]
LBB0_7:
	str	x20, [x19]
	ldr	w0, [x21]
	bl	_acpi_os_release_lock
LBB0_8:
	ldr	w0, [x22]
	bl	_acpi_ut_release_mutex
	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	_return_ACPI_STATUS
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_ev_install_gpe_block,4,2       ; @ev_install_gpe_block
	.comm	_ACPI_MTX_EVENTS,4,2            ; @ACPI_MTX_EVENTS
	.comm	_AE_NO_MEMORY,4,2               ; @AE_NO_MEMORY
	.comm	_acpi_gbl_gpe_lock,4,2          ; @acpi_gbl_gpe_lock
	.no_dead_strip	_acpi_ev_install_gpe_block
.subsections_via_symbols
