	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rmtreply
_rmtreply:                              ## @rmtreply
	.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
	subq	$48, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	%rsp, %r12
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -40(%rbp)
	movq	_BUFSIZ@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	%rbx, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r15
	leaq	-80(%rbp), %rdi
	movl	$30, %esi
	callq	_rmtgets
	movb	-80(%rbp), %al
	leal	-69(%rax), %ecx
	cmpb	$1, %cl
	ja	LBB0_3
## %bb.1:
	movq	%r15, %rdi
	movl	%ebx, %esi
	callq	_rmtgets
	leaq	L_.str(%rip), %rdi
	movq	%r14, %rsi
	movq	%r15, %rdx
	xorl	%eax, %eax
	callq	_msg
	leaq	-79(%rbp), %rdi
	callq	_atoi
	movq	_errno@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	movl	$-1, %eax
	cmpb	$70, -80(%rbp)
	jne	LBB0_9
## %bb.2:
	movq	_TS_CLOSED@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	_rmtstate@GOTPCREL(%rip), %rdx
	movl	%ecx, (%rdx)
	jmp	LBB0_9
LBB0_3:
	cmpb	$65, %al
	je	LBB0_8
## %bb.4:
	leaq	-80(%rbp), %rdi
	callq	_strlen
	testl	%eax, %eax
	jle	LBB0_7
## %bb.5:
	movl	%eax, %eax
	cmpb	$10, -81(%rbp,%rax)
	jne	LBB0_7
## %bb.6:
	movb	$0, -81(%rbp,%rax)
LBB0_7:
	leaq	L_.str.1(%rip), %rdi
	leaq	-80(%rbp), %rsi
	xorl	%eax, %eax
	callq	_msg
	xorl	%edi, %edi
	callq	_rmtconnaborted
LBB0_8:
	leaq	-79(%rbp), %rdi
	callq	_atoi
LBB0_9:
	movq	%r12, %rsp
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-40(%rbp), %rcx
	jne	LBB0_11
## %bb.10:
	leaq	-32(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_11:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_BUFSIZ,4,2                     ## @BUFSIZ
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s: %s"

	.comm	_errno,4,2                      ## @errno
	.comm	_TS_CLOSED,4,2                  ## @TS_CLOSED
	.comm	_rmtstate,4,2                   ## @rmtstate
L_.str.1:                               ## @.str.1
	.asciz	"Protocol to remote tape server botched (code \"%s\").\n"

	.no_dead_strip	_rmtreply
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rmtreply
_rmtreply:                              ; @rmtreply
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	sub	sp, sp, #48
	mov	x19, x0
	mov	x22, sp
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-56]
Lloh3:
	adrp	x8, _BUFSIZ@GOTPAGE
Lloh4:
	ldr	x8, [x8, _BUFSIZ@GOTPAGEOFF]
Lloh5:
	ldr	w20, [x8]
	mov	x9, x20
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x8, sp
	add	x9, x20, #15
	and	x9, x9, #0x1fffffff0
	sub	x21, x8, x9
	mov	sp, x21
	sub	x23, x29, #86
	sub	x0, x29, #86
	mov	w1, #30
	bl	_rmtgets
	ldurb	w8, [x29, #-86]
	sub	w9, w8, #69
	cmp	w9, #1
	b.hi	LBB0_4
; %bb.1:
	mov	x0, x21
	mov	x1, x20
	bl	_rmtgets
	str	x21, [sp, #-16]!
Lloh8:
	adrp	x0, l_.str@PAGE
Lloh9:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x19
	bl	_msg
	add	sp, sp, #16
	add	x0, x23, #1
	bl	_atoi
Lloh10:
	adrp	x8, _errno@GOTPAGE
Lloh11:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh12:
	str	w0, [x8]
	ldurb	w8, [x29, #-86]
	cmp	w8, #70
	b.ne	LBB0_3
; %bb.2:
Lloh13:
	adrp	x8, _TS_CLOSED@GOTPAGE
Lloh14:
	ldr	x8, [x8, _TS_CLOSED@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
Lloh16:
	adrp	x9, _rmtstate@GOTPAGE
Lloh17:
	ldr	x9, [x9, _rmtstate@GOTPAGEOFF]
Lloh18:
	str	w8, [x9]
LBB0_3:
	mov	w0, #-1
	b	LBB0_10
LBB0_4:
	cmp	w8, #65
	b.eq	LBB0_9
; %bb.5:
	sub	x19, x29, #86
	sub	x0, x29, #86
	bl	_strlen
	cmp	w0, #1
	b.lt	LBB0_8
; %bb.6:
	add	x8, x19, w0, uxtw
	ldurb	w9, [x8, #-1]
	cmp	w9, #10
	b.ne	LBB0_8
; %bb.7:
	sturb	wzr, [x8, #-1]
LBB0_8:
Lloh19:
	adrp	x0, l_.str.1@PAGE
Lloh20:
	add	x0, x0, l_.str.1@PAGEOFF
	sub	x1, x29, #86
	bl	_msg
	mov	w0, #0
	bl	_rmtconnaborted
LBB0_9:
	sub	x8, x29, #86
	add	x0, x8, #1
	bl	_atoi
LBB0_10:
	mov	sp, x22
	ldur	x8, [x29, #-56]
Lloh21:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh22:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh23:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_12
; %bb.11:
	sub	sp, x29, #48
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_12:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotStr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotStr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.comm	_BUFSIZ,4,2                     ; @BUFSIZ
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s: %s"

	.comm	_errno,4,2                      ; @errno
	.comm	_TS_CLOSED,4,2                  ; @TS_CLOSED
	.comm	_rmtstate,4,2                   ; @rmtstate
l_.str.1:                               ; @.str.1
	.asciz	"Protocol to remote tape server botched (code \"%s\").\n"

	.no_dead_strip	_rmtreply
.subsections_via_symbols
