	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_repo_format_commit_message     ## -- Begin function repo_format_commit_message
	.p2align	4, 0x90
_repo_format_commit_message:            ## @repo_format_commit_message
	.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, %r12
	movq	%rcx, %r13
	movq	%rdx, -80(%rbp)                 ## 8-byte Spill
	movq	%rsi, %r15
	movq	%rdi, %r14
	movq	(%r8), %rax
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	leaq	-72(%rbp), %rbx
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movl	$32, %edx
	callq	_memset
	movq	%r15, -48(%rbp)
	movq	%r12, -56(%rbp)
	movl	(%r13), %eax
	movl	%eax, -60(%rbp)
	leaq	L_.str(%rip), %rcx
	movq	%r14, %rdi
	movq	%r15, %rsi
	movq	%rbx, %rdx
	callq	_repo_logmsg_reencode
	movl	%eax, -64(%rbp)
	movq	_format_commit_item@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r13, %rdi
	movq	-80(%rbp), %rsi                 ## 8-byte Reload
	movq	%rbx, %rcx
	callq	_strbuf_expand
	movq	%r13, %rdi
	movq	%rbx, %rsi
	movq	-88(%rbp), %rbx                 ## 8-byte Reload
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	callq	_rewrap_message_tail
	testq	%rbx, %rbx
	je	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rdi
	movq	%rbx, %rsi
	callq	_same_encoding
	testq	%rax, %rax
	jne	LBB0_7
	jmp	LBB0_5
LBB0_2:
	movq	-72(%rbp), %rdi
	testq	%rdi, %rdi
	je	LBB0_7
## %bb.3:
	leaq	L_.str(%rip), %rsi
	callq	_same_encoding
	testq	%rax, %rax
	jne	LBB0_7
## %bb.4:
	movq	-72(%rbp), %rbx
	testq	%rbx, %rbx
	je	LBB0_7
LBB0_5:
	movl	(%r13), %esi
	movl	4(%r13), %edi
	leaq	L_.str(%rip), %rcx
	leaq	-96(%rbp), %r8
	movq	%rbx, %rdx
	callq	_reencode_string_len
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:
	movq	-96(%rbp), %rdx
	leaq	1(%rdx), %rcx
	movq	%r13, %rdi
	movq	%rax, %rsi
	callq	_strbuf_attach
LBB0_7:
	movq	-72(%rbp), %rdi
	callq	_free
	movl	-64(%rbp), %edx
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_repo_unuse_commit_buffer
	addq	$56, %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	"UTF-8"

	.comm	_format_commit_item,4,2         ## @format_commit_item
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_repo_format_commit_message     ; -- Begin function repo_format_commit_message
	.p2align	2
_repo_format_commit_message:            ; @repo_format_commit_message
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	mov	x23, x4
	mov	x21, x3
	mov	x24, x2
	mov	x19, x1
	mov	x20, x0
	ldr	x22, [x4]
	add	x0, sp, #16
	mov	w1, #0
	mov	w2, #32
	bl	_memset
	stp	x23, x19, [sp, #32]
	ldr	w8, [x21]
	str	w8, [sp, #28]
Lloh0:
	adrp	x3, l_.str@PAGE
Lloh1:
	add	x3, x3, l_.str@PAGEOFF
	add	x2, sp, #16
	mov	x0, x20
	mov	x1, x19
	bl	_repo_logmsg_reencode
	str	w0, [sp, #24]
Lloh2:
	adrp	x8, _format_commit_item@GOTPAGE
Lloh3:
	ldr	x8, [x8, _format_commit_item@GOTPAGEOFF]
Lloh4:
	ldr	w2, [x8]
	add	x3, sp, #16
	mov	x0, x21
	mov	x1, x24
	bl	_strbuf_expand
	add	x1, sp, #16
	mov	x0, x21
	mov	w2, #0
	mov	w3, #0
	mov	w4, #0
	bl	_rewrap_message_tail
	cbz	x22, LBB0_2
; %bb.1:
Lloh5:
	adrp	x0, l_.str@PAGE
Lloh6:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x22
	bl	_same_encoding
	cbnz	x0, LBB0_7
	b	LBB0_5
LBB0_2:
	ldr	x0, [sp, #16]
	cbz	x0, LBB0_7
; %bb.3:
Lloh7:
	adrp	x1, l_.str@PAGE
Lloh8:
	add	x1, x1, l_.str@PAGEOFF
	bl	_same_encoding
	cbnz	x0, LBB0_7
; %bb.4:
	ldr	x22, [sp, #16]
	cbz	x22, LBB0_7
LBB0_5:
	ldp	w1, w0, [x21]
Lloh9:
	adrp	x3, l_.str@PAGE
Lloh10:
	add	x3, x3, l_.str@PAGEOFF
	add	x4, sp, #8
	mov	x2, x22
	bl	_reencode_string_len
	cbz	x0, LBB0_7
; %bb.6:
	mov	x1, x0
	ldr	x2, [sp, #8]
	add	x3, x2, #1
	mov	x0, x21
	bl	_strbuf_attach
LBB0_7:
	ldr	x0, [sp, #16]
	bl	_free
	ldr	w2, [sp, #24]
	mov	x0, x20
	mov	x1, x19
	bl	_repo_unuse_commit_buffer
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"UTF-8"

	.comm	_format_commit_item,4,2         ; @format_commit_item
.subsections_via_symbols
