	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_response                       ## -- Begin function response
	.p2align	4, 0x90
_response:                              ## @response
	.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	%rsp, %r15
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_BUFSIZ@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r14
	movq	_remin@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	leaq	-50(%rbp), %rsi
	movl	$1, %edx
	callq	_read
	cmpl	$1, %eax
	je	LBB0_2
## %bb.1:
	xorl	%edi, %edi
	callq	_lostconn
LBB0_2:
	movb	-50(%rbp), %dl
	movsbl	%dl, %eax
	leal	-1(%rax), %ecx
	movq	%r14, %rbx
	cmpl	$2, %ecx
	jb	LBB0_5
## %bb.3:
	testl	%eax, %eax
	je	LBB0_13
## %bb.4:
	leaq	1(%r14), %rbx
	movb	%dl, (%r14)
LBB0_5:
	movb	%dl, -49(%rbp)                  ## 1-byte Spill
	movq	%r15, -64(%rbp)                 ## 8-byte Spill
	leaq	1(%rbx), %r13
	subl	%r14d, %ebx
	leaq	-51(%rbp), %r15
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r12), %edi
	movq	%r15, %rsi
	movl	$1, %edx
	callq	_read
	cmpl	$1, %eax
	je	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	xorl	%edi, %edi
	callq	_lostconn
LBB0_8:                                 ##   in Loop: Header=BB0_6 Depth=1
	movzbl	-51(%rbp), %eax
	movb	%al, -1(%r13)
	movq	_BUFSIZ@GOTPCREL(%rip), %rcx
	movslq	(%rcx), %rcx
	addq	%r14, %rcx
	incl	%ebx
	cmpq	%rcx, %r13
	jae	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_6 Depth=1
	incq	%r13
	cmpb	$10, %al
	jne	LBB0_6
LBB0_10:
	movq	_iamremote@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	movq	-64(%rbp), %r15                 ## 8-byte Reload
	jne	LBB0_12
## %bb.11:
	movq	_STDERR_FILENO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r14, %rsi
	movl	%ebx, %edx
	callq	_write
LBB0_12:
	movq	_errs@GOTPCREL(%rip), %rax
	incl	(%rax)
	movl	$-1, %eax
	cmpb	$1, -49(%rbp)                   ## 1-byte Folded Reload
	jne	LBB0_15
LBB0_13:
	movq	%r15, %rsp
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_16
## %bb.14:
                                        ## kill: def $eax killed $eax killed $rax
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_16:
	callq	___stack_chk_fail
LBB0_15:
	movl	$1, %edi
	callq	_exit
	.cfi_endproc
                                        ## -- End function
	.comm	_BUFSIZ,4,2                     ## @BUFSIZ
	.comm	_remin,4,2                      ## @remin
	.comm	_iamremote,4,2                  ## @iamremote
	.comm	_STDERR_FILENO,4,2              ## @STDERR_FILENO
	.comm	_errs,4,2                       ## @errs
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_response                       ; -- Begin function response
	.p2align	2
_response:                              ; @response
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	sub	sp, sp, #16
	mov	x21, sp
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-72]
Lloh3:
	adrp	x22, _BUFSIZ@GOTPAGE
Lloh4:
	ldr	x22, [x22, _BUFSIZ@GOTPAGEOFF]
	ldr	w8, [x22]
	mov	x9, x8
Lloh5:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh6:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x1fffffff0
	sub	x19, x9, x8
	mov	sp, x19
Lloh7:
	adrp	x23, _remin@GOTPAGE
Lloh8:
	ldr	x23, [x23, _remin@GOTPAGEOFF]
	ldr	w0, [x23]
	sub	x1, x29, #74
	mov	w2, #1
	bl	_read
	cmp	w0, #1
	b.eq	LBB0_2
; %bb.1:
	mov	w0, #0
	bl	_lostconn
LBB0_2:
	ldursb	w0, [x29, #-74]
	and	w24, w0, #0xff
	sub	w9, w0, #1
	mov	x8, x19
	cmp	w9, #2
	b.lo	LBB0_5
; %bb.3:
	cbz	w0, LBB0_13
; %bb.4:
	mov	x8, x19
	strb	w24, [x8], #1
LBB0_5:
	add	x25, x8, #1
	sub	w20, w8, w19
	b	LBB0_7
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=1
	ldurb	w8, [x29, #-73]
	sturb	w8, [x25, #-1]
	ldrsw	x9, [x22]
	add	x9, x19, x9
	cmp	x25, x9
	add	x25, x25, #1
	add	w20, w20, #1
	ccmp	w8, #10, #4, lo
	b.eq	LBB0_9
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x23]
	sub	x1, x29, #73
	mov	w2, #1
	bl	_read
	cmp	w0, #1
	b.eq	LBB0_6
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	mov	w0, #0
	bl	_lostconn
	b	LBB0_6
LBB0_9:
Lloh9:
	adrp	x8, _iamremote@GOTPAGE
Lloh10:
	ldr	x8, [x8, _iamremote@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	cbnz	w8, LBB0_11
; %bb.10:
Lloh12:
	adrp	x8, _STDERR_FILENO@GOTPAGE
Lloh13:
	ldr	x8, [x8, _STDERR_FILENO@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
	mov	x1, x19
	mov	x2, x20
	bl	_write
LBB0_11:
Lloh15:
	adrp	x8, _errs@GOTPAGE
Lloh16:
	ldr	x8, [x8, _errs@GOTPAGEOFF]
	ldr	w9, [x8]
	add	w9, w9, #1
	str	w9, [x8]
	cmp	w24, #1
	b.ne	LBB0_16
; %bb.12:
	mov	w0, #-1
LBB0_13:
	mov	sp, x21
	ldur	x8, [x29, #-72]
Lloh17:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh18:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh19:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_15
; %bb.14:
	sub	sp, x29, #64
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_15:
	bl	___stack_chk_fail
LBB0_16:
	mov	w0, #1
	bl	_exit
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_BUFSIZ,4,2                     ; @BUFSIZ
	.comm	_remin,4,2                      ; @remin
	.comm	_iamremote,4,2                  ; @iamremote
	.comm	_STDERR_FILENO,4,2              ; @STDERR_FILENO
	.comm	_errs,4,2                       ; @errs
.subsections_via_symbols
