	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function acpi_ev_delete_gpe_xrupt
_acpi_ev_delete_gpe_xrupt:              ## @acpi_ev_delete_gpe_xrupt
	.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_delete_gpe_xrupt@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_ACPI_FUNCTION_TRACE
	movq	(%r14), %rdi
	movq	_acpi_gbl_FADT@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rdi
	jne	LBB0_2
## %bb.1:
	movq	$0, 24(%r14)
	movq	_AE_OK@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_return_ACPI_STATUS
	movq	(%r14), %rdi
LBB0_2:
	movq	_acpi_ev_gpe_xrupt_handler@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_acpi_os_remove_interrupt_handler
	movl	%eax, %ebx
	movl	%eax, %edi
	callq	_ACPI_FAILURE
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movl	%ebx, %edi
	callq	_return_ACPI_STATUS
LBB0_4:
	movq	_acpi_gbl_gpe_lock@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	callq	_acpi_os_acquire_lock
	movq	8(%r14), %rcx
	movq	16(%r14), %rdx
	movq	%rcx, %rsi
	testq	%rcx, %rcx
	jne	LBB0_6
## %bb.5:
	movq	_acpi_gbl_gpe_xrupt_list_head@GOTPCREL(%rip), %rsi
LBB0_6:
	movq	%rdx, (%rsi)
	testq	%rdx, %rdx
	je	LBB0_8
## %bb.7:
	movq	%rcx, (%rdx)
LBB0_8:
	movl	(%rbx), %edi
	movl	%eax, %esi
	callq	_acpi_os_release_lock
	movq	%r14, %rdi
	callq	_ACPI_FREE
	movq	_AE_OK@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_return_ACPI_STATUS             ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_ev_delete_gpe_xrupt,4,2        ## @ev_delete_gpe_xrupt
	.comm	_acpi_gbl_FADT,8,3              ## @acpi_gbl_FADT
	.comm	_AE_OK,4,2                      ## @AE_OK
	.comm	_acpi_ev_gpe_xrupt_handler,4,2  ## @acpi_ev_gpe_xrupt_handler
	.comm	_acpi_gbl_gpe_lock,4,2          ## @acpi_gbl_gpe_lock
	.comm	_acpi_gbl_gpe_xrupt_list_head,8,3 ## @acpi_gbl_gpe_xrupt_list_head
	.no_dead_strip	_acpi_ev_delete_gpe_xrupt
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function acpi_ev_delete_gpe_xrupt
_acpi_ev_delete_gpe_xrupt:              ; @acpi_ev_delete_gpe_xrupt
	.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	x19, x0
Lloh0:
	adrp	x8, _ev_delete_gpe_xrupt@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ev_delete_gpe_xrupt@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_ACPI_FUNCTION_TRACE
	ldr	x0, [x19]
Lloh3:
	adrp	x8, _acpi_gbl_FADT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _acpi_gbl_FADT@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
Lloh6:
	adrp	x21, _AE_OK@GOTPAGE
Lloh7:
	ldr	x21, [x21, _AE_OK@GOTPAGEOFF]
	cmp	x0, x8
	b.ne	LBB0_2
; %bb.1:
	str	xzr, [x19, #24]
	ldr	w0, [x21]
	bl	_return_ACPI_STATUS
	ldr	x0, [x19]
LBB0_2:
Lloh8:
	adrp	x8, _acpi_ev_gpe_xrupt_handler@GOTPAGE
Lloh9:
	ldr	x8, [x8, _acpi_ev_gpe_xrupt_handler@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	bl	_acpi_os_remove_interrupt_handler
	mov	x20, x0
	bl	_ACPI_FAILURE
	cbz	x0, LBB0_4
; %bb.3:
	mov	x0, x20
	bl	_return_ACPI_STATUS
LBB0_4:
Lloh11:
	adrp	x20, _acpi_gbl_gpe_lock@GOTPAGE
Lloh12:
	ldr	x20, [x20, _acpi_gbl_gpe_lock@GOTPAGEOFF]
	ldr	w0, [x20]
	bl	_acpi_os_acquire_lock
	mov	x1, x0
	ldp	x8, x9, [x19, #8]
Lloh13:
	adrp	x10, _acpi_gbl_gpe_xrupt_list_head@GOTPAGE
Lloh14:
	ldr	x10, [x10, _acpi_gbl_gpe_xrupt_list_head@GOTPAGEOFF]
	cmp	x8, #0
	csel	x10, x10, x8, eq
	str	x9, [x10]
	cbz	x9, LBB0_6
; %bb.5:
	str	x8, [x9]
LBB0_6:
	ldr	w0, [x20]
	bl	_acpi_os_release_lock
	mov	x0, x19
	bl	_ACPI_FREE
	ldr	w0, [x21]
	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	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_ev_delete_gpe_xrupt,4,2        ; @ev_delete_gpe_xrupt
	.comm	_acpi_gbl_FADT,8,3              ; @acpi_gbl_FADT
	.comm	_AE_OK,4,2                      ; @AE_OK
	.comm	_acpi_ev_gpe_xrupt_handler,4,2  ; @acpi_ev_gpe_xrupt_handler
	.comm	_acpi_gbl_gpe_lock,4,2          ; @acpi_gbl_gpe_lock
	.comm	_acpi_gbl_gpe_xrupt_list_head,8,3 ; @acpi_gbl_gpe_xrupt_list_head
	.no_dead_strip	_acpi_ev_delete_gpe_xrupt
.subsections_via_symbols
