	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_acpi_ev_disable_gpe            ## -- Begin function acpi_ev_disable_gpe
	.p2align	4, 0x90
_acpi_ev_disable_gpe:                   ## @acpi_ev_disable_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %r14
	movq	_ev_disable_gpe@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_ACPI_FUNCTION_TRACE
	movq	_ACPI_GPE_DISABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %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	(%r14), %edi
	movq	_ACPI_GPE_TYPE_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	%edi, %eax
	cmpl	$130, %eax
	je	LBB0_7
## %bb.3:
	cmpl	$129, %eax
	je	LBB0_4
## %bb.5:
	cmpl	$128, %eax
	jne	LBB0_9
## %bb.6:
	movq	_ACPI_GPE_WAKE_ENABLED@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_ACPI_CLEAR_BIT
	movl	(%r14), %edi
LBB0_7:
	movq	_ACPI_GPE_RUN_ENABLED@GOTPCREL(%rip), %rax
	jmp	LBB0_8
LBB0_4:
	movq	_ACPI_GPE_WAKE_ENABLED@GOTPCREL(%rip), %rax
LBB0_8:
	movl	(%rax), %esi
	callq	_ACPI_CLEAR_BIT
LBB0_9:
	movq	%r14, %rdi
	callq	_acpi_hw_low_disable_gpe
	movl	%eax, %edi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_return_ACPI_STATUS             ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_ev_disable_gpe,4,2             ## @ev_disable_gpe
	.comm	_ACPI_GPE_DISABLE,4,2           ## @ACPI_GPE_DISABLE
	.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
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_acpi_ev_disable_gpe            ; -- Begin function acpi_ev_disable_gpe
	.p2align	2
_acpi_ev_disable_gpe:                   ; @acpi_ev_disable_gpe
	.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
	mov	x19, x0
Lloh0:
	adrp	x8, _ev_disable_gpe@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ev_disable_gpe@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_ACPI_FUNCTION_TRACE
Lloh3:
	adrp	x8, _ACPI_GPE_DISABLE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ACPI_GPE_DISABLE@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_acpi_ev_update_gpe_enable_masks
	mov	x20, x0
	bl	_ACPI_FAILURE
	cbz	x0, LBB0_2
; %bb.1:
	mov	x0, x20
	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	w9, w8, w0
	cmp	w9, #130
	b.eq	LBB0_6
; %bb.3:
Lloh9:
	adrp	x8, _ACPI_GPE_WAKE_ENABLED@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ACPI_GPE_WAKE_ENABLED@GOTPAGEOFF]
	cmp	w9, #129
	b.eq	LBB0_7
; %bb.4:
	cmp	w9, #128
	b.ne	LBB0_8
; %bb.5:
	ldr	w1, [x8]
	bl	_ACPI_CLEAR_BIT
	ldr	w0, [x19]
LBB0_6:
Lloh11:
	adrp	x8, _ACPI_GPE_RUN_ENABLED@GOTPAGE
Lloh12:
	ldr	x8, [x8, _ACPI_GPE_RUN_ENABLED@GOTPAGEOFF]
LBB0_7:
	ldr	w1, [x8]
	bl	_ACPI_CLEAR_BIT
LBB0_8:
	mov	x0, x19
	bl	_acpi_hw_low_disable_gpe
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_return_ACPI_STATUS
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_ev_disable_gpe,4,2             ; @ev_disable_gpe
	.comm	_ACPI_GPE_DISABLE,4,2           ; @ACPI_GPE_DISABLE
	.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
.subsections_via_symbols
