	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function acpi_safe_halt
_acpi_safe_halt:                        ## @acpi_safe_halt
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	_TS_POLLING@GOTPCREL(%rip), %r14
	movl	(%r14), %ebx
	notl	%ebx
	xorl	%eax, %eax
	callq	_current_thread_info
	andl	%ebx, (%rax)
	xorl	%eax, %eax
	callq	_smp_mb
	xorl	%eax, %eax
	callq	_need_resched
	testl	%eax, %eax
	jne	LBB0_2
## %bb.1:
	xorl	%eax, %eax
	callq	_safe_halt
	xorl	%eax, %eax
	callq	_local_irq_disable
LBB0_2:
	movl	(%r14), %ebx
	xorl	%eax, %eax
	callq	_current_thread_info
	orl	%ebx, (%rax)
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_TS_POLLING,4,2                 ## @TS_POLLING
	.no_dead_strip	_acpi_safe_halt
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function acpi_safe_halt
_acpi_safe_halt:                        ; @acpi_safe_halt
	.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
Lloh0:
	adrp	x19, _TS_POLLING@GOTPAGE
Lloh1:
	ldr	x19, [x19, _TS_POLLING@GOTPAGEOFF]
	ldr	w20, [x19]
	bl	_current_thread_info
	ldr	w8, [x0]
	bic	w8, w8, w20
	str	w8, [x0]
	bl	_smp_mb
	bl	_need_resched
	cbnz	w0, LBB0_2
; %bb.1:
	bl	_safe_halt
	bl	_local_irq_disable
LBB0_2:
	ldr	w19, [x19]
	bl	_current_thread_info
	ldr	w8, [x0]
	orr	w8, w8, w19
	str	w8, [x0]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_TS_POLLING,4,2                 ; @TS_POLLING
	.no_dead_strip	_acpi_safe_halt
.subsections_via_symbols
