	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dm_swap_table                  ## -- Begin function dm_swap_table
	.p2align	4, 0x90
_dm_swap_table:                         ## @dm_swap_table
	.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	%rsi, %r14
	movq	%rdi, %r15
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%edi, %edi
	subl	(%rax), %edi
	callq	_ERR_PTR
	movq	%rax, %rbx
	movq	%r15, %rdi
	callq	_mutex_lock
	movq	%r15, %rdi
	callq	_dm_suspended_md
	testl	%eax, %eax
	je	LBB0_8
## %bb.1:
	movq	%r14, %rdi
	callq	_dm_table_has_no_data_devices
	testq	%rax, %rax
	je	LBB0_4
## %bb.2:
	movq	%r15, %rdi
	callq	_dm_get_live_table_fast
	testq	%rax, %rax
	je	LBB0_3
## %bb.6:
	movq	8(%r15), %rax
	movl	(%rax), %eax
	movl	%eax, -32(%rbp)
	movq	%r15, %rdi
	callq	_dm_put_live_table_fast
	jmp	LBB0_7
LBB0_3:
	movq	%r15, %rdi
	callq	_dm_put_live_table_fast
LBB0_4:
	leaq	-32(%rbp), %rsi
	movq	%r14, %rdi
	callq	_dm_calculate_queue_limits
	testl	%eax, %eax
	je	LBB0_7
## %bb.5:
	movl	%eax, %edi
	callq	_ERR_PTR
	movq	%rax, %rbx
	jmp	LBB0_8
LBB0_7:
	leaq	-32(%rbp), %rdx
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	___bind
	movq	%rax, %rbx
	xorl	%eax, %eax
	callq	_dm_issue_global_event
LBB0_8:
	movq	%r15, %rdi
	callq	_mutex_unlock
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dm_swap_table                  ; -- Begin function dm_swap_table
	.p2align	2
_dm_swap_table:                         ; @dm_swap_table
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w0, w8
	bl	_ERR_PTR
	mov	x21, x0
	mov	x0, x19
	bl	_mutex_lock
	mov	x0, x19
	bl	_dm_suspended_md
	cbz	w0, LBB0_8
; %bb.1:
	mov	x0, x20
	bl	_dm_table_has_no_data_devices
	cbz	x0, LBB0_5
; %bb.2:
	mov	x0, x19
	bl	_dm_get_live_table_fast
	cbz	x0, LBB0_4
; %bb.3:
	ldr	x8, [x19, #8]
	ldr	w8, [x8]
	str	w8, [sp, #8]
	mov	x0, x19
	bl	_dm_put_live_table_fast
	b	LBB0_7
LBB0_4:
	mov	x0, x19
	bl	_dm_put_live_table_fast
LBB0_5:
	add	x1, sp, #8
	mov	x0, x20
	bl	_dm_calculate_queue_limits
	cbz	w0, LBB0_7
; %bb.6:
	bl	_ERR_PTR
	mov	x21, x0
	b	LBB0_8
LBB0_7:
	add	x2, sp, #8
	mov	x0, x19
	mov	x1, x20
	bl	___bind
	mov	x21, x0
	bl	_dm_issue_global_event
LBB0_8:
	mov	x0, x19
	bl	_mutex_unlock
	mov	x0, x21
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
.subsections_via_symbols
