	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_tcp_setpersist                 ## -- Begin function tcp_setpersist
	.p2align	4, 0x90
_tcp_setpersist:                        ## @tcp_setpersist
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %r14
	movl	(%rdi), %ebx
	sarl	$2, %ebx
	addl	4(%rdi), %ebx
	movq	_TF_PREVVALID@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	andl	%eax, 16(%rdi)
	sarl	%ebx
	movq	_TT_REXMT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_tcp_timer_active
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rdi
	callq	_panic
LBB0_2:
	movq	_tcp_backoff@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	8(%r14), %rcx
	imull	(%rax,%rcx,4), %ebx
	movq	_tcp_persmin@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_tcp_persmax@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	%ebx, %esi
	callq	_TCPT_RANGESET
	movq	_TT_PERSIST@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_tcp_timer_activate
	movq	8(%r14), %rax
	movq	_TCP_MAXRXTSHIFT@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jae	LBB0_4
## %bb.3:
	incq	%rax
	movq	%rax, 8(%r14)
LBB0_4:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_TF_PREVVALID,4,2               ## @TF_PREVVALID
	.comm	_TT_REXMT,4,2                   ## @TT_REXMT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"tcp_setpersist: retransmit pending"

	.comm	_tcp_backoff,8,3                ## @tcp_backoff
	.comm	_tcp_persmin,4,2                ## @tcp_persmin
	.comm	_tcp_persmax,4,2                ## @tcp_persmax
	.comm	_TT_PERSIST,4,2                 ## @TT_PERSIST
	.comm	_TCP_MAXRXTSHIFT,8,3            ## @TCP_MAXRXTSHIFT
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_tcp_setpersist                 ; -- Begin function tcp_setpersist
	.p2align	2
_tcp_setpersist:                        ; @tcp_setpersist
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	ldp	w8, w9, [x0]
	add	w8, w9, w8, asr #2
	asr	w20, w8, #1
Lloh0:
	adrp	x8, _TF_PREVVALID@GOTPAGE
Lloh1:
	ldr	x8, [x8, _TF_PREVVALID@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	ldr	w9, [x0, #16]
	bic	w8, w9, w8
	str	w8, [x0, #16]
Lloh3:
	adrp	x8, _TT_REXMT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _TT_REXMT@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	bl	_tcp_timer_active
	cbz	x0, LBB0_2
; %bb.1:
Lloh6:
	adrp	x0, l_.str@PAGE
Lloh7:
	add	x0, x0, l_.str@PAGEOFF
	bl	_panic
LBB0_2:
Lloh8:
	adrp	x8, _tcp_backoff@GOTPAGE
Lloh9:
	ldr	x8, [x8, _tcp_backoff@GOTPAGEOFF]
Lloh10:
	ldr	x8, [x8]
	ldr	x9, [x19, #8]
	ldr	w8, [x8, x9, lsl #2]
	mul	w1, w8, w20
Lloh11:
	adrp	x8, _tcp_persmin@GOTPAGE
Lloh12:
	ldr	x8, [x8, _tcp_persmin@GOTPAGEOFF]
Lloh13:
	ldr	w2, [x8]
Lloh14:
	adrp	x8, _tcp_persmax@GOTPAGE
Lloh15:
	ldr	x8, [x8, _tcp_persmax@GOTPAGEOFF]
Lloh16:
	ldr	w3, [x8]
	bl	_TCPT_RANGESET
Lloh17:
	adrp	x8, _TT_PERSIST@GOTPAGE
Lloh18:
	ldr	x8, [x8, _TT_PERSIST@GOTPAGEOFF]
Lloh19:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_tcp_timer_activate
	ldr	x8, [x19, #8]
Lloh20:
	adrp	x9, _TCP_MAXRXTSHIFT@GOTPAGE
Lloh21:
	ldr	x9, [x9, _TCP_MAXRXTSHIFT@GOTPAGEOFF]
Lloh22:
	ldr	x9, [x9]
	cmp	x8, x9
	b.hs	LBB0_4
; %bb.3:
	add	x8, x8, #1
	str	x8, [x19, #8]
LBB0_4:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_TF_PREVVALID,4,2               ; @TF_PREVVALID
	.comm	_TT_REXMT,4,2                   ; @TT_REXMT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"tcp_setpersist: retransmit pending"

	.comm	_tcp_backoff,8,3                ; @tcp_backoff
	.comm	_tcp_persmin,4,2                ; @tcp_persmin
	.comm	_tcp_persmax,4,2                ; @tcp_persmax
	.comm	_TT_PERSIST,4,2                 ; @TT_PERSIST
	.comm	_TCP_MAXRXTSHIFT,8,3            ; @TCP_MAXRXTSHIFT
.subsections_via_symbols
