	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function __dm_suspend
___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	%r8d, -44(%rbp)                 ## 4-byte Spill
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	movl	%edx, %r15d
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movq	_DM_SUSPEND_LOCKFS_FLAG@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movq	_DM_SUSPEND_NOFLUSH_FLAG@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	addq	$16, %rdi
	callq	_lockdep_assert_held
	movl	%r13d, -48(%rbp)                ## 4-byte Spill
	testl	%r15d, %r13d
	je	LBB0_2
## %bb.1:
	movq	_DMF_NOFLUSH_SUSPENDING@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	8(%rbx), %rsi
	callq	_set_bit
	movq	%r14, %rdi
	callq	_dm_table_presuspend_targets
LBB0_4:
	movq	_DMF_BLOCK_IO_FOR_SUSPEND@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	8(%rbx), %r13
	movq	%r13, %rsi
	callq	_set_bit
	testq	%r14, %r14
	je	LBB0_6
## %bb.5:
	leaq	4(%rbx), %rdi
	callq	_synchronize_srcu
LBB0_6:
	movq	%rbx, %rdi
	callq	_dm_request_based
	testq	%rax, %rax
	je	LBB0_8
## %bb.7:
	movl	(%rbx), %edi
	callq	_dm_stop_queue
LBB0_8:
	movl	12(%rbx), %edi
	callq	_flush_workqueue
	movq	%rbx, %rdi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	callq	_dm_wait_for_completion
	movl	%eax, %r12d
	testl	%eax, %eax
	je	LBB0_9
## %bb.10:
	testl	%r15d, -48(%rbp)                ## 4-byte Folded Reload
	je	LBB0_12
LBB0_11:
	movq	_DMF_NOFLUSH_SUSPENDING@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r13, %rsi
	callq	_clear_bit
LBB0_12:
	testq	%r14, %r14
	je	LBB0_14
## %bb.13:
	leaq	4(%rbx), %rdi
	callq	_synchronize_srcu
LBB0_14:
	testl	%r12d, %r12d
	jns	LBB0_19
## %bb.15:
	movq	%rbx, %rdi
	callq	_dm_queue_flush
	movq	%rbx, %rdi
	callq	_dm_request_based
	testq	%rax, %rax
	je	LBB0_17
## %bb.16:
	movl	(%rbx), %edi
	callq	_dm_start_queue
LBB0_17:
	movq	%rbx, %rdi
	callq	_unlock_fs
	jmp	LBB0_18
LBB0_2:
	movq	%rbx, %rdi
	callq	_dm_device_name
	leaq	L_.str(%rip), %rdi
	movl	%eax, %esi
	callq	_pr_debug
	movq	%r14, %rdi
	callq	_dm_table_presuspend_targets
	testl	%r15d, %r12d
	je	LBB0_4
## %bb.3:
	movq	%rbx, %rdi
	callq	_lock_fs
	movl	%eax, %r12d
	testl	%eax, %eax
	je	LBB0_4
LBB0_18:
	movq	%r14, %rdi
	callq	_dm_table_presuspend_undo_targets
LBB0_19:
	movl	%r12d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	movq	%r13, %rsi
	callq	_set_bit
	testl	%r15d, -48(%rbp)                ## 4-byte Folded Reload
	jne	LBB0_11
	jmp	LBB0_12
	.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	_DMF_NOFLUSH_SUSPENDING,4,2     ## @DMF_NOFLUSH_SUSPENDING
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s: suspending with flush\n"

	.comm	_DMF_BLOCK_IO_FOR_SUSPEND,4,2   ## @DMF_BLOCK_IO_FOR_SUSPEND
	.no_dead_strip	___dm_suspend
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function __dm_suspend
___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, x4
	mov	x22, x3
	mov	x23, x2
	mov	x19, x1
	mov	x20, x0
	add	x0, x0, #16
Lloh0:
	adrp	x8, _DM_SUSPEND_LOCKFS_FLAG@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DM_SUSPEND_LOCKFS_FLAG@GOTPAGEOFF]
Lloh2:
	ldr	w24, [x8]
Lloh3:
	adrp	x8, _DM_SUSPEND_NOFLUSH_FLAG@GOTPAGE
Lloh4:
	ldr	x8, [x8, _DM_SUSPEND_NOFLUSH_FLAG@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	and	w25, w8, w2
	bl	_lockdep_assert_held
Lloh6:
	adrp	x26, _DMF_NOFLUSH_SUSPENDING@GOTPAGE
Lloh7:
	ldr	x26, [x26, _DMF_NOFLUSH_SUSPENDING@GOTPAGEOFF]
	cbz	w25, LBB0_15
; %bb.1:
	ldr	w0, [x26]
	add	x1, x20, #8
	bl	_set_bit
	mov	x0, x19
	bl	_dm_table_presuspend_targets
LBB0_2:
Lloh8:
	adrp	x8, _DMF_BLOCK_IO_FOR_SUSPEND@GOTPAGE
Lloh9:
	ldr	x8, [x8, _DMF_BLOCK_IO_FOR_SUSPEND@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
	add	x24, x20, #8
	mov	x1, x24
	bl	_set_bit
	cbz	x19, LBB0_4
; %bb.3:
	add	x0, x20, #4
	bl	_synchronize_srcu
LBB0_4:
	mov	x0, x20
	bl	_dm_request_based
	cbz	x0, LBB0_6
; %bb.5:
	ldr	w0, [x20]
	bl	_dm_stop_queue
LBB0_6:
	ldr	w0, [x20, #12]
	bl	_flush_workqueue
	mov	x0, x20
	mov	x1, x22
	bl	_dm_wait_for_completion
	mov	x23, x0
	cbz	w0, LBB0_19
; %bb.7:
	cbz	w25, LBB0_9
LBB0_8:
	ldr	w0, [x26]
	mov	x1, x24
	bl	_clear_bit
LBB0_9:
	cbz	x19, LBB0_11
; %bb.10:
	add	x0, x20, #4
	bl	_synchronize_srcu
LBB0_11:
	tbz	w23, #31, LBB0_18
; %bb.12:
	mov	x0, x20
	bl	_dm_queue_flush
	mov	x0, x20
	bl	_dm_request_based
	cbz	x0, LBB0_14
; %bb.13:
	ldr	w0, [x20]
	bl	_dm_start_queue
LBB0_14:
	mov	x0, x20
	bl	_unlock_fs
	b	LBB0_17
LBB0_15:
	and	w23, w24, w23
	mov	x0, x20
	bl	_dm_device_name
	mov	x1, x0
Lloh11:
	adrp	x0, l_.str@PAGE
Lloh12:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pr_debug
	mov	x0, x19
	bl	_dm_table_presuspend_targets
	cbz	w23, LBB0_2
; %bb.16:
	mov	x0, x20
	bl	_lock_fs
	mov	x23, x0
	cbz	w0, LBB0_2
LBB0_17:
	mov	x0, x19
	bl	_dm_table_presuspend_undo_targets
LBB0_18:
	mov	x0, x23
	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
LBB0_19:
	mov	x0, x21
	mov	x1, x24
	bl	_set_bit
	cbnz	w25, LBB0_8
	b	LBB0_9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.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	_DMF_NOFLUSH_SUSPENDING,4,2     ; @DMF_NOFLUSH_SUSPENDING
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s: suspending with flush\n"

	.comm	_DMF_BLOCK_IO_FOR_SUSPEND,4,2   ; @DMF_BLOCK_IO_FOR_SUSPEND
	.no_dead_strip	___dm_suspend
.subsections_via_symbols
