	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pm_schedule_suspend            ## -- Begin function pm_schedule_suspend
	.p2align	4, 0x90
_pm_schedule_suspend:                   ## @pm_schedule_suspend
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r15d
	movq	%rdi, %r12
	leaq	24(%rdi), %r14
	movq	%r14, %rdi
	callq	_spin_lock_irqsave
	cmpq	$0, 56(%r12)
	je	LBB0_3
## %bb.1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_2:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_19:
	movq	%r14, %rdi
	callq	_spin_unlock_irqrestore
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	testl	%r15d, %r15d
	je	LBB0_4
## %bb.5:
	movq	%r12, %rdi
	callq	_pm_runtime_deactivate_timer
	cmpq	$0, 48(%r12)
	je	LBB0_9
## %bb.6:
	movq	(%r12), %rax
	movq	_RPM_REQ_RESUME@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_8
## %bb.7:
	movq	_EAGAIN@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_4:
	movq	%r12, %rdi
	callq	___pm_request_suspend
	movl	%eax, %ebx
	jmp	LBB0_19
LBB0_8:
	movq	_RPM_REQ_NONE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%r12)
LBB0_9:
	movq	8(%r12), %rax
	movq	_RPM_SUSPENDED@GOTPCREL(%rip), %rcx
	movl	$1, %ebx
	cmpq	(%rcx), %rax
	je	LBB0_19
## %bb.10:
	movq	_RPM_SUSPENDING@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_12
## %bb.11:
	movq	_EINPROGRESS@GOTPCREL(%rip), %rcx
	jmp	LBB0_16
LBB0_12:
	leaq	44(%r12), %rdi
	callq	_atomic_read
	movq	_EAGAIN@GOTPCREL(%rip), %rcx
	testq	%rax, %rax
	jg	LBB0_16
## %bb.13:
	cmpq	$0, 16(%r12)
	jle	LBB0_14
LBB0_16:
	movl	(%rcx), %ebx
	testl	%ebx, %ebx
	je	LBB0_18
## %bb.17:
	negl	%ebx
	jmp	LBB0_19
LBB0_14:
	movq	%r12, %rdi
	callq	_pm_children_suspended
	testl	%eax, %eax
	je	LBB0_15
LBB0_18:
	movq	_jiffies@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	movl	%r15d, %edi
	callq	_msecs_to_jiffies
	addq	%rax, %rbx
	movq	%rbx, 32(%r12)
	addq	$40, %r12
	movq	%r12, %rdi
	movq	%rbx, %rsi
	callq	_mod_timer
	xorl	%ebx, %ebx
	jmp	LBB0_19
LBB0_15:
	movq	_EBUSY@GOTPCREL(%rip), %rcx
	jmp	LBB0_16
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_RPM_REQ_RESUME,8,3             ## @RPM_REQ_RESUME
	.comm	_EAGAIN,4,2                     ## @EAGAIN
	.comm	_RPM_REQ_NONE,8,3               ## @RPM_REQ_NONE
	.comm	_RPM_SUSPENDED,8,3              ## @RPM_SUSPENDED
	.comm	_RPM_SUSPENDING,8,3             ## @RPM_SUSPENDING
	.comm	_EINPROGRESS,4,2                ## @EINPROGRESS
	.comm	_EBUSY,4,2                      ## @EBUSY
	.comm	_jiffies,8,3                    ## @jiffies
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pm_schedule_suspend            ; -- Begin function pm_schedule_suspend
	.p2align	2
_pm_schedule_suspend:                   ; @pm_schedule_suspend
	.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
	mov	x21, x1
	mov	x20, x0
	add	x19, x0, #24
	mov	x0, x19
	bl	_spin_lock_irqsave
	ldr	x8, [x20, #56]
	cbz	x8, LBB0_5
; %bb.1:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_2:
	ldr	w8, [x8]
LBB0_3:
	neg	w20, w8
LBB0_4:
	mov	x0, x19
	bl	_spin_unlock_irqrestore
	mov	x0, x20
	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
	ret
LBB0_5:
	cbz	w21, LBB0_9
; %bb.6:
	mov	x0, x20
	bl	_pm_runtime_deactivate_timer
	ldr	x8, [x20, #48]
	cbz	x8, LBB0_11
; %bb.7:
	ldr	x8, [x20]
Lloh2:
	adrp	x9, _RPM_REQ_RESUME@GOTPAGE
Lloh3:
	ldr	x9, [x9, _RPM_REQ_RESUME@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_10
; %bb.8:
Lloh5:
	adrp	x8, _EAGAIN@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EAGAIN@GOTPAGEOFF]
	b	LBB0_2
LBB0_9:
	mov	x0, x20
	bl	___pm_request_suspend
	mov	x20, x0
	b	LBB0_4
LBB0_10:
Lloh7:
	adrp	x8, _RPM_REQ_NONE@GOTPAGE
Lloh8:
	ldr	x8, [x8, _RPM_REQ_NONE@GOTPAGEOFF]
Lloh9:
	ldr	x8, [x8]
	str	x8, [x20]
LBB0_11:
	ldr	x8, [x20, #8]
Lloh10:
	adrp	x9, _RPM_SUSPENDED@GOTPAGE
Lloh11:
	ldr	x9, [x9, _RPM_SUSPENDED@GOTPAGEOFF]
Lloh12:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_13
; %bb.12:
	mov	w20, #1
	b	LBB0_4
LBB0_13:
Lloh13:
	adrp	x9, _RPM_SUSPENDING@GOTPAGE
Lloh14:
	ldr	x9, [x9, _RPM_SUSPENDING@GOTPAGEOFF]
Lloh15:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_15
; %bb.14:
Lloh16:
	adrp	x8, _EINPROGRESS@GOTPAGE
Lloh17:
	ldr	x8, [x8, _EINPROGRESS@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
	cbnz	w8, LBB0_3
	b	LBB0_20
LBB0_15:
	add	x0, x20, #44
	bl	_atomic_read
	cmp	x0, #0
	b.gt	LBB0_17
; %bb.16:
	ldr	x8, [x20, #16]
	cmp	x8, #0
	b.le	LBB0_18
LBB0_17:
Lloh19:
	adrp	x8, _EAGAIN@GOTPAGE
Lloh20:
	ldr	x8, [x8, _EAGAIN@GOTPAGEOFF]
Lloh21:
	ldr	w8, [x8]
	cbnz	w8, LBB0_3
	b	LBB0_20
LBB0_18:
	mov	x0, x20
	bl	_pm_children_suspended
	cbnz	w0, LBB0_20
; %bb.19:
Lloh22:
	adrp	x8, _EBUSY@GOTPAGE
Lloh23:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
Lloh24:
	ldr	w8, [x8]
	cbnz	w8, LBB0_3
LBB0_20:
Lloh25:
	adrp	x8, _jiffies@GOTPAGE
Lloh26:
	ldr	x8, [x8, _jiffies@GOTPAGEOFF]
Lloh27:
	ldr	x22, [x8]
	mov	x0, x21
	bl	_msecs_to_jiffies
	add	x1, x0, x22
	str	x1, [x20, #32]
	add	x0, x20, #40
	bl	_mod_timer
	mov	w20, #0
	b	LBB0_4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_RPM_REQ_RESUME,8,3             ; @RPM_REQ_RESUME
	.comm	_EAGAIN,4,2                     ; @EAGAIN
	.comm	_RPM_REQ_NONE,8,3               ; @RPM_REQ_NONE
	.comm	_RPM_SUSPENDED,8,3              ; @RPM_SUSPENDED
	.comm	_RPM_SUSPENDING,8,3             ; @RPM_SUSPENDING
	.comm	_EINPROGRESS,4,2                ; @EINPROGRESS
	.comm	_EBUSY,4,2                      ; @EBUSY
	.comm	_jiffies,8,3                    ; @jiffies
.subsections_via_symbols
