	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ftp_chkerr
_ftp_chkerr:                            ## @ftp_chkerr
	.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
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	callq	_fetch_getln
	cmpl	$-1, %eax
	je	LBB0_5
## %bb.1:
	movq	(%rbx), %rdi
	callq	_isftpinfo
	testq	%rax, %rax
	je	LBB0_6
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	cmpl	$0, 8(%rbx)
	je	LBB0_6
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	(%rbx), %rdi
	callq	_isftpreply
	testl	%eax, %eax
	jne	LBB0_6
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%rbx, %rdi
	callq	_fetch_getln
	cmpl	$-1, %eax
	jne	LBB0_2
LBB0_5:
	xorl	%eax, %eax
	callq	_fetch_syserr
	jmp	LBB0_13
LBB0_6:
	movl	8(%rbx), %ecx
	xorl	%r14d, %r14d
	testl	%ecx, %ecx
	je	LBB0_10
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%rbx), %rax
	movslq	%ecx, %rcx
	movzbl	-1(%rcx,%rax), %edi
	callq	_isspace
	movl	8(%rbx), %ecx
	testq	%rax, %rax
	je	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=1
	decl	%ecx
	movl	%ecx, 8(%rbx)
	jne	LBB0_7
	jmp	LBB0_10
LBB0_9:
	movl	%ecx, %r14d
LBB0_10:
	movq	(%rbx), %rax
	movslq	%r14d, %rcx
	movb	$0, (%rax,%rcx)
	movq	(%rbx), %rdi
	callq	_isftpreply
	testl	%eax, %eax
	je	LBB0_12
## %bb.11:
	movq	(%rbx), %rax
	movsbl	(%rax), %ecx
	imull	$100, %ecx, %ecx
	movsbl	1(%rax), %edx
	leal	(%rdx,%rdx,4), %edx
	movsbl	2(%rax), %eax
	leal	(%rcx,%rdx,2), %ecx
	addl	%ecx, %eax
	addl	$-5328, %eax                    ## imm = 0xEB30
	movl	%eax, 12(%rbx)
	jmp	LBB0_14
LBB0_12:
	movq	_FTP_PROTOCOL_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_ftp_seterr
LBB0_13:
	movl	$-1, %eax
LBB0_14:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_FTP_PROTOCOL_ERROR,4,2         ## @FTP_PROTOCOL_ERROR
	.no_dead_strip	_ftp_chkerr
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ftp_chkerr
_ftp_chkerr:                            ; @ftp_chkerr
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	bl	_fetch_getln
	cmn	w0, #1
	b.eq	LBB0_5
; %bb.1:
	ldr	x0, [x19]
	bl	_isftpinfo
	cbz	x0, LBB0_6
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x19, #8]
	cbz	w8, LBB0_6
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	x0, [x19]
	bl	_isftpreply
	cbnz	w0, LBB0_6
; %bb.4:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x0, x19
	bl	_fetch_getln
	cmn	w0, #1
	b.ne	LBB0_2
LBB0_5:
	bl	_fetch_syserr
	b	LBB0_12
LBB0_6:
	ldr	w8, [x19, #8]
	cbz	w8, LBB0_9
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x19]
	add	x8, x9, w8, sxtw
	ldurb	w0, [x8, #-1]
	bl	_isspace
	ldr	w8, [x19, #8]
	cbz	x0, LBB0_9
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	subs	w8, w8, #1
	str	w8, [x19, #8]
	b.ne	LBB0_7
LBB0_9:
	ldr	x9, [x19]
	strb	wzr, [x9, w8, sxtw]
	ldr	x0, [x19]
	bl	_isftpreply
	cbz	w0, LBB0_11
; %bb.10:
	ldr	x8, [x19]
	ldrsb	w9, [x8]
	mov	w10, #100
	ldrsb	w11, [x8, #1]
	mov	w12, #10
	mul	w11, w11, w12
	ldrsb	w8, [x8, #2]
	madd	w9, w9, w10, w11
	mov	w10, #-5328
	add	w8, w9, w8
	add	w0, w8, w10
	str	w0, [x19, #12]
	b	LBB0_13
LBB0_11:
Lloh0:
	adrp	x8, _FTP_PROTOCOL_ERROR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _FTP_PROTOCOL_ERROR@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_ftp_seterr
LBB0_12:
	mov	w0, #-1
LBB0_13:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_FTP_PROTOCOL_ERROR,4,2         ; @FTP_PROTOCOL_ERROR
	.no_dead_strip	_ftp_chkerr
.subsections_via_symbols
