	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_acpi_hw_get_gpe_status         ## -- Begin function acpi_hw_get_gpe_status
	.p2align	4, 0x90
_acpi_hw_get_gpe_status:                ## @acpi_hw_get_gpe_status
	.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, %r14
	movq	%rdi, %rbx
	xorl	%eax, %eax
	callq	_ACPI_FUNCTION_ENTRY
	testq	%r14, %r14
	je	LBB0_1
## %bb.2:
	movq	8(%rbx), %rsi
	movl	(%rbx), %r12d
	movl	(%rsi), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movl	4(%rsi), %eax
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	movq	_ACPI_EVENT_FLAG_ENABLED@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	movl	8(%rsi), %eax
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movq	_ACPI_EVENT_FLAG_WAKE_ENABLED@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	addq	$12, %rsi
	leaq	-56(%rbp), %rdi
	callq	_acpi_hw_read
	movl	%eax, %ebx
	movl	%eax, %edi
	callq	_ACPI_FAILURE
	testq	%rax, %rax
	jne	LBB0_6
## %bb.3:
	subl	-44(%rbp), %r12d                ## 4-byte Folded Reload
	xorl	%eax, %eax
	movl	-52(%rbp), %ecx                 ## 4-byte Reload
	btl	%r12d, %ecx
	cmovael	%eax, %r13d
	movl	-48(%rbp), %ecx                 ## 4-byte Reload
	btl	%r12d, %ecx
	cmovael	%eax, %r15d
	orl	%r13d, %r15d
	movl	-56(%rbp), %ecx
	btl	%r12d, %ecx
	jae	LBB0_5
## %bb.4:
	movq	_ACPI_EVENT_FLAG_SET@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_5:
	orl	%eax, %r15d
	movl	%r15d, (%r14)
	jmp	LBB0_6
LBB0_1:
	movq	_AE_BAD_PARAMETER@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
LBB0_6:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AE_BAD_PARAMETER,4,2           ## @AE_BAD_PARAMETER
	.comm	_ACPI_EVENT_FLAG_ENABLED,4,2    ## @ACPI_EVENT_FLAG_ENABLED
	.comm	_ACPI_EVENT_FLAG_WAKE_ENABLED,4,2 ## @ACPI_EVENT_FLAG_WAKE_ENABLED
	.comm	_ACPI_EVENT_FLAG_SET,4,2        ## @ACPI_EVENT_FLAG_SET
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_acpi_hw_get_gpe_status         ; -- Begin function acpi_hw_get_gpe_status
	.p2align	2
_acpi_hw_get_gpe_status:                ; @acpi_hw_get_gpe_status
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	mov	x20, x0
	bl	_ACPI_FUNCTION_ENTRY
	cbz	x19, LBB0_3
; %bb.1:
	ldr	x8, [x20, #8]
	ldr	w24, [x20]
	ldp	w26, w21, [x8]
Lloh0:
	adrp	x9, _ACPI_EVENT_FLAG_ENABLED@GOTPAGE
Lloh1:
	ldr	x9, [x9, _ACPI_EVENT_FLAG_ENABLED@GOTPAGEOFF]
Lloh2:
	ldr	w22, [x9]
	ldr	w23, [x8, #8]
Lloh3:
	adrp	x9, _ACPI_EVENT_FLAG_WAKE_ENABLED@GOTPAGE
Lloh4:
	ldr	x9, [x9, _ACPI_EVENT_FLAG_WAKE_ENABLED@GOTPAGEOFF]
Lloh5:
	ldr	w25, [x9]
	add	x1, x8, #12
	add	x0, sp, #12
	bl	_acpi_hw_read
	mov	x20, x0
	bl	_ACPI_FAILURE
	cbnz	x0, LBB0_4
; %bb.2:
	sub	w8, w24, w26
	mov	w9, #1
	lsl	w8, w9, w8
	tst	w8, w21
	csel	w9, wzr, w22, eq
	tst	w23, w8
	csel	w10, wzr, w25, eq
	orr	w9, w10, w9
Lloh6:
	adrp	x10, _ACPI_EVENT_FLAG_SET@GOTPAGE
Lloh7:
	ldr	x10, [x10, _ACPI_EVENT_FLAG_SET@GOTPAGEOFF]
	ldr	w11, [sp, #12]
Lloh8:
	ldr	w10, [x10]
	tst	w11, w8
	csel	w8, wzr, w10, eq
	orr	w8, w9, w8
	str	w8, [x19]
	b	LBB0_4
LBB0_3:
Lloh9:
	adrp	x8, _AE_BAD_PARAMETER@GOTPAGE
Lloh10:
	ldr	x8, [x8, _AE_BAD_PARAMETER@GOTPAGEOFF]
Lloh11:
	ldr	w20, [x8]
LBB0_4:
	mov	x0, x20
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_AE_BAD_PARAMETER,4,2           ; @AE_BAD_PARAMETER
	.comm	_ACPI_EVENT_FLAG_ENABLED,4,2    ; @ACPI_EVENT_FLAG_ENABLED
	.comm	_ACPI_EVENT_FLAG_WAKE_ENABLED,4,2 ; @ACPI_EVENT_FLAG_WAKE_ENABLED
	.comm	_ACPI_EVENT_FLAG_SET,4,2        ; @ACPI_EVENT_FLAG_SET
.subsections_via_symbols
