	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function syncache_insert
_syncache_insert:                       ## @syncache_insert
	.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	%rsi, %rbx
	movq	%rdi, %r14
	movq	%rsi, %rdi
	callq	_SCH_LOCK
	movl	(%rbx), %eax
	movq	_V_tcp_syncache@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jl	LBB0_2
## %bb.1:
	leaq	16(%rbx), %r15
	movq	%r15, %rdi
	callq	_TAILQ_EMPTY
	xorl	%edi, %edi
	testl	%eax, %eax
	sete	%dil
	leaq	L_.str(%rip), %rsi
	callq	_KASSERT
	leaq	16(%r14), %rdi
	callq	_syncache_pause
	movq	_sch_head@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_TAILQ_LAST
	movq	_time_uptime@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 20(%rbx)
	movq	%rax, %rdi
	movq	%rbx, %rsi
	callq	_syncache_drop
LBB0_2:
	leaq	16(%rbx), %rdi
	movq	_sc_hash@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rsi
	callq	_TAILQ_INSERT_HEAD
	movl	(%rbx), %eax
	leal	1(%rax), %ecx
	movl	%ecx, (%rbx)
	testl	%eax, %eax
	jne	LBB0_4
## %bb.3:
	movq	_ticks@GOTPCREL(%rip), %rax
	movq	_INT_MAX@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	addq	(%rax), %rcx
	movq	%rcx, 8(%rbx)
LBB0_4:
	movq	%r14, %rdi
	movq	%rbx, %rsi
	movl	$1, %edx
	callq	_syncache_timeout
	movq	%rbx, %rdi
	callq	_SCH_UNLOCK
	movq	_TCPS_SYN_RECEIVED@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_TCPSTATES_INC
	movq	_tcps_sc_added@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_TCPSTAT_INC                    ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_V_tcp_syncache,4,2             ## @V_tcp_syncache
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"sch->sch_length incorrect"

	.comm	_sch_head,4,2                   ## @sch_head
	.comm	_time_uptime,4,2                ## @time_uptime
	.comm	_sc_hash,4,2                    ## @sc_hash
	.comm	_ticks,8,3                      ## @ticks
	.comm	_INT_MAX,8,3                    ## @INT_MAX
	.comm	_TCPS_SYN_RECEIVED,4,2          ## @TCPS_SYN_RECEIVED
	.comm	_tcps_sc_added,4,2              ## @tcps_sc_added
	.no_dead_strip	_syncache_insert
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function syncache_insert
_syncache_insert:                       ; @syncache_insert
	.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	x19, x1
	mov	x20, x0
	mov	x0, x1
	bl	_SCH_LOCK
	ldr	w8, [x19]
Lloh0:
	adrp	x9, _V_tcp_syncache@GOTPAGE
Lloh1:
	ldr	x9, [x9, _V_tcp_syncache@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	cmp	w8, w9
	b.lt	LBB0_2
; %bb.1:
	add	x21, x19, #16
	mov	x0, x21
	bl	_TAILQ_EMPTY
	cmp	w0, #0
	cset	w0, eq
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	bl	_KASSERT
	add	x0, x20, #16
	bl	_syncache_pause
Lloh5:
	adrp	x8, _sch_head@GOTPAGE
Lloh6:
	ldr	x8, [x8, _sch_head@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_TAILQ_LAST
Lloh8:
	adrp	x8, _time_uptime@GOTPAGE
Lloh9:
	ldr	x8, [x8, _time_uptime@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	str	w8, [x19, #20]
	mov	x1, x19
	bl	_syncache_drop
LBB0_2:
	add	x0, x19, #16
Lloh11:
	adrp	x8, _sc_hash@GOTPAGE
Lloh12:
	ldr	x8, [x8, _sc_hash@GOTPAGEOFF]
Lloh13:
	ldr	w2, [x8]
	mov	x1, x20
	bl	_TAILQ_INSERT_HEAD
	ldr	w8, [x19]
	add	w9, w8, #1
	str	w9, [x19]
	cbnz	w8, LBB0_4
; %bb.3:
Lloh14:
	adrp	x8, _ticks@GOTPAGE
Lloh15:
	ldr	x8, [x8, _ticks@GOTPAGEOFF]
Lloh16:
	ldr	x8, [x8]
Lloh17:
	adrp	x9, _INT_MAX@GOTPAGE
Lloh18:
	ldr	x9, [x9, _INT_MAX@GOTPAGEOFF]
Lloh19:
	ldr	x9, [x9]
	add	x8, x9, x8
	str	x8, [x19, #8]
LBB0_4:
	mov	x0, x20
	mov	x1, x19
	mov	w2, #1
	bl	_syncache_timeout
	mov	x0, x19
	bl	_SCH_UNLOCK
Lloh20:
	adrp	x8, _TCPS_SYN_RECEIVED@GOTPAGE
Lloh21:
	ldr	x8, [x8, _TCPS_SYN_RECEIVED@GOTPAGEOFF]
Lloh22:
	ldr	w0, [x8]
	bl	_TCPSTATES_INC
Lloh23:
	adrp	x8, _tcps_sc_added@GOTPAGE
Lloh24:
	ldr	x8, [x8, _tcps_sc_added@GOTPAGEOFF]
Lloh25:
	ldr	w0, [x8]
	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
	b	_TCPSTAT_INC
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_V_tcp_syncache,4,2             ; @V_tcp_syncache
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"sch->sch_length incorrect"

	.comm	_sch_head,4,2                   ; @sch_head
	.comm	_time_uptime,4,2                ; @time_uptime
	.comm	_sc_hash,4,2                    ; @sc_hash
	.comm	_ticks,8,3                      ; @ticks
	.comm	_INT_MAX,8,3                    ; @INT_MAX
	.comm	_TCPS_SYN_RECEIVED,4,2          ; @TCPS_SYN_RECEIVED
	.comm	_tcps_sc_added,4,2              ; @tcps_sc_added
	.no_dead_strip	_syncache_insert
.subsections_via_symbols
