	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function readtape
_readtape:                              ## @readtape
	.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	_blkcnt@GOTPCREL(%rip), %rbx
	movl	(%rbx), %ecx
	movq	_byteslide@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	$1, %rax
	movl	%ecx, %edx
	sbbl	$-1, %edx
	movq	%rdi, %r15
	movq	_numtrec@GOTPCREL(%rip), %rsi
	movl	(%rsi), %esi
	cmpl	%esi, %edx
	jge	LBB0_1
LBB0_50:
	movq	_tapebuf@GOTPCREL(%rip), %rdi
	leal	1(%rcx), %edx
	movl	%edx, (%rbx)
	movslq	%ecx, %rsi
	movq	_TP_BSIZE@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rdx
	imulq	%rdx, %rsi
	addq	%rax, %rsi
	addq	(%rdi), %rsi
	movq	%r15, %rdi
	jmp	LBB0_58
LBB0_1:
	movq	_ntrec@GOTPCREL(%rip), %r14
	movq	%r15, -48(%rbp)                 ## 8-byte Spill
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_7 Depth 2
                                        ##     Child Loop BB0_11 Depth 2
	testl	%esi, %esi
	jle	LBB0_3
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	_tapebuf@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	movq	_TP_BSIZE@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rdx
	decl	%esi
	imulq	%rdx, %rsi
	addq	%rdi, %rsi
	subq	%rdx, %rdi
	callq	_memmove
	movq	_numtrec@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_3:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	_TP_BSIZE@GOTPCREL(%rip), %rbx
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	(%r14), %r12
	testq	%r12, %r12
	jle	LBB0_8
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	_tapebuf@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	xorl	%ecx, %ecx
	.p2align	4, 0x90
LBB0_7:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	(%rbx), %rdx
	imulq	%rcx, %rdx
	movq	$0, (%rax,%rdx)
	incq	%rcx
	movq	(%r14), %r12
	cmpq	%r12, %rcx
	jl	LBB0_7
LBB0_8:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	%rsi, -56(%rbp)                 ## 8-byte Spill
	testl	%esi, %esi
	jne	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	_numtrec@GOTPCREL(%rip), %rax
	movl	%r12d, (%rax)
LBB0_10:                                ##   in Loop: Header=BB0_2 Depth=1
	imull	(%rbx), %r12d
	xorl	%r13d, %r13d
	.p2align	4, 0x90
LBB0_11:                                ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	_mt@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_tapebuf@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	%r13, %rsi
	movl	%r12d, %edx
	callq	_read
	movq	%rax, %r15
	movq	_pipein@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	movq	_pipecmdin@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rcx, %rdx
	orq	%rax, %rdx
	jne	LBB0_16
## %bb.12:                              ##   in Loop: Header=BB0_11 Depth=2
	testq	%r15, %r15
	jle	LBB0_13
## %bb.14:                              ##   in Loop: Header=BB0_11 Depth=2
	movq	_numtrec@GOTPCREL(%rip), %rax
	movslq	(%rax), %rdx
	movl	$0, %eax
	movl	$0, %ecx
	cmpq	%rdx, (%r14)
	jle	LBB0_16
## %bb.15:                              ##   in Loop: Header=BB0_11 Depth=2
	movq	_stdout@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_dprintf
	movl	(%r14), %eax
	movq	_numtrec@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	movq	_pipein@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	movq	_pipecmdin@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	jmp	LBB0_16
LBB0_13:                                ##   in Loop: Header=BB0_11 Depth=2
	xorl	%eax, %eax
	xorl	%ecx, %ecx
	.p2align	4, 0x90
LBB0_16:                                ##   in Loop: Header=BB0_11 Depth=2
	orq	%rcx, %rax
	setne	%al
	testq	%r15, %r15
	jne	LBB0_19
## %bb.17:                              ##   in Loop: Header=BB0_11 Depth=2
	testb	%al, %al
	je	LBB0_19
## %bb.18:                              ##   in Loop: Header=BB0_11 Depth=2
	testq	%r13, %r13
	jg	LBB0_57
LBB0_19:                                ##   in Loop: Header=BB0_11 Depth=2
	testq	%r15, %r15
	jle	LBB0_23
## %bb.20:                              ##   in Loop: Header=BB0_11 Depth=2
	movq	(%rbx), %rsi
	movq	(%r14), %rcx
	imulq	%rsi, %rcx
	cmpq	%rcx, %r15
	je	LBB0_57
## %bb.21:                              ##   in Loop: Header=BB0_11 Depth=2
	testb	%al, %al
	je	LBB0_29
## %bb.22:                              ##   in Loop: Header=BB0_11 Depth=2
	addq	%r15, %r13
	subl	%r15d, %r12d
	movq	%r13, %r15
	testl	%r12d, %r12d
	jg	LBB0_11
LBB0_23:                                ##   in Loop: Header=BB0_2 Depth=1
	testq	%r15, %r15
	jns	LBB0_47
## %bb.24:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.2(%rip), %rsi
	xorl	%eax, %eax
	callq	_fprintf
	movq	_curfile@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	cmpl	$128, %eax
	je	LBB0_39
## %bb.25:                              ##   in Loop: Header=BB0_2 Depth=1
	cmpl	$129, %eax
	je	LBB0_38
## %bb.26:                              ##   in Loop: Header=BB0_2 Depth=1
	cmpl	$130, %eax
	jne	LBB0_27
## %bb.40:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_curfile@GOTPCREL(%rip), %rax
	movslq	16(%rax), %rdx
	leaq	L_.str.6(%rip), %rsi
	jmp	LBB0_41
LBB0_39:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_curfile@GOTPCREL(%rip), %rax
	movq	8(%rax), %rdx
	leaq	L_.str.5(%rip), %rsi
LBB0_41:                                ##   in Loop: Header=BB0_2 Depth=1
	xorl	%eax, %eax
	callq	_fprintf
	jmp	LBB0_42
LBB0_38:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.4(%rip), %rsi
	jmp	LBB0_28
LBB0_27:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.3(%rip), %rsi
LBB0_28:                                ##   in Loop: Header=BB0_2 Depth=1
	xorl	%eax, %eax
	callq	_fprintf
LBB0_42:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	_yflag@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	jne	LBB0_45
## %bb.43:                              ##   in Loop: Header=BB0_2 Depth=1
	leaq	L_.str.7(%rip), %rdi
	callq	_reply
	testl	%eax, %eax
	jne	LBB0_45
## %bb.44:                              ##   in Loop: Header=BB0_2 Depth=1
	movl	$1, %edi
	callq	_done
LBB0_45:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	(%rbx), %r15
	imulq	(%r14), %r15
	movq	_tapebuf@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	xorl	%esi, %esi
	movq	%r15, %rdx
	callq	_memset
	movq	_mt@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_SEEK_CUR@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rsi
	callq	_lseek
	cmpq	$-1, %rax
	jne	LBB0_47
## %bb.46:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_strerror
	movl	%r12d, %edi
	leaq	L_.str.8(%rip), %rsi
	movq	%rax, %rdx
	xorl	%eax, %eax
	callq	_fprintf
	movl	$1, %edi
	callq	_done
	.p2align	4, 0x90
LBB0_47:                                ##   in Loop: Header=BB0_2 Depth=1
	testq	%r15, %r15
	jne	LBB0_57
## %bb.48:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	_stdout@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.9(%rip), %rsi
	xorl	%eax, %eax
	callq	_vprintf
	movq	_pipein@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	jne	LBB0_51
## %bb.49:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	_volno@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	incq	%rdi
	movq	$0, (%rax)
	movq	_numtrec@GOTPCREL(%rip), %r15
	movl	$0, (%r15)
	callq	_getvol
	movq	_blkcnt@GOTPCREL(%rip), %rbx
	movl	(%rbx), %ecx
	movq	_byteslide@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	$1, %rax
	movl	%ecx, %edx
	sbbl	$-1, %edx
	movl	(%r15), %esi
	cmpl	%esi, %edx
	movq	-48(%rbp), %r15                 ## 8-byte Reload
	jge	LBB0_2
	jmp	LBB0_50
LBB0_29:
	movq	%r15, %rax
	orq	%rsi, %rax
	shrq	$32, %rax
	je	LBB0_30
## %bb.31:
	movq	%r15, %rax
	xorl	%edx, %edx
	divq	%rsi
	testq	%rdx, %rdx
	je	LBB0_34
LBB0_33:
	movq	_stdout@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	movq	%r15, %rdx
	xorl	%eax, %eax
	callq	_vprintf
	movq	(%rbx), %rsi
LBB0_34:
	movq	%r15, %rax
	orq	%rsi, %rax
	shrq	$32, %rax
	je	LBB0_35
## %bb.36:
	movq	%r15, %rax
	xorl	%edx, %edx
	divq	%rsi
	jmp	LBB0_37
LBB0_30:
	movl	%r15d, %eax
	xorl	%edx, %edx
	divl	%esi
                                        ## kill: def $edx killed $edx def $rdx
	testq	%rdx, %rdx
	jne	LBB0_33
	jmp	LBB0_34
LBB0_35:
	movl	%r15d, %eax
	xorl	%edx, %edx
	divl	%esi
                                        ## kill: def $eax killed $eax def $rax
LBB0_37:
	movq	_numtrec@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
LBB0_57:
	movq	_blkcnt@GOTPCREL(%rip), %rdx
	movl	(%rdx), %eax
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	subl	%ecx, %eax
	testl	%ecx, %ecx
	cmovel	%ecx, %eax
	leal	1(%rax), %ecx
	movl	%ecx, (%rdx)
	movslq	%eax, %rsi
	movq	(%rbx), %rdx
	imulq	%rdx, %rsi
	movq	_byteslide@GOTPCREL(%rip), %rax
	addq	(%rax), %rsi
	movq	_tapebuf@GOTPCREL(%rip), %rax
	addq	(%rax), %rsi
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
LBB0_58:
	callq	_memmove
	movq	_blksread@GOTPCREL(%rip), %rax
	incl	(%rax)
	movq	_tapeaddr@GOTPCREL(%rip), %rax
	incl	(%rax)
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_51:
	movq	(%rbx), %rcx
	movq	%r13, %rax
	orq	%rcx, %rax
	shrq	$32, %rax
	je	LBB0_52
## %bb.53:
	movq	%r13, %rax
	xorl	%edx, %edx
	divq	%rcx
	jmp	LBB0_54
LBB0_52:
	movl	%r13d, %eax
	xorl	%edx, %edx
	divl	%ecx
                                        ## kill: def $edx killed $edx def $rdx
LBB0_54:
	testq	%rdx, %rdx
	je	LBB0_56
## %bb.55:
	imulq	(%r14), %rcx
	leaq	L_.str.1(%rip), %rdi
	movq	%r13, %rsi
	movq	%rcx, %rdx
	callq	_panic
LBB0_56:
	xorl	%eax, %eax
	callq	_terminateinput
	movq	_tapebuf@GOTPCREL(%rip), %rax
	addq	(%rax), %r13
	movq	(%rbx), %rdx
	movq	_endoftapemark@GOTPCREL(%rip), %rsi
	movq	%r13, %rdi
	callq	_memmove
	jmp	LBB0_57
	.cfi_endproc
                                        ## -- End function
	.comm	_blkcnt,4,2                     ## @blkcnt
	.comm	_byteslide,8,3                  ## @byteslide
	.comm	_numtrec,4,2                    ## @numtrec
	.comm	_tapebuf,8,3                    ## @tapebuf
	.comm	_TP_BSIZE,8,3                   ## @TP_BSIZE
	.comm	_blksread,4,2                   ## @blksread
	.comm	_tapeaddr,4,2                   ## @tapeaddr
	.comm	_ntrec,8,3                      ## @ntrec
	.comm	_mt,4,2                         ## @mt
	.comm	_pipein,8,3                     ## @pipein
	.comm	_pipecmdin,8,3                  ## @pipecmdin
	.comm	_stdout,4,2                     ## @stdout
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"mid-media short read error.\n"

L_.str.1:                               ## @.str.1
	.asciz	"partial block read: %ld should be %ld\n"

	.comm	_stderr,4,2                     ## @stderr
L_.str.2:                               ## @.str.2
	.asciz	"Tape read error while "

	.comm	_curfile,24,3                   ## @curfile
L_.str.3:                               ## @.str.3
	.asciz	"trying to set up tape\n"

L_.str.4:                               ## @.str.4
	.asciz	"trying to resynchronize\n"

L_.str.5:                               ## @.str.5
	.asciz	"restoring %s\n"

L_.str.6:                               ## @.str.6
	.asciz	"skipping over inode %ju\n"

	.comm	_yflag,4,2                      ## @yflag
L_.str.7:                               ## @.str.7
	.asciz	"continue"

	.comm	_SEEK_CUR,4,2                   ## @SEEK_CUR
L_.str.8:                               ## @.str.8
	.asciz	"continuation failed: %s\n"

	.comm	_errno,4,2                      ## @errno
L_.str.9:                               ## @.str.9
	.asciz	"End-of-tape encountered\n"

	.comm	_volno,8,3                      ## @volno
	.comm	_endoftapemark,1,0              ## @endoftapemark
	.comm	_host,8,3                       ## @host
	.no_dead_strip	_readtape
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function readtape
_readtape:                              ; @readtape
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
Lloh0:
	adrp	x12, _blkcnt@GOTPAGE
Lloh1:
	ldr	x12, [x12, _blkcnt@GOTPAGEOFF]
	ldr	w8, [x12]
Lloh2:
	adrp	x9, _byteslide@GOTPAGE
Lloh3:
	ldr	x9, [x9, _byteslide@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
	cmp	x9, #0
	cinc	w10, w8, ne
Lloh5:
	adrp	x28, _numtrec@GOTPAGE
Lloh6:
	ldr	x28, [x28, _numtrec@GOTPAGEOFF]
	ldr	w27, [x28]
	cmp	w10, w27
	b.ge	LBB0_2
LBB0_1:
Lloh7:
	adrp	x10, _tapebuf@GOTPAGE
Lloh8:
	ldr	x10, [x10, _tapebuf@GOTPAGEOFF]
Lloh9:
	ldr	x10, [x10]
	add	w11, w8, #1
	str	w11, [x12]
	sxtw	x8, w8
Lloh10:
	adrp	x11, _TP_BSIZE@GOTPAGE
Lloh11:
	ldr	x11, [x11, _TP_BSIZE@GOTPAGEOFF]
Lloh12:
	ldr	x2, [x11]
	madd	x8, x2, x8, x9
	add	x1, x10, x8
	b	LBB0_41
LBB0_2:
	str	x0, [sp, #24]                   ; 8-byte Folded Spill
Lloh13:
	adrp	x20, _tapebuf@GOTPAGE
Lloh14:
	ldr	x20, [x20, _tapebuf@GOTPAGEOFF]
Lloh15:
	adrp	x23, _TP_BSIZE@GOTPAGE
Lloh16:
	ldr	x23, [x23, _TP_BSIZE@GOTPAGEOFF]
Lloh17:
	adrp	x22, _ntrec@GOTPAGE
Lloh18:
	ldr	x22, [x22, _ntrec@GOTPAGEOFF]
Lloh19:
	adrp	x19, _pipein@GOTPAGE
Lloh20:
	ldr	x19, [x19, _pipein@GOTPAGEOFF]
Lloh21:
	adrp	x26, _pipecmdin@GOTPAGE
Lloh22:
	ldr	x26, [x26, _pipecmdin@GOTPAGEOFF]
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_7 Depth 2
                                        ;     Child Loop BB0_11 Depth 2
	subs	w8, w27, #1
	b.lt	LBB0_5
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x9, [x20]
	ldr	x2, [x23]
	sub	x0, x9, x2
	madd	x1, x2, x8, x9
	bl	_memmove
	ldr	w27, [x28]
LBB0_5:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x22]
	cmp	x8, #1
	b.lt	LBB0_8
; %bb.6:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x9, #0
	ldr	x10, [x20]
LBB0_7:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x8, [x23]
	mul	x8, x8, x9
	str	xzr, [x10, x8]
	add	x9, x9, #1
	ldr	x8, [x22]
	cmp	x9, x8
	b.lt	LBB0_7
LBB0_8:                                 ;   in Loop: Header=BB0_3 Depth=1
	cbnz	w27, LBB0_10
; %bb.9:                                ;   in Loop: Header=BB0_3 Depth=1
	str	w8, [x28]
LBB0_10:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x24, #0
	ldr	w9, [x23]
	mul	w25, w9, w8
LBB0_11:                                ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
Lloh23:
	adrp	x8, _mt@GOTPAGE
Lloh24:
	ldr	x8, [x8, _mt@GOTPAGEOFF]
Lloh25:
	ldr	w0, [x8]
	ldr	x8, [x20]
	add	x1, x8, x24
	mov	x2, x25
	bl	_read
	mov	x21, x0
	ldr	x8, [x19]
	ldr	x9, [x26]
	orr	x10, x8, x9
	cbnz	x10, LBB0_15
; %bb.12:                               ;   in Loop: Header=BB0_11 Depth=2
	ldrsw	x8, [x28]
	ldr	x9, [x22]
	cmp	x21, #1
	ccmp	x9, x8, #4, ge
	b.gt	LBB0_14
; %bb.13:                               ;   in Loop: Header=BB0_11 Depth=2
	mov	x9, #0
	mov	x8, #0
	b	LBB0_15
LBB0_14:                                ;   in Loop: Header=BB0_11 Depth=2
Lloh26:
	adrp	x8, _stdout@GOTPAGE
Lloh27:
	ldr	x8, [x8, _stdout@GOTPAGEOFF]
Lloh28:
	ldr	w0, [x8]
Lloh29:
	adrp	x1, l_.str@PAGE
Lloh30:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dprintf
	ldr	x8, [x22]
	str	w8, [x28]
	ldr	x8, [x19]
	ldr	x9, [x26]
LBB0_15:                                ;   in Loop: Header=BB0_11 Depth=2
	orr	x8, x8, x9
	cmp	x8, #0
	cset	w9, ne
	cmp	x21, #0
	ccmp	w9, #0, #4, eq
	ccmp	x24, #0, #4, ne
	b.gt	LBB0_40
; %bb.16:                               ;   in Loop: Header=BB0_11 Depth=2
	cmp	x21, #1
	b.lt	LBB0_20
; %bb.17:                               ;   in Loop: Header=BB0_11 Depth=2
	ldr	x10, [x22]
	ldr	x8, [x23]
	mul	x10, x8, x10
	cmp	x21, x10
	b.eq	LBB0_40
; %bb.18:                               ;   in Loop: Header=BB0_11 Depth=2
	cbz	w9, LBB0_37
; %bb.19:                               ;   in Loop: Header=BB0_11 Depth=2
	add	x24, x21, x24
	sub	w25, w25, w21
	mov	x21, x24
	cmp	w25, #0
	b.gt	LBB0_11
LBB0_20:                                ;   in Loop: Header=BB0_3 Depth=1
	tbz	x21, #63, LBB0_33
; %bb.21:                               ;   in Loop: Header=BB0_3 Depth=1
Lloh31:
	adrp	x8, _stderr@GOTPAGE
Lloh32:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh33:
	ldr	w0, [x8]
Lloh34:
	adrp	x1, l_.str.2@PAGE
Lloh35:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_fprintf
Lloh36:
	adrp	x8, _curfile@GOTPAGE
Lloh37:
	ldr	x8, [x8, _curfile@GOTPAGEOFF]
Lloh38:
	ldr	w8, [x8]
	cmp	w8, #128
	b.eq	LBB0_25
; %bb.22:                               ;   in Loop: Header=BB0_3 Depth=1
	cmp	w8, #129
	b.eq	LBB0_26
; %bb.23:                               ;   in Loop: Header=BB0_3 Depth=1
	cmp	w8, #130
	b.ne	LBB0_27
; %bb.24:                               ;   in Loop: Header=BB0_3 Depth=1
Lloh39:
	adrp	x8, _stderr@GOTPAGE
Lloh40:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh41:
	ldr	w0, [x8]
Lloh42:
	adrp	x8, _curfile@GOTPAGE
Lloh43:
	ldr	x8, [x8, _curfile@GOTPAGEOFF]
Lloh44:
	ldrsw	x8, [x8, #16]
	str	x8, [sp]
Lloh45:
	adrp	x1, l_.str.6@PAGE
Lloh46:
	add	x1, x1, l_.str.6@PAGEOFF
	b	LBB0_28
LBB0_25:                                ;   in Loop: Header=BB0_3 Depth=1
Lloh47:
	adrp	x8, _stderr@GOTPAGE
Lloh48:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh49:
	ldr	w0, [x8]
Lloh50:
	adrp	x8, _curfile@GOTPAGE
Lloh51:
	ldr	x8, [x8, _curfile@GOTPAGEOFF]
Lloh52:
	ldr	x8, [x8, #8]
	str	x8, [sp]
Lloh53:
	adrp	x1, l_.str.5@PAGE
Lloh54:
	add	x1, x1, l_.str.5@PAGEOFF
	b	LBB0_28
LBB0_26:                                ;   in Loop: Header=BB0_3 Depth=1
Lloh55:
	adrp	x8, _stderr@GOTPAGE
Lloh56:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh57:
	ldr	w0, [x8]
Lloh58:
	adrp	x1, l_.str.4@PAGE
Lloh59:
	add	x1, x1, l_.str.4@PAGEOFF
	b	LBB0_28
LBB0_27:                                ;   in Loop: Header=BB0_3 Depth=1
Lloh60:
	adrp	x8, _stderr@GOTPAGE
Lloh61:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh62:
	ldr	w0, [x8]
Lloh63:
	adrp	x1, l_.str.3@PAGE
Lloh64:
	add	x1, x1, l_.str.3@PAGEOFF
LBB0_28:                                ;   in Loop: Header=BB0_3 Depth=1
	bl	_fprintf
Lloh65:
	adrp	x8, _yflag@GOTPAGE
Lloh66:
	ldr	x8, [x8, _yflag@GOTPAGEOFF]
Lloh67:
	ldr	w8, [x8]
	cbnz	w8, LBB0_31
; %bb.29:                               ;   in Loop: Header=BB0_3 Depth=1
Lloh68:
	adrp	x0, l_.str.7@PAGE
Lloh69:
	add	x0, x0, l_.str.7@PAGEOFF
	bl	_reply
	cbnz	w0, LBB0_31
; %bb.30:                               ;   in Loop: Header=BB0_3 Depth=1
	mov	w0, #1
	bl	_done
LBB0_31:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x22]
	ldr	x9, [x23]
	mul	x21, x9, x8
	ldr	x0, [x20]
	mov	w1, #0
	mov	x2, x21
	bl	_memset
Lloh70:
	adrp	x8, _mt@GOTPAGE
Lloh71:
	ldr	x8, [x8, _mt@GOTPAGEOFF]
Lloh72:
	ldr	w0, [x8]
Lloh73:
	adrp	x8, _SEEK_CUR@GOTPAGE
Lloh74:
	ldr	x8, [x8, _SEEK_CUR@GOTPAGEOFF]
Lloh75:
	ldr	w2, [x8]
	mov	x1, x21
	bl	_lseek
	cmn	x0, #1
	b.ne	LBB0_33
; %bb.32:                               ;   in Loop: Header=BB0_3 Depth=1
Lloh76:
	adrp	x8, _stderr@GOTPAGE
Lloh77:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh78:
	ldr	w25, [x8]
Lloh79:
	adrp	x8, _errno@GOTPAGE
Lloh80:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh81:
	ldr	w0, [x8]
	bl	_strerror
	str	x0, [sp]
	mov	x0, x25
Lloh82:
	adrp	x1, l_.str.8@PAGE
Lloh83:
	add	x1, x1, l_.str.8@PAGEOFF
	bl	_fprintf
	mov	w0, #1
	bl	_done
LBB0_33:                                ;   in Loop: Header=BB0_3 Depth=1
	cbnz	x21, LBB0_40
; %bb.34:                               ;   in Loop: Header=BB0_3 Depth=1
Lloh84:
	adrp	x8, _stdout@GOTPAGE
Lloh85:
	ldr	x8, [x8, _stdout@GOTPAGEOFF]
Lloh86:
	ldr	w0, [x8]
Lloh87:
	adrp	x1, l_.str.9@PAGE
Lloh88:
	add	x1, x1, l_.str.9@PAGEOFF
	bl	_vprintf
	ldr	x8, [x19]
	cbnz	x8, LBB0_42
; %bb.35:                               ;   in Loop: Header=BB0_3 Depth=1
Lloh89:
	adrp	x9, _volno@GOTPAGE
Lloh90:
	ldr	x9, [x9, _volno@GOTPAGEOFF]
	ldr	x8, [x9]
	add	x0, x8, #1
	str	xzr, [x9]
	str	wzr, [x28]
	bl	_getvol
Lloh91:
	adrp	x12, _blkcnt@GOTPAGE
Lloh92:
	ldr	x12, [x12, _blkcnt@GOTPAGEOFF]
	ldr	w8, [x12]
Lloh93:
	adrp	x9, _byteslide@GOTPAGE
Lloh94:
	ldr	x9, [x9, _byteslide@GOTPAGEOFF]
Lloh95:
	ldr	x9, [x9]
	cmp	x9, #0
	cinc	w10, w8, ne
	ldr	w27, [x28]
	cmp	w10, w27
	b.ge	LBB0_3
; %bb.36:
	ldr	x0, [sp, #24]                   ; 8-byte Folded Reload
	b	LBB0_1
LBB0_37:
	udiv	x9, x21, x8
	msub	x9, x9, x8, x21
	cbz	x9, LBB0_39
; %bb.38:
Lloh96:
	adrp	x8, _stdout@GOTPAGE
Lloh97:
	ldr	x8, [x8, _stdout@GOTPAGEOFF]
Lloh98:
	ldr	w0, [x8]
	stp	x21, x10, [sp]
Lloh99:
	adrp	x1, l_.str.1@PAGE
Lloh100:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_vprintf
	ldr	x8, [x23]
LBB0_39:
	udiv	x8, x21, x8
	str	w8, [x28]
LBB0_40:
Lloh101:
	adrp	x11, _blkcnt@GOTPAGE
Lloh102:
	ldr	x11, [x11, _blkcnt@GOTPAGEOFF]
	ldr	w8, [x11]
	sub	w8, w8, w27
	cmp	w27, #0
	csel	w8, wzr, w8, eq
	ldr	x9, [x20]
	add	w10, w8, #1
	str	w10, [x11]
	sxtw	x8, w8
	ldr	x2, [x23]
Lloh103:
	adrp	x10, _byteslide@GOTPAGE
Lloh104:
	ldr	x10, [x10, _byteslide@GOTPAGEOFF]
Lloh105:
	ldr	x10, [x10]
	madd	x8, x2, x8, x10
	add	x1, x9, x8
	ldr	x0, [sp, #24]                   ; 8-byte Folded Reload
LBB0_41:
	bl	_memmove
Lloh106:
	adrp	x8, _blksread@GOTPAGE
Lloh107:
	ldr	x8, [x8, _blksread@GOTPAGEOFF]
	ldr	w9, [x8]
	add	w9, w9, #1
	str	w9, [x8]
Lloh108:
	adrp	x8, _tapeaddr@GOTPAGE
Lloh109:
	ldr	x8, [x8, _tapeaddr@GOTPAGEOFF]
	ldr	w9, [x8]
	add	w9, w9, #1
	str	w9, [x8]
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
LBB0_42:
	ldr	x8, [x23]
	udiv	x9, x24, x8
	msub	x9, x9, x8, x24
	cbz	x9, LBB0_44
; %bb.43:
	ldr	x9, [x22]
	mul	x2, x9, x8
Lloh110:
	adrp	x0, l_.str.1@PAGE
Lloh111:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x24
	bl	_panic
LBB0_44:
	bl	_terminateinput
	ldr	x8, [x20]
	add	x0, x8, x24
	ldr	x2, [x23]
Lloh112:
	adrp	x1, _endoftapemark@GOTPAGE
Lloh113:
	ldr	x1, [x1, _endoftapemark@GOTPAGEOFF]
	bl	_memmove
	b	LBB0_40
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpAdd	Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpAdd	Lloh45, Lloh46
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpAdd	Lloh53, Lloh54
	.loh AdrpLdrGotLdr	Lloh50, Lloh51, Lloh52
	.loh AdrpLdrGotLdr	Lloh47, Lloh48, Lloh49
	.loh AdrpAdd	Lloh58, Lloh59
	.loh AdrpLdrGotLdr	Lloh55, Lloh56, Lloh57
	.loh AdrpAdd	Lloh63, Lloh64
	.loh AdrpLdrGotLdr	Lloh60, Lloh61, Lloh62
	.loh AdrpLdrGotLdr	Lloh65, Lloh66, Lloh67
	.loh AdrpAdd	Lloh68, Lloh69
	.loh AdrpLdrGotLdr	Lloh73, Lloh74, Lloh75
	.loh AdrpLdrGotLdr	Lloh70, Lloh71, Lloh72
	.loh AdrpAdd	Lloh82, Lloh83
	.loh AdrpLdrGotLdr	Lloh79, Lloh80, Lloh81
	.loh AdrpLdrGotLdr	Lloh76, Lloh77, Lloh78
	.loh AdrpAdd	Lloh87, Lloh88
	.loh AdrpLdrGotLdr	Lloh84, Lloh85, Lloh86
	.loh AdrpLdrGotLdr	Lloh93, Lloh94, Lloh95
	.loh AdrpLdrGot	Lloh91, Lloh92
	.loh AdrpLdrGot	Lloh89, Lloh90
	.loh AdrpAdd	Lloh99, Lloh100
	.loh AdrpLdrGotLdr	Lloh96, Lloh97, Lloh98
	.loh AdrpLdrGotLdr	Lloh103, Lloh104, Lloh105
	.loh AdrpLdrGot	Lloh101, Lloh102
	.loh AdrpLdrGot	Lloh108, Lloh109
	.loh AdrpLdrGot	Lloh106, Lloh107
	.loh AdrpAdd	Lloh110, Lloh111
	.loh AdrpLdrGot	Lloh112, Lloh113
	.cfi_endproc
                                        ; -- End function
	.comm	_blkcnt,4,2                     ; @blkcnt
	.comm	_byteslide,8,3                  ; @byteslide
	.comm	_numtrec,4,2                    ; @numtrec
	.comm	_tapebuf,8,3                    ; @tapebuf
	.comm	_TP_BSIZE,8,3                   ; @TP_BSIZE
	.comm	_blksread,4,2                   ; @blksread
	.comm	_tapeaddr,4,2                   ; @tapeaddr
	.comm	_ntrec,8,3                      ; @ntrec
	.comm	_mt,4,2                         ; @mt
	.comm	_pipein,8,3                     ; @pipein
	.comm	_pipecmdin,8,3                  ; @pipecmdin
	.comm	_stdout,4,2                     ; @stdout
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"mid-media short read error.\n"

l_.str.1:                               ; @.str.1
	.asciz	"partial block read: %ld should be %ld\n"

	.comm	_stderr,4,2                     ; @stderr
l_.str.2:                               ; @.str.2
	.asciz	"Tape read error while "

	.comm	_curfile,24,3                   ; @curfile
l_.str.3:                               ; @.str.3
	.asciz	"trying to set up tape\n"

l_.str.4:                               ; @.str.4
	.asciz	"trying to resynchronize\n"

l_.str.5:                               ; @.str.5
	.asciz	"restoring %s\n"

l_.str.6:                               ; @.str.6
	.asciz	"skipping over inode %ju\n"

	.comm	_yflag,4,2                      ; @yflag
l_.str.7:                               ; @.str.7
	.asciz	"continue"

	.comm	_SEEK_CUR,4,2                   ; @SEEK_CUR
l_.str.8:                               ; @.str.8
	.asciz	"continuation failed: %s\n"

	.comm	_errno,4,2                      ; @errno
l_.str.9:                               ; @.str.9
	.asciz	"End-of-tape encountered\n"

	.comm	_volno,8,3                      ; @volno
	.comm	_endoftapemark,1,0              ; @endoftapemark
	.comm	_host,8,3                       ; @host
	.no_dead_strip	_readtape
.subsections_via_symbols
