	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function do_reupdate
_do_reupdate:                           ## @do_reupdate
	.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	%rdx, %rcx
	movq	_PATHSPEC_PREFER_CWD@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	8(%rsi), %r8
	leaq	-48(%rbp), %rdi
	xorl	%esi, %esi
	callq	_parse_pathspec
	leaq	L_.str(%rip), %rdi
	movq	_head_oid@GOTPCREL(%rip), %rsi
	callq	_read_ref
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	_active_nr@GOTPCREL(%rip), %r15
	cmpl	$0, (%r15)
	jle	LBB0_13
## %bb.1:
	xorl	%r13d, %r13d
	movq	_active_cache@GOTPCREL(%rip), %r14
	jmp	LBB0_3
LBB0_9:                                 ##   in Loop: Header=BB0_3 Depth=1
	leaq	12(%rbx), %rdi
	movq	%r14, %rsi
	addq	$12, %rsi
	callq	_oideq
	testq	%rax, %rax
	je	LBB0_10
## %bb.14:                              ##   in Loop: Header=BB0_3 Depth=1
	movq	%r14, %rdi
	callq	_discard_cache_entry
	movq	_active_cache@GOTPCREL(%rip), %r14
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_3 Depth=1
	incq	%r13
	movslq	(%r15), %rax
	cmpq	%rax, %r13
	jge	LBB0_13
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r14), %rax
	movq	(%rax,%r13,8), %rbx
	movq	%rbx, %rdi
	callq	_ce_stage
	testq	%rax, %rax
	jne	LBB0_12
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	_the_index@GOTPCREL(%rip), %rdi
	movq	%rbx, %rsi
	leaq	-48(%rbp), %rdx
	xorl	%ecx, %ecx
	callq	_ce_path_match
	testl	%eax, %eax
	je	LBB0_12
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	cmpq	$0, -56(%rbp)                   ## 8-byte Folded Reload
	je	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_3 Depth=1
	xorl	%r12d, %r12d
	jmp	LBB0_11
LBB0_7:                                 ##   in Loop: Header=BB0_3 Depth=1
	movl	8(%rbx), %r14d
	movq	%rbx, %rdi
	callq	_ce_namelen
	xorl	%edi, %edi
	movq	_head_oid@GOTPCREL(%rip), %rsi
	movl	%r14d, %edx
	movl	%eax, %ecx
	xorl	%r8d, %r8d
	callq	_read_one_ent
	movl	$0, %r12d
	testq	%rax, %rax
	je	LBB0_11
## %bb.8:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	%rax, %r14
	movq	(%rbx), %rax
	cmpq	(%r14), %rax
	je	LBB0_9
LBB0_10:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	%r14, %r12
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_3 Depth=1
	movl	(%r15), %r14d
	movl	8(%rbx), %edi
	callq	_xstrdup
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_update_one
	movq	%rbx, %rdi
	callq	_free
	movq	%r12, %rdi
	callq	_discard_cache_entry
	movl	(%r15), %eax
	cmpl	%eax, %r14d
	movq	_active_cache@GOTPCREL(%rip), %r14
	je	LBB0_12
## %bb.2:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	$0, %r13d
	testl	%eax, %eax
	jg	LBB0_3
LBB0_13:
	leaq	-48(%rbp), %rdi
	callq	_clear_pathspec
	xorl	%eax, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PATHSPEC_PREFER_CWD,4,2        ## @PATHSPEC_PREFER_CWD
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"HEAD"

	.comm	_head_oid,4,2                   ## @head_oid
	.comm	_active_nr,4,2                  ## @active_nr
	.comm	_active_cache,8,3               ## @active_cache
	.comm	_the_index,4,2                  ## @the_index
	.no_dead_strip	_do_reupdate
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function do_reupdate
_do_reupdate:                           ; @do_reupdate
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x3, x2
Lloh0:
	adrp	x8, _PATHSPEC_PREFER_CWD@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PATHSPEC_PREFER_CWD@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	add	x4, x1, #8
	add	x0, sp, #8
	mov	w1, #0
	bl	_parse_pathspec
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
Lloh5:
	adrp	x1, _head_oid@GOTPAGE
Lloh6:
	ldr	x1, [x1, _head_oid@GOTPAGEOFF]
	bl	_read_ref
Lloh7:
	adrp	x24, _active_nr@GOTPAGE
Lloh8:
	ldr	x24, [x24, _active_nr@GOTPAGEOFF]
	ldr	w8, [x24]
	cmp	w8, #1
	b.lt	LBB0_13
; %bb.1:
	mov	x19, x0
	mov	x26, #0
Lloh9:
	adrp	x25, _active_cache@GOTPAGE
Lloh10:
	ldr	x25, [x25, _active_cache@GOTPAGEOFF]
Lloh11:
	adrp	x20, _the_index@GOTPAGE
Lloh12:
	ldr	x20, [x20, _the_index@GOTPAGEOFF]
Lloh13:
	adrp	x21, _head_oid@GOTPAGE
Lloh14:
	ldr	x21, [x21, _head_oid@GOTPAGEOFF]
	b	LBB0_5
LBB0_2:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	x0, x22, #12
	add	x1, x23, #12
	bl	_oideq
	cbz	x0, LBB0_9
; %bb.3:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x23
	bl	_discard_cache_entry
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	x26, x26, #1
	ldrsw	x8, [x24]
	cmp	x26, x8
	b.ge	LBB0_13
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x25]
	ldr	x22, [x8, x26, lsl #3]
	mov	x0, x22
	bl	_ce_stage
	cbnz	x0, LBB0_4
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	add	x2, sp, #8
	mov	x0, x20
	mov	x1, x22
	mov	x3, #0
	bl	_ce_path_match
	cbz	w0, LBB0_4
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	cbz	x19, LBB0_11
; %bb.8:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x23, #0
LBB0_9:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldr	w27, [x24]
	ldr	w0, [x22, #8]
	bl	_xstrdup
	mov	x22, x0
	bl	_update_one
	mov	x0, x22
	bl	_free
	mov	x0, x23
	bl	_discard_cache_entry
	ldr	w8, [x24]
	cmp	w27, w8
	b.eq	LBB0_4
; %bb.10:                               ;   in Loop: Header=BB0_5 Depth=1
	mov	x26, #0
	cmp	w8, #1
	b.ge	LBB0_5
	b	LBB0_13
LBB0_11:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w23, [x22, #8]
	mov	x0, x22
	bl	_ce_namelen
	mov	x3, x0
	mov	x0, #0
	mov	x1, x21
	mov	x2, x23
	mov	w4, #0
	bl	_read_one_ent
	mov	x23, x0
	cbz	x0, LBB0_9
; %bb.12:                               ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [x22]
	ldr	x9, [x23]
	cmp	x8, x9
	b.eq	LBB0_2
	b	LBB0_9
LBB0_13:
	add	x0, sp, #8
	bl	_clear_pathspec
	mov	w0, #0
	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
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_PATHSPEC_PREFER_CWD,4,2        ; @PATHSPEC_PREFER_CWD
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"HEAD"

	.comm	_head_oid,4,2                   ; @head_oid
	.comm	_active_nr,4,2                  ; @active_nr
	.comm	_active_cache,8,3               ; @active_cache
	.comm	_the_index,4,2                  ; @the_index
	.no_dead_strip	_do_reupdate
.subsections_via_symbols
