	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_acpi_ev_update_gpe_enable_masks ## -- Begin function acpi_ev_update_gpe_enable_masks
	.p2align	4, 0x90
_acpi_ev_update_gpe_enable_masks:       ## @acpi_ev_update_gpe_enable_masks
	.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
	movq	%rsi, %r15
	movq	%rdi, %r12
	movq	_ev_update_gpe_enable_masks@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_ACPI_FUNCTION_TRACE
	movq	8(%r12), %rbx
	testq	%rbx, %rbx
	jne	LBB0_2
## %bb.1:
	movq	_AE_NOT_EXIST@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_return_ACPI_STATUS
LBB0_2:
	movl	(%r12), %ecx
	subl	(%rbx), %ecx
	movl	$1, %eax
                                        ## kill: def $cl killed $cl killed $ecx
	shll	%cl, %eax
	movslq	%eax, %r14
	movq	_ACPI_GPE_DISABLE@GOTPCREL(%rip), %rax
	cmpq	%r15, (%rax)
	jne	LBB0_4
## %bb.3:
	movl	8(%rbx), %edi
	movq	%r14, %rsi
	callq	_ACPI_CLEAR_BIT
	movl	4(%rbx), %edi
	movq	%r14, %rsi
	callq	_ACPI_CLEAR_BIT
	movq	_AE_OK@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_return_ACPI_STATUS
LBB0_4:
	movq	_ACPI_GPE_TYPE_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	4(%r12), %eax
	cmpl	$128, %eax
	je	LBB0_10
## %bb.5:
	cmpl	$130, %eax
	je	LBB0_8
## %bb.6:
	cmpl	$129, %eax
	jne	LBB0_11
## %bb.7:
	movl	8(%rbx), %edi
	movq	%r14, %rsi
	callq	_ACPI_SET_BIT
	movl	4(%rbx), %edi
	movq	%r14, %rsi
	callq	_ACPI_CLEAR_BIT
	jmp	LBB0_12
LBB0_10:
	movl	8(%rbx), %edi
	movq	%r14, %rsi
	callq	_ACPI_SET_BIT
	jmp	LBB0_9
LBB0_8:
	movl	8(%rbx), %edi
	movq	%r14, %rsi
	callq	_ACPI_CLEAR_BIT
LBB0_9:
	movl	4(%rbx), %edi
	movq	%r14, %rsi
	callq	_ACPI_SET_BIT
	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
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_return_ACPI_STATUS             ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_ev_update_gpe_enable_masks,4,2 ## @ev_update_gpe_enable_masks
	.comm	_AE_NOT_EXIST,4,2               ## @AE_NOT_EXIST
	.comm	_ACPI_GPE_DISABLE,8,3           ## @ACPI_GPE_DISABLE
	.comm	_AE_OK,4,2                      ## @AE_OK
	.comm	_ACPI_GPE_TYPE_MASK,4,2         ## @ACPI_GPE_TYPE_MASK
	.comm	_AE_BAD_PARAMETER,4,2           ## @AE_BAD_PARAMETER
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_acpi_ev_update_gpe_enable_masks ; -- Begin function acpi_ev_update_gpe_enable_masks
	.p2align	2
_acpi_ev_update_gpe_enable_masks:       ; @acpi_ev_update_gpe_enable_masks
	.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, x1
	mov	x20, x0
Lloh0:
	adrp	x8, _ev_update_gpe_enable_masks@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ev_update_gpe_enable_masks@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_ACPI_FUNCTION_TRACE
	ldr	x23, [x20, #8]
	cbnz	x23, LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _AE_NOT_EXIST@GOTPAGE
Lloh4:
	ldr	x8, [x8, _AE_NOT_EXIST@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	bl	_return_ACPI_STATUS
LBB0_2:
	ldr	w8, [x20]
	ldr	w9, [x23]
	sub	w8, w8, w9
	mov	w9, #1
	lsl	w8, w9, w8
	sxtw	x19, w8
Lloh6:
	adrp	x8, _ACPI_GPE_DISABLE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ACPI_GPE_DISABLE@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
Lloh9:
	adrp	x22, _AE_OK@GOTPAGE
Lloh10:
	ldr	x22, [x22, _AE_OK@GOTPAGEOFF]
	cmp	x8, x21
	b.ne	LBB0_4
; %bb.3:
	ldr	w0, [x23, #8]
	mov	x1, x19
	bl	_ACPI_CLEAR_BIT
	ldr	w0, [x23, #4]
	mov	x1, x19
	bl	_ACPI_CLEAR_BIT
	ldr	w0, [x22]
	bl	_return_ACPI_STATUS
LBB0_4:
	ldr	w8, [x20, #4]
Lloh11:
	adrp	x9, _ACPI_GPE_TYPE_MASK@GOTPAGE
Lloh12:
	ldr	x9, [x9, _ACPI_GPE_TYPE_MASK@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
	and	w8, w9, w8
	cmp	w8, #128
	b.eq	LBB0_8
; %bb.5:
	cmp	w8, #130
	b.eq	LBB0_9
; %bb.6:
	cmp	w8, #129
	b.ne	LBB0_11
; %bb.7:
	ldr	w0, [x23, #8]
	mov	x1, x19
	bl	_ACPI_SET_BIT
	ldr	w0, [x23, #4]
	mov	x1, x19
	bl	_ACPI_CLEAR_BIT
	b	LBB0_12
LBB0_8:
	ldr	w0, [x23, #8]
	mov	x1, x19
	bl	_ACPI_SET_BIT
	b	LBB0_10
LBB0_9:
	ldr	w0, [x23, #8]
	mov	x1, x19
	bl	_ACPI_CLEAR_BIT
LBB0_10:
	ldr	w0, [x23, #4]
	mov	x1, x19
	bl	_ACPI_SET_BIT
	b	LBB0_12
LBB0_11:
Lloh14:
	adrp	x8, _AE_BAD_PARAMETER@GOTPAGE
Lloh15:
	ldr	x8, [x8, _AE_BAD_PARAMETER@GOTPAGEOFF]
Lloh16:
	ldr	w0, [x8]
	bl	_return_ACPI_STATUS
LBB0_12:
	ldr	w0, [x22]
	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	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_ev_update_gpe_enable_masks,4,2 ; @ev_update_gpe_enable_masks
	.comm	_AE_NOT_EXIST,4,2               ; @AE_NOT_EXIST
	.comm	_ACPI_GPE_DISABLE,8,3           ; @ACPI_GPE_DISABLE
	.comm	_AE_OK,4,2                      ; @AE_OK
	.comm	_ACPI_GPE_TYPE_MASK,4,2         ; @ACPI_GPE_TYPE_MASK
	.comm	_AE_BAD_PARAMETER,4,2           ; @AE_BAD_PARAMETER
.subsections_via_symbols
