	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function create_graft
_create_graft:                          ## @create_graft
	.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
	movl	%ecx, %r14d
	movl	%edx, %r13d
	movq	%rsi, %r12
	movl	%edi, %r15d
	movq	(%rsi), %rbx
	movq	_STRBUF_INIT@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	leaq	-64(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_get_oid
	testq	%rax, %rax
	js	LBB0_7
## %bb.1:
	movq	%r15, -80(%rbp)                 ## 8-byte Spill
	movq	_the_repository@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	-64(%rbp), %rsi
	callq	_lookup_commit_reference
	testq	%rax, %rax
	je	LBB0_8
## %bb.2:
	movq	%rax, %r15
	movl	%r14d, -68(%rbp)                ## 4-byte Spill
	movl	%r13d, -72(%rbp)                ## 4-byte Spill
	leaq	-96(%rbp), %rsi
	movq	%rax, %rdi
	callq	_get_commit_buffer
	movq	%rax, %r13
	movq	-96(%rbp), %rdx
	leaq	-48(%rbp), %r14
	movq	%r14, %rdi
	movq	%rax, %rsi
	callq	_strbuf_add
	movq	%r15, -88(%rbp)                 ## 8-byte Spill
	movq	%r15, %rdi
	movq	%r13, %rsi
	callq	_unuse_commit_buffer
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	leal	-1(%rax), %esi
	leaq	8(%r12), %rdx
	movq	%r14, %rdi
	callq	_replace_parents
	testq	%rax, %rax
	js	LBB0_6
## %bb.3:
	leaq	-48(%rbp), %rdi
	callq	_remove_signature
	testq	%rax, %rax
	movq	%rbx, %r13
	je	LBB0_5
## %bb.4:
	leaq	L_.str.2(%rip), %rdi
	callq	__
	movl	%eax, %edi
	movq	%r13, %rsi
	xorl	%eax, %eax
	callq	_warning
	leaq	L_.str.3(%rip), %rdi
	callq	__
	movl	%eax, %edi
	xorl	%eax, %eax
	callq	_warning
LBB0_5:
	movq	-88(%rbp), %r15                 ## 8-byte Reload
	movq	%r15, %rdi
	movq	-80(%rbp), %rsi                 ## 8-byte Reload
                                        ## kill: def $esi killed $esi killed $rsi
	movq	%r12, %rdx
	callq	_check_mergetags
	testq	%rax, %rax
	movl	-72(%rbp), %r14d                ## 4-byte Reload
	je	LBB0_13
LBB0_6:
	leaq	-48(%rbp), %rdi
	callq	_strbuf_release
	movl	$-1, %ebx
	jmp	LBB0_12
LBB0_7:
	leaq	L_.str(%rip), %rdi
	jmp	LBB0_9
LBB0_8:
	leaq	L_.str.1(%rip), %rdi
LBB0_9:
	callq	__
	movl	%eax, %edi
	movq	%rbx, %rsi
LBB0_10:
	callq	_error
LBB0_11:
	movl	%eax, %ebx
LBB0_12:
	movl	%ebx, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_13:
	movl	-48(%rbp), %esi
	movl	-44(%rbp), %edi
	movq	_commit_type@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-56(%rbp), %rcx
	callq	_write_object_file
	movq	%rax, %rbx
	leaq	-48(%rbp), %rdi
	callq	_strbuf_release
	testq	%rbx, %rbx
	je	LBB0_15
## %bb.14:
	leaq	L_.str.4(%rip), %rdi
	callq	__
	movl	%eax, %edi
	movq	%r13, %rsi
	jmp	LBB0_10
LBB0_15:
	leaq	-56(%rbp), %rsi
	movq	%r15, %rdi
	callq	_oideq
	testq	%rax, %rax
	je	LBB0_18
## %bb.16:
	cmpl	$0, -68(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_19
## %bb.17:
	leaq	L_.str.5(%rip), %rdi
	callq	__
	movl	%eax, %r14d
	movq	%r15, %rdi
	callq	_oid_to_hex
	xorl	%ebx, %ebx
	movl	%r14d, %edi
	movq	%rax, %rsi
	xorl	%eax, %eax
	callq	_warning
	jmp	LBB0_12
LBB0_18:
	leaq	L_.str.7(%rip), %rdx
	leaq	-56(%rbp), %rcx
	movq	%r13, %rdi
	movq	%r15, %rsi
	movl	%r14d, %r8d
	callq	_replace_object_oid
	jmp	LBB0_11
LBB0_19:
	leaq	L_.str.6(%rip), %rdi
	callq	__
	movl	%eax, %ebx
	movq	%r15, %rdi
	callq	_oid_to_hex
	movl	%ebx, %edi
	movq	%rax, %rsi
	jmp	LBB0_10
	.cfi_endproc
                                        ## -- End function
	.comm	_STRBUF_INIT,8,2                ## @STRBUF_INIT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"not a valid object name: '%s'"

	.comm	_the_repository,4,2             ## @the_repository
L_.str.1:                               ## @.str.1
	.asciz	"could not parse %s"

L_.str.2:                               ## @.str.2
	.asciz	"the original commit '%s' has a gpg signature"

L_.str.3:                               ## @.str.3
	.asciz	"the signature will be removed in the replacement commit!"

	.comm	_commit_type,4,2                ## @commit_type
L_.str.4:                               ## @.str.4
	.asciz	"could not write replacement commit for: '%s'"

L_.str.5:                               ## @.str.5
	.asciz	"graft for '%s' unnecessary"

L_.str.6:                               ## @.str.6
	.asciz	"new commit is the same as the old one: '%s'"

L_.str.7:                               ## @.str.7
	.asciz	"replacement"

	.no_dead_strip	_create_graft
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function create_graft
_create_graft:                          ; @create_graft
	.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, x3
	mov	x20, x2
	mov	x23, x1
	mov	x24, x0
	ldr	x19, [x1]
Lloh0:
	adrp	x8, _STRBUF_INIT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _STRBUF_INIT@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #24]
	add	x1, sp, #40
	mov	x0, x19
	bl	_get_oid
	tbnz	x0, #63, LBB0_7
; %bb.1:
Lloh3:
	adrp	x8, _the_repository@GOTPAGE
Lloh4:
	ldr	x8, [x8, _the_repository@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	add	x1, sp, #40
	bl	_lookup_commit_reference
	cbz	x0, LBB0_8
; %bb.2:
	mov	x22, x0
	add	x1, sp, #16
	bl	_get_commit_buffer
	mov	x25, x0
	ldr	x2, [sp, #16]
	add	x0, sp, #24
	mov	x1, x25
	bl	_strbuf_add
	mov	x0, x22
	mov	x1, x25
	bl	_unuse_commit_buffer
	sub	w1, w24, #1
	add	x2, x23, #8
	add	x0, sp, #24
	bl	_replace_parents
	tbnz	x0, #63, LBB0_6
; %bb.3:
	add	x0, sp, #24
	bl	_remove_signature
	cbz	x0, LBB0_5
; %bb.4:
Lloh6:
	adrp	x0, l_.str.2@PAGE
Lloh7:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	__
	str	x19, [sp]
	bl	_warning
Lloh8:
	adrp	x0, l_.str.3@PAGE
Lloh9:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	__
	bl	_warning
LBB0_5:
	mov	x0, x22
	mov	x1, x24
	mov	x2, x23
	bl	_check_mergetags
	cbz	x0, LBB0_12
LBB0_6:
	add	x0, sp, #24
	bl	_strbuf_release
	mov	w0, #-1
	b	LBB0_11
LBB0_7:
Lloh10:
	adrp	x0, l_.str@PAGE
Lloh11:
	add	x0, x0, l_.str@PAGEOFF
	b	LBB0_9
LBB0_8:
Lloh12:
	adrp	x0, l_.str.1@PAGE
Lloh13:
	add	x0, x0, l_.str.1@PAGEOFF
LBB0_9:
	bl	__
	mov	x1, x19
LBB0_10:
	bl	_error
LBB0_11:
	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
LBB0_12:
	ldp	w1, w0, [sp, #24]
Lloh14:
	adrp	x8, _commit_type@GOTPAGE
Lloh15:
	ldr	x8, [x8, _commit_type@GOTPAGEOFF]
Lloh16:
	ldr	w2, [x8]
	add	x3, sp, #32
	bl	_write_object_file
	mov	x23, x0
	add	x0, sp, #24
	bl	_strbuf_release
	cbz	x23, LBB0_14
; %bb.13:
Lloh17:
	adrp	x0, l_.str.4@PAGE
Lloh18:
	add	x0, x0, l_.str.4@PAGEOFF
	b	LBB0_9
LBB0_14:
	add	x1, sp, #32
	mov	x0, x22
	bl	_oideq
	cbz	x0, LBB0_17
; %bb.15:
	cbz	w21, LBB0_18
; %bb.16:
Lloh19:
	adrp	x0, l_.str.5@PAGE
Lloh20:
	add	x0, x0, l_.str.5@PAGEOFF
	bl	__
	mov	x19, x0
	mov	x0, x22
	bl	_oid_to_hex
	str	x0, [sp]
	mov	x0, x19
	bl	_warning
	mov	w0, #0
	b	LBB0_11
LBB0_17:
Lloh21:
	adrp	x2, l_.str.7@PAGE
Lloh22:
	add	x2, x2, l_.str.7@PAGEOFF
	add	x3, sp, #32
	mov	x0, x19
	mov	x1, x22
	mov	x4, x20
	bl	_replace_object_oid
	b	LBB0_11
LBB0_18:
Lloh23:
	adrp	x0, l_.str.6@PAGE
Lloh24:
	add	x0, x0, l_.str.6@PAGEOFF
	bl	__
	mov	x19, x0
	mov	x0, x22
	bl	_oid_to_hex
	mov	x1, x0
	mov	x0, x19
	b	LBB0_10
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpAdd	Lloh23, Lloh24
	.cfi_endproc
                                        ; -- End function
	.comm	_STRBUF_INIT,8,2                ; @STRBUF_INIT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"not a valid object name: '%s'"

	.comm	_the_repository,4,2             ; @the_repository
l_.str.1:                               ; @.str.1
	.asciz	"could not parse %s"

l_.str.2:                               ; @.str.2
	.asciz	"the original commit '%s' has a gpg signature"

l_.str.3:                               ; @.str.3
	.asciz	"the signature will be removed in the replacement commit!"

	.comm	_commit_type,4,2                ; @commit_type
l_.str.4:                               ; @.str.4
	.asciz	"could not write replacement commit for: '%s'"

l_.str.5:                               ; @.str.5
	.asciz	"graft for '%s' unnecessary"

l_.str.6:                               ; @.str.6
	.asciz	"new commit is the same as the old one: '%s'"

l_.str.7:                               ; @.str.7
	.asciz	"replacement"

	.no_dead_strip	_create_graft
.subsections_via_symbols
