	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_acpi_ev_set_gpe_type           ## -- Begin function acpi_ev_set_gpe_type
	.p2align	4, 0x90
_acpi_ev_set_gpe_type:                  ## @acpi_ev_set_gpe_type
	.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
	movl	%esi, %r14d
	movq	%rdi, %rbx
	movq	_ev_set_gpe_type@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_ACPI_FUNCTION_TRACE
	leal	-128(%r14), %eax
	cmpl	$3, %eax
	jb	LBB0_2
## %bb.1:
	movq	_AE_BAD_PARAMETER@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_return_ACPI_STATUS
LBB0_2:
	movq	%rbx, %rdi
	callq	_acpi_ev_disable_gpe
	movq	_ACPI_GPE_TYPE_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	notl	%ecx
	andl	(%rbx), %ecx
	orl	%r14d, %ecx
	movl	%ecx, (%rbx)
	movl	%eax, %edi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_return_ACPI_STATUS             ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_ev_set_gpe_type,4,2            ## @ev_set_gpe_type
	.comm	_AE_BAD_PARAMETER,4,2           ## @AE_BAD_PARAMETER
	.comm	_ACPI_GPE_TYPE_MASK,4,2         ## @ACPI_GPE_TYPE_MASK
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_acpi_ev_set_gpe_type           ; -- Begin function acpi_ev_set_gpe_type
	.p2align	2
_acpi_ev_set_gpe_type:                  ; @acpi_ev_set_gpe_type
	.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	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _ev_set_gpe_type@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ev_set_gpe_type@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_ACPI_FUNCTION_TRACE
	sub	w8, w20, #128
	cmp	w8, #3
	b.lo	LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _AE_BAD_PARAMETER@GOTPAGE
Lloh4:
	ldr	x8, [x8, _AE_BAD_PARAMETER@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	bl	_return_ACPI_STATUS
LBB0_2:
	mov	x0, x19
	bl	_acpi_ev_disable_gpe
Lloh6:
	adrp	x8, _ACPI_GPE_TYPE_MASK@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ACPI_GPE_TYPE_MASK@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	ldr	w9, [x19]
	bic	w8, w9, w8
	orr	w8, w8, w20
	str	w8, [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 AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_ev_set_gpe_type,4,2            ; @ev_set_gpe_type
	.comm	_AE_BAD_PARAMETER,4,2           ; @AE_BAD_PARAMETER
	.comm	_ACPI_GPE_TYPE_MASK,4,2         ; @ACPI_GPE_TYPE_MASK
.subsections_via_symbols
