	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function notes_copy_from_stdin
_notes_copy_from_stdin:                 ## @notes_copy_from_stdin
	.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	%rsi, %rbx
	movl	%edi, -76(%rbp)                 ## 4-byte Spill
	movq	_STRBUF_INIT@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -56(%rbp)
	testq	%rsi, %rsi
	je	LBB0_3
## %bb.1:
	movq	%rbx, %rdi
	callq	_init_copy_notes_for_rewrite
	xorl	%r14d, %r14d
	movq	%rax, %rcx
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	testq	%rax, %rax
	je	LBB0_23
## %bb.2:
	xorl	%eax, %eax
	jmp	LBB0_4
LBB0_3:
	movq	_NOTES_INIT_WRITABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	xorl	%eax, %eax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	xorl	%edi, %edi
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_init_notes
	movq	_default_notes_tree@GOTPCREL(%rip), %rax
LBB0_4:
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	_stdin@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-56(%rbp), %rdi
	callq	_strbuf_getline_lf
	movq	_EOF@GOTPCREL(%rip), %rdx
	xorl	%ecx, %ecx
	movq	%rcx, -48(%rbp)                 ## 8-byte Spill
	cmpq	(%rdx), %rax
	jne	LBB0_5
LBB0_19:
	movq	_the_repository@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rdx
	testq	%rbx, %rbx
	je	LBB0_20
## %bb.21:
	movq	-72(%rbp), %rsi                 ## 8-byte Reload
	callq	_finish_copy_notes_for_rewrite
	jmp	LBB0_22
LBB0_5:
	xorl	%eax, %eax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	leaq	-56(%rbp), %r14
	leaq	-88(%rbp), %r12
	leaq	-80(%rbp), %r15
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_18:                                ##   in Loop: Header=BB0_6 Depth=1
	movq	%r13, %rdi
	callq	_strbuf_list_free
	movq	_stdin@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_strbuf_getline_lf
	movq	_EOF@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_19
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r14, %rdi
	movl	$32, %esi
	callq	_strbuf_split
	movq	%rax, %r13
	movq	(%rax), %rdi
	testq	%rdi, %rdi
	je	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	cmpq	$0, 8(%r13)
	jne	LBB0_9
LBB0_8:                                 ##   in Loop: Header=BB0_6 Depth=1
	leaq	L_.str.1(%rip), %rdi
	callq	__
	movq	-56(%rbp), %rsi
	movl	%eax, %edi
	callq	_die
	movq	(%r13), %rdi
LBB0_9:                                 ##   in Loop: Header=BB0_6 Depth=1
	callq	_strbuf_rtrim
	movq	8(%r13), %rdi
	callq	_strbuf_rtrim
	movq	(%r13), %rax
	movq	(%rax), %rdi
	movq	%r12, %rsi
	callq	_get_oid
	testq	%rax, %rax
	je	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_6 Depth=1
	leaq	L_.str.2(%rip), %rdi
	callq	__
	movq	(%r13), %rcx
	movq	(%rcx), %rsi
	movl	%eax, %edi
	callq	_die
LBB0_11:                                ##   in Loop: Header=BB0_6 Depth=1
	movq	8(%r13), %rax
	movq	(%rax), %rdi
	movq	%r15, %rsi
	callq	_get_oid
	testq	%rax, %rax
	je	LBB0_13
## %bb.12:                              ##   in Loop: Header=BB0_6 Depth=1
	leaq	L_.str.2(%rip), %rdi
	callq	__
	movq	8(%r13), %rcx
	movq	(%rcx), %rsi
	movl	%eax, %edi
	callq	_die
LBB0_13:                                ##   in Loop: Header=BB0_6 Depth=1
	testq	%rbx, %rbx
	je	LBB0_15
## %bb.14:                              ##   in Loop: Header=BB0_6 Depth=1
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	movq	%r12, %rsi
	movq	%r15, %rdx
	callq	_copy_note_for_rewrite
	testl	%eax, %eax
	jne	LBB0_17
	jmp	LBB0_18
	.p2align	4, 0x90
LBB0_15:                                ##   in Loop: Header=BB0_6 Depth=1
	movq	_combine_notes_overwrite@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movq	%r12, %rsi
	movq	%r15, %rdx
	movl	-76(%rbp), %ecx                 ## 4-byte Reload
	callq	_copy_note
	testl	%eax, %eax
	je	LBB0_18
LBB0_17:                                ##   in Loop: Header=BB0_6 Depth=1
	leaq	L_.str.3(%rip), %rdi
	callq	__
	movq	(%r13), %rcx
	movq	8(%r13), %rdx
	movq	(%rcx), %rsi
	movq	(%rdx), %rdx
	movl	%eax, %edi
	callq	_error
	movl	$1, %eax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	jmp	LBB0_18
LBB0_20:
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rsi
	callq	_commit_notes
	movq	%rbx, %rdi
	callq	_free_notes
LBB0_22:
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	leaq	-56(%rbp), %rdi
	callq	_strbuf_release
LBB0_23:
	movl	%r14d, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_STRBUF_INIT,8,3                ## @STRBUF_INIT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Notes added by 'git notes copy'"

	.comm	_NOTES_INIT_WRITABLE,4,2        ## @NOTES_INIT_WRITABLE
	.comm	_default_notes_tree,4,2         ## @default_notes_tree
	.comm	_stdin,4,2                      ## @stdin
	.comm	_EOF,8,3                        ## @EOF
L_.str.1:                               ## @.str.1
	.asciz	"malformed input line: '%s'."

L_.str.2:                               ## @.str.2
	.asciz	"failed to resolve '%s' as a valid ref."

	.comm	_combine_notes_overwrite,4,2    ## @combine_notes_overwrite
L_.str.3:                               ## @.str.3
	.asciz	"failed to copy notes from '%s' to '%s'"

	.comm	_the_repository,4,2             ## @the_repository
	.no_dead_strip	_notes_copy_from_stdin
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function notes_copy_from_stdin
_notes_copy_from_stdin:                 ; @notes_copy_from_stdin
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x8, _STRBUF_INIT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _STRBUF_INIT@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #24]
	cbz	x1, LBB0_3
; %bb.1:
	mov	x0, x19
	bl	_init_copy_notes_for_rewrite
	cbz	x0, LBB0_23
; %bb.2:
	mov	x21, x0
	mov	x22, #0
	b	LBB0_4
LBB0_3:
Lloh3:
	adrp	x8, _NOTES_INIT_WRITABLE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _NOTES_INIT_WRITABLE@GOTPAGEOFF]
Lloh5:
	ldr	w3, [x8]
	mov	x0, #0
	mov	x2, #0
	bl	_init_notes
	mov	x21, #0
Lloh6:
	adrp	x22, _default_notes_tree@GOTPAGE
Lloh7:
	ldr	x22, [x22, _default_notes_tree@GOTPAGEOFF]
LBB0_4:
Lloh8:
	adrp	x28, _stdin@GOTPAGE
Lloh9:
	ldr	x28, [x28, _stdin@GOTPAGEOFF]
	ldr	w1, [x28]
	add	x0, sp, #24
	bl	_strbuf_getline_lf
Lloh10:
	adrp	x24, _EOF@GOTPAGE
Lloh11:
	ldr	x24, [x24, _EOF@GOTPAGEOFF]
	ldr	x8, [x24]
	cmp	x0, x8
	b.ne	LBB0_8
; %bb.5:
	mov	w23, #0
LBB0_6:
Lloh12:
	adrp	x8, _the_repository@GOTPAGE
Lloh13:
	ldr	x8, [x8, _the_repository@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
Lloh15:
	adrp	x2, l_.str@PAGE
Lloh16:
	add	x2, x2, l_.str@PAGEOFF
	cbz	x19, LBB0_21
; %bb.7:
	mov	x1, x21
	bl	_finish_copy_notes_for_rewrite
	b	LBB0_22
LBB0_8:
	mov	w23, #0
Lloh17:
	adrp	x25, l_.str.3@PAGE
Lloh18:
	add	x25, x25, l_.str.3@PAGEOFF
Lloh19:
	adrp	x26, l_.str.2@PAGE
Lloh20:
	add	x26, x26, l_.str.2@PAGEOFF
	b	LBB0_10
LBB0_9:                                 ;   in Loop: Header=BB0_10 Depth=1
	mov	x0, x27
	bl	_strbuf_list_free
	ldr	w1, [x28]
	add	x0, sp, #24
	bl	_strbuf_getline_lf
	ldr	x8, [x24]
	cmp	x0, x8
	b.eq	LBB0_6
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	add	x0, sp, #24
	mov	w1, #32
	bl	_strbuf_split
	mov	x27, x0
	ldr	x0, [x0]
	cbz	x0, LBB0_12
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=1
	ldr	x8, [x27, #8]
	cbnz	x8, LBB0_13
LBB0_12:                                ;   in Loop: Header=BB0_10 Depth=1
Lloh21:
	adrp	x0, l_.str.1@PAGE
Lloh22:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	__
	ldr	x1, [sp, #24]
	bl	_die
	ldr	x0, [x27]
LBB0_13:                                ;   in Loop: Header=BB0_10 Depth=1
	bl	_strbuf_rtrim
	ldr	x0, [x27, #8]
	bl	_strbuf_rtrim
	ldr	x8, [x27]
	ldr	x0, [x8]
	add	x1, sp, #16
	bl	_get_oid
	cbz	x0, LBB0_15
; %bb.14:                               ;   in Loop: Header=BB0_10 Depth=1
	mov	x0, x26
	bl	__
	ldr	x8, [x27]
	ldr	x1, [x8]
	bl	_die
LBB0_15:                                ;   in Loop: Header=BB0_10 Depth=1
	ldr	x8, [x27, #8]
	ldr	x0, [x8]
	add	x1, sp, #8
	bl	_get_oid
	cbz	x0, LBB0_17
; %bb.16:                               ;   in Loop: Header=BB0_10 Depth=1
	mov	x0, x26
	bl	__
	ldr	x8, [x27, #8]
	ldr	x1, [x8]
	bl	_die
LBB0_17:                                ;   in Loop: Header=BB0_10 Depth=1
	cbz	x19, LBB0_19
; %bb.18:                               ;   in Loop: Header=BB0_10 Depth=1
	add	x1, sp, #16
	add	x2, sp, #8
	mov	x0, x21
	bl	_copy_note_for_rewrite
	cbnz	w0, LBB0_20
	b	LBB0_9
LBB0_19:                                ;   in Loop: Header=BB0_10 Depth=1
Lloh23:
	adrp	x8, _combine_notes_overwrite@GOTPAGE
Lloh24:
	ldr	x8, [x8, _combine_notes_overwrite@GOTPAGEOFF]
Lloh25:
	ldr	w4, [x8]
	add	x1, sp, #16
	add	x2, sp, #8
	mov	x0, x22
	mov	x3, x20
	bl	_copy_note
	cbz	w0, LBB0_9
LBB0_20:                                ;   in Loop: Header=BB0_10 Depth=1
	mov	x0, x25
	bl	__
	ldp	x8, x9, [x27]
	ldr	x1, [x8]
	ldr	x2, [x9]
	bl	_error
	mov	w23, #1
	b	LBB0_9
LBB0_21:
	mov	x1, x22
	bl	_commit_notes
	mov	x0, x22
	bl	_free_notes
LBB0_22:
	add	x0, sp, #24
	bl	_strbuf_release
	b	LBB0_24
LBB0_23:
	mov	w23, #0
LBB0_24:
	mov	x0, x23
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.cfi_endproc
                                        ; -- End function
	.comm	_STRBUF_INIT,8,3                ; @STRBUF_INIT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Notes added by 'git notes copy'"

	.comm	_NOTES_INIT_WRITABLE,4,2        ; @NOTES_INIT_WRITABLE
	.comm	_default_notes_tree,4,2         ; @default_notes_tree
	.comm	_stdin,4,2                      ; @stdin
	.comm	_EOF,8,3                        ; @EOF
l_.str.1:                               ; @.str.1
	.asciz	"malformed input line: '%s'."

l_.str.2:                               ; @.str.2
	.asciz	"failed to resolve '%s' as a valid ref."

	.comm	_combine_notes_overwrite,4,2    ; @combine_notes_overwrite
l_.str.3:                               ; @.str.3
	.asciz	"failed to copy notes from '%s' to '%s'"

	.comm	_the_repository,4,2             ; @the_repository
	.no_dead_strip	_notes_copy_from_stdin
.subsections_via_symbols
