	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dm_suspend                     ## -- Begin function dm_suspend
	.p2align	4, 0x90
_dm_suspend:                            ## @dm_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	%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	%esi, %r15d
	movq	%rdi, %rbx
	movq	_DM_SUSPEND_LOCKFS_FLAG@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	_DM_SUSPEND_NOFLUSH_FLAG@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	callq	_mutex_lock
	movq	%rbx, %rdi
	callq	_dm_suspended_md
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r12d, %r12d
	subl	(%rax), %r12d
	jmp	LBB0_16
LBB0_2:
	movq	%rbx, %rdi
	callq	_dm_get_live_table
	movq	%rax, %r12
	testl	%r15d, %r13d
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	je	LBB0_4
## %bb.3:
	movq	_DMF_NOFLUSH_SUSPENDING@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	4(%rbx), %rsi
	callq	_set_bit
	movq	%r12, %rdi
	callq	_dm_table_presuspend_targets
LBB0_6:
	leaq	12(%rbx), %r14
	movq	%r14, %rdi
	callq	_down_write
	movq	_DMF_BLOCK_IO_FOR_SUSPEND@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	4(%rbx), %rsi
	movq	%rsi, -56(%rbp)                 ## 8-byte Spill
	callq	_set_bit
	movq	%r14, %rdi
	callq	_up_write
	movq	%rbx, %rdi
	callq	_dm_request_based
	testq	%rax, %rax
	je	LBB0_8
## %bb.7:
	movl	8(%rbx), %edi
	callq	_stop_queue
LBB0_8:
	movl	16(%rbx), %edi
	callq	_flush_workqueue
	movq	_TASK_INTERRUPTIBLE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_dm_wait_for_completion
	movl	%eax, %r12d
	movq	%r14, %rdi
	callq	_down_write
	testl	%r15d, %r13d
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	je	LBB0_10
## %bb.9:
	movq	_DMF_NOFLUSH_SUSPENDING@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r15, %rsi
	callq	_clear_bit
LBB0_10:
	movq	%r14, %rdi
	callq	_up_write
	testl	%r12d, %r12d
	js	LBB0_11
## %bb.14:
	movq	_DMF_SUSPENDED@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r15, %rsi
	callq	_set_bit
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_dm_table_postsuspend_targets
	jmp	LBB0_15
LBB0_4:
	movq	%r12, %rdi
	callq	_dm_table_presuspend_targets
	testl	%r15d, %r14d
	je	LBB0_6
## %bb.5:
	movq	%rbx, %rdi
	callq	_lock_fs
	movl	%eax, %r12d
	testl	%eax, %eax
	jne	LBB0_15
	jmp	LBB0_6
LBB0_11:
	movq	%rbx, %rdi
	callq	_dm_queue_flush
	movq	%rbx, %rdi
	callq	_dm_request_based
	testq	%rax, %rax
	je	LBB0_13
## %bb.12:
	movl	8(%rbx), %edi
	callq	_start_queue
LBB0_13:
	movq	%rbx, %rdi
	callq	_unlock_fs
LBB0_15:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_dm_table_put
LBB0_16:
	movq	%rbx, %rdi
	callq	_mutex_unlock
	movl	%r12d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DM_SUSPEND_LOCKFS_FLAG,4,2     ## @DM_SUSPEND_LOCKFS_FLAG
	.comm	_DM_SUSPEND_NOFLUSH_FLAG,4,2    ## @DM_SUSPEND_NOFLUSH_FLAG
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_DMF_NOFLUSH_SUSPENDING,4,2     ## @DMF_NOFLUSH_SUSPENDING
	.comm	_DMF_BLOCK_IO_FOR_SUSPEND,4,2   ## @DMF_BLOCK_IO_FOR_SUSPEND
	.comm	_TASK_INTERRUPTIBLE,4,2         ## @TASK_INTERRUPTIBLE
	.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_suspend                     ; -- Begin function dm_suspend
	.p2align	2
_dm_suspend:                            ; @dm_suspend
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x21, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _DM_SUSPEND_LOCKFS_FLAG@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DM_SUSPEND_LOCKFS_FLAG@GOTPAGEOFF]
Lloh2:
	ldr	w22, [x8]
Lloh3:
	adrp	x8, _DM_SUSPEND_NOFLUSH_FLAG@GOTPAGE
Lloh4:
	ldr	x8, [x8, _DM_SUSPEND_NOFLUSH_FLAG@GOTPAGEOFF]
Lloh5:
	ldr	w20, [x8]
	bl	_mutex_lock
	mov	x0, x19
	bl	_dm_suspended_md
	cbz	x0, LBB0_2
; %bb.1:
Lloh6:
	adrp	x8, _EINVAL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_16
LBB0_2:
	and	w24, w20, w21
	mov	x0, x19
	bl	_dm_get_live_table
	mov	x20, x0
Lloh9:
	adrp	x25, _DMF_NOFLUSH_SUSPENDING@GOTPAGE
Lloh10:
	ldr	x25, [x25, _DMF_NOFLUSH_SUSPENDING@GOTPAGEOFF]
	cbz	w24, LBB0_10
; %bb.3:
	ldr	w0, [x25]
	add	x1, x19, #4
	bl	_set_bit
	mov	x0, x20
	bl	_dm_table_presuspend_targets
LBB0_4:
	add	x23, x19, #12
	mov	x0, x23
	bl	_down_write
Lloh11:
	adrp	x8, _DMF_BLOCK_IO_FOR_SUSPEND@GOTPAGE
Lloh12:
	ldr	x8, [x8, _DMF_BLOCK_IO_FOR_SUSPEND@GOTPAGEOFF]
Lloh13:
	ldr	w0, [x8]
	add	x22, x19, #4
	mov	x1, x22
	bl	_set_bit
	mov	x0, x23
	bl	_up_write
	mov	x0, x19
	bl	_dm_request_based
	cbz	x0, LBB0_6
; %bb.5:
	ldr	w0, [x19, #8]
	bl	_stop_queue
LBB0_6:
	ldr	w0, [x19, #16]
	bl	_flush_workqueue
Lloh14:
	adrp	x8, _TASK_INTERRUPTIBLE@GOTPAGE
Lloh15:
	ldr	x8, [x8, _TASK_INTERRUPTIBLE@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_dm_wait_for_completion
	mov	x21, x0
	mov	x0, x23
	bl	_down_write
	cbz	w24, LBB0_8
; %bb.7:
	ldr	w0, [x25]
	mov	x1, x22
	bl	_clear_bit
LBB0_8:
	mov	x0, x23
	bl	_up_write
	tbnz	w21, #31, LBB0_12
; %bb.9:
Lloh17:
	adrp	x8, _DMF_SUSPENDED@GOTPAGE
Lloh18:
	ldr	x8, [x8, _DMF_SUSPENDED@GOTPAGEOFF]
Lloh19:
	ldr	w0, [x8]
	mov	x1, x22
	bl	_set_bit
	mov	x0, x20
	bl	_dm_table_postsuspend_targets
	b	LBB0_15
LBB0_10:
	and	w21, w22, w21
	mov	x0, x20
	bl	_dm_table_presuspend_targets
	cbz	w21, LBB0_4
; %bb.11:
	mov	x0, x19
	bl	_lock_fs
	mov	x21, x0
	cbnz	w0, LBB0_15
	b	LBB0_4
LBB0_12:
	mov	x0, x19
	bl	_dm_queue_flush
	mov	x0, x19
	bl	_dm_request_based
	cbz	x0, LBB0_14
; %bb.13:
	ldr	w0, [x19, #8]
	bl	_start_queue
LBB0_14:
	mov	x0, x19
	bl	_unlock_fs
LBB0_15:
	mov	x0, x20
	bl	_dm_table_put
LBB0_16:
	mov	x0, x19
	bl	_mutex_unlock
	mov	x0, x21
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_DM_SUSPEND_LOCKFS_FLAG,4,2     ; @DM_SUSPEND_LOCKFS_FLAG
	.comm	_DM_SUSPEND_NOFLUSH_FLAG,4,2    ; @DM_SUSPEND_NOFLUSH_FLAG
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_DMF_NOFLUSH_SUSPENDING,4,2     ; @DMF_NOFLUSH_SUSPENDING
	.comm	_DMF_BLOCK_IO_FOR_SUSPEND,4,2   ; @DMF_BLOCK_IO_FOR_SUSPEND
	.comm	_TASK_INTERRUPTIBLE,4,2         ; @TASK_INTERRUPTIBLE
	.comm	_DMF_SUSPENDED,4,2              ; @DMF_SUSPENDED
.subsections_via_symbols
