	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function read_delta_window
_read_delta_window:                     ## @read_delta_window
	.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	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, %r12
	movq	%rcx, -80(%rbp)                 ## 8-byte Spill
	movq	%rdx, %r14
	movl	%esi, %r13d
	movq	%rdi, %rbx
	cmpl	$0, (%rdx)
	je	LBB0_2
LBB0_4:
	xorl	%r15d, %r15d
	jmp	LBB0_5
LBB0_2:
	movl	36(%r14), %edi
	callq	_svn_fs_x__is_revision
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	cmpq	$0, 48(%r14)
	setne	%r15b
LBB0_5:
	xorl	%edi, %edi
	cmpl	%r13d, (%r14)
	setle	%dil
	callq	_SVN_ERR_ASSERT
	movq	40(%r14), %rax
	movl	(%rax), %edi
	leaq	36(%r14), %rsi
	movq	_SVN_FS_X__ITEM_TYPE_ANY_REP@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%rsi, -64(%rbp)                 ## 8-byte Spill
	xorl	%edx, %edx
	movq	%r12, %r8
	callq	_dbg__log_access
	movl	%eax, %edi
	callq	_SVN_ERR
	movl	%r15d, -48(%rbp)                ## 4-byte Spill
	testb	%r15b, %r15b
	je	LBB0_7
## %bb.6:
	leaq	-44(%rbp), %rcx
	movq	%rbx, %rdi
	movq	%r14, %rsi
	movl	%r13d, %edx
	movq	-80(%rbp), %r8                  ## 8-byte Reload
	movq	%r12, %r9
	callq	_get_cached_window
	movl	%eax, %edi
	callq	_SVN_ERR
	cmpl	$0, -44(%rbp)
	jne	LBB0_17
LBB0_7:
	movq	%rbx, -72(%rbp)                 ## 8-byte Spill
	movq	40(%r14), %rdi
	callq	_auto_open_shared_file
	movl	%eax, %edi
	callq	_SVN_ERR
	movq	40(%r14), %rax
	movq	8(%rax), %r15
	cmpb	$0, -48(%rbp)                   ## 1-byte Folded Reload
	je	LBB0_9
## %bb.8:
	movl	(%rax), %esi
	movq	%r12, (%rsp)
	xorl	%edi, %edi
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	movq	%r15, %rcx
	xorl	%r8d, %r8d
	movq	-80(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %r9
	callq	_block_read
	movl	%eax, %edi
	callq	_SVN_ERR
	leaq	-44(%rbp), %rcx
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	movq	%r14, %rsi
	movl	%r13d, %edx
	movq	%rbx, %r8
	movq	%r12, %r9
	callq	_get_cached_window
	movl	%eax, %edi
	callq	_SVN_ERR
	cmpl	$0, -44(%rbp)
	jne	LBB0_17
LBB0_9:
	movq	%r14, %rdi
	movq	%r12, %rsi
	callq	_auto_set_start_offset
	movl	%eax, %edi
	callq	_SVN_ERR
	movq	%r14, %rdi
	movq	%r12, %rsi
	callq	_auto_read_diff_version
	movl	%eax, %edi
	callq	_SVN_ERR
	movq	16(%r14), %rdx
	addq	8(%r14), %rdx
	movq	%rdx, -88(%rbp)
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_svn_fs_x__rev_file_seek
	movl	%eax, %edi
	callq	_SVN_ERR
	movq	%r12, -64(%rbp)                 ## 8-byte Spill
	movq	%r12, %rdi
	callq	_svn_pool_create
	movq	%rax, %rbx
	cmpl	%r13d, (%r14)
	jge	LBB0_13
## %bb.10:
	leaq	-88(%rbp), %r12
	.p2align	4, 0x90
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rdi
	callq	_svn_pool_clear
	leaq	-56(%rbp), %rdi
	movq	%r15, %rsi
	callq	_svn_fs_x__rev_file_get
	movl	%eax, %edi
	callq	_SVN_ERR
	movq	-56(%rbp), %rdi
	movl	32(%r14), %esi
	movq	%rbx, %rdx
	callq	_svn_txdelta_skip_svndiff_window
	movl	%eax, %edi
	callq	_SVN_ERR
	incl	(%r14)
	movq	-56(%rbp), %rsi
	movq	%r12, %rdi
	movq	%rbx, %rdx
	callq	_svn_io_file_get_offset
	movl	%eax, %edi
	callq	_SVN_ERR
	movq	-88(%rbp), %rax
	subq	8(%r14), %rax
	movq	%rax, 16(%r14)
	cmpq	%rax, 24(%r14)
	jle	LBB0_14
## %bb.12:                              ##   in Loop: Header=BB0_11 Depth=1
	cmpl	%r13d, (%r14)
	jl	LBB0_11
LBB0_13:
	movq	%rbx, %rdi
	callq	_svn_pool_destroy
	leaq	-96(%rbp), %rdi
	movq	%r15, %rsi
	callq	_svn_fs_x__rev_file_stream
	movl	%eax, %edi
	callq	_SVN_ERR
	movq	-96(%rbp), %rsi
	movl	32(%r14), %edx
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	movq	-80(%rbp), %rcx                 ## 8-byte Reload
	callq	_svn_txdelta_read_svndiff_window
	movl	%eax, %edi
	callq	_SVN_ERR
	leaq	-56(%rbp), %rdi
	movq	%r15, %rsi
	callq	_svn_fs_x__rev_file_offset
	movl	%eax, %edi
	callq	_SVN_ERR
	movq	-56(%rbp), %rax
	subq	8(%r14), %rax
	movq	%rax, 16(%r14)
	cmpq	%rax, 24(%r14)
	jge	LBB0_15
LBB0_14:
	movq	_SVN_ERR_FS_CORRUPT@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	leaq	L_.str(%rip), %rdi
	callq	__
	movl	%ebx, %edi
	xorl	%esi, %esi
	movl	%eax, %edx
	callq	_svn_error_create
	jmp	LBB0_18
LBB0_15:
	cmpb	$0, -48(%rbp)                   ## 1-byte Folded Reload
	je	LBB0_17
## %bb.16:
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rdi
	movq	-88(%rbp), %rdx
	movq	%r14, %rsi
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	callq	_set_cached_window
	movl	%eax, %edi
	callq	_SVN_ERR
LBB0_17:
	movq	_SVN_NO_ERROR@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
LBB0_18:
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SVN_FS_X__ITEM_TYPE_ANY_REP,4,2 ## @SVN_FS_X__ITEM_TYPE_ANY_REP
	.comm	_SVN_NO_ERROR,8,3               ## @SVN_NO_ERROR
	.comm	_SVN_ERR_FS_CORRUPT,4,2         ## @SVN_ERR_FS_CORRUPT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Reading one svndiff window read beyond the end of the representation"

	.no_dead_strip	_read_delta_window
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function read_delta_window
_read_delta_window:                     ; @read_delta_window
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	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
	mov	x19, x4
	mov	x22, x3
	mov	x20, x2
	mov	x23, x1
	mov	x21, x0
	ldr	w8, [x2]
	cbz	w8, LBB0_2
LBB0_1:
	mov	w26, #0
	b	LBB0_4
LBB0_2:
	ldr	w0, [x20, #36]
	bl	_svn_fs_x__is_revision
	cbz	x0, LBB0_1
; %bb.3:
	ldr	x8, [x20, #48]
	cmp	x8, #0
	cset	w26, ne
LBB0_4:
	ldr	w8, [x20]
	cmp	w8, w23
	cset	w0, le
	bl	_SVN_ERR_ASSERT
	ldr	x8, [x20, #40]
	ldr	w0, [x8]
	add	x25, x20, #36
Lloh0:
	adrp	x8, _SVN_FS_X__ITEM_TYPE_ANY_REP@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SVN_FS_X__ITEM_TYPE_ANY_REP@GOTPAGEOFF]
Lloh2:
	ldr	w3, [x8]
	mov	x1, x25
	mov	x2, #0
	mov	x4, x19
	bl	_dbg__log_access
	bl	_SVN_ERR
	cbz	w26, LBB0_6
; %bb.5:
	add	x3, sp, #28
	mov	x0, x21
	mov	x1, x20
	mov	x2, x23
	mov	x4, x22
	mov	x5, x19
	bl	_get_cached_window
	bl	_SVN_ERR
	ldr	w8, [sp, #28]
	cbnz	w8, LBB0_15
LBB0_6:
	ldr	x0, [x20, #40]
	bl	_auto_open_shared_file
	bl	_SVN_ERR
	ldr	x8, [x20, #40]
	ldr	x24, [x8, #8]
	cbz	w26, LBB0_8
; %bb.7:
	ldr	w1, [x8]
	mov	x0, #0
	mov	x2, x25
	mov	x3, x24
	mov	x4, #0
	mov	x5, x22
	mov	x6, x19
	bl	_block_read
	bl	_SVN_ERR
	add	x3, sp, #28
	mov	x0, x21
	mov	x1, x20
	mov	x2, x23
	mov	x4, x22
	mov	x5, x19
	bl	_get_cached_window
	bl	_SVN_ERR
	ldr	w8, [sp, #28]
	cbnz	w8, LBB0_15
LBB0_8:
	mov	x0, x20
	mov	x1, x19
	bl	_auto_set_start_offset
	bl	_SVN_ERR
	mov	x0, x20
	mov	x1, x19
	bl	_auto_read_diff_version
	bl	_SVN_ERR
	ldp	x8, x9, [x20, #8]
	add	x2, x9, x8
	str	x2, [sp, #16]
	mov	x0, x24
	mov	x1, #0
	bl	_svn_fs_x__rev_file_seek
	bl	_SVN_ERR
	mov	x0, x19
	bl	_svn_pool_create
	mov	x25, x0
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x20]
	cmp	w8, w23
	b.ge	LBB0_11
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=1
	mov	x0, x25
	bl	_svn_pool_clear
	add	x0, sp, #8
	mov	x1, x24
	bl	_svn_fs_x__rev_file_get
	bl	_SVN_ERR
	ldr	x0, [sp, #8]
	ldr	w1, [x20, #32]
	mov	x2, x25
	bl	_svn_txdelta_skip_svndiff_window
	bl	_SVN_ERR
	ldr	w8, [x20]
	add	w8, w8, #1
	str	w8, [x20]
	ldr	x1, [sp, #8]
	add	x0, sp, #16
	mov	x2, x25
	bl	_svn_io_file_get_offset
	bl	_SVN_ERR
	ldr	x8, [sp, #16]
	ldr	x9, [x20, #8]
	ldr	x10, [x20, #24]
	sub	x8, x8, x9
	cmp	x10, x8
	str	x8, [x20, #16]
	b.gt	LBB0_9
	b	LBB0_12
LBB0_11:
	mov	x0, x25
	bl	_svn_pool_destroy
	mov	x0, sp
	mov	x1, x24
	bl	_svn_fs_x__rev_file_stream
	bl	_SVN_ERR
	ldr	x1, [sp]
	ldr	w2, [x20, #32]
	mov	x0, x21
	mov	x3, x22
	bl	_svn_txdelta_read_svndiff_window
	bl	_SVN_ERR
	add	x0, sp, #8
	mov	x1, x24
	bl	_svn_fs_x__rev_file_offset
	bl	_SVN_ERR
	ldr	x8, [sp, #8]
	ldr	x9, [x20, #8]
	ldr	x10, [x20, #24]
	sub	x8, x8, x9
	cmp	x10, x8
	str	x8, [x20, #16]
	b.ge	LBB0_13
LBB0_12:
Lloh3:
	adrp	x8, _SVN_ERR_FS_CORRUPT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SVN_ERR_FS_CORRUPT@GOTPAGEOFF]
Lloh5:
	ldr	w19, [x8]
Lloh6:
	adrp	x0, l_.str@PAGE
Lloh7:
	add	x0, x0, l_.str@PAGEOFF
	bl	__
	mov	x2, x0
	mov	x0, x19
	mov	x1, #0
	bl	_svn_error_create
	b	LBB0_16
LBB0_13:
	cbz	w26, LBB0_15
; %bb.14:
	ldr	x0, [x21]
	ldr	x2, [sp, #16]
	mov	x1, x20
	mov	x3, x19
	bl	_set_cached_window
	bl	_SVN_ERR
LBB0_15:
Lloh8:
	adrp	x8, _SVN_NO_ERROR@GOTPAGE
Lloh9:
	ldr	x8, [x8, _SVN_NO_ERROR@GOTPAGEOFF]
Lloh10:
	ldr	x0, [x8]
LBB0_16:
	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
	add	sp, sp, #112
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_SVN_FS_X__ITEM_TYPE_ANY_REP,4,2 ; @SVN_FS_X__ITEM_TYPE_ANY_REP
	.comm	_SVN_NO_ERROR,8,3               ; @SVN_NO_ERROR
	.comm	_SVN_ERR_FS_CORRUPT,4,2         ; @SVN_ERR_FS_CORRUPT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Reading one svndiff window read beyond the end of the representation"

	.no_dead_strip	_read_delta_window
.subsections_via_symbols
