	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function snapshot_map
_snapshot_map:                          ## @snapshot_map
	.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
	movq	%rsi, %rbx
	movq	(%rdi), %r15
	movq	_DM_MAPIO_REMAPPED@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	_BIO_FLUSH@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rsi)
	je	LBB0_2
## %bb.1:
	movq	32(%r15), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%rbx)
	jmp	LBB0_23
LBB0_2:
	movq	%rdx, %r13
	movq	16(%r15), %rdi
	movl	12(%rbx), %esi
	callq	_sector_to_chunk
	cmpl	$0, 28(%r15)
	je	LBB0_7
## %bb.3:
	movl	%eax, %r12d
	movq	%r15, %rdi
	callq	_down_write
	cmpl	$0, 28(%r15)
	je	LBB0_20
## %bb.4:
	leaq	24(%r15), %rdi
	movq	%rdi, -64(%rbp)                 ## 8-byte Spill
	movl	%r12d, %esi
	callq	_dm_lookup_exception
	testq	%rax, %rax
	je	LBB0_8
## %bb.5:
	movq	%r15, %rdi
	movq	%rax, %rsi
LBB0_6:
	movq	%rbx, %rdx
	movl	%r12d, %ecx
	callq	_remap_exception
	jmp	LBB0_22
LBB0_7:
	movq	_EIO@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
	jmp	LBB0_23
LBB0_8:
	movl	%r12d, -44(%rbp)                ## 4-byte Spill
	movq	%rbx, %rdi
	callq	_bio_rw
	movq	_WRITE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_13
## %bb.9:
	movq	%r15, %rdi
	movl	-44(%rbp), %r12d                ## 4-byte Reload
	movl	%r12d, %esi
	callq	___lookup_pending_exception
	movq	%rax, %r13
	testq	%rax, %rax
	je	LBB0_16
LBB0_10:
	leaq	8(%r13), %rsi
	movq	%r15, %rdi
	movq	%rbx, %rdx
	movl	%r12d, %ecx
	callq	_remap_exception
	movq	_DM_MAPIO_SUBMITTED@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	cmpl	$0, (%r13)
	jne	LBB0_14
## %bb.11:
	movq	16(%r15), %rax
	movl	(%rax), %eax
	movq	_SECTOR_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shll	%cl, %eax
	cmpl	%eax, 4(%rbx)
	jne	LBB0_14
## %bb.12:
	movl	$1, (%r13)
	movq	%r15, %rdi
	callq	_up_write
	movq	%r13, %rdi
	movq	%rbx, %rsi
	callq	_start_full_bio
	jmp	LBB0_23
LBB0_13:
	movq	8(%r15), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%rbx)
	movq	%r15, %rdi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	callq	_track_chunk
	movl	%eax, (%r13)
	jmp	LBB0_22
LBB0_14:
	leaq	4(%r13), %rdi
	movq	%rbx, %rsi
	callq	_bio_list_add
	cmpl	$0, (%r13)
	jne	LBB0_22
## %bb.15:
	movl	$1, (%r13)
	movq	%r15, %rdi
	callq	_up_write
	movq	%r13, %rdi
	callq	_start_copy
	jmp	LBB0_23
LBB0_16:
	movq	%r15, %rdi
	callq	_up_write
	movq	%r15, %rdi
	callq	_alloc_pending_exception
	movq	%rax, %r13
	movq	%r15, %rdi
	callq	_down_write
	cmpl	$0, 28(%r15)
	je	LBB0_19
## %bb.17:
	movq	%r13, -56(%rbp)                 ## 8-byte Spill
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movl	%r12d, %esi
	callq	_dm_lookup_exception
	testq	%rax, %rax
	je	LBB0_24
## %bb.18:
	movq	%rax, %r13
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_free_pending_exception
	movq	%r15, %rdi
	movq	%r13, %rsi
	jmp	LBB0_6
LBB0_19:
	movq	%r13, %rdi
	callq	_free_pending_exception
LBB0_20:
	movq	_EIO@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
LBB0_21:
	subl	(%rax), %r14d
LBB0_22:
	movq	%r15, %rdi
	callq	_up_write
LBB0_23:
	movl	%r14d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_24:
	movq	%r15, %rdi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	movl	%r12d, %edx
	callq	___find_pending_exception
	movq	%rax, %r13
	testq	%rax, %rax
	jne	LBB0_10
## %bb.25:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	xorl	%esi, %esi
	subl	(%rax), %esi
	movq	%r15, %rdi
	callq	___invalidate_snapshot
	movq	_EIO@GOTPCREL(%rip), %rax
	jmp	LBB0_21
	.cfi_endproc
                                        ## -- End function
	.comm	_DM_MAPIO_REMAPPED,4,2          ## @DM_MAPIO_REMAPPED
	.comm	_BIO_FLUSH,4,2                  ## @BIO_FLUSH
	.comm	_EIO,4,2                        ## @EIO
	.comm	_WRITE,8,3                      ## @WRITE
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_DM_MAPIO_SUBMITTED,4,2         ## @DM_MAPIO_SUBMITTED
	.comm	_SECTOR_SHIFT,4,2               ## @SECTOR_SHIFT
	.no_dead_strip	_snapshot_map
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function snapshot_map
_snapshot_map:                          ; @snapshot_map
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x21, x1
	ldr	x19, [x0]
Lloh0:
	adrp	x8, _DM_MAPIO_REMAPPED@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DM_MAPIO_REMAPPED@GOTPAGEOFF]
Lloh2:
	ldr	w20, [x8]
	ldr	w8, [x1]
Lloh3:
	adrp	x9, _BIO_FLUSH@GOTPAGE
Lloh4:
	ldr	x9, [x9, _BIO_FLUSH@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_2
; %bb.1:
	ldr	x8, [x19, #32]
	ldr	w8, [x8]
	str	w8, [x21, #8]
	b	LBB0_24
LBB0_2:
	mov	x23, x2
	ldr	x0, [x19, #16]
	ldr	w1, [x21, #12]
	bl	_sector_to_chunk
	ldr	w8, [x19, #28]
	cbz	w8, LBB0_7
; %bb.3:
	mov	x22, x0
	mov	x0, x19
	bl	_down_write
	ldr	w8, [x19, #28]
	cbz	w8, LBB0_22
; %bb.4:
	add	x24, x19, #24
	mov	x0, x24
	mov	x1, x22
	bl	_dm_lookup_exception
	cbz	x0, LBB0_8
; %bb.5:
	mov	x1, x0
	mov	x0, x19
LBB0_6:
	mov	x2, x21
	mov	x3, x22
	bl	_remap_exception
	b	LBB0_23
LBB0_7:
Lloh6:
	adrp	x8, _EIO@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	neg	w20, w8
	b	LBB0_24
LBB0_8:
	mov	x0, x21
	bl	_bio_rw
Lloh9:
	adrp	x8, _WRITE@GOTPAGE
Lloh10:
	ldr	x8, [x8, _WRITE@GOTPAGEOFF]
Lloh11:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_13
; %bb.9:
	mov	x0, x19
	mov	x1, x22
	bl	___lookup_pending_exception
	mov	x23, x0
	cbz	x0, LBB0_16
LBB0_10:
	add	x1, x23, #8
	mov	x0, x19
	mov	x2, x21
	mov	x3, x22
	bl	_remap_exception
Lloh12:
	adrp	x8, _DM_MAPIO_SUBMITTED@GOTPAGE
Lloh13:
	ldr	x8, [x8, _DM_MAPIO_SUBMITTED@GOTPAGEOFF]
Lloh14:
	ldr	w20, [x8]
	ldr	w8, [x23]
	cbnz	w8, LBB0_14
; %bb.11:
	ldr	w8, [x21, #4]
	ldr	x9, [x19, #16]
	ldr	w9, [x9]
Lloh15:
	adrp	x10, _SECTOR_SHIFT@GOTPAGE
Lloh16:
	ldr	x10, [x10, _SECTOR_SHIFT@GOTPAGEOFF]
Lloh17:
	ldr	w10, [x10]
	lsl	w9, w9, w10
	cmp	w8, w9
	b.ne	LBB0_14
; %bb.12:
	mov	w8, #1
	str	w8, [x23]
	mov	x0, x19
	bl	_up_write
	mov	x0, x23
	mov	x1, x21
	bl	_start_full_bio
	b	LBB0_24
LBB0_13:
	ldr	x8, [x19, #8]
	ldr	w8, [x8]
	str	w8, [x21, #8]
	mov	x0, x19
	mov	x1, x22
	bl	_track_chunk
	str	w0, [x23]
	b	LBB0_23
LBB0_14:
	add	x0, x23, #4
	mov	x1, x21
	bl	_bio_list_add
	ldr	w8, [x23]
	cbnz	w8, LBB0_23
; %bb.15:
	mov	w8, #1
	str	w8, [x23]
	mov	x0, x19
	bl	_up_write
	mov	x0, x23
	bl	_start_copy
	b	LBB0_24
LBB0_16:
	mov	x0, x19
	bl	_up_write
	mov	x0, x19
	bl	_alloc_pending_exception
	mov	x23, x0
	mov	x0, x19
	bl	_down_write
	ldr	w8, [x19, #28]
	cbz	w8, LBB0_19
; %bb.17:
	mov	x0, x24
	mov	x1, x22
	bl	_dm_lookup_exception
	cbz	x0, LBB0_20
; %bb.18:
	mov	x24, x0
	mov	x0, x23
	bl	_free_pending_exception
	mov	x0, x19
	mov	x1, x24
	b	LBB0_6
LBB0_19:
	mov	x0, x23
	bl	_free_pending_exception
	b	LBB0_22
LBB0_20:
	mov	x0, x19
	mov	x1, x23
	mov	x2, x22
	bl	___find_pending_exception
	mov	x23, x0
	cbnz	x0, LBB0_10
; %bb.21:
Lloh18:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh19:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	neg	w1, w8
	mov	x0, x19
	bl	___invalidate_snapshot
LBB0_22:
Lloh21:
	adrp	x8, _EIO@GOTPAGE
Lloh22:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh23:
	ldr	w8, [x8]
	neg	w20, w8
LBB0_23:
	mov	x0, x19
	bl	_up_write
LBB0_24:
	mov	x0, x20
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.comm	_DM_MAPIO_REMAPPED,4,2          ; @DM_MAPIO_REMAPPED
	.comm	_BIO_FLUSH,4,2                  ; @BIO_FLUSH
	.comm	_EIO,4,2                        ; @EIO
	.comm	_WRITE,8,3                      ; @WRITE
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_DM_MAPIO_SUBMITTED,4,2         ; @DM_MAPIO_SUBMITTED
	.comm	_SECTOR_SHIFT,4,2               ; @SECTOR_SHIFT
	.no_dead_strip	_snapshot_map
.subsections_via_symbols
