	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_acpi_ev_get_gpe_event_info     ## -- Begin function acpi_ev_get_gpe_event_info
	.p2align	4, 0x90
_acpi_ev_get_gpe_event_info:            ## @acpi_ev_get_gpe_event_info
	.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	%rsi, %r15
	movq	%rdi, %r14
	xorl	%eax, %eax
	callq	_ACPI_FUNCTION_ENTRY
	testq	%r14, %r14
	je	LBB0_5
## %bb.1:
	movq	%r14, %rdi
	callq	_acpi_ns_get_attached_object
	testq	%rax, %rax
	je	LBB0_17
## %bb.2:
	movq	(%rax), %rax
	testq	%rax, %rax
	je	LBB0_17
## %bb.3:
	movq	(%rax), %rdi
	cmpq	%r15, %rdi
	ja	LBB0_17
## %bb.15:
	movslq	8(%rax), %rcx
	leaq	(%rdi,%rcx,8), %rcx
	cmpq	%r15, %rcx
	ja	LBB0_16
	jmp	LBB0_17
LBB0_5:
	movq	_ACPI_MAX_GPE_BLOCKS@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	testq	%rcx, %rcx
	je	LBB0_17
## %bb.6:
	movq	_acpi_gbl_gpe_fadt_blocks@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	xorl	%esi, %esi
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_8 Depth=1
	incq	%rsi
	cmpq	%rsi, %rcx
	je	LBB0_17
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%rdx,%rsi,8), %rax
	testq	%rax, %rax
	je	LBB0_7
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=1
	movq	(%rax), %rdi
	cmpq	%r15, %rdi
	ja	LBB0_7
## %bb.10:                              ##   in Loop: Header=BB0_8 Depth=1
	movslq	8(%rax), %rbx
	leaq	(%rdi,%rbx,8), %rbx
	cmpq	%r15, %rbx
	jbe	LBB0_7
LBB0_16:
	subq	%rdi, %r15
	shlq	$2, %r15
	addq	16(%rax), %r15
	jmp	LBB0_18
LBB0_17:
	xorl	%r15d, %r15d
LBB0_18:
	movq	%r15, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ACPI_MAX_GPE_BLOCKS,8,3        ## @ACPI_MAX_GPE_BLOCKS
	.comm	_acpi_gbl_gpe_fadt_blocks,8,3   ## @acpi_gbl_gpe_fadt_blocks
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_acpi_ev_get_gpe_event_info     ; -- Begin function acpi_ev_get_gpe_event_info
	.p2align	2
_acpi_ev_get_gpe_event_info:            ; @acpi_ev_get_gpe_event_info
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x1
	mov	x20, x0
	bl	_ACPI_FUNCTION_ENTRY
	cbz	x20, LBB0_5
; %bb.1:
	mov	x0, x20
	bl	_acpi_ns_get_attached_object
	cbz	x0, LBB0_13
; %bb.2:
	ldr	x8, [x0]
	cbz	x8, LBB0_12
; %bb.3:
	ldr	x11, [x8]
	cmp	x11, x19
	b.hi	LBB0_12
; %bb.4:
	ldrsw	x9, [x8, #8]
	add	x9, x11, x9, lsl #3
	cmp	x9, x19
	b.hi	LBB0_11
	b	LBB0_12
LBB0_5:
Lloh0:
	adrp	x8, _ACPI_MAX_GPE_BLOCKS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ACPI_MAX_GPE_BLOCKS@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x8]
	cbz	x9, LBB0_12
; %bb.6:
Lloh3:
	adrp	x8, _acpi_gbl_gpe_fadt_blocks@GOTPAGE
Lloh4:
	ldr	x8, [x8, _acpi_gbl_gpe_fadt_blocks@GOTPAGEOFF]
Lloh5:
	ldr	x10, [x8]
	b	LBB0_8
LBB0_7:                                 ;   in Loop: Header=BB0_8 Depth=1
	add	x10, x10, #8
	subs	x9, x9, #1
	b.eq	LBB0_12
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x10]
	cbz	x8, LBB0_7
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	ldr	x11, [x8]
	cmp	x11, x19
	b.hi	LBB0_7
; %bb.10:                               ;   in Loop: Header=BB0_8 Depth=1
	ldrsw	x12, [x8, #8]
	add	x12, x11, x12, lsl #3
	cmp	x12, x19
	b.ls	LBB0_7
LBB0_11:
	ldr	x8, [x8, #16]
	sub	x9, x19, x11
	add	x0, x8, x9, lsl #2
	b	LBB0_13
LBB0_12:
	mov	x0, #0
LBB0_13:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_ACPI_MAX_GPE_BLOCKS,8,3        ; @ACPI_MAX_GPE_BLOCKS
	.comm	_acpi_gbl_gpe_fadt_blocks,8,3   ; @acpi_gbl_gpe_fadt_blocks
.subsections_via_symbols
