	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function files_reflog_iterator_advance
_files_reflog_iterator_advance:         ## @files_reflog_iterator_advance
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	(%rdi), %rbx
	movq	%rbx, %rdi
	callq	_dir_iterator_advance
	movl	%eax, %r13d
	movq	_ITER_OK@GOTPCREL(%rip), %r15
	cmpl	(%r15), %eax
	jne	LBB0_9
## %bb.1:
	leaq	32(%r14), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	leaq	L_.str(%rip), %r12
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	%rbx, %rdi
	callq	_dir_iterator_advance
	cmpl	(%r15), %eax
	jne	LBB0_8
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	16(%rbx), %edi
	callq	_S_ISREG
	testl	%eax, %eax
	je	LBB0_7
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	(%rbx), %rdi
	cmpb	$46, (%rdi)
	je	LBB0_7
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%r12, %rsi
	callq	_ends_with
	testq	%rax, %rax
	jne	LBB0_7
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	36(%r14), %edi
	movl	8(%rbx), %esi
	xorl	%edx, %edx
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	leaq	-44(%rbp), %r8
	callq	_refs_read_ref_full
	testq	%rax, %rax
	je	LBB0_11
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	12(%rbx), %esi
	leaq	L_.str.1(%rip), %rdi
	callq	_error
	jmp	LBB0_7
LBB0_8:
	movl	%eax, %r13d
LBB0_9:
	movq	$0, (%r14)
	movq	%r14, %rdi
	callq	_ref_iterator_abort
	movq	_ITER_ERROR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	cmpl	%ecx, %eax
	cmovel	%ecx, %r13d
LBB0_10:
	movl	%r13d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_11:
	movl	8(%rbx), %eax
	movl	%eax, 24(%r14)
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, 16(%r14)
	movl	-44(%rbp), %eax
	movl	%eax, 8(%r14)
	movl	(%r15), %r13d
	jmp	LBB0_10
	.cfi_endproc
                                        ## -- End function
	.comm	_ITER_OK,4,2                    ## @ITER_OK
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	".lock"

L_.str.1:                               ## @.str.1
	.asciz	"bad ref for %s"

	.comm	_ITER_ERROR,4,2                 ## @ITER_ERROR
	.no_dead_strip	_files_reflog_iterator_advance
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function files_reflog_iterator_advance
_files_reflog_iterator_advance:         ; @files_reflog_iterator_advance
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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, x0
	ldr	x20, [x0]
	mov	x0, x20
	bl	_dir_iterator_advance
	mov	x24, x0
Lloh0:
	adrp	x25, _ITER_OK@GOTPAGE
Lloh1:
	ldr	x25, [x25, _ITER_OK@GOTPAGEOFF]
	ldr	w8, [x25]
	cmp	w0, w8
	b.ne	LBB0_9
; %bb.1:
	add	x21, x19, #32
Lloh2:
	adrp	x22, l_.str@PAGE
Lloh3:
	add	x22, x22, l_.str@PAGEOFF
Lloh4:
	adrp	x23, l_.str.1@PAGE
Lloh5:
	add	x23, x23, l_.str.1@PAGEOFF
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x20
	bl	_dir_iterator_advance
	ldr	w8, [x25]
	cmp	w0, w8
	b.ne	LBB0_8
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x20, #16]
	bl	_S_ISREG
	cbz	w0, LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x0, [x20]
	ldrb	w8, [x0]
	cmp	w8, #46
	b.eq	LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x1, x22
	bl	_ends_with
	cbnz	x0, LBB0_2
; %bb.6:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w0, [x19, #36]
	ldr	w1, [x20, #8]
	add	x4, sp, #12
	mov	w2, #0
	mov	x3, x21
	bl	_refs_read_ref_full
	cbz	x0, LBB0_11
; %bb.7:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w1, [x20, #12]
	mov	x0, x23
	bl	_error
	b	LBB0_2
LBB0_8:
	mov	x24, x0
LBB0_9:
	str	xzr, [x19]
	mov	x0, x19
	bl	_ref_iterator_abort
Lloh6:
	adrp	x8, _ITER_ERROR@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ITER_ERROR@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	cmp	w0, w8
	csel	w0, w8, w24, eq
LBB0_10:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_11:
	ldr	w8, [x20, #8]
	str	w8, [x19, #24]
	str	x21, [x19, #16]
	ldr	w8, [sp, #12]
	str	w8, [x19, #8]
	ldr	w0, [x25]
	b	LBB0_10
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_ITER_OK,4,2                    ; @ITER_OK
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	".lock"

l_.str.1:                               ; @.str.1
	.asciz	"bad ref for %s"

	.comm	_ITER_ERROR,4,2                 ; @ITER_ERROR
	.no_dead_strip	_files_reflog_iterator_advance
.subsections_via_symbols
