	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_acpi_ev_delete_gpe_handlers    ## -- Begin function acpi_ev_delete_gpe_handlers
	.p2align	4, 0x90
_acpi_ev_delete_gpe_handlers:           ## @acpi_ev_delete_gpe_handlers
	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	_ev_delete_gpe_handlers@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_ACPI_FUNCTION_TRACE
	movq	(%rbx), %rcx
	testq	%rcx, %rcx
	jle	LBB0_9
## %bb.1:
	movq	_ACPI_GPE_REGISTER_WIDTH@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	xorl	%r15d, %r15d
	movq	_ACPI_GPE_DISPATCH_MASK@GOTPCREL(%rip), %rsi
	movq	_ACPI_GPE_DISPATCH_HANDLER@GOTPCREL(%rip), %rdi
	movq	%rax, %r14
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	(%rbx), %rcx
	movq	%rax, %r14
LBB0_8:                                 ##   in Loop: Header=BB0_2 Depth=1
	incq	%r15
	cmpq	%rcx, %r15
	jge	LBB0_9
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_4 Depth 2
	testq	%r14, %r14
	jle	LBB0_8
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	xorl	%r13d, %r13d
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_4 Depth=2
	incq	%r13
	movq	%rax, %r14
	cmpq	%rax, %r13
	jge	LBB0_7
LBB0_4:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	8(%rbx), %r12
	imulq	%r15, %r14
	addq	%r13, %r14
	shlq	$4, %r14
	movl	(%rsi), %ecx
	andl	(%r12,%r14), %ecx
	cmpl	(%rdi), %ecx
	jne	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=2
	leaq	(%r12,%r14), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	8(%r12,%r14), %rdi
	movq	%rsi, %rbx
	callq	_ACPI_FREE
	movq	_ACPI_GPE_DISPATCH_HANDLER@GOTPCREL(%rip), %rdi
	movq	%rbx, %rsi
	movq	$0, 8(%r12,%r14)
	movl	(%rbx), %eax
	notl	%eax
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	andl	%eax, (%rcx)
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movq	_ACPI_GPE_REGISTER_WIDTH@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	jmp	LBB0_6
LBB0_9:
	movq	_AE_OK@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_return_ACPI_STATUS             ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_ev_delete_gpe_handlers,4,2     ## @ev_delete_gpe_handlers
	.comm	_ACPI_GPE_REGISTER_WIDTH,8,3    ## @ACPI_GPE_REGISTER_WIDTH
	.comm	_ACPI_GPE_DISPATCH_MASK,4,2     ## @ACPI_GPE_DISPATCH_MASK
	.comm	_ACPI_GPE_DISPATCH_HANDLER,4,2  ## @ACPI_GPE_DISPATCH_HANDLER
	.comm	_AE_OK,4,2                      ## @AE_OK
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_acpi_ev_delete_gpe_handlers    ; -- Begin function acpi_ev_delete_gpe_handlers
	.p2align	2
_acpi_ev_delete_gpe_handlers:           ; @acpi_ev_delete_gpe_handlers
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x1
Lloh0:
	adrp	x8, _ev_delete_gpe_handlers@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ev_delete_gpe_handlers@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_ACPI_FUNCTION_TRACE
	ldr	x9, [x19]
	cmp	x9, #1
	b.lt	LBB0_9
; %bb.1:
	mov	x20, #0
Lloh3:
	adrp	x21, _ACPI_GPE_REGISTER_WIDTH@GOTPAGE
Lloh4:
	ldr	x21, [x21, _ACPI_GPE_REGISTER_WIDTH@GOTPAGEOFF]
	ldr	x8, [x21]
Lloh5:
	adrp	x22, _ACPI_GPE_DISPATCH_MASK@GOTPAGE
Lloh6:
	ldr	x22, [x22, _ACPI_GPE_DISPATCH_MASK@GOTPAGEOFF]
Lloh7:
	adrp	x23, _ACPI_GPE_DISPATCH_HANDLER@GOTPAGE
Lloh8:
	ldr	x23, [x23, _ACPI_GPE_DISPATCH_HANDLER@GOTPAGEOFF]
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	x9, [x19]
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x20, x20, #1
	cmp	x20, x9
	b.ge	LBB0_9
LBB0_4:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_7 Depth 2
	cmp	x8, #1
	b.lt	LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x24, #0
	b	LBB0_7
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=2
	add	x24, x24, #1
	cmp	x24, x8
	b.ge	LBB0_2
LBB0_7:                                 ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x9, [x19, #8]
	madd	x10, x20, x8, x24
	add	x25, x9, x10, lsl #4
	ldr	w9, [x25]
	ldr	w10, [x22]
	and	w9, w10, w9
	ldr	w10, [x23]
	cmp	w9, w10
	b.ne	LBB0_6
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=2
	ldr	x0, [x25, #8]
	bl	_ACPI_FREE
	str	xzr, [x25, #8]
	ldr	w8, [x22]
	ldr	w9, [x25]
	bic	w8, w9, w8
	str	w8, [x25]
	ldr	x8, [x21]
	b	LBB0_6
LBB0_9:
Lloh9:
	adrp	x8, _AE_OK@GOTPAGE
Lloh10:
	ldr	x8, [x8, _AE_OK@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_return_ACPI_STATUS
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_ev_delete_gpe_handlers,4,2     ; @ev_delete_gpe_handlers
	.comm	_ACPI_GPE_REGISTER_WIDTH,8,3    ; @ACPI_GPE_REGISTER_WIDTH
	.comm	_ACPI_GPE_DISPATCH_MASK,4,2     ; @ACPI_GPE_DISPATCH_MASK
	.comm	_ACPI_GPE_DISPATCH_HANDLER,4,2  ; @ACPI_GPE_DISPATCH_HANDLER
	.comm	_AE_OK,4,2                      ; @AE_OK
.subsections_via_symbols
