	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ctf_fixed_maxseg               ## -- Begin function ctf_fixed_maxseg
	.p2align	4, 0x90
_ctf_fixed_maxseg:                      ## @ctf_fixed_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_14
LBB0_2:
	movl	16(%rbx), %edi
	callq	_TCPS_HAVEESTABLISHED
	movl	(%rbx), %ecx
	testq	%rax, %rax
	je	LBB0_6
## %bb.3:
	movq	_TF_RCVD_TSTMP@GOTPCREL(%rip), %rax
	andl	(%rax), %ecx
	je	LBB0_5
## %bb.4:
	movq	_TCPOLEN_TSTAMP_APPA@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
LBB0_5:
	movl	%ecx, %edi
	jmp	LBB0_13
LBB0_6:
	movq	_TF_REQ_TSTMP@GOTPCREL(%rip), %rax
	testl	%ecx, (%rax)
	je	LBB0_8
## %bb.7:
	movq	_TCPOLEN_TSTAMP_APPA@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	jmp	LBB0_9
LBB0_8:
	movq	_TCPOLEN_MAXSEG@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	leal	3(%rax), %edi
	testl	%eax, %eax
	cmovnsl	%eax, %edi
	shrl	$2, %edi
	andl	$3, %eax
	cmpl	$1, %eax
	sbbl	$-1, %edi
	shll	$2, %edi
LBB0_9:
	movq	_TF_REQ_SCALE@GOTPCREL(%rip), %rax
	testl	%ecx, (%rax)
	je	LBB0_11
## %bb.10:
	movq	_TCPOLEN_WINDOW@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	leal	3(%rax), %edx
	testl	%eax, %eax
	cmovnsl	%eax, %edx
	shrl	$2, %edx
	andl	$3, %eax
	cmpl	$1, %eax
	sbbl	$-1, %edx
	leal	(%rdi,%rdx,4), %edi
LBB0_11:
	movq	_TF_SACK_PERMIT@GOTPCREL(%rip), %rax
	testl	%ecx, (%rax)
	je	LBB0_13
## %bb.12:
	movq	_TCPOLEN_SACK_PERMITTED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	leal	3(%rax), %ecx
	testl	%eax, %eax
	cmovnsl	%eax, %ecx
	shrl	$2, %ecx
	andl	$3, %eax
	cmpl	$1, %eax
	sbbl	$-1, %ecx
	leal	(%rdi,%rcx,4), %edi
LBB0_13:
	movq	_TCP_MAXOLEN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
                                        ## kill: def $edi killed $edi killed $rdi
	callq	_min
	movl	%eax, %ecx
	movq	8(%rbx), %rax
	movslq	%ecx, %rcx
	subq	%rcx, %rax
LBB0_14:
	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,4,2        ## @TCPOLEN_TSTAMP_APPA
	.comm	_TF_REQ_TSTMP,4,2               ## @TF_REQ_TSTMP
	.comm	_TCPOLEN_MAXSEG,4,2             ## @TCPOLEN_MAXSEG
	.comm	_TF_REQ_SCALE,4,2               ## @TF_REQ_SCALE
	.comm	_TCPOLEN_WINDOW,4,2             ## @TCPOLEN_WINDOW
	.comm	_TF_SACK_PERMIT,4,2             ## @TF_SACK_PERMIT
	.comm	_TCPOLEN_SACK_PERMITTED,4,2     ## @TCPOLEN_SACK_PERMITTED
	.comm	_TCP_MAXOLEN,4,2                ## @TCP_MAXOLEN
	.comm	_TCPOLEN_SIGNATURE,4,2          ## @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	_ctf_fixed_maxseg               ; -- Begin function ctf_fixed_maxseg
	.p2align	2
_ctf_fixed_maxseg:                      ; @ctf_fixed_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_12
LBB0_2:
	ldr	w0, [x19, #16]
	bl	_TCPS_HAVEESTABLISHED
	ldr	w8, [x19]
	cbz	x0, LBB0_4
; %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	w10, [x10]
	tst	w9, w8
	csel	w0, wzr, w10, eq
	b	LBB0_11
LBB0_4:
Lloh9:
	adrp	x9, _TF_REQ_TSTMP@GOTPAGE
Lloh10:
	ldr	x9, [x9, _TF_REQ_TSTMP@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_6
; %bb.5:
Lloh12:
	adrp	x9, _TCPOLEN_TSTAMP_APPA@GOTPAGE
Lloh13:
	ldr	x9, [x9, _TCPOLEN_TSTAMP_APPA@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x9]
	b	LBB0_7
LBB0_6:
Lloh15:
	adrp	x9, _TCPOLEN_MAXSEG@GOTPAGE
Lloh16:
	ldr	x9, [x9, _TCPOLEN_MAXSEG@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
	add	w10, w9, #3
	cmp	w9, #0
	csel	w10, w10, w9, lt
	lsr	w10, w10, #2
	tst	w9, #0x3
	cinc	w9, w10, ne
	lsl	w0, w9, #2
LBB0_7:
Lloh18:
	adrp	x9, _TF_REQ_SCALE@GOTPAGE
Lloh19:
	ldr	x9, [x9, _TF_REQ_SCALE@GOTPAGEOFF]
Lloh20:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_9
; %bb.8:
Lloh21:
	adrp	x9, _TCPOLEN_WINDOW@GOTPAGE
Lloh22:
	ldr	x9, [x9, _TCPOLEN_WINDOW@GOTPAGEOFF]
Lloh23:
	ldr	w9, [x9]
	add	w10, w9, #3
	cmp	w9, #0
	csel	w10, w10, w9, lt
	lsr	w10, w10, #2
	tst	w9, #0x3
	cinc	w9, w10, ne
	add	w0, w0, w9, lsl #2
LBB0_9:
Lloh24:
	adrp	x9, _TF_SACK_PERMIT@GOTPAGE
Lloh25:
	ldr	x9, [x9, _TF_SACK_PERMIT@GOTPAGEOFF]
Lloh26:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_11
; %bb.10:
Lloh27:
	adrp	x8, _TCPOLEN_SACK_PERMITTED@GOTPAGE
Lloh28:
	ldr	x8, [x8, _TCPOLEN_SACK_PERMITTED@GOTPAGEOFF]
Lloh29:
	ldr	w8, [x8]
	add	w9, w8, #3
	cmp	w8, #0
	csel	w9, w9, w8, lt
	lsr	w9, w9, #2
	tst	w8, #0x3
	cinc	w8, w9, ne
	add	w0, w0, w8, lsl #2
LBB0_11:
Lloh30:
	adrp	x8, _TCP_MAXOLEN@GOTPAGE
Lloh31:
	ldr	x8, [x8, _TCP_MAXOLEN@GOTPAGEOFF]
Lloh32:
	ldr	w1, [x8]
	bl	_min
	ldr	x8, [x19, #8]
	sub	x0, x8, w0, sxtw
LBB0_12:
	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	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.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
	.cfi_endproc
                                        ; -- End function
	.comm	_TF_NOOPT,4,2                   ; @TF_NOOPT
	.comm	_TF_RCVD_TSTMP,4,2              ; @TF_RCVD_TSTMP
	.comm	_TCPOLEN_TSTAMP_APPA,4,2        ; @TCPOLEN_TSTAMP_APPA
	.comm	_TF_REQ_TSTMP,4,2               ; @TF_REQ_TSTMP
	.comm	_TCPOLEN_MAXSEG,4,2             ; @TCPOLEN_MAXSEG
	.comm	_TF_REQ_SCALE,4,2               ; @TF_REQ_SCALE
	.comm	_TCPOLEN_WINDOW,4,2             ; @TCPOLEN_WINDOW
	.comm	_TF_SACK_PERMIT,4,2             ; @TF_SACK_PERMIT
	.comm	_TCPOLEN_SACK_PERMITTED,4,2     ; @TCPOLEN_SACK_PERMITTED
	.comm	_TCP_MAXOLEN,4,2                ; @TCP_MAXOLEN
	.comm	_TCPOLEN_SIGNATURE,4,2          ; @TCPOLEN_SIGNATURE
	.comm	_TF_SIGNATURE,4,2               ; @TF_SIGNATURE
.subsections_via_symbols
