	.file	"extr_af_key.c_pfkey_recvmsg.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	pfkey_recvmsg, @function
pfkey_recvmsg:
.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
	mov	r12, rcx
	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
	mov	ebx, r8d
	sub	rsp, 40
	.cfi_def_cfa_offset 96
	mov	r14, QWORD PTR [rsi]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 24[rsp], rax
	xor	eax, eax
	mov	rdi, r14
	call	pfkey_sk@PLT
	mov	edx, DWORD PTR MSG_DONTWAIT[rip]
	mov	r8d, DWORD PTR EINVAL[rip]
	mov	QWORD PTR 8[rsp], rax
	mov	eax, DWORD PTR MSG_PEEK[rip]
	neg	r8d
	or	eax, edx
	or	eax, DWORD PTR MSG_TRUNC[rip]
	or	eax, DWORD PTR MSG_CMSG_COMPAT[rip]
	mov	DWORD PTR 20[rsp], r8d
	not	eax
	test	eax, ebx
	je	.L16
.L1:
	mov	rax, QWORD PTR 24[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L17
	add	rsp, 40
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	eax, r8d
	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
.L16:
	.cfi_restore_state
	mov	QWORD PTR 8[rbp], 0
	and	edx, ebx
	mov	esi, ebx
	mov	rdi, r14
	lea	rcx, 20[rsp]
	call	skb_recv_datagram@PLT
	mov	r13, rax
	test	rax, rax
	je	.L14
	movsx	rax, DWORD PTR [rax]
	mov	r15, rax
	cmp	rax, r12
	jbe	.L4
	mov	eax, DWORD PTR MSG_TRUNC[rip]
	or	DWORD PTR 0[rbp], eax
	mov	r15d, r12d
.L4:
	mov	rdi, r13
	call	skb_reset_transport_header@PLT
	mov	edx, DWORD PTR 4[rbp]
	mov	ecx, r15d
	xor	esi, esi
	mov	rdi, r13
	call	skb_copy_datagram_iovec@PLT
	mov	DWORD PTR 20[rsp], eax
	test	eax, eax
	je	.L18
.L6:
	mov	rsi, r13
	mov	rdi, r14
	call	skb_free_datagram@PLT
.L14:
.L2:
	endbr64
	mov	r8d, DWORD PTR 20[rsp]
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L18:
	mov	rdx, r13
	mov	rsi, r14
	mov	rdi, rbp
	call	sock_recv_ts_and_drops@PLT
	test	DWORD PTR MSG_TRUNC[rip], ebx
	je	.L7
	mov	r15d, DWORD PTR 0[r13]
.L7:
	mov	rax, QWORD PTR 8[rsp]
	mov	DWORD PTR 20[rsp], r15d
	cmp	QWORD PTR [rax], 0
	je	.L6
	lea	rdi, 4[r14]
	call	atomic_read@PLT
	lea	eax, [rax+rax*2]
	cmp	eax, DWORD PTR [r14]
	jg	.L6
	mov	rdi, QWORD PTR 8[rsp]
	call	pfkey_do_dump@PLT
	jmp	.L6
.L17:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	pfkey_recvmsg, .-pfkey_recvmsg
	.comm	MSG_TRUNC,4,4
	.comm	MSG_PEEK,4,4
	.comm	MSG_DONTWAIT,4,4
	.comm	MSG_CMSG_COMPAT,4,4
	.comm	EINVAL,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_af_key.c_pfkey_recvmsg.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	pfkey_recvmsg, %function
pfkey_recvmsg:
	@ args = 4, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	ldr	r7, [r1]
	mov	r6, r3
	ldr	r3, .L22
	sub	sp, sp, #12
	mov	r0, r7
	mov	r4, r2
	ldr	r3, [r3]
	str	r3, [sp, #4]
	mov	r3,#0
	ldr	r5, [sp, #48]
	bl	pfkey_sk
	ldr	r3, .L22+4
	ldr	r2, .L22+8
	ldr	r8, .L22+12
	ldr	r1, [r3]
	ldr	r2, [r2]
	ldr	r3, [r8]
	ldr	ip, .L22+16
	orr	r1, r2, r1
	orr	r1, r1, r3
	ldr	r3, .L22+20
	ldr	ip, [ip]
	ldr	r3, [r3]
	orr	r1, r1, ip
	rsb	r3, r3, #0
	bics	r1, r5, r1
	str	r3, [sp]
	beq	.L19
.L1:
	ldr	r2, .L22
	ldr	r1, [r2]
	ldr	r2, [sp, #4]
	eors	r1, r2, r1
	mov	r2, #0
	bne	.L20
	mov	r0, r3
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L19:
	str	r1, [r4, #8]
	mov	r9, r0
	mov	r3, sp
	mov	r1, r5
	mov	r0, r7
	and	r2, r2, r5
	bl	skb_recv_datagram
	subs	r10, r0, #0
	beq	.L17
	ldr	fp, [r10]
	mov	r0, r10
	cmp	fp, r6
	movhi	fp, r6
	ldrhi	r3, [r4]
	ldrhi	r2, [r8]
	orrhi	r3, r3, r2
	strhi	r3, [r4]
	bl	skb_reset_transport_header
	mov	r3, fp
	mov	r1, #0
	mov	r0, r10
	ldr	r2, [r4, #4]
	bl	skb_copy_datagram_iovec
	cmp	r0, #0
	str	r0, [sp]
	beq	.L21
.L6:
	mov	r1, r10
	mov	r0, r7
	bl	skb_free_datagram
.L17:
.L2:
	ldr	r3, [sp]
	b	.L1
.L21:
	mov	r0, r4
	mov	r2, r10
	mov	r1, r7
	bl	sock_recv_ts_and_drops
	ldr	r3, [r8]
	tst	r5, r3
	ldr	r3, [r9]
	ldrne	fp, [r10]
	cmp	r3, #0
	str	fp, [sp]
	beq	.L6
	add	r0, r7, #4
	bl	atomic_read
	ldr	r3, [r7]
	add	r0, r0, r0, lsl #1
	cmp	r0, r3
	bgt	.L6
	mov	r0, r9
	bl	pfkey_do_dump
	b	.L6
.L20:
	bl	__stack_chk_fail
.L23:
	.align	2
.L22:
	.word	.LC0
	.word	MSG_PEEK
	.word	MSG_DONTWAIT
	.word	MSG_TRUNC
	.word	MSG_CMSG_COMPAT
	.word	EINVAL
	.size	pfkey_recvmsg, .-pfkey_recvmsg
	.comm	MSG_TRUNC,4,4
	.comm	MSG_PEEK,4,4
	.comm	MSG_DONTWAIT,4,4
	.comm	MSG_CMSG_COMPAT,4,4
	.comm	EINVAL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
