	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function standby
_standby:                               ## @standby
	.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
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	_PMSG_SUSPEND@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	callq	_dpm_suspend_noirq
	xorl	%eax, %eax
	callq	_local_irq_disable
	movl	(%rbx), %edi
	callq	_sysdev_suspend
	xorl	%eax, %eax
	callq	_local_irq_enable
	movq	_APM_STATE_STANDBY@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_set_system_power_state
	movq	_APM_SUCCESS@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	je	LBB0_3
## %bb.1:
	movq	_APM_NO_ERROR@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	je	LBB0_3
## %bb.2:
	leaq	L_.str(%rip), %rdi
	movl	%eax, %esi
	callq	_apm_error
LBB0_3:
	xorl	%eax, %eax
	callq	_local_irq_disable
	xorl	%eax, %eax
	callq	_sysdev_resume
	xorl	%eax, %eax
	callq	_local_irq_enable
	movq	_PMSG_RESUME@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_dpm_resume_noirq               ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_PMSG_SUSPEND,4,2               ## @PMSG_SUSPEND
	.comm	_APM_STATE_STANDBY,4,2          ## @APM_STATE_STANDBY
	.comm	_APM_SUCCESS,4,2                ## @APM_SUCCESS
	.comm	_APM_NO_ERROR,4,2               ## @APM_NO_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"standby"

	.comm	_PMSG_RESUME,4,2                ## @PMSG_RESUME
	.no_dead_strip	_standby
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function standby
_standby:                               ; @standby
	.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, _PMSG_SUSPEND@GOTPAGE
Lloh1:
	ldr	x19, [x19, _PMSG_SUSPEND@GOTPAGEOFF]
	ldr	w0, [x19]
	bl	_dpm_suspend_noirq
	bl	_local_irq_disable
	ldr	w0, [x19]
	bl	_sysdev_suspend
	bl	_local_irq_enable
Lloh2:
	adrp	x8, _APM_STATE_STANDBY@GOTPAGE
Lloh3:
	ldr	x8, [x8, _APM_STATE_STANDBY@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
	bl	_set_system_power_state
Lloh5:
	adrp	x8, _APM_SUCCESS@GOTPAGE
Lloh6:
	ldr	x8, [x8, _APM_SUCCESS@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
Lloh8:
	adrp	x9, _APM_NO_ERROR@GOTPAGE
Lloh9:
	ldr	x9, [x9, _APM_NO_ERROR@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	cmp	w0, w8
	ccmp	w0, w9, #4, ne
	b.eq	LBB0_2
; %bb.1:
	mov	x1, x0
Lloh11:
	adrp	x0, l_.str@PAGE
Lloh12:
	add	x0, x0, l_.str@PAGEOFF
	bl	_apm_error
LBB0_2:
	bl	_local_irq_disable
	bl	_sysdev_resume
	bl	_local_irq_enable
Lloh13:
	adrp	x8, _PMSG_RESUME@GOTPAGE
Lloh14:
	ldr	x8, [x8, _PMSG_RESUME@GOTPAGEOFF]
Lloh15:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_dpm_resume_noirq
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_PMSG_SUSPEND,4,2               ; @PMSG_SUSPEND
	.comm	_APM_STATE_STANDBY,4,2          ; @APM_STATE_STANDBY
	.comm	_APM_SUCCESS,4,2                ; @APM_SUCCESS
	.comm	_APM_NO_ERROR,4,2               ; @APM_NO_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"standby"

	.comm	_PMSG_RESUME,4,2                ; @PMSG_RESUME
	.no_dead_strip	_standby
.subsections_via_symbols
