	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_acpi_ev_delete_gpe_block       ## -- Begin function acpi_ev_delete_gpe_block
	.p2align	4, 0x90
_acpi_ev_delete_gpe_block:              ## @acpi_ev_delete_gpe_block
	.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
	movq	%rdi, %rbx
	movq	_ev_install_gpe_block@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_ACPI_FUNCTION_TRACE
	movq	_ACPI_MTX_EVENTS@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	callq	_acpi_ut_acquire_mutex
	movl	%eax, %r14d
	movl	%eax, %edi
	callq	_ACPI_FAILURE
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movl	%r14d, %edi
	callq	_return_ACPI_STATUS
LBB0_2:
	movq	40(%rbx), %rdi
	movq	%rbx, %rsi
	xorl	%edx, %edx
	callq	_acpi_hw_disable_gpe_block
	cmpq	$0, 24(%rbx)
	jne	LBB0_5
## %bb.3:
	cmpq	$0, 32(%rbx)
	je	LBB0_4
LBB0_5:
	movq	_acpi_gbl_gpe_lock@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	callq	_acpi_os_acquire_lock
	movq	24(%rbx), %rcx
	movq	32(%rbx), %rdx
	testq	%rcx, %rcx
	je	LBB0_7
## %bb.6:
	movq	%rcx, %rsi
	jmp	LBB0_8
LBB0_7:
	movq	40(%rbx), %rsi
LBB0_8:
	movq	%rdx, (%rsi)
	testq	%rdx, %rdx
	je	LBB0_10
## %bb.9:
	movq	%rcx, (%rdx)
LBB0_10:
	movl	(%r14), %edi
	movl	%eax, %esi
	callq	_acpi_os_release_lock
LBB0_11:
	movq	_ACPI_GPE_REGISTER_WIDTH@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	imull	(%rbx), %eax
	movq	_acpi_current_gpe_count@GOTPCREL(%rip), %rcx
	subl	%eax, (%rcx)
	movq	16(%rbx), %rdi
	callq	_ACPI_FREE
	movq	8(%rbx), %rdi
	callq	_ACPI_FREE
	movq	%rbx, %rdi
	callq	_ACPI_FREE
LBB0_12:
	movl	(%r15), %edi
	callq	_acpi_ut_release_mutex
	movl	%eax, %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_return_ACPI_STATUS             ## TAILCALL
LBB0_4:
	movq	40(%rbx), %rdi
	callq	_acpi_ev_delete_gpe_xrupt
	movl	%eax, %edi
	callq	_ACPI_FAILURE
	testq	%rax, %rax
	jne	LBB0_12
	jmp	LBB0_11
	.cfi_endproc
                                        ## -- End function
	.comm	_ev_install_gpe_block,4,2       ## @ev_install_gpe_block
	.comm	_ACPI_MTX_EVENTS,4,2            ## @ACPI_MTX_EVENTS
	.comm	_acpi_gbl_gpe_lock,4,2          ## @acpi_gbl_gpe_lock
	.comm	_ACPI_GPE_REGISTER_WIDTH,4,2    ## @ACPI_GPE_REGISTER_WIDTH
	.comm	_acpi_current_gpe_count,4,2     ## @acpi_current_gpe_count
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_acpi_ev_delete_gpe_block       ; -- Begin function acpi_ev_delete_gpe_block
	.p2align	2
_acpi_ev_delete_gpe_block:              ; @acpi_ev_delete_gpe_block
	.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_install_gpe_block@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ev_install_gpe_block@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_ACPI_FUNCTION_TRACE
Lloh3:
	adrp	x21, _ACPI_MTX_EVENTS@GOTPAGE
Lloh4:
	ldr	x21, [x21, _ACPI_MTX_EVENTS@GOTPAGEOFF]
	ldr	w0, [x21]
	bl	_acpi_ut_acquire_mutex
	mov	x20, x0
	bl	_ACPI_FAILURE
	cbz	x0, LBB0_2
; %bb.1:
	mov	x0, x20
	bl	_return_ACPI_STATUS
LBB0_2:
	ldr	x0, [x19, #40]
	mov	x1, x19
	mov	x2, #0
	bl	_acpi_hw_disable_gpe_block
	ldr	x8, [x19, #24]
	cbnz	x8, LBB0_4
; %bb.3:
	ldr	x8, [x19, #32]
	cbz	x8, LBB0_11
LBB0_4:
Lloh5:
	adrp	x20, _acpi_gbl_gpe_lock@GOTPAGE
Lloh6:
	ldr	x20, [x20, _acpi_gbl_gpe_lock@GOTPAGEOFF]
	ldr	w0, [x20]
	bl	_acpi_os_acquire_lock
	mov	x1, x0
	ldp	x8, x9, [x19, #24]
	cbz	x8, LBB0_10
; %bb.5:
	mov	x10, x8
	str	x9, [x10]
	cbz	x9, LBB0_7
LBB0_6:
	str	x8, [x9]
LBB0_7:
	ldr	w0, [x20]
	bl	_acpi_os_release_lock
LBB0_8:
	ldr	w8, [x19]
Lloh7:
	adrp	x9, _ACPI_GPE_REGISTER_WIDTH@GOTPAGE
Lloh8:
	ldr	x9, [x9, _ACPI_GPE_REGISTER_WIDTH@GOTPAGEOFF]
Lloh9:
	ldr	w9, [x9]
Lloh10:
	adrp	x10, _acpi_current_gpe_count@GOTPAGE
Lloh11:
	ldr	x10, [x10, _acpi_current_gpe_count@GOTPAGEOFF]
	ldr	w11, [x10]
	msub	w8, w9, w8, w11
	str	w8, [x10]
	ldr	x0, [x19, #16]
	bl	_ACPI_FREE
	ldr	x0, [x19, #8]
	bl	_ACPI_FREE
	mov	x0, x19
	bl	_ACPI_FREE
LBB0_9:
	ldr	w0, [x21]
	bl	_acpi_ut_release_mutex
	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
LBB0_10:
	ldr	x10, [x19, #40]
	str	x9, [x10]
	cbnz	x9, LBB0_6
	b	LBB0_7
LBB0_11:
	ldr	x0, [x19, #40]
	bl	_acpi_ev_delete_gpe_xrupt
	bl	_ACPI_FAILURE
	cbnz	x0, LBB0_9
	b	LBB0_8
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_ev_install_gpe_block,4,2       ; @ev_install_gpe_block
	.comm	_ACPI_MTX_EVENTS,4,2            ; @ACPI_MTX_EVENTS
	.comm	_acpi_gbl_gpe_lock,4,2          ; @acpi_gbl_gpe_lock
	.comm	_ACPI_GPE_REGISTER_WIDTH,4,2    ; @ACPI_GPE_REGISTER_WIDTH
	.comm	_acpi_current_gpe_count,4,2     ; @acpi_current_gpe_count
.subsections_via_symbols
