	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function calc_send_window
_calc_send_window:                      ## @calc_send_window
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	cmpl	$0, 32(%rdi)
	je	LBB0_1
## %bb.2:
	movq	%rsi, %rax
	testl	%edx, %edx
	je	LBB0_3
## %bb.4:
	popq	%rbp
	retq
LBB0_1:
	movslq	16(%rdi), %rax
	leaq	(%rax,%rax,2), %rcx
	xorl	%eax, %eax
	subq	24(%rdi), %rcx
	cmovgq	%rcx, %rax
	popq	%rbp
	retq
LBB0_3:
	movq	(%rdi), %rcx
	movq	8(%rdi), %rdx
	movq	%rdx, %rsi
	subq	%rcx, %rsi
	addq	%rax, %rcx
	cmpq	%rcx, %rdx
	cmovaq	%rsi, %rax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_calc_send_window
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function calc_send_window
_calc_send_window:                      ; @calc_send_window
	.cfi_startproc
; %bb.0:
	ldr	w8, [x0, #32]
	cbz	w8, LBB0_3
; %bb.1:
	cbz	w2, LBB0_4
; %bb.2:
	mov	x0, x1
	ret
LBB0_3:
	ldrsw	x8, [x0, #16]
	add	x8, x8, x8, lsl #1
	ldr	x9, [x0, #24]
	subs	x8, x8, x9
	csel	x0, x8, xzr, gt
	ret
LBB0_4:
	ldp	x9, x8, [x0]
	sub	x10, x8, x9
	add	x9, x9, x1
	cmp	x8, x9
	csel	x1, x10, x1, hi
	mov	x0, x1
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_calc_send_window
.subsections_via_symbols
