	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_slip_proto_read                ## -- Begin function slip_proto_read
	.p2align	4, 0x90
_slip_proto_read:                       ## @slip_proto_read
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r15
	movq	%rsi, -72(%rbp)                 ## 8-byte Spill
	cmpl	$0, (%rcx)
	jle	LBB0_5
## %bb.1:
	movl	%edi, -48(%rbp)                 ## 4-byte Spill
	leaq	8(%r15), %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	leaq	24(%r15), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	$-4, %r13
	movl	$1, %r12d
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	16(%r15), %rsi
	movl	(%rsi,%rbx,4), %edi
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	callq	_slip_unesc
	testl	%eax, %eax
	jne	LBB0_11
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	incq	%rbx
	movslq	(%r15), %rax
	addq	$-4, %r13
	incl	%r12d
	cmpq	%rax, %rbx
	jl	LBB0_2
## %bb.4:
	movl	$0, (%r15)
	movl	-48(%rbp), %edi                 ## 4-byte Reload
LBB0_5:
	movq	8(%r15), %rax
	leaq	(,%rax,4), %rsi
	addq	16(%r15), %rsi
	movl	$8, %edx
	subl	%eax, %edx
	callq	_net_read
	movl	%eax, %r14d
	testl	%eax, %eax
	jle	LBB0_13
## %bb.6:
	leaq	8(%r15), %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movabsq	$4294967296, %rax               ## imm = 0x100000000
	movq	8(%r15), %rcx
	leaq	24(%r15), %rdx
	movq	%rdx, -48(%rbp)                 ## 8-byte Spill
	shlq	$32, %rcx
	movl	%r14d, %edx
	movq	%rdx, -80(%rbp)                 ## 8-byte Spill
	leaq	(%rcx,%rax), %r13
	sarq	$30, %rcx
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movq	16(%r15), %rsi
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	addq	%rsi, %rax
	movl	(%rax,%rbx,4), %edi
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	callq	_slip_unesc
	testl	%eax, %eax
	jne	LBB0_8
## %bb.9:                               ##   in Loop: Header=BB0_7 Depth=1
	incq	%rbx
	movabsq	$4294967296, %rax               ## imm = 0x100000000
	addq	%rax, %r13
	cmpq	%rbx, -80(%rbp)                 ## 8-byte Folded Reload
	jne	LBB0_7
## %bb.10:
	xorl	%r14d, %r14d
	jmp	LBB0_13
LBB0_11:
	movl	%eax, %r14d
	movq	16(%r15), %rsi
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	movl	%eax, %edx
	callq	_memcpy
	movq	16(%r15), %rdi
	movq	%rdi, %rsi
	subq	%r13, %rsi
	movl	(%r15), %edx
	subl	%r12d, %edx
	callq	_memmove
	movl	(%r15), %ebx
	subl	%r12d, %ebx
	jmp	LBB0_12
LBB0_8:
	movl	%eax, %r12d
	movq	16(%r15), %rsi
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	movl	%eax, %edx
	callq	_memcpy
	movq	16(%r15), %rdi
	sarq	$30, %r13
	addq	%rdi, %r13
	notl	%ebx
	addl	%r14d, %ebx
	movq	%r13, %rsi
	movl	%ebx, %edx
	callq	_memmove
	movl	%r12d, %r14d
LBB0_12:
	movl	%ebx, (%r15)
LBB0_13:
	movl	%r14d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_slip_proto_read                ; -- Begin function slip_proto_read
	.p2align	2
_slip_proto_read:                       ; @slip_proto_read
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	mov	x19, x3
	mov	x20, x1
	mov	x23, x0
	ldr	w8, [x3]
	cmp	w8, #1
	b.lt	LBB0_5
; %bb.1:
	mov	x25, #0
	add	x22, x19, #8
	add	x24, x19, #24
	mov	x26, #-4
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x1, [x19, #16]
	ldr	w0, [x1, x25, lsl #2]
	mov	x2, x22
	mov	x3, x24
	bl	_slip_unesc
	cbnz	w0, LBB0_10
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	add	x25, x25, #1
	ldrsw	x8, [x19]
	sub	x26, x26, #4
	cmp	x25, x8
	b.lt	LBB0_2
; %bb.4:
	str	wzr, [x19]
LBB0_5:
	mov	x22, x19
	ldp	x8, x9, [x22, #8]!
	add	x1, x9, x8, lsl #2
	mov	w9, #8
	sub	w2, w9, w8
	mov	x0, x23
	bl	_net_read
	mov	x21, x0
	cmp	w0, #1
	b.lt	LBB0_13
; %bb.6:
	ldr	x8, [x19, #8]
	add	x23, x19, #24
	mov	w24, w21
	mov	x26, #4294967296
	add	x25, x26, x8, lsl #32
	sbfiz	x27, x8, #2, #32
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x1, [x19, #16]
	ldr	w0, [x1, x27]
	mov	x2, x22
	mov	x3, x23
	bl	_slip_unesc
	cbnz	w0, LBB0_11
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	add	x25, x25, x26
	add	x27, x27, #4
	subs	x24, x24, #1
	b.ne	LBB0_7
; %bb.9:
	mov	w21, #0
	b	LBB0_13
LBB0_10:
	mov	x21, x0
	ldr	x1, [x19, #16]
	mov	x0, x20
	mov	x2, x21
	bl	_memcpy
	ldr	x0, [x19, #16]
	sub	x1, x0, x26
	ldr	w8, [x19]
	mvn	w20, w25
	add	w2, w20, w8
	bl	_memmove
	ldr	w8, [x19]
	add	w20, w20, w8
	b	LBB0_12
LBB0_11:
	mov	x21, x0
	ldr	x1, [x19, #16]
	mov	x0, x20
	mov	x2, x21
	bl	_memcpy
	ldr	x0, [x19, #16]
	add	x1, x0, x25, asr #30
	sub	w20, w24, #1
	mov	x2, x20
	bl	_memmove
LBB0_12:
	str	w20, [x19]
LBB0_13:
	mov	x0, x21
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
