	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_LogicalTapeRead                ## -- Begin function LogicalTapeRead
	.p2align	4, 0x90
_LogicalTapeRead:                       ## @LogicalTapeRead
	.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	%rcx, %rbx
	movq	%rdx, %r12
	movl	%esi, %r15d
	movq	%rdi, %r14
	xorl	%edi, %edi
	testl	%esi, %esi
	js	LBB0_2
## %bb.1:
	cmpl	%r15d, (%r14)
	setg	%dil
LBB0_2:
	callq	_Assert
	movq	8(%r14), %r13
	movslq	%r15d, %r15
	shlq	$5, %r15
	xorl	%edi, %edi
	cmpl	$0, 24(%r13,%r15)
	sete	%dil
	callq	_Assert
	testq	%rbx, %rbx
	je	LBB0_3
## %bb.4:
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	leaq	(%r15,%r13), %r14
	addq	%r15, %r13
	addq	$8, %r13
	movq	(%r14), %rcx
	xorl	%eax, %eax
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_5 Depth=1
	subq	%rcx, %r15
	cmpq	%rbx, %r15
	cmovaeq	%rbx, %r15
	xorl	%edi, %edi
	testq	%r15, %r15
	setne	%dil
	callq	_Assert
	movq	(%r14), %rsi
	addq	8(%r13), %rsi
	movq	%r12, %rdi
	movq	%r15, %rdx
	callq	_memcpy
	movq	(%r14), %rcx
	addq	%r15, %rcx
	movq	%rcx, (%r14)
	addq	%r15, %r12
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	addq	%r15, %rax
	subq	%r15, %rbx
	je	LBB0_10
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	(%r13), %r15
	cmpq	%r15, %rcx
	jl	LBB0_9
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	%r14, %rsi
	callq	_ltsReadFillBuffer
	testl	%eax, %eax
	je	LBB0_7
## %bb.8:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	(%r13), %r15
	movq	(%r14), %rcx
	jmp	LBB0_9
LBB0_3:
	xorl	%eax, %eax
	jmp	LBB0_10
LBB0_7:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
LBB0_10:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_LogicalTapeRead                ; -- Begin function LogicalTapeRead
	.p2align	2
_LogicalTapeRead:                       ; @LogicalTapeRead
	.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, x3
	mov	x20, x2
	mov	x22, x1
	mov	x21, x0
	tbnz	w1, #31, LBB0_2
; %bb.1:
	ldr	w8, [x21]
	cmp	w8, w22
	cset	w0, gt
	b	LBB0_3
LBB0_2:
	mov	w0, #0
LBB0_3:
	bl	_Assert
	ldr	x8, [x21, #8]
	sxtw	x9, w22
	add	x22, x8, x9, lsl #5
	ldr	w8, [x22, #24]
	cmp	w8, #0
	cset	w0, eq
	bl	_Assert
	mov	x23, #0
	cbz	x19, LBB0_9
; %bb.4:
	add	x25, x22, #8
	add	x26, x22, #16
	ldr	x8, [x22]
	b	LBB0_7
LBB0_5:                                 ;   in Loop: Header=BB0_7 Depth=1
	ldr	x9, [x25]
	ldr	x8, [x22]
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=1
	sub	x8, x9, x8
	cmp	x8, x19
	csel	x24, x8, x19, lo
	cmp	x24, #0
	cset	w0, ne
	bl	_Assert
	ldr	x8, [x26]
	ldr	x9, [x22]
	add	x1, x9, x8
	mov	x0, x20
	mov	x2, x24
	bl	_memcpy
	ldr	x8, [x22]
	add	x8, x8, x24
	str	x8, [x22]
	add	x20, x20, x24
	add	x23, x24, x23
	subs	x19, x19, x24
	b.eq	LBB0_9
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x25]
	cmp	x8, x9
	b.lt	LBB0_6
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	mov	x0, x21
	mov	x1, x22
	bl	_ltsReadFillBuffer
	cbnz	w0, LBB0_5
LBB0_9:
	mov	x0, x23
	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
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
