	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function __pm_request_suspend
___pm_request_suspend:                  ## @__pm_request_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	cmpq	$0, 40(%rdi)
	je	LBB0_3
## %bb.1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_2:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_20:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_3:
	movq	%rdi, %r14
	movq	(%rdi), %rax
	movq	_RPM_SUSPENDED@GOTPCREL(%rip), %rcx
	movl	$1, %ebx
	cmpq	(%rcx), %rax
	je	LBB0_11
## %bb.4:
	leaq	36(%r14), %rdi
	callq	_atomic_read
	movq	_EAGAIN@GOTPCREL(%rip), %rcx
	testq	%rax, %rax
	jg	LBB0_10
## %bb.5:
	cmpq	$0, 8(%r14)
	jg	LBB0_10
## %bb.6:
	movq	(%r14), %rax
	movq	_RPM_SUSPENDING@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_8
## %bb.7:
	movq	_EINPROGRESS@GOTPCREL(%rip), %rcx
	jmp	LBB0_10
LBB0_8:
	movq	%r14, %rdi
	callq	_pm_children_suspended
	xorl	%ebx, %ebx
	testl	%eax, %eax
	jne	LBB0_11
## %bb.9:
	movq	_EBUSY@GOTPCREL(%rip), %rcx
LBB0_10:
	movl	(%rcx), %eax
	movl	%eax, %ebx
	negl	%ebx
	testl	%eax, %eax
	jg	LBB0_20
LBB0_11:
	movq	%r14, %rdi
	callq	_pm_runtime_deactivate_timer
	cmpl	$0, 16(%r14)
	je	LBB0_18
## %bb.12:
	movq	24(%r14), %rcx
	movq	_RPM_REQ_RESUME@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rcx
	jne	LBB0_14
## %bb.13:
	movq	_EAGAIN@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_18:
	testl	%ebx, %ebx
	jne	LBB0_20
## %bb.19:
	movq	_RPM_REQ_SUSPEND@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 24(%r14)
	movl	$1, 16(%r14)
	movq	_pm_wq@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	addq	$32, %r14
	movq	%r14, %rsi
	callq	_queue_work
	xorl	%ebx, %ebx
	jmp	LBB0_20
LBB0_14:
	movq	_RPM_REQ_SUSPEND@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	%rax, %rcx
	je	LBB0_20
## %bb.15:
	testl	%ebx, %ebx
	je	LBB0_17
## %bb.16:
	movq	_RPM_REQ_NONE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
LBB0_17:
	movq	%rax, 24(%r14)
	jmp	LBB0_20
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_RPM_SUSPENDED,8,3              ## @RPM_SUSPENDED
	.comm	_EAGAIN,4,2                     ## @EAGAIN
	.comm	_RPM_SUSPENDING,8,3             ## @RPM_SUSPENDING
	.comm	_EINPROGRESS,4,2                ## @EINPROGRESS
	.comm	_EBUSY,4,2                      ## @EBUSY
	.comm	_RPM_REQ_RESUME,8,3             ## @RPM_REQ_RESUME
	.comm	_RPM_REQ_SUSPEND,8,3            ## @RPM_REQ_SUSPEND
	.comm	_RPM_REQ_NONE,8,3               ## @RPM_REQ_NONE
	.comm	_pm_wq,4,2                      ## @pm_wq
	.no_dead_strip	___pm_request_suspend
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function __pm_request_suspend
___pm_request_suspend:                  ; @__pm_request_suspend
	.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
	ldr	x8, [x0, #40]
	cbz	x8, LBB0_4
; %bb.1:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_2:
	ldr	w8, [x8]
	neg	w20, w8
LBB0_3:
	mov	x0, x20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_4:
	mov	x19, x0
	ldr	x8, [x0]
Lloh2:
	adrp	x9, _RPM_SUSPENDED@GOTPAGE
Lloh3:
	ldr	x9, [x9, _RPM_SUSPENDED@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_6
; %bb.5:
	mov	w20, #1
	b	LBB0_10
LBB0_6:
	add	x0, x19, #36
	bl	_atomic_read
	cmp	x0, #0
	b.gt	LBB0_8
; %bb.7:
	ldr	x8, [x19, #8]
	cmp	x8, #0
	b.le	LBB0_17
LBB0_8:
Lloh5:
	adrp	x8, _EAGAIN@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EAGAIN@GOTPAGEOFF]
LBB0_9:
	ldr	w8, [x8]
	neg	w20, w8
	cmp	w8, #0
	b.gt	LBB0_3
LBB0_10:
	mov	x0, x19
	bl	_pm_runtime_deactivate_timer
	ldr	w8, [x19, #16]
	cbz	w8, LBB0_13
; %bb.11:
	ldr	x8, [x19, #24]
Lloh7:
	adrp	x9, _RPM_REQ_RESUME@GOTPAGE
Lloh8:
	ldr	x9, [x9, _RPM_REQ_RESUME@GOTPAGEOFF]
Lloh9:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_15
; %bb.12:
Lloh10:
	adrp	x8, _EAGAIN@GOTPAGE
Lloh11:
	ldr	x8, [x8, _EAGAIN@GOTPAGEOFF]
	b	LBB0_2
LBB0_13:
	cbnz	w20, LBB0_3
; %bb.14:
Lloh12:
	adrp	x8, _RPM_REQ_SUSPEND@GOTPAGE
Lloh13:
	ldr	x8, [x8, _RPM_REQ_SUSPEND@GOTPAGEOFF]
Lloh14:
	ldr	x8, [x8]
	str	x8, [x19, #24]
	mov	w8, #1
	str	w8, [x19, #16]
Lloh15:
	adrp	x8, _pm_wq@GOTPAGE
Lloh16:
	ldr	x8, [x8, _pm_wq@GOTPAGEOFF]
Lloh17:
	ldr	w0, [x8]
	add	x1, x19, #32
	bl	_queue_work
	b	LBB0_3
LBB0_15:
Lloh18:
	adrp	x9, _RPM_REQ_SUSPEND@GOTPAGE
Lloh19:
	ldr	x9, [x9, _RPM_REQ_SUSPEND@GOTPAGEOFF]
Lloh20:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_3
; %bb.16:
Lloh21:
	adrp	x8, _RPM_REQ_NONE@GOTPAGE
Lloh22:
	ldr	x8, [x8, _RPM_REQ_NONE@GOTPAGEOFF]
Lloh23:
	ldr	x8, [x8]
	cmp	w20, #0
	csel	x8, x9, x8, eq
	str	x8, [x19, #24]
	b	LBB0_3
LBB0_17:
	ldr	x8, [x19]
Lloh24:
	adrp	x9, _RPM_SUSPENDING@GOTPAGE
Lloh25:
	ldr	x9, [x9, _RPM_SUSPENDING@GOTPAGEOFF]
Lloh26:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_19
; %bb.18:
Lloh27:
	adrp	x8, _EINPROGRESS@GOTPAGE
Lloh28:
	ldr	x8, [x8, _EINPROGRESS@GOTPAGEOFF]
	b	LBB0_9
LBB0_19:
	mov	x0, x19
	bl	_pm_children_suspended
	cbz	w0, LBB0_21
; %bb.20:
	mov	w20, #0
	b	LBB0_10
LBB0_21:
Lloh29:
	adrp	x8, _EBUSY@GOTPAGE
Lloh30:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
	b	LBB0_9
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh27, Lloh28
	.loh AdrpLdrGot	Lloh29, Lloh30
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_RPM_SUSPENDED,8,3              ; @RPM_SUSPENDED
	.comm	_EAGAIN,4,2                     ; @EAGAIN
	.comm	_RPM_SUSPENDING,8,3             ; @RPM_SUSPENDING
	.comm	_EINPROGRESS,4,2                ; @EINPROGRESS
	.comm	_EBUSY,4,2                      ; @EBUSY
	.comm	_RPM_REQ_RESUME,8,3             ; @RPM_REQ_RESUME
	.comm	_RPM_REQ_SUSPEND,8,3            ; @RPM_REQ_SUSPEND
	.comm	_RPM_REQ_NONE,8,3               ; @RPM_REQ_NONE
	.comm	_pm_wq,4,2                      ; @pm_wq
	.no_dead_strip	___pm_request_suspend
.subsections_via_symbols
