	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dm_resume                      ## -- Begin function dm_resume
	.p2align	4, 0x90
_dm_resume:                             ## @dm_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	callq	_mutex_lock
	movq	%r15, %rdi
	callq	_dm_suspended_md
	testl	%eax, %eax
	je	LBB0_9
## %bb.1:
	movq	%r15, %rdi
	callq	_dm_get_live_table
	testq	%rax, %rax
	je	LBB0_2
## %bb.3:
	movq	%rax, %r14
	movq	%rax, %rdi
	callq	_dm_table_get_size
	testl	%eax, %eax
	je	LBB0_9
## %bb.4:
	movq	%r14, %rdi
	callq	_dm_table_resume_targets
	testl	%eax, %eax
	je	LBB0_6
## %bb.5:
	movl	%eax, %ebx
	jmp	LBB0_9
LBB0_2:
	xorl	%r14d, %r14d
	jmp	LBB0_9
LBB0_6:
	movq	%r15, %rdi
	callq	_dm_queue_flush
	movq	%r15, %rdi
	callq	_dm_request_based
	testq	%rax, %rax
	je	LBB0_8
## %bb.7:
	movl	8(%r15), %edi
	callq	_start_queue
LBB0_8:
	movq	%r15, %rdi
	callq	_unlock_fs
	movq	_DMF_SUSPENDED@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	4(%r15), %rsi
	callq	_clear_bit
	movq	%r14, %rdi
	callq	_dm_table_unplug_all
	xorl	%ebx, %ebx
LBB0_9:
	movq	%r14, %rdi
	callq	_dm_table_put
	movq	%r15, %rdi
	callq	_mutex_unlock
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_DMF_SUSPENDED,4,2              ## @DMF_SUSPENDED
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dm_resume                      ; -- Begin function dm_resume
	.p2align	2
_dm_resume:                             ; @dm_resume
	.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	x19, x0
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w21, w8
	bl	_mutex_lock
	mov	x0, x19
	bl	_dm_suspended_md
	cbz	w0, LBB0_5
; %bb.1:
	mov	x0, x19
	bl	_dm_get_live_table
	mov	x20, x0
	cbz	x0, LBB0_6
; %bb.2:
	mov	x0, x20
	bl	_dm_table_get_size
	cbz	w0, LBB0_6
; %bb.3:
	mov	x0, x20
	bl	_dm_table_resume_targets
	cbz	w0, LBB0_7
; %bb.4:
	mov	x21, x0
	b	LBB0_6
LBB0_5:
	mov	x20, #0
LBB0_6:
	mov	x0, x20
	bl	_dm_table_put
	mov	x0, x19
	bl	_mutex_unlock
	mov	x0, x21
	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_7:
	mov	x0, x19
	bl	_dm_queue_flush
	mov	x0, x19
	bl	_dm_request_based
	cbz	x0, LBB0_9
; %bb.8:
	ldr	w0, [x19, #8]
	bl	_start_queue
LBB0_9:
	mov	x0, x19
	bl	_unlock_fs
Lloh3:
	adrp	x8, _DMF_SUSPENDED@GOTPAGE
Lloh4:
	ldr	x8, [x8, _DMF_SUSPENDED@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	add	x1, x19, #4
	bl	_clear_bit
	mov	x0, x20
	bl	_dm_table_unplug_all
	mov	w21, #0
	b	LBB0_6
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_DMF_SUSPENDED,4,2              ; @DMF_SUSPENDED
.subsections_via_symbols
