	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function read_data
_read_data:                             ## @read_data
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movq	40(%rsi), %rax
	testq	%rax, %rax
	je	LBB0_5
## %bb.1:
	movq	%rax, (%r14)
	cmpq	%rax, 48(%rbx)
	je	LBB0_2
## %bb.3:
	movq	16(%rax), %rax
	jmp	LBB0_4
LBB0_5:
	cmpq	$0, 24(%rbx)
	je	LBB0_6
## %bb.7:
	movq	%rdx, %r15
	movq	%rbx, %rdi
	callq	_get_buffer
	movq	%rax, (%r14)
	movq	(%rbx), %rcx
	movq	8(%rbx), %rdx
	cmpq	%rdx, %rcx
	cmovlq	%rcx, %rdx
	movq	%rdx, (%rax)
	movq	$0, 16(%rax)
	movq	24(%rbx), %rdi
	movq	(%r14), %rdx
	movl	8(%rdx), %esi
	movq	%r15, %rcx
	callq	_svn_io_file_read
	movq	(%r14), %rsi
	testq	%rax, %rax
	je	LBB0_8
## %bb.11:
	movq	%rax, %r12
	movq	%rbx, %rdi
	callq	_return_buffer
	movq	%r12, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_svn_error_trace                ## TAILCALL
LBB0_2:
	movq	$0, 48(%rbx)
	xorl	%eax, %eax
LBB0_4:
	movq	%rax, 40(%rbx)
	movq	(%r14), %rax
	movl	(%rax), %eax
	subl	%eax, 32(%rbx)
LBB0_10:
	movq	_SVN_NO_ERROR@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	movq	$0, (%r14)
	jmp	LBB0_10
LBB0_8:
	movq	(%rsi), %rax
	addq	%rax, 16(%rbx)
	subq	%rax, (%rbx)
	jne	LBB0_10
## %bb.9:
	movq	24(%rbx), %rdi
	addq	$16, %rbx
	movq	%r15, %rsi
	callq	_svn_io_file_close
	movl	%eax, %edi
	callq	_SVN_ERR
	xorps	%xmm0, %xmm0
	movups	%xmm0, (%rbx)
	jmp	LBB0_10
	.cfi_endproc
                                        ## -- End function
	.comm	_SVN_NO_ERROR,8,3               ## @SVN_NO_ERROR
	.no_dead_strip	_read_data
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function read_data
_read_data:                             ; @read_data
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x1
	mov	x20, x0
	ldr	x8, [x1, #40]
	cbz	x8, LBB0_3
; %bb.1:
	str	x8, [x20]
	ldr	x9, [x19, #48]
	cmp	x9, x8
	b.eq	LBB0_6
; %bb.2:
	ldr	x8, [x8, #16]
	b	LBB0_7
LBB0_3:
	ldr	x8, [x19, #24]
	cbz	x8, LBB0_10
; %bb.4:
	mov	x21, x2
	mov	x0, x19
	bl	_get_buffer
	str	x0, [x20]
	ldp	x8, x9, [x19]
	cmp	x8, x9
	csel	x8, x8, x9, lt
	str	x8, [x0]
	str	xzr, [x0, #16]
	ldr	x0, [x19, #24]
	ldr	x2, [x20]
	ldr	w1, [x2, #8]
	mov	x3, x21
	bl	_svn_io_file_read
	ldr	x1, [x20]
	cbz	x0, LBB0_8
; %bb.5:
	mov	x22, x0
	mov	x0, x19
	bl	_return_buffer
	mov	x0, x22
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_svn_error_trace
LBB0_6:
	mov	x8, #0
	str	xzr, [x19, #48]
LBB0_7:
	str	x8, [x19, #40]
	ldr	x8, [x20]
	ldr	w8, [x8]
	ldr	w9, [x19, #32]
	sub	w8, w9, w8
	str	w8, [x19, #32]
	b	LBB0_11
LBB0_8:
	mov	x20, x19
	ldr	x8, [x20, #16]!
	ldr	x9, [x1]
	add	x8, x8, x9
	str	x8, [x20]
	ldr	x8, [x19]
	subs	x8, x8, x9
	str	x8, [x19]
	b.ne	LBB0_11
; %bb.9:
	ldr	x0, [x19, #24]
	mov	x1, x21
	bl	_svn_io_file_close
	bl	_SVN_ERR
	str	xzr, [x20, #8]
LBB0_10:
	str	xzr, [x20]
LBB0_11:
Lloh0:
	adrp	x8, _SVN_NO_ERROR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SVN_NO_ERROR@GOTPAGEOFF]
Lloh2:
	ldr	x0, [x8]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_SVN_NO_ERROR,8,3               ; @SVN_NO_ERROR
	.no_dead_strip	_read_data
.subsections_via_symbols
