	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_setup                          ## -- Begin function setup
	.p2align	4, 0x90
_setup:                                 ## @setup
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_stdout@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	leaq	L_.str(%rip), %rsi
	callq	_vprintf
	movq	_pipecmdin@GOTPCREL(%rip), %r12
	cmpq	$0, (%r12)
	je	LBB0_6
## %bb.1:
	leaq	L_.str.1(%rip), %rdi
	leaq	L_.str.2(%rip), %rsi
	movl	$1, %edx
	callq	_setenv
	cmpl	$-1, %eax
	jne	LBB0_3
## %bb.2:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_strerror
	leaq	L_.str.3(%rip), %rsi
	movl	%ebx, %edi
	movq	%rax, %rdx
	xorl	%eax, %eax
	callq	_fprintf
	movl	$1, %edi
	callq	_done
LBB0_3:
	movq	_magtape@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	leaq	L_.str.4(%rip), %rsi
	callq	_popen
	movq	_popenfp@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
	testq	%rax, %rax
	je	LBB0_4
## %bb.5:
	movq	%rax, %rdi
	callq	_fileno
	jmp	LBB0_9
LBB0_6:
	movq	_pipein@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_8
## %bb.7:
	movq	_mt@GOTPCREL(%rip), %rax
	movl	$0, (%rax)
	jmp	LBB0_11
LBB0_4:
	movq	_mt@GOTPCREL(%rip), %rax
	movl	$-1, (%rax)
	jmp	LBB0_10
LBB0_8:
	movq	_magtape@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	movq	_O_RDONLY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%edx, %edx
	callq	_open
LBB0_9:
	movq	_mt@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	testl	%eax, %eax
	jns	LBB0_11
LBB0_10:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_magtape@GOTPCREL(%rip), %rax
	movq	(%rax), %r14
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_strerror
	leaq	L_.str.5(%rip), %rsi
	movl	%ebx, %edi
	movq	%r14, %rdx
	movq	%rax, %rcx
	xorl	%eax, %eax
	callq	_fprintf
	movl	$1, %edi
	callq	_done
LBB0_11:
	movq	_volno@GOTPCREL(%rip), %rax
	movl	$1, (%rax)
	xorl	%eax, %eax
	callq	_setdumpnum
	xorl	%eax, %eax
	callq	_FLUSHTAPEBUF
	movq	_pipein@GOTPCREL(%rip), %rbx
	cmpq	$0, (%rbx)
	jne	LBB0_15
## %bb.12:
	cmpq	$0, (%r12)
	jne	LBB0_15
## %bb.13:
	movq	_bflag@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	jne	LBB0_15
## %bb.14:
	xorl	%eax, %eax
	callq	_findtapeblksize
LBB0_15:
	movq	_spcl@GOTPCREL(%rip), %r14
	movq	%r14, %rdi
	callq	_gethead
	movq	_FAIL@GOTPCREL(%rip), %r12
	cmpq	(%r12), %rax
	jne	LBB0_17
## %bb.16:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.6(%rip), %rsi
	xorl	%eax, %eax
	callq	_fprintf
	movl	$1, %edi
	callq	_done
LBB0_17:
	cmpq	$0, (%rbx)
	je	LBB0_19
## %bb.18:
	movq	_FS_UFS2_MAGIC@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_endoftapemark@GOTPCREL(%rip), %rcx
	movl	%eax, 12(%rcx)
	movq	_TS_END@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%rcx)
	movslq	(%rcx), %rax
	movq	_CHECKSUM@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	subq	%rax, %rdx
	movq	%rdx, (%rcx)
LBB0_19:
	movq	_vflag@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	movq	_command@GOTPCREL(%rip), %rax
	jne	LBB0_21
## %bb.20:
	cmpb	$116, (%rax)
	jne	LBB0_22
LBB0_21:
	xorl	%eax, %eax
	callq	_printdumpinfo
LBB0_22:
	movl	24(%r14), %edi
	callq	__time64_to_time
	movq	_dumptime@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
	movl	20(%r14), %edi
	callq	__time64_to_time
	movq	_dumpdate@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
	leaq	L_.str.7(%rip), %rdi
	leaq	-48(%rbp), %rsi
	callq	_stat
	testq	%rax, %rax
	jns	LBB0_24
## %bb.23:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_strerror
	leaq	L_.str.8(%rip), %rsi
	movl	%ebx, %edi
	movq	%rax, %rdx
	xorl	%eax, %eax
	callq	_fprintf
	movl	$1, %edi
	callq	_done
LBB0_24:
	movl	-48(%rbp), %ecx
	movq	_TP_BSIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	testl	%ecx, %ecx
	jle	LBB0_27
## %bb.25:
	cmpl	%edx, %ecx
	jge	LBB0_27
## %bb.26:
	movq	_fssize@GOTPCREL(%rip), %rax
	movl	%edx, (%rax)
LBB0_27:
	cmpl	%edx, %ecx
	jl	LBB0_30
## %bb.28:
	movq	_MAXBSIZE@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ecx
	jg	LBB0_30
## %bb.29:
	movq	_fssize@GOTPCREL(%rip), %rax
	movl	%ecx, (%rax)
LBB0_30:
	leal	-1(%rdx), %eax
	testl	%ecx, %eax
	je	LBB0_32
## %bb.31:
	movq	_stderr@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	leaq	L_.str.9(%rip), %rsi
                                        ## kill: def $edx killed $edx killed $rdx
	xorl	%eax, %eax
	callq	_fprintf
	movq	%r15, %r13
	movq	_fssize@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	movq	_TP_BSIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_roundup
	movl	%eax, (%r15)
	movq	%r13, %r15
	movl	(%rbx), %edi
	leaq	L_.str.10(%rip), %rsi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_fprintf
LBB0_32:
	cmpl	$1, (%r14)
	je	LBB0_34
## %bb.33:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.11(%rip), %rsi
	xorl	%eax, %eax
	callq	_fprintf
	movl	$1, %edi
	callq	_done
LBB0_34:
	movq	_spcl@GOTPCREL(%rip), %rbx
	movq	%rbx, %rdi
	callq	_gethead
	cmpq	(%r12), %rax
	jne	LBB0_36
## %bb.35:
	movl	(%r15), %edi
	movq	_blksread@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str.12(%rip), %rsi
	callq	_dprintf
	leaq	L_.str.13(%rip), %rdi
	callq	_panic
LBB0_36:
	movq	%rbx, %rdi
	callq	_findinode
	movq	8(%rbx), %rax
	movq	_TS_CLRI@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_38
## %bb.37:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.14(%rip), %rsi
	xorl	%eax, %eax
	callq	_fprintf
	movl	$1, %edi
	callq	_done
LBB0_38:
	movq	_TP_BSIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	imull	16(%rbx), %edx
	movq	_NBBY@GOTPCREL(%rip), %r14
	imull	(%r14), %edx
	incl	%edx
	movq	_maxino@GOTPCREL(%rip), %r12
	movl	%edx, (%r12)
	movl	(%r15), %edi
	leaq	L_.str.15(%rip), %rsi
	callq	_dprintf
	movl	(%r12), %edi
	movl	(%r14), %esi
	callq	_howmany
	movl	$1, %edi
	movl	%eax, %esi
	callq	_calloc
	movq	_map@GOTPCREL(%rip), %r15
	movq	%rax, (%r15)
	testq	%rax, %rax
	jne	LBB0_40
## %bb.39:
	leaq	L_.str.16(%rip), %rdi
	callq	_panic
	movq	(%r15), %rax
LBB0_40:
	movq	_usedinomap@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
	movq	_USING@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_curfile@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
	movq	_xtrmap@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_xtrmapskip@GOTPCREL(%rip), %r13
	movl	(%r13), %edx
	movl	%edx, %esi
	callq	_getfile
	movq	8(%rbx), %rax
	movq	_TS_BITS@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_42
## %bb.41:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.17(%rip), %rsi
	xorl	%eax, %eax
	callq	_fprintf
	movl	$1, %edi
	callq	_done
LBB0_42:
	movl	(%r12), %edi
	movl	(%r14), %esi
	callq	_howmany
	movl	$1, %edi
	movl	%eax, %esi
	callq	_calloc
	movq	%rax, (%r15)
	testq	%rax, %rax
	jne	LBB0_44
## %bb.43:
	leaq	L_.str.18(%rip), %rdi
	callq	_panic
	movq	(%r15), %rax
LBB0_44:
	movq	_dumpmap@GOTPCREL(%rip), %rbx
	movq	%rax, (%rbx)
	movq	_USING@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_curfile@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
	movq	_xtrmap@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%r13), %edx
	movl	%edx, %esi
	callq	_getfile
	movq	_UFS_WINO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	(%rbx), %rsi
	callq	_SETINO
	movq	_command@GOTPCREL(%rip), %rax
	cmpb	$114, (%rax)
	jne	LBB0_46
## %bb.45:
	movq	_tapesread@GOTPCREL(%rip), %rax
	movl	$1, (%rax)
LBB0_46:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_stdout,4,2                     ## @stdout
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Verify tape and initialize maps\n"

	.comm	_pipecmdin,8,3                  ## @pipecmdin
L_.str.1:                               ## @.str.1
	.asciz	"RESTORE_VOLUME"

L_.str.2:                               ## @.str.2
	.asciz	"1"

	.comm	_stderr,4,2                     ## @stderr
L_.str.3:                               ## @.str.3
	.asciz	"Cannot set $RESTORE_VOLUME: %s\n"

	.comm	_errno,4,2                      ## @errno
	.comm	_magtape,8,3                    ## @magtape
L_.str.4:                               ## @.str.4
	.asciz	"r"

	.comm	_popenfp,8,3                    ## @popenfp
	.comm	_mt,4,2                         ## @mt
	.comm	_pipein,8,3                     ## @pipein
	.comm	_O_RDONLY,4,2                   ## @O_RDONLY
L_.str.5:                               ## @.str.5
	.asciz	"%s: %s\n"

	.comm	_volno,4,2                      ## @volno
	.comm	_bflag,4,2                      ## @bflag
	.comm	_spcl,32,3                      ## @spcl
	.comm	_FAIL,8,3                       ## @FAIL
L_.str.6:                               ## @.str.6
	.asciz	"Tape is not a dump tape\n"

	.comm	_FS_UFS2_MAGIC,4,2              ## @FS_UFS2_MAGIC
	.comm	_endoftapemark,16,3             ## @endoftapemark
	.comm	_TS_END,4,2                     ## @TS_END
	.comm	_CHECKSUM,8,3                   ## @CHECKSUM
	.comm	_vflag,8,3                      ## @vflag
	.comm	_command,1,0                    ## @command
	.comm	_dumptime,8,3                   ## @dumptime
	.comm	_dumpdate,8,3                   ## @dumpdate
L_.str.7:                               ## @.str.7
	.asciz	"."

L_.str.8:                               ## @.str.8
	.asciz	"cannot stat .: %s\n"

	.comm	_TP_BSIZE,4,2                   ## @TP_BSIZE
	.comm	_fssize,4,2                     ## @fssize
	.comm	_MAXBSIZE,4,2                   ## @MAXBSIZE
L_.str.9:                               ## @.str.9
	.asciz	"Warning: filesystem with non-multiple-of-%d blocksize (%d);\n"

L_.str.10:                              ## @.str.10
	.asciz	"\twriting using blocksize %ld\n"

L_.str.11:                              ## @.str.11
	.asciz	"Tape is not volume 1 of the dump\n"

L_.str.12:                              ## @.str.12
	.asciz	"header read failed at %ld blocks\n"

	.comm	_blksread,4,2                   ## @blksread
L_.str.13:                              ## @.str.13
	.asciz	"no header after volume mark!\n"

	.comm	_TS_CLRI,8,3                    ## @TS_CLRI
L_.str.14:                              ## @.str.14
	.asciz	"Cannot find file removal list\n"

	.comm	_NBBY,4,2                       ## @NBBY
	.comm	_maxino,4,2                     ## @maxino
L_.str.15:                              ## @.str.15
	.asciz	"maxino = %ju\n"

	.comm	_map,8,3                        ## @map
L_.str.16:                              ## @.str.16
	.asciz	"no memory for active inode map\n"

	.comm	_usedinomap,8,3                 ## @usedinomap
	.comm	_USING,8,3                      ## @USING
	.comm	_curfile,8,3                    ## @curfile
	.comm	_xtrmap,4,2                     ## @xtrmap
	.comm	_xtrmapskip,4,2                 ## @xtrmapskip
	.comm	_TS_BITS,8,3                    ## @TS_BITS
L_.str.17:                              ## @.str.17
	.asciz	"Cannot find file dump list\n"

L_.str.18:                              ## @.str.18
	.asciz	"no memory for file dump list\n"

	.comm	_dumpmap,8,3                    ## @dumpmap
	.comm	_UFS_WINO,4,2                   ## @UFS_WINO
	.comm	_tapesread,4,2                  ## @tapesread
	.comm	_host,8,3                       ## @host
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_setup                          ; -- Begin function setup
	.p2align	2
_setup:                                 ; @setup
	.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	x21, _stdout@GOTPAGE
Lloh1:
	ldr	x21, [x21, _stdout@GOTPAGEOFF]
	ldr	w0, [x21]
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	bl	_vprintf
Lloh4:
	adrp	x22, _pipecmdin@GOTPAGE
Lloh5:
	ldr	x22, [x22, _pipecmdin@GOTPAGEOFF]
	ldr	x8, [x22]
Lloh6:
	adrp	x23, _magtape@GOTPAGE
Lloh7:
	ldr	x23, [x23, _magtape@GOTPAGEOFF]
Lloh8:
	adrp	x20, _pipein@GOTPAGE
Lloh9:
	ldr	x20, [x20, _pipein@GOTPAGEOFF]
	cbz	x8, LBB0_5
; %bb.1:
Lloh10:
	adrp	x0, l_.str.1@PAGE
Lloh11:
	add	x0, x0, l_.str.1@PAGEOFF
Lloh12:
	adrp	x1, l_.str.2@PAGE
Lloh13:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	w2, #1
	bl	_setenv
	cmn	w0, #1
	b.ne	LBB0_3
; %bb.2:
Lloh14:
	adrp	x8, _stderr@GOTPAGE
Lloh15:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh16:
	ldr	w19, [x8]
Lloh17:
	adrp	x8, _errno@GOTPAGE
Lloh18:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh19:
	ldr	w0, [x8]
	bl	_strerror
	str	x0, [sp]
Lloh20:
	adrp	x1, l_.str.3@PAGE
Lloh21:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x19
	bl	_fprintf
	mov	w0, #1
	bl	_done
LBB0_3:
	ldr	x0, [x23]
Lloh22:
	adrp	x1, l_.str.4@PAGE
Lloh23:
	add	x1, x1, l_.str.4@PAGEOFF
	bl	_popen
Lloh24:
	adrp	x8, _popenfp@GOTPAGE
Lloh25:
	ldr	x8, [x8, _popenfp@GOTPAGEOFF]
Lloh26:
	str	x0, [x8]
	cbz	x0, LBB0_7
; %bb.4:
	bl	_fileno
	b	LBB0_9
LBB0_5:
	ldr	x8, [x20]
	cbz	x8, LBB0_8
; %bb.6:
Lloh27:
	adrp	x8, _mt@GOTPAGE
Lloh28:
	ldr	x8, [x8, _mt@GOTPAGEOFF]
Lloh29:
	str	wzr, [x8]
	b	LBB0_11
LBB0_7:
Lloh30:
	adrp	x8, _mt@GOTPAGE
Lloh31:
	ldr	x8, [x8, _mt@GOTPAGEOFF]
	mov	w9, #-1
Lloh32:
	str	w9, [x8]
	b	LBB0_10
LBB0_8:
	ldr	x0, [x23]
Lloh33:
	adrp	x8, _O_RDONLY@GOTPAGE
Lloh34:
	ldr	x8, [x8, _O_RDONLY@GOTPAGEOFF]
Lloh35:
	ldr	w1, [x8]
	mov	w2, #0
	bl	_open
LBB0_9:
Lloh36:
	adrp	x8, _mt@GOTPAGE
Lloh37:
	ldr	x8, [x8, _mt@GOTPAGEOFF]
Lloh38:
	str	w0, [x8]
	tbz	w0, #31, LBB0_11
LBB0_10:
Lloh39:
	adrp	x8, _stderr@GOTPAGE
Lloh40:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh41:
	ldr	w19, [x8]
	ldr	x23, [x23]
Lloh42:
	adrp	x8, _errno@GOTPAGE
Lloh43:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh44:
	ldr	w0, [x8]
	bl	_strerror
	stp	x23, x0, [sp]
Lloh45:
	adrp	x1, l_.str.5@PAGE
Lloh46:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x0, x19
	bl	_fprintf
	mov	w0, #1
	bl	_done
LBB0_11:
Lloh47:
	adrp	x8, _volno@GOTPAGE
Lloh48:
	ldr	x8, [x8, _volno@GOTPAGEOFF]
	mov	w9, #1
Lloh49:
	str	w9, [x8]
	bl	_setdumpnum
	bl	_FLUSHTAPEBUF
	ldr	x8, [x20]
	ldr	x9, [x22]
Lloh50:
	adrp	x10, _bflag@GOTPAGE
Lloh51:
	ldr	x10, [x10, _bflag@GOTPAGEOFF]
Lloh52:
	ldr	w10, [x10]
	cmp	x8, #0
	ccmp	x9, #0, #0, eq
	ccmp	w10, #0, #0, eq
	b.ne	LBB0_13
; %bb.12:
	bl	_findtapeblksize
LBB0_13:
Lloh53:
	adrp	x19, _spcl@GOTPAGE
Lloh54:
	ldr	x19, [x19, _spcl@GOTPAGEOFF]
	mov	x0, x19
	bl	_gethead
Lloh55:
	adrp	x23, _FAIL@GOTPAGE
Lloh56:
	ldr	x23, [x23, _FAIL@GOTPAGEOFF]
	ldr	x8, [x23]
	cmp	x0, x8
	b.ne	LBB0_15
; %bb.14:
Lloh57:
	adrp	x8, _stderr@GOTPAGE
Lloh58:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh59:
	ldr	w0, [x8]
Lloh60:
	adrp	x1, l_.str.6@PAGE
Lloh61:
	add	x1, x1, l_.str.6@PAGEOFF
	bl	_fprintf
	mov	w0, #1
	bl	_done
LBB0_15:
	ldr	x8, [x20]
	cbz	x8, LBB0_17
; %bb.16:
Lloh62:
	adrp	x8, _FS_UFS2_MAGIC@GOTPAGE
Lloh63:
	ldr	x8, [x8, _FS_UFS2_MAGIC@GOTPAGEOFF]
Lloh64:
	adrp	x9, _endoftapemark@GOTPAGE
Lloh65:
	ldr	x9, [x9, _endoftapemark@GOTPAGEOFF]
Lloh66:
	ldr	w8, [x8]
Lloh67:
	adrp	x10, _TS_END@GOTPAGE
Lloh68:
	ldr	x10, [x10, _TS_END@GOTPAGEOFF]
Lloh69:
	ldr	w10, [x10]
	stp	w10, w8, [x9, #8]
	ldrsw	x8, [x9]
Lloh70:
	adrp	x10, _CHECKSUM@GOTPAGE
Lloh71:
	ldr	x10, [x10, _CHECKSUM@GOTPAGEOFF]
Lloh72:
	ldr	x10, [x10]
	sub	x8, x10, x8
	str	x8, [x9]
LBB0_17:
Lloh73:
	adrp	x8, _vflag@GOTPAGE
Lloh74:
	ldr	x8, [x8, _vflag@GOTPAGEOFF]
Lloh75:
	ldr	x8, [x8]
Lloh76:
	adrp	x22, _command@GOTPAGE
Lloh77:
	ldr	x22, [x22, _command@GOTPAGEOFF]
	cbnz	x8, LBB0_19
; %bb.18:
	ldrb	w8, [x22]
	cmp	w8, #116
	b.ne	LBB0_20
LBB0_19:
	bl	_printdumpinfo
LBB0_20:
	ldr	w0, [x19, #24]
	bl	__time64_to_time
Lloh78:
	adrp	x8, _dumptime@GOTPAGE
Lloh79:
	ldr	x8, [x8, _dumptime@GOTPAGEOFF]
Lloh80:
	str	x0, [x8]
	ldr	w0, [x19, #20]
	bl	__time64_to_time
Lloh81:
	adrp	x8, _dumpdate@GOTPAGE
Lloh82:
	ldr	x8, [x8, _dumpdate@GOTPAGEOFF]
Lloh83:
	str	x0, [x8]
Lloh84:
	adrp	x0, l_.str.7@PAGE
Lloh85:
	add	x0, x0, l_.str.7@PAGEOFF
	add	x1, sp, #24
	bl	_stat
	tbz	x0, #63, LBB0_22
; %bb.21:
Lloh86:
	adrp	x8, _stderr@GOTPAGE
Lloh87:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh88:
	ldr	w20, [x8]
Lloh89:
	adrp	x8, _errno@GOTPAGE
Lloh90:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh91:
	ldr	w0, [x8]
	bl	_strerror
	str	x0, [sp]
Lloh92:
	adrp	x1, l_.str.8@PAGE
Lloh93:
	add	x1, x1, l_.str.8@PAGEOFF
	mov	x0, x20
	bl	_fprintf
	mov	w0, #1
	bl	_done
LBB0_22:
	ldr	w8, [sp, #24]
Lloh94:
	adrp	x20, _TP_BSIZE@GOTPAGE
Lloh95:
	ldr	x20, [x20, _TP_BSIZE@GOTPAGEOFF]
	ldr	w9, [x20]
Lloh96:
	adrp	x24, _fssize@GOTPAGE
Lloh97:
	ldr	x24, [x24, _fssize@GOTPAGEOFF]
	cmp	w8, #1
	b.lt	LBB0_25
; %bb.23:
	cmp	w8, w9
	b.ge	LBB0_25
; %bb.24:
	str	w9, [x24]
LBB0_25:
	cmp	w8, w9
	b.lt	LBB0_28
; %bb.26:
Lloh98:
	adrp	x10, _MAXBSIZE@GOTPAGE
Lloh99:
	ldr	x10, [x10, _MAXBSIZE@GOTPAGEOFF]
Lloh100:
	ldr	w10, [x10]
	cmp	w8, w10
	b.gt	LBB0_28
; %bb.27:
	str	w8, [x24]
LBB0_28:
	sub	w10, w9, #1
	tst	w10, w8
	b.eq	LBB0_30
; %bb.29:
Lloh101:
	adrp	x25, _stderr@GOTPAGE
Lloh102:
	ldr	x25, [x25, _stderr@GOTPAGEOFF]
	ldr	w0, [x25]
	stp	x9, x8, [sp]
Lloh103:
	adrp	x1, l_.str.9@PAGE
Lloh104:
	add	x1, x1, l_.str.9@PAGEOFF
	bl	_fprintf
	ldr	w0, [x24]
	ldr	w1, [x20]
	bl	_roundup
                                        ; kill: def $w0 killed $w0 def $x0
	str	w0, [x24]
	ldr	w8, [x25]
	str	x0, [sp]
Lloh105:
	adrp	x1, l_.str.10@PAGE
Lloh106:
	add	x1, x1, l_.str.10@PAGEOFF
	mov	x0, x8
	bl	_fprintf
LBB0_30:
	ldr	w8, [x19]
	cmp	w8, #1
	b.eq	LBB0_32
; %bb.31:
Lloh107:
	adrp	x8, _stderr@GOTPAGE
Lloh108:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh109:
	ldr	w0, [x8]
Lloh110:
	adrp	x1, l_.str.11@PAGE
Lloh111:
	add	x1, x1, l_.str.11@PAGEOFF
	bl	_fprintf
	mov	w0, #1
	bl	_done
LBB0_32:
Lloh112:
	adrp	x19, _spcl@GOTPAGE
Lloh113:
	ldr	x19, [x19, _spcl@GOTPAGEOFF]
	mov	x0, x19
	bl	_gethead
	ldr	x8, [x23]
	cmp	x0, x8
	b.ne	LBB0_34
; %bb.33:
	ldr	w0, [x21]
Lloh114:
	adrp	x8, _blksread@GOTPAGE
Lloh115:
	ldr	x8, [x8, _blksread@GOTPAGEOFF]
Lloh116:
	ldr	w2, [x8]
Lloh117:
	adrp	x1, l_.str.12@PAGE
Lloh118:
	add	x1, x1, l_.str.12@PAGEOFF
	bl	_dprintf
Lloh119:
	adrp	x0, l_.str.13@PAGE
Lloh120:
	add	x0, x0, l_.str.13@PAGEOFF
	bl	_panic
LBB0_34:
	mov	x0, x19
	bl	_findinode
	ldr	x8, [x19, #8]
Lloh121:
	adrp	x9, _TS_CLRI@GOTPAGE
Lloh122:
	ldr	x9, [x9, _TS_CLRI@GOTPAGEOFF]
Lloh123:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_36
; %bb.35:
Lloh124:
	adrp	x8, _stderr@GOTPAGE
Lloh125:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh126:
	ldr	w0, [x8]
Lloh127:
	adrp	x1, l_.str.14@PAGE
Lloh128:
	add	x1, x1, l_.str.14@PAGEOFF
	bl	_fprintf
	mov	w0, #1
	bl	_done
LBB0_36:
	ldr	w8, [x19, #16]
	ldr	w9, [x20]
	mul	w8, w9, w8
Lloh129:
	adrp	x20, _NBBY@GOTPAGE
Lloh130:
	ldr	x20, [x20, _NBBY@GOTPAGEOFF]
	ldr	w9, [x20]
	orr	w10, wzr, #0x1
	madd	w2, w8, w9, w10
Lloh131:
	adrp	x23, _maxino@GOTPAGE
Lloh132:
	ldr	x23, [x23, _maxino@GOTPAGEOFF]
	str	w2, [x23]
	ldr	w0, [x21]
Lloh133:
	adrp	x1, l_.str.15@PAGE
Lloh134:
	add	x1, x1, l_.str.15@PAGEOFF
	bl	_dprintf
	ldr	w0, [x23]
	ldr	w1, [x20]
	bl	_howmany
	mov	x1, x0
	mov	w0, #1
                                        ; kill: def $w1 killed $w1 killed $x1
	bl	_calloc
Lloh135:
	adrp	x21, _map@GOTPAGE
Lloh136:
	ldr	x21, [x21, _map@GOTPAGEOFF]
	str	x0, [x21]
	cbnz	x0, LBB0_38
; %bb.37:
Lloh137:
	adrp	x0, l_.str.16@PAGE
Lloh138:
	add	x0, x0, l_.str.16@PAGEOFF
	bl	_panic
	ldr	x0, [x21]
LBB0_38:
Lloh139:
	adrp	x8, _usedinomap@GOTPAGE
Lloh140:
	ldr	x8, [x8, _usedinomap@GOTPAGEOFF]
Lloh141:
	str	x0, [x8]
Lloh142:
	adrp	x24, _USING@GOTPAGE
Lloh143:
	ldr	x24, [x24, _USING@GOTPAGEOFF]
	ldr	x8, [x24]
Lloh144:
	adrp	x25, _curfile@GOTPAGE
Lloh145:
	ldr	x25, [x25, _curfile@GOTPAGEOFF]
	str	x8, [x25]
Lloh146:
	adrp	x26, _xtrmap@GOTPAGE
Lloh147:
	ldr	x26, [x26, _xtrmap@GOTPAGEOFF]
	ldr	w0, [x26]
Lloh148:
	adrp	x27, _xtrmapskip@GOTPAGE
Lloh149:
	ldr	x27, [x27, _xtrmapskip@GOTPAGEOFF]
	ldr	w1, [x27]
	mov	x2, x1
	bl	_getfile
	ldr	x8, [x19, #8]
Lloh150:
	adrp	x9, _TS_BITS@GOTPAGE
Lloh151:
	ldr	x9, [x9, _TS_BITS@GOTPAGEOFF]
Lloh152:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_40
; %bb.39:
Lloh153:
	adrp	x8, _stderr@GOTPAGE
Lloh154:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh155:
	ldr	w0, [x8]
Lloh156:
	adrp	x1, l_.str.17@PAGE
Lloh157:
	add	x1, x1, l_.str.17@PAGEOFF
	bl	_fprintf
	mov	w0, #1
	bl	_done
LBB0_40:
	ldr	w0, [x23]
	ldr	w1, [x20]
	bl	_howmany
	mov	x1, x0
	mov	w0, #1
                                        ; kill: def $w1 killed $w1 killed $x1
	bl	_calloc
	str	x0, [x21]
	cbnz	x0, LBB0_42
; %bb.41:
Lloh158:
	adrp	x0, l_.str.18@PAGE
Lloh159:
	add	x0, x0, l_.str.18@PAGEOFF
	bl	_panic
	ldr	x0, [x21]
LBB0_42:
Lloh160:
	adrp	x19, _dumpmap@GOTPAGE
Lloh161:
	ldr	x19, [x19, _dumpmap@GOTPAGEOFF]
	str	x0, [x19]
	ldr	x8, [x24]
	str	x8, [x25]
	ldr	w0, [x26]
	ldr	w1, [x27]
	mov	x2, x1
	bl	_getfile
Lloh162:
	adrp	x8, _UFS_WINO@GOTPAGE
Lloh163:
	ldr	x8, [x8, _UFS_WINO@GOTPAGEOFF]
Lloh164:
	ldr	w0, [x8]
	ldr	x1, [x19]
	bl	_SETINO
	ldrb	w8, [x22]
	cmp	w8, #114
	b.ne	LBB0_44
; %bb.43:
Lloh165:
	adrp	x8, _tapesread@GOTPAGE
Lloh166:
	ldr	x8, [x8, _tapesread@GOTPAGEOFF]
	mov	w9, #1
Lloh167:
	str	w9, [x8]
LBB0_44:
	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
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotStr	Lloh24, Lloh25, Lloh26
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdrGotStr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotStr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotStr	Lloh36, Lloh37, Lloh38
	.loh AdrpAdd	Lloh45, Lloh46
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh50, Lloh51, Lloh52
	.loh AdrpLdrGotStr	Lloh47, Lloh48, Lloh49
	.loh AdrpLdrGot	Lloh55, Lloh56
	.loh AdrpLdrGot	Lloh53, Lloh54
	.loh AdrpAdd	Lloh60, Lloh61
	.loh AdrpLdrGotLdr	Lloh57, Lloh58, Lloh59
	.loh AdrpLdrGotLdr	Lloh70, Lloh71, Lloh72
	.loh AdrpLdrGotLdr	Lloh67, Lloh68, Lloh69
	.loh AdrpLdrGot	Lloh64, Lloh65
	.loh AdrpLdrGotLdr	Lloh62, Lloh63, Lloh66
	.loh AdrpLdrGot	Lloh76, Lloh77
	.loh AdrpLdrGotLdr	Lloh73, Lloh74, Lloh75
	.loh AdrpAdd	Lloh84, Lloh85
	.loh AdrpLdrGotStr	Lloh81, Lloh82, Lloh83
	.loh AdrpLdrGotStr	Lloh78, Lloh79, Lloh80
	.loh AdrpAdd	Lloh92, Lloh93
	.loh AdrpLdrGotLdr	Lloh89, Lloh90, Lloh91
	.loh AdrpLdrGotLdr	Lloh86, Lloh87, Lloh88
	.loh AdrpLdrGot	Lloh96, Lloh97
	.loh AdrpLdrGot	Lloh94, Lloh95
	.loh AdrpLdrGotLdr	Lloh98, Lloh99, Lloh100
	.loh AdrpAdd	Lloh105, Lloh106
	.loh AdrpAdd	Lloh103, Lloh104
	.loh AdrpLdrGot	Lloh101, Lloh102
	.loh AdrpAdd	Lloh110, Lloh111
	.loh AdrpLdrGotLdr	Lloh107, Lloh108, Lloh109
	.loh AdrpLdrGot	Lloh112, Lloh113
	.loh AdrpAdd	Lloh119, Lloh120
	.loh AdrpAdd	Lloh117, Lloh118
	.loh AdrpLdrGotLdr	Lloh114, Lloh115, Lloh116
	.loh AdrpLdrGotLdr	Lloh121, Lloh122, Lloh123
	.loh AdrpAdd	Lloh127, Lloh128
	.loh AdrpLdrGotLdr	Lloh124, Lloh125, Lloh126
	.loh AdrpLdrGot	Lloh135, Lloh136
	.loh AdrpAdd	Lloh133, Lloh134
	.loh AdrpLdrGot	Lloh131, Lloh132
	.loh AdrpLdrGot	Lloh129, Lloh130
	.loh AdrpAdd	Lloh137, Lloh138
	.loh AdrpLdrGotLdr	Lloh150, Lloh151, Lloh152
	.loh AdrpLdrGot	Lloh148, Lloh149
	.loh AdrpLdrGot	Lloh146, Lloh147
	.loh AdrpLdrGot	Lloh144, Lloh145
	.loh AdrpLdrGot	Lloh142, Lloh143
	.loh AdrpLdrGotStr	Lloh139, Lloh140, Lloh141
	.loh AdrpAdd	Lloh156, Lloh157
	.loh AdrpLdrGotLdr	Lloh153, Lloh154, Lloh155
	.loh AdrpAdd	Lloh158, Lloh159
	.loh AdrpLdrGotLdr	Lloh162, Lloh163, Lloh164
	.loh AdrpLdrGot	Lloh160, Lloh161
	.loh AdrpLdrGotStr	Lloh165, Lloh166, Lloh167
	.cfi_endproc
                                        ; -- End function
	.comm	_stdout,4,2                     ; @stdout
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Verify tape and initialize maps\n"

	.comm	_pipecmdin,8,3                  ; @pipecmdin
l_.str.1:                               ; @.str.1
	.asciz	"RESTORE_VOLUME"

l_.str.2:                               ; @.str.2
	.asciz	"1"

	.comm	_stderr,4,2                     ; @stderr
l_.str.3:                               ; @.str.3
	.asciz	"Cannot set $RESTORE_VOLUME: %s\n"

	.comm	_errno,4,2                      ; @errno
	.comm	_magtape,8,3                    ; @magtape
l_.str.4:                               ; @.str.4
	.asciz	"r"

	.comm	_popenfp,8,3                    ; @popenfp
	.comm	_mt,4,2                         ; @mt
	.comm	_pipein,8,3                     ; @pipein
	.comm	_O_RDONLY,4,2                   ; @O_RDONLY
l_.str.5:                               ; @.str.5
	.asciz	"%s: %s\n"

	.comm	_volno,4,2                      ; @volno
	.comm	_bflag,4,2                      ; @bflag
	.comm	_spcl,32,3                      ; @spcl
	.comm	_FAIL,8,3                       ; @FAIL
l_.str.6:                               ; @.str.6
	.asciz	"Tape is not a dump tape\n"

	.comm	_FS_UFS2_MAGIC,4,2              ; @FS_UFS2_MAGIC
	.comm	_endoftapemark,16,3             ; @endoftapemark
	.comm	_TS_END,4,2                     ; @TS_END
	.comm	_CHECKSUM,8,3                   ; @CHECKSUM
	.comm	_vflag,8,3                      ; @vflag
	.comm	_command,1,0                    ; @command
	.comm	_dumptime,8,3                   ; @dumptime
	.comm	_dumpdate,8,3                   ; @dumpdate
l_.str.7:                               ; @.str.7
	.asciz	"."

l_.str.8:                               ; @.str.8
	.asciz	"cannot stat .: %s\n"

	.comm	_TP_BSIZE,4,2                   ; @TP_BSIZE
	.comm	_fssize,4,2                     ; @fssize
	.comm	_MAXBSIZE,4,2                   ; @MAXBSIZE
l_.str.9:                               ; @.str.9
	.asciz	"Warning: filesystem with non-multiple-of-%d blocksize (%d);\n"

l_.str.10:                              ; @.str.10
	.asciz	"\twriting using blocksize %ld\n"

l_.str.11:                              ; @.str.11
	.asciz	"Tape is not volume 1 of the dump\n"

l_.str.12:                              ; @.str.12
	.asciz	"header read failed at %ld blocks\n"

	.comm	_blksread,4,2                   ; @blksread
l_.str.13:                              ; @.str.13
	.asciz	"no header after volume mark!\n"

	.comm	_TS_CLRI,8,3                    ; @TS_CLRI
l_.str.14:                              ; @.str.14
	.asciz	"Cannot find file removal list\n"

	.comm	_NBBY,4,2                       ; @NBBY
	.comm	_maxino,4,2                     ; @maxino
l_.str.15:                              ; @.str.15
	.asciz	"maxino = %ju\n"

	.comm	_map,8,3                        ; @map
l_.str.16:                              ; @.str.16
	.asciz	"no memory for active inode map\n"

	.comm	_usedinomap,8,3                 ; @usedinomap
	.comm	_USING,8,3                      ; @USING
	.comm	_curfile,8,3                    ; @curfile
	.comm	_xtrmap,4,2                     ; @xtrmap
	.comm	_xtrmapskip,4,2                 ; @xtrmapskip
	.comm	_TS_BITS,8,3                    ; @TS_BITS
l_.str.17:                              ; @.str.17
	.asciz	"Cannot find file dump list\n"

l_.str.18:                              ; @.str.18
	.asciz	"no memory for file dump list\n"

	.comm	_dumpmap,8,3                    ; @dumpmap
	.comm	_UFS_WINO,4,2                   ; @UFS_WINO
	.comm	_tapesread,4,2                  ; @tapesread
	.comm	_host,8,3                       ; @host
.subsections_via_symbols
