	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function update_stages
_update_stages:                         ## @update_stages
	.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	%r8, -56(%rbp)                  ## 8-byte Spill
	movq	%rcx, %r12
	movq	%rdx, %r15
	movq	%rsi, %r13
	movq	%rdi, %r14
	movq	_ADD_CACHE_OK_TO_ADD@GOTPCREL(%rip), %rax
	movq	_ADD_CACHE_SKIP_DFCHECK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
	orl	(%rax), %ebx
	movq	(%rdi), %rax
	movl	(%rax), %edi
	callq	_remove_file_from_index
	movl	$-1, %ecx
	testq	%rax, %rax
	je	LBB0_1
LBB0_8:
	movl	%ecx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movq	%r13, -48(%rbp)                 ## 8-byte Spill
	testq	%r15, %r15
	movq	%r14, %r13
	je	LBB0_3
## %bb.2:
	movq	%r13, %rdi
	movq	%r15, %rsi
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	movl	$1, %ecx
	xorl	%r8d, %r8d
	movl	%ebx, %r9d
	callq	_add_cacheinfo
	movl	$-1, %ecx
	testq	%rax, %rax
	jne	LBB0_8
LBB0_3:
	testq	%r12, %r12
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	je	LBB0_5
## %bb.4:
	movq	%r13, %rdi
	movq	%r12, %rsi
	movq	%r14, %rdx
	movl	$2, %ecx
	xorl	%r8d, %r8d
	movl	%ebx, %r9d
	callq	_add_cacheinfo
	movl	$-1, %ecx
	testq	%rax, %rax
	jne	LBB0_8
LBB0_5:
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	testq	%rsi, %rsi
	je	LBB0_7
## %bb.6:
	movq	%r13, %rdi
	movq	%r14, %rdx
	movl	$3, %ecx
	xorl	%r8d, %r8d
	movl	%ebx, %r9d
	callq	_add_cacheinfo
	movl	$-1, %ecx
	testq	%rax, %rax
	jne	LBB0_8
LBB0_7:
	xorl	%ecx, %ecx
	jmp	LBB0_8
	.cfi_endproc
                                        ## -- End function
	.comm	_ADD_CACHE_OK_TO_ADD,4,2        ## @ADD_CACHE_OK_TO_ADD
	.comm	_ADD_CACHE_SKIP_DFCHECK,4,2     ## @ADD_CACHE_SKIP_DFCHECK
	.no_dead_strip	_update_stages
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function update_stages
_update_stages:                         ; @update_stages
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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, x4
	mov	x23, x3
	mov	x24, x2
	mov	x20, x1
	mov	x21, x0
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _ADD_CACHE_OK_TO_ADD@GOTPAGE
Lloh1:
	ldr	x9, [x9, _ADD_CACHE_OK_TO_ADD@GOTPAGEOFF]
Lloh2:
	ldr	w22, [x9]
Lloh3:
	adrp	x9, _ADD_CACHE_SKIP_DFCHECK@GOTPAGE
Lloh4:
	ldr	x9, [x9, _ADD_CACHE_SKIP_DFCHECK@GOTPAGEOFF]
Lloh5:
	ldr	w25, [x9]
	ldr	w0, [x8]
	bl	_remove_file_from_index
	cbz	x0, LBB0_3
LBB0_1:
	mov	w0, #-1
LBB0_2:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_3:
	orr	w22, w25, w22
	cbz	x24, LBB0_5
; %bb.4:
	mov	x0, x21
	mov	x1, x24
	mov	x2, x20
	mov	w3, #1
	mov	w4, #0
	mov	x5, x22
	bl	_add_cacheinfo
	cbnz	x0, LBB0_1
LBB0_5:
	cbz	x23, LBB0_7
; %bb.6:
	mov	x0, x21
	mov	x1, x23
	mov	x2, x20
	mov	w3, #2
	mov	w4, #0
	mov	x5, x22
	bl	_add_cacheinfo
	cbnz	x0, LBB0_1
LBB0_7:
	cbz	x19, LBB0_9
; %bb.8:
	mov	x0, x21
	mov	x1, x19
	mov	x2, x20
	mov	w3, #3
	mov	w4, #0
	mov	x5, x22
	bl	_add_cacheinfo
	cbnz	x0, LBB0_1
LBB0_9:
	mov	w0, #0
	b	LBB0_2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_ADD_CACHE_OK_TO_ADD,4,2        ; @ADD_CACHE_OK_TO_ADD
	.comm	_ADD_CACHE_SKIP_DFCHECK,4,2     ; @ADD_CACHE_SKIP_DFCHECK
	.no_dead_strip	_update_stages
.subsections_via_symbols
