	.file	"extr_xfrm_user.c_xfrm_user_rcv_msg.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	xfrm_user_rcv_msg, @function
xfrm_user_rcv_msg:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	r15
	push	r14
	push	r13
	.cfi_offset 15, -24
	.cfi_offset 14, -32
	.cfi_offset 13, -40
	mov	r13, rsi
	push	r12
	.cfi_offset 12, -48
	mov	r12, rdi
	push	rbx
	.cfi_offset 3, -56
	mov	rbx, rdx
	sub	rsp, 72
	mov	edi, DWORD PTR [rdi]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -56[rbp], rax
	xor	eax, eax
	call	sock_net@PLT
	mov	rcx, rsp
	mov	r14, rax
	mov	eax, DWORD PTR XFRMA_MAX[rip]
	add	eax, 1
	cdqe
	lea	rax, 15[0+rax*8]
	mov	rdx, rax
	and	rax, -4096
	sub	rcx, rax
	and	rdx, -16
	mov	rax, rcx
	cmp	rsp, rax
	je	.L3
.L28:
	sub	rsp, 4096
	or	QWORD PTR 4088[rsp], 0
	cmp	rsp, rax
	jne	.L28
.L3:
	and	edx, 4095
	sub	rsp, rdx
	test	rdx, rdx
	jne	.L29
	xor	eax, eax
	mov	r15, rsp
	call	in_compat_syscall@PLT
	test	rax, rax
	jne	.L30
.L5:
	mov	edx, DWORD PTR 0[r13]
	cmp	DWORD PTR XFRM_MSG_MAX[rip], edx
	jl	.L26
	mov	eax, DWORD PTR XFRM_MSG_BASE[rip]
	mov	esi, DWORD PTR CAP_NET_ADMIN[rip]
	mov	rdi, r12
	mov	DWORD PTR -88[rbp], edx
	mov	DWORD PTR -92[rbp], eax
	mov	rax, QWORD PTR xfrm_dispatch[rip]
	mov	QWORD PTR -104[rbp], rax
	call	netlink_net_capable@PLT
	mov	edx, DWORD PTR -88[rbp]
	test	eax, eax
	je	.L31
	mov	ecx, DWORD PTR XFRM_MSG_BASE[rip]
	mov	eax, DWORD PTR XFRM_MSG_GETSA[rip]
	sub	edx, DWORD PTR -92[rbp]
	movsx	rsi, edx
	sub	eax, ecx
	lea	r10, [rsi+rsi*2]
	sal	r10, 4
	add	r10, QWORD PTR -104[rbp]
	cmp	eax, edx
	je	.L9
	mov	eax, DWORD PTR XFRM_MSG_GETPOLICY[rip]
	sub	eax, ecx
	cmp	eax, edx
	je	.L9
.L10:
	mov	r8, QWORD PTR 8[r10]
	mov	rcx, QWORD PTR 16[r10]
	mov	r9, rbx
	mov	rdx, r15
	mov	rax, QWORD PTR xfrm_msg_min[rip]
	mov	rdi, r13
	mov	QWORD PTR -88[rbp], r10
	test	r8, r8
	cmove	r8d, DWORD PTR xfrma_policy[rip]
	test	rcx, rcx
	cmove	ecx, DWORD PTR XFRMA_MAX[rip]
	mov	esi, DWORD PTR [rax+rsi*4]
	call	nlmsg_parse_deprecated@PLT
	test	eax, eax
	js	.L1
	mov	r10, QWORD PTR -88[rbp]
	mov	rax, QWORD PTR [r10]
	test	rax, rax
	je	.L26
	mov	rdx, r15
	mov	rsi, r13
	mov	rdi, r12
	call	rax
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L30:
	mov	eax, DWORD PTR EOPNOTSUPP[rip]
	neg	eax
.L1:
	mov	rbx, QWORD PTR -56[rbp]
	xor	rbx, QWORD PTR fs:40
	jne	.L32
	lea	rsp, -40[rbp]
	pop	rbx
	pop	r12
	pop	r13
	pop	r14
	pop	r15
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa 7, 8
	ret
	.p2align 4,,10
	.p2align 3
.L9:
	.cfi_restore_state
	mov	eax, DWORD PTR 4[r13]
	test	DWORD PTR NLM_F_DUMP[rip], eax
	je	.L10
	mov	rax, QWORD PTR 32[r10]
	test	rax, rax
	jne	.L11
	.p2align 4,,10
	.p2align 3
.L26:
	mov	eax, DWORD PTR EINVAL[rip]
	neg	eax
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L29:
	or	QWORD PTR -8[rsp+rdx], 0
	xor	eax, eax
	mov	r15, rsp
	call	in_compat_syscall@PLT
	test	rax, rax
	je	.L5
	jmp	.L30
	.p2align 4,,10
	.p2align 3
.L31:
	mov	eax, DWORD PTR EPERM[rip]
	neg	eax
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L11:
	mov	edx, DWORD PTR 24[r10]
	mov	QWORD PTR -72[rbp], rax
	lea	rcx, -80[rbp]
	mov	rsi, r12
	mov	eax, DWORD PTR 40[r10]
	mov	edi, DWORD PTR [r14]
	mov	DWORD PTR -80[rbp], edx
	mov	rdx, r13
	mov	DWORD PTR -64[rbp], eax
	call	netlink_dump_start@PLT
	jmp	.L1
.L32:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	xfrm_user_rcv_msg, .-xfrm_user_rcv_msg
	.comm	xfrma_policy,4,4
	.comm	xfrm_msg_min,8,8
	.comm	xfrm_dispatch,8,8
	.comm	XFRM_MSG_MAX,4,4
	.comm	XFRM_MSG_GETSA,4,4
	.comm	XFRM_MSG_GETPOLICY,4,4
	.comm	XFRM_MSG_BASE,4,4
	.comm	XFRMA_MAX,4,4
	.comm	NLM_F_DUMP,4,4
	.comm	EPERM,4,4
	.comm	EOPNOTSUPP,4,4
	.comm	EINVAL,4,4
	.comm	CAP_NET_ADMIN,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_user_rcv_msg.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_user_rcv_msg, %function
xfrm_user_rcv_msg:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	add	fp, sp, #32
	sub	sp, sp, #36
	ldr	r3, .L23
	mov	r4, r0
	ldr	r0, [r0]
	mov	r5, r1
	mov	r6, r2
	ldr	r3, [r3]
	str	r3, [fp, #-40]
	mov	r3,#0
	bl	sock_net
	ldr	r9, .L23+4
	mov	r7, r0
	ldr	r3, [r9]
	lsl	r3, r3, #2
	add	r3, r3, #11
	bic	r3, r3, #7
	sub	sp, sp, r3
	bl	in_compat_syscall
	cmp	r0, #0
	bne	.L20
	ldr	r3, .L23+8
	ldr	r8, [r5]
	ldr	r3, [r3]
	cmp	r3, r8
	bge	.L4
.L18:
	ldr	r3, .L23+12
	ldr	r0, [r3]
	rsb	r0, r0, #0
.L1:
	ldr	r3, .L23
	ldr	r2, [r3]
	ldr	r3, [fp, #-40]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L21
	sub	sp, fp, #32
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L4:
	ldr	r3, .L23+16
	ldr	ip, .L23+20
	ldr	r1, .L23+24
	ldr	r2, [r3]
	ldr	r3, [ip]
	mov	r0, r4
	ldr	r1, [r1]
	str	r3, [fp, #-56]
	str	r2, [fp, #-60]
	bl	netlink_net_capable
	cmp	r0, #0
	ldr	r3, .L23+16
	beq	.L22
	ldr	r1, .L23+28
	ldr	ip, [r3]
	ldr	r2, [fp, #-60]
	ldr	r3, [r1]
	sub	r1, r8, r2
	sub	r3, r3, ip
	cmp	r3, r1
	ldr	r3, [fp, #-56]
	add	r0, r1, r1, lsl #1
	lsl	r8, r0, #3
	add	r10, sp, #8
	add	r0, r3, r0, lsl #3
	beq	.L6
	ldr	r3, .L23+32
	ldr	r3, [r3]
	sub	ip, r3, ip
	cmp	ip, r1
	beq	.L6
.L7:
	ldr	r3, [r0, #8]
	ldr	r0, [r0, #4]
	cmp	r3, #0
	ldreq	r3, [r9]
	cmp	r0, #0
	ldreq	r0, .L23+36
	ldr	ip, .L23+40
	ldreq	r0, [r0]
	ldr	ip, [ip]
	mov	r2, r10
	ldr	r1, [ip, r1, lsl #2]
	stm	sp, {r0, r6}
	mov	r0, r5
	bl	nlmsg_parse_deprecated
	cmp	r0, #0
	blt	.L1
	ldr	r3, [fp, #-56]
	ldr	r3, [r3, r8]
	cmp	r3, #0
	beq	.L18
	mov	r2, r10
	mov	r1, r5
	mov	r0, r4
	blx	r3
	b	.L1
.L20:
	ldr	r3, .L23+44
	ldr	r0, [r3]
	rsb	r0, r0, #0
	b	.L1
.L6:
	ldr	r3, .L23+48
	ldr	ip, [r5, #4]
	ldr	r3, [r3]
	tst	ip, r3
	beq	.L7
	ldr	ip, [r0, #16]
	cmp	ip, #0
	beq	.L18
	ldr	r6, [r0, #12]
	ldr	lr, [r0, #20]
	mov	r2, r5
	ldr	r0, [r7]
	mov	r1, r4
	sub	r3, fp, #52
	str	ip, [fp, #-48]
	str	r6, [fp, #-52]
	str	lr, [fp, #-44]
	bl	netlink_dump_start
	b	.L1
.L22:
	ldr	r3, .L23+52
	ldr	r0, [r3]
	rsb	r0, r0, #0
	b	.L1
.L21:
	bl	__stack_chk_fail
.L24:
	.align	2
.L23:
	.word	.LC0
	.word	XFRMA_MAX
	.word	XFRM_MSG_MAX
	.word	EINVAL
	.word	XFRM_MSG_BASE
	.word	xfrm_dispatch
	.word	CAP_NET_ADMIN
	.word	XFRM_MSG_GETSA
	.word	XFRM_MSG_GETPOLICY
	.word	xfrma_policy
	.word	xfrm_msg_min
	.word	EOPNOTSUPP
	.word	NLM_F_DUMP
	.word	EPERM
	.size	xfrm_user_rcv_msg, .-xfrm_user_rcv_msg
	.comm	xfrma_policy,4,4
	.comm	xfrm_msg_min,4,4
	.comm	xfrm_dispatch,4,4
	.comm	XFRM_MSG_MAX,4,4
	.comm	XFRM_MSG_GETSA,4,4
	.comm	XFRM_MSG_GETPOLICY,4,4
	.comm	XFRM_MSG_BASE,4,4
	.comm	XFRMA_MAX,4,4
	.comm	NLM_F_DUMP,4,4
	.comm	EPERM,4,4
	.comm	EOPNOTSUPP,4,4
	.comm	EINVAL,4,4
	.comm	CAP_NET_ADMIN,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
