	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function collect_reflog
_collect_reflog:                        ## @collect_reflog
	.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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %rbx
	movq	%rsi, %r14
	movq	%rdi, %r15
	movq	_STRBUF_INIT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -40(%rbp)
	movq	24(%rcx), %rdi
	cmpl	$0, (%rdi)
	jne	LBB0_3
## %bb.1:
	movq	%r15, %rdi
	callq	_ref_type
	movq	_REF_TYPE_NORMAL@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_4
## %bb.2:
	movq	24(%rbx), %rdi
LBB0_3:
	leaq	-40(%rbp), %r12
	movq	%r12, %rsi
	movq	%r15, %rdx
	callq	_strbuf_worktree_ref
	movq	_reflog@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	-40(%rbp), %edx
	callq	_FLEX_ALLOC_STR
	movq	%r12, %rdi
	callq	_strbuf_release
	movq	%r14, %rsi
	callq	_oidcpy
	movq	(%rbx), %rsi
	movq	8(%rbx), %rdi
	incq	%rsi
	movl	16(%rbx), %edx
	callq	_ALLOC_GROW
	incq	(%rbx)
LBB0_4:
	xorl	%eax, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_STRBUF_INIT,4,2                ## @STRBUF_INIT
	.comm	_REF_TYPE_NORMAL,8,3            ## @REF_TYPE_NORMAL
	.comm	_reflog,4,2                     ## @reflog
	.no_dead_strip	_collect_reflog
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function collect_reflog
_collect_reflog:                        ; @collect_reflog
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x19, x3
	mov	x20, x1
	mov	x21, x0
Lloh0:
	adrp	x8, _STRBUF_INIT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _STRBUF_INIT@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [sp, #8]
	ldr	x0, [x3, #24]
	ldr	w8, [x0]
	cbnz	w8, LBB0_3
; %bb.1:
	mov	x0, x21
	bl	_ref_type
Lloh3:
	adrp	x8, _REF_TYPE_NORMAL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _REF_TYPE_NORMAL@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	cmp	x0, x8
	b.eq	LBB0_4
; %bb.2:
	ldr	x0, [x19, #24]
LBB0_3:
	add	x1, sp, #8
	mov	x2, x21
	bl	_strbuf_worktree_ref
Lloh6:
	adrp	x8, _reflog@GOTPAGE
Lloh7:
	ldr	x8, [x8, _reflog@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	ldr	w2, [sp, #8]
	bl	_FLEX_ALLOC_STR
	add	x0, sp, #8
	bl	_strbuf_release
	mov	x1, x20
	bl	_oidcpy
	ldp	x8, x0, [x19]
	add	x1, x8, #1
	ldr	w2, [x19, #16]
	bl	_ALLOC_GROW
	ldr	x8, [x19]
	add	x8, x8, #1
	str	x8, [x19]
LBB0_4:
	mov	w0, #0
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_STRBUF_INIT,4,2                ; @STRBUF_INIT
	.comm	_REF_TYPE_NORMAL,8,3            ; @REF_TYPE_NORMAL
	.comm	_reflog,4,2                     ; @reflog
	.no_dead_strip	_collect_reflog
.subsections_via_symbols
