	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cm_suspend_prepare
_cm_suspend_prepare:                    ## @cm_suspend_prepare
	.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
	callq	_dev_get_drvdata
	movq	%rax, %r14
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_cm_need_to_awake
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	_EBUSY@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
	jmp	LBB0_6
LBB0_2:
	movq	_cm_suspended@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	jne	LBB0_4
## %bb.3:
	movl	$1, (%rax)
LBB0_4:
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_cm_setup_timer
	movq	_cm_timer_set@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	movq	_setup_polling@GOTPCREL(%rip), %rdi
	callq	_cancel_work_sync
	movq	_cm_monitor_work@GOTPCREL(%rip), %rdi
	callq	_cancel_delayed_work_sync
	movq	%r14, %rdi
	callq	_cancel_delayed_work
LBB0_6:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EBUSY,4,2                      ## @EBUSY
	.comm	_cm_suspended,4,2               ## @cm_suspended
	.comm	_cm_timer_set,8,3               ## @cm_timer_set
	.comm	_setup_polling,4,2              ## @setup_polling
	.comm	_cm_monitor_work,4,2            ## @cm_monitor_work
	.no_dead_strip	_cm_suspend_prepare
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cm_suspend_prepare
_cm_suspend_prepare:                    ; @cm_suspend_prepare
	.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
	bl	_dev_get_drvdata
	mov	x19, x0
	bl	_cm_need_to_awake
	cbz	x0, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _EBUSY@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_6
LBB0_2:
Lloh3:
	adrp	x8, _cm_suspended@GOTPAGE
Lloh4:
	ldr	x8, [x8, _cm_suspended@GOTPAGEOFF]
	ldr	w9, [x8]
	cbnz	w9, LBB0_4
; %bb.3:
	mov	w9, #1
	str	w9, [x8]
LBB0_4:
	bl	_cm_setup_timer
Lloh5:
	adrp	x8, _cm_timer_set@GOTPAGE
Lloh6:
	ldr	x8, [x8, _cm_timer_set@GOTPAGEOFF]
Lloh7:
	str	x0, [x8]
	cbz	x0, LBB0_6
; %bb.5:
Lloh8:
	adrp	x0, _setup_polling@GOTPAGE
Lloh9:
	ldr	x0, [x0, _setup_polling@GOTPAGEOFF]
	bl	_cancel_work_sync
Lloh10:
	adrp	x0, _cm_monitor_work@GOTPAGE
Lloh11:
	ldr	x0, [x0, _cm_monitor_work@GOTPAGEOFF]
	bl	_cancel_delayed_work_sync
	mov	x0, x19
	bl	_cancel_delayed_work
	mov	w0, #0
LBB0_6:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotStr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_EBUSY,4,2                      ; @EBUSY
	.comm	_cm_suspended,4,2               ; @cm_suspended
	.comm	_cm_timer_set,8,3               ; @cm_timer_set
	.comm	_setup_polling,4,2              ; @setup_polling
	.comm	_cm_monitor_work,4,2            ; @cm_monitor_work
	.no_dead_strip	_cm_suspend_prepare
.subsections_via_symbols
