	.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
	pushq	%rax
	.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), %r14
	movq	_DM_MAPIO_REMAPPED@GOTPCREL(%rip), %r12
	movl	(%r12), %r15d
	movq	%rsi, %rdi
	callq	_init_tracked_chunk
	movq	_REQ_PREFLUSH@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rbx)
	je	LBB0_6
## %bb.1:
	movq	%rbx, %rdi
	callq	_dm_bio_get_target_bio_nr
	testl	%eax, %eax
	je	LBB0_2
## %bb.3:
	movq	48(%r14), %rax
	jmp	LBB0_4
LBB0_6:
	movq	%rbx, %rdi
	callq	_bio_op
	movq	_REQ_OP_DISCARD@GOTPCREL(%rip), %rcx
	xorl	%edi, %edi
	cmpq	(%rcx), %rax
	sete	%dil
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_8
## %bb.7:
	movq	%rbx, %rdi
	callq	_bio_endio
	movq	_DM_MAPIO_SUBMITTED@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	jmp	LBB0_5
LBB0_2:
	movq	24(%r14), %rax
LBB0_4:
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_bio_set_dev
	movl	(%r12), %r15d
LBB0_5:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	movl	44(%r14), %edi
	movl	4(%rbx), %esi
	callq	_sector_to_chunk
	movq	%rax, %r13
	leaq	16(%r14), %rdi
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	callq	_down_write
	cmpl	$0, 40(%r14)
	je	LBB0_18
## %bb.9:
	leaq	36(%r14), %rdi
	movq	%r13, %rsi
	callq	_dm_lookup_exception
	testq	%rax, %rax
	je	LBB0_18
## %bb.10:
	movq	%rax, %r12
	movq	%rbx, %rdi
	callq	_bio_data_dir
	movq	_WRITE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_14
## %bb.11:
	movq	(%r14), %rax
	cmpq	%rax, %r13
	jl	LBB0_14
## %bb.12:
	addq	8(%r14), %rax
	cmpq	%rax, %r13
	jge	LBB0_14
## %bb.13:
	movq	24(%r14), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_bio_set_dev
	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_16
LBB0_18:
	movq	24(%r14), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_bio_set_dev
	movq	%rbx, %rdi
	callq	_bio_data_dir
	movq	_WRITE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	jne	LBB0_17
## %bb.19:
	callq	_up_write
	movq	24(%r14), %rdi
	movq	%rbx, %rsi
	xorl	%edx, %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_do_origin                      ## TAILCALL
LBB0_14:
	movq	%r14, %rdi
	movq	%r12, %rsi
	movq	%rbx, %rdx
	movq	%rcx, %r12
	movq	%r13, %rcx
	callq	_remap_exception
	movq	%rbx, %rdi
	callq	_bio_data_dir
	cmpq	(%r12), %rax
	jne	LBB0_16
## %bb.15:
	movq	%r14, %rdi
	movq	%rbx, %rsi
	movq	%r13, %rdx
	callq	_track_chunk
LBB0_16:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
LBB0_17:
	callq	_up_write
	jmp	LBB0_5
	.cfi_endproc
                                        ## -- End function
	.comm	_DM_MAPIO_REMAPPED,4,2          ## @DM_MAPIO_REMAPPED
	.comm	_REQ_PREFLUSH,4,2               ## @REQ_PREFLUSH
	.comm	_REQ_OP_DISCARD,8,3             ## @REQ_OP_DISCARD
	.comm	_DM_MAPIO_SUBMITTED,4,2         ## @DM_MAPIO_SUBMITTED
	.comm	_WRITE,8,3                      ## @WRITE
	.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	x19, x1
	ldr	x21, [x0]
Lloh0:
	adrp	x22, _DM_MAPIO_REMAPPED@GOTPAGE
Lloh1:
	ldr	x22, [x22, _DM_MAPIO_REMAPPED@GOTPAGEOFF]
	ldr	w20, [x22]
	mov	x0, x1
	bl	_init_tracked_chunk
	ldr	w8, [x19]
Lloh2:
	adrp	x9, _REQ_PREFLUSH@GOTPAGE
Lloh3:
	ldr	x9, [x9, _REQ_PREFLUSH@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x9]
	mov	x0, x19
	tst	w9, w8
	b.eq	LBB0_3
; %bb.1:
	bl	_dm_bio_get_target_bio_nr
	cbz	w0, LBB0_5
; %bb.2:
	ldr	x8, [x21, #48]
	b	LBB0_6
LBB0_3:
	bl	_bio_op
Lloh5:
	adrp	x8, _REQ_OP_DISCARD@GOTPAGE
Lloh6:
	ldr	x8, [x8, _REQ_OP_DISCARD@GOTPAGEOFF]
Lloh7:
	ldr	x8, [x8]
	cmp	x0, x8
	cset	w0, eq
	bl	_unlikely
	cbz	x0, LBB0_8
; %bb.4:
	mov	x0, x19
	bl	_bio_endio
Lloh8:
	adrp	x8, _DM_MAPIO_SUBMITTED@GOTPAGE
Lloh9:
	ldr	x8, [x8, _DM_MAPIO_SUBMITTED@GOTPAGEOFF]
Lloh10:
	ldr	w20, [x8]
	b	LBB0_7
LBB0_5:
	ldr	x8, [x21, #24]
LBB0_6:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_bio_set_dev
	ldr	w20, [x22]
LBB0_7:
	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
LBB0_8:
	ldr	w0, [x21, #44]
	ldr	w1, [x19, #4]
	bl	_sector_to_chunk
	mov	x23, x0
	add	x22, x21, #16
	mov	x0, x22
	bl	_down_write
	ldr	w8, [x21, #40]
	cbz	w8, LBB0_14
; %bb.9:
	add	x0, x21, #36
	mov	x1, x23
	bl	_dm_lookup_exception
	cbz	x0, LBB0_14
; %bb.10:
	mov	x24, x0
	mov	x0, x19
	bl	_bio_data_dir
Lloh11:
	adrp	x25, _WRITE@GOTPAGE
Lloh12:
	ldr	x25, [x25, _WRITE@GOTPAGEOFF]
	ldr	x8, [x25]
	cmp	x0, x8
	b.ne	LBB0_16
; %bb.11:
	ldr	x8, [x21]
	cmp	x23, x8
	b.lt	LBB0_16
; %bb.12:
	ldr	x9, [x21, #8]
	add	x8, x9, x8
	cmp	x23, x8
	b.ge	LBB0_16
; %bb.13:
	ldr	x8, [x21, #24]
	ldr	w1, [x8]
	mov	x0, x19
	bl	_bio_set_dev
	add	x0, x21, #32
	mov	x1, x19
	bl	_bio_list_add
Lloh13:
	adrp	x8, _DM_MAPIO_SUBMITTED@GOTPAGE
Lloh14:
	ldr	x8, [x8, _DM_MAPIO_SUBMITTED@GOTPAGEOFF]
Lloh15:
	ldr	w20, [x8]
	b	LBB0_18
LBB0_14:
	ldr	x8, [x21, #24]
	ldr	w1, [x8]
	mov	x0, x19
	bl	_bio_set_dev
	mov	x0, x19
	bl	_bio_data_dir
Lloh16:
	adrp	x8, _WRITE@GOTPAGE
Lloh17:
	ldr	x8, [x8, _WRITE@GOTPAGEOFF]
Lloh18:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_18
; %bb.15:
	mov	x0, x22
	bl	_up_write
	ldr	x0, [x21, #24]
	mov	x1, x19
	mov	w2, #0
	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_16:
	mov	x0, x21
	mov	x1, x24
	mov	x2, x19
	mov	x3, x23
	bl	_remap_exception
	mov	x0, x19
	bl	_bio_data_dir
	ldr	x8, [x25]
	cmp	x0, x8
	b.ne	LBB0_18
; %bb.17:
	mov	x0, x21
	mov	x1, x19
	mov	x2, x23
	bl	_track_chunk
LBB0_18:
	mov	x0, x22
	bl	_up_write
	b	LBB0_7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_DM_MAPIO_REMAPPED,4,2          ; @DM_MAPIO_REMAPPED
	.comm	_REQ_PREFLUSH,4,2               ; @REQ_PREFLUSH
	.comm	_REQ_OP_DISCARD,8,3             ; @REQ_OP_DISCARD
	.comm	_DM_MAPIO_SUBMITTED,4,2         ; @DM_MAPIO_SUBMITTED
	.comm	_WRITE,8,3                      ; @WRITE
	.no_dead_strip	_snapshot_merge_map
.subsections_via_symbols
