	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function uip_tcpreceive
_uip_tcpreceive:                        ## @uip_tcpreceive
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movq	_uip_flags@GOTPCREL(%rip), %r14
	movq	_UIP_TCP_ACK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r14)
	je	LBB0_38
## %bb.1:
	movq	8(%r15), %rdi
	movq	(%r15), %rbx
	addq	%rdi, %rbx
	movq	_uip_seqno@GOTPCREL(%rip), %r12
	movq	(%r12), %rsi
	callq	_UIP_TCP_SEQ_LT
	testq	%rax, %rax
	je	LBB0_2
LBB0_6:
	movq	_uip_tcphdr@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%rax), %rax
	movq	%rax, (%r15)
	movq	(%r12), %rax
	movq	%rax, 8(%r15)
	movq	_uip_ackno@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	movq	%rdi, 16(%r15)
LBB0_7:
	movq	24(%r15), %rsi
	cmpq	%rdi, %rsi
	jne	LBB0_18
## %bb.8:
	movq	$0, 160(%r15)
	movq	(%r15), %rax
	addq	8(%r15), %rax
	cmpq	%rbx, %rax
	jne	LBB0_30
## %bb.9:
	movl	32(%r15), %eax
	leal	1(%rax), %ecx
	movl	%ecx, 32(%r15)
	cmpl	$2, %eax
	jl	LBB0_30
## %bb.10:
	cmpq	$0, 152(%r15)
	je	LBB0_30
## %bb.11:
	movq	_UIP_TF_INFR@GOTPCREL(%rip), %rbx
	movl	(%rbx), %eax
	testl	%eax, (%r14)
	je	LBB0_12
## %bb.16:
	movslq	36(%r15), %rcx
	movslq	44(%r15), %rax
	addq	%rcx, %rax
	cmpq	%rcx, %rax
	jbe	LBB0_30
## %bb.17:
	movl	%eax, 36(%r15)
	jmp	LBB0_30
LBB0_18:
	incq	%rsi
	movq	56(%r15), %rdx
	callq	_UIP_TCP_SEQ_BETWEEN
	testq	%rax, %rax
	je	LBB0_30
## %bb.19:
	movl	48(%r15), %eax
	movq	_UIP_TF_INFR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%eax, %ecx
	je	LBB0_21
## %bb.20:
	notl	%ecx
	andl	%ecx, %eax
	movl	%eax, 48(%r15)
	movl	40(%r15), %eax
	movl	%eax, 36(%r15)
LBB0_21:
	movq	$0, 176(%r15)
	movl	68(%r15), %eax
	sarl	$3, %eax
	addl	72(%r15), %eax
	movl	%eax, 64(%r15)
	movq	_uip_ackno@GOTPCREL(%rip), %r14
	movq	(%r14), %rax
	movq	%rax, %rcx
	subq	24(%r15), %rcx
	movq	%rcx, 160(%r15)
	addl	%ecx, 168(%r15)
	movl	$0, 32(%r15)
	movq	%rax, 24(%r15)
	movq	80(%r15), %rax
	movq	_UIP_ESTABLISHED@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jl	LBB0_26
## %bb.22:
	movslq	36(%r15), %rcx
	movl	44(%r15), %eax
	cmpl	40(%r15), %ecx
	jl	LBB0_24
## %bb.23:
	imull	%eax, %eax
	cltd
	idivl	%ecx
LBB0_24:
	addl	%ecx, %eax
	movslq	%eax, %rdx
	cmpq	%rcx, %rdx
	jbe	LBB0_26
## %bb.25:
	movl	%eax, 36(%r15)
	jmp	LBB0_26
	.p2align	4, 0x90
LBB0_27:                                ##   in Loop: Header=BB0_26 Depth=1
	movq	16(%rax), %rax
	movq	(%rax), %rdi
	callq	_ntohl
	movq	%rax, %rbx
	movq	152(%r15), %rdi
	callq	_UIP_TCP_TCPLEN
	addq	%rax, %rbx
	movq	(%r14), %rsi
	movq	%rbx, %rdi
	callq	_UIP_TCP_SEQ_LEQ
	testq	%rax, %rax
	je	LBB0_29
## %bb.28:                              ##   in Loop: Header=BB0_26 Depth=1
	movq	152(%r15), %rbx
	movq	24(%rbx), %rax
	movq	%rax, 152(%r15)
	movq	8(%rbx), %rdi
	callq	_uip_pbuf_clen
	subl	%eax, 140(%r15)
	movq	%rbx, %rdi
	callq	_uip_tcpseg_free
LBB0_26:                                ## =>This Inner Loop Header: Depth=1
	movq	152(%r15), %rax
	testq	%rax, %rax
	jne	LBB0_27
LBB0_29:
	movq	$0, 144(%r15)
LBB0_30:
	movq	128(%r15), %rax
	testq	%rax, %rax
	je	LBB0_35
## %bb.31:
	movq	_uip_ackno@GOTPCREL(%rip), %r12
	.p2align	4, 0x90
LBB0_32:                                ## =>This Inner Loop Header: Depth=1
	movq	(%r12), %r14
	movq	16(%rax), %rax
	movq	(%rax), %rdi
	callq	_ntohl
	movq	%rax, %rbx
	movq	128(%r15), %rdi
	callq	_UIP_TCP_TCPLEN
	addq	%rax, %rbx
	movq	56(%r15), %rdx
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_UIP_TCP_SEQ_BETWEEN
	testq	%rax, %rax
	je	LBB0_35
## %bb.33:                              ##   in Loop: Header=BB0_32 Depth=1
	movq	128(%r15), %rbx
	movq	24(%rbx), %rax
	movq	%rax, 128(%r15)
	movq	8(%rbx), %rdi
	callq	_uip_pbuf_clen
	subl	%eax, 140(%r15)
	movq	%rbx, %rdi
	callq	_uip_tcpseg_free
	movq	128(%r15), %rax
	testq	%rax, %rax
	je	LBB0_35
## %bb.34:                              ##   in Loop: Header=BB0_32 Depth=1
	movq	16(%rax), %rax
	movq	(%rax), %rdi
	callq	_htonl
	movl	%eax, 136(%r15)
	movq	128(%r15), %rax
	testq	%rax, %rax
	jne	LBB0_32
LBB0_35:
	cmpq	$0, 88(%r15)
	je	LBB0_38
## %bb.36:
	movq	96(%r15), %rdi
	movq	_uip_ackno@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	callq	_UIP_TCP_SEQ_LT
	testq	%rax, %rax
	je	LBB0_38
## %bb.37:
	movq	_uip_tcp_ticks@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	68(%r15), %ecx
	movl	72(%r15), %edx
	movl	%ecx, %esi
	sarl	$3, %esi
	negl	%esi
	subq	88(%r15), %rax
	movslq	%esi, %rsi
	addq	%rsi, %rax
	addl	%eax, %ecx
	movl	%ecx, 68(%r15)
	xorl	%esi, %esi
	testq	%rax, %rax
	cmovgq	%rax, %rsi
	movl	%edx, %eax
	sarl	$2, %eax
	subl	%eax, %esi
	addl	%edx, %esi
	movl	%esi, 72(%r15)
	sarl	$3, %ecx
	addl	%esi, %ecx
	movl	%ecx, 64(%r15)
	movq	$0, 88(%r15)
LBB0_38:
	movq	_uip_tcplen@GOTPCREL(%rip), %r14
	movq	(%r14), %rax
	testq	%rax, %rax
	jle	LBB0_102
## %bb.39:
	movq	104(%r15), %rdi
	movq	_uip_seqno@GOTPCREL(%rip), %r12
	movq	(%r12), %rsi
	leaq	(%rax,%rsi), %rdx
	decq	%rdx
	incq	%rsi
	callq	_UIP_TCP_SEQ_BETWEEN
	testq	%rax, %rax
	je	LBB0_44
## %bb.40:
	movq	104(%r15), %rsi
	subq	(%r12), %rsi
	movq	_uip_inseg@GOTPCREL(%rip), %r13
	movq	8(%r13), %rbx
	movq	(%rbx), %rcx
	cmpq	%rsi, %rcx
	jge	LBB0_43
## %bb.41:
	movq	8(%rbx), %rax
	subq	%rsi, %rax
	.p2align	4, 0x90
LBB0_42:                                ## =>This Inner Loop Header: Depth=1
	subq	%rcx, %rsi
	movq	%rax, 8(%rbx)
	movq	$0, (%rbx)
	movq	24(%rbx), %rbx
	movq	(%rbx), %rcx
	cmpq	%rcx, %rsi
	jg	LBB0_42
LBB0_43:
	negq	%rsi
	movq	%rbx, %rdi
	callq	_uip_pbuf_header
	movl	16(%rbx), %eax
	movl	%eax, 32(%r13)
	movq	104(%r15), %rax
	movq	(%r12), %rcx
	subq	%rax, %rcx
	addq	%rcx, (%r13)
	movq	%rax, (%r12)
	movq	16(%r13), %rcx
	movq	%rax, (%rcx)
	jmp	LBB0_46
LBB0_102:
	movq	_uip_seqno@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	jmp	LBB0_100
LBB0_2:
	movq	8(%r15), %rax
	cmpq	(%r12), %rax
	jne	LBB0_4
## %bb.3:
	movq	16(%r15), %rdi
	movq	_uip_ackno@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	callq	_UIP_TCP_SEQ_LT
	testq	%rax, %rax
	jne	LBB0_6
LBB0_4:
	movq	16(%r15), %rax
	movq	_uip_ackno@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rdi
	cmpq	%rdi, %rax
	jne	LBB0_7
## %bb.5:
	movq	_uip_tcphdr@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	(%rcx), %rcx
	movq	%rax, %rdi
	cmpq	(%r15), %rcx
	jg	LBB0_6
	jmp	LBB0_7
LBB0_44:
	movq	(%r12), %rdi
	movq	104(%r15), %rsi
	callq	_UIP_TCP_SEQ_LT
	testq	%rax, %rax
	je	LBB0_46
## %bb.45:
	leaq	L_.str.1(%rip), %rdi
	callq	_UIP_LOG
	movq	%r15, %rdi
	callq	_uip_tcp_acknow
LBB0_46:
	movq	(%r12), %rdi
	movq	104(%r15), %rsi
	movq	112(%r15), %rax
	leaq	(%rsi,%rax), %rdx
	decq	%rdx
	callq	_UIP_TCP_SEQ_BETWEEN
	testq	%rax, %rax
	je	LBB0_99
## %bb.47:
	movq	104(%r15), %rsi
	cmpq	(%r12), %rsi
	jne	LBB0_71
## %bb.48:
	movq	120(%r15), %rax
	testq	%rax, %rax
	je	LBB0_51
## %bb.49:
	movq	16(%rax), %rax
	movq	(%rax), %rdi
	movq	_uip_inseg@GOTPCREL(%rip), %rbx
	addq	(%rbx), %rsi
	callq	_UIP_TCP_SEQ_LEQ
	testq	%rax, %rax
	je	LBB0_51
## %bb.50:
	movq	120(%r15), %rax
	movq	16(%rax), %rax
	movq	(%rax), %rsi
	subq	(%r12), %rsi
	movq	%rsi, (%rbx)
	movq	8(%rbx), %rdi
	callq	_uip_pbuf_realloc
LBB0_51:
	movq	_uip_inseg@GOTPCREL(%rip), %rbx
	movq	%rbx, %rdi
	callq	_UIP_TCP_TCPLEN
	movq	%rax, (%r14)
	movq	80(%r15), %rcx
	movq	_UIP_CLOSE_WAIT@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	je	LBB0_53
## %bb.52:
	addq	%rax, 104(%r15)
LBB0_53:
	movq	112(%r15), %rcx
	xorl	%edx, %edx
	subq	%rax, %rcx
	cmovgeq	%rcx, %rdx
	movq	%rdx, 112(%r15)
	movq	8(%rbx), %rax
	cmpq	$0, 8(%rax)
	jle	LBB0_55
## %bb.54:
	movq	_uip_recv_data@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
	movq	$0, 8(%rbx)
LBB0_55:
	movq	16(%rbx), %rdi
	callq	_UIP_TCPH_FLAGS
	movq	_UIP_TCP_FIN@GOTPCREL(%rip), %r13
	testl	%eax, (%r13)
	je	LBB0_57
## %bb.56:
	leaq	L_.str.2(%rip), %rdi
	callq	_UIP_LOG
	movq	_UIP_TF_GOT_FIN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_uip_recv_flags@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	jmp	LBB0_57
	.p2align	4, 0x90
LBB0_69:                                ##   in Loop: Header=BB0_57 Depth=1
	movq	24(%rbx), %rax
	movq	%rax, 120(%r15)
	movq	%rbx, %rdi
	callq	_uip_tcpseg_free
LBB0_57:                                ## =>This Inner Loop Header: Depth=1
	movq	120(%r15), %rbx
	testq	%rbx, %rbx
	je	LBB0_70
## %bb.58:                              ##   in Loop: Header=BB0_57 Depth=1
	movq	16(%rbx), %rax
	movq	(%rax), %rax
	cmpq	104(%r15), %rax
	jne	LBB0_70
## %bb.59:                              ##   in Loop: Header=BB0_57 Depth=1
	movq	%rax, (%r12)
	movq	%rbx, %rdi
	callq	_UIP_TCP_TCPLEN
	addq	%rax, 104(%r15)
	movq	112(%r15), %r14
	movq	%rbx, %rdi
	callq	_UIP_TCP_TCPLEN
	cmpq	%rax, %r14
	jge	LBB0_61
## %bb.60:                              ##   in Loop: Header=BB0_57 Depth=1
	xorl	%ecx, %ecx
	jmp	LBB0_62
	.p2align	4, 0x90
LBB0_61:                                ##   in Loop: Header=BB0_57 Depth=1
	movq	%rbx, %rdi
	callq	_UIP_TCP_TCPLEN
	movq	112(%r15), %rcx
	subq	%rax, %rcx
LBB0_62:                                ##   in Loop: Header=BB0_57 Depth=1
	movq	%rcx, 112(%r15)
	movq	8(%rbx), %rsi
	cmpq	$0, 8(%rsi)
	jle	LBB0_67
## %bb.63:                              ##   in Loop: Header=BB0_57 Depth=1
	movq	_uip_recv_data@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	testq	%rdi, %rdi
	je	LBB0_65
## %bb.64:                              ##   in Loop: Header=BB0_57 Depth=1
	callq	_uip_pbuf_cat
	jmp	LBB0_66
	.p2align	4, 0x90
LBB0_65:                                ##   in Loop: Header=BB0_57 Depth=1
	movq	%rsi, (%rax)
LBB0_66:                                ##   in Loop: Header=BB0_57 Depth=1
	movq	$0, 8(%rbx)
LBB0_67:                                ##   in Loop: Header=BB0_57 Depth=1
	movq	16(%rbx), %rdi
	callq	_UIP_TCPH_FLAGS
	testl	%eax, (%r13)
	je	LBB0_69
## %bb.68:                              ##   in Loop: Header=BB0_57 Depth=1
	leaq	L_.str.3(%rip), %rdi
	callq	_UIP_LOG
	movq	_UIP_TF_GOT_FIN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_uip_recv_flags@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	jmp	LBB0_69
LBB0_99:
	movq	(%r12), %rdi
LBB0_100:
	movq	104(%r15), %rsi
	movq	112(%r15), %rax
	leaq	(%rsi,%rax), %rdx
	decq	%rdx
	callq	_UIP_TCP_SEQ_BETWEEN
	testq	%rax, %rax
	je	LBB0_101
LBB0_98:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_101:
	movq	%r15, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_uip_tcp_acknow                 ## TAILCALL
LBB0_71:
	leaq	L_.str.4(%rip), %rdi
	callq	_UIP_LOG
	movq	%r15, %rdi
	callq	_uip_tcp_acknow
	movq	120(%r15), %rax
	testq	%rax, %rax
	je	LBB0_103
## %bb.72:
	xorl	%r13d, %r13d
	movq	_uip_inseg@GOTPCREL(%rip), %r14
	jmp	LBB0_73
	.p2align	4, 0x90
LBB0_96:                                ##   in Loop: Header=BB0_73 Depth=1
	movq	24(%r13), %rax
LBB0_97:                                ##   in Loop: Header=BB0_73 Depth=1
	testq	%rax, %rax
	je	LBB0_98
LBB0_73:                                ## =>This Inner Loop Header: Depth=1
	movq	%r13, %rbx
	movq	%rax, %r13
	movq	(%r12), %rdi
	movq	16(%rax), %rax
	movq	(%rax), %rdx
	cmpq	%rdx, %rdi
	je	LBB0_74
## %bb.78:                              ##   in Loop: Header=BB0_73 Depth=1
	testq	%rbx, %rbx
	je	LBB0_79
## %bb.85:                              ##   in Loop: Header=BB0_73 Depth=1
	movq	16(%rbx), %rax
	movq	(%rax), %rsi
	incq	%rsi
	decq	%rdx
	callq	_UIP_TCP_SEQ_BETWEEN
	testq	%rax, %rax
	je	LBB0_91
	jmp	LBB0_86
	.p2align	4, 0x90
LBB0_79:                                ##   in Loop: Header=BB0_73 Depth=1
	movq	%rdx, %rsi
	callq	_UIP_TCP_SEQ_LT
	testq	%rax, %rax
	jne	LBB0_80
LBB0_91:                                ##   in Loop: Header=BB0_73 Depth=1
	movq	24(%r13), %rax
	testq	%rax, %rax
	jne	LBB0_97
## %bb.92:                              ##   in Loop: Header=BB0_73 Depth=1
	movq	(%r12), %rdi
	movq	16(%r13), %rax
	movq	(%rax), %rsi
	callq	_UIP_TCP_SEQ_GT
	testq	%rax, %rax
	je	LBB0_96
## %bb.93:                              ##   in Loop: Header=BB0_73 Depth=1
	movq	%r14, %rdi
	callq	_uip_tcpseg_copy
	movq	%rax, 24(%r13)
	testq	%rax, %rax
	je	LBB0_97
## %bb.94:                              ##   in Loop: Header=BB0_73 Depth=1
	movq	(%r13), %rdi
	movq	16(%r13), %rax
	addq	(%rax), %rdi
	movq	(%r12), %rsi
	callq	_UIP_TCP_SEQ_GT
	testq	%rax, %rax
	je	LBB0_96
## %bb.95:                              ##   in Loop: Header=BB0_73 Depth=1
	movq	(%r12), %rsi
	movq	8(%r13), %rdi
	movq	16(%r13), %rax
	subq	(%rax), %rsi
	movq	%rsi, (%r13)
	callq	_uip_pbuf_realloc
	jmp	LBB0_96
LBB0_70:
	movq	%r15, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_uip_tcp_ack                    ## TAILCALL
LBB0_103:
	movq	_uip_inseg@GOTPCREL(%rip), %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_uip_tcpseg_copy                ## TAILCALL
LBB0_74:
	movq	(%r14), %rax
	cmpq	(%r13), %rax
	jle	LBB0_98
## %bb.75:
	movq	_uip_inseg@GOTPCREL(%rip), %rdi
	callq	_uip_tcpseg_copy
	testq	%rax, %rax
	je	LBB0_98
## %bb.76:
	movq	24(%r13), %rcx
	movq	%rcx, 24(%rax)
	testq	%rbx, %rbx
	je	LBB0_84
## %bb.77:
	movq	%rax, 24(%rbx)
	jmp	LBB0_98
LBB0_86:
	movq	(%r14), %rdi
	addq	(%r12), %rdi
	movq	16(%r13), %rax
	movq	(%rax), %rsi
	callq	_UIP_TCP_SEQ_GT
	testq	%rax, %rax
	je	LBB0_88
## %bb.87:
	movq	16(%r13), %rax
	movq	(%rax), %rsi
	subq	(%r12), %rsi
	movq	%rsi, (%r14)
	movq	8(%r14), %rdi
	callq	_uip_pbuf_realloc
LBB0_88:
	movq	_uip_inseg@GOTPCREL(%rip), %rdi
	callq	_uip_tcpseg_copy
	testq	%rax, %rax
	je	LBB0_98
## %bb.89:
	movq	%r13, 24(%rax)
	movq	%rax, 24(%rbx)
	movq	(%rbx), %rdi
	movq	16(%rbx), %rax
	addq	(%rax), %rdi
	movq	(%r12), %rsi
	callq	_UIP_TCP_SEQ_GT
	testq	%rax, %rax
	je	LBB0_98
## %bb.90:
	movq	(%r12), %rsi
	movq	8(%rbx), %rdi
	movq	16(%rbx), %rax
	subq	(%rax), %rsi
	movq	%rsi, (%rbx)
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_uip_pbuf_realloc               ## TAILCALL
LBB0_12:
	leaq	L_.str(%rip), %rdi
	callq	_UIP_LOG
	movq	%r15, %rdi
	callq	_uip_tcp_rexmit
	movslq	36(%r15), %rcx
	movq	(%r15), %rdx
	cmpq	%rcx, %rdx
	jge	LBB0_14
## %bb.13:
	movq	%rdx, %rax
	shrq	$63, %rax
	addq	%rdx, %rax
	shrq	%rax
	jmp	LBB0_15
LBB0_80:
	movq	(%r14), %rdi
	addq	(%r12), %rdi
	movq	16(%r13), %rax
	movq	(%rax), %rsi
	callq	_UIP_TCP_SEQ_GT
	testq	%rax, %rax
	je	LBB0_82
## %bb.81:
	movq	16(%r13), %rax
	movq	(%rax), %rsi
	subq	(%r12), %rsi
	movq	%rsi, (%r14)
	movq	8(%r14), %rdi
	callq	_uip_pbuf_realloc
LBB0_82:
	movq	_uip_inseg@GOTPCREL(%rip), %rdi
	callq	_uip_tcpseg_copy
	testq	%rax, %rax
	je	LBB0_98
## %bb.83:
	movq	%r13, 24(%rax)
LBB0_84:
	movq	%rax, 120(%r15)
	jmp	LBB0_98
LBB0_14:
	movl	%ecx, %eax
	shrl	$31, %eax
	addl	%ecx, %eax
	sarl	%eax
LBB0_15:
	movl	%eax, 40(%r15)
	movl	44(%r15), %ecx
	leal	(%rcx,%rcx,2), %ecx
	addl	%eax, %ecx
	movl	%ecx, 36(%r15)
	movl	(%rbx), %eax
	orl	%eax, 48(%r15)
	jmp	LBB0_30
	.cfi_endproc
                                        ## -- End function
	.comm	_uip_flags,4,2                  ## @uip_flags
	.comm	_UIP_TCP_ACK,4,2                ## @UIP_TCP_ACK
	.comm	_uip_seqno,8,3                  ## @uip_seqno
	.comm	_uip_ackno,8,3                  ## @uip_ackno
	.comm	_uip_tcphdr,8,3                 ## @uip_tcphdr
	.comm	_UIP_TF_INFR,4,2                ## @UIP_TF_INFR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"uip_tcpreceive: dupacks, fast retransmit."

	.comm	_UIP_ESTABLISHED,8,3            ## @UIP_ESTABLISHED
	.comm	_uip_tcp_ticks,8,3              ## @uip_tcp_ticks
	.comm	_uip_tcplen,8,3                 ## @uip_tcplen
	.comm	_uip_inseg,40,3                 ## @uip_inseg
L_.str.1:                               ## @.str.1
	.asciz	"uip_tcpreceive: duplicate seqno."

	.comm	_UIP_CLOSE_WAIT,8,3             ## @UIP_CLOSE_WAIT
	.comm	_uip_recv_data,8,3              ## @uip_recv_data
	.comm	_UIP_TCP_FIN,4,2                ## @UIP_TCP_FIN
L_.str.2:                               ## @.str.2
	.asciz	"uip_tcpreceive: received FIN.\n"

	.comm	_UIP_TF_GOT_FIN,4,2             ## @UIP_TF_GOT_FIN
	.comm	_uip_recv_flags,4,2             ## @uip_recv_flags
L_.str.3:                               ## @.str.3
	.asciz	"uip_tcpreceive: dequeued FIN.\n"

L_.str.4:                               ## @.str.4
	.asciz	"uip_tcpreceive: packet out-of-sequence."

	.no_dead_strip	_uip_tcpreceive
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function uip_tcpreceive
_uip_tcpreceive:                        ; @uip_tcpreceive
	.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, x0
Lloh0:
	adrp	x21, _uip_flags@GOTPAGE
Lloh1:
	ldr	x21, [x21, _uip_flags@GOTPAGEOFF]
	ldr	w8, [x21]
Lloh2:
	adrp	x9, _UIP_TCP_ACK@GOTPAGE
Lloh3:
	ldr	x9, [x9, _UIP_TCP_ACK@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x9]
Lloh5:
	adrp	x22, _uip_seqno@GOTPAGE
Lloh6:
	ldr	x22, [x22, _uip_seqno@GOTPAGEOFF]
	tst	w9, w8
	b.eq	LBB0_37
; %bb.1:
	ldp	x24, x20, [x19]
	ldr	x1, [x22]
	mov	x0, x20
	bl	_UIP_TCP_SEQ_LT
Lloh7:
	adrp	x23, _uip_ackno@GOTPAGE
Lloh8:
	ldr	x23, [x23, _uip_ackno@GOTPAGEOFF]
	cbz	x0, LBB0_16
LBB0_2:
Lloh9:
	adrp	x8, _uip_tcphdr@GOTPAGE
Lloh10:
	ldr	x8, [x8, _uip_tcphdr@GOTPAGEOFF]
Lloh11:
	ldr	x8, [x8]
	ldr	x8, [x8]
	str	x8, [x19]
	ldr	x8, [x22]
	ldr	x0, [x23]
	stp	x8, x0, [x19, #8]
LBB0_3:
	ldr	x8, [x19, #24]
	cmp	x8, x0
	b.ne	LBB0_10
; %bb.4:
	add	x8, x20, x24
	str	xzr, [x19, #160]
	ldp	x10, x9, [x19]
	add	x9, x10, x9
	cmp	x9, x8
	b.ne	LBB0_33
; %bb.5:
	ldr	w8, [x19, #32]
	add	w9, w8, #1
	str	w9, [x19, #32]
	cmp	w8, #2
	b.lt	LBB0_33
; %bb.6:
	ldr	x8, [x19, #152]
	cbz	x8, LBB0_33
; %bb.7:
	ldr	w8, [x21]
Lloh12:
	adrp	x20, _UIP_TF_INFR@GOTPAGE
Lloh13:
	ldr	x20, [x20, _UIP_TF_INFR@GOTPAGEOFF]
	ldr	w9, [x20]
	tst	w9, w8
	b.eq	LBB0_26
; %bb.8:
	ldrsw	x9, [x19, #36]
	ldrsw	x8, [x19, #44]
	add	x8, x8, x9
	cmp	x8, x9
	b.ls	LBB0_33
; %bb.9:
	str	w8, [x19, #36]
	b	LBB0_33
LBB0_10:
	add	x1, x8, #1
	ldr	x2, [x19, #56]
	bl	_UIP_TCP_SEQ_BETWEEN
	cbz	x0, LBB0_33
; %bb.11:
	ldr	w8, [x19, #48]
Lloh14:
	adrp	x9, _UIP_TF_INFR@GOTPAGE
Lloh15:
	ldr	x9, [x9, _UIP_TF_INFR@GOTPAGEOFF]
Lloh16:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_13
; %bb.12:
	bic	w8, w8, w9
	str	w8, [x19, #48]
	ldr	w8, [x19, #40]
	str	w8, [x19, #36]
LBB0_13:
	str	xzr, [x19, #176]
	ldp	w8, w9, [x19, #68]
	add	w8, w9, w8, asr #3
	str	w8, [x19, #64]
	ldr	x8, [x23]
	ldr	x9, [x19, #24]
	ldr	w10, [x19, #168]
	sub	x9, x8, x9
	add	w10, w10, w9
	str	x9, [x19, #160]
	str	w10, [x19, #168]
	str	wzr, [x19, #32]
	str	x8, [x19, #24]
	ldr	x8, [x19, #80]
Lloh17:
	adrp	x9, _UIP_ESTABLISHED@GOTPAGE
Lloh18:
	ldr	x9, [x9, _UIP_ESTABLISHED@GOTPAGEOFF]
Lloh19:
	ldr	x9, [x9]
	cmp	x8, x9
	b.lt	LBB0_24
; %bb.14:
	ldp	w8, w10, [x19, #36]
                                        ; kill: def $w8 killed $w8 def $x8
	sxtw	x8, w8
	ldr	w9, [x19, #44]
	cmp	w8, w10
	b.ge	LBB0_20
; %bb.15:
	add	w9, w9, w8
	sxtw	x10, w9
	cmp	x10, x8
	b.ls	LBB0_24
	b	LBB0_21
LBB0_16:
	ldr	x8, [x19, #8]
	ldr	x9, [x22]
	cmp	x8, x9
	b.ne	LBB0_18
; %bb.17:
	ldr	x0, [x19, #16]
	ldr	x1, [x23]
	bl	_UIP_TCP_SEQ_LT
	cbnz	x0, LBB0_2
LBB0_18:
	ldr	x8, [x19, #16]
	ldr	x0, [x23]
	cmp	x8, x0
	b.ne	LBB0_3
; %bb.19:
Lloh20:
	adrp	x9, _uip_tcphdr@GOTPAGE
Lloh21:
	ldr	x9, [x9, _uip_tcphdr@GOTPAGEOFF]
Lloh22:
	ldr	x9, [x9]
	ldr	x9, [x9]
	ldr	x10, [x19]
	mov	x0, x8
	cmp	x9, x10
	b.gt	LBB0_2
	b	LBB0_3
LBB0_20:
	mul	w9, w9, w9
	sdiv	w9, w9, w8
	add	w9, w9, w8
	sxtw	x10, w9
                                        ; kill: def $w9 killed $w9 killed $x9 def $x9
	cmp	x10, x8
	b.ls	LBB0_24
LBB0_21:
	str	w9, [x19, #36]
	b	LBB0_24
LBB0_22:                                ;   in Loop: Header=BB0_24 Depth=1
	ldr	x8, [x8, #16]
	ldr	x0, [x8]
	bl	_ntohl
	mov	x20, x0
	ldr	x0, [x19, #152]
	bl	_UIP_TCP_TCPLEN
	add	x0, x0, x20
	ldr	x1, [x23]
	bl	_UIP_TCP_SEQ_LEQ
	cbz	x0, LBB0_25
; %bb.23:                               ;   in Loop: Header=BB0_24 Depth=1
	ldr	x20, [x19, #152]
	ldr	x8, [x20, #24]
	str	x8, [x19, #152]
	ldr	x0, [x20, #8]
	bl	_uip_pbuf_clen
	ldr	w8, [x19, #140]
	sub	w8, w8, w0
	str	w8, [x19, #140]
	mov	x0, x20
	bl	_uip_tcpseg_free
LBB0_24:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #152]
	cbnz	x8, LBB0_22
LBB0_25:
	str	xzr, [x19, #144]
	b	LBB0_33
LBB0_26:
Lloh23:
	adrp	x0, l_.str@PAGE
Lloh24:
	add	x0, x0, l_.str@PAGEOFF
	bl	_UIP_LOG
	mov	x0, x19
	bl	_uip_tcp_rexmit
	ldrsw	x8, [x19, #36]
	ldr	x9, [x19]
	cmp	x9, x8
	b.ge	LBB0_28
; %bb.27:
	cmp	x9, #0
	cinc	x8, x9, lt
	lsr	x8, x8, #1
	b	LBB0_29
LBB0_28:
	cmp	w8, #0
	cinc	w8, w8, lt
	asr	w8, w8, #1
LBB0_29:
	ldp	w9, w10, [x19, #44]
	add	w9, w9, w9, lsl #1
	add	w9, w9, w8
	stp	w9, w8, [x19, #36]
	ldr	w8, [x20]
	orr	w8, w10, w8
	str	w8, [x19, #48]
	b	LBB0_33
LBB0_30:                                ;   in Loop: Header=BB0_33 Depth=1
	ldr	x20, [x23]
	ldr	x8, [x8, #16]
	ldr	x0, [x8]
	bl	_ntohl
	mov	x21, x0
	ldr	x0, [x19, #128]
	bl	_UIP_TCP_TCPLEN
	add	x1, x0, x21
	ldr	x2, [x19, #56]
	mov	x0, x20
	bl	_UIP_TCP_SEQ_BETWEEN
	cbz	x0, LBB0_34
; %bb.31:                               ;   in Loop: Header=BB0_33 Depth=1
	ldr	x20, [x19, #128]
	ldr	x8, [x20, #24]
	str	x8, [x19, #128]
	ldr	x0, [x20, #8]
	bl	_uip_pbuf_clen
	ldr	w8, [x19, #140]
	sub	w8, w8, w0
	str	w8, [x19, #140]
	mov	x0, x20
	bl	_uip_tcpseg_free
	ldr	x8, [x19, #128]
	cbz	x8, LBB0_34
; %bb.32:                               ;   in Loop: Header=BB0_33 Depth=1
	ldr	x8, [x8, #16]
	ldr	x0, [x8]
	bl	_htonl
	str	w0, [x19, #136]
LBB0_33:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #128]
	cbnz	x8, LBB0_30
LBB0_34:
	ldr	x8, [x19, #88]
	cbz	x8, LBB0_37
; %bb.35:
	ldr	x0, [x19, #96]
	ldr	x1, [x23]
	bl	_UIP_TCP_SEQ_LT
	cbz	x0, LBB0_37
; %bb.36:
Lloh25:
	adrp	x8, _uip_tcp_ticks@GOTPAGE
Lloh26:
	ldr	x8, [x8, _uip_tcp_ticks@GOTPAGEOFF]
Lloh27:
	ldr	x8, [x8]
	ldr	x9, [x19, #88]
	sub	x8, x8, x9
	ldp	w9, w10, [x19, #68]
	neg	w11, w9, asr #3
	add	x8, x8, w11, sxtw
	add	w9, w9, w8
	cmp	x8, #0
	csel	x8, x8, xzr, gt
	sub	w8, w8, w10, asr #2
	add	w8, w8, w10
	stp	w9, w8, [x19, #68]
	add	w8, w8, w9, asr #3
	str	w8, [x19, #64]
	str	xzr, [x19, #88]
LBB0_37:
Lloh28:
	adrp	x21, _uip_tcplen@GOTPAGE
Lloh29:
	ldr	x21, [x21, _uip_tcplen@GOTPAGEOFF]
	ldr	x8, [x21]
	cmp	x8, #1
	b.lt	LBB0_70
; %bb.38:
	ldr	x0, [x19, #104]
	ldr	x9, [x22]
	add	x1, x9, #1
	add	x8, x8, x9
	sub	x2, x8, #1
	bl	_UIP_TCP_SEQ_BETWEEN
	cbz	x0, LBB0_43
; %bb.39:
	ldr	x8, [x19, #104]
	ldr	x10, [x22]
Lloh30:
	adrp	x23, _uip_inseg@GOTPAGE
Lloh31:
	ldr	x23, [x23, _uip_inseg@GOTPAGEOFF]
	ldr	x20, [x23, #8]
	ldr	x9, [x20]
	sub	x8, x8, x10
	cmp	x9, x8
	b.ge	LBB0_42
; %bb.40:
	ldr	x10, [x20, #8]
	sub	x10, x10, x8
LBB0_41:                                ; =>This Inner Loop Header: Depth=1
	stp	xzr, x10, [x20]
	ldr	x20, [x20, #24]
	sub	x8, x8, x9
	ldr	x9, [x20]
	cmp	x8, x9
	b.gt	LBB0_41
LBB0_42:
	neg	x1, x8
	mov	x0, x20
	bl	_uip_pbuf_header
	ldr	w8, [x20, #16]
	str	w8, [x23, #32]
	ldr	x8, [x19, #104]
	ldr	x9, [x22]
	ldr	x10, [x23]
	sub	x9, x9, x8
	add	x9, x9, x10
	str	x9, [x23]
	str	x8, [x22]
	ldr	x9, [x23, #16]
	str	x8, [x9]
	b	LBB0_45
LBB0_43:
	ldr	x0, [x22]
	ldr	x1, [x19, #104]
	bl	_UIP_TCP_SEQ_LT
	cbz	x0, LBB0_45
; %bb.44:
Lloh32:
	adrp	x0, l_.str.1@PAGE
Lloh33:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_UIP_LOG
	mov	x0, x19
	bl	_uip_tcp_acknow
LBB0_45:
	ldr	x0, [x22]
	ldp	x1, x8, [x19, #104]
	add	x8, x1, x8
	sub	x2, x8, #1
	bl	_UIP_TCP_SEQ_BETWEEN
	cbz	x0, LBB0_70
; %bb.46:
	ldr	x8, [x19, #104]
	ldr	x9, [x22]
	cmp	x8, x9
	b.ne	LBB0_73
; %bb.47:
	ldr	x9, [x19, #120]
	cbz	x9, LBB0_50
; %bb.48:
	ldr	x9, [x9, #16]
	ldr	x0, [x9]
Lloh34:
	adrp	x20, _uip_inseg@GOTPAGE
Lloh35:
	ldr	x20, [x20, _uip_inseg@GOTPAGEOFF]
	ldr	x9, [x20]
	add	x1, x9, x8
	bl	_UIP_TCP_SEQ_LEQ
	cbz	x0, LBB0_50
; %bb.49:
	ldr	x8, [x19, #120]
	ldr	x8, [x8, #16]
	ldr	x8, [x8]
	ldr	x9, [x22]
	sub	x1, x8, x9
	str	x1, [x20]
	ldr	x0, [x20, #8]
	bl	_uip_pbuf_realloc
LBB0_50:
Lloh36:
	adrp	x20, _uip_inseg@GOTPAGE
Lloh37:
	ldr	x20, [x20, _uip_inseg@GOTPAGEOFF]
	mov	x0, x20
	bl	_UIP_TCP_TCPLEN
	str	x0, [x21]
	ldr	x8, [x19, #80]
Lloh38:
	adrp	x9, _UIP_CLOSE_WAIT@GOTPAGE
Lloh39:
	ldr	x9, [x9, _UIP_CLOSE_WAIT@GOTPAGEOFF]
Lloh40:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_52
; %bb.51:
	ldr	x8, [x19, #104]
	add	x8, x8, x0
	str	x8, [x19, #104]
LBB0_52:
	ldr	x8, [x19, #112]
	subs	x8, x8, x0
	csel	x8, xzr, x8, lt
	str	x8, [x19, #112]
	ldr	x8, [x20, #8]
	ldr	x9, [x8, #8]
Lloh41:
	adrp	x23, _uip_recv_data@GOTPAGE
Lloh42:
	ldr	x23, [x23, _uip_recv_data@GOTPAGEOFF]
	cmp	x9, #1
	b.lt	LBB0_54
; %bb.53:
	str	x8, [x23]
	str	xzr, [x20, #8]
LBB0_54:
	ldr	x0, [x20, #16]
	bl	_UIP_TCPH_FLAGS
Lloh43:
	adrp	x24, _UIP_TCP_FIN@GOTPAGE
Lloh44:
	ldr	x24, [x24, _UIP_TCP_FIN@GOTPAGEOFF]
	ldr	w8, [x24]
Lloh45:
	adrp	x25, _UIP_TF_GOT_FIN@GOTPAGE
Lloh46:
	ldr	x25, [x25, _UIP_TF_GOT_FIN@GOTPAGEOFF]
Lloh47:
	adrp	x26, _uip_recv_flags@GOTPAGE
Lloh48:
	ldr	x26, [x26, _uip_recv_flags@GOTPAGEOFF]
	tst	w8, w0
	b.eq	LBB0_56
; %bb.55:
Lloh49:
	adrp	x0, l_.str.2@PAGE
Lloh50:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_UIP_LOG
	ldr	w8, [x25]
	str	w8, [x26]
LBB0_56:
	ldr	x20, [x19, #120]
	cbz	x20, LBB0_86
; %bb.57:
Lloh51:
	adrp	x21, l_.str.3@PAGE
Lloh52:
	add	x21, x21, l_.str.3@PAGEOFF
	b	LBB0_59
LBB0_58:                                ;   in Loop: Header=BB0_59 Depth=1
	ldr	x8, [x20, #24]
	str	x8, [x19, #120]
	mov	x0, x20
	bl	_uip_tcpseg_free
	ldr	x20, [x19, #120]
	cbz	x20, LBB0_86
LBB0_59:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x20, #16]
	ldr	x8, [x8]
	ldr	x9, [x19, #104]
	cmp	x8, x9
	b.ne	LBB0_86
; %bb.60:                               ;   in Loop: Header=BB0_59 Depth=1
	str	x8, [x22]
	mov	x0, x20
	bl	_UIP_TCP_TCPLEN
	ldp	x8, x27, [x19, #104]
	add	x8, x8, x0
	str	x8, [x19, #104]
	mov	x0, x20
	bl	_UIP_TCP_TCPLEN
	cmp	x27, x0
	b.ge	LBB0_62
; %bb.61:                               ;   in Loop: Header=BB0_59 Depth=1
	mov	x8, #0
	b	LBB0_63
LBB0_62:                                ;   in Loop: Header=BB0_59 Depth=1
	mov	x0, x20
	bl	_UIP_TCP_TCPLEN
	ldr	x8, [x19, #112]
	sub	x8, x8, x0
LBB0_63:                                ;   in Loop: Header=BB0_59 Depth=1
	str	x8, [x19, #112]
	ldr	x1, [x20, #8]
	ldr	x8, [x1, #8]
	cmp	x8, #1
	b.lt	LBB0_68
; %bb.64:                               ;   in Loop: Header=BB0_59 Depth=1
	ldr	x0, [x23]
	cbz	x0, LBB0_66
; %bb.65:                               ;   in Loop: Header=BB0_59 Depth=1
	bl	_uip_pbuf_cat
	b	LBB0_67
LBB0_66:                                ;   in Loop: Header=BB0_59 Depth=1
	str	x1, [x23]
LBB0_67:                                ;   in Loop: Header=BB0_59 Depth=1
	str	xzr, [x20, #8]
LBB0_68:                                ;   in Loop: Header=BB0_59 Depth=1
	ldr	x0, [x20, #16]
	bl	_UIP_TCPH_FLAGS
	ldr	w8, [x24]
	tst	w8, w0
	b.eq	LBB0_58
; %bb.69:                               ;   in Loop: Header=BB0_59 Depth=1
	mov	x0, x21
	bl	_UIP_LOG
	ldr	w8, [x25]
	str	w8, [x26]
	b	LBB0_58
LBB0_70:
	ldr	x0, [x22]
	ldp	x1, x8, [x19, #104]
	add	x8, x1, x8
	sub	x2, x8, #1
	bl	_UIP_TCP_SEQ_BETWEEN
	cbz	x0, LBB0_72
LBB0_71:
	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
LBB0_72:
	mov	x0, x19
	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
	b	_uip_tcp_acknow
LBB0_73:
Lloh53:
	adrp	x0, l_.str.4@PAGE
Lloh54:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_UIP_LOG
	mov	x0, x19
	bl	_uip_tcp_acknow
	ldr	x0, [x19, #120]
	cbz	x0, LBB0_87
; %bb.74:
	mov	x21, #0
Lloh55:
	adrp	x20, _uip_inseg@GOTPAGE
Lloh56:
	ldr	x20, [x20, _uip_inseg@GOTPAGEOFF]
	b	LBB0_77
LBB0_75:                                ;   in Loop: Header=BB0_77 Depth=1
	ldr	x0, [x21, #24]
LBB0_76:                                ;   in Loop: Header=BB0_77 Depth=1
	cbz	x0, LBB0_71
LBB0_77:                                ; =>This Inner Loop Header: Depth=1
	mov	x23, x21
	mov	x21, x0
	ldr	x0, [x22]
	ldr	x8, [x21, #16]
	ldr	x1, [x8]
	cmp	x0, x1
	b.eq	LBB0_88
; %bb.78:                               ;   in Loop: Header=BB0_77 Depth=1
	cbz	x23, LBB0_80
; %bb.79:                               ;   in Loop: Header=BB0_77 Depth=1
	ldr	x8, [x23, #16]
	ldr	x8, [x8]
	add	x8, x8, #1
	sub	x2, x1, #1
	mov	x1, x8
	bl	_UIP_TCP_SEQ_BETWEEN
	cbz	x0, LBB0_81
	b	LBB0_92
LBB0_80:                                ;   in Loop: Header=BB0_77 Depth=1
	bl	_UIP_TCP_SEQ_LT
	cbnz	x0, LBB0_97
LBB0_81:                                ;   in Loop: Header=BB0_77 Depth=1
	ldr	x0, [x21, #24]
	cbnz	x0, LBB0_76
; %bb.82:                               ;   in Loop: Header=BB0_77 Depth=1
	ldr	x0, [x22]
	ldr	x8, [x21, #16]
	ldr	x1, [x8]
	bl	_UIP_TCP_SEQ_GT
	cbz	x0, LBB0_75
; %bb.83:                               ;   in Loop: Header=BB0_77 Depth=1
	mov	x0, x20
	bl	_uip_tcpseg_copy
	str	x0, [x21, #24]
	cbz	x0, LBB0_76
; %bb.84:                               ;   in Loop: Header=BB0_77 Depth=1
	ldr	x8, [x21, #16]
	ldr	x8, [x8]
	ldr	x9, [x21]
	add	x0, x9, x8
	ldr	x1, [x22]
	bl	_UIP_TCP_SEQ_GT
	cbz	x0, LBB0_75
; %bb.85:                               ;   in Loop: Header=BB0_77 Depth=1
	ldr	x8, [x22]
	ldp	x0, x9, [x21, #8]
	ldr	x9, [x9]
	sub	x1, x8, x9
	str	x1, [x21]
	bl	_uip_pbuf_realloc
	b	LBB0_75
LBB0_86:
	mov	x0, x19
	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
	b	_uip_tcp_ack
LBB0_87:
Lloh57:
	adrp	x0, _uip_inseg@GOTPAGE
Lloh58:
	ldr	x0, [x0, _uip_inseg@GOTPAGEOFF]
	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
	b	_uip_tcpseg_copy
LBB0_88:
	ldr	x8, [x20]
	ldr	x9, [x21]
	cmp	x8, x9
	b.le	LBB0_71
; %bb.89:
Lloh59:
	adrp	x0, _uip_inseg@GOTPAGE
Lloh60:
	ldr	x0, [x0, _uip_inseg@GOTPAGEOFF]
	bl	_uip_tcpseg_copy
	cbz	x0, LBB0_71
; %bb.90:
	ldr	x8, [x21, #24]
	str	x8, [x0, #24]
	cbz	x23, LBB0_101
; %bb.91:
	str	x0, [x23, #24]
	b	LBB0_71
LBB0_92:
	ldr	x8, [x22]
	ldr	x9, [x20]
	add	x0, x9, x8
	ldr	x8, [x21, #16]
	ldr	x1, [x8]
	bl	_UIP_TCP_SEQ_GT
	cbz	x0, LBB0_94
; %bb.93:
	ldr	x8, [x21, #16]
	ldr	x8, [x8]
	ldr	x9, [x22]
	sub	x1, x8, x9
	str	x1, [x20]
	ldr	x0, [x20, #8]
	bl	_uip_pbuf_realloc
LBB0_94:
Lloh61:
	adrp	x0, _uip_inseg@GOTPAGE
Lloh62:
	ldr	x0, [x0, _uip_inseg@GOTPAGEOFF]
	bl	_uip_tcpseg_copy
	cbz	x0, LBB0_71
; %bb.95:
	str	x21, [x0, #24]
	str	x0, [x23, #24]
	ldr	x8, [x23, #16]
	ldr	x8, [x8]
	ldr	x9, [x23]
	add	x0, x9, x8
	ldr	x1, [x22]
	bl	_UIP_TCP_SEQ_GT
	cbz	x0, LBB0_71
; %bb.96:
	ldr	x8, [x22]
	ldp	x0, x9, [x23, #8]
	ldr	x9, [x9]
	sub	x1, x8, x9
	str	x1, [x23]
	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
	b	_uip_pbuf_realloc
LBB0_97:
	ldr	x8, [x22]
	ldr	x9, [x20]
	add	x0, x9, x8
	ldr	x8, [x21, #16]
	ldr	x1, [x8]
	bl	_UIP_TCP_SEQ_GT
	cbz	x0, LBB0_99
; %bb.98:
	ldr	x8, [x21, #16]
	ldr	x8, [x8]
	ldr	x9, [x22]
	sub	x1, x8, x9
	str	x1, [x20]
	ldr	x0, [x20, #8]
	bl	_uip_pbuf_realloc
LBB0_99:
Lloh63:
	adrp	x0, _uip_inseg@GOTPAGE
Lloh64:
	ldr	x0, [x0, _uip_inseg@GOTPAGEOFF]
	bl	_uip_tcpseg_copy
	cbz	x0, LBB0_71
; %bb.100:
	str	x21, [x0, #24]
LBB0_101:
	str	x0, [x19, #120]
	b	LBB0_71
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh28, Lloh29
	.loh AdrpLdrGot	Lloh30, Lloh31
	.loh AdrpAdd	Lloh32, Lloh33
	.loh AdrpLdrGot	Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGot	Lloh36, Lloh37
	.loh AdrpLdrGot	Lloh41, Lloh42
	.loh AdrpLdrGot	Lloh47, Lloh48
	.loh AdrpLdrGot	Lloh45, Lloh46
	.loh AdrpLdrGot	Lloh43, Lloh44
	.loh AdrpAdd	Lloh49, Lloh50
	.loh AdrpAdd	Lloh51, Lloh52
	.loh AdrpAdd	Lloh53, Lloh54
	.loh AdrpLdrGot	Lloh55, Lloh56
	.loh AdrpLdrGot	Lloh57, Lloh58
	.loh AdrpLdrGot	Lloh59, Lloh60
	.loh AdrpLdrGot	Lloh61, Lloh62
	.loh AdrpLdrGot	Lloh63, Lloh64
	.cfi_endproc
                                        ; -- End function
	.comm	_uip_flags,4,2                  ; @uip_flags
	.comm	_UIP_TCP_ACK,4,2                ; @UIP_TCP_ACK
	.comm	_uip_seqno,8,3                  ; @uip_seqno
	.comm	_uip_ackno,8,3                  ; @uip_ackno
	.comm	_uip_tcphdr,8,3                 ; @uip_tcphdr
	.comm	_UIP_TF_INFR,4,2                ; @UIP_TF_INFR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"uip_tcpreceive: dupacks, fast retransmit."

	.comm	_UIP_ESTABLISHED,8,3            ; @UIP_ESTABLISHED
	.comm	_uip_tcp_ticks,8,3              ; @uip_tcp_ticks
	.comm	_uip_tcplen,8,3                 ; @uip_tcplen
	.comm	_uip_inseg,40,3                 ; @uip_inseg
l_.str.1:                               ; @.str.1
	.asciz	"uip_tcpreceive: duplicate seqno."

	.comm	_UIP_CLOSE_WAIT,8,3             ; @UIP_CLOSE_WAIT
	.comm	_uip_recv_data,8,3              ; @uip_recv_data
	.comm	_UIP_TCP_FIN,4,2                ; @UIP_TCP_FIN
l_.str.2:                               ; @.str.2
	.asciz	"uip_tcpreceive: received FIN.\n"

	.comm	_UIP_TF_GOT_FIN,4,2             ; @UIP_TF_GOT_FIN
	.comm	_uip_recv_flags,4,2             ; @uip_recv_flags
l_.str.3:                               ; @.str.3
	.asciz	"uip_tcpreceive: dequeued FIN.\n"

l_.str.4:                               ; @.str.4
	.asciz	"uip_tcpreceive: packet out-of-sequence."

	.no_dead_strip	_uip_tcpreceive
.subsections_via_symbols
