	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dpm_resume
_dpm_resume:                            ## @dpm_resume
	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edi, -44(%rbp)                 ## 4-byte Spill
	leaq	-56(%rbp), %rdi
	callq	_INIT_LIST_HEAD
	movq	_dpm_list_mtx@GOTPCREL(%rip), %rdi
	callq	_mutex_lock
	movq	_dpm_list@GOTPCREL(%rip), %rbx
	jmp	LBB0_1
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	%r13, %rdi
	callq	_put_device
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rdi
	callq	_list_empty
	testl	%eax, %eax
	jne	LBB0_10
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	(%rbx), %rdi
	callq	_to_device
	movq	%rax, %r13
	movq	(%rbx), %r15
	movq	%rax, %rdi
	callq	_get_device
	movq	(%r13), %rax
	movq	_DPM_OFF@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jge	LBB0_3
## %bb.5:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	_DPM_SUSPENDING@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	_DPM_RESUMING@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%r13)
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_3:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	_DPM_RESUMING@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%r13)
	movq	_dpm_list_mtx@GOTPCREL(%rip), %r14
	movq	%r14, %rdi
	callq	_mutex_unlock
	movq	%r13, %rdi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	callq	_device_resume
	movl	%eax, %r12d
	movq	%r14, %rdi
	callq	_mutex_lock
	testl	%r12d, %r12d
	je	LBB0_7
## %bb.4:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	%r13, %rdi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	leaq	L_.str(%rip), %rdx
	movl	%r12d, %ecx
	callq	_pm_dev_err
LBB0_7:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	%r15, %rdi
	callq	_list_empty
	testl	%eax, %eax
	jne	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	%r15, %rdi
	leaq	-56(%rbp), %rsi
	callq	_list_move_tail
	jmp	LBB0_9
LBB0_10:
	movq	_dpm_list@GOTPCREL(%rip), %rsi
	leaq	-56(%rbp), %rdi
	callq	_list_splice
	movq	_dpm_list_mtx@GOTPCREL(%rip), %rdi
	callq	_mutex_unlock
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_dpm_list_mtx,4,2               ## @dpm_list_mtx
	.comm	_dpm_list,8,3                   ## @dpm_list
	.comm	_DPM_OFF,8,3                    ## @DPM_OFF
	.comm	_DPM_RESUMING,8,3               ## @DPM_RESUMING
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.space	1

	.comm	_DPM_SUSPENDING,8,3             ## @DPM_SUSPENDING
	.no_dead_strip	_dpm_resume
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dpm_resume
_dpm_resume:                            ; @dpm_resume
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x0
	add	x0, sp, #8
	bl	_INIT_LIST_HEAD
Lloh0:
	adrp	x0, _dpm_list_mtx@GOTPAGE
Lloh1:
	ldr	x0, [x0, _dpm_list_mtx@GOTPAGEOFF]
	bl	_mutex_lock
Lloh2:
	adrp	x20, _dpm_list@GOTPAGE
Lloh3:
	ldr	x20, [x20, _dpm_list@GOTPAGEOFF]
	mov	x0, x20
	bl	_list_empty
	cbz	w0, LBB0_2
LBB0_1:
Lloh4:
	adrp	x1, _dpm_list@GOTPAGE
Lloh5:
	ldr	x1, [x1, _dpm_list@GOTPAGEOFF]
	add	x0, sp, #8
	bl	_list_splice
Lloh6:
	adrp	x0, _dpm_list_mtx@GOTPAGE
Lloh7:
	ldr	x0, [x0, _dpm_list_mtx@GOTPAGEOFF]
	bl	_mutex_unlock
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_2:
Lloh8:
	adrp	x26, _DPM_OFF@GOTPAGE
Lloh9:
	ldr	x26, [x26, _DPM_OFF@GOTPAGEOFF]
Lloh10:
	adrp	x27, _DPM_SUSPENDING@GOTPAGE
Lloh11:
	ldr	x27, [x27, _DPM_SUSPENDING@GOTPAGEOFF]
Lloh12:
	adrp	x28, _DPM_RESUMING@GOTPAGE
Lloh13:
	ldr	x28, [x28, _DPM_RESUMING@GOTPAGEOFF]
Lloh14:
	adrp	x21, l_.str@PAGE
Lloh15:
	add	x21, x21, l_.str@PAGEOFF
Lloh16:
	adrp	x22, _dpm_list_mtx@GOTPAGE
Lloh17:
	ldr	x22, [x22, _dpm_list_mtx@GOTPAGEOFF]
	b	LBB0_4
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x23
	bl	_put_device
	mov	x0, x20
	bl	_list_empty
	cbnz	w0, LBB0_1
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x0, [x20]
	bl	_to_device
	mov	x23, x0
	ldr	x24, [x20]
	bl	_get_device
	ldr	x8, [x23]
	ldr	x9, [x26]
	cmp	x8, x9
	b.ge	LBB0_7
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x9, [x27]
	cmp	x8, x9
	b.ne	LBB0_9
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x28]
	str	x8, [x23]
	b	LBB0_9
LBB0_7:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x28]
	str	x8, [x23]
	mov	x0, x22
	bl	_mutex_unlock
	mov	x0, x23
	mov	x1, x19
	bl	_device_resume
	mov	x25, x0
	mov	x0, x22
	bl	_mutex_lock
	cbz	w25, LBB0_9
; %bb.8:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x23
	mov	x1, x19
	mov	x2, x21
	mov	x3, x25
	bl	_pm_dev_err
LBB0_9:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x24
	bl	_list_empty
	cbnz	w0, LBB0_3
; %bb.10:                               ;   in Loop: Header=BB0_4 Depth=1
	add	x1, sp, #8
	mov	x0, x24
	bl	_list_move_tail
	b	LBB0_3
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_dpm_list_mtx,4,2               ; @dpm_list_mtx
	.comm	_dpm_list,8,3                   ; @dpm_list
	.comm	_DPM_OFF,8,3                    ; @DPM_OFF
	.comm	_DPM_RESUMING,8,3               ; @DPM_RESUMING
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.space	1

	.comm	_DPM_SUSPENDING,8,3             ; @DPM_SUSPENDING
	.no_dead_strip	_dpm_resume
.subsections_via_symbols
