	.file	"extr_xfrm_user.c_xfrm_add_pol_expire.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	xfrm_add_pol_expire, @function
xfrm_add_pol_expire:
.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
	mov	r13, rsi
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	rbp, rdx
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 56
	.cfi_def_cfa_offset 112
	mov	edi, DWORD PTR [rdi]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 40[rsp], rax
	xor	eax, eax
	call	sock_net@PLT
	mov	rdi, r13
	mov	r14, rax
	call	nlmsg_data@PLT
	lea	rsi, 28[rsp]
	mov	rdi, rbp
	mov	rbx, rax
	mov	eax, DWORD PTR XFRM_POLICY_TYPE_MAIN[rip]
	mov	DWORD PTR 20[rsp], eax
	mov	eax, DWORD PTR ENOENT[rip]
	neg	eax
	mov	DWORD PTR 24[rsp], eax
	call	xfrm_mark_get@PLT
	lea	rdi, 20[rsp]
	mov	rsi, rbp
	mov	r15d, eax
	call	copy_from_user_policy_type@PLT
	mov	DWORD PTR 24[rsp], eax
	mov	r12d, eax
	test	eax, eax
	je	.L23
.L1:
	mov	rax, QWORD PTR 40[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L24
	add	rsp, 56
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	eax, r12d
	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
.L23:
	.cfi_restore_state
	mov	edi, DWORD PTR 8[rbx]
	call	verify_policy_dir@PLT
	mov	DWORD PTR 24[rsp], eax
	mov	r12d, eax
	test	eax, eax
	jne	.L1
	mov	rax, QWORD PTR XFRMA_IF_ID[rip]
	mov	rdi, QWORD PTR 0[rbp+rax*8]
	test	rdi, rdi
	je	.L3
	call	nla_get_u32@PLT
	mov	r12d, eax
.L3:
	mov	r9, QWORD PTR 16[rbx]
	test	r9, r9
	je	.L4
	lea	rax, 24[rsp]
	mov	r8d, DWORD PTR 8[rbx]
	mov	edx, r12d
	mov	esi, r15d
	push	rax
	.cfi_def_cfa_offset 120
	mov	rdi, r14
	push	0
	.cfi_def_cfa_offset 128
	mov	ecx, DWORD PTR 36[rsp]
	call	xfrm_policy_byid@PLT
	mov	rbp, rax
	pop	rax
	.cfi_def_cfa_offset 120
	pop	rdx
	.cfi_def_cfa_offset 112
.L5:
	mov	r12d, DWORD PTR ENOENT[rip]
	neg	r12d
	test	rbp, rbp
	je	.L1
	mov	edi, DWORD PTR 0[rbp]
	call	unlikely@PLT
	test	rax, rax
	jne	.L9
	mov	rdx, QWORD PTR [rbx]
	mov	esi, DWORD PTR 8[rbx]
	mov	DWORD PTR 24[rsp], 0
	test	rdx, rdx
	jne	.L25
.L10:
	mov	ecx, DWORD PTR 0[r13]
	mov	rdi, rbp
	call	km_policy_expired@PLT
.L9:
	mov	rdi, rbp
	call	xfrm_pol_put@PLT
	mov	r12d, DWORD PTR 24[rsp]
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L4:
	mov	rax, QWORD PTR XFRMA_SEC_CTX[rip]
	mov	rdi, rbp
	mov	r9, QWORD PTR 0[rbp+rax*8]
	mov	QWORD PTR 8[rsp], r9
	call	verify_sec_ctx_len@PLT
	mov	DWORD PTR 24[rsp], eax
	test	eax, eax
	jne	.L6
	mov	QWORD PTR 32[rsp], 0
	mov	r9, QWORD PTR 8[rsp]
	test	r9, r9
	je	.L7
	mov	rdi, r9
	call	nla_data@PLT
	mov	edx, DWORD PTR GFP_KERNEL[rip]
	lea	rdi, 32[rsp]
	mov	rsi, rax
	call	security_xfrm_policy_alloc@PLT
	mov	DWORD PTR 24[rsp], eax
	test	eax, eax
	jne	.L6
	mov	r9, QWORD PTR 32[rsp]
.L7:
	sub	rsp, 8
	.cfi_def_cfa_offset 120
	mov	r8d, DWORD PTR 8[rbx]
	mov	rdi, r14
	mov	edx, r12d
	lea	rax, 32[rsp]
	mov	esi, r15d
	push	rax
	.cfi_def_cfa_offset 128
	push	0
	.cfi_def_cfa_offset 136
	push	r9
	.cfi_def_cfa_offset 144
	mov	ecx, DWORD PTR 52[rsp]
	lea	r9, 12[rbx]
	call	xfrm_policy_bysel_ctx@PLT
	mov	rdi, QWORD PTR 64[rsp]
	add	rsp, 32
	.cfi_def_cfa_offset 112
	mov	rbp, rax
	call	security_xfrm_policy_free@PLT
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L6:
	mov	r12d, eax
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L25:
	mov	rdi, rbp
	call	xfrm_policy_delete@PLT
	mov	edx, 1
	mov	esi, 1
	mov	rdi, rbp
	call	xfrm_audit_policy_delete@PLT
	mov	rdx, QWORD PTR [rbx]
	mov	esi, DWORD PTR 8[rbx]
	jmp	.L10
.L24:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	xfrm_add_pol_expire, .-xfrm_add_pol_expire
	.comm	XFRM_POLICY_TYPE_MAIN,4,4
	.comm	XFRMA_SEC_CTX,8,8
	.comm	XFRMA_IF_ID,8,8
	.comm	GFP_KERNEL,4,4
	.comm	ENOENT,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_xfrm_user.c_xfrm_add_pol_expire.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	xfrm_add_pol_expire, %function
xfrm_add_pol_expire:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	ldr	r3, .L27
	sub	sp, sp, #48
	ldr	r0, [r0]
	mov	r5, r2
	mov	r6, r1
	ldr	r3, [r3]
	str	r3, [sp, #44]
	mov	r3,#0
	bl	sock_net
	mov	r7, r0
	mov	r0, r6
	bl	nlmsg_data
	ldr	r8, .L27+4
	ldr	r2, .L27+8
	ldr	r3, [r8]
	ldr	r2, [r2]
	rsb	r3, r3, #0
	add	r1, sp, #36
	mov	r9, r0
	mov	r0, r5
	str	r3, [sp, #32]
	str	r2, [sp, #28]
	bl	xfrm_mark_get
	mov	r1, r5
	mov	r10, r0
	add	r0, sp, #28
	bl	copy_from_user_policy_type
	subs	r4, r0, #0
	str	r0, [sp, #32]
	beq	.L23
.L1:
	ldr	r3, .L27
	ldr	r2, [r3]
	ldr	r3, [sp, #44]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L24
	mov	r0, r4
	add	sp, sp, #48
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L23:
	ldr	r0, [r9, #4]
	bl	verify_policy_dir
	cmp	r0, #0
	mov	r4, r0
	str	r0, [sp, #32]
	bne	.L1
	ldr	r3, .L27+12
	ldr	r3, [r3]
	ldr	r0, [r5, r3, lsl #2]
	cmp	r0, #0
	beq	.L3
	bl	nla_get_u32
	mov	r4, r0
.L3:
	ldr	r3, [r9, #12]
	cmp	r3, #0
	beq	.L4
	mov	r2, #0
	str	r3, [sp, #4]
	add	r3, sp, #32
	str	r2, [sp, #8]
	str	r3, [sp, #12]
	ldr	r3, [r9, #4]
	mov	r2, r4
	str	r3, [sp]
	mov	r1, r10
	mov	r0, r7
	ldr	r3, [sp, #28]
	bl	xfrm_policy_byid
	mov	r4, r0
.L5:
	cmp	r4, #0
	beq	.L25
	ldr	r0, [r4]
	bl	unlikely
	cmp	r0, #0
	bne	.L9
	ldr	r2, [r9]
	ldr	r1, [r9, #4]
	cmp	r2, #0
	str	r0, [sp, #32]
	bne	.L26
.L10:
	mov	r0, r4
	ldr	r3, [r6]
	bl	km_policy_expired
.L9:
	mov	r0, r4
	bl	xfrm_pol_put
	ldr	r4, [sp, #32]
	b	.L1
.L4:
	ldr	r3, .L27+16
	mov	r0, r5
	ldr	r3, [r3]
	ldr	r5, [r5, r3, lsl #2]
	bl	verify_sec_ctx_len
	cmp	r0, #0
	str	r0, [sp, #32]
	bne	.L6
	cmp	r5, #0
	str	r0, [sp, #40]
	beq	.L7
	mov	r0, r5
	bl	nla_data
	ldr	r3, .L27+20
	mov	r1, r0
	ldr	r2, [r3]
	add	r0, sp, #40
	bl	security_xfrm_policy_alloc
	cmp	r0, #0
	str	r0, [sp, #32]
	bne	.L6
	ldr	r5, [sp, #40]
.L7:
	mov	r3, #0
	add	r2, sp, #32
	str	r3, [sp, #12]
	add	r3, r9, #8
	str	r2, [sp, #16]
	str	r5, [sp, #8]
	str	r3, [sp, #4]
	ldr	r3, [r9, #4]
	mov	r2, r4
	str	r3, [sp]
	mov	r1, r10
	mov	r0, r7
	ldr	r3, [sp, #28]
	bl	xfrm_policy_bysel_ctx
	mov	r4, r0
	ldr	r0, [sp, #40]
	bl	security_xfrm_policy_free
	b	.L5
.L6:
	mov	r4, r0
	b	.L1
.L25:
	ldr	r4, [r8]
	rsb	r4, r4, #0
	b	.L1
.L26:
	mov	r0, r4
	bl	xfrm_policy_delete
	mov	r2, #1
	mov	r0, r4
	mov	r1, r2
	bl	xfrm_audit_policy_delete
	ldr	r1, [r9, #4]
	ldr	r2, [r9]
	b	.L10
.L24:
	bl	__stack_chk_fail
.L28:
	.align	2
.L27:
	.word	.LC0
	.word	ENOENT
	.word	XFRM_POLICY_TYPE_MAIN
	.word	XFRMA_IF_ID
	.word	XFRMA_SEC_CTX
	.word	GFP_KERNEL
	.size	xfrm_add_pol_expire, .-xfrm_add_pol_expire
	.comm	XFRM_POLICY_TYPE_MAIN,4,4
	.comm	XFRMA_SEC_CTX,4,4
	.comm	XFRMA_IF_ID,4,4
	.comm	GFP_KERNEL,4,4
	.comm	ENOENT,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
