	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function acpi_ev_get_gpe_xrupt_block
_acpi_ev_get_gpe_xrupt_block:           ## @acpi_ev_get_gpe_xrupt_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movq	_ev_get_gpe_xrupt_block@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_ACPI_FUNCTION_TRACE
	movq	_acpi_gbl_gpe_xrupt_list_head@GOTPCREL(%rip), %r12
	movq	(%r12), %rbx
	jmp	LBB0_1
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	16(%rbx), %rbx
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	testq	%rbx, %rbx
	je	LBB0_5
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	cmpq	%r15, (%rbx)
	jne	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	%rbx, %rdi
	callq	_return_PTR
	jmp	LBB0_4
LBB0_5:
	movl	$24, %edi
	callq	_ACPI_ALLOCATE_ZEROED
	movq	%rax, %r14
	testq	%rax, %rax
	jne	LBB0_7
## %bb.6:
	xorl	%edi, %edi
	callq	_return_PTR
LBB0_7:
	movq	%r15, (%r14)
	movq	_acpi_gbl_gpe_lock@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	callq	_acpi_os_acquire_lock
	movq	(%r12), %rcx
	testq	%rcx, %rcx
	je	LBB0_10
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rcx, %rdx
	movq	16(%rcx), %rcx
	testq	%rcx, %rcx
	jne	LBB0_8
## %bb.9:
	movq	%r14, 16(%rdx)
	movq	%rdx, 8(%r14)
	jmp	LBB0_11
LBB0_10:
	movq	%r14, (%r12)
LBB0_11:
	movl	(%rbx), %edi
	movl	%eax, %esi
	callq	_acpi_os_release_lock
	movq	_acpi_gbl_FADT@GOTPCREL(%rip), %rax
	cmpq	%r15, (%rax)
	je	LBB0_14
## %bb.12:
	movq	_acpi_ev_gpe_xrupt_handler@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	movq	%r14, %rdx
	callq	_acpi_os_install_interrupt_handler
	movl	%eax, %edi
	callq	_ACPI_FAILURE
	testq	%rax, %rax
	je	LBB0_14
## %bb.13:
	movl	%r15d, %edi
	callq	_ACPI_ERROR
	xorl	%edi, %edi
	callq	_return_PTR
LBB0_14:
	movq	%r14, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_return_PTR                     ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_ev_get_gpe_xrupt_block,4,2     ## @ev_get_gpe_xrupt_block
	.comm	_acpi_gbl_gpe_xrupt_list_head,8,3 ## @acpi_gbl_gpe_xrupt_list_head
	.comm	_acpi_gbl_gpe_lock,4,2          ## @acpi_gbl_gpe_lock
	.comm	_acpi_gbl_FADT,8,3              ## @acpi_gbl_FADT
	.comm	_acpi_ev_gpe_xrupt_handler,4,2  ## @acpi_ev_gpe_xrupt_handler
	.comm	_AE_INFO,4,2                    ## @AE_INFO
	.no_dead_strip	_acpi_ev_get_gpe_xrupt_block
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function acpi_ev_get_gpe_xrupt_block
_acpi_ev_get_gpe_xrupt_block:           ; @acpi_ev_get_gpe_xrupt_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_get_gpe_xrupt_block@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ev_get_gpe_xrupt_block@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_ACPI_FUNCTION_TRACE
Lloh3:
	adrp	x21, _acpi_gbl_gpe_xrupt_list_head@GOTPAGE
Lloh4:
	ldr	x21, [x21, _acpi_gbl_gpe_xrupt_list_head@GOTPAGEOFF]
	ldr	x20, [x21]
	cbnz	x20, LBB0_7
LBB0_1:
	mov	w0, #24
	bl	_ACPI_ALLOCATE_ZEROED
	mov	x20, x0
	cbnz	x0, LBB0_3
; %bb.2:
	bl	_return_PTR
LBB0_3:
	str	x19, [x20]
Lloh5:
	adrp	x22, _acpi_gbl_gpe_lock@GOTPAGE
Lloh6:
	ldr	x22, [x22, _acpi_gbl_gpe_lock@GOTPAGEOFF]
	ldr	w0, [x22]
	bl	_acpi_os_acquire_lock
	mov	x1, x0
	ldr	x8, [x21]
	cbz	x8, LBB0_9
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	mov	x9, x8
	ldr	x8, [x8, #16]
	cbnz	x8, LBB0_4
; %bb.5:
	str	x20, [x9, #16]
	str	x9, [x20, #8]
	b	LBB0_10
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=1
	ldr	x20, [x20, #16]
	cbz	x20, LBB0_1
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x20]
	cmp	x8, x19
	b.ne	LBB0_6
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	mov	x0, x20
	bl	_return_PTR
	b	LBB0_6
LBB0_9:
	str	x20, [x21]
LBB0_10:
	ldr	w0, [x22]
	bl	_acpi_os_release_lock
Lloh7:
	adrp	x8, _acpi_gbl_FADT@GOTPAGE
Lloh8:
	ldr	x8, [x8, _acpi_gbl_FADT@GOTPAGEOFF]
Lloh9:
	ldr	x8, [x8]
	cmp	x8, x19
	b.eq	LBB0_13
; %bb.11:
Lloh10:
	adrp	x8, _acpi_ev_gpe_xrupt_handler@GOTPAGE
Lloh11:
	ldr	x8, [x8, _acpi_ev_gpe_xrupt_handler@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, x20
	bl	_acpi_os_install_interrupt_handler
	bl	_ACPI_FAILURE
	cbz	x0, LBB0_13
; %bb.12:
	mov	x0, x19
	bl	_ACPI_ERROR
	mov	x0, #0
	bl	_return_PTR
LBB0_13:
	mov	x0, x20
	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_PTR
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_ev_get_gpe_xrupt_block,4,2     ; @ev_get_gpe_xrupt_block
	.comm	_acpi_gbl_gpe_xrupt_list_head,8,3 ; @acpi_gbl_gpe_xrupt_list_head
	.comm	_acpi_gbl_gpe_lock,4,2          ; @acpi_gbl_gpe_lock
	.comm	_acpi_gbl_FADT,8,3              ; @acpi_gbl_FADT
	.comm	_acpi_ev_gpe_xrupt_handler,4,2  ; @acpi_ev_gpe_xrupt_handler
	.comm	_AE_INFO,4,2                    ; @AE_INFO
	.no_dead_strip	_acpi_ev_get_gpe_xrupt_block
.subsections_via_symbols
