	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dpm_complete
_dpm_complete:                          ## @dpm_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	%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	_transition_started@GOTPCREL(%rip), %rax
	movl	$0, (%rax)
	movq	_dpm_list@GOTPCREL(%rip), %r13
	movq	%r13, %rdi
	callq	_list_empty
	testl	%eax, %eax
	je	LBB0_1
LBB0_7:
	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
LBB0_1:
	movq	_DPM_ON@GOTPCREL(%rip), %r14
	movq	_dpm_list_mtx@GOTPCREL(%rip), %r15
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	%r12, %rdi
	callq	_list_empty
	testl	%eax, %eax
	je	LBB0_5
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	%rbx, %rdi
	callq	_put_device
	movq	%r13, %rdi
	callq	_list_empty
	testl	%eax, %eax
	jne	LBB0_7
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r13), %rdi
	callq	_to_device
	movq	%rax, %rbx
	movq	(%r13), %r12
	movq	%rax, %rdi
	callq	_get_device
	movq	(%r14), %rax
	cmpq	%rax, (%rbx)
	jle	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%rax, (%rbx)
	movq	%r15, %rdi
	callq	_mutex_unlock
	movq	%rbx, %rdi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	callq	_device_complete
	movq	%rbx, %rdi
	callq	_pm_runtime_put_noidle
	movq	%r15, %rdi
	callq	_mutex_lock
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	%r12, %rdi
	leaq	-56(%rbp), %rsi
	callq	_list_move
	jmp	LBB0_6
	.cfi_endproc
                                        ## -- End function
	.comm	_dpm_list_mtx,4,2               ## @dpm_list_mtx
	.comm	_transition_started,4,2         ## @transition_started
	.comm	_dpm_list,8,3                   ## @dpm_list
	.comm	_DPM_ON,8,3                     ## @DPM_ON
	.no_dead_strip	_dpm_complete
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dpm_complete
_dpm_complete:                          ; @dpm_complete
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	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	x8, _transition_started@GOTPAGE
Lloh3:
	ldr	x8, [x8, _transition_started@GOTPAGEOFF]
Lloh4:
	str	wzr, [x8]
Lloh5:
	adrp	x20, _dpm_list@GOTPAGE
Lloh6:
	ldr	x20, [x20, _dpm_list@GOTPAGEOFF]
	mov	x0, x20
	bl	_list_empty
	cbz	w0, LBB0_2
LBB0_1:
Lloh7:
	adrp	x1, _dpm_list@GOTPAGE
Lloh8:
	ldr	x1, [x1, _dpm_list@GOTPAGEOFF]
	add	x0, sp, #8
	bl	_list_splice
Lloh9:
	adrp	x0, _dpm_list_mtx@GOTPAGE
Lloh10:
	ldr	x0, [x0, _dpm_list_mtx@GOTPAGEOFF]
	bl	_mutex_unlock
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_2:
Lloh11:
	adrp	x24, _DPM_ON@GOTPAGE
Lloh12:
	ldr	x24, [x24, _DPM_ON@GOTPAGEOFF]
Lloh13:
	adrp	x21, _dpm_list_mtx@GOTPAGE
Lloh14:
	ldr	x21, [x21, _dpm_list_mtx@GOTPAGEOFF]
	b	LBB0_5
LBB0_3:                                 ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x23
	bl	_list_empty
	cbz	w0, LBB0_7
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x22
	bl	_put_device
	mov	x0, x20
	bl	_list_empty
	cbnz	w0, LBB0_1
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x0, [x20]
	bl	_to_device
	mov	x22, x0
	ldr	x23, [x20]
	bl	_get_device
	ldr	x9, [x22]
	ldr	x8, [x24]
	cmp	x9, x8
	b.le	LBB0_3
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	str	x8, [x22]
	mov	x0, x21
	bl	_mutex_unlock
	mov	x0, x22
	mov	x1, x19
	bl	_device_complete
	mov	x0, x22
	bl	_pm_runtime_put_noidle
	mov	x0, x21
	bl	_mutex_lock
	b	LBB0_3
LBB0_7:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	x1, sp, #8
	mov	x0, x23
	bl	_list_move
	b	LBB0_4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotStr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_dpm_list_mtx,4,2               ; @dpm_list_mtx
	.comm	_transition_started,4,2         ; @transition_started
	.comm	_dpm_list,8,3                   ; @dpm_list
	.comm	_DPM_ON,8,3                     ; @DPM_ON
	.no_dead_strip	_dpm_complete
.subsections_via_symbols
