	.file	"extr_key.c_key_init.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"IPsec SA lft_c"
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC1:
	.string	"IPsec: Initialized Security Association Processing.\n"
	.text
	.p2align 4
	.globl	key_init
	.type	key_init, @function
key_init:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	mov	esi, DWORD PTR IPSEC_DIR_MAX[rip]
	test	esi, esi
	jle	.L2
	xor	ebp, ebp
	.p2align 4,,10
	.p2align 3
.L3:
	mov	rdi, QWORD PTR V_sptree[rip]
	lea	rbx, 0[0+rbp*4]
	add	rbp, 1
	add	rdi, rbx
	call	TAILQ_INIT@PLT
	add	rbx, QWORD PTR V_sptree_ifnet[rip]
	mov	rdi, rbx
	call	TAILQ_INIT@PLT
	cmp	DWORD PTR IPSEC_DIR_MAX[rip], ebp
	jg	.L3
.L2:
	mov	eax, DWORD PTR UMA_ZONE_PCPU[rip]
	xor	ecx, ecx
	xor	r9d, r9d
	xor	r8d, r8d
	xor	edx, edx
	mov	esi, 8
	lea	rdi, .LC0[rip]
	push	rax
	.cfi_def_cfa_offset 40
	mov	eax, DWORD PTR UMA_ALIGN_PTR[rip]
	push	rax
	.cfi_def_cfa_offset 48
	call	uma_zcreate@PLT
	lea	rdi, V_sahtree[rip]
	mov	DWORD PTR V_key_lft_zone[rip], eax
	call	TAILQ_INIT@PLT
	mov	esi, DWORD PTR M_IPSEC_SP[rip]
	mov	edi, DWORD PTR SPHASH_NHASH[rip]
	lea	rdx, V_sphash_mask[rip]
	call	hashinit@PLT
	mov	esi, DWORD PTR M_IPSEC_SA[rip]
	mov	edi, DWORD PTR SAVHASH_NHASH[rip]
	lea	rdx, V_savhash_mask[rip]
	mov	QWORD PTR V_sphashtbl[rip], rax
	call	hashinit@PLT
	mov	esi, DWORD PTR M_IPSEC_SAH[rip]
	mov	edi, DWORD PTR SAHHASH_NHASH[rip]
	lea	rdx, V_sahaddrhash_mask[rip]
	mov	QWORD PTR V_savhashtbl[rip], rax
	call	hashinit@PLT
	mov	esi, DWORD PTR M_IPSEC_SAQ[rip]
	mov	edi, DWORD PTR ACQHASH_NHASH[rip]
	lea	rdx, V_acqaddrhash_mask[rip]
	mov	QWORD PTR V_sahaddrhashtbl[rip], rax
	call	hashinit@PLT
	mov	esi, DWORD PTR M_IPSEC_SAQ[rip]
	mov	edi, DWORD PTR ACQHASH_NHASH[rip]
	lea	rdx, V_acqseqhash_mask[rip]
	mov	QWORD PTR V_acqaddrhashtbl[rip], rax
	call	hashinit@PLT
	mov	QWORD PTR V_acqseqhashtbl[rip], rax
	xor	eax, eax
	call	spdcache_init@PLT
	mov	ecx, DWORD PTR SADB_SATYPE_MAX[rip]
	pop	rax
	.cfi_def_cfa_offset 40
	pop	rdx
	.cfi_def_cfa_offset 32
	test	ecx, ecx
	js	.L4
	xor	ebx, ebx
	.p2align 4,,10
	.p2align 3
.L5:
	mov	rax, QWORD PTR V_regtree[rip]
	lea	rdi, [rax+rbx*4]
	add	rbx, 1
	call	LIST_INIT@PLT
	cmp	DWORD PTR SADB_SATYPE_MAX[rip], ebx
	jge	.L5
.L4:
	lea	rdi, V_acqtree[rip]
	call	LIST_INIT@PLT
	lea	rdi, V_spacqtree[rip]
	call	LIST_INIT@PLT
	mov	edi, DWORD PTR curvnet[rip]
	call	IS_DEFAULT_VNET@PLT
	test	eax, eax
	jne	.L13
.L1:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L13:
	.cfi_restore_state
	xor	eax, eax
	call	SPTREE_LOCK_INIT@PLT
	xor	eax, eax
	call	REGTREE_LOCK_INIT@PLT
	xor	eax, eax
	call	SAHTREE_LOCK_INIT@PLT
	xor	eax, eax
	call	ACQ_LOCK_INIT@PLT
	xor	eax, eax
	call	SPACQ_LOCK_INIT@PLT
	mov	esi, 1
	lea	rdi, key_timer[rip]
	call	callout_init@PLT
	mov	edx, DWORD PTR key_timehandler[rip]
	xor	ecx, ecx
	mov	esi, DWORD PTR hz[rip]
	lea	rdi, key_timer[rip]
	call	callout_reset@PLT
	cmp	QWORD PTR bootverbose[rip], 0
	mov	DWORD PTR keystat[rip], 1
	je	.L1
	add	rsp, 8
	.cfi_def_cfa_offset 24
	lea	rdi, .LC1[rip]
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	jmp	printf@PLT
	.cfi_endproc
.LFE0:
	.size	key_init, .-key_init
	.comm	keystat,4,4
	.comm	key_timer,4,4
	.comm	key_timehandler,4,4
	.comm	hz,4,4
	.comm	curvnet,4,4
	.comm	bootverbose,8,8
	.comm	V_sptree_ifnet,8,8
	.comm	V_sptree,8,8
	.comm	V_sphashtbl,8,8
	.comm	V_sphash_mask,4,4
	.comm	V_spacqtree,4,4
	.comm	V_savhashtbl,8,8
	.comm	V_savhash_mask,4,4
	.comm	V_sahtree,4,4
	.comm	V_sahaddrhashtbl,8,8
	.comm	V_sahaddrhash_mask,4,4
	.comm	V_regtree,8,8
	.comm	V_key_lft_zone,4,4
	.comm	V_acqtree,4,4
	.comm	V_acqseqhashtbl,8,8
	.comm	V_acqseqhash_mask,4,4
	.comm	V_acqaddrhashtbl,8,8
	.comm	V_acqaddrhash_mask,4,4
	.comm	UMA_ZONE_PCPU,4,4
	.comm	UMA_ALIGN_PTR,4,4
	.comm	SPHASH_NHASH,4,4
	.comm	SAVHASH_NHASH,4,4
	.comm	SAHHASH_NHASH,4,4
	.comm	SADB_SATYPE_MAX,4,4
	.comm	M_IPSEC_SP,4,4
	.comm	M_IPSEC_SAQ,4,4
	.comm	M_IPSEC_SAH,4,4
	.comm	M_IPSEC_SA,4,4
	.comm	IPSEC_DIR_MAX,4,4
	.comm	ACQHASH_NHASH,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_key.c_key_init.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"IPsec SA lft_c\000"
	.align	2
.LC1:
	.ascii	"IPsec: Initialized Security Association Processing."
	.ascii	"\012\000"
	.text
	.align	2
	.global	key_init
	.syntax unified
	.arm
	.fpu softvfp
	.type	key_init, %function
key_init:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	ldr	r6, .L17
	sub	sp, sp, #16
	ldr	r3, [r6]
	cmp	r3, #0
	ble	.L2
	mov	r4, #0
	ldr	r8, .L17+4
	ldr	r7, .L17+8
.L3:
	ldr	r0, [r8]
	lsl	r5, r4, #2
	add	r0, r0, r4, lsl #2
	bl	TAILQ_INIT
	ldr	r0, [r7]
	add	r4, r4, #1
	add	r0, r0, r5
	bl	TAILQ_INIT
	ldr	r3, [r6]
	cmp	r3, r4
	bgt	.L3
.L2:
	mov	r4, #0
	ldr	r2, .L17+12
	ldr	r3, .L17+16
	ldr	r2, [r2]
	ldr	r3, [r3]
	mov	r1, #8
	str	r2, [sp, #12]
	str	r3, [sp, #8]
	mov	r2, r4
	mov	r3, r4
	ldr	r0, .L17+20
	str	r4, [sp, #4]
	str	r4, [sp]
	bl	uma_zcreate
	mov	r2, r0
	ldr	r3, .L17+24
	ldr	r0, .L17+28
	str	r2, [r3]
	bl	TAILQ_INIT
	ldr	r3, .L17+32
	ldr	r2, .L17+36
	ldr	r0, [r3]
	ldr	r1, [r2]
	ldr	r2, .L17+40
	bl	hashinit
	mov	ip, r0
	ldr	r2, .L17+44
	ldr	r1, .L17+48
	ldr	r3, .L17+52
	ldr	r1, [r1]
	ldr	r0, [r2]
	ldr	r2, .L17+56
	str	ip, [r3]
	bl	hashinit
	mov	ip, r0
	ldr	r2, .L17+60
	ldr	r1, .L17+64
	ldr	r3, .L17+68
	ldr	r1, [r1]
	ldr	r0, [r2]
	ldr	r2, .L17+72
	str	ip, [r3]
	bl	hashinit
	mov	r2, r0
	ldr	r5, .L17+76
	ldr	r3, .L17+80
	ldr	r6, .L17+84
	str	r2, [r3]
	ldr	r1, [r6]
	ldr	r0, [r5]
	ldr	r2, .L17+88
	bl	hashinit
	mov	ip, r0
	ldr	r3, .L17+92
	ldr	r1, [r6]
	ldr	r0, [r5]
	ldr	r2, .L17+96
	str	ip, [r3]
	bl	hashinit
	ldr	r5, .L17+100
	ldr	r3, .L17+104
	str	r0, [r3]
	bl	spdcache_init
	ldr	r3, [r5]
	cmp	r3, r4
	blt	.L4
	ldr	r6, .L17+108
.L5:
	ldr	r0, [r6]
	add	r0, r0, r4, lsl #2
	bl	LIST_INIT
	ldr	r3, [r5]
	add	r4, r4, #1
	cmp	r3, r4
	bge	.L5
.L4:
	ldr	r0, .L17+112
	bl	LIST_INIT
	ldr	r0, .L17+116
	bl	LIST_INIT
	ldr	r3, .L17+120
	ldr	r0, [r3]
	bl	IS_DEFAULT_VNET
	cmp	r0, #0
	bne	.L16
.L1:
	add	sp, sp, #16
	@ sp needed
	pop	{r4, r5, r6, r7, r8, pc}
.L16:
	bl	SPTREE_LOCK_INIT
	bl	REGTREE_LOCK_INIT
	bl	SAHTREE_LOCK_INIT
	bl	ACQ_LOCK_INIT
	bl	SPACQ_LOCK_INIT
	mov	r1, #1
	ldr	r0, .L17+124
	bl	callout_init
	ldr	r3, .L17+128
	ldr	r2, .L17+132
	ldr	r1, [r3]
	ldr	r2, [r2]
	mov	r3, #0
	ldr	r0, .L17+124
	bl	callout_reset
	mov	r1, #1
	ldr	r3, .L17+136
	ldr	r2, .L17+140
	ldr	r3, [r3]
	str	r1, [r2]
	cmp	r3, #0
	beq	.L1
	ldr	r0, .L17+144
	add	sp, sp, #16
	@ sp needed
	pop	{r4, r5, r6, r7, r8, lr}
	b	printf
.L18:
	.align	2
.L17:
	.word	IPSEC_DIR_MAX
	.word	V_sptree
	.word	V_sptree_ifnet
	.word	UMA_ZONE_PCPU
	.word	UMA_ALIGN_PTR
	.word	.LC0
	.word	V_key_lft_zone
	.word	V_sahtree
	.word	SPHASH_NHASH
	.word	M_IPSEC_SP
	.word	V_sphash_mask
	.word	SAVHASH_NHASH
	.word	M_IPSEC_SA
	.word	V_sphashtbl
	.word	V_savhash_mask
	.word	SAHHASH_NHASH
	.word	M_IPSEC_SAH
	.word	V_savhashtbl
	.word	V_sahaddrhash_mask
	.word	ACQHASH_NHASH
	.word	V_sahaddrhashtbl
	.word	M_IPSEC_SAQ
	.word	V_acqaddrhash_mask
	.word	V_acqaddrhashtbl
	.word	V_acqseqhash_mask
	.word	SADB_SATYPE_MAX
	.word	V_acqseqhashtbl
	.word	V_regtree
	.word	V_acqtree
	.word	V_spacqtree
	.word	curvnet
	.word	key_timer
	.word	hz
	.word	key_timehandler
	.word	bootverbose
	.word	keystat
	.word	.LC1
	.size	key_init, .-key_init
	.comm	keystat,4,4
	.comm	key_timer,4,4
	.comm	key_timehandler,4,4
	.comm	hz,4,4
	.comm	curvnet,4,4
	.comm	bootverbose,4,4
	.comm	V_sptree_ifnet,4,4
	.comm	V_sptree,4,4
	.comm	V_sphashtbl,4,4
	.comm	V_sphash_mask,4,4
	.comm	V_spacqtree,4,4
	.comm	V_savhashtbl,4,4
	.comm	V_savhash_mask,4,4
	.comm	V_sahtree,4,4
	.comm	V_sahaddrhashtbl,4,4
	.comm	V_sahaddrhash_mask,4,4
	.comm	V_regtree,4,4
	.comm	V_key_lft_zone,4,4
	.comm	V_acqtree,4,4
	.comm	V_acqseqhashtbl,4,4
	.comm	V_acqseqhash_mask,4,4
	.comm	V_acqaddrhashtbl,4,4
	.comm	V_acqaddrhash_mask,4,4
	.comm	UMA_ZONE_PCPU,4,4
	.comm	UMA_ALIGN_PTR,4,4
	.comm	SPHASH_NHASH,4,4
	.comm	SAVHASH_NHASH,4,4
	.comm	SAHHASH_NHASH,4,4
	.comm	SADB_SATYPE_MAX,4,4
	.comm	M_IPSEC_SP,4,4
	.comm	M_IPSEC_SAQ,4,4
	.comm	M_IPSEC_SAH,4,4
	.comm	M_IPSEC_SA,4,4
	.comm	IPSEC_DIR_MAX,4,4
	.comm	ACQHASH_NHASH,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
