	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_fmt_merge_msg                  ## -- Begin function fmt_merge_msg
	.p2align	4, 0x90
_fmt_merge_msg:                         ## @fmt_merge_msg
	.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	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, -96(%rbp)                 ## 8-byte Spill
	movq	%rsi, -104(%rbp)                ## 8-byte Spill
	movq	%rdi, %r14
	leaq	-56(%rbp), %rdi
	xorl	%esi, %esi
	movl	$8, %edx
	callq	_memset
	movq	_RESOLVE_REF_READING@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdi
	leaq	-48(%rbp), %rdx
	xorl	%ecx, %ecx
	callq	_resolve_refdup
	movq	%rax, %rbx
	testq	%rax, %rax
	jne	LBB0_2
## %bb.1:
	leaq	L_.str.1(%rip), %rdi
	xorl	%eax, %eax
	callq	_die
LBB0_2:
	leaq	L_.str.2(%rip), %rsi
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rdi
	callq	_starts_with
	testq	%rax, %rax
	movl	$11, %ecx
	cmoveq	%rax, %rcx
	movq	%rcx, -88(%rbp)                 ## 8-byte Spill
	leaq	-56(%rbp), %rdi
	leaq	-48(%rbp), %rdx
	movq	%r14, %rsi
	callq	_find_merge_parents
	cmpl	$0, (%r14)
	jle	LBB0_10
## %bb.3:
	movl	$1, %ebx
	xorl	%r13d, %r13d
	movq	%r14, -112(%rbp)                ## 8-byte Spill
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_4 Depth=1
	incl	%ebx
	movq	-112(%rbp), %r14                ## 8-byte Reload
	cmpl	(%r14), %r13d
	jge	LBB0_10
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movslq	%r13d, %r12
	addq	8(%r14), %r12
	movq	%r12, %rdi
	movl	$10, %esi
	callq	_strchr
	movq	%rax, %r15
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	%r15, %r14
	subq	%r12, %r14
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_4 Depth=1
	movq	%r12, %rdi
	callq	_strlen
	movl	%eax, %r14d
LBB0_7:                                 ##   in Loop: Header=BB0_4 Depth=1
	cmpq	$1, %r15
	sbbl	$-1, %r13d
	addl	%r14d, %r13d
	movslq	%r14d, %rax
	movb	$0, (%r12,%rax)
	movq	%r12, %rdi
	leaq	-56(%rbp), %rsi
	callq	_handle_line
	testq	%rax, %rax
	je	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_4 Depth=1
	leaq	L_.str.3(%rip), %rdi
	movl	%ebx, %esi
	movl	%r14d, %edx
	movq	%r12, %rcx
	xorl	%eax, %eax
	callq	_die
	jmp	LBB0_9
LBB0_10:
	movq	-96(%rbp), %r14                 ## 8-byte Reload
	cmpq	$0, 8(%r14)
	movq	-104(%rbp), %r13                ## 8-byte Reload
	je	LBB0_13
## %bb.11:
	movq	_srcs@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_13
## %bb.12:
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	addq	-88(%rbp), %rsi                 ## 8-byte Folded Reload
	movq	%r13, %rdi
	callq	_fmt_merge_msg_title
LBB0_13:
	movq	_origins@GOTPCREL(%rip), %r15
	cmpl	$0, (%r15)
	je	LBB0_15
## %bb.14:
	movq	%r13, %rdi
	callq	_fmt_merge_msg_sigs
LBB0_15:
	cmpq	$0, (%r14)
	je	LBB0_19
## %bb.16:
	leaq	L_.str(%rip), %rsi
	leaq	-48(%rbp), %rdi
	callq	_lookup_commit_or_die
	movq	%rax, %r12
	movq	_the_repository@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	-80(%rbp), %rsi
	xorl	%edx, %edx
	callq	_repo_init_revisions
	movq	_CMIT_FMT_ONELINE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -72(%rbp)
	movabsq	$4294967297, %rax               ## imm = 0x100000001
	movq	%rax, -80(%rbp)
	movq	%r13, %rdi
	callq	_strbuf_complete_line
	cmpl	$0, (%r15)
	jle	LBB0_19
## %bb.17:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_18:                                ## =>This Inner Loop Header: Depth=1
	movq	8(%r15), %rax
	movl	(%rax,%rbx,8), %esi
	movl	4(%rax,%rbx,8), %edi
	movq	%r12, %rdx
	leaq	-80(%rbp), %rcx
	movq	%r14, %r8
	movq	%r13, %r9
	callq	_shortlog
	incq	%rbx
	movslq	(%r15), %rax
	cmpq	%rax, %rbx
	jl	LBB0_18
LBB0_19:
	movq	%r13, %rdi
	callq	_strbuf_complete_line
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	callq	_free
	movq	-56(%rbp), %rdi
	callq	_free
	xorl	%eax, %eax
	addq	$72, %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	"HEAD"

	.comm	_RESOLVE_REF_READING,4,2        ## @RESOLVE_REF_READING
L_.str.1:                               ## @.str.1
	.asciz	"No current branch"

L_.str.2:                               ## @.str.2
	.asciz	"refs/heads/"

L_.str.3:                               ## @.str.3
	.asciz	"error in line %d: %.*s"

	.comm	_srcs,8,3                       ## @srcs
	.comm	_origins,16,3                   ## @origins
	.comm	_the_repository,4,2             ## @the_repository
	.comm	_CMIT_FMT_ONELINE,4,2           ## @CMIT_FMT_ONELINE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_fmt_merge_msg                  ; -- Begin function fmt_merge_msg
	.p2align	2
_fmt_merge_msg:                         ; @fmt_merge_msg
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #160
	.cfi_def_cfa_offset 160
	stp	x28, x27, [sp, #64]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #80]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #96]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #112]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #128]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #144]            ; 16-byte Folded Spill
	add	x29, sp, #144
	.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	x20, x2
	mov	x19, x1
	mov	x22, x0
	add	x0, sp, #48
	mov	w1, #0
	mov	w2, #8
	bl	_memset
Lloh0:
	adrp	x8, _RESOLVE_REF_READING@GOTPAGE
Lloh1:
	ldr	x8, [x8, _RESOLVE_REF_READING@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	add	x2, sp, #56
	mov	x3, #0
	bl	_resolve_refdup
	mov	x21, x0
	cbnz	x0, LBB0_2
; %bb.1:
Lloh5:
	adrp	x0, l_.str.1@PAGE
Lloh6:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_die
LBB0_2:
Lloh7:
	adrp	x1, l_.str.2@PAGE
Lloh8:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x21
	bl	_starts_with
	mov	w8, #11
	cmp	x0, #0
	csel	x8, xzr, x8, eq
	str	x8, [sp, #24]                   ; 8-byte Folded Spill
	add	x0, sp, #48
	add	x2, sp, #56
	mov	x1, x22
	bl	_find_merge_parents
	ldr	w8, [x22]
	cmp	w8, #1
	b.lt	LBB0_10
; %bb.3:
	mov	w28, #0
	mov	w27, #1
Lloh9:
	adrp	x23, l_.str.3@PAGE
Lloh10:
	add	x23, x23, l_.str.3@PAGEOFF
	b	LBB0_5
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldr	w8, [x22]
	add	w27, w27, #1
	add	w28, w25, w26
	cmp	w28, w8
	b.ge	LBB0_10
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x22, #8]
	add	x24, x8, w28, sxtw
	mov	x0, x24
	mov	w1, #10
	bl	_strchr
	mov	x25, x0
	cbz	x0, LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	sub	x26, x25, x24
	b	LBB0_8
LBB0_7:                                 ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x24
	bl	_strlen
	mov	w26, w0
LBB0_8:                                 ;   in Loop: Header=BB0_5 Depth=1
	cmp	x25, #0
	cinc	w25, w28, ne
	strb	wzr, [x24, w26, sxtw]
	add	x1, sp, #48
	mov	x0, x24
	bl	_handle_line
	cbz	x0, LBB0_4
; %bb.9:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x8, x26
	stp	x8, x24, [sp, #8]
	str	x27, [sp]
	mov	x0, x23
	bl	_die
	b	LBB0_4
LBB0_10:
	ldr	x8, [x20, #8]
	cbz	x8, LBB0_13
; %bb.11:
Lloh11:
	adrp	x8, _srcs@GOTPAGE
Lloh12:
	ldr	x8, [x8, _srcs@GOTPAGEOFF]
Lloh13:
	ldr	x8, [x8]
	cbz	x8, LBB0_13
; %bb.12:
	ldr	x8, [sp, #24]                   ; 8-byte Folded Reload
	add	x1, x21, x8
	mov	x0, x19
	bl	_fmt_merge_msg_title
LBB0_13:
Lloh14:
	adrp	x23, _origins@GOTPAGE
Lloh15:
	ldr	x23, [x23, _origins@GOTPAGEOFF]
	ldr	w8, [x23]
	cbz	w8, LBB0_15
; %bb.14:
	mov	x0, x19
	bl	_fmt_merge_msg_sigs
LBB0_15:
	ldr	x8, [x20]
	cbz	x8, LBB0_19
; %bb.16:
Lloh16:
	adrp	x1, l_.str@PAGE
Lloh17:
	add	x1, x1, l_.str@PAGEOFF
	add	x0, sp, #56
	bl	_lookup_commit_or_die
	mov	x22, x0
Lloh18:
	adrp	x8, _the_repository@GOTPAGE
Lloh19:
	ldr	x8, [x8, _the_repository@GOTPAGEOFF]
Lloh20:
	ldr	w0, [x8]
	add	x1, sp, #32
	mov	x2, #0
	bl	_repo_init_revisions
Lloh21:
	adrp	x8, _CMIT_FMT_ONELINE@GOTPAGE
Lloh22:
	ldr	x8, [x8, _CMIT_FMT_ONELINE@GOTPAGEOFF]
Lloh23:
	ldr	w8, [x8]
	str	w8, [sp, #40]
	movi.2s	v0, #1
	str	d0, [sp, #32]
	mov	x0, x19
	bl	_strbuf_complete_line
	ldr	w8, [x23]
	cmp	w8, #1
	b.lt	LBB0_19
; %bb.17:
	mov	x24, #0
	mov	x25, #0
LBB0_18:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x23, #8]
	add	x8, x8, x24
	ldp	w1, w0, [x8]
	add	x3, sp, #32
	mov	x2, x22
	mov	x4, x20
	mov	x5, x19
	bl	_shortlog
	add	x25, x25, #1
	ldrsw	x8, [x23]
	add	x24, x24, #8
	cmp	x25, x8
	b.lt	LBB0_18
LBB0_19:
	mov	x0, x19
	bl	_strbuf_complete_line
	mov	x0, x21
	bl	_free
	ldr	x0, [sp, #48]
	bl	_free
	mov	w0, #0
	ldp	x29, x30, [sp, #144]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #128]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #112]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #96]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #80]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #160
	ret
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpAdd	Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"HEAD"

	.comm	_RESOLVE_REF_READING,4,2        ; @RESOLVE_REF_READING
l_.str.1:                               ; @.str.1
	.asciz	"No current branch"

l_.str.2:                               ; @.str.2
	.asciz	"refs/heads/"

l_.str.3:                               ; @.str.3
	.asciz	"error in line %d: %.*s"

	.comm	_srcs,8,3                       ; @srcs
	.comm	_origins,16,3                   ; @origins
	.comm	_the_repository,4,2             ; @the_repository
	.comm	_CMIT_FMT_ONELINE,4,2           ; @CMIT_FMT_ONELINE
.subsections_via_symbols
