	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function prepare_note_data
_prepare_note_data:                     ## @prepare_note_data
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r12
	movq	%rsi, %rbx
	movq	%rdi, %r14
	cmpq	$0, 24(%rsi)
	je	LBB0_1
LBB0_2:
	movq	_STRBUF_INIT@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	leaq	L_.str(%rip), %rdi
	callq	_git_pathdup
	movl	%eax, 8(%rbx)
	movq	_O_CREAT@GOTPCREL(%rip), %rcx
	movq	_O_TRUNC@GOTPCREL(%rip), %rdx
	movl	(%rdx), %esi
	orl	(%rcx), %esi
	movq	_O_WRONLY@GOTPCREL(%rip), %rcx
	orl	(%rcx), %esi
	movl	%eax, %edi
	movl	$384, %edx                      ## imm = 0x180
	callq	_open
	movl	%eax, %r15d
	testl	%eax, %eax
	jns	LBB0_4
## %bb.3:
	leaq	L_.str.1(%rip), %rdi
	callq	__
	movl	8(%rbx), %esi
	movq	%rax, %rdi
	callq	_die_errno
LBB0_4:
	cmpq	$0, 16(%rbx)
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	je	LBB0_6
## %bb.5:
	movl	(%rbx), %edx
	movl	4(%rbx), %esi
	movl	%r15d, %edi
	callq	_write_or_die
	jmp	LBB0_8
LBB0_1:
	cmpq	$0, 16(%rbx)
	jne	LBB0_11
	jmp	LBB0_2
LBB0_6:
	testq	%r12, %r12
	je	LBB0_8
## %bb.7:
	movl	%r15d, %edi
	movq	%r12, %rsi
	callq	_copy_obj_to_fd
LBB0_8:
	leaq	-48(%rbp), %r12
	movq	%r12, %rdi
	movl	$10, %esi
	callq	_strbuf_addch
	leaq	L_.str.2(%rip), %r13
	movq	%r13, %rdi
	callq	_strlen
	movq	%r12, %rdi
	movq	%r13, %rsi
	movl	%eax, %edx
	callq	_strbuf_add_commented_lines
	movq	_note_template@GOTPCREL(%rip), %r14
	movq	(%r14), %rdi
	callq	__
	movq	%rax, %r13
	movq	(%r14), %rdi
	callq	__
	movq	%rax, %rdi
	callq	_strlen
	movq	%r12, %rdi
	movq	%r13, %rsi
	movl	%eax, %edx
	callq	_strbuf_add_commented_lines
	movq	%r12, %rdi
	movl	$10, %esi
	callq	_strbuf_addch
	movl	-48(%rbp), %edx
	movl	-44(%rbp), %esi
	movl	%r15d, %edi
	callq	_write_or_die
	movl	%r15d, %edi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	callq	_write_commented_object
	movl	%r15d, %edi
	callq	_close
	movq	%r12, %rdi
	callq	_strbuf_release
	movq	%rbx, %rdi
	callq	_strbuf_reset
	movl	8(%rbx), %edi
	movq	%rbx, %rsi
	xorl	%edx, %edx
	callq	_launch_editor
	testq	%rax, %rax
	je	LBB0_10
## %bb.9:
	leaq	L_.str.3(%rip), %rdi
	callq	__
	movq	%rax, %rdi
	callq	_die
LBB0_10:
	movq	%rbx, %rdi
	movl	$1, %esi
	callq	_strbuf_stripspace
LBB0_11:
	addq	$24, %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
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"NOTES_EDITMSG"

	.comm	_O_CREAT,4,2                    ## @O_CREAT
	.comm	_O_TRUNC,4,2                    ## @O_TRUNC
	.comm	_O_WRONLY,4,2                   ## @O_WRONLY
L_.str.1:                               ## @.str.1
	.asciz	"could not create file '%s'"

L_.str.2:                               ## @.str.2
	.asciz	"\n"

	.comm	_note_template,8,3              ## @note_template
L_.str.3:                               ## @.str.3
	.asciz	"please supply the note contents using either -m or -F option"

	.no_dead_strip	_prepare_note_data
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function prepare_note_data
_prepare_note_data:                     ; @prepare_note_data
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x22, x2
	mov	x19, x1
	mov	x20, x0
	ldr	x8, [x1, #24]
	cbz	x8, LBB0_4
LBB0_1:
Lloh0:
	adrp	x8, _STRBUF_INIT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _STRBUF_INIT@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #8]
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	bl	_git_pathdup
	str	w0, [x19, #8]
Lloh5:
	adrp	x8, _O_CREAT@GOTPAGE
Lloh6:
	ldr	x8, [x8, _O_CREAT@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
Lloh8:
	adrp	x9, _O_TRUNC@GOTPAGE
Lloh9:
	ldr	x9, [x9, _O_TRUNC@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh11:
	adrp	x9, _O_WRONLY@GOTPAGE
Lloh12:
	ldr	x9, [x9, _O_WRONLY@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
	orr	w1, w8, w9
	mov	w2, #384
	bl	_open
	mov	x21, x0
	tbnz	w0, #31, LBB0_5
; %bb.2:
	ldr	x8, [x19, #16]
	cbz	x8, LBB0_6
LBB0_3:
	ldp	w2, w1, [x19]
	mov	x0, x21
	bl	_write_or_die
	b	LBB0_8
LBB0_4:
	ldr	x8, [x19, #16]
	cbnz	x8, LBB0_11
	b	LBB0_1
LBB0_5:
Lloh14:
	adrp	x0, l_.str.1@PAGE
Lloh15:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	__
	ldr	w1, [x19, #8]
	bl	_die_errno
	ldr	x8, [x19, #16]
	cbnz	x8, LBB0_3
LBB0_6:
	cbz	x22, LBB0_8
; %bb.7:
	mov	x0, x21
	mov	x1, x22
	bl	_copy_obj_to_fd
LBB0_8:
	add	x0, sp, #8
	mov	w1, #10
	bl	_strbuf_addch
Lloh16:
	adrp	x22, l_.str.2@PAGE
Lloh17:
	add	x22, x22, l_.str.2@PAGEOFF
	mov	x0, x22
	bl	_strlen
	mov	x2, x0
	add	x0, sp, #8
	mov	x1, x22
	bl	_strbuf_add_commented_lines
Lloh18:
	adrp	x23, _note_template@GOTPAGE
Lloh19:
	ldr	x23, [x23, _note_template@GOTPAGEOFF]
	ldr	x0, [x23]
	bl	__
	mov	x22, x0
	ldr	x0, [x23]
	bl	__
	bl	_strlen
	mov	x2, x0
	add	x0, sp, #8
	mov	x1, x22
	bl	_strbuf_add_commented_lines
	add	x0, sp, #8
	mov	w1, #10
	bl	_strbuf_addch
	ldp	w2, w1, [sp, #8]
	mov	x0, x21
	bl	_write_or_die
	mov	x0, x21
	mov	x1, x20
	bl	_write_commented_object
	mov	x0, x21
	bl	_close
	add	x0, sp, #8
	bl	_strbuf_release
	mov	x0, x19
	bl	_strbuf_reset
	ldr	w0, [x19, #8]
	mov	x1, x19
	mov	x2, #0
	bl	_launch_editor
	cbz	x0, LBB0_10
; %bb.9:
Lloh20:
	adrp	x0, l_.str.3@PAGE
Lloh21:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	__
	bl	_die
LBB0_10:
	mov	x0, x19
	mov	w1, #1
	bl	_strbuf_stripspace
LBB0_11:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_STRBUF_INIT,8,2                ; @STRBUF_INIT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"NOTES_EDITMSG"

	.comm	_O_CREAT,4,2                    ; @O_CREAT
	.comm	_O_TRUNC,4,2                    ; @O_TRUNC
	.comm	_O_WRONLY,4,2                   ; @O_WRONLY
l_.str.1:                               ; @.str.1
	.asciz	"could not create file '%s'"

l_.str.2:                               ; @.str.2
	.asciz	"\n"

	.comm	_note_template,8,3              ; @note_template
l_.str.3:                               ; @.str.3
	.asciz	"please supply the note contents using either -m or -F option"

	.no_dead_strip	_prepare_note_data
.subsections_via_symbols
