	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_uip_tcpoutput                  ## -- Begin function uip_tcpoutput
	.p2align	4, 0x90
_uip_tcpoutput:                         ## @uip_tcpoutput
	.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	_uip_tcp_input_pcb@GOTPCREL(%rip), %rax
	cmpq	%rdi, (%rax)
	je	LBB0_1
## %bb.2:
	movq	%rdi, %r15
	movl	92(%rdi), %esi
	movl	96(%rdi), %edi
	callq	_UIP_MIN
	movq	%rax, %r14
	movq	56(%r15), %rax
	testq	%rax, %rax
	je	LBB0_3
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rax, %r12
	movq	8(%rax), %rax
	testq	%rax, %rax
	jne	LBB0_4
	jmp	LBB0_5
LBB0_1:
	xorl	%eax, %eax
	jmp	LBB0_28
LBB0_3:
	xorl	%r12d, %r12d
LBB0_5:
	movq	48(%r15), %r13
	movq	_UIP_TF_ACK_NOW@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r15)
	je	LBB0_11
## %bb.6:
	testq	%r13, %r13
	je	LBB0_8
## %bb.7:
	movq	16(%r13), %rax
	movl	(%rax), %edi
	callq	_ntohl
	subq	8(%r15), %rax
	addq	(%r13), %rax
	cmpq	%r14, %rax
	jle	LBB0_12
LBB0_8:
	movq	_UIP_PBUF_IP@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_UIP_TCP_HLEN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_UIP_PBUF_RAM@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_uip_pbuf_alloc
	testq	%rax, %rax
	je	LBB0_9
## %bb.10:
	movq	%rax, %r14
	movq	_UIP_TF_ACK_DELAY@GOTPCREL(%rip), %rax
	movq	_UIP_TF_ACK_NOW@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	notl	%ecx
	andl	%ecx, (%r15)
	movq	8(%r14), %rbx
	movl	88(%r15), %edi
	callq	_htons
	movq	%rax, 48(%rbx)
	movl	84(%r15), %edi
	callq	_htons
	movq	%rax, 40(%rbx)
	movq	16(%r15), %rdi
	callq	_htonl
	movq	%rax, 32(%rbx)
	movq	24(%r15), %rdi
	callq	_htonl
	movq	%rax, 24(%rbx)
	movq	_UIP_TCP_ACK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_UIP_TCPH_FLAGS_SET
	movl	80(%r15), %edi
	callq	_htons
	movq	%rax, 16(%rbx)
	movq	$0, 8(%rbx)
	movq	%rbx, %rdi
	movl	$5, %esi
	callq	_UIP_TCPH_HDRLEN_SET
	movl	$0, (%rbx)
	leaq	76(%r15), %r12
	leaq	72(%r15), %r13
	movq	_UIP_PROTO_TCP@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	(%r14), %r8d
	movq	%r14, %rdi
	movq	%r12, %rsi
	movq	%r13, %rdx
	callq	_uip_chksum_pseudo
	movl	%eax, (%rbx)
	movl	64(%r15), %r8d
	movl	68(%r15), %ecx
	movq	_UIP_PROTO_TCP@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	movq	%r14, %rdi
	movq	%r12, %rsi
	movq	%r13, %rdx
	callq	_uip_ipoutput
	movq	%r14, %rdi
	callq	_uip_pbuf_free
	jmp	LBB0_26
LBB0_11:
	testq	%r13, %r13
	jne	LBB0_12
LBB0_26:
	movq	_UIP_ERR_OK@GOTPCREL(%rip), %rax
LBB0_27:
	movl	(%rax), %eax
LBB0_28:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.p2align	4, 0x90
LBB0_23:                                ##   in Loop: Header=BB0_12 Depth=1
	movq	%r13, %rdi
	callq	_uip_tcpseg_free
LBB0_24:                                ##   in Loop: Header=BB0_12 Depth=1
	movq	%r12, %r13
LBB0_25:                                ##   in Loop: Header=BB0_12 Depth=1
	movq	%r13, %r12
	movq	48(%r15), %rax
	movq	%rax, %r13
	testq	%rax, %rax
	je	LBB0_26
LBB0_12:                                ## =>This Inner Loop Header: Depth=1
	movq	16(%r13), %rax
	movl	(%rax), %edi
	callq	_ntohl
	subq	8(%r15), %rax
	addq	(%r13), %rax
	cmpq	%r14, %rax
	jg	LBB0_26
## %bb.13:                              ##   in Loop: Header=BB0_12 Depth=1
	movq	8(%r13), %rax
	movq	%rax, 48(%r15)
	movq	32(%r15), %rax
	movq	_UIP_SYN_SENT@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_15
## %bb.14:                              ##   in Loop: Header=BB0_12 Depth=1
	movq	16(%r13), %rdi
	movq	_UIP_TCP_ACK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_UIP_TCPH_SET_FLAG
	movq	_UIP_TF_ACK_NOW@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_UIP_TF_ACK_DELAY@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	notl	%eax
	andl	%eax, (%r15)
LBB0_15:                                ##   in Loop: Header=BB0_12 Depth=1
	movq	%r13, %rdi
	movq	%r15, %rsi
	callq	_uip_tcpoutput_segments
	movq	16(%r13), %rax
	movl	(%rax), %edi
	callq	_ntohl
	movq	%rax, %rbx
	movq	%r13, %rdi
	callq	_UIP_TCP_TCPLEN
	addq	%rax, %rbx
	movq	%rbx, 16(%r15)
	movq	40(%r15), %rdi
	movq	%rbx, %rsi
	callq	_UIP_TCP_SEQ_LT
	testq	%rax, %rax
	je	LBB0_17
## %bb.16:                              ##   in Loop: Header=BB0_12 Depth=1
	movq	16(%r15), %rax
	movq	%rax, 40(%r15)
LBB0_17:                                ##   in Loop: Header=BB0_12 Depth=1
	movq	%r13, %rdi
	callq	_UIP_TCP_TCPLEN
	testq	%rax, %rax
	jle	LBB0_23
## %bb.18:                              ##   in Loop: Header=BB0_12 Depth=1
	movq	$0, 8(%r13)
	cmpq	$0, 56(%r15)
	je	LBB0_19
## %bb.20:                              ##   in Loop: Header=BB0_12 Depth=1
	movq	16(%r13), %rax
	movl	(%rax), %edi
	callq	_ntohl
	movq	%rax, %rbx
	movq	16(%r12), %rax
	movl	(%rax), %edi
	callq	_ntohl
	movq	%rbx, %rdi
	movq	%rax, %rsi
	callq	_UIP_TCP_SEQ_LT
	testq	%rax, %rax
	je	LBB0_22
## %bb.21:                              ##   in Loop: Header=BB0_12 Depth=1
	movq	56(%r15), %rax
	movq	%rax, 8(%r13)
	movq	%r13, 56(%r15)
	jmp	LBB0_24
	.p2align	4, 0x90
LBB0_19:                                ##   in Loop: Header=BB0_12 Depth=1
	movq	%r13, 56(%r15)
	jmp	LBB0_25
LBB0_22:                                ##   in Loop: Header=BB0_12 Depth=1
	movq	%r13, 8(%r12)
	jmp	LBB0_25
LBB0_9:
	leaq	L_.str(%rip), %rdi
	callq	_UIP_ERROR
	movq	_UIP_ERR_BUF@GOTPCREL(%rip), %rax
	jmp	LBB0_27
	.cfi_endproc
                                        ## -- End function
	.comm	_uip_tcp_input_pcb,8,3          ## @uip_tcp_input_pcb
	.comm	_UIP_TF_ACK_NOW,4,2             ## @UIP_TF_ACK_NOW
	.comm	_UIP_PBUF_IP,4,2                ## @UIP_PBUF_IP
	.comm	_UIP_TCP_HLEN,4,2               ## @UIP_TCP_HLEN
	.comm	_UIP_PBUF_RAM,4,2               ## @UIP_PBUF_RAM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"uip_tcpoutput: (ACK) could not allocate pbuf."

	.comm	_UIP_ERR_BUF,4,2                ## @UIP_ERR_BUF
	.comm	_UIP_TF_ACK_DELAY,4,2           ## @UIP_TF_ACK_DELAY
	.comm	_UIP_TCP_ACK,4,2                ## @UIP_TCP_ACK
	.comm	_UIP_PROTO_TCP,4,2              ## @UIP_PROTO_TCP
	.comm	_UIP_ERR_OK,4,2                 ## @UIP_ERR_OK
	.comm	_UIP_SYN_SENT,8,3               ## @UIP_SYN_SENT
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_uip_tcpoutput                  ; -- Begin function uip_tcpoutput
	.p2align	2
_uip_tcpoutput:                         ; @uip_tcpoutput
	.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
Lloh0:
	adrp	x8, _uip_tcp_input_pcb@GOTPAGE
Lloh1:
	ldr	x8, [x8, _uip_tcp_input_pcb@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x8, x0
	b.eq	LBB0_3
; %bb.1:
	mov	x19, x0
	ldr	w0, [x0, #96]
	ldr	w1, [x19, #92]
	bl	_UIP_MIN
	mov	x20, x0
	ldp	x21, x8, [x19, #48]
	cbz	x8, LBB0_4
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	mov	x24, x8
	ldr	x8, [x8, #8]
	cbnz	x8, LBB0_2
	b	LBB0_5
LBB0_3:
	mov	w0, #0
	b	LBB0_28
LBB0_4:
	mov	x24, #0
LBB0_5:
	ldr	w8, [x19]
Lloh3:
	adrp	x23, _UIP_TF_ACK_NOW@GOTPAGE
Lloh4:
	ldr	x23, [x23, _UIP_TF_ACK_NOW@GOTPAGEOFF]
	ldr	w9, [x23]
	tst	w9, w8
	b.eq	LBB0_10
; %bb.6:
	cbz	x21, LBB0_8
; %bb.7:
	ldr	x8, [x21, #16]
	ldr	w0, [x8]
	bl	_ntohl
	ldr	x8, [x19, #8]
	ldr	x9, [x21]
	sub	x8, x0, x8
	add	x8, x8, x9
	cmp	x8, x20
	b.le	LBB0_11
LBB0_8:
Lloh5:
	adrp	x8, _UIP_PBUF_IP@GOTPAGE
Lloh6:
	ldr	x8, [x8, _UIP_PBUF_IP@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
Lloh8:
	adrp	x8, _UIP_TCP_HLEN@GOTPAGE
Lloh9:
	ldr	x8, [x8, _UIP_TCP_HLEN@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
Lloh11:
	adrp	x8, _UIP_PBUF_RAM@GOTPAGE
Lloh12:
	ldr	x8, [x8, _UIP_PBUF_RAM@GOTPAGEOFF]
Lloh13:
	ldr	w2, [x8]
	bl	_uip_pbuf_alloc
	cbz	x0, LBB0_29
; %bb.9:
	mov	x20, x0
Lloh14:
	adrp	x8, _UIP_TF_ACK_DELAY@GOTPAGE
Lloh15:
	ldr	x8, [x8, _UIP_TF_ACK_DELAY@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	ldr	w9, [x23]
	orr	w8, w9, w8
	ldr	w9, [x19]
	bic	w8, w9, w8
	str	w8, [x19]
	ldr	x21, [x0, #8]
	ldr	w0, [x19, #88]
	bl	_htons
	str	x0, [x21, #48]
	ldr	w0, [x19, #84]
	bl	_htons
	str	x0, [x21, #40]
	ldr	x0, [x19, #16]
	bl	_htonl
	str	x0, [x21, #32]
	ldr	x0, [x19, #24]
	bl	_htonl
	str	x0, [x21, #24]
Lloh17:
	adrp	x8, _UIP_TCP_ACK@GOTPAGE
Lloh18:
	ldr	x8, [x8, _UIP_TCP_ACK@GOTPAGEOFF]
Lloh19:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_UIP_TCPH_FLAGS_SET
	ldr	w0, [x19, #80]
	bl	_htons
	stp	xzr, x0, [x21, #8]
	mov	x0, x21
	mov	w1, #5
	bl	_UIP_TCPH_HDRLEN_SET
	str	wzr, [x21]
	add	x22, x19, #76
	add	x23, x19, #72
Lloh20:
	adrp	x24, _UIP_PROTO_TCP@GOTPAGE
Lloh21:
	ldr	x24, [x24, _UIP_PROTO_TCP@GOTPAGEOFF]
	ldr	w3, [x24]
	ldr	w4, [x20]
	mov	x0, x20
	mov	x1, x22
	mov	x2, x23
	bl	_uip_chksum_pseudo
	str	w0, [x21]
	ldp	w4, w3, [x19, #64]
	ldr	w5, [x24]
	mov	x0, x20
	mov	x1, x22
	mov	x2, x23
	bl	_uip_ipoutput
	mov	x0, x20
	bl	_uip_pbuf_free
	b	LBB0_26
LBB0_10:
	cbz	x21, LBB0_26
LBB0_11:
Lloh22:
	adrp	x25, _UIP_SYN_SENT@GOTPAGE
Lloh23:
	ldr	x25, [x25, _UIP_SYN_SENT@GOTPAGEOFF]
Lloh24:
	adrp	x26, _UIP_TCP_ACK@GOTPAGE
Lloh25:
	ldr	x26, [x26, _UIP_TCP_ACK@GOTPAGEOFF]
Lloh26:
	adrp	x27, _UIP_TF_ACK_DELAY@GOTPAGE
Lloh27:
	ldr	x27, [x27, _UIP_TF_ACK_DELAY@GOTPAGEOFF]
	b	LBB0_15
LBB0_12:                                ;   in Loop: Header=BB0_15 Depth=1
	mov	x0, x21
	bl	_uip_tcpseg_free
LBB0_13:                                ;   in Loop: Header=BB0_15 Depth=1
	mov	x21, x24
LBB0_14:                                ;   in Loop: Header=BB0_15 Depth=1
	ldr	x8, [x19, #48]
	mov	x24, x21
	mov	x21, x8
	cbz	x8, LBB0_26
LBB0_15:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x21, #16]
	ldr	w0, [x8]
	bl	_ntohl
	ldr	x8, [x19, #8]
	ldr	x9, [x21]
	sub	x8, x0, x8
	add	x8, x8, x9
	cmp	x8, x20
	b.gt	LBB0_26
; %bb.16:                               ;   in Loop: Header=BB0_15 Depth=1
	ldr	x8, [x21, #8]
	str	x8, [x19, #48]
	ldr	x8, [x19, #32]
	ldr	x9, [x25]
	cmp	x8, x9
	b.eq	LBB0_18
; %bb.17:                               ;   in Loop: Header=BB0_15 Depth=1
	ldr	x0, [x21, #16]
	ldr	w1, [x26]
	bl	_UIP_TCPH_SET_FLAG
	ldr	w8, [x27]
	ldr	w9, [x23]
	orr	w8, w9, w8
	ldr	w9, [x19]
	bic	w8, w9, w8
	str	w8, [x19]
LBB0_18:                                ;   in Loop: Header=BB0_15 Depth=1
	mov	x0, x21
	mov	x1, x19
	bl	_uip_tcpoutput_segments
	ldr	x8, [x21, #16]
	ldr	w0, [x8]
	bl	_ntohl
	mov	x22, x0
	mov	x0, x21
	bl	_UIP_TCP_TCPLEN
	add	x1, x0, x22
	str	x1, [x19, #16]
	ldr	x0, [x19, #40]
	bl	_UIP_TCP_SEQ_LT
	cbz	x0, LBB0_20
; %bb.19:                               ;   in Loop: Header=BB0_15 Depth=1
	ldr	x8, [x19, #16]
	str	x8, [x19, #40]
LBB0_20:                                ;   in Loop: Header=BB0_15 Depth=1
	mov	x0, x21
	bl	_UIP_TCP_TCPLEN
	cmp	x0, #1
	b.lt	LBB0_12
; %bb.21:                               ;   in Loop: Header=BB0_15 Depth=1
	str	xzr, [x21, #8]
	ldr	x8, [x19, #56]
	cbz	x8, LBB0_24
; %bb.22:                               ;   in Loop: Header=BB0_15 Depth=1
	ldr	x8, [x21, #16]
	ldr	w0, [x8]
	bl	_ntohl
	mov	x22, x0
	ldr	x8, [x24, #16]
	ldr	w0, [x8]
	bl	_ntohl
	mov	x1, x0
	mov	x0, x22
	bl	_UIP_TCP_SEQ_LT
	cbz	x0, LBB0_25
; %bb.23:                               ;   in Loop: Header=BB0_15 Depth=1
	ldr	x8, [x19, #56]
	str	x8, [x21, #8]
	str	x21, [x19, #56]
	b	LBB0_13
LBB0_24:                                ;   in Loop: Header=BB0_15 Depth=1
	str	x21, [x19, #56]
	b	LBB0_14
LBB0_25:                                ;   in Loop: Header=BB0_15 Depth=1
	str	x21, [x24, #8]
	b	LBB0_14
LBB0_26:
Lloh28:
	adrp	x8, _UIP_ERR_OK@GOTPAGE
Lloh29:
	ldr	x8, [x8, _UIP_ERR_OK@GOTPAGEOFF]
LBB0_27:
	ldr	w0, [x8]
LBB0_28:
	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_29:
Lloh30:
	adrp	x0, l_.str@PAGE
Lloh31:
	add	x0, x0, l_.str@PAGEOFF
	bl	_UIP_ERROR
Lloh32:
	adrp	x8, _UIP_ERR_BUF@GOTPAGE
Lloh33:
	ldr	x8, [x8, _UIP_ERR_BUF@GOTPAGEOFF]
	b	LBB0_27
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh28, Lloh29
	.loh AdrpLdrGot	Lloh32, Lloh33
	.loh AdrpAdd	Lloh30, Lloh31
	.cfi_endproc
                                        ; -- End function
	.comm	_uip_tcp_input_pcb,8,3          ; @uip_tcp_input_pcb
	.comm	_UIP_TF_ACK_NOW,4,2             ; @UIP_TF_ACK_NOW
	.comm	_UIP_PBUF_IP,4,2                ; @UIP_PBUF_IP
	.comm	_UIP_TCP_HLEN,4,2               ; @UIP_TCP_HLEN
	.comm	_UIP_PBUF_RAM,4,2               ; @UIP_PBUF_RAM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"uip_tcpoutput: (ACK) could not allocate pbuf."

	.comm	_UIP_ERR_BUF,4,2                ; @UIP_ERR_BUF
	.comm	_UIP_TF_ACK_DELAY,4,2           ; @UIP_TF_ACK_DELAY
	.comm	_UIP_TCP_ACK,4,2                ; @UIP_TCP_ACK
	.comm	_UIP_PROTO_TCP,4,2              ; @UIP_PROTO_TCP
	.comm	_UIP_ERR_OK,4,2                 ; @UIP_ERR_OK
	.comm	_UIP_SYN_SENT,8,3               ; @UIP_SYN_SENT
.subsections_via_symbols
