	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function copy_notes_for_rebase
_copy_notes_for_rebase:                 ## @copy_notes_for_rebase
	.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	%rdi, %rbx
	movq	_STRBUF_INIT@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	leaq	L_.str(%rip), %rdi
	callq	__
	movq	%rax, %r14
	movl	(%rbx), %edi
	callq	_assert
	leaq	L_.str.2(%rip), %rdi
	callq	_init_copy_notes_for_rewrite
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r15
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	leaq	L_.str.3(%rip), %rsi
	movq	%rbx, %rdi
	callq	_am_path
	leaq	L_.str.4(%rip), %rsi
	movl	%eax, %edi
	callq	_xfopen
	leaq	-48(%rbp), %rdi
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	%rax, %rsi
	callq	_strbuf_getline_lf
	xorl	%r13d, %r13d
	testl	%eax, %eax
	jne	LBB0_13
## %bb.3:
	movq	_the_hash_algo@GOTPCREL(%rip), %r14
	leaq	-96(%rbp), %rbx
	leaq	-88(%rbp), %r12
	xorl	%r13d, %r13d
	movq	%r15, -72(%rbp)                 ## 8-byte Spill
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_4 Depth=1
	leaq	-48(%rbp), %rdi
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	callq	_strbuf_getline_lf
	testl	%eax, %eax
	jne	LBB0_13
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r14), %rax
	movl	(%rax), %eax
	addl	%eax, %eax
	incl	%eax
	movl	-44(%rbp), %edi
	cmpl	%eax, -48(%rbp)
	jne	LBB0_7
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	%rbx, %rsi
	leaq	-80(%rbp), %rdx
	callq	_parse_oid_hex
	testq	%rax, %rax
	jne	LBB0_6
## %bb.8:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	-80(%rbp), %rdi
	cmpb	$32, (%rdi)
	jne	LBB0_6
## %bb.9:                               ##   in Loop: Header=BB0_4 Depth=1
	incq	%rdi
	movq	%r12, %rsi
	callq	_get_oid_hex
	testq	%rax, %rax
	jne	LBB0_6
## %bb.10:                              ##   in Loop: Header=BB0_4 Depth=1
	movq	%r15, %rdi
	movq	%rbx, %rsi
	movq	%r12, %rdx
	callq	_copy_note_for_rewrite
	testq	%rax, %rax
	je	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_4 Depth=1
	leaq	L_.str.5(%rip), %rdi
	callq	__
	movq	%rax, %r15
	movq	%rbx, %rdi
	callq	_oid_to_hex
	movq	%r14, %r13
	movq	%rax, %r14
	movq	%r12, %rdi
	callq	_oid_to_hex
	movq	%r15, %rdi
	movq	-72(%rbp), %r15                 ## 8-byte Reload
	movq	%r14, %rsi
	movq	%r13, %r14
	movq	%rax, %rdx
	xorl	%eax, %eax
	callq	_error
	movl	%eax, %r13d
	jmp	LBB0_12
LBB0_1:
	xorl	%r13d, %r13d
	jmp	LBB0_14
LBB0_6:
	movl	-44(%rbp), %edi
LBB0_7:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movslq	%edi, %rsi
	movq	%rax, %rdi
	xorl	%eax, %eax
	callq	_error
	movl	%eax, %r13d
LBB0_13:
	movq	_the_repository@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rdx
	movq	%r15, %rsi
	callq	_finish_copy_notes_for_rewrite
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	callq	_fclose
	leaq	-48(%rbp), %rdi
	callq	_strbuf_release
LBB0_14:
	movl	%r13d, %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,2                ## @STRBUF_INIT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Malformed input line: '%s'."

L_.str.1:                               ## @.str.1
	.asciz	"Notes added by 'git rebase'"

L_.str.2:                               ## @.str.2
	.asciz	"rebase"

L_.str.3:                               ## @.str.3
	.asciz	"rewritten"

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

	.comm	_the_hash_algo,8,3              ## @the_hash_algo
L_.str.5:                               ## @.str.5
	.asciz	"Failed to copy notes from '%s' to '%s'"

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

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function copy_notes_for_rebase
_copy_notes_for_rebase:                 ; @copy_notes_for_rebase
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	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
	mov	x21, x0
Lloh0:
	adrp	x8, _STRBUF_INIT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _STRBUF_INIT@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #40]
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	bl	__
	mov	x20, x0
	ldr	w0, [x21]
	bl	_assert
Lloh5:
	adrp	x0, l_.str.2@PAGE
Lloh6:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_init_copy_notes_for_rewrite
	cbz	x0, LBB0_10
; %bb.1:
	mov	x19, x0
Lloh7:
	adrp	x1, l_.str.3@PAGE
Lloh8:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x21
	bl	_am_path
Lloh9:
	adrp	x1, l_.str.4@PAGE
Lloh10:
	add	x1, x1, l_.str.4@PAGEOFF
	bl	_xfopen
	mov	x21, x0
	add	x0, sp, #40
	mov	x1, x21
	bl	_strbuf_getline_lf
	mov	w22, #0
	cbnz	w0, LBB0_13
; %bb.2:
Lloh11:
	adrp	x25, _the_hash_algo@GOTPAGE
Lloh12:
	ldr	x25, [x25, _the_hash_algo@GOTPAGEOFF]
Lloh13:
	adrp	x23, l_.str.5@PAGE
Lloh14:
	add	x23, x23, l_.str.5@PAGEOFF
	b	LBB0_4
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x0, sp, #40
	mov	x1, x21
	bl	_strbuf_getline_lf
	cbnz	w0, LBB0_13
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x25]
	ldr	w8, [x8]
	mov	w9, #1
	bfi	w9, w8, #1, #31
	ldp	w8, w0, [sp, #40]
	cmp	w8, w9
	b.ne	LBB0_12
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	add	x1, sp, #32
	add	x2, sp, #16
                                        ; kill: def $w0 killed $w0 killed $x0
	bl	_parse_oid_hex
	cbnz	x0, LBB0_11
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [sp, #16]
	ldrb	w9, [x8]
	cmp	w9, #32
	b.ne	LBB0_11
; %bb.7:                                ;   in Loop: Header=BB0_4 Depth=1
	add	x0, x8, #1
	add	x1, sp, #24
	bl	_get_oid_hex
	cbnz	x0, LBB0_11
; %bb.8:                                ;   in Loop: Header=BB0_4 Depth=1
	add	x1, sp, #32
	add	x2, sp, #24
	mov	x0, x19
	bl	_copy_note_for_rewrite
	cbz	x0, LBB0_3
; %bb.9:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x23
	bl	__
	mov	x22, x0
	add	x0, sp, #32
	bl	_oid_to_hex
	mov	x24, x0
	add	x0, sp, #24
	bl	_oid_to_hex
	str	x0, [sp]
	mov	x0, x22
	mov	x1, x24
	bl	_error
	mov	x22, x0
	b	LBB0_3
LBB0_10:
	mov	w22, #0
	b	LBB0_14
LBB0_11:
	ldr	w0, [sp, #44]
LBB0_12:
	sxtw	x1, w0
	mov	x0, x20
	bl	_error
	mov	x22, x0
LBB0_13:
Lloh15:
	adrp	x8, _the_repository@GOTPAGE
Lloh16:
	ldr	x8, [x8, _the_repository@GOTPAGEOFF]
Lloh17:
	ldr	w0, [x8]
Lloh18:
	adrp	x2, l_.str.1@PAGE
Lloh19:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x1, x19
	bl	_finish_copy_notes_for_rewrite
	mov	x0, x21
	bl	_fclose
	add	x0, sp, #40
	bl	_strbuf_release
LBB0_14:
	mov	x0, x22
	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
	add	sp, sp, #128
	ret
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_STRBUF_INIT,8,2                ; @STRBUF_INIT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Malformed input line: '%s'."

l_.str.1:                               ; @.str.1
	.asciz	"Notes added by 'git rebase'"

l_.str.2:                               ; @.str.2
	.asciz	"rebase"

l_.str.3:                               ; @.str.3
	.asciz	"rewritten"

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

	.comm	_the_hash_algo,8,3              ; @the_hash_algo
l_.str.5:                               ; @.str.5
	.asciz	"Failed to copy notes from '%s' to '%s'"

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