	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function snapshot_merge_map
_snapshot_merge_map:                    ## @snapshot_merge_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	%rdx, %r13
	movq	%rsi, %rbx
	movq	(%rdi), %r14
	movq	_DM_MAPIO_REMAPPED@GOTPCREL(%rip), %rax
	movq	_BIO_FLUSH@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%rsi)
	je	LBB0_6
## %bb.1:
	cmpl	$0, (%r13)
	je	LBB0_2
## %bb.3:
	movq	48(%r14), %rcx
	jmp	LBB0_4
LBB0_6:
	movl	(%rax), %r15d
	movl	44(%r14), %edi
	movl	8(%rbx), %esi
	callq	_sector_to_chunk
	movq	%rax, %r12
	leaq	16(%r14), %rdi
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	callq	_down_write
	cmpl	$0, 40(%r14)
	je	LBB0_16
## %bb.7:
	leaq	36(%r14), %rdi
	movq	%r12, %rsi
	callq	_dm_lookup_exception
	testq	%rax, %rax
	je	LBB0_16
## %bb.8:
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rdi
	callq	_bio_rw
	movq	_WRITE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_12
## %bb.9:
	movq	(%r14), %rax
	cmpq	%rax, %r12
	jl	LBB0_12
## %bb.10:
	addq	8(%r14), %rax
	cmpq	%rax, %r12
	jge	LBB0_12
## %bb.11:
	movq	24(%r14), %rax
	movl	(%rax), %eax
	movl	%eax, 4(%rbx)
	addq	$32, %r14
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_bio_list_add
	movq	_DM_MAPIO_SUBMITTED@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	jmp	LBB0_14
LBB0_2:
	movq	24(%r14), %rcx
LBB0_4:
	movl	(%rcx), %ecx
	movl	%ecx, 4(%rbx)
	movq	$0, (%r13)
	movl	(%rax), %r15d
	jmp	LBB0_5
LBB0_16:
	movq	24(%r14), %rax
	movl	(%rax), %eax
	movl	%eax, 4(%rbx)
	movq	%rbx, %rdi
	callq	_bio_rw
	movq	_WRITE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	jne	LBB0_15
## %bb.17:
	callq	_up_write
	movq	24(%r14), %rdi
	movq	%rbx, %rsi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_do_origin                      ## TAILCALL
LBB0_12:
	movq	%r14, %rdi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	movq	%rbx, %rdx
	movq	%r12, %rcx
	callq	_remap_exception
	movq	%rbx, %rdi
	callq	_bio_rw
	movq	_WRITE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_14
## %bb.13:
	movq	%r14, %rdi
	movq	%r12, %rsi
	callq	_track_chunk
	movq	%rax, (%r13)
LBB0_14:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
LBB0_15:
	callq	_up_write
LBB0_5:
	movl	%r15d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DM_MAPIO_REMAPPED,4,2          ## @DM_MAPIO_REMAPPED
	.comm	_BIO_FLUSH,4,2                  ## @BIO_FLUSH
	.comm	_WRITE,8,3                      ## @WRITE
	.comm	_DM_MAPIO_SUBMITTED,4,2         ## @DM_MAPIO_SUBMITTED
	.no_dead_strip	_snapshot_merge_map
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function snapshot_merge_map
_snapshot_merge_map:                    ; @snapshot_merge_map
	.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	x23, x2
	mov	x19, x1
Lloh0:
	adrp	x8, _DM_MAPIO_REMAPPED@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DM_MAPIO_REMAPPED@GOTPAGEOFF]
	ldr	x21, [x0]
	ldr	w9, [x1]
Lloh2:
	adrp	x10, _BIO_FLUSH@GOTPAGE
Lloh3:
	ldr	x10, [x10, _BIO_FLUSH@GOTPAGEOFF]
Lloh4:
	ldr	w10, [x10]
	tst	w10, w9
	b.eq	LBB0_3
; %bb.1:
	ldr	w9, [x23]
	cbz	w9, LBB0_9
; %bb.2:
	ldr	x9, [x21, #48]
	b	LBB0_10
LBB0_3:
	ldr	w20, [x8]
	ldr	w0, [x21, #44]
	ldr	w1, [x19, #8]
	bl	_sector_to_chunk
	mov	x24, x0
	add	x22, x21, #16
	mov	x0, x22
	bl	_down_write
	ldr	w8, [x21, #40]
	cbz	w8, LBB0_11
; %bb.4:
	add	x0, x21, #36
	mov	x1, x24
	bl	_dm_lookup_exception
	cbz	x0, LBB0_11
; %bb.5:
	mov	x25, x0
	mov	x0, x19
	bl	_bio_rw
Lloh5:
	adrp	x26, _WRITE@GOTPAGE
Lloh6:
	ldr	x26, [x26, _WRITE@GOTPAGEOFF]
	ldr	x8, [x26]
	cmp	x0, x8
	b.ne	LBB0_13
; %bb.6:
	ldr	x8, [x21]
	cmp	x24, x8
	b.lt	LBB0_13
; %bb.7:
	ldr	x9, [x21, #8]
	add	x8, x9, x8
	cmp	x24, x8
	b.ge	LBB0_13
; %bb.8:
	ldr	x8, [x21, #24]
	ldr	w8, [x8]
	str	w8, [x19, #4]
	add	x0, x21, #32
	mov	x1, x19
	bl	_bio_list_add
Lloh7:
	adrp	x8, _DM_MAPIO_SUBMITTED@GOTPAGE
Lloh8:
	ldr	x8, [x8, _DM_MAPIO_SUBMITTED@GOTPAGEOFF]
Lloh9:
	ldr	w20, [x8]
	b	LBB0_15
LBB0_9:
	ldr	x9, [x21, #24]
LBB0_10:
	ldr	w9, [x9]
	str	w9, [x19, #4]
	str	xzr, [x23]
	ldr	w20, [x8]
	b	LBB0_16
LBB0_11:
	ldr	x8, [x21, #24]
	ldr	w8, [x8]
	str	w8, [x19, #4]
	mov	x0, x19
	bl	_bio_rw
Lloh10:
	adrp	x8, _WRITE@GOTPAGE
Lloh11:
	ldr	x8, [x8, _WRITE@GOTPAGEOFF]
Lloh12:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_15
; %bb.12:
	mov	x0, x22
	bl	_up_write
	ldr	x0, [x21, #24]
	mov	x1, x19
	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
	b	_do_origin
LBB0_13:
	mov	x0, x21
	mov	x1, x25
	mov	x2, x19
	mov	x3, x24
	bl	_remap_exception
	mov	x0, x19
	bl	_bio_rw
	ldr	x8, [x26]
	cmp	x0, x8
	b.ne	LBB0_15
; %bb.14:
	mov	x0, x21
	mov	x1, x24
	bl	_track_chunk
	str	x0, [x23]
LBB0_15:
	mov	x0, x22
	bl	_up_write
LBB0_16:
	mov	x0, x20
	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	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_DM_MAPIO_REMAPPED,4,2          ; @DM_MAPIO_REMAPPED
	.comm	_BIO_FLUSH,4,2                  ; @BIO_FLUSH
	.comm	_WRITE,8,3                      ; @WRITE
	.comm	_DM_MAPIO_SUBMITTED,4,2         ; @DM_MAPIO_SUBMITTED
	.no_dead_strip	_snapshot_merge_map
.subsections_via_symbols
