	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function replace_parents
_replace_parents:                       ## @replace_parents
	.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	%rdx, %r12
	movl	%esi, %r13d
	movq	_STRBUF_INIT@GOTPCREL(%rip), %rax
	movups	(%rax), %xmm0
	movaps	%xmm0, -64(%rbp)
	movq	_the_hash_algo@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%rax), %r15d
	leal	6(%r15), %ebx
	movq	%rdi, -80(%rbp)                 ## 8-byte Spill
	addq	(%rdi), %rbx
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	callq	_starts_with
	movq	%rbx, -72(%rbp)                 ## 8-byte Spill
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	addl	$8, %r15d
	leaq	L_.str(%rip), %r14
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	addq	%r15, %rbx
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_starts_with
	testq	%rax, %rax
	jne	LBB0_2
LBB0_3:
	testl	%r13d, %r13d
	jle	LBB0_11
## %bb.4:
	movl	%r13d, %r15d
	xorl	%r14d, %r14d
	leaq	-88(%rbp), %r13
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r12,%r14,8), %rdi
	movq	%r13, %rsi
	callq	_get_oid
	testq	%rax, %rax
	js	LBB0_6
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	_the_repository@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r13, %rsi
	callq	_lookup_commit_reference
	testq	%rax, %rax
	je	LBB0_8
## %bb.10:                              ##   in Loop: Header=BB0_5 Depth=1
	movq	%rax, %rdi
	callq	_oid_to_hex
	leaq	-64(%rbp), %rdi
	leaq	L_.str.3(%rip), %rsi
	movl	%eax, %edx
	callq	_strbuf_addf
	incq	%r14
	cmpq	%r14, %r15
	jne	LBB0_5
LBB0_11:
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movl	%eax, %esi
	movq	-80(%rbp), %rdi                 ## 8-byte Reload
	subl	(%rdi), %esi
	subl	%eax, %ebx
	movq	-64(%rbp), %rcx
	movl	-56(%rbp), %r8d
	movl	%ebx, %edx
	callq	_strbuf_splice
	leaq	-64(%rbp), %rdi
	callq	_strbuf_release
	xorl	%eax, %eax
	jmp	LBB0_12
LBB0_6:
	leaq	L_.str.1(%rip), %rbx
	jmp	LBB0_9
LBB0_8:
	leaq	L_.str.2(%rip), %rbx
LBB0_9:
	leaq	-64(%rbp), %rdi
	callq	_strbuf_release
	movq	%rbx, %rdi
	callq	__
	movq	(%r12,%r14,8), %rsi
	movl	%eax, %edi
	callq	_error
LBB0_12:
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_STRBUF_INIT,16,3               ## @STRBUF_INIT
	.comm	_the_hash_algo,8,3              ## @the_hash_algo
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"parent "

L_.str.1:                               ## @.str.1
	.asciz	"not a valid object name: '%s'"

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

L_.str.3:                               ## @.str.3
	.asciz	"parent %s\n"

	.no_dead_strip	_replace_parents
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function replace_parents
_replace_parents:                       ; @replace_parents
	.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, x2
	mov	x23, x1
	mov	x20, x0
Lloh0:
	adrp	x8, _STRBUF_INIT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _STRBUF_INIT@GOTPAGEOFF]
Lloh2:
	ldr	q0, [x8]
Lloh3:
	adrp	x8, _the_hash_algo@GOTPAGE
Lloh4:
	ldr	x8, [x8, _the_hash_algo@GOTPAGEOFF]
	str	q0, [sp, #16]
Lloh5:
	ldr	x8, [x8]
	ldr	w24, [x8]
	ldr	x8, [x0]
	add	w9, w24, #6
	add	x21, x8, x9
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x21
	bl	_starts_with
	mov	x22, x21
	cbz	x0, LBB0_3
; %bb.1:
	add	w25, w24, #8
Lloh8:
	adrp	x24, l_.str@PAGE
Lloh9:
	add	x24, x24, l_.str@PAGEOFF
	mov	x22, x21
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	add	x22, x22, x25
	mov	x0, x22
	mov	x1, x24
	bl	_starts_with
	cbnz	x0, LBB0_2
LBB0_3:
	cmp	w23, #1
	b.lt	LBB0_8
; %bb.4:
	mov	w25, w23
Lloh10:
	adrp	x23, l_.str.1@PAGE
Lloh11:
	add	x23, x23, l_.str.1@PAGEOFF
Lloh12:
	adrp	x27, _the_repository@GOTPAGE
Lloh13:
	ldr	x27, [x27, _the_repository@GOTPAGEOFF]
Lloh14:
	adrp	x26, l_.str.2@PAGE
Lloh15:
	add	x26, x26, l_.str.2@PAGEOFF
Lloh16:
	adrp	x24, l_.str.3@PAGE
Lloh17:
	add	x24, x24, l_.str.3@PAGEOFF
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x0, [x19]
	add	x1, sp, #8
	bl	_get_oid
	tbnz	x0, #63, LBB0_10
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w0, [x27]
	add	x1, sp, #8
	bl	_lookup_commit_reference
	cbz	x0, LBB0_9
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	bl	_oid_to_hex
	mov	x2, x0
	add	x0, sp, #16
	mov	x1, x24
	bl	_strbuf_addf
	add	x19, x19, #8
	subs	x25, x25, #1
	b.ne	LBB0_5
LBB0_8:
	ldr	w8, [x20]
	sub	w1, w21, w8
	sub	w2, w22, w21
	ldr	x3, [sp, #16]
	ldr	w4, [sp, #24]
	mov	x0, x20
	bl	_strbuf_splice
	add	x0, sp, #16
	bl	_strbuf_release
	mov	w0, #0
	b	LBB0_11
LBB0_9:
	mov	x23, x26
LBB0_10:
	add	x0, sp, #16
	bl	_strbuf_release
	mov	x0, x23
	bl	__
	ldr	x1, [x19]
	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
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpAdd	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_STRBUF_INIT,16,3               ; @STRBUF_INIT
	.comm	_the_hash_algo,8,3              ; @the_hash_algo
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"parent "

l_.str.1:                               ; @.str.1
	.asciz	"not a valid object name: '%s'"

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

l_.str.3:                               ; @.str.3
	.asciz	"parent %s\n"

	.no_dead_strip	_replace_parents
.subsections_via_symbols
