	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cm_suspend_complete
_cm_suspend_complete:                   ## @cm_suspend_complete
	.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
	callq	_dev_get_drvdata
	movq	%rax, %r14
	movq	_cm_suspended@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	je	LBB0_2
## %bb.1:
	movl	$0, (%rax)
LBB0_2:
	movq	_cm_timer_set@GOTPCREL(%rip), %rbx
	cmpl	$0, (%rbx)
	je	LBB0_4
## %bb.3:
	movq	_cm_timer@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	callq	_alarm_cancel
	movl	$0, (%rbx)
	movl	(%r15), %edi
	callq	_alarm_expires_remaining
	movl	%eax, %edi
	callq	_ktime_to_ms
	movq	_cm_suspend_duration_ms@GOTPCREL(%rip), %rcx
	subq	%rax, (%rcx)
	movq	_setup_polling@GOTPCREL(%rip), %rdi
	callq	_schedule_work
LBB0_4:
	movq	%r14, %rdi
	callq	__cm_monitor
	movq	8(%r14), %rsi
	testq	%rsi, %rsi
	je	LBB0_9
## %bb.5:
	movq	_jiffies@GOTPCREL(%rip), %rax
	movq	_CM_JIFFIES_SMALL@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rbx
	addq	(%rax), %rbx
	movq	%rbx, %rdi
	callq	_time_after_eq
	testq	%rax, %rax
	je	LBB0_6
## %bb.7:
	subq	8(%r14), %rbx
	movq	%rbx, %rdi
	callq	_jiffies_to_msecs
	jmp	LBB0_8
LBB0_6:
	xorl	%eax, %eax
LBB0_8:
	movq	_cm_suspend_duration_ms@GOTPCREL(%rip), %rcx
	xorl	%edi, %edi
	subq	(%rcx), %rax
	cmovaeq	%rax, %rdi
	movq	_cm_wq@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movq	%r14, %rbx
	addq	$4, %rbx
	callq	_msecs_to_jiffies
	movl	%r15d, %edi
	movq	%rbx, %rsi
	movl	%eax, %edx
	callq	_queue_delayed_work
LBB0_9:
	movl	(%r14), %edi
	xorl	%esi, %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_device_set_wakeup_capable      ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_cm_suspended,4,2               ## @cm_suspended
	.comm	_cm_timer_set,4,2               ## @cm_timer_set
	.comm	_cm_timer,4,2                   ## @cm_timer
	.comm	_cm_suspend_duration_ms,8,3     ## @cm_suspend_duration_ms
	.comm	_setup_polling,4,2              ## @setup_polling
	.comm	_jiffies,8,3                    ## @jiffies
	.comm	_CM_JIFFIES_SMALL,8,3           ## @CM_JIFFIES_SMALL
	.comm	_cm_wq,4,2                      ## @cm_wq
	.no_dead_strip	_cm_suspend_complete
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cm_suspend_complete
_cm_suspend_complete:                   ; @cm_suspend_complete
	.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
	bl	_dev_get_drvdata
	mov	x19, x0
Lloh0:
	adrp	x8, _cm_suspended@GOTPAGE
Lloh1:
	ldr	x8, [x8, _cm_suspended@GOTPAGEOFF]
	ldr	w9, [x8]
	cbz	w9, LBB0_2
; %bb.1:
	str	wzr, [x8]
LBB0_2:
Lloh2:
	adrp	x20, _cm_timer_set@GOTPAGE
Lloh3:
	ldr	x20, [x20, _cm_timer_set@GOTPAGEOFF]
	ldr	w8, [x20]
Lloh4:
	adrp	x21, _cm_suspend_duration_ms@GOTPAGE
Lloh5:
	ldr	x21, [x21, _cm_suspend_duration_ms@GOTPAGEOFF]
	cbz	w8, LBB0_4
; %bb.3:
Lloh6:
	adrp	x22, _cm_timer@GOTPAGE
Lloh7:
	ldr	x22, [x22, _cm_timer@GOTPAGEOFF]
	ldr	w0, [x22]
	bl	_alarm_cancel
	str	wzr, [x20]
	ldr	w0, [x22]
	bl	_alarm_expires_remaining
	bl	_ktime_to_ms
	ldr	x8, [x21]
	sub	x8, x8, x0
	str	x8, [x21]
Lloh8:
	adrp	x0, _setup_polling@GOTPAGE
Lloh9:
	ldr	x0, [x0, _setup_polling@GOTPAGEOFF]
	bl	_schedule_work
LBB0_4:
	mov	x0, x19
	bl	__cm_monitor
	ldr	x1, [x19, #8]
	cbz	x1, LBB0_8
; %bb.5:
Lloh10:
	adrp	x8, _jiffies@GOTPAGE
Lloh11:
	ldr	x8, [x8, _jiffies@GOTPAGEOFF]
Lloh12:
	ldr	x8, [x8]
Lloh13:
	adrp	x9, _CM_JIFFIES_SMALL@GOTPAGE
Lloh14:
	ldr	x9, [x9, _CM_JIFFIES_SMALL@GOTPAGEOFF]
Lloh15:
	ldr	x9, [x9]
	add	x20, x9, x8
	mov	x0, x20
	bl	_time_after_eq
	cbz	x0, LBB0_7
; %bb.6:
	ldr	x8, [x19, #8]
	sub	x0, x20, x8
	bl	_jiffies_to_msecs
LBB0_7:
	ldr	x8, [x21]
	subs	x8, x0, x8
	csel	x0, xzr, x8, lo
Lloh16:
	adrp	x8, _cm_wq@GOTPAGE
Lloh17:
	ldr	x8, [x8, _cm_wq@GOTPAGEOFF]
Lloh18:
	ldr	w20, [x8]
	add	x21, x19, #4
	bl	_msecs_to_jiffies
	mov	x2, x0
	mov	x0, x20
	mov	x1, x21
	bl	_queue_delayed_work
LBB0_8:
	ldr	w0, [x19]
	mov	w1, #0
	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	_device_set_wakeup_capable
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_cm_suspended,4,2               ; @cm_suspended
	.comm	_cm_timer_set,4,2               ; @cm_timer_set
	.comm	_cm_timer,4,2                   ; @cm_timer
	.comm	_cm_suspend_duration_ms,8,3     ; @cm_suspend_duration_ms
	.comm	_setup_polling,4,2              ; @setup_polling
	.comm	_jiffies,8,3                    ; @jiffies
	.comm	_CM_JIFFIES_SMALL,8,3           ; @CM_JIFFIES_SMALL
	.comm	_cm_wq,4,2                      ; @cm_wq
	.no_dead_strip	_cm_suspend_complete
.subsections_via_symbols
