	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_svn_fs_x__replace_dir_entry    ## -- Begin function svn_fs_x__replace_dir_entry
	.p2align	4, 0x90
_svn_fs_x__replace_dir_entry:           ## @svn_fs_x__replace_dir_entry
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r13
	movq	%rdi, %r14
	movq	(%rdi), %rbx
	movl	12(%rdx), %eax
	movl	%eax, 28(%rbx)
	movl	4(%rbx), %eax
	leal	3(%rax), %edx
	testl	%eax, %eax
	cmovnsl	%eax, %edx
	sarl	$2, %edx
	addl	$2, %edx
	cmpl	%edx, (%rbx)
	jle	LBB0_1
## %bb.11:
	movq	%r14, %rdi
	movq	%r13, %rdx
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_slowly_replace_dir_entry       ## TAILCALL
LBB0_1:
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	movq	%rsi, -64(%rbp)                 ## 8-byte Spill
	leaq	24(%rbx), %rsi
	movq	%rbx, %rdi
	callq	_svn_temp_deserializer__ptr
	movq	%rax, %r15
	leaq	16(%rbx), %rsi
	movq	%rbx, %rdi
	callq	_svn_temp_deserializer__ptr
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movl	8(%r13), %esi
	movl	4(%rbx), %edx
	leaq	-80(%rbp), %rcx
	movq	%r15, %rdi
	callq	_find_entry
	movq	%rax, %r12
	movq	(%r13), %rax
	movq	-80(%rbp), %rcx
	testq	%rax, %rax
	je	LBB0_2
## %bb.4:
	testq	%rcx, %rcx
	jne	LBB0_8
## %bb.5:
	cmpq	$0, 8(%rbx)
	je	LBB0_6
## %bb.7:
	leaq	(%r15,%r12,8), %rdi
	addq	$8, %rdi
	leaq	(%r15,%r12,8), %rsi
	movl	4(%rbx), %edx
	subl	%r12d, %edx
	shll	$3, %edx
	callq	_memmove
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	leaq	(%rax,%r12,8), %rdi
	addq	$8, %rdi
	leaq	(%rax,%r12,8), %rsi
	movl	4(%rbx), %edx
	subl	%r12d, %edx
	shll	$3, %edx
	callq	_memmove
	incl	4(%rbx)
	decq	8(%rbx)
	incl	(%rbx)
	movq	(%r13), %rax
LBB0_8:
	leaq	(%r15,%r12,8), %rcx
	movq	%rcx, -48(%rbp)                 ## 8-byte Spill
	movq	%rax, (%r15,%r12,8)
	movl	20(%rbx), %edx
	movq	-64(%rbp), %r13                 ## 8-byte Reload
	movq	(%r13), %rcx
	movq	%rbx, %rdi
	movq	%r15, %rsi
	movq	-56(%rbp), %r8                  ## 8-byte Reload
	callq	_svn_temp_serializer__init_append
	movq	%rax, %rbx
	leaq	-72(%rbp), %rdx
	movq	%rax, %rdi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	callq	_serialize_dir_entry
	movq	_TRUE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%rbx, %rdi
	movq	%r14, %rsi
	movq	%r13, %rdx
	callq	_return_serialized_dir_context
	movl	%eax, %edi
	callq	_SVN_ERR
	movq	(%r14), %rdi
	leaq	16(%rdi), %rsi
	callq	_svn_temp_deserializer__ptr
	movq	-72(%rbp), %rcx
	movq	%rcx, (%rax,%r12,8)
	jmp	LBB0_9
LBB0_2:
	testq	%rcx, %rcx
	je	LBB0_9
## %bb.3:
	leaq	(%r15,%r12,8), %rdi
	leaq	(%r15,%r12,8), %rsi
	addq	$8, %rsi
	movl	4(%rbx), %edx
	subl	%r12d, %edx
	shll	$3, %edx
	callq	_memmove
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	leaq	(%rax,%r12,8), %rdi
	leaq	(%rax,%r12,8), %rsi
	addq	$8, %rsi
	movl	4(%rbx), %edx
	subl	%r12d, %edx
	shll	$3, %edx
	callq	_memmove
	decl	4(%rbx)
	incq	8(%rbx)
	incl	(%rbx)
LBB0_9:
	movq	_SVN_NO_ERROR@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
LBB0_10:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	movq	%r14, %rdi
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	movq	%r13, %rdx
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	callq	_slowly_replace_dir_entry
	jmp	LBB0_10
	.cfi_endproc
                                        ## -- End function
	.comm	_SVN_NO_ERROR,8,3               ## @SVN_NO_ERROR
	.comm	_TRUE,4,2                       ## @TRUE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function svn_fs_x__replace_dir_entry
lCPI0_0:
	.long	1                               ; 0x1
	.long	4294967295                      ; 0xffffffff
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_svn_fs_x__replace_dir_entry
	.p2align	2
_svn_fs_x__replace_dir_entry:           ; @svn_fs_x__replace_dir_entry
	.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	x22, x3
	mov	x23, x2
	mov	x21, x1
	mov	x20, x0
	ldr	x19, [x0]
	ldr	w8, [x2, #12]
	str	w8, [x19, #28]
	ldp	w8, w9, [x19]
	add	w10, w9, #3
	cmp	w9, #0
	csel	w9, w10, w9, lt
	asr	w9, w9, #2
	add	w9, w9, #2
	cmp	w8, w9
	b.le	LBB0_2
; %bb.1:
	mov	x0, x20
	mov	x1, x21
	mov	x2, x23
	mov	x3, x22
	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
	b	_slowly_replace_dir_entry
LBB0_2:
	add	x1, x19, #24
	mov	x0, x19
	bl	_svn_temp_deserializer__ptr
	mov	x24, x0
	add	x1, x19, #16
	mov	x0, x19
	bl	_svn_temp_deserializer__ptr
	mov	x25, x0
	ldr	w1, [x23, #8]
	ldr	w2, [x19, #4]
	add	x3, sp, #8
	mov	x0, x24
	bl	_find_entry
	mov	x26, x0
	ldr	x8, [x23]
	ldr	x9, [sp, #8]
	cbz	x8, LBB0_7
; %bb.3:
	lsl	x27, x26, #3
	cbnz	x9, LBB0_6
; %bb.4:
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_11
; %bb.5:
	add	x28, x27, #8
	add	x0, x24, x28
	add	x1, x24, x27
	ldr	w8, [x19, #4]
	sub	w8, w8, w26
	lsl	w2, w8, #3
	bl	_memmove
	add	x0, x25, x28
	add	x1, x25, x27
	ldr	w8, [x19, #4]
	sub	w8, w8, w26
	lsl	w2, w8, #3
	bl	_memmove
	ldr	x8, [x19, #8]
	sub	x8, x8, #1
	str	x8, [x19, #8]
	ldr	d0, [x19]
	movi.2s	v1, #1
	add.2s	v0, v0, v1
	str	d0, [x19]
	ldr	x8, [x23]
LBB0_6:
	add	x23, x24, x27
	str	x8, [x23]
	ldr	w2, [x19, #20]
	ldr	x3, [x21]
	mov	x0, x19
	mov	x1, x24
	mov	x4, x22
	bl	_svn_temp_serializer__init_append
	mov	x19, x0
	mov	x2, sp
	mov	x1, x23
	bl	_serialize_dir_entry
Lloh0:
	adrp	x8, _TRUE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _TRUE@GOTPAGEOFF]
Lloh2:
	ldr	w3, [x8]
	mov	x0, x19
	mov	x1, x20
	mov	x2, x21
	bl	_return_serialized_dir_context
	bl	_SVN_ERR
	ldr	x0, [x20]
	add	x1, x0, #16
	bl	_svn_temp_deserializer__ptr
	ldr	x8, [sp]
	str	x8, [x0, x27]
	b	LBB0_9
LBB0_7:
	cbz	x9, LBB0_9
; %bb.8:
	lsl	x20, x26, #3
	add	x0, x24, x20
	add	x21, x20, #8
	add	x1, x24, x21
	ldr	w8, [x19, #4]
	sub	w8, w8, w26
	lsl	w2, w8, #3
	bl	_memmove
	add	x0, x25, x20
	add	x1, x25, x21
	ldr	w8, [x19, #4]
	sub	w8, w8, w26
	lsl	w2, w8, #3
	bl	_memmove
	ldr	x8, [x19, #8]
	add	x8, x8, #1
	str	x8, [x19, #8]
	ldr	d0, [x19]
Lloh3:
	adrp	x8, lCPI0_0@PAGE
Lloh4:
	ldr	d1, [x8, lCPI0_0@PAGEOFF]
	add.2s	v0, v0, v1
	str	d0, [x19]
LBB0_9:
Lloh5:
	adrp	x8, _SVN_NO_ERROR@GOTPAGE
Lloh6:
	ldr	x8, [x8, _SVN_NO_ERROR@GOTPAGEOFF]
Lloh7:
	ldr	x0, [x8]
LBB0_10:
	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
LBB0_11:
	mov	x0, x20
	mov	x1, x21
	mov	x2, x23
	mov	x3, x22
	bl	_slowly_replace_dir_entry
	b	LBB0_10
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdr	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_SVN_NO_ERROR,8,3               ; @SVN_NO_ERROR
	.comm	_TRUE,4,2                       ; @TRUE
.subsections_via_symbols
