	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function merge_from_diffs
_merge_from_diffs:                      ## @merge_from_diffs
	.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	%r8, -64(%rbp)                  ## 8-byte Spill
	movq	%rcx, %r13
	movq	%rdx, %rbx
	movq	%rdx, -56(%rbp)                 ## 8-byte Spill
	movq	%rsi, %r12
	movq	%rdi, %r14
	movq	%rsi, %rdi
	callq	_oid_to_hex
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	%rbx, %rdi
	callq	_oid_to_hex
	movl	%eax, %r15d
	movq	%r13, %rdi
	callq	_oid_to_hex
	leaq	L_.str(%rip), %rdi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	movl	%r15d, %edx
	movl	%eax, %ecx
	callq	_trace_printf
	leaq	-48(%rbp), %r15
	movq	%r14, %rdi
	movq	%r12, %rsi
	movq	%r13, %rdx
	movq	%r15, %rcx
	callq	_diff_tree_remote
	movq	%rax, %rbx
	movl	-48(%rbp), %edx
	movq	%r14, %rdi
	movq	%rax, %rsi
	movq	%r12, %rcx
	movq	-64(%rbp), %r12                 ## 8-byte Reload
	movq	-56(%rbp), %r8                  ## 8-byte Reload
	callq	_diff_tree_local
	movq	%r14, %rdi
	movq	%rbx, %rsi
	movq	%r15, %rdx
	movq	%r12, %rcx
	callq	_merge_changes
	movl	%eax, %r15d
	movq	%rbx, %rdi
	callq	_free
	cmpl	$4, (%r14)
	jl	LBB0_2
## %bb.1:
	cmpq	$0, (%r12)
	leaq	L_.str.2(%rip), %rax
	leaq	L_.str.1(%rip), %rdi
	cmoveq	%rax, %rdi
	movl	%r15d, %esi
	callq	_printf
LBB0_2:
	xorl	%eax, %eax
	negl	%r15d
	sbbl	%eax, %eax
	orl	$1, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"\tmerge_from_diffs(base = %.7s, local = %.7s, remote = %.7s)\n"

L_.str.1:                               ## @.str.1
	.asciz	"Merge result: %i unmerged notes and a dirty notes tree\n"

L_.str.2:                               ## @.str.2
	.asciz	"Merge result: %i unmerged notes and a clean notes tree\n"

	.no_dead_strip	_merge_from_diffs
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function merge_from_diffs
_merge_from_diffs:                      ; @merge_from_diffs
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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, x4
	mov	x20, x3
	mov	x21, x2
	mov	x22, x1
	mov	x23, x0
	mov	x0, x1
	bl	_oid_to_hex
	mov	x24, x0
	mov	x0, x21
	bl	_oid_to_hex
	mov	x25, x0
	mov	x0, x20
	bl	_oid_to_hex
	mov	x3, x0
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x24
	mov	x2, x25
	bl	_trace_printf
	add	x3, sp, #12
	mov	x0, x23
	mov	x1, x22
	mov	x2, x20
	bl	_diff_tree_remote
	mov	x24, x0
	ldr	w2, [sp, #12]
	mov	x0, x23
	mov	x1, x24
	mov	x3, x22
	mov	x4, x21
	bl	_diff_tree_local
	add	x2, sp, #12
	mov	x0, x23
	mov	x1, x24
	mov	x3, x19
	bl	_merge_changes
	mov	x20, x0
	mov	x0, x24
	bl	_free
	ldr	w8, [x23]
	cmp	w8, #4
	b.lt	LBB0_2
; %bb.1:
	ldr	x8, [x19]
Lloh2:
	adrp	x9, l_.str.1@PAGE
Lloh3:
	add	x9, x9, l_.str.1@PAGEOFF
Lloh4:
	adrp	x10, l_.str.2@PAGE
Lloh5:
	add	x10, x10, l_.str.2@PAGEOFF
	cmp	x8, #0
	csel	x0, x10, x9, eq
	mov	x1, x20
	bl	_printf
LBB0_2:
	cmp	w20, #0
	mov	w8, #1
	cneg	w0, w8, ne
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"\tmerge_from_diffs(base = %.7s, local = %.7s, remote = %.7s)\n"

l_.str.1:                               ; @.str.1
	.asciz	"Merge result: %i unmerged notes and a dirty notes tree\n"

l_.str.2:                               ; @.str.2
	.asciz	"Merge result: %i unmerged notes and a clean notes tree\n"

	.no_dead_strip	_merge_from_diffs
.subsections_via_symbols
