	.file	"extr_udp.c_udp_recvmsg.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	udp_recvmsg
	.type	udp_recvmsg, @function
udp_recvmsg:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	mov	rdi, rsi
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13, rdx
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12d, r9d
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	rbp, rsi
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 88
	.cfi_def_cfa_offset 144
	mov	rax, QWORD PTR 144[rsp]
	mov	QWORD PTR 24[rsp], rcx
	mov	DWORD PTR 32[rsp], r8d
	mov	QWORD PTR 48[rsp], rax
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 72[rsp], rax
	xor	eax, eax
	call	inet_sk@PLT
	mov	rdi, rbp
	mov	QWORD PTR 56[rsp], rax
	mov	rax, QWORD PTR 8[r13]
	mov	QWORD PTR 40[rsp], rax
	call	IS_UDPLITE@PLT
	mov	DWORD PTR 36[rsp], eax
	test	DWORD PTR MSG_ERRQUEUE[rip], r12d
	jne	.L38
.L2:
	endbr64
	mov	ecx, DWORD PTR 32[rsp]
	test	ecx, ecx
	je	.L39
	lea	rax, 68[rsp]
	mov	esi, DWORD PTR MSG_DONTWAIT[rip]
	lea	r14, 64[rsp]
	mov	QWORD PTR 8[rsp], rax
	or	esi, r12d
.L4:
	mov	rcx, QWORD PTR 8[rsp]
	mov	rdx, r14
	mov	rdi, rbp
	call	__skb_recv_datagram@PLT
	mov	r15, rax
	test	rax, rax
	je	.L5
	mov	eax, DWORD PTR [rax]
	lea	ebx, -4[rax]
	mov	rax, QWORD PTR 24[rsp]
	mov	DWORD PTR 20[rsp], eax
	cmp	ebx, eax
	jb	.L21
	jbe	.L6
	mov	eax, DWORD PTR MSG_TRUNC[rip]
	or	DWORD PTR 0[r13], eax
.L7:
	mov	rdi, r15
	call	udp_lib_checksum_complete@PLT
	test	rax, rax
	jne	.L9
.L8:
	mov	rdi, r15
	call	skb_csum_unnecessary@PLT
	mov	edx, DWORD PTR 4[r13]
	test	rax, rax
	jne	.L40
	mov	esi, 4
	mov	rdi, r15
	call	skb_copy_and_csum_datagram_iovec@PLT
	mov	ecx, eax
	add	ecx, DWORD PTR EINVAL[rip]
	mov	DWORD PTR 68[rsp], eax
	jne	.L11
.L9:
	mov	rdi, rbp
	call	lock_sock@PLT
	mov	edx, r12d
	mov	rsi, r15
	mov	rdi, rbp
	call	skb_kill_datagram@PLT
	test	eax, eax
	je	.L41
	mov	rdi, rbp
	call	release_sock@PLT
	mov	eax, DWORD PTR 32[rsp]
	test	eax, eax
	jne	.L42
.L20:
	mov	esi, r12d
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L21:
	mov	DWORD PTR 20[rsp], ebx
.L6:
	mov	rdi, r15
	call	UDP_SKB_CB@PLT
	cmp	QWORD PTR [rax], 0
	je	.L8
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L41:
	mov	ebx, DWORD PTR UDP_MIB_INERRORS[rip]
	mov	rdi, rbp
	call	sock_net@PLT
	mov	edx, DWORD PTR 36[rsp]
	mov	edi, eax
	mov	esi, ebx
	call	UDP_INC_STATS_USER@PLT
	mov	rdi, rbp
	call	release_sock@PLT
	mov	eax, DWORD PTR 32[rsp]
	test	eax, eax
	je	.L20
.L42:
	mov	eax, DWORD PTR EAGAIN[rip]
	neg	eax
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L40:
	mov	ecx, DWORD PTR 20[rsp]
	mov	esi, 4
	mov	rdi, r15
	call	skb_copy_datagram_iovec@PLT
	mov	DWORD PTR 68[rsp], eax
.L11:
	test	eax, eax
	jne	.L13
	mov	edx, DWORD PTR 64[rsp]
	test	edx, edx
	jne	.L14
	mov	r14d, DWORD PTR UDP_MIB_INDATAGRAMS[rip]
	mov	rdi, rbp
	call	sock_net@PLT
	mov	edx, DWORD PTR 36[rsp]
	mov	edi, eax
	mov	esi, r14d
	call	UDP_INC_STATS_USER@PLT
.L14:
	mov	rdx, r15
	mov	rsi, rbp
	mov	rdi, r13
	call	sock_recv_ts_and_drops@PLT
	cmp	QWORD PTR 40[rsp], 0
	je	.L15
	mov	r14, QWORD PTR 40[rsp]
	mov	eax, DWORD PTR AF_INET[rip]
	mov	rdi, r15
	mov	DWORD PTR 12[r14], eax
	call	udp_hdr@PLT
	mov	rdi, r15
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR 8[r14], eax
	call	ip_hdr@PLT
	mov	edi, DWORD PTR [r14]
	mov	edx, 4
	xor	esi, esi
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR 4[r14], eax
	call	memset@PLT
	mov	rax, QWORD PTR 48[rsp]
	mov	DWORD PTR [rax], 16
.L15:
	mov	rax, QWORD PTR 56[rsp]
	cmp	QWORD PTR [rax], 0
	je	.L16
	mov	rsi, r15
	mov	rdi, r13
	call	ip_cmsg_recv@PLT
.L16:
	test	DWORD PTR MSG_TRUNC[rip], r12d
	cmove	ebx, DWORD PTR 20[rsp]
	mov	DWORD PTR 68[rsp], ebx
.L13:
	mov	rsi, r15
	mov	rdi, rbp
	call	skb_free_datagram_locked@PLT
.L5:
	mov	eax, DWORD PTR 68[rsp]
.L1:
	mov	rbx, QWORD PTR 72[rsp]
	xor	rbx, QWORD PTR fs:40
	jne	.L43
	add	rsp, 88
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	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
.L38:
	.cfi_restore_state
	mov	rcx, QWORD PTR 48[rsp]
	mov	rdx, QWORD PTR 24[rsp]
	mov	rsi, r13
	mov	rdi, rbp
	call	ip_recv_error@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L39:
	lea	rax, 68[rsp]
	lea	r14, 64[rsp]
	mov	QWORD PTR 8[rsp], rax
	jmp	.L20
.L43:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	udp_recvmsg, .-udp_recvmsg
	.comm	UDP_MIB_INERRORS,4,4
	.comm	UDP_MIB_INDATAGRAMS,4,4
	.comm	MSG_TRUNC,4,4
	.comm	MSG_ERRQUEUE,4,4
	.comm	MSG_DONTWAIT,4,4
	.comm	EINVAL,4,4
	.comm	EAGAIN,4,4
	.comm	AF_INET,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_udp.c_udp_recvmsg.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	udp_recvmsg
	.syntax unified
	.arm
	.fpu softvfp
	.type	udp_recvmsg, %function
udp_recvmsg:
	@ args = 12, pretend = 0, frame = 40
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mov	r8, r3
	ldr	r3, .L54
	sub	sp, sp, #44
	ldr	r3, [r3]
	str	r3, [sp, #36]
	mov	r3,#0
	ldr	r3, [sp, #88]
	mov	r0, r1
	mov	r5, r1
	mov	r9, r2
	ldr	r7, [sp, #84]
	str	r3, [sp, #16]
	bl	inet_sk
	mov	r3, r0
	str	r3, [sp, #20]
	ldr	r3, [r9, #8]
	mov	r0, r5
	str	r3, [sp, #12]
	bl	IS_UDPLITE
	ldr	r3, .L54+4
	str	r0, [sp, #8]
	ldr	r3, [r3]
	tst	r7, r3
	bne	.L46
.L2:
	ldr	r3, [sp, #80]
	cmp	r3, #0
	addeq	fp, sp, #32
	addeq	r10, sp, #28
	beq	.L20
	ldr	r3, .L54+8
	add	fp, sp, #32
	ldr	r1, [r3]
	add	r10, sp, #28
	orr	r1, r7, r1
.L4:
	mov	r3, fp
	mov	r2, r10
	mov	r0, r5
	bl	__skb_recv_datagram
	subs	r4, r0, #0
	beq	.L5
	ldr	r6, [r4]
	sub	r6, r6, #4
	cmp	r6, r8
	bcc	.L21
	bls	.L22
	ldr	r2, .L54+12
	ldr	r3, [r9]
	ldr	r2, [r2]
	str	r8, [sp, #4]
	orr	r3, r3, r2
	str	r3, [r9]
.L7:
	mov	r0, r4
	bl	udp_lib_checksum_complete
	cmp	r0, #0
	bne	.L9
	mov	r0, r4
	bl	skb_csum_unnecessary
	cmp	r0, #0
	bne	.L47
.L10:
	mov	r1, #4
	mov	r0, r4
	ldr	r2, [r9, #4]
	bl	skb_copy_and_csum_datagram_iovec
	ldr	r3, .L54+16
	str	r0, [sp, #32]
	ldr	r3, [r3]
	cmn	r0, r3
	bne	.L11
.L9:
	mov	r0, r5
	bl	lock_sock
	mov	r2, r7
	mov	r1, r4
	mov	r0, r5
	bl	skb_kill_datagram
	cmp	r0, #0
	beq	.L48
.L18:
	mov	r0, r5
	bl	release_sock
	ldr	r3, [sp, #80]
	cmp	r3, #0
	bne	.L49
.L20:
	mov	r1, r7
	b	.L4
.L21:
	str	r6, [sp, #4]
.L6:
	mov	r0, r4
	bl	UDP_SKB_CB
	ldr	r3, [r0]
	cmp	r3, #0
	bne	.L7
	mov	r0, r4
	bl	skb_csum_unnecessary
	cmp	r0, #0
	beq	.L10
.L47:
	mov	r1, #4
	mov	r0, r4
	ldr	r3, [sp, #4]
	ldr	r2, [r9, #4]
	bl	skb_copy_datagram_iovec
	str	r0, [sp, #32]
.L11:
	cmp	r0, #0
	bne	.L13
	ldr	r3, [sp, #28]
	cmp	r3, #0
	beq	.L50
.L14:
	mov	r2, r4
	mov	r1, r5
	mov	r0, r9
	bl	sock_recv_ts_and_drops
	ldr	r3, [sp, #12]
	cmp	r3, #0
	bne	.L51
.L15:
	ldr	r3, [sp, #20]
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L52
.L16:
	ldr	r3, .L54+12
	ldr	r3, [r3]
	tst	r7, r3
	ldr	r3, [sp, #4]
	movne	r3, r6
	str	r3, [sp, #32]
.L13:
	mov	r1, r4
	mov	r0, r5
	bl	skb_free_datagram_locked
.L5:
	ldr	r0, [sp, #32]
.L1:
	ldr	r3, .L54
	ldr	r2, [r3]
	ldr	r3, [sp, #36]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L53
	add	sp, sp, #44
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L48:
	mov	r0, r5
	bl	sock_net
	ldr	r3, .L54+20
	ldr	r2, [sp, #8]
	ldr	r1, [r3]
	bl	UDP_INC_STATS_USER
	b	.L18
.L22:
	str	r8, [sp, #4]
	b	.L6
.L49:
	ldr	r3, .L54+24
	ldr	r0, [r3]
	rsb	r0, r0, #0
	b	.L1
.L46:
	mov	r2, r8
	mov	r1, r9
	mov	r0, r5
	ldr	r3, [sp, #16]
	bl	ip_recv_error
	b	.L1
.L52:
	mov	r0, r9
	mov	r1, r4
	bl	ip_cmsg_recv
	b	.L16
.L51:
	ldr	r3, .L54+28
	ldr	r8, [sp, #12]
	ldr	r3, [r3]
	mov	r0, r4
	str	r3, [r8, #12]
	bl	udp_hdr
	ldr	r3, [r0]
	mov	r0, r4
	str	r3, [r8, #8]
	bl	ip_hdr
	ldr	r3, [r0]
	mov	r2, #4
	str	r3, [r8, #4]
	mov	r1, #0
	ldr	r0, [r8]
	bl	memset
	mov	r3, #16
	ldr	r2, [sp, #16]
	str	r3, [r2]
	b	.L15
.L50:
	mov	r0, r5
	bl	sock_net
	ldr	r3, .L54+32
	ldr	r2, [sp, #8]
	ldr	r1, [r3]
	bl	UDP_INC_STATS_USER
	b	.L14
.L53:
	bl	__stack_chk_fail
.L55:
	.align	2
.L54:
	.word	.LC0
	.word	MSG_ERRQUEUE
	.word	MSG_DONTWAIT
	.word	MSG_TRUNC
	.word	EINVAL
	.word	UDP_MIB_INERRORS
	.word	EAGAIN
	.word	AF_INET
	.word	UDP_MIB_INDATAGRAMS
	.size	udp_recvmsg, .-udp_recvmsg
	.comm	UDP_MIB_INERRORS,4,4
	.comm	UDP_MIB_INDATAGRAMS,4,4
	.comm	MSG_TRUNC,4,4
	.comm	MSG_ERRQUEUE,4,4
	.comm	MSG_DONTWAIT,4,4
	.comm	EINVAL,4,4
	.comm	EAGAIN,4,4
	.comm	AF_INET,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
