	.file	"extr_ulpevent.c_sctp_ulpevent_make_rcvmsg.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	sctp_ulpevent_make_rcvmsg
	.type	sctp_ulpevent_make_rcvmsg, @function
sctp_ulpevent_make_rcvmsg:
.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, rdi
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	rbx, rsi
	sub	rsp, 24
	.cfi_def_cfa_offset 80
	mov	rax, QWORD PTR 8[rdi]
	mov	r15, QWORD PTR 32[rsi]
	mov	DWORD PTR 12[rsp], edx
	mov	r14, QWORD PTR 16[rdi]
	cmp	QWORD PTR [rax], 0
	je	.L2
	lea	rdi, 4[rdi]
	call	atomic_read@PLT
	mov	r12d, eax
.L3:
	mov	rax, QWORD PTR 8[rbx]
	mov	edi, DWORD PTR 4[rax]
	call	ntohs@PLT
	mov	rbp, rax
	cmp	DWORD PTR [r14], r12d
	jle	.L19
	mov	rdx, rax
	mov	rsi, r15
	mov	rdi, r14
	call	sk_rmem_schedule@PLT
	test	eax, eax
	je	.L19
	mov	rdi, QWORD PTR 32[rbx]
	mov	esi, DWORD PTR 12[rsp]
	call	skb_clone@PLT
	mov	r14, rax
	test	rax, rax
	je	.L19
	mov	rax, QWORD PTR 16[rbx]
	mov	r12d, DWORD PTR 24[rbx]
	mov	edi, DWORD PTR [rax]
	call	ntohl@PLT
	mov	edx, r12d
	mov	rdi, r13
	mov	esi, eax
	call	sctp_tsnmap_mark@PLT
	test	rax, rax
	jne	.L21
	mov	rdi, rbp
	call	SCTP_PAD4@PLT
	add	rbp, QWORD PTR [rbx]
	sub	rbp, QWORD PTR [r14]
	mov	rdi, r14
	mov	rsi, rbp
	sub	rsi, rax
	call	skb_trim@PLT
	mov	rdi, r14
	call	sctp_skb2event@PLT
	mov	rdx, QWORD PTR 8[r14]
	xor	esi, esi
	mov	rdi, rax
	mov	r12, rax
	add	rdx, 16
	call	sctp_ulpevent_init@PLT
	mov	rdi, rbx
	call	sctp_chunk_hold@PLT
	mov	QWORD PTR 24[r12], rbx
	mov	rsi, r13
	mov	rdi, r12
	call	sctp_ulpevent_receive_data@PLT
	mov	rax, QWORD PTR 16[rbx]
	mov	edi, DWORD PTR 4[rax]
	call	ntohs@PLT
	mov	QWORD PTR 16[r12], rax
	mov	rax, QWORD PTR 8[rbx]
	mov	eax, DWORD PTR [rax]
	test	DWORD PTR SCTP_DATA_UNORDERED[rip], eax
	jne	.L22
.L8:
	mov	rax, QWORD PTR 16[rbx]
	mov	edi, DWORD PTR [rax]
	call	ntohl@PLT
	mov	DWORD PTR 4[r12], eax
	mov	rax, QWORD PTR 8[rbx]
	mov	eax, DWORD PTR [rax]
	or	DWORD PTR [r12], eax
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L21:
	mov	rdi, r14
	call	kfree_skb@PLT
	.p2align 4,,10
	.p2align 3
.L19:
	xor	r12d, r12d
.L1:
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	rax, r12
	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
.L2:
	.cfi_restore_state
	lea	rdi, 4[r14]
	call	atomic_read@PLT
	mov	r12d, eax
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L22:
	mov	eax, DWORD PTR SCTP_UNORDERED[rip]
	or	DWORD PTR 12[r12], eax
	mov	rdi, r13
	call	sctp_tsnmap_get_ctsn@PLT
	mov	DWORD PTR 8[r12], eax
	jmp	.L8
	.cfi_endproc
.LFE0:
	.size	sctp_ulpevent_make_rcvmsg, .-sctp_ulpevent_make_rcvmsg
	.comm	SCTP_UNORDERED,4,4
	.comm	SCTP_DATA_UNORDERED,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_ulpevent.c_sctp_ulpevent_make_rcvmsg.c"
	.text
	.align	2
	.global	sctp_ulpevent_make_rcvmsg
	.syntax unified
	.arm
	.fpu softvfp
	.type	sctp_ulpevent_make_rcvmsg, %function
sctp_ulpevent_make_rcvmsg:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r3, [r0, #8]
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	ldr	r3, [r3]
	ldr	r10, [r0, #12]
	cmp	r3, #0
	mov	r4, r1
	mov	r5, r0
	addne	r0, r0, #4
	addeq	r0, r10, #4
	mov	r8, r2
	ldr	r9, [r1, #16]
	bl	atomic_read
	ldr	r3, [r4, #4]
	mov	r7, r0
	ldr	r0, [r3, #4]
	bl	ntohs
	ldr	r3, [r10]
	mov	r6, r0
	cmp	r3, r7
	ble	.L19
	mov	r1, r9
	mov	r0, r10
	mov	r2, r6
	bl	sk_rmem_schedule
	cmp	r0, #0
	beq	.L19
	mov	r1, r8
	ldr	r0, [r4, #16]
	bl	skb_clone
	subs	r7, r0, #0
	beq	.L19
	ldr	r3, [r4, #8]
	ldr	r0, [r3]
	bl	ntohl
	ldr	r2, [r4, #12]
	mov	r1, r0
	mov	r0, r5
	bl	sctp_tsnmap_mark
	subs	r8, r0, #0
	bne	.L21
	mov	r0, r6
	bl	SCTP_PAD4
	ldr	r3, [r4]
	ldr	r1, [r7]
	add	r6, r6, r3
	sub	r1, r6, r1
	sub	r1, r1, r0
	mov	r0, r7
	bl	skb_trim
	mov	r0, r7
	bl	sctp_skb2event
	mov	r6, r0
	ldr	r2, [r7, #4]
	mov	r1, r8
	add	r2, r2, #8
	bl	sctp_ulpevent_init
	mov	r0, r4
	bl	sctp_chunk_hold
	mov	r1, r5
	mov	r0, r6
	str	r4, [r6, #20]
	bl	sctp_ulpevent_receive_data
	ldr	r3, [r4, #8]
	ldr	r0, [r3, #4]
	bl	ntohs
	ldr	r2, [r4, #4]
	ldr	r3, .L23
	ldr	r2, [r2]
	ldr	r3, [r3]
	str	r0, [r6, #16]
	tst	r2, r3
	bne	.L22
.L8:
	ldr	r3, [r4, #8]
	ldr	r0, [r3]
	bl	ntohl
	ldr	r2, [r4, #4]
	ldr	r3, [r6]
	ldr	r2, [r2]
	str	r0, [r6, #4]
	orr	r3, r3, r2
	mov	r0, r6
	str	r3, [r6]
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L21:
	mov	r0, r7
	bl	kfree_skb
.L19:
	mov	r6, #0
	mov	r0, r6
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L22:
	ldr	r2, .L23+4
	ldr	r3, [r6, #12]
	ldr	r2, [r2]
	mov	r0, r5
	orr	r3, r3, r2
	str	r3, [r6, #12]
	bl	sctp_tsnmap_get_ctsn
	str	r0, [r6, #8]
	b	.L8
.L24:
	.align	2
.L23:
	.word	SCTP_DATA_UNORDERED
	.word	SCTP_UNORDERED
	.size	sctp_ulpevent_make_rcvmsg, .-sctp_ulpevent_make_rcvmsg
	.comm	SCTP_UNORDERED,4,4
	.comm	SCTP_DATA_UNORDERED,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
