	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_tcp_hc_init                    ## -- Begin function tcp_hc_init
	.p2align	4, 0x90
_tcp_hc_init:                           ## @tcp_hc_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	_V_tcp_hostcache@GOTPCREL(%rip), %r15
	movq	$0, 40(%r15)
	movq	_TCP_HOSTCACHE_HASHSIZE@GOTPCREL(%rip), %rbx
	movl	(%rbx), %eax
	movl	%eax, (%r15)
	movq	_TCP_HOSTCACHE_BUCKETLIMIT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 4(%r15)
	movq	_TCP_HOSTCACHE_EXPIRE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 32(%r15)
	movq	_TCP_HOSTCACHE_PRUNE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%r15)
	leaq	L_.str(%rip), %rdi
	movq	%r15, %rsi
	callq	_TUNABLE_INT_FETCH
	movl	(%r15), %edi
	callq	_powerof2
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	movl	(%r15), %eax
	jmp	LBB0_3
LBB0_2:
	leaq	L_str(%rip), %rdi
	callq	_puts
	movl	(%rbx), %eax
	movl	%eax, (%r15)
LBB0_3:
	decl	%eax
	movl	%eax, 12(%r15)
	leaq	4(%r15), %rsi
	leaq	L_.str.2(%rip), %rdi
	callq	_TUNABLE_INT_FETCH
	movslq	(%r15), %rax
	movslq	4(%r15), %rbx
	imulq	%rax, %rbx
	movl	%ebx, 16(%r15)
	leaq	16(%r15), %rsi
	leaq	L_.str.3(%rip), %rdi
	callq	_TUNABLE_INT_FETCH
	movslq	16(%r15), %rax
	cmpq	%rbx, %rax
	jbe	LBB0_5
## %bb.4:
	movl	%ebx, 16(%r15)
LBB0_5:
	movl	(%r15), %eax
	shll	$3, %eax
	leal	(%rax,%rax,2), %edi
	movq	_M_HOSTCACHE@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, 24(%r15)
	cmpl	$0, (%r15)
	jle	LBB0_9
## %bb.6:
	movq	%rax, %rdi
	movl	$16, %ebx
	movl	$1, %r12d
	movq	_MTX_DEF@GOTPCREL(%rip), %r13
	leaq	L_.str.4(%rip), %r14
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	addq	%rbx, %rdi
	callq	_TAILQ_INIT
	movq	24(%r15), %rax
	movq	$0, -8(%rax,%rbx)
	leaq	(%rax,%rbx), %rdi
	addq	$-16, %rdi
	movl	(%r13), %ecx
	movq	%r14, %rsi
	xorl	%edx, %edx
	callq	_mtx_init
	movslq	(%r15), %rax
	cmpq	%rax, %r12
	jge	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=1
	movq	24(%r15), %rdi
	addq	$24, %rbx
	incq	%r12
	jmp	LBB0_7
LBB0_9:
	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, 20(%r15)
	movslq	16(%r15), %rsi
	movl	%eax, %edi
	callq	_uma_zone_set_max
	movq	_V_tcp_hc_callout@GOTPCREL(%rip), %r14
	movq	%r14, %rdi
	movl	$1, %esi
	callq	_callout_init
	movq	_hz@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	imull	8(%r15), %esi
	movq	_tcp_hc_purge@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_curvnet@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_callout_reset                  ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_V_tcp_hostcache,48,3           ## @V_tcp_hostcache
	.comm	_TCP_HOSTCACHE_HASHSIZE,8,3     ## @TCP_HOSTCACHE_HASHSIZE
	.comm	_TCP_HOSTCACHE_BUCKETLIMIT,4,2  ## @TCP_HOSTCACHE_BUCKETLIMIT
	.comm	_TCP_HOSTCACHE_EXPIRE,4,2       ## @TCP_HOSTCACHE_EXPIRE
	.comm	_TCP_HOSTCACHE_PRUNE,4,2        ## @TCP_HOSTCACHE_PRUNE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"net.inet.tcp.hostcache.hashsize"

L_.str.2:                               ## @.str.2
	.asciz	"net.inet.tcp.hostcache.bucketlimit"

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

	.comm	_M_HOSTCACHE,4,2                ## @M_HOSTCACHE
	.comm	_M_WAITOK,4,2                   ## @M_WAITOK
	.comm	_M_ZERO,4,2                     ## @M_ZERO
L_.str.4:                               ## @.str.4
	.asciz	"tcp_hc_entry"

	.comm	_MTX_DEF,4,2                    ## @MTX_DEF
L_.str.5:                               ## @.str.5
	.asciz	"hostcache"

	.comm	_UMA_ALIGN_PTR,4,2              ## @UMA_ALIGN_PTR
	.comm	_V_tcp_hc_callout,4,2           ## @V_tcp_hc_callout
	.comm	_hz,4,2                         ## @hz
	.comm	_tcp_hc_purge,4,2               ## @tcp_hc_purge
	.comm	_curvnet,4,2                    ## @curvnet
L_str:                                  ## @str
	.asciz	"WARNING: hostcache 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	_tcp_hc_init                    ; -- Begin function tcp_hc_init
	.p2align	2
_tcp_hc_init:                           ; @tcp_hc_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	x19, _V_tcp_hostcache@GOTPAGE
Lloh1:
	ldr	x19, [x19, _V_tcp_hostcache@GOTPAGEOFF]
	str	xzr, [x19, #40]
Lloh2:
	adrp	x20, _TCP_HOSTCACHE_HASHSIZE@GOTPAGE
Lloh3:
	ldr	x20, [x20, _TCP_HOSTCACHE_HASHSIZE@GOTPAGEOFF]
Lloh4:
	adrp	x8, _TCP_HOSTCACHE_BUCKETLIMIT@GOTPAGE
Lloh5:
	ldr	x8, [x8, _TCP_HOSTCACHE_BUCKETLIMIT@GOTPAGEOFF]
	ldr	x9, [x20]
Lloh6:
	ldr	w8, [x8]
	stp	w9, w8, [x19]
Lloh7:
	adrp	x8, _TCP_HOSTCACHE_EXPIRE@GOTPAGE
Lloh8:
	ldr	x8, [x8, _TCP_HOSTCACHE_EXPIRE@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	str	w8, [x19, #32]
Lloh10:
	adrp	x8, _TCP_HOSTCACHE_PRUNE@GOTPAGE
Lloh11:
	ldr	x8, [x8, _TCP_HOSTCACHE_PRUNE@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	str	w8, [x19, #8]
Lloh13:
	adrp	x0, l_.str@PAGE
Lloh14:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x19
	bl	_TUNABLE_INT_FETCH
	ldr	w0, [x19]
	bl	_powerof2
	cbz	w0, LBB0_2
; %bb.1:
	ldr	w8, [x19]
	b	LBB0_3
LBB0_2:
Lloh15:
	adrp	x0, l_str@PAGE
Lloh16:
	add	x0, x0, l_str@PAGEOFF
	bl	_puts
	ldr	w8, [x20]
	str	w8, [x19]
LBB0_3:
	sub	w8, w8, #1
	str	w8, [x19, #12]
	add	x1, x19, #4
Lloh17:
	adrp	x0, l_.str.2@PAGE
Lloh18:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_TUNABLE_INT_FETCH
	ldpsw	x8, x9, [x19]
	mul	x21, x9, x8
	mov	x20, x19
	str	w21, [x20, #16]!
Lloh19:
	adrp	x0, l_.str.3@PAGE
Lloh20:
	add	x0, x0, l_.str.3@PAGEOFF
	mov	x1, x20
	bl	_TUNABLE_INT_FETCH
	ldrsw	x8, [x20]
	cmp	x8, x21
	b.ls	LBB0_5
; %bb.4:
	str	w21, [x19, #16]
LBB0_5:
	ldr	w8, [x19]
	add	w8, w8, w8, lsl #1
	lsl	w0, w8, #3
Lloh21:
	adrp	x8, _M_HOSTCACHE@GOTPAGE
Lloh22:
	ldr	x8, [x8, _M_HOSTCACHE@GOTPAGEOFF]
Lloh23:
	adrp	x9, _M_WAITOK@GOTPAGE
Lloh24:
	ldr	x9, [x9, _M_WAITOK@GOTPAGEOFF]
Lloh25:
	ldr	w1, [x8]
Lloh26:
	ldr	w8, [x9]
Lloh27:
	adrp	x9, _M_ZERO@GOTPAGE
Lloh28:
	ldr	x9, [x9, _M_ZERO@GOTPAGEOFF]
Lloh29:
	ldr	w9, [x9]
	orr	w2, w9, w8
	bl	_malloc
	str	x0, [x19, #24]
	ldr	w8, [x19]
	cmp	w8, #1
	b.lt	LBB0_9
; %bb.6:
	mov	x21, #0
	mov	w22, #1
Lloh30:
	adrp	x23, _MTX_DEF@GOTPAGE
Lloh31:
	ldr	x23, [x23, _MTX_DEF@GOTPAGEOFF]
Lloh32:
	adrp	x20, l_.str.4@PAGE
Lloh33:
	add	x20, x20, l_.str.4@PAGEOFF
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	add	x8, x0, x21
	add	x0, x8, #16
	bl	_TAILQ_INIT
	ldr	x8, [x19, #24]
	add	x0, x8, x21
	str	xzr, [x0, #8]
	ldr	w3, [x23]
	mov	x1, x20
	mov	x2, #0
	bl	_mtx_init
	ldrsw	x8, [x19]
	cmp	x22, x8
	b.ge	LBB0_9
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	x0, [x19, #24]
	add	x21, x21, #24
	add	x22, x22, #1
	b	LBB0_7
LBB0_9:
Lloh34:
	adrp	x8, _UMA_ALIGN_PTR@GOTPAGE
Lloh35:
	ldr	x8, [x8, _UMA_ALIGN_PTR@GOTPAGEOFF]
Lloh36:
	ldr	w6, [x8]
Lloh37:
	adrp	x0, l_.str.5@PAGE
Lloh38:
	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, #20]
	ldrsw	x1, [x19, #16]
	bl	_uma_zone_set_max
Lloh39:
	adrp	x20, _V_tcp_hc_callout@GOTPAGE
Lloh40:
	ldr	x20, [x20, _V_tcp_hc_callout@GOTPAGEOFF]
	mov	x0, x20
	mov	w1, #1
	bl	_callout_init
	ldr	w8, [x19, #8]
Lloh41:
	adrp	x9, _hz@GOTPAGE
Lloh42:
	ldr	x9, [x9, _hz@GOTPAGEOFF]
Lloh43:
	ldr	w9, [x9]
	mul	w1, w9, w8
Lloh44:
	adrp	x8, _tcp_hc_purge@GOTPAGE
Lloh45:
	ldr	x8, [x8, _tcp_hc_purge@GOTPAGEOFF]
Lloh46:
	adrp	x9, _curvnet@GOTPAGE
Lloh47:
	ldr	x9, [x9, _curvnet@GOTPAGEOFF]
Lloh48:
	ldr	w2, [x8]
Lloh49:
	ldr	w3, [x9]
	mov	x0, x20
	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
	b	_callout_reset
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh25
	.loh AdrpAdd	Lloh32, Lloh33
	.loh AdrpLdrGot	Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh46, Lloh47, Lloh49
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh48
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.loh AdrpLdrGot	Lloh39, Lloh40
	.loh AdrpAdd	Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.cfi_endproc
                                        ; -- End function
	.comm	_V_tcp_hostcache,48,3           ; @V_tcp_hostcache
	.comm	_TCP_HOSTCACHE_HASHSIZE,8,3     ; @TCP_HOSTCACHE_HASHSIZE
	.comm	_TCP_HOSTCACHE_BUCKETLIMIT,4,2  ; @TCP_HOSTCACHE_BUCKETLIMIT
	.comm	_TCP_HOSTCACHE_EXPIRE,4,2       ; @TCP_HOSTCACHE_EXPIRE
	.comm	_TCP_HOSTCACHE_PRUNE,4,2        ; @TCP_HOSTCACHE_PRUNE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"net.inet.tcp.hostcache.hashsize"

l_.str.2:                               ; @.str.2
	.asciz	"net.inet.tcp.hostcache.bucketlimit"

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

	.comm	_M_HOSTCACHE,4,2                ; @M_HOSTCACHE
	.comm	_M_WAITOK,4,2                   ; @M_WAITOK
	.comm	_M_ZERO,4,2                     ; @M_ZERO
l_.str.4:                               ; @.str.4
	.asciz	"tcp_hc_entry"

	.comm	_MTX_DEF,4,2                    ; @MTX_DEF
l_.str.5:                               ; @.str.5
	.asciz	"hostcache"

	.comm	_UMA_ALIGN_PTR,4,2              ; @UMA_ALIGN_PTR
	.comm	_V_tcp_hc_callout,4,2           ; @V_tcp_hc_callout
	.comm	_hz,4,2                         ; @hz
	.comm	_tcp_hc_purge,4,2               ; @tcp_hc_purge
	.comm	_curvnet,4,2                    ; @curvnet
l_str:                                  ; @str
	.asciz	"WARNING: hostcache hash size is not a power of 2."

.subsections_via_symbols
