	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_acpi_ev_enable_gpe             ## -- Begin function acpi_ev_enable_gpe
	.p2align	4, 0x90
_acpi_ev_enable_gpe:                    ## @acpi_ev_enable_gpe
	.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
	movl	%esi, %r14d
	movq	%rdi, %r15
	movq	_ev_enable_gpe@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_ACPI_FUNCTION_TRACE
	movq	_ACPI_GPE_ENABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_acpi_ev_update_gpe_enable_masks
	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	(%r15), %edi
	movq	_ACPI_GPE_TYPE_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	%edi, %eax
	cmpl	$128, %eax
	je	LBB0_6
## %bb.3:
	cmpl	$130, %eax
	je	LBB0_7
## %bb.4:
	cmpl	$129, %eax
	jne	LBB0_11
## %bb.5:
	movq	_ACPI_GPE_WAKE_ENABLED@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_ACPI_SET_BIT
	jmp	LBB0_12
LBB0_6:
	movq	_ACPI_GPE_WAKE_ENABLED@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_ACPI_SET_BIT
	movl	(%r15), %edi
LBB0_7:
	movq	_ACPI_GPE_RUN_ENABLED@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_ACPI_SET_BIT
	testl	%r14d, %r14d
	je	LBB0_12
## %bb.8:
	movq	%r15, %rdi
	callq	_acpi_hw_clear_gpe
	movl	%eax, %ebx
	movl	%eax, %edi
	callq	_ACPI_FAILURE
	testq	%rax, %rax
	je	LBB0_10
## %bb.9:
	movl	%ebx, %edi
	callq	_return_ACPI_STATUS
LBB0_10:
	movq	%r15, %rdi
	callq	_acpi_hw_write_gpe_enable_reg
	jmp	LBB0_12
LBB0_11:
	movq	_AE_BAD_PARAMETER@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_return_ACPI_STATUS
LBB0_12:
	movq	_AE_OK@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_return_ACPI_STATUS             ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_ev_enable_gpe,4,2              ## @ev_enable_gpe
	.comm	_ACPI_GPE_ENABLE,4,2            ## @ACPI_GPE_ENABLE
	.comm	_ACPI_GPE_TYPE_MASK,4,2         ## @ACPI_GPE_TYPE_MASK
	.comm	_ACPI_GPE_WAKE_ENABLED,4,2      ## @ACPI_GPE_WAKE_ENABLED
	.comm	_ACPI_GPE_RUN_ENABLED,4,2       ## @ACPI_GPE_RUN_ENABLED
	.comm	_AE_BAD_PARAMETER,4,2           ## @AE_BAD_PARAMETER
	.comm	_AE_OK,4,2                      ## @AE_OK
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_acpi_ev_enable_gpe             ; -- Begin function acpi_ev_enable_gpe
	.p2align	2
_acpi_ev_enable_gpe:                    ; @acpi_ev_enable_gpe
	.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_enable_gpe@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ev_enable_gpe@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_ACPI_FUNCTION_TRACE
Lloh3:
	adrp	x8, _ACPI_GPE_ENABLE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ACPI_GPE_ENABLE@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_acpi_ev_update_gpe_enable_masks
	mov	x21, x0
	bl	_ACPI_FAILURE
	cbz	x0, LBB0_2
; %bb.1:
	mov	x0, x21
	bl	_return_ACPI_STATUS
LBB0_2:
	ldr	w0, [x19]
Lloh6:
	adrp	x8, _ACPI_GPE_TYPE_MASK@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ACPI_GPE_TYPE_MASK@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	and	w8, w8, w0
	cmp	w8, #128
	b.eq	LBB0_6
; %bb.3:
	cmp	w8, #130
	b.eq	LBB0_7
; %bb.4:
	cmp	w8, #129
	b.ne	LBB0_11
; %bb.5:
Lloh9:
	adrp	x8, _ACPI_GPE_WAKE_ENABLED@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ACPI_GPE_WAKE_ENABLED@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	bl	_ACPI_SET_BIT
	b	LBB0_12
LBB0_6:
Lloh12:
	adrp	x8, _ACPI_GPE_WAKE_ENABLED@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ACPI_GPE_WAKE_ENABLED@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	bl	_ACPI_SET_BIT
	ldr	w0, [x19]
LBB0_7:
Lloh15:
	adrp	x8, _ACPI_GPE_RUN_ENABLED@GOTPAGE
Lloh16:
	ldr	x8, [x8, _ACPI_GPE_RUN_ENABLED@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
	bl	_ACPI_SET_BIT
	cbz	w20, LBB0_12
; %bb.8:
	mov	x0, x19
	bl	_acpi_hw_clear_gpe
	mov	x20, x0
	bl	_ACPI_FAILURE
	cbz	x0, LBB0_10
; %bb.9:
	mov	x0, x20
	bl	_return_ACPI_STATUS
LBB0_10:
	mov	x0, x19
	bl	_acpi_hw_write_gpe_enable_reg
	b	LBB0_12
LBB0_11:
Lloh18:
	adrp	x8, _AE_BAD_PARAMETER@GOTPAGE
Lloh19:
	ldr	x8, [x8, _AE_BAD_PARAMETER@GOTPAGEOFF]
Lloh20:
	ldr	w0, [x8]
	bl	_return_ACPI_STATUS
LBB0_12:
Lloh21:
	adrp	x8, _AE_OK@GOTPAGE
Lloh22:
	ldr	x8, [x8, _AE_OK@GOTPAGEOFF]
Lloh23:
	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
	b	_return_ACPI_STATUS
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.comm	_ev_enable_gpe,4,2              ; @ev_enable_gpe
	.comm	_ACPI_GPE_ENABLE,4,2            ; @ACPI_GPE_ENABLE
	.comm	_ACPI_GPE_TYPE_MASK,4,2         ; @ACPI_GPE_TYPE_MASK
	.comm	_ACPI_GPE_WAKE_ENABLED,4,2      ; @ACPI_GPE_WAKE_ENABLED
	.comm	_ACPI_GPE_RUN_ENABLED,4,2       ; @ACPI_GPE_RUN_ENABLED
	.comm	_AE_BAD_PARAMETER,4,2           ; @AE_BAD_PARAMETER
	.comm	_AE_OK,4,2                      ; @AE_OK
.subsections_via_symbols
