	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function reflog_iterator_begin
_reflog_iterator_begin:                 ## @reflog_iterator_begin
	.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	%rsi, %rdx
	movq	%rdi, %r14
	movq	_STRBUF_INIT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -40(%rbp)
	leaq	L_.str(%rip), %rsi
	leaq	-40(%rbp), %rdi
	callq	_strbuf_addf
	movl	-40(%rbp), %edi
	xorl	%esi, %esi
	callq	_dir_iterator_begin
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r15
	movl	$1, %edi
	movl	$24, %esi
	callq	_xcalloc
	movq	%rax, %rbx
	leaq	16(%rax), %r12
	movq	_files_reflog_iterator_vtable@GOTPCREL(%rip), %rsi
	movq	%r12, %rdi
	xorl	%edx, %edx
	callq	_base_ref_iterator_init
	movq	%r15, 8(%rbx)
	movq	%r14, (%rbx)
	leaq	-40(%rbp), %rdi
	callq	_strbuf_release
	jmp	LBB0_3
LBB0_1:
	leaq	-40(%rbp), %rdi
	callq	_strbuf_release
	xorl	%eax, %eax
	callq	_empty_ref_iterator_begin
	movq	%rax, %r12
LBB0_3:
	movq	%r12, %rax
	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
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s/logs"

	.comm	_files_reflog_iterator_vtable,4,2 ## @files_reflog_iterator_vtable
	.no_dead_strip	_reflog_iterator_begin
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function reflog_iterator_begin
_reflog_iterator_begin:                 ; @reflog_iterator_begin
	.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	x2, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _STRBUF_INIT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _STRBUF_INIT@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [sp, #8]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	add	x0, sp, #8
	bl	_strbuf_addf
	ldr	w0, [sp, #8]
	mov	w1, #0
	bl	_dir_iterator_begin
	cbz	x0, LBB0_2
; %bb.1:
	mov	x21, x0
	mov	w0, #1
	mov	w1, #24
	bl	_xcalloc
	mov	x22, x0
	add	x20, x0, #16
Lloh5:
	adrp	x1, _files_reflog_iterator_vtable@GOTPAGE
Lloh6:
	ldr	x1, [x1, _files_reflog_iterator_vtable@GOTPAGEOFF]
	mov	x0, x20
	mov	w2, #0
	bl	_base_ref_iterator_init
	stp	x19, x21, [x22]
	add	x0, sp, #8
	bl	_strbuf_release
	b	LBB0_3
LBB0_2:
	add	x0, sp, #8
	bl	_strbuf_release
	bl	_empty_ref_iterator_begin
	mov	x20, x0
LBB0_3:
	mov	x0, x20
	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 AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_STRBUF_INIT,4,2                ; @STRBUF_INIT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s/logs"

	.comm	_files_reflog_iterator_vtable,4,2 ; @files_reflog_iterator_vtable
	.no_dead_strip	_reflog_iterator_begin
.subsections_via_symbols
