	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_tcp_maxseg                     ## -- Begin function tcp_maxseg
	.p2align	4, 0x90
_tcp_maxseg:                            ## @tcp_maxseg
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	movq	_TF_NOOPT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rdi)
	je	LBB0_2
## %bb.1:
	movq	8(%rbx), %rax
	jmp	LBB0_17
LBB0_2:
	movl	16(%rbx), %edi
	callq	_TCPS_HAVEESTABLISHED
	movl	(%rbx), %ecx
	testq	%rax, %rax
	je	LBB0_9
## %bb.3:
	movq	_TF_RCVD_TSTMP@GOTPCREL(%rip), %rax
	testl	%ecx, (%rax)
	je	LBB0_4
## %bb.5:
	movq	_TCPOLEN_TSTAMP_APPA@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	jmp	LBB0_6
LBB0_9:
	movq	_TF_REQ_TSTMP@GOTPCREL(%rip), %rax
	testl	%ecx, (%rax)
	je	LBB0_11
## %bb.10:
	movq	_TCPOLEN_TSTAMP_APPA@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	jmp	LBB0_12
LBB0_4:
	xorl	%edi, %edi
LBB0_6:
	movq	_TF_SACK_PERMIT@GOTPCREL(%rip), %rax
	testl	%ecx, (%rax)
	je	LBB0_16
## %bb.7:
	movslq	4(%rbx), %rax
	testq	%rax, %rax
	jle	LBB0_16
## %bb.8:
	movq	_TCPOLEN_SACKHDR@GOTPCREL(%rip), %rcx
	addq	(%rcx), %rdi
	movq	_TCPOLEN_SACK@GOTPCREL(%rip), %rcx
	movslq	(%rcx), %rcx
	imulq	%rax, %rcx
	movq	%rdi, %rax
	addq	%rcx, %rax
	leaq	3(%rcx,%rdi), %rdi
	cmovnsq	%rax, %rdi
	shrq	$2, %rdi
	andl	$3, %eax
	cmpq	$1, %rax
	sbbq	$-1, %rdi
	shlq	$2, %rdi
	jmp	LBB0_16
LBB0_11:
	movq	_TCPOLEN_MAXSEG@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	leaq	3(%rax), %rdi
	testq	%rax, %rax
	cmovnsq	%rax, %rdi
	shrq	$2, %rdi
	andl	$3, %eax
	cmpq	$1, %rax
	sbbq	$-1, %rdi
	shlq	$2, %rdi
LBB0_12:
	movq	_TF_REQ_SCALE@GOTPCREL(%rip), %rax
	testl	%ecx, (%rax)
	je	LBB0_14
## %bb.13:
	movq	_TCPOLEN_WINDOW@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	leaq	3(%rax), %rdx
	testq	%rax, %rax
	cmovnsq	%rax, %rdx
	shrq	$2, %rdx
	andl	$3, %eax
	cmpq	$1, %rax
	sbbq	$-1, %rdx
	leaq	(%rdi,%rdx,4), %rdi
LBB0_14:
	movq	_TF_SACK_PERMIT@GOTPCREL(%rip), %rax
	testl	%ecx, (%rax)
	je	LBB0_16
## %bb.15:
	movq	_TCPOLEN_SACK_PERMITTED@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	leaq	3(%rax), %rcx
	testq	%rax, %rax
	cmovnsq	%rax, %rcx
	shrq	$2, %rcx
	andl	$3, %eax
	cmpq	$1, %rax
	sbbq	$-1, %rcx
	leaq	(%rdi,%rcx,4), %rdi
LBB0_16:
	movq	_TCP_MAXOLEN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_min
	movq	%rax, %rcx
	movq	8(%rbx), %rax
	subq	%rcx, %rax
LBB0_17:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_TF_NOOPT,4,2                   ## @TF_NOOPT
	.comm	_TF_RCVD_TSTMP,4,2              ## @TF_RCVD_TSTMP
	.comm	_TCPOLEN_TSTAMP_APPA,8,3        ## @TCPOLEN_TSTAMP_APPA
	.comm	_TF_SACK_PERMIT,4,2             ## @TF_SACK_PERMIT
	.comm	_TCPOLEN_SACKHDR,8,3            ## @TCPOLEN_SACKHDR
	.comm	_TCPOLEN_SACK,4,2               ## @TCPOLEN_SACK
	.comm	_TF_REQ_TSTMP,4,2               ## @TF_REQ_TSTMP
	.comm	_TCPOLEN_MAXSEG,8,3             ## @TCPOLEN_MAXSEG
	.comm	_TF_REQ_SCALE,4,2               ## @TF_REQ_SCALE
	.comm	_TCPOLEN_WINDOW,8,3             ## @TCPOLEN_WINDOW
	.comm	_TCPOLEN_SACK_PERMITTED,8,3     ## @TCPOLEN_SACK_PERMITTED
	.comm	_TCP_MAXOLEN,4,2                ## @TCP_MAXOLEN
	.comm	_TCPOLEN_SIGNATURE,8,3          ## @TCPOLEN_SIGNATURE
	.comm	_TF_SIGNATURE,4,2               ## @TF_SIGNATURE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_tcp_maxseg                     ; -- Begin function tcp_maxseg
	.p2align	2
_tcp_maxseg:                            ; @tcp_maxseg
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	ldr	w8, [x0]
Lloh0:
	adrp	x9, _TF_NOOPT@GOTPAGE
Lloh1:
	ldr	x9, [x9, _TF_NOOPT@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_2
; %bb.1:
	ldr	x0, [x19, #8]
	b	LBB0_14
LBB0_2:
	ldr	w0, [x19, #16]
	bl	_TCPS_HAVEESTABLISHED
	ldr	w8, [x19]
	cbz	x0, LBB0_6
; %bb.3:
Lloh3:
	adrp	x9, _TF_RCVD_TSTMP@GOTPAGE
Lloh4:
	ldr	x9, [x9, _TF_RCVD_TSTMP@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
Lloh6:
	adrp	x10, _TCPOLEN_TSTAMP_APPA@GOTPAGE
Lloh7:
	ldr	x10, [x10, _TCPOLEN_TSTAMP_APPA@GOTPAGEOFF]
Lloh8:
	ldr	x10, [x10]
	tst	w9, w8
	csel	x0, xzr, x10, eq
Lloh9:
	adrp	x9, _TF_SACK_PERMIT@GOTPAGE
Lloh10:
	ldr	x9, [x9, _TF_SACK_PERMIT@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_13
; %bb.4:
	ldrsw	x8, [x19, #4]
	cmp	w8, #1
	b.lt	LBB0_13
; %bb.5:
Lloh12:
	adrp	x9, _TCPOLEN_SACKHDR@GOTPAGE
Lloh13:
	ldr	x9, [x9, _TCPOLEN_SACKHDR@GOTPAGEOFF]
Lloh14:
	ldr	x9, [x9]
	add	x9, x9, x0
Lloh15:
	adrp	x10, _TCPOLEN_SACK@GOTPAGE
Lloh16:
	ldr	x10, [x10, _TCPOLEN_SACK@GOTPAGEOFF]
Lloh17:
	ldrsw	x10, [x10]
	madd	x8, x10, x8, x9
	add	x9, x8, #3
	cmp	x8, #0
	csel	x9, x9, x8, lt
	lsr	x9, x9, #2
	tst	x8, #0x3
	cinc	x8, x9, ne
	lsl	x0, x8, #2
	b	LBB0_13
LBB0_6:
Lloh18:
	adrp	x9, _TF_REQ_TSTMP@GOTPAGE
Lloh19:
	ldr	x9, [x9, _TF_REQ_TSTMP@GOTPAGEOFF]
Lloh20:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_8
; %bb.7:
Lloh21:
	adrp	x9, _TCPOLEN_TSTAMP_APPA@GOTPAGE
Lloh22:
	ldr	x9, [x9, _TCPOLEN_TSTAMP_APPA@GOTPAGEOFF]
Lloh23:
	ldr	x0, [x9]
	b	LBB0_9
LBB0_8:
Lloh24:
	adrp	x9, _TCPOLEN_MAXSEG@GOTPAGE
Lloh25:
	ldr	x9, [x9, _TCPOLEN_MAXSEG@GOTPAGEOFF]
Lloh26:
	ldr	x9, [x9]
	add	x10, x9, #3
	cmp	x9, #0
	csel	x10, x10, x9, lt
	lsr	x10, x10, #2
	tst	x9, #0x3
	cinc	x9, x10, ne
	lsl	x0, x9, #2
LBB0_9:
Lloh27:
	adrp	x9, _TF_REQ_SCALE@GOTPAGE
Lloh28:
	ldr	x9, [x9, _TF_REQ_SCALE@GOTPAGEOFF]
Lloh29:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_11
; %bb.10:
Lloh30:
	adrp	x9, _TCPOLEN_WINDOW@GOTPAGE
Lloh31:
	ldr	x9, [x9, _TCPOLEN_WINDOW@GOTPAGEOFF]
Lloh32:
	ldr	x9, [x9]
	add	x10, x9, #3
	cmp	x9, #0
	csel	x10, x10, x9, lt
	lsr	x10, x10, #2
	tst	x9, #0x3
	cinc	x9, x10, ne
	add	x0, x0, x9, lsl #2
LBB0_11:
Lloh33:
	adrp	x9, _TF_SACK_PERMIT@GOTPAGE
Lloh34:
	ldr	x9, [x9, _TF_SACK_PERMIT@GOTPAGEOFF]
Lloh35:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_13
; %bb.12:
Lloh36:
	adrp	x8, _TCPOLEN_SACK_PERMITTED@GOTPAGE
Lloh37:
	ldr	x8, [x8, _TCPOLEN_SACK_PERMITTED@GOTPAGEOFF]
Lloh38:
	ldr	x8, [x8]
	add	x9, x8, #3
	cmp	x8, #0
	csel	x9, x9, x8, lt
	lsr	x9, x9, #2
	tst	x8, #0x3
	cinc	x8, x9, ne
	add	x0, x0, x8, lsl #2
LBB0_13:
Lloh39:
	adrp	x8, _TCP_MAXOLEN@GOTPAGE
Lloh40:
	ldr	x8, [x8, _TCP_MAXOLEN@GOTPAGEOFF]
Lloh41:
	ldr	w1, [x8]
	bl	_min
	ldr	x8, [x19, #8]
	sub	x0, x8, x0
LBB0_14:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.cfi_endproc
                                        ; -- End function
	.comm	_TF_NOOPT,4,2                   ; @TF_NOOPT
	.comm	_TF_RCVD_TSTMP,4,2              ; @TF_RCVD_TSTMP
	.comm	_TCPOLEN_TSTAMP_APPA,8,3        ; @TCPOLEN_TSTAMP_APPA
	.comm	_TF_SACK_PERMIT,4,2             ; @TF_SACK_PERMIT
	.comm	_TCPOLEN_SACKHDR,8,3            ; @TCPOLEN_SACKHDR
	.comm	_TCPOLEN_SACK,4,2               ; @TCPOLEN_SACK
	.comm	_TF_REQ_TSTMP,4,2               ; @TF_REQ_TSTMP
	.comm	_TCPOLEN_MAXSEG,8,3             ; @TCPOLEN_MAXSEG
	.comm	_TF_REQ_SCALE,4,2               ; @TF_REQ_SCALE
	.comm	_TCPOLEN_WINDOW,8,3             ; @TCPOLEN_WINDOW
	.comm	_TCPOLEN_SACK_PERMITTED,8,3     ; @TCPOLEN_SACK_PERMITTED
	.comm	_TCP_MAXOLEN,4,2                ; @TCP_MAXOLEN
	.comm	_TCPOLEN_SIGNATURE,8,3          ; @TCPOLEN_SIGNATURE
	.comm	_TF_SIGNATURE,4,2               ; @TF_SIGNATURE
.subsections_via_symbols
