	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function prepare_to_commit
_prepare_to_commit:                     ## @prepare_to_commit
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	_STRBUF_INIT@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	xorl	%eax, %eax
	callq	_get_index_file
	movq	%rax, %rbx
	movq	_no_verify@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	jne	LBB0_3
## %bb.1:
	movq	_option_edit@GOTPCREL(%rip), %rax
	xorl	%edi, %edi
	cmpq	$0, (%rax)
	setg	%dil
	leaq	L_.str(%rip), %rdx
	movq	%rbx, %rsi
	xorl	%ecx, %ecx
	xorl	%eax, %eax
	callq	_run_commit_hook
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_abort_commit
LBB0_3:
	leaq	L_.str(%rip), %rdi
	callq	_find_hook
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	xorl	%eax, %eax
	callq	_discard_cache
LBB0_5:
	movq	%rbx, %rdi
	callq	_read_cache_from
	movq	_merge_msg@GOTPCREL(%rip), %rsi
	leaq	-48(%rbp), %rdi
	callq	_strbuf_addbuf
	movq	_squash@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_7
## %bb.6:
	leaq	L_.str.1(%rip), %rdi
	callq	_BUG
LBB0_7:
	movq	_option_edit@GOTPCREL(%rip), %r13
	cmpq	$0, (%r13)
	jle	LBB0_14
## %bb.8:
	leaq	-48(%rbp), %rdi
	movl	$10, %esi
	callq	_strbuf_addch
	movq	_cleanup_mode@GOTPCREL(%rip), %r15
	movq	(%r15), %rax
	movq	_COMMIT_MSG_CLEANUP_SCISSORS@GOTPCREL(%rip), %r12
	cmpq	(%r12), %rax
	jne	LBB0_10
## %bb.9:
	leaq	-48(%rbp), %rbx
	movq	%rbx, %rdi
	callq	_wt_status_append_cut_line
	leaq	L_.str.2(%rip), %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	callq	_strbuf_commented_addf
LBB0_10:
	movq	_merge_editor_comment@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	callq	__
	leaq	-48(%rbp), %rbx
	movq	%rbx, %rdi
	movq	%rax, %rsi
	xorl	%eax, %eax
	callq	_strbuf_commented_addf
	movq	(%r15), %rax
	cmpq	(%r12), %rax
	jne	LBB0_11
## %bb.12:
	movq	_scissors_editor_comment@GOTPCREL(%rip), %rax
	jmp	LBB0_13
LBB0_11:
	movq	_no_scissors_editor_comment@GOTPCREL(%rip), %rax
LBB0_13:
	movq	(%rax), %rdi
	callq	__
	movq	_comment_line_char@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	%rbx, %rdi
	movq	%rax, %rsi
	xorl	%eax, %eax
	callq	_strbuf_commented_addf
LBB0_14:
	movq	_signoff@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_16
## %bb.15:
	movl	-48(%rbp), %esi
	movl	-44(%rbp), %edi
	callq	_ignore_non_trailer
	leaq	-48(%rbp), %rdi
	movl	%eax, %esi
	xorl	%edx, %edx
	callq	_append_signoff
LBB0_16:
	movq	%r14, %rdi
	callq	_write_merge_heads
	movq	_the_repository@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	callq	_git_path_merge_msg
	movl	-48(%rbp), %edx
	movl	-44(%rbp), %esi
	movl	%eax, %edi
	callq	_write_file_buf
	xorl	%ebx, %ebx
	cmpq	$0, (%r13)
	setg	%bl
	xorl	%eax, %eax
	callq	_get_index_file
	movq	%rax, %r15
	movl	(%r12), %edi
	callq	_git_path_merge_msg
	leaq	L_.str.3(%rip), %rdx
	leaq	L_.str.4(%rip), %r8
	movl	%ebx, %edi
	movq	%r15, %rsi
	movl	%eax, %ecx
	xorl	%r9d, %r9d
	xorl	%eax, %eax
	callq	_run_commit_hook
	testq	%rax, %rax
	je	LBB0_18
## %bb.17:
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_abort_commit
LBB0_18:
	cmpq	$0, (%r13)
	jle	LBB0_21
## %bb.19:
	movl	(%r12), %edi
	callq	_git_path_merge_msg
	movl	%eax, %edi
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_launch_editor
	testq	%rax, %rax
	je	LBB0_21
## %bb.20:
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_abort_commit
LBB0_21:
	movq	_no_verify@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	jne	LBB0_24
## %bb.22:
	xorl	%ebx, %ebx
	cmpq	$0, (%r13)
	setg	%bl
	xorl	%eax, %eax
	callq	_get_index_file
	movq	%rax, %r15
	movl	(%r12), %edi
	callq	_git_path_merge_msg
	leaq	L_.str.5(%rip), %rdx
	movl	%ebx, %edi
	movq	%r15, %rsi
	movl	%eax, %ecx
	xorl	%r8d, %r8d
	xorl	%eax, %eax
	callq	_run_commit_hook
	testq	%rax, %rax
	je	LBB0_24
## %bb.23:
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_abort_commit
LBB0_24:
	leaq	-48(%rbp), %rbx
	movq	%rbx, %rdi
	callq	_read_merge_msg
	movq	_cleanup_mode@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_cleanup_message
	cmpl	$0, -48(%rbp)
	jne	LBB0_26
## %bb.25:
	leaq	L_.str.6(%rip), %rdi
	callq	__
	movq	%r14, %rdi
	movq	%rax, %rsi
	callq	_abort_commit
LBB0_26:
	movq	_merge_msg@GOTPCREL(%rip), %rbx
	movq	%rbx, %rdi
	callq	_strbuf_release
	leaq	-48(%rbp), %r14
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_strbuf_addbuf
	movq	%r14, %rdi
	callq	_strbuf_release
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_STRBUF_INIT,8,2                ## @STRBUF_INIT
	.comm	_no_verify,4,2                  ## @no_verify
	.comm	_option_edit,8,3                ## @option_edit
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"pre-merge-commit"

	.comm	_merge_msg,8,2                  ## @merge_msg
	.comm	_squash,8,3                     ## @squash
L_.str.1:                               ## @.str.1
	.asciz	"the control must not reach here under --squash"

	.comm	_cleanup_mode,8,3               ## @cleanup_mode
	.comm	_COMMIT_MSG_CLEANUP_SCISSORS,8,3 ## @COMMIT_MSG_CLEANUP_SCISSORS
L_.str.2:                               ## @.str.2
	.asciz	"\n"

	.comm	_merge_editor_comment,8,3       ## @merge_editor_comment
	.comm	_scissors_editor_comment,8,3    ## @scissors_editor_comment
	.comm	_no_scissors_editor_comment,8,3 ## @no_scissors_editor_comment
	.comm	_comment_line_char,4,2          ## @comment_line_char
	.comm	_signoff,8,3                    ## @signoff
	.comm	_the_repository,4,2             ## @the_repository
L_.str.3:                               ## @.str.3
	.asciz	"prepare-commit-msg"

L_.str.4:                               ## @.str.4
	.asciz	"merge"

L_.str.5:                               ## @.str.5
	.asciz	"commit-msg"

L_.str.6:                               ## @.str.6
	.asciz	"Empty commit message."

	.no_dead_strip	_prepare_to_commit
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function prepare_to_commit
_prepare_to_commit:                     ; @prepare_to_commit
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x0
Lloh0:
	adrp	x8, _STRBUF_INIT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _STRBUF_INIT@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #24]
	bl	_get_index_file
	mov	x20, x0
Lloh3:
	adrp	x23, _no_verify@GOTPAGE
Lloh4:
	ldr	x23, [x23, _no_verify@GOTPAGEOFF]
	ldr	w8, [x23]
Lloh5:
	adrp	x22, _option_edit@GOTPAGE
Lloh6:
	ldr	x22, [x22, _option_edit@GOTPAGEOFF]
	cbnz	w8, LBB0_3
; %bb.1:
	ldr	x8, [x22]
	cmp	x8, #0
	cset	w0, gt
Lloh7:
	adrp	x2, l_.str@PAGE
Lloh8:
	add	x2, x2, l_.str@PAGEOFF
	mov	x1, x20
	mov	w3, #0
	bl	_run_commit_hook
	cbz	x0, LBB0_3
; %bb.2:
	mov	x0, x19
	mov	x1, #0
	bl	_abort_commit
LBB0_3:
Lloh9:
	adrp	x0, l_.str@PAGE
Lloh10:
	add	x0, x0, l_.str@PAGEOFF
	bl	_find_hook
	cbz	x0, LBB0_5
; %bb.4:
	bl	_discard_cache
LBB0_5:
	mov	x0, x20
	bl	_read_cache_from
Lloh11:
	adrp	x1, _merge_msg@GOTPAGE
Lloh12:
	ldr	x1, [x1, _merge_msg@GOTPAGEOFF]
	add	x0, sp, #24
	bl	_strbuf_addbuf
Lloh13:
	adrp	x8, _squash@GOTPAGE
Lloh14:
	ldr	x8, [x8, _squash@GOTPAGEOFF]
Lloh15:
	ldr	x8, [x8]
	cbz	x8, LBB0_7
; %bb.6:
Lloh16:
	adrp	x0, l_.str.1@PAGE
Lloh17:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_BUG
LBB0_7:
	ldr	x8, [x22]
Lloh18:
	adrp	x24, _cleanup_mode@GOTPAGE
Lloh19:
	ldr	x24, [x24, _cleanup_mode@GOTPAGEOFF]
	cmp	x8, #1
	b.lt	LBB0_11
; %bb.8:
	add	x0, sp, #24
	mov	w1, #10
	bl	_strbuf_addch
	ldr	x8, [x24]
Lloh20:
	adrp	x20, _COMMIT_MSG_CLEANUP_SCISSORS@GOTPAGE
Lloh21:
	ldr	x20, [x20, _COMMIT_MSG_CLEANUP_SCISSORS@GOTPAGEOFF]
	ldr	x9, [x20]
	cmp	x8, x9
	b.ne	LBB0_10
; %bb.9:
	add	x0, sp, #24
	bl	_wt_status_append_cut_line
Lloh22:
	adrp	x1, l_.str.2@PAGE
Lloh23:
	add	x1, x1, l_.str.2@PAGEOFF
	add	x0, sp, #24
	bl	_strbuf_commented_addf
LBB0_10:
Lloh24:
	adrp	x8, _merge_editor_comment@GOTPAGE
Lloh25:
	ldr	x8, [x8, _merge_editor_comment@GOTPAGEOFF]
Lloh26:
	ldr	x0, [x8]
	bl	__
	mov	x1, x0
	add	x0, sp, #24
	bl	_strbuf_commented_addf
	ldr	x8, [x24]
Lloh27:
	adrp	x9, _scissors_editor_comment@GOTPAGE
Lloh28:
	ldr	x9, [x9, _scissors_editor_comment@GOTPAGEOFF]
	ldr	x10, [x20]
Lloh29:
	adrp	x11, _no_scissors_editor_comment@GOTPAGE
Lloh30:
	ldr	x11, [x11, _no_scissors_editor_comment@GOTPAGEOFF]
	cmp	x8, x10
	csel	x8, x9, x11, eq
	ldr	x0, [x8]
	bl	__
	mov	x1, x0
Lloh31:
	adrp	x8, _comment_line_char@GOTPAGE
Lloh32:
	ldr	x8, [x8, _comment_line_char@GOTPAGEOFF]
Lloh33:
	ldr	w8, [x8]
	str	x8, [sp]
	add	x0, sp, #24
	bl	_strbuf_commented_addf
LBB0_11:
Lloh34:
	adrp	x8, _signoff@GOTPAGE
Lloh35:
	ldr	x8, [x8, _signoff@GOTPAGEOFF]
Lloh36:
	ldr	x8, [x8]
	cbz	x8, LBB0_13
; %bb.12:
	ldp	w1, w0, [sp, #24]
	bl	_ignore_non_trailer
	mov	x1, x0
	add	x0, sp, #24
	mov	w2, #0
	bl	_append_signoff
LBB0_13:
	mov	x0, x19
	bl	_write_merge_heads
Lloh37:
	adrp	x25, _the_repository@GOTPAGE
Lloh38:
	ldr	x25, [x25, _the_repository@GOTPAGEOFF]
	ldr	w0, [x25]
	bl	_git_path_merge_msg
	ldp	w2, w1, [sp, #24]
	bl	_write_file_buf
	ldr	x8, [x22]
	cmp	x8, #0
	cset	w20, gt
	bl	_get_index_file
	mov	x21, x0
	ldr	w0, [x25]
	bl	_git_path_merge_msg
	mov	x3, x0
Lloh39:
	adrp	x8, l_.str.4@PAGE
Lloh40:
	add	x8, x8, l_.str.4@PAGEOFF
	stp	x8, xzr, [sp]
Lloh41:
	adrp	x2, l_.str.3@PAGE
Lloh42:
	add	x2, x2, l_.str.3@PAGEOFF
	mov	x0, x20
	mov	x1, x21
	bl	_run_commit_hook
	cbz	x0, LBB0_15
; %bb.14:
	mov	x0, x19
	mov	x1, #0
	bl	_abort_commit
LBB0_15:
	ldr	x8, [x22]
	cmp	x8, #1
	b.lt	LBB0_18
; %bb.16:
	ldr	w0, [x25]
	bl	_git_path_merge_msg
	mov	x1, #0
	mov	x2, #0
	bl	_launch_editor
	cbz	x0, LBB0_18
; %bb.17:
	mov	x0, x19
	mov	x1, #0
	bl	_abort_commit
LBB0_18:
	ldr	w8, [x23]
	cbnz	w8, LBB0_21
; %bb.19:
	ldr	x8, [x22]
	cmp	x8, #0
	cset	w20, gt
	bl	_get_index_file
	mov	x21, x0
	ldr	w0, [x25]
	bl	_git_path_merge_msg
	mov	x3, x0
	str	xzr, [sp]
Lloh43:
	adrp	x2, l_.str.5@PAGE
Lloh44:
	add	x2, x2, l_.str.5@PAGEOFF
	mov	x0, x20
	mov	x1, x21
	bl	_run_commit_hook
	cbz	x0, LBB0_21
; %bb.20:
	mov	x0, x19
	mov	x1, #0
	bl	_abort_commit
LBB0_21:
	add	x0, sp, #24
	bl	_read_merge_msg
	ldr	x1, [x24]
	add	x0, sp, #24
	mov	w2, #0
	bl	_cleanup_message
	ldr	w8, [sp, #24]
	cbnz	w8, LBB0_23
; %bb.22:
Lloh45:
	adrp	x0, l_.str.6@PAGE
Lloh46:
	add	x0, x0, l_.str.6@PAGEOFF
	bl	__
	mov	x1, x0
	mov	x0, x19
	bl	_abort_commit
LBB0_23:
Lloh47:
	adrp	x19, _merge_msg@GOTPAGE
Lloh48:
	ldr	x19, [x19, _merge_msg@GOTPAGEOFF]
	mov	x0, x19
	bl	_strbuf_release
	add	x1, sp, #24
	mov	x0, x19
	bl	_strbuf_addbuf
	add	x0, sp, #24
	bl	_strbuf_release
	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
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGot	Lloh29, Lloh30
	.loh AdrpLdrGot	Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpAdd	Lloh41, Lloh42
	.loh AdrpAdd	Lloh39, Lloh40
	.loh AdrpLdrGot	Lloh37, Lloh38
	.loh AdrpAdd	Lloh43, Lloh44
	.loh AdrpAdd	Lloh45, Lloh46
	.loh AdrpLdrGot	Lloh47, Lloh48
	.cfi_endproc
                                        ; -- End function
	.comm	_STRBUF_INIT,8,2                ; @STRBUF_INIT
	.comm	_no_verify,4,2                  ; @no_verify
	.comm	_option_edit,8,3                ; @option_edit
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"pre-merge-commit"

	.comm	_merge_msg,8,2                  ; @merge_msg
	.comm	_squash,8,3                     ; @squash
l_.str.1:                               ; @.str.1
	.asciz	"the control must not reach here under --squash"

	.comm	_cleanup_mode,8,3               ; @cleanup_mode
	.comm	_COMMIT_MSG_CLEANUP_SCISSORS,8,3 ; @COMMIT_MSG_CLEANUP_SCISSORS
l_.str.2:                               ; @.str.2
	.asciz	"\n"

	.comm	_merge_editor_comment,8,3       ; @merge_editor_comment
	.comm	_scissors_editor_comment,8,3    ; @scissors_editor_comment
	.comm	_no_scissors_editor_comment,8,3 ; @no_scissors_editor_comment
	.comm	_comment_line_char,4,2          ; @comment_line_char
	.comm	_signoff,8,3                    ; @signoff
	.comm	_the_repository,4,2             ; @the_repository
l_.str.3:                               ; @.str.3
	.asciz	"prepare-commit-msg"

l_.str.4:                               ; @.str.4
	.asciz	"merge"

l_.str.5:                               ; @.str.5
	.asciz	"commit-msg"

l_.str.6:                               ; @.str.6
	.asciz	"Empty commit message."

	.no_dead_strip	_prepare_to_commit
.subsections_via_symbols
