	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_tcp_autorcvbuf                 ## -- Begin function tcp_autorcvbuf
	.p2align	4, 0x90
_tcp_autorcvbuf:                        ## @tcp_autorcvbuf
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r8d, %ebx
	movq	%rcx, %r13
	movq	_V_tcp_do_autorcvbuf@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_9
## %bb.1:
	movq	%rdx, %r14
	movq	_SB_AUTOSIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rdx)
	je	LBB0_9
## %bb.2:
	cmpl	$0, (%r13)
	je	LBB0_9
## %bb.3:
	cmpq	$0, 8(%r13)
	je	LBB0_9
## %bb.4:
	movq	%rdi, %r15
	xorl	%r12d, %r12d
	xorl	%eax, %eax
	movq	%rsi, -48(%rbp)                 ## 8-byte Spill
	callq	_tcp_ts_getticks
	subq	8(%r13), %rax
	movq	%rax, %rdi
	callq	_TCP_TS_TO_TICKS
	movq	-48(%rbp), %r9                  ## 8-byte Reload
	movl	(%r13), %edx
	movq	_TCP_RTT_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	movl	%edx, %esi
	sarl	%cl, %esi
	shrl	$31, %edx
	addl	%esi, %edx
	sarl	%edx
	cmpl	%edx, %eax
	jle	LBB0_9
## %bb.5:
	movl	4(%r14), %eax
	leal	7(%rax), %ecx
	testl	%eax, %eax
	cmovnsl	%eax, %ecx
	sarl	$3, %ecx
	leal	(%rcx,%rcx,2), %ecx
	cmpl	%ecx, 16(%r13)
	jle	LBB0_8
## %bb.6:
	movq	_V_tcp_autorcvbuf_max@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	cmpl	%esi, %eax
	jge	LBB0_8
## %bb.7:
	movl	%eax, %edi
	shrl	$31, %edi
	addl	%eax, %edi
	sarl	%edi
	addl	%eax, %edi
	callq	_min
	movq	-48(%rbp), %r9                  ## 8-byte Reload
	movl	%eax, %r12d
LBB0_8:
	movq	_receive__autoresize@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%r12d, (%rsp)
	xorl	%esi, %esi
	movq	%r13, %rdx
	movq	%r15, %rcx
	movq	%r13, %r8
	callq	_TCP_PROBE6
	movq	$0, 8(%r13)
	movl	$0, 16(%r13)
	jmp	LBB0_10
LBB0_9:
	addl	%ebx, 16(%r13)
	xorl	%r12d, %r12d
LBB0_10:
	movl	%r12d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_V_tcp_do_autorcvbuf,8,3        ## @V_tcp_do_autorcvbuf
	.comm	_SB_AUTOSIZE,4,2                ## @SB_AUTOSIZE
	.comm	_TCP_RTT_SHIFT,4,2              ## @TCP_RTT_SHIFT
	.comm	_V_tcp_autorcvbuf_max,4,2       ## @V_tcp_autorcvbuf_max
	.comm	_receive__autoresize,4,2        ## @receive__autoresize
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_tcp_autorcvbuf                 ; -- Begin function tcp_autorcvbuf
	.p2align	2
_tcp_autorcvbuf:                        ; @tcp_autorcvbuf
	.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	x22, x4
	mov	x19, x3
Lloh0:
	adrp	x8, _V_tcp_do_autorcvbuf@GOTPAGE
Lloh1:
	ldr	x8, [x8, _V_tcp_do_autorcvbuf@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cbz	x8, LBB0_8
; %bb.1:
	mov	x23, x2
	ldr	w8, [x2]
Lloh3:
	adrp	x9, _SB_AUTOSIZE@GOTPAGE
Lloh4:
	ldr	x9, [x9, _SB_AUTOSIZE@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_8
; %bb.2:
	ldr	w8, [x19]
	cbz	w8, LBB0_8
; %bb.3:
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_8
; %bb.4:
	mov	x20, x1
	mov	x21, x0
	bl	_tcp_ts_getticks
	ldr	x8, [x19, #8]
	sub	x0, x0, x8
	bl	_TCP_TS_TO_TICKS
Lloh6:
	adrp	x8, _TCP_RTT_SHIFT@GOTPAGE
Lloh7:
	ldr	x8, [x8, _TCP_RTT_SHIFT@GOTPAGEOFF]
	ldr	w9, [x19]
Lloh8:
	ldr	w8, [x8]
	asr	w8, w9, w8
	cmp	w8, #0
	cinc	w8, w8, lt
	cmp	w0, w8, asr #1
	b.le	LBB0_8
; %bb.5:
	ldr	w10, [x19, #16]
	ldr	w8, [x23, #4]
	add	w9, w8, #7
	cmp	w8, #0
	csel	w11, w9, w8, lt
	cinc	w9, w8, lt
	asr	w11, w11, #3
	add	w11, w11, w11, lsl #1
	cmp	w10, w11
	b.le	LBB0_10
; %bb.6:
Lloh9:
	adrp	x10, _V_tcp_autorcvbuf_max@GOTPAGE
Lloh10:
	ldr	x10, [x10, _V_tcp_autorcvbuf_max@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x10]
	cmp	w8, w1
	b.ge	LBB0_10
; %bb.7:
	asr	w9, w9, #1
	add	w0, w9, w8
	bl	_min
	mov	x23, x0
	b	LBB0_11
LBB0_8:
	mov	w23, #0
	ldr	w8, [x19, #16]
	add	w8, w8, w22
	str	w8, [x19, #16]
LBB0_9:
	mov	x0, x23
	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
	ret
LBB0_10:
	mov	w23, #0
LBB0_11:
Lloh12:
	adrp	x8, _receive__autoresize@GOTPAGE
Lloh13:
	ldr	x8, [x8, _receive__autoresize@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
	mov	x1, #0
	mov	x2, x19
	mov	x3, x21
	mov	x4, x19
	mov	x5, x20
	mov	x6, x23
	bl	_TCP_PROBE6
	str	xzr, [x19, #8]
	str	wzr, [x19, #16]
	b	LBB0_9
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_V_tcp_do_autorcvbuf,8,3        ; @V_tcp_do_autorcvbuf
	.comm	_SB_AUTOSIZE,4,2                ; @SB_AUTOSIZE
	.comm	_TCP_RTT_SHIFT,4,2              ; @TCP_RTT_SHIFT
	.comm	_V_tcp_autorcvbuf_max,4,2       ; @V_tcp_autorcvbuf_max
	.comm	_receive__autoresize,4,2        ; @receive__autoresize
.subsections_via_symbols
