	.file	"extr_kcmsock.c_kcm_recvmsg.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	kcm_recvmsg, @function
kcm_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	r12d, ecx
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	rbx, rdx
	sub	rsp, 56
	.cfi_def_cfa_offset 112
	mov	rbp, QWORD PTR 8[rdi]
	mov	QWORD PTR 24[rsp], rdi
	mov	QWORD PTR 8[rsp], rsi
	mov	rdi, rbp
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 40[rsp], rax
	xor	eax, eax
	call	kcm_sk@PLT
	mov	esi, DWORD PTR MSG_DONTWAIT[rip]
	mov	rdi, rbp
	mov	DWORD PTR 36[rsp], 0
	mov	QWORD PTR 16[rsp], rax
	and	esi, r12d
	call	sock_rcvtimeo@PLT
	mov	rdi, rbp
	mov	r13, rax
	call	lock_sock@PLT
	lea	rcx, 36[rsp]
	mov	rdx, r13
	mov	esi, r12d
	mov	rdi, rbp
	call	kcm_wait_data@PLT
	test	rax, rax
	je	.L15
	mov	rdi, rax
	mov	r13, rax
	call	strp_msg@PLT
	mov	rdx, QWORD PTR 8[rsp]
	mov	rdi, r13
	cmp	QWORD PTR [rax], rbx
	cmovbe	rbx, QWORD PTR [rax]
	mov	r14, rax
	mov	esi, DWORD PTR 8[rax]
	mov	rcx, rbx
	call	skb_copy_datagram_msg@PLT
	mov	DWORD PTR 36[rsp], eax
	test	eax, eax
	js	.L15
	xor	edi, edi
	test	DWORD PTR MSG_PEEK[rip], r12d
	mov	r15d, ebx
	sete	dil
	call	likely@PLT
	test	rax, rax
	jne	.L17
.L5:
	mov	rdi, rbp
	call	release_sock@PLT
	test	ebx, ebx
	jne	.L1
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L15:
	mov	rdi, rbp
	call	release_sock@PLT
.L3:
	mov	r15d, DWORD PTR 36[rsp]
.L1:
	mov	rax, QWORD PTR 40[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L18
	add	rsp, 56
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	eax, r15d
	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
.L17:
	.cfi_restore_state
	mov	rax, QWORD PTR 16[rsp]
	mov	esi, ebx
	mov	edi, DWORD PTR 4[rax]
	call	KCM_STATS_ADD@PLT
	mov	rax, QWORD PTR [r14]
	movsx	rdx, ebx
	cmp	rdx, rax
	jnb	.L6
	mov	rcx, QWORD PTR 24[rsp]
	mov	rsi, QWORD PTR SOCK_DGRAM[rip]
	cmp	QWORD PTR [rcx], rsi
	je	.L19
	sub	rax, rdx
	add	DWORD PTR 8[r14], ebx
	mov	QWORD PTR [r14], rax
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L6:
	mov	rax, QWORD PTR 8[rsp]
	mov	eax, DWORD PTR [rax]
.L8:
	mov	rdx, QWORD PTR 8[rsp]
	or	eax, DWORD PTR MSG_EOR[rip]
	mov	DWORD PTR [rdx], eax
	mov	rax, QWORD PTR 16[rsp]
	mov	edi, DWORD PTR [rax]
	call	KCM_STATS_INCR@PLT
	mov	rdi, r13
	mov	rsi, rbp
	call	skb_unlink@PLT
	mov	rdi, r13
	call	kfree_skb@PLT
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L19:
	mov	rdx, QWORD PTR 8[rsp]
	mov	eax, DWORD PTR [rdx]
	or	eax, DWORD PTR MSG_TRUNC[rip]
	mov	DWORD PTR [rdx], eax
	jmp	.L8
.L18:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	kcm_recvmsg, .-kcm_recvmsg
	.comm	SOCK_DGRAM,8,8
	.comm	MSG_TRUNC,4,4
	.comm	MSG_PEEK,4,4
	.comm	MSG_EOR,4,4
	.comm	MSG_DONTWAIT,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_kcmsock.c_kcm_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	kcm_recvmsg, %function
kcm_recvmsg:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	ldr	r4, [r0, #4]
	mov	r5, r3
	ldr	r3, .L20
	sub	sp, sp, #20
	mov	r8, r0
	mov	r0, r4
	mov	r9, r1
	mov	r7, r2
	ldr	r3, [r3]
	str	r3, [sp, #12]
	mov	r3,#0
	bl	kcm_sk
	mov	r3, #0
	mov	fp, r0
	ldr	r2, .L20+4
	mov	r0, r4
	ldr	r1, [r2]
	str	r3, [sp, #8]
	and	r1, r1, r5
	str	fp, [sp, #4]
	bl	sock_rcvtimeo
	mov	r6, r0
	mov	r0, r4
	bl	lock_sock
	mov	r2, r6
	mov	r0, r4
	mov	r1, r5
	add	r3, sp, #8
	bl	kcm_wait_data
	subs	r6, r0, #0
	beq	.L15
	bl	strp_msg
	ldr	r3, [r0]
	ldr	r1, [r0, #4]
	cmp	r7, r3
	movcs	r7, r3
	mov	r10, r0
	mov	r2, r9
	mov	r3, r7
	mov	r0, r6
	bl	skb_copy_datagram_msg
	cmp	r0, #0
	str	r0, [sp, #8]
	blt	.L15
	ldr	r2, .L20+8
	mov	fp, r7
	ldr	r2, [r2]
	tst	r5, r2
	moveq	r0, #1
	movne	r0, #0
	bl	likely
	cmp	r0, #0
	bne	.L17
.L5:
	mov	r0, r4
	bl	release_sock
	cmp	r7, #0
	bne	.L1
	b	.L3
.L15:
	mov	r0, r4
	bl	release_sock
.L3:
	ldr	fp, [sp, #8]
.L1:
	ldr	r3, .L20
	ldr	r2, [r3]
	ldr	r3, [sp, #12]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L18
	mov	r0, fp
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L17:
	ldr	r3, [sp, #4]
	mov	r1, r7
	ldr	r0, [r3, #4]
	bl	KCM_STATS_ADD
	ldr	r2, [r10]
	cmp	r2, r7
	bls	.L6
	ldr	r1, .L20+12
	ldr	r0, [r8]
	ldr	r1, [r1]
	cmp	r0, r1
	beq	.L19
	ldr	r1, [r10, #4]
	sub	r2, r2, r7
	add	r1, r1, r7
	str	r2, [r10]
	str	r1, [r10, #4]
	b	.L5
.L6:
	ldr	r1, [r9]
.L8:
	ldr	r2, .L20+16
	ldr	r3, [sp, #4]
	ldr	r2, [r2]
	ldr	r0, [r3]
	orr	r2, r2, r1
	str	r2, [r9]
	bl	KCM_STATS_INCR
	mov	r1, r4
	mov	r0, r6
	bl	skb_unlink
	mov	r0, r6
	bl	kfree_skb
	b	.L5
.L19:
	ldr	r1, .L20+20
	ldr	r2, [r9]
	ldr	r1, [r1]
	orr	r1, r2, r1
	str	r1, [r9]
	b	.L8
.L18:
	bl	__stack_chk_fail
.L21:
	.align	2
.L20:
	.word	.LC0
	.word	MSG_DONTWAIT
	.word	MSG_PEEK
	.word	SOCK_DGRAM
	.word	MSG_EOR
	.word	MSG_TRUNC
	.size	kcm_recvmsg, .-kcm_recvmsg
	.comm	SOCK_DGRAM,4,4
	.comm	MSG_TRUNC,4,4
	.comm	MSG_PEEK,4,4
	.comm	MSG_EOR,4,4
	.comm	MSG_DONTWAIT,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
