	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_close_rewind                   ## -- Begin function close_rewind
	.p2align	4, 0x90
_close_rewind:                          ## @close_rewind
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	xorl	%eax, %eax
	callq	_trewind
	movq	_nexttape@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	jne	LBB0_11
## %bb.1:
	leaq	-32(%rbp), %rdi
	callq	_time
	movq	_nogripe@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	jne	LBB0_3
## %bb.2:
	movq	_tapeno@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	incq	%rsi
	leaq	L_.str(%rip), %rdi
	callq	_msg
	leaq	L_.str.1(%rip), %rdi
	callq	_broadcast
LBB0_3:
	leaq	L_.str.2(%rip), %rdi
	callq	_query
	testq	%rax, %rax
	je	LBB0_4
LBB0_8:
	leaq	-24(%rbp), %rdi
	callq	_time
	movq	-32(%rbp), %rax
	cmpq	$-1, %rax
	je	LBB0_11
## %bb.9:
	movq	-24(%rbp), %rcx
	cmpq	$-1, %rcx
	je	LBB0_11
## %bb.10:
	subl	%eax, %ecx
	movq	_tstart_writing@GOTPCREL(%rip), %rax
	addl	%ecx, (%rax)
LBB0_11:
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_4:
	leaq	L_.str.3(%rip), %r14
	leaq	L_.str.2(%rip), %rbx
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_5 Depth=1
	movq	%rbx, %rdi
	callq	_query
	testq	%rax, %rax
	jne	LBB0_8
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r14, %rdi
	callq	_query
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	xorl	%edi, %edi
	callq	_dumpabort
	jmp	LBB0_7
	.cfi_endproc
                                        ## -- End function
	.comm	_nexttape,8,3                   ## @nexttape
	.comm	_nogripe,4,2                    ## @nogripe
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Change Volumes: Mount volume #%d\n"

	.comm	_tapeno,8,3                     ## @tapeno
L_.str.1:                               ## @.str.1
	.asciz	"CHANGE DUMP VOLUMES!\007\007\n"

L_.str.2:                               ## @.str.2
	.asciz	"Is the new volume mounted and ready to go?"

L_.str.3:                               ## @.str.3
	.asciz	"Do you want to abort?"

	.comm	_tstart_writing,4,2             ## @tstart_writing
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_close_rewind                   ; -- Begin function close_rewind
	.p2align	2
_close_rewind:                          ; @close_rewind
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	bl	_trewind
Lloh0:
	adrp	x8, _nexttape@GOTPAGE
Lloh1:
	ldr	x8, [x8, _nexttape@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cbnz	x8, LBB0_7
; %bb.1:
	add	x0, sp, #8
	bl	_time
Lloh3:
	adrp	x8, _nogripe@GOTPAGE
Lloh4:
	ldr	x8, [x8, _nogripe@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	cbnz	w8, LBB0_3
; %bb.2:
Lloh6:
	adrp	x8, _tapeno@GOTPAGE
Lloh7:
	ldr	x8, [x8, _tapeno@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	add	x1, x8, #1
Lloh9:
	adrp	x0, l_.str@PAGE
Lloh10:
	add	x0, x0, l_.str@PAGEOFF
	bl	_msg
Lloh11:
	adrp	x0, l_.str.1@PAGE
Lloh12:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_broadcast
LBB0_3:
Lloh13:
	adrp	x0, l_.str.2@PAGE
Lloh14:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_query
	cbz	x0, LBB0_8
LBB0_4:
	mov	x0, sp
	bl	_time
	ldr	x8, [sp, #8]
	cmn	x8, #1
	b.eq	LBB0_7
; %bb.5:
	ldr	x9, [sp]
	cmn	x9, #1
	b.eq	LBB0_7
; %bb.6:
Lloh15:
	adrp	x10, _tstart_writing@GOTPAGE
Lloh16:
	ldr	x10, [x10, _tstart_writing@GOTPAGEOFF]
	ldr	w11, [x10]
	sub	w8, w9, w8
	add	w8, w11, w8
	str	w8, [x10]
LBB0_7:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
LBB0_8:
Lloh17:
	adrp	x19, l_.str.3@PAGE
Lloh18:
	add	x19, x19, l_.str.3@PAGEOFF
Lloh19:
	adrp	x20, l_.str.2@PAGE
Lloh20:
	add	x20, x20, l_.str.2@PAGEOFF
	b	LBB0_10
LBB0_9:                                 ;   in Loop: Header=BB0_10 Depth=1
	mov	x0, x20
	bl	_query
	cbnz	x0, LBB0_4
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	bl	_query
	cbz	x0, LBB0_9
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=1
	mov	w0, #0
	bl	_dumpabort
	b	LBB0_9
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpAdd	Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_nexttape,8,3                   ; @nexttape
	.comm	_nogripe,4,2                    ; @nogripe
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Change Volumes: Mount volume #%d\n"

	.comm	_tapeno,8,3                     ; @tapeno
l_.str.1:                               ; @.str.1
	.asciz	"CHANGE DUMP VOLUMES!\007\007\n"

l_.str.2:                               ; @.str.2
	.asciz	"Is the new volume mounted and ready to go?"

l_.str.3:                               ; @.str.3
	.asciz	"Do you want to abort?"

	.comm	_tstart_writing,4,2             ; @tstart_writing
.subsections_via_symbols
