	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_tcp_update_metrics             ## -- Begin function tcp_update_metrics
	.p2align	4, 0x90
_tcp_update_metrics:                    ## @tcp_update_metrics
	.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, %rbx
	callq	_tcp_sk
	movq	%rax, %r14
	movq	%rbx, %rdi
	callq	___sk_dst_get
	movq	%rax, %r13
	movq	_sysctl_tcp_nometrics_save@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_1
LBB0_39:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movq	%r13, %rdi
	callq	_dst_confirm
	testq	%r13, %r13
	je	LBB0_39
## %bb.2:
	movq	_DST_HOST@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r13)
	je	LBB0_39
## %bb.3:
	movq	%rbx, %rdi
	callq	_inet_csk
	cmpq	$0, 8(%rax)
	je	LBB0_4
LBB0_5:
	movq	_RTAX_RTT@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movq	%r13, %rdi
	callq	_dst_metric_locked
	testl	%eax, %eax
	jne	LBB0_39
## %bb.6:
	xorl	%ecx, %ecx
LBB0_38:
	movq	8(%r13), %rax
	movslq	(%rbx), %rdx
	movl	%ecx, -4(%rax,%rdx,4)
	jmp	LBB0_39
LBB0_4:
	cmpq	$0, (%r14)
	je	LBB0_5
## %bb.7:
	movq	%rax, %r15
	movq	_RTAX_RTT@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movq	%r13, %rdi
	callq	_dst_metric_rtt
	movq	%rax, %r12
	subq	(%r14), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movl	(%rbx), %esi
	movq	%r13, %rdi
	callq	_dst_metric_locked
	testl	%eax, %eax
	jne	LBB0_12
## %bb.8:
	movq	_RTAX_RTT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	testl	%eax, %eax
	jle	LBB0_9
## %bb.10:
                                        ## kill: def $eax killed $eax killed $rax def $rax
	shrl	$3, %eax
	subq	%rax, %r12
	movq	%r12, %rdx
	jmp	LBB0_11
LBB0_9:
	movq	(%r14), %rdx
LBB0_11:
	movq	%r13, %rdi
	callq	_set_dst_metric_rtt
LBB0_12:
	movq	_RTAX_RTTVAR@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movq	%r13, %rdi
	callq	_dst_metric_locked
	testl	%eax, %eax
	jne	LBB0_14
## %bb.13:
	movq	%rbx, %rcx
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	%eax, %ebx
	negl	%ebx
	cmovsl	%eax, %ebx
	shrl	%ebx
	movl	8(%r14), %eax
	cmpl	%eax, %ebx
	cmovlel	%eax, %ebx
	movl	(%rcx), %esi
	movq	%rcx, %r12
	movq	%r13, %rdi
	callq	_dst_metric_rtt
	movq	%rax, %rcx
	subq	%rbx, %rcx
	shrq	$2, %rcx
	movq	%rax, %rdx
	subq	%rcx, %rdx
	cmpq	%rbx, %rax
	cmovbeq	%rbx, %rdx
	movl	(%r12), %esi
	movq	%r13, %rdi
	callq	_set_dst_metric_rtt
LBB0_14:
	movq	%r14, %rdi
	callq	_tcp_in_initial_slowstart
	testq	%rax, %rax
	je	LBB0_22
## %bb.15:
	movq	_RTAX_SSTHRESH@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movq	%r13, %rdi
	callq	_dst_metric
	testl	%eax, %eax
	je	LBB0_19
## %bb.16:
	movl	(%r15), %esi
	movq	%r13, %rdi
	callq	_dst_metric_locked
	testl	%eax, %eax
	jne	LBB0_19
## %bb.17:
	movl	12(%r14), %ebx
	sarl	%ebx
	movl	(%r15), %esi
	movq	%r13, %rdi
	callq	_dst_metric
	cmpl	%eax, %ebx
	jle	LBB0_19
## %bb.18:
	movl	12(%r14), %eax
	sarl	%eax
	movq	8(%r13), %rcx
	movslq	(%r15), %rdx
	movl	%eax, -4(%rcx,%rdx,4)
LBB0_19:
	movq	_RTAX_CWND@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movq	%r13, %rdi
	callq	_dst_metric_locked
	testl	%eax, %eax
	jne	LBB0_35
## %bb.20:
	movl	12(%r14), %r15d
	movl	(%rbx), %esi
	movq	%r13, %rdi
	callq	_dst_metric
	cmpl	%eax, %r15d
	jle	LBB0_35
## %bb.21:
	movl	12(%r14), %eax
	jmp	LBB0_34
LBB0_22:
	movl	12(%r14), %eax
	cmpl	16(%r14), %eax
	jle	LBB0_28
## %bb.23:
	movq	(%r15), %rax
	movq	_TCP_CA_Open@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_28
## %bb.24:
	movq	_RTAX_SSTHRESH@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movq	%r13, %rdi
	callq	_dst_metric_locked
	testl	%eax, %eax
	jne	LBB0_26
## %bb.25:
	movl	12(%r14), %edi
	movl	16(%r14), %esi
	sarl	%edi
	callq	_max
	movq	8(%r13), %rcx
	movslq	(%rbx), %rdx
	movl	%eax, -4(%rcx,%rdx,4)
LBB0_26:
	movq	_RTAX_CWND@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movq	%r13, %rdi
	callq	_dst_metric_locked
	testl	%eax, %eax
	jne	LBB0_35
## %bb.27:
	movl	(%rbx), %esi
	movq	%r13, %rdi
	callq	_dst_metric
	addl	12(%r14), %eax
	sarl	%eax
	jmp	LBB0_34
LBB0_28:
	movq	_RTAX_CWND@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movq	%r13, %rdi
	callq	_dst_metric_locked
	testl	%eax, %eax
	jne	LBB0_30
## %bb.29:
	movl	(%rbx), %esi
	movq	%r13, %rdi
	callq	_dst_metric
	addl	16(%r14), %eax
	sarl	%eax
	movq	8(%r13), %rcx
	movslq	(%rbx), %rdx
	movl	%eax, -4(%rcx,%rdx,4)
LBB0_30:
	movq	_RTAX_SSTHRESH@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movq	%r13, %rdi
	callq	_dst_metric
	testl	%eax, %eax
	je	LBB0_35
## %bb.31:
	movl	(%rbx), %esi
	movq	%r13, %rdi
	callq	_dst_metric_locked
	testl	%eax, %eax
	jne	LBB0_35
## %bb.32:
	movl	16(%r14), %r15d
	movl	(%rbx), %esi
	movq	%r13, %rdi
	callq	_dst_metric
	cmpl	%eax, %r15d
	jle	LBB0_35
## %bb.33:
	movl	16(%r14), %eax
LBB0_34:
	movq	8(%r13), %rcx
	movslq	(%rbx), %rdx
	movl	%eax, -4(%rcx,%rdx,4)
LBB0_35:
	movq	_RTAX_REORDERING@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movq	%r13, %rdi
	callq	_dst_metric_locked
	testl	%eax, %eax
	jne	LBB0_39
## %bb.36:
	movl	(%rbx), %esi
	movq	%r13, %rdi
	callq	_dst_metric
	movl	20(%r14), %ecx
	cmpl	%ecx, %eax
	jge	LBB0_39
## %bb.37:
	movq	_sysctl_tcp_reordering@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ecx
	jne	LBB0_38
	jmp	LBB0_39
	.cfi_endproc
                                        ## -- End function
	.comm	_sysctl_tcp_nometrics_save,8,3  ## @sysctl_tcp_nometrics_save
	.comm	_DST_HOST,4,2                   ## @DST_HOST
	.comm	_RTAX_RTT,4,2                   ## @RTAX_RTT
	.comm	_RTAX_RTTVAR,4,2                ## @RTAX_RTTVAR
	.comm	_RTAX_SSTHRESH,4,2              ## @RTAX_SSTHRESH
	.comm	_RTAX_CWND,4,2                  ## @RTAX_CWND
	.comm	_TCP_CA_Open,8,3                ## @TCP_CA_Open
	.comm	_RTAX_REORDERING,4,2            ## @RTAX_REORDERING
	.comm	_sysctl_tcp_reordering,4,2      ## @sysctl_tcp_reordering
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_tcp_update_metrics             ; -- Begin function tcp_update_metrics
	.p2align	2
_tcp_update_metrics:                    ; @tcp_update_metrics
	.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	x21, x0
	bl	_tcp_sk
	mov	x20, x0
	mov	x0, x21
	bl	___sk_dst_get
Lloh0:
	adrp	x8, _sysctl_tcp_nometrics_save@GOTPAGE
Lloh1:
	ldr	x8, [x8, _sysctl_tcp_nometrics_save@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cbz	x8, LBB0_2
LBB0_1:
	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_2:
	mov	x19, x0
	bl	_dst_confirm
	cbz	x19, LBB0_1
; %bb.3:
	ldr	w8, [x19]
Lloh3:
	adrp	x9, _DST_HOST@GOTPAGE
Lloh4:
	ldr	x9, [x9, _DST_HOST@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_1
; %bb.4:
	mov	x0, x21
	bl	_inet_csk
	ldr	x8, [x0, #8]
	cbz	x8, LBB0_8
LBB0_5:
Lloh6:
	adrp	x21, _RTAX_RTT@GOTPAGE
Lloh7:
	ldr	x21, [x21, _RTAX_RTT@GOTPAGEOFF]
	ldr	w1, [x21]
	mov	x0, x19
	bl	_dst_metric_locked
	cbnz	w0, LBB0_1
; %bb.6:
	mov	w8, #0
LBB0_7:
	ldr	x9, [x19, #8]
	ldrsw	x10, [x21]
	add	x9, x9, x10, lsl #2
	stur	w8, [x9, #-4]
	b	LBB0_1
LBB0_8:
	ldr	x8, [x20]
	cbz	x8, LBB0_5
; %bb.9:
	mov	x21, x0
Lloh8:
	adrp	x24, _RTAX_RTT@GOTPAGE
Lloh9:
	ldr	x24, [x24, _RTAX_RTT@GOTPAGEOFF]
	ldr	w1, [x24]
	mov	x0, x19
	bl	_dst_metric_rtt
	mov	x22, x0
	ldr	x8, [x20]
	sub	x23, x0, x8
	ldr	w1, [x24]
	mov	x0, x19
	bl	_dst_metric_locked
	cbnz	w0, LBB0_14
; %bb.10:
	ldr	w1, [x24]
	cmp	w23, #0
	b.le	LBB0_12
; %bb.11:
	ubfx	x8, x23, #3, #29
	sub	x2, x22, x8
	b	LBB0_13
LBB0_12:
	ldr	x2, [x20]
LBB0_13:
	mov	x0, x19
	bl	_set_dst_metric_rtt
LBB0_14:
Lloh10:
	adrp	x22, _RTAX_RTTVAR@GOTPAGE
Lloh11:
	ldr	x22, [x22, _RTAX_RTTVAR@GOTPAGEOFF]
	ldr	w1, [x22]
	mov	x0, x19
	bl	_dst_metric_locked
	cbnz	w0, LBB0_16
; %bb.15:
	cmp	w23, #0
	cneg	w8, w23, mi
	lsr	w8, w8, #1
	ldr	w9, [x20, #8]
	cmp	w8, w9
	csel	w23, w8, w9, gt
	ldr	w1, [x22]
	mov	x0, x19
	bl	_dst_metric_rtt
	subs	x8, x0, x23
	sub	x8, x0, x8, lsr #2
	cmp	x0, x23
	csel	x2, x8, x23, hi
	ldr	w1, [x22]
	mov	x0, x19
	bl	_set_dst_metric_rtt
LBB0_16:
	mov	x0, x20
	bl	_tcp_in_initial_slowstart
	cbz	x0, LBB0_24
; %bb.17:
Lloh12:
	adrp	x21, _RTAX_SSTHRESH@GOTPAGE
Lloh13:
	ldr	x21, [x21, _RTAX_SSTHRESH@GOTPAGEOFF]
	ldr	w1, [x21]
	mov	x0, x19
	bl	_dst_metric
	cbz	w0, LBB0_21
; %bb.18:
	ldr	w1, [x21]
	mov	x0, x19
	bl	_dst_metric_locked
	cbnz	w0, LBB0_21
; %bb.19:
	ldr	w22, [x20, #12]
	ldr	w1, [x21]
	mov	x0, x19
	bl	_dst_metric
	cmp	w0, w22, asr #1
	b.ge	LBB0_21
; %bb.20:
	ldr	w8, [x20, #12]
	asr	w8, w8, #1
	ldr	x9, [x19, #8]
	ldrsw	x10, [x21]
	add	x9, x9, x10, lsl #2
	stur	w8, [x9, #-4]
LBB0_21:
Lloh14:
	adrp	x21, _RTAX_CWND@GOTPAGE
Lloh15:
	ldr	x21, [x21, _RTAX_CWND@GOTPAGEOFF]
	ldr	w1, [x21]
	mov	x0, x19
	bl	_dst_metric_locked
	cbnz	w0, LBB0_37
; %bb.22:
	ldr	w22, [x20, #12]
	ldr	w1, [x21]
	mov	x0, x19
	bl	_dst_metric
	cmp	w22, w0
	b.le	LBB0_37
; %bb.23:
	ldr	w8, [x20, #12]
Lloh16:
	adrp	x21, _RTAX_CWND@GOTPAGE
Lloh17:
	ldr	x21, [x21, _RTAX_CWND@GOTPAGEOFF]
	b	LBB0_36
LBB0_24:
	ldp	w8, w9, [x20, #12]
	cmp	w8, w9
	b.le	LBB0_30
; %bb.25:
	ldr	x8, [x21]
Lloh18:
	adrp	x9, _TCP_CA_Open@GOTPAGE
Lloh19:
	ldr	x9, [x9, _TCP_CA_Open@GOTPAGEOFF]
Lloh20:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_30
; %bb.26:
Lloh21:
	adrp	x21, _RTAX_SSTHRESH@GOTPAGE
Lloh22:
	ldr	x21, [x21, _RTAX_SSTHRESH@GOTPAGEOFF]
	ldr	w1, [x21]
	mov	x0, x19
	bl	_dst_metric_locked
	cbnz	w0, LBB0_28
; %bb.27:
	ldp	w8, w1, [x20, #12]
	asr	w0, w8, #1
	bl	_max
	ldr	x8, [x19, #8]
	ldrsw	x9, [x21]
	add	x8, x8, x9, lsl #2
	stur	w0, [x8, #-4]
LBB0_28:
Lloh23:
	adrp	x21, _RTAX_CWND@GOTPAGE
Lloh24:
	ldr	x21, [x21, _RTAX_CWND@GOTPAGEOFF]
	ldr	w1, [x21]
	mov	x0, x19
	bl	_dst_metric_locked
	cbnz	w0, LBB0_37
; %bb.29:
	ldr	w1, [x21]
	mov	x0, x19
	bl	_dst_metric
	ldr	w8, [x20, #12]
	add	w8, w8, w0
	asr	w8, w8, #1
	b	LBB0_36
LBB0_30:
Lloh25:
	adrp	x21, _RTAX_CWND@GOTPAGE
Lloh26:
	ldr	x21, [x21, _RTAX_CWND@GOTPAGEOFF]
	ldr	w1, [x21]
	mov	x0, x19
	bl	_dst_metric_locked
	cbnz	w0, LBB0_32
; %bb.31:
	ldr	w1, [x21]
	mov	x0, x19
	bl	_dst_metric
	ldr	w8, [x20, #16]
	add	w8, w8, w0
	asr	w8, w8, #1
	ldr	x9, [x19, #8]
	ldrsw	x10, [x21]
	add	x9, x9, x10, lsl #2
	stur	w8, [x9, #-4]
LBB0_32:
Lloh27:
	adrp	x21, _RTAX_SSTHRESH@GOTPAGE
Lloh28:
	ldr	x21, [x21, _RTAX_SSTHRESH@GOTPAGEOFF]
	ldr	w1, [x21]
	mov	x0, x19
	bl	_dst_metric
	cbz	w0, LBB0_37
; %bb.33:
	ldr	w1, [x21]
	mov	x0, x19
	bl	_dst_metric_locked
	cbnz	w0, LBB0_37
; %bb.34:
	ldr	w22, [x20, #16]
	ldr	w1, [x21]
	mov	x0, x19
	bl	_dst_metric
	cmp	w22, w0
	b.le	LBB0_37
; %bb.35:
	ldr	w8, [x20, #16]
Lloh29:
	adrp	x21, _RTAX_SSTHRESH@GOTPAGE
Lloh30:
	ldr	x21, [x21, _RTAX_SSTHRESH@GOTPAGEOFF]
LBB0_36:
	ldr	x9, [x19, #8]
	ldrsw	x10, [x21]
	add	x9, x9, x10, lsl #2
	stur	w8, [x9, #-4]
LBB0_37:
Lloh31:
	adrp	x21, _RTAX_REORDERING@GOTPAGE
Lloh32:
	ldr	x21, [x21, _RTAX_REORDERING@GOTPAGEOFF]
	ldr	w1, [x21]
	mov	x0, x19
	bl	_dst_metric_locked
	cbnz	w0, LBB0_1
; %bb.38:
	ldr	w1, [x21]
	mov	x0, x19
	bl	_dst_metric
	ldr	w8, [x20, #20]
	cmp	w0, w8
	b.ge	LBB0_1
; %bb.39:
Lloh33:
	adrp	x9, _sysctl_tcp_reordering@GOTPAGE
Lloh34:
	ldr	x9, [x9, _sysctl_tcp_reordering@GOTPAGEOFF]
Lloh35:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_7
	b	LBB0_1
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh27, Lloh28
	.loh AdrpLdrGot	Lloh29, Lloh30
	.loh AdrpLdrGot	Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.cfi_endproc
                                        ; -- End function
	.comm	_sysctl_tcp_nometrics_save,8,3  ; @sysctl_tcp_nometrics_save
	.comm	_DST_HOST,4,2                   ; @DST_HOST
	.comm	_RTAX_RTT,4,2                   ; @RTAX_RTT
	.comm	_RTAX_RTTVAR,4,2                ; @RTAX_RTTVAR
	.comm	_RTAX_SSTHRESH,4,2              ; @RTAX_SSTHRESH
	.comm	_RTAX_CWND,4,2                  ; @RTAX_CWND
	.comm	_TCP_CA_Open,8,3                ; @TCP_CA_Open
	.comm	_RTAX_REORDERING,4,2            ; @RTAX_REORDERING
	.comm	_sysctl_tcp_reordering,4,2      ; @sysctl_tcp_reordering
.subsections_via_symbols
