	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function uip_tcpoutput_segments
_uip_tcpoutput_segments:                ## @uip_tcpoutput_segments
	.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	%rsi, %rbx
	movq	%rdi, %r14
	movl	56(%rsi), %edi
	callq	_htonl
	movq	8(%r14), %rcx
	movl	%eax, 24(%rcx)
	movq	(%rbx), %rdi
	cmpq	8(%rbx), %rdi
	jge	LBB0_2
## %bb.1:
	xorl	%eax, %eax
	jmp	LBB0_3
LBB0_2:
	callq	_htons
	movq	8(%r14), %rcx
LBB0_3:
	movq	%rax, 16(%rcx)
	leaq	36(%rbx), %r15
	movq	%r15, %rdi
	callq	_ip_addr_isany
	testq	%rax, %rax
	je	LBB0_6
## %bb.4:
	leaq	32(%rbx), %rdi
	callq	_uip_iproute
	testq	%rax, %rax
	je	LBB0_10
## %bb.5:
	movq	%r15, %rdi
	movq	%rax, %rsi
	callq	_ip_addr_set
LBB0_6:
	movq	$0, 48(%rbx)
	cmpq	$0, 16(%rbx)
	je	LBB0_8
## %bb.7:
	movq	8(%r14), %r12
	jmp	LBB0_9
LBB0_8:
	movq	_uip_tcp_ticks@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 16(%rbx)
	movq	8(%r14), %r12
	movl	8(%r12), %edi
	callq	_ntohl
	movl	%eax, 40(%rbx)
LBB0_9:
	movq	(%r14), %rdi
	movq	%r12, %rax
	subq	8(%rdi), %rax
	shrq	$2, %rax
	subl	%eax, 16(%rdi)
	movl	(%rdi), %r8d
	subl	%eax, %r8d
	movl	%r8d, (%rdi)
	movq	%r12, 8(%rdi)
	movq	$0, (%r12)
	leaq	32(%rbx), %r12
	movq	_UIP_PROTO_TCP@GOTPCREL(%rip), %r13
	movl	(%r13), %ecx
	movq	%r15, %rsi
	movq	%r12, %rdx
	callq	_uip_chksum_pseudo
	movq	8(%r14), %rcx
	movq	%rax, (%rcx)
	movq	(%r14), %rdi
	movl	24(%rbx), %r8d
	movl	28(%rbx), %ecx
	movl	(%r13), %r9d
	movq	%r15, %rsi
	movq	%r12, %rdx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_uip_ipoutput                   ## TAILCALL
LBB0_10:
	leaq	L_.str(%rip), %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_UIP_ERROR                      ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"uip_tcpoutput_segments: no route found."

	.comm	_uip_tcp_ticks,8,3              ## @uip_tcp_ticks
	.comm	_UIP_PROTO_TCP,4,2              ## @UIP_PROTO_TCP
	.no_dead_strip	_uip_tcpoutput_segments
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function uip_tcpoutput_segments
_uip_tcpoutput_segments:                ; @uip_tcpoutput_segments
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x19, x1
	mov	x20, x0
	ldr	w0, [x1, #56]
	bl	_htonl
	ldr	x8, [x20, #8]
	str	w0, [x8, #24]
	ldp	x0, x9, [x19]
	cmp	x0, x9
	b.ge	LBB0_2
; %bb.1:
	mov	x0, #0
	b	LBB0_3
LBB0_2:
	bl	_htons
	ldr	x8, [x20, #8]
LBB0_3:
	str	x0, [x8, #16]
	add	x21, x19, #36
	mov	x0, x21
	bl	_ip_addr_isany
	cbz	x0, LBB0_6
; %bb.4:
	add	x0, x19, #32
	bl	_uip_iproute
	cbz	x0, LBB0_10
; %bb.5:
	mov	x1, x0
	mov	x0, x21
	bl	_ip_addr_set
LBB0_6:
	str	xzr, [x19, #48]
	ldr	x8, [x19, #16]
	cbz	x8, LBB0_8
; %bb.7:
	ldr	x22, [x20, #8]
	b	LBB0_9
LBB0_8:
Lloh0:
	adrp	x8, _uip_tcp_ticks@GOTPAGE
Lloh1:
	ldr	x8, [x8, _uip_tcp_ticks@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [x19, #16]
	ldr	x22, [x20, #8]
	ldr	w0, [x22, #8]
	bl	_ntohl
	str	w0, [x19, #40]
LBB0_9:
	ldr	x0, [x20]
	ldr	x8, [x0, #8]
	sub	x8, x22, x8
	lsr	x8, x8, #2
	ldr	w9, [x0, #16]
	sub	w9, w9, w8
	str	w9, [x0, #16]
	ldr	w9, [x0]
	sub	w4, w9, w8
	str	w4, [x0]
	str	x22, [x0, #8]
	str	xzr, [x22]
	add	x22, x19, #32
Lloh3:
	adrp	x23, _UIP_PROTO_TCP@GOTPAGE
Lloh4:
	ldr	x23, [x23, _UIP_PROTO_TCP@GOTPAGEOFF]
	ldr	w3, [x23]
	mov	x1, x21
	mov	x2, x22
	bl	_uip_chksum_pseudo
	ldp	x8, x9, [x20]
	str	x0, [x9]
	ldp	w4, w3, [x19, #24]
	ldr	w5, [x23]
	mov	x0, x8
	mov	x1, x21
	mov	x2, x22
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_uip_ipoutput
LBB0_10:
Lloh5:
	adrp	x0, l_.str@PAGE
Lloh6:
	add	x0, x0, l_.str@PAGEOFF
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_UIP_ERROR
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"uip_tcpoutput_segments: no route found."

	.comm	_uip_tcp_ticks,8,3              ; @uip_tcp_ticks
	.comm	_UIP_PROTO_TCP,4,2              ; @UIP_PROTO_TCP
	.no_dead_strip	_uip_tcpoutput_segments
.subsections_via_symbols
