	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ip_vs_sync_conn_v0             ## -- Begin function ip_vs_sync_conn_v0
	.p2align	4, 0x90
_ip_vs_sync_conn_v0:                    ## @ip_vs_sync_conn_v0
	.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
	movl	%esi, %ebx
	movq	%rdi, %r15
	movq	(%rdi), %rax
	movq	_AF_INET@GOTPCREL(%rip), %rcx
	xorl	%edi, %edi
	cmpq	(%rcx), %rax
	setne	%dil
	callq	_unlikely
	testq	%rax, %rax
	jne	LBB0_17
## %bb.1:
	movq	_IP_VS_CONN_F_ONE_PACKET@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 8(%r15)
	je	LBB0_2
LBB0_17:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	movq	%r15, %rdi
	movl	%ebx, %esi
	callq	_ip_vs_sync_conn_needed
	testl	%eax, %eax
	je	LBB0_17
## %bb.3:
	movq	_curr_sb_lock@GOTPCREL(%rip), %rdi
	callq	_spin_lock
	movq	_curr_sb@GOTPCREL(%rip), %r12
	movq	(%r12), %rax
	testq	%rax, %rax
	jne	LBB0_5
## %bb.4:
	xorl	%eax, %eax
	callq	_ip_vs_sync_buff_create_v0
	movq	%rax, (%r12)
	testq	%rax, %rax
	je	LBB0_18
LBB0_5:
	movl	8(%r15), %edi
	movq	_IP_VS_CONN_F_SEQ_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	andl	%edi, %ecx
	jne	LBB0_6
## %bb.7:
	movq	_SIMPLE_CONN_SIZE@GOTPCREL(%rip), %rcx
	jmp	LBB0_8
LBB0_6:
	movq	_FULL_CONN_SIZE@GOTPCREL(%rip), %rcx
LBB0_8:
	movl	(%rcx), %r13d
	movq	(%rax), %r14
	movq	16(%rax), %rbx
	movq	$0, 48(%r14)
	movl	56(%r15), %eax
	movl	%eax, 40(%r14)
	movl	52(%r15), %eax
	movl	%eax, 36(%r14)
	movl	48(%r15), %eax
	movl	%eax, 32(%r14)
	movups	32(%r15), %xmm0
	movups	%xmm0, 16(%r14)
	movq	_IP_VS_CONN_F_HASHED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	andl	%eax, %edi
	callq	_htons
	movq	%rax, 8(%r14)
	movl	12(%r15), %edi
	callq	_htons
	movq	%rax, (%r14)
	movq	_IP_VS_CONN_F_SEQ_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 8(%r15)
	je	LBB0_10
## %bb.9:
	addq	$56, %r14
	leaq	28(%r15), %rsi
	movq	%r14, %rdi
	movl	$4, %edx
	callq	_memcpy
LBB0_10:
	incl	4(%rbx)
	addl	%r13d, (%rbx)
	movslq	%r13d, %rax
	movq	(%r12), %rdi
	addq	(%rdi), %rax
	movq	%rax, (%rdi)
	movq	_FULL_CONN_SIZE@GOTPCREL(%rip), %rcx
	movslq	(%rcx), %rcx
	addq	%rax, %rcx
	cmpq	8(%rdi), %rcx
	jle	LBB0_12
## %bb.11:
	callq	_sb_queue_tail
	movq	$0, (%r12)
LBB0_12:
	movq	_curr_sb_lock@GOTPCREL(%rip), %rdi
	callq	_spin_unlock
	movq	16(%r15), %rbx
	testq	%rbx, %rbx
	je	LBB0_17
## %bb.13:
	movq	_IP_VS_CONN_F_TEMPLATE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 8(%rbx)
	je	LBB0_15
## %bb.14:
	leaq	24(%rbx), %rsi
	movl	$1, %edi
	callq	_atomic_add_return
	jmp	LBB0_16
LBB0_15:
	xorl	%eax, %eax
	callq	_sysctl_sync_threshold
LBB0_16:
	movq	16(%rbx), %rdi
	movl	%eax, %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ip_vs_sync_conn                ## TAILCALL
LBB0_18:
	movq	_curr_sb_lock@GOTPCREL(%rip), %rdi
	callq	_spin_unlock
	leaq	L_.str(%rip), %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_pr_err                         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_AF_INET,8,3                    ## @AF_INET
	.comm	_IP_VS_CONN_F_ONE_PACKET,4,2    ## @IP_VS_CONN_F_ONE_PACKET
	.comm	_curr_sb_lock,4,2               ## @curr_sb_lock
	.comm	_curr_sb,8,3                    ## @curr_sb
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"ip_vs_sync_buff_create failed.\n"

	.comm	_IP_VS_CONN_F_SEQ_MASK,4,2      ## @IP_VS_CONN_F_SEQ_MASK
	.comm	_FULL_CONN_SIZE,4,2             ## @FULL_CONN_SIZE
	.comm	_SIMPLE_CONN_SIZE,4,2           ## @SIMPLE_CONN_SIZE
	.comm	_IP_VS_CONN_F_HASHED,4,2        ## @IP_VS_CONN_F_HASHED
	.comm	_IP_VS_CONN_F_TEMPLATE,4,2      ## @IP_VS_CONN_F_TEMPLATE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ip_vs_sync_conn_v0             ; -- Begin function ip_vs_sync_conn_v0
	.p2align	2
_ip_vs_sync_conn_v0:                    ; @ip_vs_sync_conn_v0
	.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, x1
	mov	x19, x0
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _AF_INET@GOTPAGE
Lloh1:
	ldr	x9, [x9, _AF_INET@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	cset	w0, ne
	bl	_unlikely
	cbnz	x0, LBB0_2
; %bb.1:
	ldr	w8, [x19, #8]
Lloh3:
	adrp	x9, _IP_VS_CONN_F_ONE_PACKET@GOTPAGE
Lloh4:
	ldr	x9, [x9, _IP_VS_CONN_F_ONE_PACKET@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_3
LBB0_2:
	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
LBB0_3:
	mov	x0, x19
	mov	x1, x20
	bl	_ip_vs_sync_conn_needed
	cbz	w0, LBB0_2
; %bb.4:
Lloh6:
	adrp	x0, _curr_sb_lock@GOTPAGE
Lloh7:
	ldr	x0, [x0, _curr_sb_lock@GOTPAGEOFF]
	bl	_spin_lock
Lloh8:
	adrp	x20, _curr_sb@GOTPAGE
Lloh9:
	ldr	x20, [x20, _curr_sb@GOTPAGEOFF]
	ldr	x0, [x20]
	cbnz	x0, LBB0_6
; %bb.5:
	bl	_ip_vs_sync_buff_create_v0
	str	x0, [x20]
	cbz	x0, LBB0_15
LBB0_6:
	ldr	w8, [x19, #8]
Lloh10:
	adrp	x25, _IP_VS_CONN_F_SEQ_MASK@GOTPAGE
Lloh11:
	ldr	x25, [x25, _IP_VS_CONN_F_SEQ_MASK@GOTPAGEOFF]
	ldr	w9, [x25]
Lloh12:
	adrp	x21, _FULL_CONN_SIZE@GOTPAGE
Lloh13:
	ldr	x21, [x21, _FULL_CONN_SIZE@GOTPAGEOFF]
Lloh14:
	adrp	x10, _SIMPLE_CONN_SIZE@GOTPAGE
Lloh15:
	ldr	x10, [x10, _SIMPLE_CONN_SIZE@GOTPAGEOFF]
	tst	w9, w8
	csel	x9, x10, x21, eq
	ldr	w22, [x9]
	ldr	x23, [x0, #16]
	ldr	x24, [x0]
	str	xzr, [x24, #48]
	ldr	w9, [x19, #56]
	str	w9, [x24, #40]
	ldr	d0, [x19, #48]
	str	d0, [x24, #32]
	ldr	q0, [x19, #32]
	str	q0, [x24, #16]
Lloh16:
	adrp	x9, _IP_VS_CONN_F_HASHED@GOTPAGE
Lloh17:
	ldr	x9, [x9, _IP_VS_CONN_F_HASHED@GOTPAGEOFF]
Lloh18:
	ldr	w9, [x9]
	bic	w0, w8, w9
	bl	_htons
	str	x0, [x24, #8]
	ldr	w0, [x19, #12]
	bl	_htons
	str	x0, [x24]
	ldr	w8, [x19, #8]
	ldr	w9, [x25]
	tst	w9, w8
	b.eq	LBB0_8
; %bb.7:
	add	x0, x24, #56
	add	x1, x19, #28
	mov	w2, #4
	bl	_memcpy
LBB0_8:
	ldr	d0, [x23]
	movi.2s	v1, #1
	mov.s	v1[0], w22
	add.2s	v0, v0, v1
	str	d0, [x23]
	ldr	x0, [x20]
	ldp	x8, x9, [x0]
	add	x8, x8, w22, sxtw
	str	x8, [x0]
	ldrsw	x10, [x21]
	add	x8, x8, x10
	cmp	x8, x9
	b.le	LBB0_10
; %bb.9:
	bl	_sb_queue_tail
	str	xzr, [x20]
LBB0_10:
Lloh19:
	adrp	x0, _curr_sb_lock@GOTPAGE
Lloh20:
	ldr	x0, [x0, _curr_sb_lock@GOTPAGEOFF]
	bl	_spin_unlock
	ldr	x19, [x19, #16]
	cbz	x19, LBB0_2
; %bb.11:
	ldr	w8, [x19, #8]
Lloh21:
	adrp	x9, _IP_VS_CONN_F_TEMPLATE@GOTPAGE
Lloh22:
	ldr	x9, [x9, _IP_VS_CONN_F_TEMPLATE@GOTPAGEOFF]
Lloh23:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_13
; %bb.12:
	add	x1, x19, #24
	mov	w0, #1
	bl	_atomic_add_return
	b	LBB0_14
LBB0_13:
	bl	_sysctl_sync_threshold
LBB0_14:
	mov	x1, x0
	ldr	x0, [x19, #16]
	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
	b	_ip_vs_sync_conn
LBB0_15:
Lloh24:
	adrp	x0, _curr_sb_lock@GOTPAGE
Lloh25:
	ldr	x0, [x0, _curr_sb_lock@GOTPAGEOFF]
	bl	_spin_unlock
Lloh26:
	adrp	x0, l_.str@PAGE
Lloh27:
	add	x0, x0, l_.str@PAGEOFF
	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
	b	_pr_err
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh24, Lloh25
	.cfi_endproc
                                        ; -- End function
	.comm	_AF_INET,8,3                    ; @AF_INET
	.comm	_IP_VS_CONN_F_ONE_PACKET,4,2    ; @IP_VS_CONN_F_ONE_PACKET
	.comm	_curr_sb_lock,4,2               ; @curr_sb_lock
	.comm	_curr_sb,8,3                    ; @curr_sb
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ip_vs_sync_buff_create failed.\n"

	.comm	_IP_VS_CONN_F_SEQ_MASK,4,2      ; @IP_VS_CONN_F_SEQ_MASK
	.comm	_FULL_CONN_SIZE,4,2             ; @FULL_CONN_SIZE
	.comm	_SIMPLE_CONN_SIZE,4,2           ; @SIMPLE_CONN_SIZE
	.comm	_IP_VS_CONN_F_HASHED,4,2        ; @IP_VS_CONN_F_HASHED
	.comm	_IP_VS_CONN_F_TEMPLATE,4,2      ; @IP_VS_CONN_F_TEMPLATE
.subsections_via_symbols
