	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_tcp_rcv_space_adjust           ## -- Begin function tcp_rcv_space_adjust
	.p2align	4, 0x90
_tcp_rcv_space_adjust:                  ## @tcp_rcv_space_adjust
	.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	%rdi, %r14
	callq	_tcp_sk
	movq	%rax, %r12
	movq	16(%rax), %rax
	testq	%rax, %rax
	je	LBB0_10
## %bb.1:
	movl	32(%r12), %ecx
	testl	%ecx, %ecx
	je	LBB0_11
## %bb.2:
	movq	_tcp_time_stamp@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	subl	%eax, %edx
	sarl	$3, %ecx
	cmpl	%edx, %ecx
	jg	LBB0_11
## %bb.3:
	movl	(%r12), %esi
	movl	28(%r12), %edi
	subl	24(%r12), %esi
	addl	%esi, %esi
	callq	_max
	cmpl	%eax, 28(%r12)
	je	LBB0_10
## %bb.4:
	movl	%eax, 28(%r12)
	movq	_sysctl_tcp_moderate_rcvbuf@GOTPCREL(%rip), %rcx
	cmpq	$0, (%rcx)
	je	LBB0_10
## %bb.5:
	movq	_SOCK_RCVBUF_LOCK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%r14)
	jne	LBB0_10
## %bb.6:
	movl	4(%r12), %ecx
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	cltd
	idivl	%ecx
	movq	_MAX_TCP_HEADER@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	cmpl	$2, %eax
	movl	$1, %r15d
	cmovael	%eax, %r15d
	leal	(%rcx,%rdx), %ebx
	addl	$20, %ebx
	leal	(%rcx,%rdx), %r13d
	addl	$-108, %r13d
	imull	%r15d, %r13d
	shll	$7, %r15d
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	addl	%r15d, %r13d
	movl	%ebx, %edi
	callq	_tcp_win_from_space
	subl	$-128, %ebx
	cmpl	4(%r12), %eax
	jl	LBB0_7
## %bb.8:
	movq	_sysctl_tcp_rmem@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	8(%rax), %esi
	movl	%r13d, %edi
	callq	_min
	cmpl	4(%r14), %eax
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	jle	LBB0_10
## %bb.9:
	movl	%eax, 4(%r14)
	movl	%ecx, 8(%r12)
LBB0_10:
	movl	(%r12), %eax
	movl	%eax, 24(%r12)
	movq	_tcp_time_stamp@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 16(%r12)
LBB0_11:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_tcp_time_stamp,8,3             ## @tcp_time_stamp
	.comm	_sysctl_tcp_moderate_rcvbuf,8,3 ## @sysctl_tcp_moderate_rcvbuf
	.comm	_SOCK_RCVBUF_LOCK,4,2           ## @SOCK_RCVBUF_LOCK
	.comm	_MAX_TCP_HEADER,4,2             ## @MAX_TCP_HEADER
	.comm	_sysctl_tcp_rmem,8,3            ## @sysctl_tcp_rmem
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_tcp_rcv_space_adjust           ; -- Begin function tcp_rcv_space_adjust
	.p2align	2
_tcp_rcv_space_adjust:                  ; @tcp_rcv_space_adjust
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x20, x0
	bl	_tcp_sk
	mov	x19, x0
	ldr	x8, [x0, #16]
Lloh0:
	adrp	x24, _tcp_time_stamp@GOTPAGE
Lloh1:
	ldr	x24, [x24, _tcp_time_stamp@GOTPAGEOFF]
	cbz	x8, LBB0_9
; %bb.1:
	ldr	w9, [x24]
	sub	w8, w9, w8
	ldr	w9, [x19, #32]
	asr	w10, w9, #3
	cmp	w9, #0
	ccmp	w10, w8, #0, ne
	b.gt	LBB0_10
; %bb.2:
	ldr	w8, [x19]
	ldp	w9, w0, [x19, #24]
	sub	w8, w8, w9
	lsl	w1, w8, #1
	bl	_max
	ldr	w8, [x19, #28]
	cmp	w8, w0
	b.eq	LBB0_9
; %bb.3:
	mov	x21, x0
	str	w0, [x19, #28]
Lloh2:
	adrp	x8, _sysctl_tcp_moderate_rcvbuf@GOTPAGE
Lloh3:
	ldr	x8, [x8, _sysctl_tcp_moderate_rcvbuf@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	cbz	x8, LBB0_9
; %bb.4:
	ldr	w8, [x20]
Lloh5:
	adrp	x9, _SOCK_RCVBUF_LOCK@GOTPAGE
Lloh6:
	ldr	x9, [x9, _SOCK_RCVBUF_LOCK@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	tst	w9, w8
	b.ne	LBB0_9
; %bb.5:
	ldr	w8, [x19, #4]
	sdiv	w9, w21, w8
Lloh8:
	adrp	x10, _MAX_TCP_HEADER@GOTPAGE
Lloh9:
	ldr	x10, [x10, _MAX_TCP_HEADER@GOTPAGEOFF]
Lloh10:
	ldr	w10, [x10]
	add	w8, w8, w10
	add	w23, w8, #20
	cmp	w9, #1
	csinc	w9, w9, wzr, hi
	sub	w8, w8, #108
	mul	w22, w9, w8
	lsl	w25, w9, #7
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x23
	bl	_tcp_win_from_space
	ldr	w8, [x19, #4]
	add	w23, w23, #128
	add	w22, w22, w25
	cmp	w0, w8
	b.lt	LBB0_6
; %bb.7:
Lloh11:
	adrp	x8, _sysctl_tcp_rmem@GOTPAGE
Lloh12:
	ldr	x8, [x8, _sysctl_tcp_rmem@GOTPAGEOFF]
Lloh13:
	ldr	x8, [x8]
	ldr	w1, [x8, #8]
	mov	x0, x22
	bl	_min
	ldr	w8, [x20, #4]
	cmp	w0, w8
	b.le	LBB0_9
; %bb.8:
	str	w0, [x20, #4]
	str	w21, [x19, #8]
LBB0_9:
	ldr	w8, [x19]
	str	w8, [x19, #24]
	ldr	x8, [x24]
	str	x8, [x19, #16]
LBB0_10:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_tcp_time_stamp,8,3             ; @tcp_time_stamp
	.comm	_sysctl_tcp_moderate_rcvbuf,8,3 ; @sysctl_tcp_moderate_rcvbuf
	.comm	_SOCK_RCVBUF_LOCK,4,2           ; @SOCK_RCVBUF_LOCK
	.comm	_MAX_TCP_HEADER,4,2             ; @MAX_TCP_HEADER
	.comm	_sysctl_tcp_rmem,8,3            ; @sysctl_tcp_rmem
.subsections_via_symbols
