	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function merge_mode_and_contents
_merge_mode_and_contents:               ## @merge_mode_and_contents
	.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
	movq	%r8, -96(%rbp)                  ## 8-byte Spill
	movq	%rcx, %r14
	movq	%rsi, %r13
	movq	32(%rbp), %rsi
	movq	16(%rbp), %rax
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	movq	(%rdi), %r15
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rax, %r12
	movq	%r9, %rax
	movq	%r14, %rbx
	movq	%rdx, %r14
	movq	%rbx, %rdx
	movq	%r12, %r9
	cmpq	%rax, %r15
	jne	LBB0_1
## %bb.2:
	movabsq	$4294967296, %rax               ## imm = 0x100000000
	movq	%rax, (%rsi)
	movq	_S_IFMT@GOTPCREL(%rip), %rax
	movl	(%r14), %edi
	movl	(%rbx), %ecx
	xorl	%edi, %ecx
	testl	%ecx, (%rax)
	je	LBB0_7
## %bb.3:
	movl	$0, 4(%rsi)
	movq	%rsi, %r15
	callq	_S_ISREG
	testq	%rax, %rax
	je	LBB0_6
## %bb.4:
	movl	(%r14), %eax
	movl	%eax, 8(%r15)
	leaq	12(%r15), %rdi
	addq	$4, %r14
	movq	%r14, %rsi
	jmp	LBB0_5
LBB0_7:
	leaq	4(%r14), %rdi
	leaq	4(%r13), %rsi
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	movq	%rsi, -80(%rbp)                 ## 8-byte Spill
	callq	_oid_eq
	testq	%rax, %rax
	jne	LBB0_10
## %bb.8:
	leaq	4(%rbx), %rdi
	movq	-80(%rbp), %rsi                 ## 8-byte Reload
	callq	_oid_eq
	testq	%rax, %rax
	jne	LBB0_10
## %bb.9:
	movq	32(%rbp), %rax
	movl	$1, (%rax)
LBB0_10:
	movl	(%r14), %ecx
	movl	(%rbx), %eax
	cmpl	%eax, %ecx
	movq	%r13, -88(%rbp)                 ## 8-byte Spill
	je	LBB0_12
## %bb.11:
	movl	(%r13), %edx
	cmpl	%edx, %ecx
	jne	LBB0_13
LBB0_12:
	movq	32(%rbp), %rcx
	movl	%eax, 8(%rcx)
	movq	-48(%rbp), %r13                 ## 8-byte Reload
LBB0_15:
	leaq	4(%rbx), %rsi
	movq	%r13, %rdi
	movq	%rsi, -64(%rbp)                 ## 8-byte Spill
	callq	_oid_eq
	testq	%rax, %rax
	jne	LBB0_17
## %bb.16:
	movq	%r13, %rdi
	movq	-80(%rbp), %rsi                 ## 8-byte Reload
	callq	_oid_eq
	testq	%rax, %rax
	je	LBB0_19
LBB0_17:
	movq	32(%rbp), %rbx
	leaq	12(%rbx), %rdi
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
LBB0_18:
	callq	_oidcpy
	movq	%rbx, %rcx
	jmp	LBB0_41
LBB0_6:
	movl	(%rbx), %eax
	movl	%eax, 8(%r15)
	leaq	12(%r15), %rdi
	addq	$4, %rbx
	movq	%rbx, %rsi
LBB0_5:
	callq	_oidcpy
	movq	%r15, %rcx
LBB0_41:
	xorl	%ebx, %ebx
	cmpl	$0, (%rcx)
	je	LBB0_43
## %bb.42:
	leaq	L_.str.3(%rip), %rdi
	callq	__
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movl	$2, %esi
	movl	%eax, %edx
	movq	-96(%rbp), %rcx                 ## 8-byte Reload
	callq	_output
LBB0_43:
	movl	%ebx, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_13:
	movq	32(%rbp), %rsi
	movl	%ecx, 8(%rsi)
	cmpl	%edx, %eax
	movq	-48(%rbp), %r13                 ## 8-byte Reload
	je	LBB0_15
## %bb.14:
	movq	$1, (%rsi)
	jmp	LBB0_15
LBB0_19:
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movq	-80(%rbp), %r13                 ## 8-byte Reload
	movq	%r13, %rsi
	callq	_oid_eq
	testq	%rax, %rax
	je	LBB0_21
## %bb.20:
	movq	32(%rbp), %rbx
	leaq	12(%rbx), %rdi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	jmp	LBB0_18
LBB0_21:
	movl	(%r14), %edi
	callq	_S_ISREG
	testq	%rax, %rax
	je	LBB0_30
## %bb.22:
	leaq	-72(%rbp), %rsi
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	-88(%rbp), %rdx                 ## 8-byte Reload
	movq	%r14, %rcx
	movq	%rbx, %r8
	movq	%r15, %r9
	movl	24(%rbp), %eax
	pushq	%rax
	pushq	%r12
	callq	_merge_3way
	addq	$16, %rsp
	movl	%eax, %r15d
	testl	%eax, %eax
	js	LBB0_24
## %bb.23:
	movl	-72(%rbp), %edi
	testl	%edi, %edi
	jne	LBB0_25
LBB0_24:
	leaq	L_.str(%rip), %rdi
	callq	__
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movl	%eax, %esi
	xorl	%eax, %eax
	callq	_err
	movl	-72(%rbp), %edi
	testl	%eax, %eax
	je	LBB0_25
## %bb.29:
	movl	%eax, %ebx
	callq	_free
	jmp	LBB0_43
LBB0_25:
	movl	-68(%rbp), %esi
	movq	_blob_type@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	32(%rbp), %rax
	leaq	12(%rax), %rcx
	callq	_write_object_file
	testq	%rax, %rax
	je	LBB0_26
## %bb.27:
	leaq	L_.str.1(%rip), %rdi
	callq	__
	movl	8(%r14), %edx
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movl	%eax, %esi
	xorl	%eax, %eax
	callq	_err
	movl	%eax, %ebx
	movl	-72(%rbp), %edi
	callq	_free
	testl	%ebx, %ebx
	jne	LBB0_43
	jmp	LBB0_28
LBB0_30:
	movl	(%r14), %edi
	callq	_S_ISGITLINK
	testq	%rax, %rax
	movq	-88(%rbp), %rcx                 ## 8-byte Reload
	je	LBB0_32
## %bb.31:
	movq	32(%rbp), %rbx
	leaq	12(%rbx), %rsi
	movl	8(%rcx), %edx
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	%r13, %rcx
	movq	-48(%rbp), %r8                  ## 8-byte Reload
	movq	-64(%rbp), %r9                  ## 8-byte Reload
	callq	_merge_submodule
	movq	%rbx, %rcx
	movl	%eax, 4(%rbx)
	jmp	LBB0_41
LBB0_26:
	movl	-72(%rbp), %edi
	callq	_free
LBB0_28:
	xorl	%eax, %eax
	testl	%r15d, %r15d
	sete	%al
	movq	32(%rbp), %rcx
	movl	%eax, 4(%rcx)
	jmp	LBB0_41
LBB0_32:
	movl	(%r14), %edi
	callq	_S_ISLNK
	testq	%rax, %rax
	je	LBB0_39
## %bb.33:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	8(%rax), %eax
	cmpl	$128, %eax
	je	LBB0_17
## %bb.34:
	cmpl	$129, %eax
	movq	32(%rbp), %rcx
	movq	-64(%rbp), %r14                 ## 8-byte Reload
	je	LBB0_38
## %bb.35:
	cmpl	$130, %eax
	jne	LBB0_41
## %bb.36:
	leaq	12(%rcx), %rdi
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rsi
	callq	_oidcpy
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_oid_eq
	movq	32(%rbp), %rcx
	testq	%rax, %rax
	jne	LBB0_41
## %bb.37:
	movl	$0, 4(%rcx)
	jmp	LBB0_41
LBB0_39:
	leaq	L_.str.2(%rip), %rdi
	callq	_BUG
	jmp	LBB0_40
LBB0_38:
	leaq	12(%rcx), %rdi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	callq	_oidcpy
LBB0_40:
	movq	32(%rbp), %rcx
	jmp	LBB0_41
	.cfi_endproc
                                        ## -- End function
	.comm	_S_IFMT,4,2                     ## @S_IFMT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed to execute internal merge"

	.comm	_blob_type,4,2                  ## @blob_type
L_.str.1:                               ## @.str.1
	.asciz	"Unable to add %s to database"

L_.str.2:                               ## @.str.2
	.asciz	"unsupported object type in the tree"

L_.str.3:                               ## @.str.3
	.asciz	"Auto-merging %s"

	.no_dead_strip	_merge_mode_and_contents
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function merge_mode_and_contents
lCPI0_0:
	.long	0                               ; 0x0
	.long	1                               ; 0x1
lCPI0_1:
	.long	1                               ; 0x1
	.long	0                               ; 0x0
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_merge_mode_and_contents:               ; @merge_mode_and_contents
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x7
	mov	x28, x4
	mov	x21, x3
	mov	x23, x1
	mov	x20, x0
	ldr	x24, [x29, #16]
	ldr	x26, [x0]
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	mov	x27, x6
	mov	x6, x5
	mov	x25, x21
	mov	x21, x2
	mov	x2, x25
	mov	x5, x27
	cmp	x26, x6
	b.ne	LBB0_1
; %bb.2:
Lloh0:
	adrp	x8, lCPI0_0@PAGE
Lloh1:
	ldr	d0, [x8, lCPI0_0@PAGEOFF]
Lloh2:
	adrp	x8, _S_IFMT@GOTPAGE
Lloh3:
	ldr	x8, [x8, _S_IFMT@GOTPAGEOFF]
	str	d0, [x24]
Lloh4:
	ldr	w8, [x8]
	ldr	w0, [x21]
	ldr	w9, [x25]
	eor	w9, w9, w0
	tst	w9, w8
	b.eq	LBB0_5
; %bb.3:
	str	wzr, [x24, #4]
	bl	_S_ISREG
	cbz	x0, LBB0_16
; %bb.4:
	ldr	w8, [x21], #4
	str	w8, [x24, #8]
	add	x0, x24, #12
	mov	x1, x21
	b	LBB0_17
LBB0_5:
	str	x28, [sp, #16]                  ; 8-byte Folded Spill
	add	x22, x21, #4
	add	x28, x23, #4
	mov	x0, x22
	mov	x1, x28
	bl	_oid_eq
	cbnz	x0, LBB0_8
; %bb.6:
	add	x0, x25, #4
	mov	x1, x28
	bl	_oid_eq
	cbnz	x0, LBB0_8
; %bb.7:
	mov	w8, #1
	str	w8, [x24]
LBB0_8:
	ldr	w9, [x21]
	ldr	w8, [x25]
	cmp	w9, w8
	str	w19, [sp, #12]                  ; 4-byte Folded Spill
	b.eq	LBB0_10
; %bb.9:
	ldr	w10, [x23]
	cmp	w9, w10
	b.ne	LBB0_22
LBB0_10:
	str	w8, [x24, #8]
LBB0_11:
	add	x19, x25, #4
	mov	x0, x22
	mov	x1, x19
	bl	_oid_eq
	cbnz	x0, LBB0_13
; %bb.12:
	mov	x0, x22
	mov	x1, x28
	bl	_oid_eq
	cbz	x0, LBB0_24
LBB0_13:
	add	x0, x24, #12
	mov	x1, x19
LBB0_14:
	bl	_oidcpy
LBB0_15:
	ldr	x28, [sp, #16]                  ; 8-byte Folded Reload
	b	LBB0_18
LBB0_16:
	ldr	w8, [x25], #4
	str	w8, [x24, #8]
	add	x0, x24, #12
	mov	x1, x25
LBB0_17:
	bl	_oidcpy
LBB0_18:
	ldr	w8, [x24]
	cbz	w8, LBB0_20
; %bb.19:
Lloh5:
	adrp	x0, l_.str.3@PAGE
Lloh6:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	__
	mov	x2, x0
	mov	x0, x20
	mov	w1, #2
	mov	x3, x28
	bl	_output
LBB0_20:
	mov	w22, #0
LBB0_21:
	mov	x0, x22
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
LBB0_22:
	str	w9, [x24, #8]
	cmp	w8, w10
	b.eq	LBB0_11
; %bb.23:
Lloh7:
	adrp	x8, lCPI0_1@PAGE
Lloh8:
	ldr	d0, [x8, lCPI0_1@PAGEOFF]
	str	d0, [x24]
	b	LBB0_11
LBB0_24:
	mov	x0, x19
	mov	x1, x28
	bl	_oid_eq
	cbz	x0, LBB0_26
; %bb.25:
	add	x0, x24, #12
	mov	x1, x22
	b	LBB0_14
LBB0_26:
	ldr	w0, [x21]
	bl	_S_ISREG
	cbz	x0, LBB0_33
; %bb.27:
	add	x1, sp, #24
	mov	x0, x20
	mov	x2, x23
	mov	x3, x21
	mov	x4, x25
	mov	x5, x26
	mov	x6, x27
	ldr	w7, [sp, #12]                   ; 4-byte Folded Reload
	bl	_merge_3way
	mov	x19, x0
	ldr	x28, [sp, #16]                  ; 8-byte Folded Reload
	tbnz	w0, #31, LBB0_29
; %bb.28:
	ldr	w0, [sp, #24]
	cbnz	w0, LBB0_31
LBB0_29:
Lloh9:
	adrp	x0, l_.str@PAGE
Lloh10:
	add	x0, x0, l_.str@PAGEOFF
	bl	__
	mov	x1, x0
	mov	x0, x20
	bl	_err
	mov	x22, x0
	ldr	w0, [sp, #24]
	cbz	w22, LBB0_31
; %bb.30:
	bl	_free
	b	LBB0_21
LBB0_31:
	ldr	w1, [sp, #28]
Lloh11:
	adrp	x8, _blob_type@GOTPAGE
Lloh12:
	ldr	x8, [x8, _blob_type@GOTPAGEOFF]
Lloh13:
	ldr	w2, [x8]
	add	x3, x24, #12
	bl	_write_object_file
	cbz	x0, LBB0_35
; %bb.32:
Lloh14:
	adrp	x0, l_.str.1@PAGE
Lloh15:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	__
	mov	x1, x0
	ldr	w8, [x21, #8]
	str	x8, [sp]
	mov	x0, x20
	bl	_err
	mov	x22, x0
	ldr	w0, [sp, #24]
	bl	_free
	cbnz	w22, LBB0_21
	b	LBB0_36
LBB0_33:
	ldr	w0, [x21]
	bl	_S_ISGITLINK
	cbz	x0, LBB0_37
; %bb.34:
	add	x1, x24, #12
	ldr	w2, [x23, #8]
	mov	x0, x20
	mov	x3, x28
	mov	x4, x22
	mov	x5, x19
	bl	_merge_submodule
	str	w0, [x24, #4]
	b	LBB0_15
LBB0_35:
	ldr	w0, [sp, #24]
	bl	_free
LBB0_36:
	cmp	w19, #0
	cset	w8, eq
	str	w8, [x24, #4]
	b	LBB0_18
LBB0_37:
	ldr	w0, [x21]
	bl	_S_ISLNK
	cbz	x0, LBB0_43
; %bb.38:
	ldr	w8, [x20, #8]
	cmp	w8, #128
	ldr	x28, [sp, #16]                  ; 8-byte Folded Reload
	b.eq	LBB0_44
; %bb.39:
	cmp	w8, #129
	b.eq	LBB0_45
; %bb.40:
	cmp	w8, #130
	b.ne	LBB0_18
; %bb.41:
	add	x0, x24, #12
	mov	x1, x22
	bl	_oidcpy
	mov	x0, x22
	mov	x1, x19
	bl	_oid_eq
	cbnz	x0, LBB0_18
; %bb.42:
	str	wzr, [x24, #4]
	b	LBB0_18
LBB0_43:
Lloh16:
	adrp	x0, l_.str.2@PAGE
Lloh17:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_BUG
	b	LBB0_15
LBB0_44:
	add	x0, x24, #12
	mov	x1, x19
	b	LBB0_17
LBB0_45:
	add	x0, x24, #12
	mov	x1, x22
	b	LBB0_17
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdrp	Lloh0, Lloh2
	.loh AdrpLdr	Lloh0, Lloh1
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdr	Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_S_IFMT,4,2                     ; @S_IFMT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed to execute internal merge"

	.comm	_blob_type,4,2                  ; @blob_type
l_.str.1:                               ; @.str.1
	.asciz	"Unable to add %s to database"

l_.str.2:                               ; @.str.2
	.asciz	"unsupported object type in the tree"

l_.str.3:                               ; @.str.3
	.asciz	"Auto-merging %s"

	.no_dead_strip	_merge_mode_and_contents
.subsections_via_symbols
