	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function apm_power_off
_apm_power_off:                         ## @apm_power_off
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	subq	$40, %rsp
	.cfi_offset %rbx, -24
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -16(%rbp)
	movaps	l___const.apm_power_off.po_bios_call(%rip), %xmm0
	movaps	%xmm0, -48(%rbp)
	movl	$365756419, -33(%rbp)           ## imm = 0x15CD0003
	movq	_apm_info@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_3
## %bb.1:
	movq	_current@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	xorl	%edi, %edi
	callq	_cpumask_of
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_set_cpus_allowed_ptr
	leaq	-48(%rbp), %rdi
	movl	$19, %esi
	callq	_machine_real_restart
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-16(%rbp), %rax
	jne	LBB0_5
## %bb.2:
	addq	$40, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_3:
	movq	_APM_STATE_OFF@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-16(%rbp), %rax
	jne	LBB0_5
## %bb.4:
	addq	$40, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_set_system_power_state         ## TAILCALL
LBB0_5:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__const
	.p2align	4                               ## @__const.apm_power_off.po_bios_call
l___const.apm_power_off.po_bios_call:
	.ascii	"\270\000\020\216\320\274\000\360\270\007S\273\001\000\271\003\000\315\025"

	.comm	_apm_info,8,3                   ## @apm_info
	.comm	_current,4,2                    ## @current
	.comm	_APM_STATE_OFF,4,2              ## @APM_STATE_OFF
	.no_dead_strip	_apm_power_off
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function apm_power_off
_apm_power_off:                         ; @apm_power_off
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #24]
Lloh3:
	adrp	x8, l___const.apm_power_off.po_bios_call@PAGE
Lloh4:
	add	x8, x8, l___const.apm_power_off.po_bios_call@PAGEOFF
Lloh5:
	ldr	q0, [x8]
	str	q0, [sp]
	mov	w8, #3
	movk	w8, #5581, lsl #16
	stur	w8, [sp, #15]
Lloh6:
	adrp	x8, _apm_info@GOTPAGE
Lloh7:
	ldr	x8, [x8, _apm_info@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	cbz	x8, LBB0_3
; %bb.1:
Lloh9:
	adrp	x8, _current@GOTPAGE
Lloh10:
	ldr	x8, [x8, _current@GOTPAGEOFF]
Lloh11:
	ldr	w19, [x8]
	mov	w0, #0
	bl	_cpumask_of
	mov	x1, x0
	mov	x0, x19
	bl	_set_cpus_allowed_ptr
	mov	x0, sp
	mov	w1, #19
	bl	_machine_real_restart
	ldr	x8, [sp, #24]
Lloh12:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh13:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh14:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_5
; %bb.2:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
LBB0_3:
Lloh15:
	adrp	x8, _APM_STATE_OFF@GOTPAGE
Lloh16:
	ldr	x8, [x8, _APM_STATE_OFF@GOTPAGEOFF]
Lloh17:
	ldr	w0, [x8]
	ldr	x8, [sp, #24]
Lloh18:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh19:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh20:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_5
; %bb.4:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #64
	b	_set_system_power_state
LBB0_5:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAddLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__const
l___const.apm_power_off.po_bios_call:   ; @__const.apm_power_off.po_bios_call
	.ascii	"\270\000\020\216\320\274\000\360\270\007S\273\001\000\271\003\000\315\025"

	.comm	_apm_info,8,3                   ; @apm_info
	.comm	_current,4,2                    ; @current
	.comm	_APM_STATE_OFF,4,2              ; @APM_STATE_OFF
	.no_dead_strip	_apm_power_off
.subsections_via_symbols
