	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function for_each_replace_name
_for_each_replace_name:                 ## @for_each_replace_name
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, -72(%rbp)                 ## 8-byte Spill
	movq	%rdi, %rbx
	movq	_STRBUF_INIT@GOTPCREL(%rip), %rax
	movups	(%rax), %xmm0
	movaps	%xmm0, -64(%rbp)
	movq	_git_replace_ref_base@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-64(%rbp), %rdi
	callq	_strbuf_addstr
	movq	(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_1
## %bb.2:
	movq	-64(%rbp), %r15
	addq	$8, %rbx
	xorl	%r14d, %r14d
	leaq	-80(%rbp), %r12
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	-8(%rbx), %rsi
	leaq	L_.str(%rip), %rdi
LBB0_5:                                 ##   in Loop: Header=BB0_3 Depth=1
	callq	_error
	movl	$1, %r14d
LBB0_9:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	(%rbx), %rdi
	addq	$8, %rbx
	testq	%rdi, %rdi
	je	LBB0_10
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r12, %rsi
	callq	_get_oid
	testq	%rax, %rax
	jne	LBB0_4
## %bb.6:                               ##   in Loop: Header=BB0_3 Depth=1
	leaq	-64(%rbp), %r13
	movq	%r13, %rdi
	movq	%r15, %rsi
	callq	_strbuf_setlen
	movq	%r12, %rdi
	callq	_oid_to_hex
	movq	%r13, %rdi
	movl	%eax, %esi
	callq	_strbuf_addstr
	movq	-56(%rbp), %rdi
	leaq	(%rdi,%r15), %r13
	movq	%r12, %rsi
	callq	_read_ref
	testq	%rax, %rax
	je	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_3 Depth=1
	leaq	L_.str.1(%rip), %rdi
	callq	__
	movq	%rax, %rdi
	movq	%r13, %rsi
	jmp	LBB0_5
LBB0_8:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	-56(%rbp), %rsi
	movq	%r13, %rdi
	movq	%r12, %rdx
	callq	*-72(%rbp)                      ## 8-byte Folded Reload
	testq	%rax, %rax
	movl	$1, %eax
	cmovnel	%eax, %r14d
	jmp	LBB0_9
LBB0_1:
	xorl	%r14d, %r14d
LBB0_10:
	leaq	-64(%rbp), %rdi
	callq	_strbuf_release
	movl	%r14d, %eax
	addq	$40, %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	_git_replace_ref_base,4,2       ## @git_replace_ref_base
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"failed to resolve '%s' as a valid ref"

L_.str.1:                               ## @.str.1
	.asciz	"replace ref '%s' not found"

	.no_dead_strip	_for_each_replace_name
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function for_each_replace_name
_for_each_replace_name:                 ; @for_each_replace_name
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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	x19, x1
	mov	x22, x0
Lloh0:
	adrp	x8, _STRBUF_INIT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _STRBUF_INIT@GOTPAGEOFF]
Lloh2:
	ldr	q0, [x8]
	str	q0, [sp, #16]
Lloh3:
	adrp	x8, _git_replace_ref_base@GOTPAGE
Lloh4:
	ldr	x8, [x8, _git_replace_ref_base@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	add	x0, sp, #16
	bl	_strbuf_addstr
	ldr	x0, [x22]
	cbz	x0, LBB0_8
; %bb.1:
	mov	w21, #0
	ldr	x20, [sp, #16]
	add	x25, x22, #8
Lloh6:
	adrp	x22, l_.str.1@PAGE
Lloh7:
	add	x22, x22, l_.str.1@PAGEOFF
Lloh8:
	adrp	x23, l_.str@PAGE
Lloh9:
	add	x23, x23, l_.str@PAGEOFF
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldur	x1, [x25, #-8]
	mov	x0, x23
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	bl	_error
	mov	w21, #1
	ldr	x0, [x25], #8
	cbz	x0, LBB0_9
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	add	x1, sp, #8
	bl	_get_oid
	cbnz	x0, LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	add	x0, sp, #16
	mov	x1, x20
	bl	_strbuf_setlen
	add	x0, sp, #8
	bl	_oid_to_hex
	mov	x1, x0
	add	x0, sp, #16
	bl	_strbuf_addstr
	ldr	x0, [sp, #24]
	add	x24, x0, x20
	add	x1, sp, #8
	bl	_read_ref
	cbz	x0, LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x22
	bl	__
	mov	x1, x24
	b	LBB0_3
LBB0_7:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	x1, [sp, #24]
	add	x2, sp, #8
	mov	x0, x24
	blr	x19
	cmp	x0, #0
	csinc	w21, w21, wzr, eq
	ldr	x0, [x25], #8
	cbnz	x0, LBB0_4
	b	LBB0_9
LBB0_8:
	mov	w21, #0
LBB0_9:
	add	x0, sp, #16
	bl	_strbuf_release
	mov	x0, x21
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_STRBUF_INIT,16,3               ; @STRBUF_INIT
	.comm	_git_replace_ref_base,4,2       ; @git_replace_ref_base
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"failed to resolve '%s' as a valid ref"

l_.str.1:                               ; @.str.1
	.asciz	"replace ref '%s' not found"

	.no_dead_strip	_for_each_replace_name
.subsections_via_symbols
