	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_oneway_merge                   ## -- Begin function oneway_merge
	.p2align	4, 0x90
_oneway_merge:                          ## @oneway_merge
	.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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r12
	movl	(%rsi), %esi
	cmpl	$1, %esi
	jne	LBB0_20
## %bb.1:
	movq	(%rdi), %r14
	movq	8(%rdi), %rbx
	testq	%rbx, %rbx
	je	LBB0_21
## %bb.2:
	cmpq	32(%r12), %rbx
	je	LBB0_21
## %bb.3:
	testq	%r14, %r14
	je	LBB0_19
## %bb.4:
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_same
	testq	%rax, %rax
	je	LBB0_19
## %bb.5:
	xorl	%r15d, %r15d
	cmpq	$0, 24(%r12)
	je	LBB0_13
## %bb.6:
	cmpq	$0, 8(%r12)
	je	LBB0_13
## %bb.7:
	movq	%r14, %rdi
	callq	_ce_uptodate
	testl	%eax, %eax
	jne	LBB0_13
## %bb.8:
	movq	%r14, %rdi
	callq	_ce_skip_worktree
	testl	%eax, %eax
	jne	LBB0_13
## %bb.9:
	movl	4(%r14), %edi
	leaq	-40(%rbp), %rsi
	callq	_lstat
	testq	%rax, %rax
	jne	LBB0_12
## %bb.10:
	movl	16(%r12), %edi
	movq	_CE_MATCH_IGNORE_VALID@GOTPCREL(%rip), %rax
	movq	_CE_MATCH_IGNORE_SKIP_WORKTREE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	leaq	-40(%rbp), %rdx
	movq	%r14, %rsi
	callq	_ie_match_stat
	testq	%rax, %rax
	je	LBB0_11
LBB0_12:
	movq	_CE_UPDATE@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
LBB0_13:
	cmpq	$0, 8(%r12)
	je	LBB0_18
LBB0_14:
	movl	(%r14), %edi
	callq	_S_ISGITLINK
	testq	%rax, %rax
	je	LBB0_18
## %bb.15:
	xorl	%eax, %eax
	callq	_should_update_submodules
	testq	%rax, %rax
	je	LBB0_18
## %bb.16:
	movq	%r14, %rdi
	movq	%r12, %rsi
	callq	_verify_uptodate
	testl	%eax, %eax
	jne	LBB0_18
## %bb.17:
	movq	_CE_UPDATE@GOTPCREL(%rip), %rax
	orl	(%rax), %r15d
LBB0_18:
	movq	_CE_STAGEMASK@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r12, %rdi
	movq	%r14, %rsi
	movl	%r15d, %edx
	callq	_add_entry
	xorl	%eax, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_20:
	leaq	L_.str(%rip), %rdi
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_error                          ## TAILCALL
LBB0_21:
	movq	%r14, %rdi
	movq	%r14, %rsi
	movq	%r12, %rdx
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_deleted_entry                  ## TAILCALL
LBB0_19:
	movq	%rbx, %rdi
	movq	%r14, %rsi
	movq	%r12, %rdx
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_merged_entry                   ## TAILCALL
LBB0_11:
	xorl	%r15d, %r15d
	cmpq	$0, 8(%r12)
	jne	LBB0_14
	jmp	LBB0_18
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Cannot do a oneway merge of %d trees"

	.comm	_CE_MATCH_IGNORE_VALID,4,2      ## @CE_MATCH_IGNORE_VALID
	.comm	_CE_MATCH_IGNORE_SKIP_WORKTREE,4,2 ## @CE_MATCH_IGNORE_SKIP_WORKTREE
	.comm	_CE_UPDATE,4,2                  ## @CE_UPDATE
	.comm	_CE_STAGEMASK,4,2               ## @CE_STAGEMASK
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_oneway_merge                   ; -- Begin function oneway_merge
	.p2align	2
_oneway_merge:                          ; @oneway_merge
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x19, x1
	ldr	w1, [x1]
	cmp	w1, #1
	b.ne	LBB0_15
; %bb.1:
	ldp	x20, x21, [x0]
	cbz	x21, LBB0_16
; %bb.2:
	ldr	x8, [x19, #32]
	cmp	x21, x8
	b.eq	LBB0_16
; %bb.3:
	cbz	x20, LBB0_17
; %bb.4:
	mov	x0, x20
	mov	x1, x21
	bl	_same
	cbz	x0, LBB0_17
; %bb.5:
	ldr	x8, [x19, #24]
	cbz	x8, LBB0_9
; %bb.6:
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_9
; %bb.7:
	mov	x0, x20
	bl	_ce_uptodate
	cbnz	w0, LBB0_9
; %bb.8:
	mov	x0, x20
	bl	_ce_skip_worktree
	cbz	w0, LBB0_18
LBB0_9:
	mov	w21, #0
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_14
LBB0_10:
	ldr	w0, [x20]
	bl	_S_ISGITLINK
	cbz	x0, LBB0_14
; %bb.11:
	bl	_should_update_submodules
	cbz	x0, LBB0_14
; %bb.12:
	mov	x0, x20
	mov	x1, x19
	bl	_verify_uptodate
	cbnz	w0, LBB0_14
; %bb.13:
Lloh0:
	adrp	x8, _CE_UPDATE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CE_UPDATE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	orr	w21, w8, w21
LBB0_14:
Lloh3:
	adrp	x8, _CE_STAGEMASK@GOTPAGE
Lloh4:
	ldr	x8, [x8, _CE_STAGEMASK@GOTPAGEOFF]
Lloh5:
	ldr	w3, [x8]
	mov	x0, x19
	mov	x1, x20
	mov	x2, x21
	bl	_add_entry
	mov	w0, #0
	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
	add	sp, sp, #64
	ret
LBB0_15:
Lloh6:
	adrp	x0, l_.str@PAGE
Lloh7:
	add	x0, x0, l_.str@PAGEOFF
	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
	add	sp, sp, #64
	b	_error
LBB0_16:
	mov	x0, x20
	mov	x1, x20
	mov	x2, x19
	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
	add	sp, sp, #64
	b	_deleted_entry
LBB0_17:
	mov	x0, x21
	mov	x1, x20
	mov	x2, x19
	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
	add	sp, sp, #64
	b	_merged_entry
LBB0_18:
	ldr	w0, [x20, #4]
	add	x1, sp, #8
	bl	_lstat
	cbnz	x0, LBB0_20
; %bb.19:
Lloh8:
	adrp	x8, _CE_MATCH_IGNORE_VALID@GOTPAGE
Lloh9:
	ldr	x8, [x8, _CE_MATCH_IGNORE_VALID@GOTPAGEOFF]
	ldr	w0, [x19, #16]
Lloh10:
	ldr	w8, [x8]
Lloh11:
	adrp	x9, _CE_MATCH_IGNORE_SKIP_WORKTREE@GOTPAGE
Lloh12:
	ldr	x9, [x9, _CE_MATCH_IGNORE_SKIP_WORKTREE@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
	orr	w3, w9, w8
	add	x2, sp, #8
	mov	x1, x20
	bl	_ie_match_stat
	cbz	x0, LBB0_9
LBB0_20:
Lloh14:
	adrp	x8, _CE_UPDATE@GOTPAGE
Lloh15:
	ldr	x8, [x8, _CE_UPDATE@GOTPAGEOFF]
Lloh16:
	ldr	w21, [x8]
	ldr	x8, [x19, #8]
	cbnz	x8, LBB0_10
	b	LBB0_14
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Cannot do a oneway merge of %d trees"

	.comm	_CE_MATCH_IGNORE_VALID,4,2      ; @CE_MATCH_IGNORE_VALID
	.comm	_CE_MATCH_IGNORE_SKIP_WORKTREE,4,2 ; @CE_MATCH_IGNORE_SKIP_WORKTREE
	.comm	_CE_UPDATE,4,2                  ; @CE_UPDATE
	.comm	_CE_STAGEMASK,4,2               ; @CE_STAGEMASK
.subsections_via_symbols
