	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function __pm_request_idle
___pm_request_idle:                     ## @__pm_request_idle
	.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	%rdi, %rbx
	cmpq	$0, 40(%rdi)
	je	LBB0_2
## %bb.1:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	jmp	LBB0_8
LBB0_2:
	leaq	36(%rbx), %rdi
	callq	_atomic_read
	movq	_EAGAIN@GOTPCREL(%rip), %rcx
	testq	%rax, %rax
	jg	LBB0_8
## %bb.3:
	cmpq	$0, (%rbx)
	jle	LBB0_4
LBB0_8:
	movl	(%rcx), %eax
	testl	%eax, %eax
	je	LBB0_10
## %bb.9:
	negl	%eax
	jmp	LBB0_17
LBB0_4:
	movq	8(%rbx), %rax
	movq	_RPM_SUSPENDED@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rax
	je	LBB0_8
## %bb.5:
	movq	_RPM_SUSPENDING@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rax
	je	LBB0_8
## %bb.6:
	movq	%rbx, %rdi
	callq	_pm_children_suspended
	testl	%eax, %eax
	je	LBB0_7
LBB0_10:
	cmpl	$0, 16(%rbx)
	je	LBB0_15
## %bb.11:
	movq	24(%rbx), %rcx
	movq	_RPM_REQ_NONE@GOTPCREL(%rip), %rax
	movq	_RPM_REQ_IDLE@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	cmpq	(%rax), %rcx
	jne	LBB0_13
## %bb.12:
	movq	%rdx, 24(%rbx)
	jmp	LBB0_16
LBB0_15:
	movq	_RPM_REQ_IDLE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 24(%rbx)
	movl	$1, 16(%rbx)
	movq	_pm_wq@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	addq	$32, %rbx
	movq	%rbx, %rsi
	callq	_queue_work
LBB0_16:
	xorl	%eax, %eax
LBB0_17:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_13:
	xorl	%eax, %eax
	cmpq	%rdx, %rcx
	je	LBB0_17
## %bb.14:
	movq	_EAGAIN@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_17
LBB0_7:
	movq	_EBUSY@GOTPCREL(%rip), %rcx
	jmp	LBB0_8
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_RPM_SUSPENDED,8,3              ## @RPM_SUSPENDED
	.comm	_RPM_SUSPENDING,8,3             ## @RPM_SUSPENDING
	.comm	_EAGAIN,4,2                     ## @EAGAIN
	.comm	_EBUSY,4,2                      ## @EBUSY
	.comm	_RPM_REQ_NONE,8,3               ## @RPM_REQ_NONE
	.comm	_RPM_REQ_IDLE,8,3               ## @RPM_REQ_IDLE
	.comm	_pm_wq,4,2                      ## @pm_wq
	.no_dead_strip	___pm_request_idle
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function __pm_request_idle
___pm_request_idle:                     ; @__pm_request_idle
	.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
	mov	x19, x0
	ldr	x8, [x0, #40]
	cbz	x8, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cbnz	w8, LBB0_13
	b	LBB0_6
LBB0_2:
	add	x0, x19, #36
	bl	_atomic_read
	cmp	x0, #0
	b.gt	LBB0_5
; %bb.3:
	ldr	x8, [x19]
	cmp	x8, #0
	b.gt	LBB0_5
; %bb.4:
	ldr	x8, [x19, #8]
Lloh3:
	adrp	x9, _RPM_SUSPENDED@GOTPAGE
Lloh4:
	ldr	x9, [x9, _RPM_SUSPENDED@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
Lloh6:
	adrp	x10, _RPM_SUSPENDING@GOTPAGE
Lloh7:
	ldr	x10, [x10, _RPM_SUSPENDING@GOTPAGEOFF]
Lloh8:
	ldr	x10, [x10]
	cmp	x8, x9
	ccmp	x8, x10, #4, ne
	b.ne	LBB0_15
LBB0_5:
Lloh9:
	adrp	x8, _EAGAIN@GOTPAGE
Lloh10:
	ldr	x8, [x8, _EAGAIN@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	cbnz	w8, LBB0_13
LBB0_6:
	ldr	w8, [x19, #16]
	cbz	w8, LBB0_9
; %bb.7:
Lloh12:
	adrp	x9, _RPM_REQ_NONE@GOTPAGE
Lloh13:
	ldr	x9, [x9, _RPM_REQ_NONE@GOTPAGEOFF]
	ldr	x8, [x19, #24]
Lloh14:
	ldr	x10, [x9]
Lloh15:
	adrp	x9, _RPM_REQ_IDLE@GOTPAGE
Lloh16:
	ldr	x9, [x9, _RPM_REQ_IDLE@GOTPAGEOFF]
Lloh17:
	ldr	x9, [x9]
	cmp	x8, x10
	b.ne	LBB0_10
; %bb.8:
	mov	w0, #0
	str	x9, [x19, #24]
	b	LBB0_14
LBB0_9:
Lloh18:
	adrp	x8, _RPM_REQ_IDLE@GOTPAGE
Lloh19:
	ldr	x8, [x8, _RPM_REQ_IDLE@GOTPAGEOFF]
Lloh20:
	ldr	x8, [x8]
	str	x8, [x19, #24]
	mov	w8, #1
	str	w8, [x19, #16]
Lloh21:
	adrp	x8, _pm_wq@GOTPAGE
Lloh22:
	ldr	x8, [x8, _pm_wq@GOTPAGEOFF]
Lloh23:
	ldr	w0, [x8]
	add	x1, x19, #32
	bl	_queue_work
	b	LBB0_11
LBB0_10:
	cmp	x8, x9
	b.ne	LBB0_12
LBB0_11:
	mov	w0, #0
	b	LBB0_14
LBB0_12:
Lloh24:
	adrp	x8, _EAGAIN@GOTPAGE
Lloh25:
	ldr	x8, [x8, _EAGAIN@GOTPAGEOFF]
Lloh26:
	ldr	w8, [x8]
LBB0_13:
	neg	w0, w8
LBB0_14:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_15:
	mov	x0, x19
	bl	_pm_children_suspended
	cbnz	w0, LBB0_6
; %bb.16:
Lloh27:
	adrp	x8, _EBUSY@GOTPAGE
Lloh28:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
Lloh29:
	ldr	w8, [x8]
	cbnz	w8, LBB0_13
	b	LBB0_6
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_RPM_SUSPENDED,8,3              ; @RPM_SUSPENDED
	.comm	_RPM_SUSPENDING,8,3             ; @RPM_SUSPENDING
	.comm	_EAGAIN,4,2                     ; @EAGAIN
	.comm	_EBUSY,4,2                      ; @EBUSY
	.comm	_RPM_REQ_NONE,8,3               ; @RPM_REQ_NONE
	.comm	_RPM_REQ_IDLE,8,3               ; @RPM_REQ_IDLE
	.comm	_pm_wq,4,2                      ; @pm_wq
	.no_dead_strip	___pm_request_idle
.subsections_via_symbols
