	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function run_prepare_commit_msg_hook
_run_prepare_commit_msg_hook:           ## @run_prepare_commit_msg_hook
	.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	%rdx, %r14
	movq	%rsi, %rbx
	movq	%rdi, %r15
	xorl	%eax, %eax
	callq	_git_path_commit_editmsg
	movq	%rax, %r12
	movl	(%rbx), %esi
	movl	4(%rbx), %edi
	movq	%rax, %rdx
	xorl	%ecx, %ecx
	callq	_write_message
	movq	%rax, %rcx
	movl	$-1, %eax
	testq	%rcx, %rcx
	je	LBB0_1
LBB0_2:
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	testq	%r14, %r14
	leaq	L_.str.1(%rip), %rax
	leaq	L_.str(%rip), %r8
	cmoveq	%rax, %r8
	movl	(%r15), %esi
	movq	$0, (%rsp)
	leaq	L_.str.2(%rip), %rdx
	xorl	%edi, %edi
	movq	%r12, %rcx
	movq	%r14, %r9
	callq	_run_commit_hook
	movq	%rax, %rcx
	movl	$0, %eax
	testq	%rcx, %rcx
	je	LBB0_2
## %bb.3:
	leaq	L_.str.3(%rip), %rdi
	callq	__
	movl	%eax, %edi
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_error                          ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"commit"

L_.str.1:                               ## @.str.1
	.asciz	"message"

L_.str.2:                               ## @.str.2
	.asciz	"prepare-commit-msg"

L_.str.3:                               ## @.str.3
	.asciz	"'prepare-commit-msg' hook failed"

	.no_dead_strip	_run_prepare_commit_msg_hook
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function run_prepare_commit_msg_hook
_run_prepare_commit_msg_hook:           ; @run_prepare_commit_msg_hook
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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, x2
	mov	x22, x1
	mov	x21, x0
	bl	_git_path_commit_editmsg
	mov	x20, x0
	ldp	w1, w0, [x22]
	mov	x2, x20
	mov	w3, #0
	bl	_write_message
	cbz	x0, LBB0_3
; %bb.1:
	mov	w0, #-1
LBB0_2:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_3:
Lloh0:
	adrp	x8, l_.str@PAGE
Lloh1:
	add	x8, x8, l_.str@PAGEOFF
Lloh2:
	adrp	x9, l_.str.1@PAGE
Lloh3:
	add	x9, x9, l_.str.1@PAGEOFF
	cmp	x19, #0
	csel	x4, x9, x8, eq
	ldr	w1, [x21]
Lloh4:
	adrp	x2, l_.str.2@PAGE
Lloh5:
	add	x2, x2, l_.str.2@PAGEOFF
	mov	x3, x20
	mov	x5, x19
	mov	x6, #0
	bl	_run_commit_hook
	cbz	x0, LBB0_2
; %bb.4:
Lloh6:
	adrp	x0, l_.str.3@PAGE
Lloh7:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	__
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_error
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"commit"

l_.str.1:                               ; @.str.1
	.asciz	"message"

l_.str.2:                               ; @.str.2
	.asciz	"prepare-commit-msg"

l_.str.3:                               ; @.str.3
	.asciz	"'prepare-commit-msg' hook failed"

	.no_dead_strip	_run_prepare_commit_msg_hook
.subsections_via_symbols
