	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function write_merge_heads
_write_merge_heads:                     ## @write_merge_heads
	.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	_STRBUF_INIT@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -40(%rbp)
	testq	%rdi, %rdi
	je	LBB0_6
## %bb.1:
	movq	%rdi, %rbx
	leaq	L_.str(%rip), %r14
	leaq	-40(%rbp), %r15
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	%r12, %rdi
	callq	_oid_to_hex
	movq	%r15, %rdi
	movq	%r14, %rsi
	movl	%eax, %edx
	callq	_strbuf_addf
	movq	8(%rbx), %rbx
	testq	%rbx, %rbx
	je	LBB0_6
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%rbx), %r12
	movq	%r12, %rdi
	callq	_merge_remote_util
	testq	%rax, %rax
	je	LBB0_5
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	(%rax), %rax
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%rax, %r12
	jmp	LBB0_5
LBB0_6:
	movq	_the_repository@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	callq	_git_path_merge_head
	movl	-40(%rbp), %edx
	movl	-36(%rbp), %esi
	movl	%eax, %edi
	callq	_write_file_buf
	leaq	-40(%rbp), %rdi
	callq	_strbuf_reset
	movq	_fast_forward@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_FF_NO@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_8
## %bb.7:
	leaq	L_.str.1(%rip), %rsi
	leaq	-40(%rbp), %rdi
	callq	_strbuf_addstr
LBB0_8:
	movl	(%rbx), %edi
	callq	_git_path_merge_mode
	movl	-40(%rbp), %edx
	movl	-36(%rbp), %esi
	movl	%eax, %edi
	callq	_write_file_buf
	leaq	-40(%rbp), %rdi
	callq	_strbuf_release
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_STRBUF_INIT,8,2                ## @STRBUF_INIT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s\n"

	.comm	_the_repository,4,2             ## @the_repository
	.comm	_fast_forward,8,3               ## @fast_forward
	.comm	_FF_NO,8,3                      ## @FF_NO
L_.str.1:                               ## @.str.1
	.asciz	"no-ff"

	.no_dead_strip	_write_merge_heads
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function write_merge_heads
_write_merge_heads:                     ; @write_merge_heads
	.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
Lloh0:
	adrp	x8, _STRBUF_INIT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _STRBUF_INIT@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #8]
	cbz	x0, LBB0_6
; %bb.1:
	mov	x19, x0
Lloh3:
	adrp	x20, l_.str@PAGE
Lloh4:
	add	x20, x20, l_.str@PAGEOFF
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x21
	bl	_oid_to_hex
	mov	x2, x0
	add	x0, sp, #8
	mov	x1, x20
	bl	_strbuf_addf
	ldr	x19, [x19, #8]
	cbz	x19, LBB0_6
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x21, [x19]
	mov	x0, x21
	bl	_merge_remote_util
	cbz	x0, LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x0]
	cbz	x8, LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x21, x8
	b	LBB0_2
LBB0_6:
Lloh5:
	adrp	x19, _the_repository@GOTPAGE
Lloh6:
	ldr	x19, [x19, _the_repository@GOTPAGEOFF]
	ldr	w0, [x19]
	bl	_git_path_merge_head
	ldp	w2, w1, [sp, #8]
	bl	_write_file_buf
	add	x0, sp, #8
	bl	_strbuf_reset
Lloh7:
	adrp	x8, _fast_forward@GOTPAGE
Lloh8:
	ldr	x8, [x8, _fast_forward@GOTPAGEOFF]
Lloh9:
	ldr	x8, [x8]
Lloh10:
	adrp	x9, _FF_NO@GOTPAGE
Lloh11:
	ldr	x9, [x9, _FF_NO@GOTPAGEOFF]
Lloh12:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_8
; %bb.7:
Lloh13:
	adrp	x1, l_.str.1@PAGE
Lloh14:
	add	x1, x1, l_.str.1@PAGEOFF
	add	x0, sp, #8
	bl	_strbuf_addstr
LBB0_8:
	ldr	w0, [x19]
	bl	_git_path_merge_mode
	ldp	w2, w1, [sp, #8]
	bl	_write_file_buf
	add	x0, sp, #8
	bl	_strbuf_release
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_STRBUF_INIT,8,2                ; @STRBUF_INIT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s\n"

	.comm	_the_repository,4,2             ; @the_repository
	.comm	_fast_forward,8,3               ; @fast_forward
	.comm	_FF_NO,8,3                      ; @FF_NO
l_.str.1:                               ; @.str.1
	.asciz	"no-ff"

	.no_dead_strip	_write_merge_heads
.subsections_via_symbols
