	.file	"extr_tcp_hostcache.c_tcp_hc_init.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"net.inet.tcp.hostcache.hashsize"
	.align 8
.LC1:
	.string	"WARNING: hostcache hash size is not a power of 2.\n"
	.align 8
.LC2:
	.string	"net.inet.tcp.hostcache.bucketlimit"
	.align 8
.LC3:
	.string	"net.inet.tcp.hostcache.cachelimit"
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC4:
	.string	"tcp_hc_entry"
.LC5:
	.string	"hostcache"
	.text
	.p2align 4
	.globl	tcp_hc_init
	.type	tcp_hc_init, @function
tcp_hc_init:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	lea	rdi, .LC0[rip]
	lea	rsi, V_tcp_hostcache[rip]
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	mov	rax, QWORD PTR TCP_HOSTCACHE_HASHSIZE[rip]
	mov	QWORD PTR V_tcp_hostcache[rip+40], 0
	mov	DWORD PTR V_tcp_hostcache[rip], eax
	mov	eax, DWORD PTR TCP_HOSTCACHE_BUCKETLIMIT[rip]
	mov	DWORD PTR V_tcp_hostcache[rip+4], eax
	mov	eax, DWORD PTR TCP_HOSTCACHE_EXPIRE[rip]
	mov	DWORD PTR V_tcp_hostcache[rip+32], eax
	mov	eax, DWORD PTR TCP_HOSTCACHE_PRUNE[rip]
	mov	DWORD PTR V_tcp_hostcache[rip+8], eax
	call	TUNABLE_INT_FETCH@PLT
	mov	edi, DWORD PTR V_tcp_hostcache[rip]
	call	powerof2@PLT
	test	eax, eax
	je	.L2
	mov	eax, DWORD PTR V_tcp_hostcache[rip]
.L3:
	sub	eax, 1
	lea	rsi, V_tcp_hostcache[rip+4]
	lea	rdi, .LC2[rip]
	mov	DWORD PTR V_tcp_hostcache[rip+12], eax
	call	TUNABLE_INT_FETCH@PLT
	mov	ebx, DWORD PTR V_tcp_hostcache[rip]
	imul	ebx, DWORD PTR V_tcp_hostcache[rip+4]
	lea	rsi, V_tcp_hostcache[rip+16]
	lea	rdi, .LC3[rip]
	mov	DWORD PTR V_tcp_hostcache[rip+16], ebx
	call	TUNABLE_INT_FETCH@PLT
	movsx	rdx, DWORD PTR V_tcp_hostcache[rip+16]
	movsx	rax, ebx
	cmp	rdx, rax
	jbe	.L4
	mov	DWORD PTR V_tcp_hostcache[rip+16], ebx
.L4:
	mov	eax, DWORD PTR V_tcp_hostcache[rip]
	mov	esi, DWORD PTR M_HOSTCACHE[rip]
	mov	edx, DWORD PTR M_WAITOK[rip]
	or	edx, DWORD PTR M_ZERO[rip]
	lea	edi, [rax+rax*2]
	sal	edi, 3
	call	malloc@PLT
	mov	edx, DWORD PTR V_tcp_hostcache[rip]
	mov	QWORD PTR V_tcp_hostcache[rip+24], rax
	test	edx, edx
	jle	.L5
	xor	ebp, ebp
	lea	r13, V_tcp_hostcache[rip]
	lea	r12, .LC4[rip]
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L9:
	mov	rax, QWORD PTR V_tcp_hostcache[rip+24]
.L6:
	lea	rdi, 0[rbp+rbp*2]
	add	rbp, 1
	lea	rbx, 0[0+rdi*8]
	lea	rdi, 16[rax+rbx]
	call	TAILQ_INIT@PLT
	mov	ecx, DWORD PTR MTX_DEF[rip]
	xor	edx, edx
	mov	rsi, r12
	add	rbx, QWORD PTR V_tcp_hostcache[rip+24]
	mov	QWORD PTR 8[rbx], 0
	mov	rdi, rbx
	call	mtx_init@PLT
	cmp	DWORD PTR 0[r13], ebp
	jg	.L9
.L5:
	mov	eax, DWORD PTR UMA_ALIGN_PTR[rip]
	push	0
	.cfi_def_cfa_offset 56
	xor	ecx, ecx
	xor	edx, edx
	xor	r9d, r9d
	xor	r8d, r8d
	mov	esi, 4
	push	rax
	.cfi_def_cfa_offset 64
	lea	rdi, .LC5[rip]
	call	uma_zcreate@PLT
	movsx	rsi, DWORD PTR V_tcp_hostcache[rip+16]
	mov	edi, eax
	mov	DWORD PTR V_tcp_hostcache[rip+20], eax
	call	uma_zone_set_max@PLT
	mov	esi, 1
	lea	rdi, V_tcp_hc_callout[rip]
	call	callout_init@PLT
	mov	esi, DWORD PTR V_tcp_hostcache[rip+8]
	imul	esi, DWORD PTR hz[rip]
	lea	rdi, V_tcp_hc_callout[rip]
	mov	ecx, DWORD PTR curvnet[rip]
	mov	edx, DWORD PTR tcp_hc_purge[rip]
	add	rsp, 24
	.cfi_def_cfa_offset 40
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	jmp	callout_reset@PLT
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_def_cfa_offset 48
	lea	rdi, .LC1[rip]
	call	printf@PLT
	mov	rdx, QWORD PTR TCP_HOSTCACHE_HASHSIZE[rip]
	mov	DWORD PTR V_tcp_hostcache[rip], edx
	mov	eax, edx
	jmp	.L3
	.cfi_endproc
.LFE0:
	.size	tcp_hc_init, .-tcp_hc_init
	.comm	tcp_hc_purge,4,4
	.comm	hz,4,4
	.comm	curvnet,4,4
	.comm	V_tcp_hostcache,48,32
	.comm	V_tcp_hc_callout,4,4
	.comm	UMA_ALIGN_PTR,4,4
	.comm	TCP_HOSTCACHE_PRUNE,4,4
	.comm	TCP_HOSTCACHE_HASHSIZE,8,8
	.comm	TCP_HOSTCACHE_EXPIRE,4,4
	.comm	TCP_HOSTCACHE_BUCKETLIMIT,4,4
	.comm	M_ZERO,4,4
	.comm	M_WAITOK,4,4
	.comm	M_HOSTCACHE,4,4
	.comm	MTX_DEF,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_tcp_hostcache.c_tcp_hc_init.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"net.inet.tcp.hostcache.hashsize\000"
	.align	2
.LC1:
	.ascii	"WARNING: hostcache hash size is not a power of 2.\012"
	.ascii	"\000"
	.align	2
.LC2:
	.ascii	"net.inet.tcp.hostcache.bucketlimit\000"
	.align	2
.LC3:
	.ascii	"net.inet.tcp.hostcache.cachelimit\000"
	.align	2
.LC4:
	.ascii	"tcp_hc_entry\000"
	.align	2
.LC5:
	.ascii	"hostcache\000"
	.text
	.align	2
	.global	tcp_hc_init
	.syntax unified
	.arm
	.fpu softvfp
	.type	tcp_hc_init, %function
tcp_hc_init:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	mov	r1, #0
	push	{r4, r5, r6, r7, r8, r9, lr}
	ldr	r0, .L10
	ldr	r5, .L10+4
	ldr	r2, .L10+8
	ldr	r3, .L10+12
	ldr	r4, .L10+16
	ldr	r0, [r0]
	ldr	ip, [r5]
	ldr	r2, [r2]
	ldr	r3, [r3]
	sub	sp, sp, #20
	str	r1, [r4, #32]
	str	r0, [r4, #4]
	mov	r1, r4
	ldr	r0, .L10+20
	str	ip, [r4]
	str	r2, [r4, #28]
	str	r3, [r4, #8]
	bl	TUNABLE_INT_FETCH
	ldr	r0, [r4]
	bl	powerof2
	cmp	r0, #0
	beq	.L2
	ldr	r3, [r4]
.L3:
	sub	r3, r3, #1
	ldr	r1, .L10+24
	ldr	r0, .L10+28
	str	r3, [r4, #12]
	bl	TUNABLE_INT_FETCH
	ldr	r3, [r4, #4]
	ldr	r5, [r4]
	ldr	r1, .L10+32
	mul	r5, r3, r5
	ldr	r0, .L10+36
	str	r5, [r4, #16]
	bl	TUNABLE_INT_FETCH
	ldr	r3, [r4, #16]
	ldr	r2, .L10+40
	cmp	r3, r5
	ldr	r3, .L10+44
	ldr	r0, [r4]
	ldr	r1, [r2]
	ldr	r2, [r3]
	ldr	r3, .L10+48
	add	r0, r0, r0, lsl #1
	orr	r2, r1, r2
	lsl	r0, r0, #2
	ldr	r1, [r3]
	strhi	r5, [r4, #16]
	bl	malloc
	ldr	r3, [r4]
	str	r0, [r4, #24]
	cmp	r3, #0
	ble	.L5
	mov	r5, #0
	ldr	r8, .L10+52
	mov	r6, r5
	mov	r9, r5
	ldr	r7, .L10+56
	b	.L6
.L9:
	ldr	r0, [r4, #24]
.L6:
	add	r0, r0, r5
	add	r0, r0, #8
	bl	TAILQ_INIT
	ldr	r0, [r4, #24]
	ldr	r3, [r8]
	add	r0, r0, r5
	mov	r2, #0
	mov	r1, r7
	str	r9, [r0, #4]
	bl	mtx_init
	ldr	r3, [r4]
	add	r6, r6, #1
	cmp	r3, r6
	add	r5, r5, #12
	bgt	.L9
.L5:
	mov	r3, #0
	ldr	r2, .L10+60
	str	r3, [sp, #12]
	ldr	r2, [r2]
	mov	r1, #4
	str	r3, [sp, #4]
	str	r3, [sp]
	str	r2, [sp, #8]
	ldr	r0, .L10+64
	mov	r2, r3
	bl	uma_zcreate
	ldr	r1, [r4, #16]
	str	r0, [r4, #20]
	bl	uma_zone_set_max
	mov	r1, #1
	ldr	r0, .L10+68
	bl	callout_init
	ldr	r3, .L10+72
	ldr	r1, [r4, #8]
	ldr	r0, [r3]
	ldr	r2, .L10+76
	mul	r1, r0, r1
	ldr	r3, .L10+80
	ldr	r2, [r2]
	ldr	r3, [r3]
	ldr	r0, .L10+68
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, lr}
	b	callout_reset
.L2:
	ldr	r0, .L10+84
	bl	printf
	ldr	r3, [r5]
	str	r3, [r4]
	b	.L3
.L11:
	.align	2
.L10:
	.word	TCP_HOSTCACHE_BUCKETLIMIT
	.word	TCP_HOSTCACHE_HASHSIZE
	.word	TCP_HOSTCACHE_EXPIRE
	.word	TCP_HOSTCACHE_PRUNE
	.word	V_tcp_hostcache
	.word	.LC0
	.word	V_tcp_hostcache+4
	.word	.LC2
	.word	V_tcp_hostcache+16
	.word	.LC3
	.word	M_WAITOK
	.word	M_ZERO
	.word	M_HOSTCACHE
	.word	MTX_DEF
	.word	.LC4
	.word	UMA_ALIGN_PTR
	.word	.LC5
	.word	V_tcp_hc_callout
	.word	hz
	.word	tcp_hc_purge
	.word	curvnet
	.word	.LC1
	.size	tcp_hc_init, .-tcp_hc_init
	.comm	tcp_hc_purge,4,4
	.comm	hz,4,4
	.comm	curvnet,4,4
	.comm	V_tcp_hostcache,36,4
	.comm	V_tcp_hc_callout,4,4
	.comm	UMA_ALIGN_PTR,4,4
	.comm	TCP_HOSTCACHE_PRUNE,4,4
	.comm	TCP_HOSTCACHE_HASHSIZE,4,4
	.comm	TCP_HOSTCACHE_EXPIRE,4,4
	.comm	TCP_HOSTCACHE_BUCKETLIMIT,4,4
	.comm	M_ZERO,4,4
	.comm	M_WAITOK,4,4
	.comm	M_HOSTCACHE,4,4
	.comm	MTX_DEF,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
