	.file	"extr_if_ipsec.c_ipsec_init_reqid.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	ipsec_init_reqid, @function
ipsec_init_reqid:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	mov	esi, DWORD PTR SA_XLOCKED[rip]
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	mov	r12, rdi
	lea	rdi, ipsec_ioctl_sx[rip]
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	call	sx_assert@PLT
	mov	r13d, DWORD PTR [r12]
	mov	ebx, DWORD PTR IPSEC_REQID_TRYCNT[rip]
	test	r13d, r13d
	je	.L3
	jmp	.L12
	.p2align 4,,10
	.p2align 3
.L5:
	xor	eax, eax
	call	key_newreqid@PLT
	mov	edi, eax
	mov	ebp, eax
	call	ipsec_check_reqid@PLT
	test	rax, rax
	je	.L4
.L3:
	sub	ebx, 1
	test	ebx, ebx
	jg	.L5
	jne	.L4
	mov	r13d, DWORD PTR EEXIST[rip]
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	mov	eax, r13d
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L12:
	.cfi_restore_state
	xor	r13d, r13d
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbp
	.cfi_def_cfa_offset 32
	mov	eax, r13d
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L4:
	.cfi_restore_state
	mov	DWORD PTR [r12], ebp
	mov	edi, ebp
	mov	r14d, DWORD PTR idhash[rip]
	call	ipsec_idhash@PLT
	mov	edx, r14d
	mov	rsi, r12
	mov	edi, eax
	call	CK_LIST_INSERT_HEAD@PLT
	pop	rbx
	.cfi_def_cfa_offset 40
	mov	eax, r13d
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	ipsec_init_reqid, .-ipsec_init_reqid
	.comm	ipsec_ioctl_sx,4,4
	.comm	idhash,4,4
	.comm	SA_XLOCKED,4,4
	.comm	IPSEC_REQID_TRYCNT,4,4
	.comm	EEXIST,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_if_ipsec.c_ipsec_init_reqid.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	ipsec_init_reqid, %function
ipsec_init_reqid:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r6, r0
	ldr	r3, .L12
	ldr	r0, .L12+4
	ldr	r1, [r3]
	bl	sx_assert
	ldr	r7, [r6]
	cmp	r7, #0
	movne	r7, #0
	bne	.L1
	ldr	r3, .L12+8
	ldr	r4, [r3]
	b	.L3
.L5:
	bl	key_newreqid
	mov	r5, r0
	bl	ipsec_check_reqid
	cmp	r0, #0
	beq	.L4
.L3:
	sub	r4, r4, #1
	cmp	r4, #0
	bgt	.L5
	bne	.L4
	ldr	r3, .L12+12
	ldr	r7, [r3]
.L1:
	mov	r0, r7
	pop	{r4, r5, r6, r7, r8, pc}
.L4:
	mov	r0, r5
	str	r5, [r6]
	bl	ipsec_idhash
	ldr	r3, .L12+16
	mov	r1, r6
	ldr	r2, [r3]
	bl	CK_LIST_INSERT_HEAD
	mov	r0, r7
	pop	{r4, r5, r6, r7, r8, pc}
.L13:
	.align	2
.L12:
	.word	SA_XLOCKED
	.word	ipsec_ioctl_sx
	.word	IPSEC_REQID_TRYCNT
	.word	EEXIST
	.word	idhash
	.size	ipsec_init_reqid, .-ipsec_init_reqid
	.comm	ipsec_ioctl_sx,4,4
	.comm	idhash,4,4
	.comm	SA_XLOCKED,4,4
	.comm	IPSEC_REQID_TRYCNT,4,4
	.comm	EEXIST,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
