	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function uip_tcpenqueue
LCPI0_0:
	.space	16
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_uip_tcpenqueue
	.p2align	4, 0x90
_uip_tcpenqueue:                        ## @uip_tcpenqueue
	.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	$88, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	cmpq	%rdx, (%rdi)
	jge	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rdi
	callq	_UIP_ERROR
	jmp	LBB0_49
LBB0_2:
	movq	16(%rdi), %rax
	movq	_UIP_TCP_SND_QUEUELEN@GOTPCREL(%rip), %rbx
	cmpq	(%rbx), %rax
	jge	LBB0_24
## %bb.3:
	movq	%r8, -120(%rbp)                 ## 8-byte Spill
	movq	%r9, -96(%rbp)                  ## 8-byte Spill
	movq	%rcx, -88(%rbp)                 ## 8-byte Spill
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movq	16(%rbp), %rax
	leaq	3(%rax), %rcx
	testq	%rax, %rax
	cmovnsq	%rax, %rcx
	movq	8(%rdi), %rax
	movq	%rax, -112(%rbp)                ## 8-byte Spill
	shrq	$2, %rcx
	addl	$5, %ecx
	movq	%rcx, -128(%rbp)                ## 8-byte Spill
	movb	$1, %r12b
	xorl	%r15d, %r15d
	movq	%rdx, %rax
	xorl	%ebx, %ebx
	movq	%rdx, -64(%rbp)                 ## 8-byte Spill
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rsi, -80(%rbp)                 ## 8-byte Spill
	movq	24(%rdi), %r13
	movq	%rax, -104(%rbp)                ## 8-byte Spill
	cmpq	%r13, %rax
	cmovleq	%rdx, %r13
	movq	_uip_tcp_segs@GOTPCREL(%rip), %rdi
	callq	_memb_alloc
	testq	%rax, %rax
	je	LBB0_25
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	%rax, %r14
	xorps	%xmm0, %xmm0
	movups	%xmm0, 16(%rax)
	testb	$1, %r12b
	jne	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	%r14, 16(%rbx)
	movq	%r15, %rax
LBB0_7:                                 ##   in Loop: Header=BB0_4 Depth=1
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	_UIP_PBUF_TRANSPORT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	-96(%rbp), %r15                 ## 8-byte Reload
	testq	%r15, %r15
	movq	-72(%rbp), %r12                 ## 8-byte Reload
	je	LBB0_14
## %bb.8:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	_UIP_PBUF_RAM@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	16(%rbp), %rsi
	callq	_uip_pbuf_alloc
	movq	%rax, 24(%r14)
	testq	%rax, %rax
	je	LBB0_35
LBB0_9:                                 ##   in Loop: Header=BB0_4 Depth=1
	incq	%r12
	movq	(%rax), %rax
	movq	%rax, 32(%r14)
LBB0_10:                                ##   in Loop: Header=BB0_4 Depth=1
	movq	_UIP_TCP_SND_QUEUELEN@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r12
	jg	LBB0_26
## %bb.11:                              ##   in Loop: Header=BB0_4 Depth=1
	movq	%r13, (%r14)
	movq	24(%r14), %rdi
	movq	_UIP_TCP_HLEN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_uip_pbuf_header
	testq	%rax, %rax
	jne	LBB0_27
## %bb.12:                              ##   in Loop: Header=BB0_4 Depth=1
	movq	24(%r14), %rax
	movq	(%rax), %rax
	movq	%rax, 8(%r14)
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movl	44(%rbx), %edi
	callq	_htons
	movq	8(%r14), %rcx
	movq	%rax, 24(%rcx)
	movl	40(%rbx), %edi
	callq	_htons
	movq	8(%r14), %rcx
	movq	%rax, 16(%rcx)
	movq	-112(%rbp), %rbx                ## 8-byte Reload
	movq	%rbx, %rdi
	callq	_htonl
	movq	8(%r14), %rdi
	movl	%eax, 8(%rdi)
	movq	$0, (%rdi)
	movq	-88(%rbp), %rsi                 ## 8-byte Reload
	callq	_UIP_TCPH_FLAGS_SET
	movq	8(%r14), %rdi
	testq	%r15, %r15
	movq	%r12, -72(%rbp)                 ## 8-byte Spill
	je	LBB0_18
## %bb.13:                              ##   in Loop: Header=BB0_4 Depth=1
	movq	-128(%rbp), %rsi                ## 8-byte Reload
                                        ## kill: def $esi killed $esi killed $rsi
	callq	_UIP_TCPH_HDRLEN_SET
	movq	32(%r14), %rdi
	movq	%r15, %rsi
	movq	16(%rbp), %rdx
	callq	_UIP_MEMCPY
	jmp	LBB0_19
	.p2align	4, 0x90
LBB0_14:                                ##   in Loop: Header=BB0_4 Depth=1
	cmpq	$0, -120(%rbp)                  ## 8-byte Folded Reload
	je	LBB0_21
## %bb.15:                              ##   in Loop: Header=BB0_4 Depth=1
	movq	_UIP_PBUF_RAM@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r13, %rsi
	callq	_uip_pbuf_alloc
	movq	%rax, 24(%r14)
	testq	%rax, %rax
	je	LBB0_44
## %bb.16:                              ##   in Loop: Header=BB0_4 Depth=1
	movq	-80(%rbp), %rsi                 ## 8-byte Reload
	testq	%rsi, %rsi
	je	LBB0_9
## %bb.17:                              ##   in Loop: Header=BB0_4 Depth=1
	movq	(%rax), %rdi
	movq	%r13, %rdx
	callq	_UIP_MEMCPY
	movq	24(%r14), %rax
	jmp	LBB0_9
	.p2align	4, 0x90
LBB0_18:                                ##   in Loop: Header=BB0_4 Depth=1
	movl	$5, %esi
	callq	_UIP_TCPH_HDRLEN_SET
LBB0_19:                                ##   in Loop: Header=BB0_4 Depth=1
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movq	-80(%rbp), %rsi                 ## 8-byte Reload
	movq	-104(%rbp), %rax                ## 8-byte Reload
	subq	%r13, %rax
	addq	%r13, %rbx
	movq	%rbx, -112(%rbp)                ## 8-byte Spill
	leaq	(%rsi,%r13,8), %rsi
	movq	%rcx, %r15
	movq	%r14, %rbx
	testq	%rcx, %rcx
	sete	%r12b
	je	LBB0_4
## %bb.20:                              ##   in Loop: Header=BB0_4 Depth=1
	movq	%rcx, %r15
	movq	%r14, %rbx
	testq	%rax, %rax
	jg	LBB0_4
	jmp	LBB0_28
LBB0_21:                                ##   in Loop: Header=BB0_4 Depth=1
	movq	_UIP_PBUF_ROM@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r13, %rsi
	callq	_uip_pbuf_alloc
	testq	%rax, %rax
	je	LBB0_45
## %bb.22:                              ##   in Loop: Header=BB0_4 Depth=1
	movq	%rax, %r15
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, (%r15)
	movq	%rax, 32(%r14)
	movq	_UIP_PBUF_TRANSPORT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_UIP_PBUF_RAM@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%esi, %esi
	callq	_uip_pbuf_alloc
	movq	%rax, 24(%r14)
	testq	%rax, %rax
	je	LBB0_51
## %bb.23:                              ##   in Loop: Header=BB0_4 Depth=1
	addq	$2, %r12
	movq	%rax, %rdi
	movq	%r15, %rsi
	callq	_uip_pbuf_cat
	movq	-96(%rbp), %r15                 ## 8-byte Reload
	jmp	LBB0_10
LBB0_24:
	leaq	L_.str.1(%rip), %rdi
	callq	_UIP_ERROR
	jmp	LBB0_49
LBB0_25:
	leaq	L_.str.2(%rip), %rdi
	callq	_UIP_ERROR
	testq	%r15, %r15
	jne	LBB0_48
	jmp	LBB0_49
LBB0_26:
	leaq	L_.str.7(%rip), %rdi
	jmp	LBB0_46
LBB0_27:
	leaq	L_.str.8(%rip), %rdi
	jmp	LBB0_46
LBB0_28:
	movq	32(%rdi), %rax
	testq	%rax, %rax
	movq	-88(%rbp), %rbx                 ## 8-byte Reload
	je	LBB0_36
	.p2align	4, 0x90
LBB0_29:                                ## =>This Inner Loop Header: Depth=1
	movq	%rax, %r15
	movq	16(%rax), %rax
	testq	%rax, %rax
	jne	LBB0_29
## %bb.30:
	movq	%r15, %rdi
	callq	_UIP_TCP_TCPLEN
	testq	%rax, %rax
	movq	-72(%rbp), %r12                 ## 8-byte Reload
	je	LBB0_33
## %bb.31:
	movq	8(%r15), %rdi
	callq	_UIP_TCPH_FLAGS
	movq	_UIP_TCP_SYN@GOTPCREL(%rip), %rcx
	movq	_UIP_TCP_FIN@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	orq	(%rcx), %rdx
	orq	%rbx, %rax
	testq	%rax, %rdx
	jne	LBB0_33
## %bb.32:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rax
	addq	(%r15), %rax
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	cmpq	24(%rcx), %rax
	jle	LBB0_52
LBB0_33:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, 16(%r15)
LBB0_34:
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	jmp	LBB0_37
LBB0_35:
	leaq	L_.str.3(%rip), %rdi
	jmp	LBB0_46
LBB0_36:
	movq	%rcx, 32(%rdi)
	movq	-72(%rbp), %r12                 ## 8-byte Reload
LBB0_37:
	movq	_UIP_TCP_SYN@GOTPCREL(%rip), %rax
	testq	%rbx, (%rax)
	jne	LBB0_39
## %bb.38:
	movq	_UIP_TCP_FIN@GOTPCREL(%rip), %rax
	testq	%rbx, (%rax)
	je	LBB0_40
LBB0_39:
	incq	%rdx
LBB0_40:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	addq	%rdx, 8(%rax)
	subq	%rdx, (%rax)
	movq	%r12, 16(%rax)
	movq	_UIP_ERR_OK@GOTPCREL(%rip), %rbx
	testq	%r14, %r14
	je	LBB0_50
## %bb.41:
	testq	%r13, %r13
	jle	LBB0_50
## %bb.42:
	movq	8(%r14), %rdi
	testq	%rdi, %rdi
	je	LBB0_50
## %bb.43:
	movq	_UIP_TCP_PSH@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_UIP_TCPH_SET_FLAG
	jmp	LBB0_50
LBB0_44:
	leaq	L_.str.4(%rip), %rdi
	jmp	LBB0_46
LBB0_45:
	leaq	L_.str.5(%rip), %rdi
LBB0_46:
	callq	_UIP_ERROR
LBB0_47:
	movq	-48(%rbp), %r15                 ## 8-byte Reload
LBB0_48:
	movq	%r15, %rdi
	callq	_uip_tcpsegs_free
LBB0_49:
	movq	_UIP_ERR_MEM@GOTPCREL(%rip), %rbx
LBB0_50:
	movl	(%rbx), %eax
	addq	$88, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_51:
	leaq	L_.str.6(%rip), %rdi
	callq	_UIP_LOG
	movq	%r15, %rdi
	callq	_uip_pbuf_free
	jmp	LBB0_47
LBB0_52:
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movq	24(%rbx), %rdi
	xorl	%esi, %esi
	movq	_UIP_TCP_HLEN@GOTPCREL(%rip), %rax
	subl	(%rax), %esi
	callq	_uip_pbuf_header
	movq	24(%r15), %rdi
	movq	24(%rbx), %rsi
	callq	_uip_pbuf_cat
	movq	(%rbx), %rax
	addq	%rax, (%r15)
	movq	16(%rbx), %rax
	movq	%rax, 16(%r15)
	cmpq	%rbx, %r14
	movq	%rbx, %rsi
	movl	$0, %eax
	cmoveq	%rax, %r14
	movq	-88(%rbp), %rbx                 ## 8-byte Reload
	movq	_uip_tcp_segs@GOTPCREL(%rip), %rdi
	callq	_memb_free
	jmp	LBB0_34
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"uip_tcpenqueue: too much data (len>pcb->snd_buf).\n"

	.comm	_UIP_ERR_MEM,4,2                ## @UIP_ERR_MEM
	.comm	_UIP_TCP_SND_QUEUELEN,8,3       ## @UIP_TCP_SND_QUEUELEN
L_.str.1:                               ## @.str.1
	.asciz	"uip_tcpenqueue: too long queue."

	.comm	_uip_tcp_segs,4,2               ## @uip_tcp_segs
L_.str.2:                               ## @.str.2
	.asciz	"uip_tcpenqueue: could not allocate memory for tcp_seg."

	.comm	_UIP_PBUF_TRANSPORT,4,2         ## @UIP_PBUF_TRANSPORT
	.comm	_UIP_PBUF_RAM,4,2               ## @UIP_PBUF_RAM
L_.str.3:                               ## @.str.3
	.asciz	"uip_tcpenqueue: could not allocate memory for pbuf opdata."

L_.str.4:                               ## @.str.4
	.asciz	"uip_tcpenqueue: could not allocate memory for pbuf copy size."

	.comm	_UIP_PBUF_ROM,4,2               ## @UIP_PBUF_ROM
L_.str.5:                               ## @.str.5
	.asciz	"uip_tcpenqueue: could not allocate memory for zero-copy pbuf."

L_.str.6:                               ## @.str.6
	.asciz	"uip_tcpenqueue: could not allocate memory for header pbuf."

L_.str.7:                               ## @.str.7
	.asciz	"uip_tcpenqueue: queue too long."

	.comm	_UIP_TCP_HLEN,4,2               ## @UIP_TCP_HLEN
L_.str.8:                               ## @.str.8
	.asciz	"uip_tcpenqueue: no room for TCP header in pbuf."

	.comm	_UIP_TCP_SYN,8,3                ## @UIP_TCP_SYN
	.comm	_UIP_TCP_FIN,8,3                ## @UIP_TCP_FIN
	.comm	_UIP_TCP_PSH,4,2                ## @UIP_TCP_PSH
	.comm	_UIP_ERR_OK,4,2                 ## @UIP_ERR_OK
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_uip_tcpenqueue                 ; -- Begin function uip_tcpenqueue
	.p2align	2
_uip_tcpenqueue:                        ; @uip_tcpenqueue
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #160
	.cfi_def_cfa_offset 160
	stp	x28, x27, [sp, #64]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #80]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #96]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #112]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #128]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #144]            ; 16-byte Folded Spill
	add	x29, sp, #144
	.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
	str	x6, [sp, #48]                   ; 8-byte Folded Spill
	ldr	x8, [x0]
	cmp	x8, x2
	b.ge	LBB0_2
; %bb.1:
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_UIP_ERROR
	b	LBB0_51
LBB0_2:
	ldr	x28, [x0, #16]
Lloh2:
	adrp	x8, _UIP_TCP_SND_QUEUELEN@GOTPAGE
Lloh3:
	ldr	x8, [x8, _UIP_TCP_SND_QUEUELEN@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	cmp	x28, x8
	b.ge	LBB0_25
; %bb.3:
	mov	x19, x1
	str	x4, [sp, #8]                    ; 8-byte Folded Spill
	stp	x3, x5, [sp, #24]               ; 16-byte Folded Spill
	mov	x24, #0
	mov	x20, #0
	str	x0, [sp, #56]                   ; 8-byte Folded Spill
	ldr	x8, [x0, #8]
	str	x8, [sp, #40]                   ; 8-byte Folded Spill
	ldr	x9, [sp, #48]                   ; 8-byte Folded Reload
	add	x8, x9, #3
	cmp	x9, #0
	csel	x8, x8, x9, lt
	lsr	x8, x8, #2
	add	w8, w8, #5
	str	w8, [sp, #20]                   ; 4-byte Folded Spill
	mov	w27, #1
	mov	x25, x2
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [sp, #56]                   ; 8-byte Folded Reload
	ldr	x8, [x8, #24]
	cmp	x25, x8
	mov	x26, x2
	csel	x23, x8, x2, gt
Lloh5:
	adrp	x0, _uip_tcp_segs@GOTPAGE
Lloh6:
	ldr	x0, [x0, _uip_tcp_segs@GOTPAGEOFF]
	bl	_memb_alloc
	cbz	x0, LBB0_26
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x22, x0
	stp	xzr, xzr, [x0, #16]
	mov	x21, x0
	tbnz	w27, #0, LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	str	x22, [x20, #16]
	mov	x21, x24
LBB0_7:                                 ;   in Loop: Header=BB0_4 Depth=1
Lloh7:
	adrp	x8, _UIP_PBUF_TRANSPORT@GOTPAGE
Lloh8:
	ldr	x8, [x8, _UIP_PBUF_TRANSPORT@GOTPAGEOFF]
Lloh9:
	ldr	w0, [x8]
	ldr	x27, [sp, #32]                  ; 8-byte Folded Reload
	cbz	x27, LBB0_15
; %bb.8:                                ;   in Loop: Header=BB0_4 Depth=1
Lloh10:
	adrp	x8, _UIP_PBUF_RAM@GOTPAGE
Lloh11:
	ldr	x8, [x8, _UIP_PBUF_RAM@GOTPAGEOFF]
Lloh12:
	ldr	w2, [x8]
	ldr	x1, [sp, #48]                   ; 8-byte Folded Reload
	bl	_uip_pbuf_alloc
	str	x0, [x22, #24]
	cbz	x0, LBB0_36
; %bb.9:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x24, x19
LBB0_10:                                ;   in Loop: Header=BB0_4 Depth=1
	add	x28, x28, #1
	ldr	x8, [x0]
	str	x8, [x22, #32]
LBB0_11:                                ;   in Loop: Header=BB0_4 Depth=1
Lloh13:
	adrp	x8, _UIP_TCP_SND_QUEUELEN@GOTPAGE
Lloh14:
	ldr	x8, [x8, _UIP_TCP_SND_QUEUELEN@GOTPAGEOFF]
Lloh15:
	ldr	x8, [x8]
	cmp	x28, x8
	b.gt	LBB0_27
; %bb.12:                               ;   in Loop: Header=BB0_4 Depth=1
	str	x23, [x22]
	ldr	x0, [x22, #24]
Lloh16:
	adrp	x8, _UIP_TCP_HLEN@GOTPAGE
Lloh17:
	ldr	x8, [x8, _UIP_TCP_HLEN@GOTPAGEOFF]
Lloh18:
	ldr	w1, [x8]
	bl	_uip_pbuf_header
	cbnz	x0, LBB0_28
; %bb.13:                               ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x22, #24]
	ldr	x8, [x8]
	str	x8, [x22, #8]
	ldr	x19, [sp, #56]                  ; 8-byte Folded Reload
	ldr	w0, [x19, #44]
	bl	_htons
	ldr	x8, [x22, #8]
	str	x0, [x8, #24]
	ldr	w0, [x19, #40]
	bl	_htons
	ldr	x8, [x22, #8]
	str	x0, [x8, #16]
	ldr	x19, [sp, #40]                  ; 8-byte Folded Reload
	mov	x0, x19
	bl	_htonl
	ldr	x8, [x22, #8]
	str	w0, [x8, #8]
	str	xzr, [x8]
	mov	x0, x8
	ldr	x1, [sp, #24]                   ; 8-byte Folded Reload
	bl	_UIP_TCPH_FLAGS_SET
	ldr	x0, [x22, #8]
	cbz	x27, LBB0_19
; %bb.14:                               ;   in Loop: Header=BB0_4 Depth=1
	ldr	w1, [sp, #20]                   ; 4-byte Folded Reload
	bl	_UIP_TCPH_HDRLEN_SET
	ldr	x0, [x22, #32]
	mov	x1, x27
	ldr	x2, [sp, #48]                   ; 8-byte Folded Reload
	bl	_UIP_MEMCPY
	b	LBB0_20
LBB0_15:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [sp, #8]                    ; 8-byte Folded Reload
	cbz	x8, LBB0_22
; %bb.16:                               ;   in Loop: Header=BB0_4 Depth=1
	mov	x24, x19
Lloh19:
	adrp	x8, _UIP_PBUF_RAM@GOTPAGE
Lloh20:
	ldr	x8, [x8, _UIP_PBUF_RAM@GOTPAGEOFF]
Lloh21:
	ldr	w2, [x8]
	mov	x1, x23
	bl	_uip_pbuf_alloc
	str	x0, [x22, #24]
	cbz	x0, LBB0_46
; %bb.17:                               ;   in Loop: Header=BB0_4 Depth=1
	cbz	x24, LBB0_10
; %bb.18:                               ;   in Loop: Header=BB0_4 Depth=1
	ldr	x0, [x0]
	mov	x1, x24
	mov	x2, x23
	bl	_UIP_MEMCPY
	ldr	x0, [x22, #24]
	b	LBB0_10
LBB0_19:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	w1, #5
	bl	_UIP_TCPH_HDRLEN_SET
LBB0_20:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x2, x26
	sub	x25, x25, x23
	add	x19, x23, x19
	str	x19, [sp, #40]                  ; 8-byte Folded Spill
	add	x19, x24, x23, lsl #3
	cmp	x21, #0
	cset	w27, eq
	mov	x24, x21
	mov	x20, x22
	cbz	x21, LBB0_4
; %bb.21:                               ;   in Loop: Header=BB0_4 Depth=1
	mov	x24, x21
	mov	x20, x22
	cmp	x25, #0
	b.gt	LBB0_4
	b	LBB0_29
LBB0_22:                                ;   in Loop: Header=BB0_4 Depth=1
Lloh22:
	adrp	x8, _UIP_PBUF_ROM@GOTPAGE
Lloh23:
	ldr	x8, [x8, _UIP_PBUF_ROM@GOTPAGEOFF]
Lloh24:
	ldr	w2, [x8]
	mov	x1, x23
	bl	_uip_pbuf_alloc
	cbz	x0, LBB0_47
; %bb.23:                               ;   in Loop: Header=BB0_4 Depth=1
	mov	x24, x0
	str	x19, [x0]
	str	x19, [x22, #32]
Lloh25:
	adrp	x8, _UIP_PBUF_TRANSPORT@GOTPAGE
Lloh26:
	ldr	x8, [x8, _UIP_PBUF_TRANSPORT@GOTPAGEOFF]
Lloh27:
	ldr	w0, [x8]
Lloh28:
	adrp	x8, _UIP_PBUF_RAM@GOTPAGE
Lloh29:
	ldr	x8, [x8, _UIP_PBUF_RAM@GOTPAGEOFF]
Lloh30:
	ldr	w2, [x8]
	mov	x1, #0
	bl	_uip_pbuf_alloc
	str	x0, [x22, #24]
	cbz	x0, LBB0_53
; %bb.24:                               ;   in Loop: Header=BB0_4 Depth=1
	add	x28, x28, #2
	mov	x1, x24
	bl	_uip_pbuf_cat
	mov	x24, x19
	b	LBB0_11
LBB0_25:
Lloh31:
	adrp	x0, l_.str.1@PAGE
Lloh32:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_UIP_ERROR
	b	LBB0_51
LBB0_26:
Lloh33:
	adrp	x0, l_.str.2@PAGE
Lloh34:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_UIP_ERROR
	cbnz	x24, LBB0_50
	b	LBB0_51
LBB0_27:
Lloh35:
	adrp	x0, l_.str.7@PAGE
Lloh36:
	add	x0, x0, l_.str.7@PAGEOFF
	b	LBB0_48
LBB0_28:
Lloh37:
	adrp	x0, l_.str.8@PAGE
Lloh38:
	add	x0, x0, l_.str.8@PAGEOFF
	b	LBB0_48
LBB0_29:
	ldr	x19, [sp, #56]                  ; 8-byte Folded Reload
	ldr	x8, [x19, #32]
Lloh39:
	adrp	x25, _UIP_TCP_SYN@GOTPAGE
Lloh40:
	ldr	x25, [x25, _UIP_TCP_SYN@GOTPAGEOFF]
	ldr	x20, [sp, #24]                  ; 8-byte Folded Reload
	cbz	x8, LBB0_37
LBB0_30:                                ; =>This Inner Loop Header: Depth=1
	mov	x24, x8
	ldr	x8, [x8, #16]
	cbnz	x8, LBB0_30
; %bb.31:
	mov	x0, x24
	bl	_UIP_TCP_TCPLEN
	cbz	x0, LBB0_34
; %bb.32:
	ldr	x0, [x24, #8]
	bl	_UIP_TCPH_FLAGS
	ldr	x8, [x25]
Lloh41:
	adrp	x9, _UIP_TCP_FIN@GOTPAGE
Lloh42:
	ldr	x9, [x9, _UIP_TCP_FIN@GOTPAGEOFF]
Lloh43:
	ldr	x9, [x9]
	orr	x8, x9, x8
	orr	x9, x0, x20
	tst	x8, x9
	b.ne	LBB0_34
; %bb.33:
	ldr	x8, [x24]
	ldr	x9, [x21]
	ldr	x10, [x19, #24]
	add	x8, x9, x8
	cmp	x8, x10
	b.le	LBB0_54
LBB0_34:
	str	x21, [x24, #16]
LBB0_35:
	mov	x2, x26
	b	LBB0_38
LBB0_36:
Lloh44:
	adrp	x0, l_.str.3@PAGE
Lloh45:
	add	x0, x0, l_.str.3@PAGEOFF
	b	LBB0_48
LBB0_37:
	str	x21, [x19, #32]
LBB0_38:
	ldr	x8, [x25]
	tst	x8, x20
	b.ne	LBB0_40
; %bb.39:
Lloh46:
	adrp	x8, _UIP_TCP_FIN@GOTPAGE
Lloh47:
	ldr	x8, [x8, _UIP_TCP_FIN@GOTPAGEOFF]
Lloh48:
	ldr	x8, [x8]
	tst	x8, x20
	b.eq	LBB0_41
LBB0_40:
	add	x2, x2, #1
LBB0_41:
	ldp	x9, x8, [x19]
	add	x8, x8, x2
	sub	x9, x9, x2
	stp	x9, x8, [x19]
	str	x28, [x19, #16]
Lloh49:
	adrp	x8, _UIP_ERR_OK@GOTPAGE
Lloh50:
	ldr	x8, [x8, _UIP_ERR_OK@GOTPAGEOFF]
	cbz	x22, LBB0_52
; %bb.42:
	cmp	x23, #1
	b.lt	LBB0_52
; %bb.43:
	ldr	x0, [x22, #8]
	cbz	x0, LBB0_45
; %bb.44:
Lloh51:
	adrp	x8, _UIP_TCP_PSH@GOTPAGE
Lloh52:
	ldr	x8, [x8, _UIP_TCP_PSH@GOTPAGEOFF]
Lloh53:
	ldr	w1, [x8]
	bl	_UIP_TCPH_SET_FLAG
LBB0_45:
Lloh54:
	adrp	x8, _UIP_ERR_OK@GOTPAGE
Lloh55:
	ldr	x8, [x8, _UIP_ERR_OK@GOTPAGEOFF]
	b	LBB0_52
LBB0_46:
Lloh56:
	adrp	x0, l_.str.4@PAGE
Lloh57:
	add	x0, x0, l_.str.4@PAGEOFF
	b	LBB0_48
LBB0_47:
Lloh58:
	adrp	x0, l_.str.5@PAGE
Lloh59:
	add	x0, x0, l_.str.5@PAGEOFF
LBB0_48:
	bl	_UIP_ERROR
LBB0_49:
	mov	x24, x21
LBB0_50:
	mov	x0, x24
	bl	_uip_tcpsegs_free
LBB0_51:
Lloh60:
	adrp	x8, _UIP_ERR_MEM@GOTPAGE
Lloh61:
	ldr	x8, [x8, _UIP_ERR_MEM@GOTPAGEOFF]
LBB0_52:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #144]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #128]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #112]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #96]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #80]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #160
	ret
LBB0_53:
Lloh62:
	adrp	x0, l_.str.6@PAGE
Lloh63:
	add	x0, x0, l_.str.6@PAGEOFF
	bl	_UIP_LOG
	mov	x0, x24
	bl	_uip_pbuf_free
	b	LBB0_49
LBB0_54:
	ldr	x0, [x21, #24]
Lloh64:
	adrp	x8, _UIP_TCP_HLEN@GOTPAGE
Lloh65:
	ldr	x8, [x8, _UIP_TCP_HLEN@GOTPAGEOFF]
Lloh66:
	ldr	w8, [x8]
	neg	w1, w8
	bl	_uip_pbuf_header
	ldr	x0, [x24, #24]
	ldr	x1, [x21, #24]
	bl	_uip_pbuf_cat
	ldr	x8, [x21]
	ldr	x9, [x24]
	add	x8, x9, x8
	str	x8, [x24]
	ldr	x8, [x21, #16]
	str	x8, [x24, #16]
	cmp	x22, x21
	csel	x22, xzr, x22, eq
Lloh67:
	adrp	x0, _uip_tcp_segs@GOTPAGE
Lloh68:
	ldr	x0, [x0, _uip_tcp_segs@GOTPAGEOFF]
	mov	x1, x21
	bl	_memb_free
	b	LBB0_35
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpAdd	Lloh31, Lloh32
	.loh AdrpAdd	Lloh33, Lloh34
	.loh AdrpAdd	Lloh35, Lloh36
	.loh AdrpAdd	Lloh37, Lloh38
	.loh AdrpLdrGot	Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.loh AdrpAdd	Lloh44, Lloh45
	.loh AdrpLdrGotLdr	Lloh46, Lloh47, Lloh48
	.loh AdrpLdrGot	Lloh49, Lloh50
	.loh AdrpLdrGotLdr	Lloh51, Lloh52, Lloh53
	.loh AdrpLdrGot	Lloh54, Lloh55
	.loh AdrpAdd	Lloh56, Lloh57
	.loh AdrpAdd	Lloh58, Lloh59
	.loh AdrpLdrGot	Lloh60, Lloh61
	.loh AdrpAdd	Lloh62, Lloh63
	.loh AdrpLdrGot	Lloh67, Lloh68
	.loh AdrpLdrGotLdr	Lloh64, Lloh65, Lloh66
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"uip_tcpenqueue: too much data (len>pcb->snd_buf).\n"

	.comm	_UIP_ERR_MEM,4,2                ; @UIP_ERR_MEM
	.comm	_UIP_TCP_SND_QUEUELEN,8,3       ; @UIP_TCP_SND_QUEUELEN
l_.str.1:                               ; @.str.1
	.asciz	"uip_tcpenqueue: too long queue."

	.comm	_uip_tcp_segs,4,2               ; @uip_tcp_segs
l_.str.2:                               ; @.str.2
	.asciz	"uip_tcpenqueue: could not allocate memory for tcp_seg."

	.comm	_UIP_PBUF_TRANSPORT,4,2         ; @UIP_PBUF_TRANSPORT
	.comm	_UIP_PBUF_RAM,4,2               ; @UIP_PBUF_RAM
l_.str.3:                               ; @.str.3
	.asciz	"uip_tcpenqueue: could not allocate memory for pbuf opdata."

l_.str.4:                               ; @.str.4
	.asciz	"uip_tcpenqueue: could not allocate memory for pbuf copy size."

	.comm	_UIP_PBUF_ROM,4,2               ; @UIP_PBUF_ROM
l_.str.5:                               ; @.str.5
	.asciz	"uip_tcpenqueue: could not allocate memory for zero-copy pbuf."

l_.str.6:                               ; @.str.6
	.asciz	"uip_tcpenqueue: could not allocate memory for header pbuf."

l_.str.7:                               ; @.str.7
	.asciz	"uip_tcpenqueue: queue too long."

	.comm	_UIP_TCP_HLEN,4,2               ; @UIP_TCP_HLEN
l_.str.8:                               ; @.str.8
	.asciz	"uip_tcpenqueue: no room for TCP header in pbuf."

	.comm	_UIP_TCP_SYN,8,3                ; @UIP_TCP_SYN
	.comm	_UIP_TCP_FIN,8,3                ; @UIP_TCP_FIN
	.comm	_UIP_TCP_PSH,4,2                ; @UIP_TCP_PSH
	.comm	_UIP_ERR_OK,4,2                 ; @UIP_ERR_OK
.subsections_via_symbols
