	.file	"extr_Proto_IKE.c_NewIkeSa.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"New IKE SA (Mode = %u): %I64u <--> %I64u (%s %s %s(%u) %u %u)\n"
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC1:
	.string	"LI_TAG_MAINMODE"
.LC2:
	.string	"LI_TAG_AGGRESSIVE"
.LC3:
	.string	"LI_NEW_IKE_SA"
	.text
	.p2align 4
	.globl	NewIkeSa
	.type	NewIkeSa, @function
NewIkeSa:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 40
	.cfi_def_cfa_offset 96
	test	rdi, rdi
	je	.L6
	mov	r14, rsi
	test	rsi, rsi
	je	.L6
	mov	r15, rdx
	test	rdx, rdx
	je	.L6
	mov	rbx, r8
	test	r8, r8
	je	.L6
	mov	rbp, rdi
	mov	edi, 56
	mov	r13, rcx
	call	ZeroMalloc@PLT
	mov	rdi, rbp
	mov	r12, rax
	mov	rax, QWORD PTR 8[rbp]
	add	rax, 1
	mov	QWORD PTR 8[rbp], rax
	mov	QWORD PTR 40[r12], r14
	mov	QWORD PTR 8[r12], r15
	mov	QWORD PTR 48[r12], rax
	call	GenerateNewResponserCookie@PLT
	mov	QWORD PTR 32[r12], r13
	mov	rsi, rbx
	lea	rdi, 16[r12]
	mov	DWORD PTR [r12], eax
	mov	eax, DWORD PTR 0[rbp]
	mov	edx, 40
	mov	DWORD PTR 20[r12], eax
	mov	DWORD PTR 24[r12], eax
	call	Copy@PLT
	mov	esi, DWORD PTR 4[rbx]
	mov	rcx, QWORD PTR 24[rbx]
	lea	rdi, .LC0[rip]
	mov	rax, QWORD PTR 32[rbx]
	mov	rdx, QWORD PTR 8[r12]
	push	rsi
	.cfi_def_cfa_offset 104
	mov	esi, DWORD PTR 8[rbx]
	push	rsi
	.cfi_def_cfa_offset 112
	mov	esi, DWORD PTR [rbx]
	push	rsi
	.cfi_def_cfa_offset 120
	mov	rsi, QWORD PTR 16[rbx]
	mov	esi, DWORD PTR [rsi]
	push	rsi
	.cfi_def_cfa_offset 128
	mov	r9d, DWORD PTR [rcx]
	mov	rsi, r13
	mov	r8d, DWORD PTR [rax]
	mov	ecx, DWORD PTR [r12]
	call	Debug@PLT
	mov	eax, DWORD PTR [rbx]
	mov	r8d, DWORD PTR 4[rbx]
	add	rsp, 32
	.cfi_def_cfa_offset 96
	mov	esi, DWORD PTR 8[rbx]
	cmp	QWORD PTR IKE_SA_MAIN_MODE[rip], r13
	lea	r14d, 0[0+rax*8]
	mov	rax, QWORD PTR 16[rbx]
	mov	r15d, DWORD PTR [r12]
	mov	DWORD PTR 12[rsp], r8d
	mov	DWORD PTR 16[rsp], esi
	mov	ecx, DWORD PTR [rax]
	mov	rax, QWORD PTR 24[rbx]
	mov	edx, DWORD PTR [rax]
	mov	rax, QWORD PTR 32[rbx]
	mov	DWORD PTR 20[rsp], ecx
	mov	rbx, QWORD PTR 8[r12]
	mov	r10d, DWORD PTR [rax]
	mov	DWORD PTR 24[rsp], edx
	mov	DWORD PTR 28[rsp], r10d
	je	.L9
	lea	rdi, .LC2[rip]
	call	_UU@PLT
	mov	r10d, DWORD PTR 28[rsp]
	mov	edx, DWORD PTR 24[rsp]
	mov	ecx, DWORD PTR 20[rsp]
	mov	esi, DWORD PTR 16[rsp]
	mov	r9d, eax
	mov	r8d, DWORD PTR 12[rsp]
.L4:
	push	r8
	.cfi_def_cfa_offset 104
	mov	rdi, rbp
	lea	r8, .LC3[rip]
	push	rsi
	.cfi_def_cfa_offset 112
	xor	esi, esi
	push	r14
	.cfi_def_cfa_offset 120
	push	rcx
	.cfi_def_cfa_offset 128
	xor	ecx, ecx
	push	rdx
	.cfi_def_cfa_offset 136
	mov	rdx, r12
	push	r10
	.cfi_def_cfa_offset 144
	push	r15
	.cfi_def_cfa_offset 152
	push	rbx
	.cfi_def_cfa_offset 160
	call	IPsecLog@PLT
	add	rsp, 64
	.cfi_def_cfa_offset 96
.L1:
	add	rsp, 40
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	rax, r12
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L6:
	.cfi_restore_state
	xor	r12d, r12d
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L9:
	lea	rdi, .LC1[rip]
	call	_UU@PLT
	mov	r8d, DWORD PTR 12[rsp]
	mov	esi, DWORD PTR 16[rsp]
	mov	ecx, DWORD PTR 20[rsp]
	mov	edx, DWORD PTR 24[rsp]
	mov	r9d, eax
	mov	r10d, DWORD PTR 28[rsp]
	jmp	.L4
	.cfi_endproc
.LFE0:
	.size	NewIkeSa, .-NewIkeSa
	.comm	IKE_SA_MAIN_MODE,8,8
	.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_Proto_IKE.c_NewIkeSa.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"New IKE SA (Mode = %u): %I64u <--> %I64u (%s %s %s("
	.ascii	"%u) %u %u)\012\000"
	.align	2
.LC1:
	.ascii	"LI_TAG_MAINMODE\000"
	.align	2
.LC2:
	.ascii	"LI_TAG_AGGRESSIVE\000"
	.align	2
.LC3:
	.ascii	"LI_NEW_IKE_SA\000"
	.text
	.align	2
	.global	NewIkeSa
	.syntax unified
	.arm
	.fpu softvfp
	.type	NewIkeSa, %function
NewIkeSa:
	@ args = 4, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, lr}
	clz	r4, r1
	cmp	r0, #0
	lsr	r4, r4, #5
	moveq	r4, #1
	sub	sp, sp, #44
	cmp	r4, #0
	movne	r4, #0
	ldr	r5, [sp, #72]
	bne	.L1
	cmp	r5, #0
	cmpne	r2, #0
	mov	r9, r2
	beq	.L1
	mov	r6, r0
	mov	r0, #32
	mov	r7, r3
	mov	r8, r1
	bl	ZeroMalloc
	mov	r4, r0
	ldr	r3, [r6, #4]
	mov	r0, r6
	add	r3, r3, #1
	str	r3, [r6, #4]
	str	r3, [r4, #28]
	str	r8, [r4, #24]
	str	r9, [r4, #4]
	bl	GenerateNewResponserCookie
	ldr	r3, [r6]
	mov	r2, #24
	mov	r1, r5
	str	r0, [r4]
	str	r3, [r4, #12]
	str	r3, [r4, #16]
	str	r7, [r4, #20]
	add	r0, r4, #8
	bl	Copy
	ldm	r5, {r0, r1, ip}
	ldr	r2, [r4, #4]
	ldr	r3, [r4]
	str	r1, [sp, #20]
	ldr	r1, [r5, #12]
	str	ip, [sp, #16]
	str	r0, [sp, #12]
	ldr	r0, [r1]
	ldr	r1, [r5, #16]
	str	r0, [sp, #8]
	ldr	r0, [r1]
	ldr	r1, [r5, #20]
	str	r0, [sp, #4]
	ldr	r1, [r1]
	ldr	r0, .L9
	str	r1, [sp]
	mov	r1, r7
	bl	Debug
	ldr	r3, .L9+4
	ldr	r3, [r3]
	cmp	r3, r7
	ldreq	r0, .L9+8
	ldrne	r0, .L9+12
	bl	_UU
	mov	r3, #0
	mov	r2, r0
	ldr	r1, [r5]
	ldr	r0, [r5, #4]
	lsl	r1, r1, #3
	str	r0, [sp, #36]
	str	r1, [sp, #28]
	ldr	r1, [r5, #8]
	mov	r0, r6
	str	r1, [sp, #32]
	ldr	r1, [r5, #12]
	ldr	ip, [r1]
	ldr	r1, [r5, #16]
	str	ip, [sp, #24]
	ldr	ip, [r1]
	ldr	r1, [r5, #20]
	str	ip, [sp, #20]
	ldr	r1, [r1]
	ldr	ip, .L9+16
	str	r1, [sp, #16]
	ldr	r1, [r4]
	str	r1, [sp, #12]
	ldr	r1, [r4, #4]
	str	r2, [sp, #4]
	str	r1, [sp, #8]
	mov	r2, r4
	mov	r1, r3
	str	ip, [sp]
	bl	IPsecLog
.L1:
	mov	r0, r4
	add	sp, sp, #44
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, pc}
.L10:
	.align	2
.L9:
	.word	.LC0
	.word	IKE_SA_MAIN_MODE
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.size	NewIkeSa, .-NewIkeSa
	.comm	IKE_SA_MAIN_MODE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
