	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tcp_clamp_window
_tcp_clamp_window:                      ## @tcp_clamp_window
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	callq	_tcp_sk
	movq	%rax, %r14
	movq	%rbx, %rdi
	callq	_inet_csk
	movq	$0, (%rax)
	movq	(%rbx), %rax
	movq	_sysctl_tcp_rmem@GOTPCREL(%rip), %r15
	movq	(%r15), %rcx
	cmpq	16(%rcx), %rax
	jge	LBB0_4
## %bb.1:
	movq	_SOCK_RCVBUF_LOCK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	8(%rbx), %eax
	movq	_tcp_memory_pressure@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	jne	LBB0_4
## %bb.2:
	movq	_tcp_memory_allocated@GOTPCREL(%rip), %rdi
	callq	_atomic_read
	movq	_sysctl_tcp_mem@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	(%rcx), %rax
	jge	LBB0_4
## %bb.3:
	leaq	12(%rbx), %rdi
	callq	_atomic_read
	movq	(%r15), %rcx
	movl	16(%rcx), %esi
	movq	%rax, %rdi
	callq	_min
	movq	%rax, (%rbx)
LBB0_4:
	leaq	12(%rbx), %rdi
	callq	_atomic_read
	cmpq	(%rbx), %rax
	jle	LBB0_6
## %bb.5:
	movq	(%r14), %rdi
	movl	8(%r14), %esi
	addl	%esi, %esi
	callq	_min
	movq	%rax, 16(%r14)
LBB0_6:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_sysctl_tcp_rmem,8,3            ## @sysctl_tcp_rmem
	.comm	_SOCK_RCVBUF_LOCK,4,2           ## @SOCK_RCVBUF_LOCK
	.comm	_tcp_memory_pressure,4,2        ## @tcp_memory_pressure
	.comm	_tcp_memory_allocated,4,2       ## @tcp_memory_allocated
	.comm	_sysctl_tcp_mem,8,3             ## @sysctl_tcp_mem
	.no_dead_strip	_tcp_clamp_window
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tcp_clamp_window
_tcp_clamp_window:                      ; @tcp_clamp_window
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x20, x0
	bl	_tcp_sk
	mov	x19, x0
	mov	x0, x20
	bl	_inet_csk
	str	xzr, [x0]
	ldr	x8, [x20]
Lloh0:
	adrp	x21, _sysctl_tcp_rmem@GOTPAGE
Lloh1:
	ldr	x21, [x21, _sysctl_tcp_rmem@GOTPAGEOFF]
	ldr	x9, [x21]
	ldr	x9, [x9, #16]
	cmp	x8, x9
	b.ge	LBB0_4
; %bb.1:
	ldr	w8, [x20, #8]
Lloh2:
	adrp	x9, _SOCK_RCVBUF_LOCK@GOTPAGE
Lloh3:
	ldr	x9, [x9, _SOCK_RCVBUF_LOCK@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x9]
	and	w8, w9, w8
Lloh5:
	adrp	x9, _tcp_memory_pressure@GOTPAGE
Lloh6:
	ldr	x9, [x9, _tcp_memory_pressure@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	orr	w8, w8, w9
	cbnz	w8, LBB0_4
; %bb.2:
Lloh8:
	adrp	x0, _tcp_memory_allocated@GOTPAGE
Lloh9:
	ldr	x0, [x0, _tcp_memory_allocated@GOTPAGEOFF]
	bl	_atomic_read
Lloh10:
	adrp	x8, _sysctl_tcp_mem@GOTPAGE
Lloh11:
	ldr	x8, [x8, _sysctl_tcp_mem@GOTPAGEOFF]
Lloh12:
	ldr	x8, [x8]
	ldr	x8, [x8]
	cmp	x0, x8
	b.ge	LBB0_4
; %bb.3:
	add	x0, x20, #12
	bl	_atomic_read
	ldr	x8, [x21]
	ldr	w1, [x8, #16]
	bl	_min
	str	x0, [x20]
LBB0_4:
	add	x0, x20, #12
	bl	_atomic_read
	ldr	x8, [x20]
	cmp	x0, x8
	b.le	LBB0_6
; %bb.5:
	ldr	x0, [x19]
	ldr	w8, [x19, #8]
	lsl	w1, w8, #1
	bl	_min
	str	x0, [x19, #16]
LBB0_6:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_sysctl_tcp_rmem,8,3            ; @sysctl_tcp_rmem
	.comm	_SOCK_RCVBUF_LOCK,4,2           ; @SOCK_RCVBUF_LOCK
	.comm	_tcp_memory_pressure,4,2        ; @tcp_memory_pressure
	.comm	_tcp_memory_allocated,4,2       ; @tcp_memory_allocated
	.comm	_sysctl_tcp_mem,8,3             ; @sysctl_tcp_mem
	.no_dead_strip	_tcp_clamp_window
.subsections_via_symbols
