	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_syncache_init                  ## -- Begin function syncache_init
	.p2align	4, 0x90
_syncache_init:                         ## @syncache_init
	.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	_TCP_SYNCACHE_HASHSIZE@GOTPCREL(%rip), %rbx
	movl	(%rbx), %eax
	movq	_V_tcp_syncache@GOTPCREL(%rip), %r15
	movl	%eax, (%r15)
	movq	_TCP_SYNCACHE_BUCKETLIMIT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 4(%r15)
	leaq	4(%r15), %r14
	movq	_SYNCACHE_MAXREXMTS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 88(%r15)
	xorl	%eax, %eax
	callq	_arc4random
	movl	%eax, 84(%r15)
	leaq	L_.str(%rip), %rdi
	movq	%r15, %rsi
	callq	_TUNABLE_INT_FETCH
	leaq	L_.str.1(%rip), %rdi
	movq	%r14, %rsi
	callq	_TUNABLE_INT_FETCH
	movl	(%r15), %edi
	callq	_powerof2
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	movl	(%r15), %eax
	testl	%eax, %eax
	jne	LBB0_3
LBB0_2:
	leaq	L_str(%rip), %rdi
	callq	_puts
	movl	(%rbx), %eax
	movl	%eax, (%r15)
LBB0_3:
	leal	-1(%rax), %ecx
	movl	%ecx, 8(%r15)
	imull	4(%r15), %eax
	movl	%eax, 12(%r15)
	leaq	12(%r15), %rsi
	leaq	L_.str.3(%rip), %rdi
	callq	_TUNABLE_INT_FETCH
	movl	(%r15), %edi
	shll	$2, %edi
	movq	_M_SYNCACHE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_M_WAITOK@GOTPCREL(%rip), %rax
	movq	_M_ZERO@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	orl	(%rax), %edx
	callq	_malloc
	movq	%rax, 72(%r15)
	cmpl	$0, (%r15)
	jle	LBB0_6
## %bb.4:
	movq	%rax, %rdi
	movl	$32, %ebx
	xorl	%r12d, %r12d
	leaq	L_.str.4(%rip), %r14
	movq	_SYNCOOKIE_LIFETIME@GOTPCREL(%rip), %r13
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	addq	%rbx, %rdi
	callq	_TAILQ_INIT
	movq	72(%r15), %rax
	leaq	(%rax,%rbx), %rdi
	addq	$-8, %rdi
	movq	_MTX_DEF@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r14, %rsi
	xorl	%edx, %edx
	callq	_mtx_init
	movq	72(%r15), %rax
	leaq	(%rax,%rbx), %rdi
	addq	$-4, %rdi
	leaq	(%rax,%rbx), %rsi
	addq	$-8, %rsi
	xorl	%edx, %edx
	callq	_callout_init_mtx
	movq	72(%r15), %rdi
	movq	$0, -16(%rdi,%rbx)
	movq	%r15, -24(%rdi,%rbx)
	movl	(%r13), %eax
	notl	%eax
	movl	%eax, -32(%rdi,%rbx)
	incq	%r12
	movslq	(%r15), %rax
	addq	$40, %rbx
	cmpq	%rax, %r12
	jl	LBB0_5
LBB0_6:
	movq	_UMA_ALIGN_PTR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	leaq	L_.str.5(%rip), %rdi
	movl	$4, %esi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	pushq	$0
	pushq	%rax
	callq	_uma_zcreate
	addq	$16, %rsp
	movl	%eax, 64(%r15)
	movl	12(%r15), %esi
	movl	%eax, %edi
	callq	_uma_zone_set_max
	movl	%eax, 12(%r15)
	leaq	48(%r15), %r14
	movq	%r14, %rdi
	movl	$1, %esi
	callq	_callout_init
	movq	56(%r15), %rax
	movl	(%rax), %edi
	movq	_SYNCOOKIE_SECRET_SIZE@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	xorl	%edx, %edx
	callq	_arc4rand
	movq	56(%r15), %rax
	movl	4(%rax), %edi
	movl	(%rbx), %esi
	xorl	%edx, %edx
	callq	_arc4rand
	movq	_SYNCOOKIE_LIFETIME@GOTPCREL(%rip), %rax
	movq	_hz@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	imull	(%rax), %esi
	movq	_syncookie_reseed@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	movq	%r15, %rcx
	callq	_callout_reset
	movq	_MTX_DEF@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	40(%r15), %r14
	leaq	L_.str.6(%rip), %rsi
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	_mtx_init
	leaq	44(%r15), %rdi
	movq	%r14, %rsi
	xorl	%edx, %edx
	callq	_callout_init_mtx
	movq	_time_uptime@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_TCP_SYNCACHE_PAUSE_TIME@GOTPCREL(%rip), %rcx
	subq	(%rcx), %rax
	movq	%rax, 32(%r15)
	movq	$0, 24(%r15)
	movl	$0, 16(%r15)
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_TCP_SYNCACHE_HASHSIZE,8,3      ## @TCP_SYNCACHE_HASHSIZE
	.comm	_V_tcp_syncache,96,3            ## @V_tcp_syncache
	.comm	_TCP_SYNCACHE_BUCKETLIMIT,4,2   ## @TCP_SYNCACHE_BUCKETLIMIT
	.comm	_SYNCACHE_MAXREXMTS,4,2         ## @SYNCACHE_MAXREXMTS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"net.inet.tcp.syncache.hashsize"

L_.str.1:                               ## @.str.1
	.asciz	"net.inet.tcp.syncache.bucketlimit"

L_.str.3:                               ## @.str.3
	.asciz	"net.inet.tcp.syncache.cachelimit"

	.comm	_M_SYNCACHE,4,2                 ## @M_SYNCACHE
	.comm	_M_WAITOK,4,2                   ## @M_WAITOK
	.comm	_M_ZERO,4,2                     ## @M_ZERO
L_.str.4:                               ## @.str.4
	.asciz	"tcp_sc_head"

	.comm	_MTX_DEF,4,2                    ## @MTX_DEF
	.comm	_SYNCOOKIE_LIFETIME,4,2         ## @SYNCOOKIE_LIFETIME
L_.str.5:                               ## @.str.5
	.asciz	"syncache"

	.comm	_UMA_ALIGN_PTR,4,2              ## @UMA_ALIGN_PTR
	.comm	_SYNCOOKIE_SECRET_SIZE,4,2      ## @SYNCOOKIE_SECRET_SIZE
	.comm	_hz,4,2                         ## @hz
	.comm	_syncookie_reseed,4,2           ## @syncookie_reseed
L_.str.6:                               ## @.str.6
	.asciz	"tcp_sc_pause"

	.comm	_time_uptime,8,3                ## @time_uptime
	.comm	_TCP_SYNCACHE_PAUSE_TIME,8,3    ## @TCP_SYNCACHE_PAUSE_TIME
	.comm	_curvnet,4,2                    ## @curvnet
L_str:                                  ## @str
	.asciz	"WARNING: syncache hash size is not a power of 2."

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_syncache_init                  ; -- Begin function syncache_init
	.p2align	2
_syncache_init:                         ; @syncache_init
	.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
Lloh0:
	adrp	x21, _TCP_SYNCACHE_HASHSIZE@GOTPAGE
Lloh1:
	ldr	x21, [x21, _TCP_SYNCACHE_HASHSIZE@GOTPAGEOFF]
Lloh2:
	adrp	x19, _V_tcp_syncache@GOTPAGE
Lloh3:
	ldr	x19, [x19, _V_tcp_syncache@GOTPAGEOFF]
	ldr	x8, [x21]
	str	w8, [x19]
Lloh4:
	adrp	x8, _TCP_SYNCACHE_BUCKETLIMIT@GOTPAGE
Lloh5:
	ldr	x8, [x8, _TCP_SYNCACHE_BUCKETLIMIT@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	mov	x20, x19
	str	w8, [x20, #4]!
Lloh7:
	adrp	x8, _SYNCACHE_MAXREXMTS@GOTPAGE
Lloh8:
	ldr	x8, [x8, _SYNCACHE_MAXREXMTS@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	str	w8, [x19, #88]
	bl	_arc4random
	str	w0, [x19, #84]
Lloh10:
	adrp	x0, l_.str@PAGE
Lloh11:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x19
	bl	_TUNABLE_INT_FETCH
Lloh12:
	adrp	x0, l_.str.1@PAGE
Lloh13:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x20
	bl	_TUNABLE_INT_FETCH
	ldr	w0, [x19]
	bl	_powerof2
	ldr	w8, [x19]
	cmp	w0, #0
	ccmp	w8, #0, #4, ne
	b.ne	LBB0_2
; %bb.1:
Lloh14:
	adrp	x0, l_str@PAGE
Lloh15:
	add	x0, x0, l_str@PAGEOFF
	bl	_puts
	ldr	w8, [x21]
	str	w8, [x19]
LBB0_2:
	sub	w9, w8, #1
	str	w9, [x19, #8]
	ldr	w9, [x19, #4]
	mul	w8, w9, w8
	mov	x1, x19
	str	w8, [x1, #12]!
Lloh16:
	adrp	x0, l_.str.3@PAGE
Lloh17:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_TUNABLE_INT_FETCH
	ldr	w8, [x19]
	lsl	w0, w8, #2
Lloh18:
	adrp	x8, _M_SYNCACHE@GOTPAGE
Lloh19:
	ldr	x8, [x8, _M_SYNCACHE@GOTPAGEOFF]
Lloh20:
	adrp	x9, _M_WAITOK@GOTPAGE
Lloh21:
	ldr	x9, [x9, _M_WAITOK@GOTPAGEOFF]
Lloh22:
	ldr	w1, [x8]
Lloh23:
	ldr	w8, [x9]
Lloh24:
	adrp	x9, _M_ZERO@GOTPAGE
Lloh25:
	ldr	x9, [x9, _M_ZERO@GOTPAGEOFF]
Lloh26:
	ldr	w9, [x9]
	orr	w2, w9, w8
	bl	_malloc
	str	x0, [x19, #72]
	ldr	w8, [x19]
Lloh27:
	adrp	x21, _MTX_DEF@GOTPAGE
Lloh28:
	ldr	x21, [x21, _MTX_DEF@GOTPAGEOFF]
Lloh29:
	adrp	x22, _SYNCOOKIE_LIFETIME@GOTPAGE
Lloh30:
	ldr	x22, [x22, _SYNCOOKIE_LIFETIME@GOTPAGEOFF]
	cmp	w8, #1
	b.lt	LBB0_5
; %bb.3:
	mov	x23, #0
	mov	x24, #0
Lloh31:
	adrp	x20, l_.str.4@PAGE
Lloh32:
	add	x20, x20, l_.str.4@PAGEOFF
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	add	x8, x0, x23
	add	x0, x8, #32
	bl	_TAILQ_INIT
	ldr	x8, [x19, #72]
	add	x8, x8, x23
	add	x0, x8, #24
	ldr	w3, [x21]
	mov	x1, x20
	mov	x2, #0
	bl	_mtx_init
	ldr	x8, [x19, #72]
	add	x8, x8, x23
	add	x0, x8, #28
	add	x1, x8, #24
	mov	w2, #0
	bl	_callout_init_mtx
	ldr	x0, [x19, #72]
	add	x8, x0, x23
	stp	x19, xzr, [x8, #8]
	ldr	w9, [x22]
	mvn	w9, w9
	str	w9, [x8]
	add	x24, x24, #1
	ldrsw	x8, [x19]
	add	x23, x23, #40
	cmp	x24, x8
	b.lt	LBB0_4
LBB0_5:
Lloh33:
	adrp	x8, _UMA_ALIGN_PTR@GOTPAGE
Lloh34:
	ldr	x8, [x8, _UMA_ALIGN_PTR@GOTPAGEOFF]
Lloh35:
	ldr	w6, [x8]
Lloh36:
	adrp	x0, l_.str.5@PAGE
Lloh37:
	add	x0, x0, l_.str.5@PAGEOFF
	mov	w1, #4
	mov	x2, #0
	mov	x3, #0
	mov	x4, #0
	mov	x5, #0
	mov	w7, #0
	bl	_uma_zcreate
	str	w0, [x19, #64]
	ldr	w1, [x19, #12]
	bl	_uma_zone_set_max
	str	w0, [x19, #12]
	add	x20, x19, #48
	mov	x0, x20
	mov	w1, #1
	bl	_callout_init
	ldr	x8, [x19, #56]
	ldr	w0, [x8]
Lloh38:
	adrp	x23, _SYNCOOKIE_SECRET_SIZE@GOTPAGE
Lloh39:
	ldr	x23, [x23, _SYNCOOKIE_SECRET_SIZE@GOTPAGEOFF]
	ldr	w1, [x23]
	mov	w2, #0
	bl	_arc4rand
	ldr	x8, [x19, #56]
	ldr	w0, [x8, #4]
	ldr	w1, [x23]
	mov	w2, #0
	bl	_arc4rand
Lloh40:
	adrp	x8, _hz@GOTPAGE
Lloh41:
	ldr	x8, [x8, _hz@GOTPAGEOFF]
	ldr	w9, [x22]
Lloh42:
	ldr	w8, [x8]
	mul	w1, w8, w9
Lloh43:
	adrp	x8, _syncookie_reseed@GOTPAGE
Lloh44:
	ldr	x8, [x8, _syncookie_reseed@GOTPAGEOFF]
Lloh45:
	ldr	w2, [x8]
	mov	x0, x20
	mov	x3, x19
	bl	_callout_reset
	ldr	w3, [x21]
	add	x20, x19, #40
Lloh46:
	adrp	x1, l_.str.6@PAGE
Lloh47:
	add	x1, x1, l_.str.6@PAGEOFF
	mov	x0, x20
	mov	x2, #0
	bl	_mtx_init
	add	x0, x19, #44
	mov	x1, x20
	mov	w2, #0
	bl	_callout_init_mtx
Lloh48:
	adrp	x8, _time_uptime@GOTPAGE
Lloh49:
	ldr	x8, [x8, _time_uptime@GOTPAGEOFF]
Lloh50:
	adrp	x9, _TCP_SYNCACHE_PAUSE_TIME@GOTPAGE
Lloh51:
	ldr	x9, [x9, _TCP_SYNCACHE_PAUSE_TIME@GOTPAGEOFF]
Lloh52:
	ldr	x8, [x8]
Lloh53:
	ldr	x9, [x9]
	sub	x8, x8, x9
	stp	xzr, x8, [x19, #24]
	str	wzr, [x19, #16]
	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
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh29, Lloh30
	.loh AdrpLdrGot	Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh22
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh50, Lloh51, Lloh53
	.loh AdrpLdrGotLdr	Lloh48, Lloh49, Lloh52
	.loh AdrpAdd	Lloh46, Lloh47
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpLdrGot	Lloh38, Lloh39
	.loh AdrpAdd	Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.cfi_endproc
                                        ; -- End function
	.comm	_TCP_SYNCACHE_HASHSIZE,8,3      ; @TCP_SYNCACHE_HASHSIZE
	.comm	_V_tcp_syncache,96,3            ; @V_tcp_syncache
	.comm	_TCP_SYNCACHE_BUCKETLIMIT,4,2   ; @TCP_SYNCACHE_BUCKETLIMIT
	.comm	_SYNCACHE_MAXREXMTS,4,2         ; @SYNCACHE_MAXREXMTS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"net.inet.tcp.syncache.hashsize"

l_.str.1:                               ; @.str.1
	.asciz	"net.inet.tcp.syncache.bucketlimit"

l_.str.3:                               ; @.str.3
	.asciz	"net.inet.tcp.syncache.cachelimit"

	.comm	_M_SYNCACHE,4,2                 ; @M_SYNCACHE
	.comm	_M_WAITOK,4,2                   ; @M_WAITOK
	.comm	_M_ZERO,4,2                     ; @M_ZERO
l_.str.4:                               ; @.str.4
	.asciz	"tcp_sc_head"

	.comm	_MTX_DEF,4,2                    ; @MTX_DEF
	.comm	_SYNCOOKIE_LIFETIME,4,2         ; @SYNCOOKIE_LIFETIME
l_.str.5:                               ; @.str.5
	.asciz	"syncache"

	.comm	_UMA_ALIGN_PTR,4,2              ; @UMA_ALIGN_PTR
	.comm	_SYNCOOKIE_SECRET_SIZE,4,2      ; @SYNCOOKIE_SECRET_SIZE
	.comm	_hz,4,2                         ; @hz
	.comm	_syncookie_reseed,4,2           ; @syncookie_reseed
l_.str.6:                               ; @.str.6
	.asciz	"tcp_sc_pause"

	.comm	_time_uptime,8,3                ; @time_uptime
	.comm	_TCP_SYNCACHE_PAUSE_TIME,8,3    ; @TCP_SYNCACHE_PAUSE_TIME
	.comm	_curvnet,4,2                    ; @curvnet
l_str:                                  ; @str
	.asciz	"WARNING: syncache hash size is not a power of 2."

.subsections_via_symbols
