	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_acpi_hw_clear_acpi_status      ## -- Begin function acpi_hw_clear_acpi_status
	.p2align	4, 0x90
_acpi_hw_clear_acpi_status:             ## @acpi_hw_clear_acpi_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_hw_clear_acpi_status@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_ACPI_FUNCTION_TRACE
	movq	_acpi_gbl_xpm1a_status@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_ACPI_FORMAT_UINT64
	movl	%eax, %edi
	callq	_ACPI_DEBUG_PRINT
	movq	_acpi_gbl_hardware_lock@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	callq	_acpi_os_acquire_lock
	movl	%eax, %r14d
	movq	_ACPI_REGISTER_PM1_STATUS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_ACPI_BITMASK_ALL_FIXED_STATUS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_acpi_hw_register_write
	movl	%eax, %ebx
	movl	%eax, %edi
	callq	_ACPI_FAILURE
	testq	%rax, %rax
	jne	LBB0_2
## %bb.1:
	movq	_acpi_hw_clear_gpe_block@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	xorl	%esi, %esi
	callq	_acpi_ev_walk_gpe_list
	movl	%eax, %ebx
LBB0_2:
	movl	(%r15), %edi
	movl	%r14d, %esi
	callq	_acpi_os_release_lock
	movl	%ebx, %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_return_ACPI_STATUS             ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_hw_clear_acpi_status,4,2       ## @hw_clear_acpi_status
	.comm	_ACPI_DB_IO,4,2                 ## @ACPI_DB_IO
	.comm	_ACPI_BITMASK_ALL_FIXED_STATUS,4,2 ## @ACPI_BITMASK_ALL_FIXED_STATUS
	.comm	_acpi_gbl_xpm1a_status,4,2      ## @acpi_gbl_xpm1a_status
	.comm	_acpi_gbl_hardware_lock,4,2     ## @acpi_gbl_hardware_lock
	.comm	_ACPI_REGISTER_PM1_STATUS,4,2   ## @ACPI_REGISTER_PM1_STATUS
	.comm	_acpi_hw_clear_gpe_block,4,2    ## @acpi_hw_clear_gpe_block
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_acpi_hw_clear_acpi_status      ; -- Begin function acpi_hw_clear_acpi_status
	.p2align	2
_acpi_hw_clear_acpi_status:             ; @acpi_hw_clear_acpi_status
	.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
Lloh0:
	adrp	x8, _hw_clear_acpi_status@GOTPAGE
Lloh1:
	ldr	x8, [x8, _hw_clear_acpi_status@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_ACPI_FUNCTION_TRACE
Lloh3:
	adrp	x8, _acpi_gbl_xpm1a_status@GOTPAGE
Lloh4:
	ldr	x8, [x8, _acpi_gbl_xpm1a_status@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	bl	_ACPI_FORMAT_UINT64
	bl	_ACPI_DEBUG_PRINT
Lloh6:
	adrp	x21, _acpi_gbl_hardware_lock@GOTPAGE
Lloh7:
	ldr	x21, [x21, _acpi_gbl_hardware_lock@GOTPAGEOFF]
	ldr	w0, [x21]
	bl	_acpi_os_acquire_lock
	mov	x19, x0
Lloh8:
	adrp	x8, _ACPI_REGISTER_PM1_STATUS@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ACPI_REGISTER_PM1_STATUS@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
Lloh11:
	adrp	x8, _ACPI_BITMASK_ALL_FIXED_STATUS@GOTPAGE
Lloh12:
	ldr	x8, [x8, _ACPI_BITMASK_ALL_FIXED_STATUS@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	bl	_acpi_hw_register_write
	mov	x20, x0
	bl	_ACPI_FAILURE
	cbnz	x0, LBB0_2
; %bb.1:
Lloh14:
	adrp	x8, _acpi_hw_clear_gpe_block@GOTPAGE
Lloh15:
	ldr	x8, [x8, _acpi_hw_clear_gpe_block@GOTPAGEOFF]
Lloh16:
	ldr	w0, [x8]
	mov	x1, #0
	bl	_acpi_ev_walk_gpe_list
	mov	x20, x0
LBB0_2:
	ldr	w0, [x21]
	mov	x1, x19
	bl	_acpi_os_release_lock
	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_ACPI_STATUS
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_hw_clear_acpi_status,4,2       ; @hw_clear_acpi_status
	.comm	_ACPI_DB_IO,4,2                 ; @ACPI_DB_IO
	.comm	_ACPI_BITMASK_ALL_FIXED_STATUS,4,2 ; @ACPI_BITMASK_ALL_FIXED_STATUS
	.comm	_acpi_gbl_xpm1a_status,4,2      ; @acpi_gbl_xpm1a_status
	.comm	_acpi_gbl_hardware_lock,4,2     ; @acpi_gbl_hardware_lock
	.comm	_ACPI_REGISTER_PM1_STATUS,4,2   ; @ACPI_REGISTER_PM1_STATUS
	.comm	_acpi_hw_clear_gpe_block,4,2    ; @acpi_hw_clear_gpe_block
.subsections_via_symbols
