	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function __create_snap
___create_snap:                         ## @__create_snap
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r14d
	movl	%esi, %r13d
	movq	%rdi, %r15
	movl	%edx, -44(%rbp)
	movl	%esi, -60(%rbp)
	leaq	4(%rdi), %rbx
	movl	(%rdi), %esi
	leaq	-60(%rbp), %rdx
	leaq	-88(%rbp), %rcx
	movq	%rbx, %rdi
	callq	_dm_btree_lookup
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	movl	%r14d, -56(%rbp)                ## 4-byte Spill
	movq	%rbx, -80(%rbp)                 ## 8-byte Spill
	leaq	12(%r15), %r14
	movl	8(%r15), %esi
	leaq	-44(%rbp), %rdx
	leaq	-48(%rbp), %rcx
	movq	%r14, %rdi
	callq	_dm_btree_lookup
	movl	%eax, %r12d
	testl	%eax, %eax
	jne	LBB0_9
## %bb.3:
	leaq	8(%r15), %r12
	movl	-48(%rbp), %edi
	callq	_le64_to_cpu
	movl	%eax, %ebx
	movl	20(%r15), %edi
	movl	%eax, %esi
	callq	_dm_tm_inc
	movl	%ebx, -52(%rbp)                 ## 4-byte Spill
	movl	%ebx, %edi
	callq	_cpu_to_le64
	movl	%eax, -48(%rbp)
	leaq	-48(%rbp), %rbx
	movq	%rbx, %rdi
	callq	___dm_bless_for_disk
	movl	%r13d, -44(%rbp)
	movl	8(%r15), %esi
	leaq	-44(%rbp), %rdx
	movq	%r14, %rdi
	movq	%rbx, %rcx
	movq	%r12, %rbx
	movq	%r12, %r8
	callq	_dm_btree_insert
	testl	%eax, %eax
	je	LBB0_5
## %bb.4:
	movl	%eax, %r12d
	movl	20(%r15), %edi
	movl	-52(%rbp), %esi                 ## 4-byte Reload
	callq	_dm_tm_dec
	jmp	LBB0_9
LBB0_1:
	movq	_EEXIST@GOTPCREL(%rip), %rax
	xorl	%r12d, %r12d
	subl	(%rax), %r12d
LBB0_9:
	movl	%r12d, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	incl	16(%r15)
	leaq	-72(%rbp), %rcx
	movq	%r15, %rdi
	movl	%r13d, %esi
	movl	$1, %edx
	callq	___open_device
	movl	%eax, %r12d
	testl	%eax, %eax
	jne	LBB0_8
## %bb.6:
	movq	-72(%rbp), %rsi
	movl	16(%r15), %ecx
	movq	%r15, %rdi
	movl	-56(%rbp), %edx                 ## 4-byte Reload
	callq	___set_snapshot_details
	movl	%eax, %r12d
	movq	-72(%rbp), %rdi
	callq	___close_device
	testl	%r12d, %r12d
	je	LBB0_7
LBB0_8:
	movl	8(%r15), %esi
	movq	%rbx, %rcx
	leaq	-44(%rbp), %rbx
	movq	%r14, %rdi
	movq	%rbx, %rdx
	callq	_dm_btree_remove
	movl	(%r15), %esi
	movq	-80(%rbp), %rdi                 ## 8-byte Reload
	movq	%rbx, %rdx
	movq	%r15, %rcx
	callq	_dm_btree_remove
	jmp	LBB0_9
LBB0_7:
	xorl	%r12d, %r12d
	jmp	LBB0_9
	.cfi_endproc
                                        ## -- End function
	.comm	_EEXIST,4,2                     ## @EEXIST
	.no_dead_strip	___create_snap
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function __create_snap
___create_snap:                         ; @__create_snap
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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	x22, x2
	mov	x24, x1
	mov	x19, x0
	stp	w1, w2, [sp, #24]
	mov	x20, x0
	ldr	w1, [x20], #4
	add	x2, sp, #24
	add	x3, sp, #8
	mov	x0, x20
	bl	_dm_btree_lookup
	cbz	w0, LBB0_4
; %bb.1:
	mov	x21, x19
	ldr	w1, [x21, #8]!
	add	x23, x21, #4
	add	x2, sp, #28
	mov	x3, sp
	mov	x0, x23
	bl	_dm_btree_lookup
	mov	x25, x0
	cbnz	w0, LBB0_5
; %bb.2:
	ldr	w0, [sp]
	bl	_le64_to_cpu
	mov	x26, x0
	ldr	w0, [x19, #20]
	mov	x1, x26
	bl	_dm_tm_inc
	mov	x0, x26
	bl	_cpu_to_le64
	str	w0, [sp]
	mov	x0, sp
	bl	___dm_bless_for_disk
	str	w24, [sp, #28]
	ldr	w1, [x19, #8]
	add	x2, sp, #28
	mov	x3, sp
	mov	x0, x23
	mov	x4, x21
	bl	_dm_btree_insert
	cbz	w0, LBB0_6
; %bb.3:
	mov	x25, x0
	ldr	w0, [x19, #20]
	mov	x1, x26
	bl	_dm_tm_dec
	b	LBB0_5
LBB0_4:
Lloh0:
	adrp	x8, _EEXIST@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EEXIST@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w25, w8
LBB0_5:
	mov	x0, x25
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_6:
	ldr	w8, [x19, #16]
	add	w8, w8, #1
	str	w8, [x19, #16]
	add	x3, sp, #16
	mov	x0, x19
	mov	x1, x24
	mov	w2, #1
	bl	___open_device
	mov	x25, x0
	cbnz	w0, LBB0_8
; %bb.7:
	ldr	x1, [sp, #16]
	ldr	w3, [x19, #16]
	mov	x0, x19
	mov	x2, x22
	bl	___set_snapshot_details
	mov	x25, x0
	ldr	x0, [sp, #16]
	bl	___close_device
	cbz	w25, LBB0_5
LBB0_8:
	ldr	w1, [x19, #8]
	add	x2, sp, #28
	mov	x0, x23
	mov	x3, x21
	bl	_dm_btree_remove
	ldr	w1, [x19]
	add	x2, sp, #28
	mov	x0, x20
	mov	x3, x19
	bl	_dm_btree_remove
	b	LBB0_5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_EEXIST,4,2                     ; @EEXIST
	.no_dead_strip	___create_snap
.subsections_via_symbols
