	.file	"extr_mad_rmpp.c_continue_rmpp.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	continue_rmpp, @function
continue_rmpp:
.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
	mov	r14, rdi
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12, rsi
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	call	acquire_rmpp_recv@PLT
	test	rax, rax
	je	.L2
	mov	rbp, rax
	mov	rdi, r12
	call	get_seg_num@PLT
	lea	r15, 20[rbp]
	xor	esi, esi
	mov	rdi, r15
	mov	r13d, eax
	call	spin_lock_irqsave@PLT
	mov	rax, QWORD PTR 0[rbp]
	cmp	rax, QWORD PTR RMPP_STATE_TIMEOUT[rip]
	je	.L3
	cmp	DWORD PTR 8[rbp], r13d
	jl	.L3
	cmp	DWORD PTR 12[rbp], r13d
	jge	.L4
	cmp	rax, QWORD PTR RMPP_STATE_COMPLETE[rip]
	je	.L4
	mov	rdi, QWORD PTR 32[rbp]
	mov	esi, r13d
	call	find_seg_location@PLT
	mov	r13, rax
	test	rax, rax
	je	.L3
	mov	rsi, rax
	mov	rdi, r12
	call	list_add@PLT
	cmp	QWORD PTR 24[rbp], r13
	je	.L19
.L7:
	xor	esi, esi
	mov	rdi, r15
	xor	r12d, r12d
	call	spin_unlock_irqrestore@PLT
.L9:
	mov	rdi, rbp
	call	deref_rmpp_recv@PLT
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	rax, r12
	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
.L3:
	.cfi_restore_state
	xor	esi, esi
	mov	rdi, r15
	call	spin_unlock_irqrestore@PLT
.L6:
	mov	rdi, rbp
	call	deref_rmpp_recv@PLT
.L2:
	mov	rdi, r12
	xor	r12d, r12d
	call	ib_free_recv_mad@PLT
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	rax, r12
	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
.L4:
	.cfi_restore_state
	xor	esi, esi
	mov	rdi, r15
	call	spin_unlock_irqrestore@PLT
	mov	rsi, r12
	mov	rdi, rbp
	call	ack_recv@PLT
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L19:
	mov	rdi, rbp
	mov	rsi, r12
	call	update_seg_num@PLT
	mov	rdi, QWORD PTR 24[rbp]
	call	get_last_flag@PLT
	test	rax, rax
	jne	.L20
	mov	eax, DWORD PTR 8[rbp]
	cmp	DWORD PTR 16[rbp], eax
	jne	.L7
	mov	rdi, r14
	call	window_size@PLT
	add	DWORD PTR 8[rbp], eax
	xor	esi, esi
	mov	rdi, r15
	call	spin_unlock_irqrestore@PLT
	mov	rsi, r12
	mov	rdi, rbp
	xor	r12d, r12d
	call	ack_recv@PLT
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L20:
	mov	rax, QWORD PTR RMPP_STATE_COMPLETE[rip]
	xor	esi, esi
	mov	rdi, r15
	mov	QWORD PTR 0[rbp], rax
	call	spin_unlock_irqrestore@PLT
	mov	rdi, rbp
	call	complete_rmpp@PLT
	mov	r12, rax
	jmp	.L9
	.cfi_endproc
.LFE0:
	.size	continue_rmpp, .-continue_rmpp
	.comm	RMPP_STATE_TIMEOUT,8,8
	.comm	RMPP_STATE_COMPLETE,8,8
	.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_mad_rmpp.c_continue_rmpp.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	continue_rmpp, %function
continue_rmpp:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	mov	r7, r0
	mov	r6, r1
	bl	acquire_rmpp_recv
	subs	r4, r0, #0
	beq	.L2
	mov	r0, r6
	bl	get_seg_num
	add	r8, r4, #16
	mov	r5, r0
	mov	r1, #0
	mov	r0, r8
	bl	spin_lock_irqsave
	ldr	r2, .L21
	ldr	r3, [r4]
	ldr	r2, [r2]
	cmp	r3, r2
	beq	.L3
	ldr	r2, [r4, #4]
	cmp	r2, r5
	blt	.L3
	ldr	r2, [r4, #8]
	cmp	r2, r5
	bge	.L4
	ldr	r9, .L21+4
	ldr	r2, [r9]
	cmp	r3, r2
	beq	.L4
	mov	r1, r5
	ldr	r0, [r4, #24]
	bl	find_seg_location
	subs	r5, r0, #0
	beq	.L3
	mov	r1, r5
	mov	r0, r6
	bl	list_add
	ldr	r3, [r4, #20]
	cmp	r3, r5
	beq	.L19
.L7:
	mov	r0, r8
	mov	r1, #0
	bl	spin_unlock_irqrestore
	mov	r5, #0
.L9:
	mov	r0, r4
	bl	deref_rmpp_recv
	mov	r0, r5
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L3:
	mov	r0, r8
	mov	r1, #0
	bl	spin_unlock_irqrestore
.L6:
	mov	r0, r4
	bl	deref_rmpp_recv
.L2:
	mov	r5, #0
	mov	r0, r6
	bl	ib_free_recv_mad
	mov	r0, r5
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L4:
	mov	r0, r8
	mov	r1, #0
	bl	spin_unlock_irqrestore
	mov	r1, r6
	mov	r0, r4
	bl	ack_recv
	b	.L6
.L19:
	mov	r1, r6
	mov	r0, r4
	bl	update_seg_num
	ldr	r0, [r4, #20]
	bl	get_last_flag
	subs	r5, r0, #0
	bne	.L20
	ldr	r2, [r4, #12]
	ldr	r3, [r4, #4]
	cmp	r2, r3
	bne	.L7
	mov	r0, r7
	bl	window_size
	mov	r2, r0
	ldr	r3, [r4, #4]
	mov	r0, r8
	add	r3, r3, r2
	mov	r1, #0
	str	r3, [r4, #4]
	bl	spin_unlock_irqrestore
	mov	r1, r6
	mov	r0, r4
	bl	ack_recv
	b	.L9
.L20:
	ldr	r3, [r9]
	mov	r1, #0
	str	r3, [r4]
	mov	r0, r8
	bl	spin_unlock_irqrestore
	mov	r0, r4
	bl	complete_rmpp
	mov	r5, r0
	b	.L9
.L22:
	.align	2
.L21:
	.word	RMPP_STATE_TIMEOUT
	.word	RMPP_STATE_COMPLETE
	.size	continue_rmpp, .-continue_rmpp
	.comm	RMPP_STATE_TIMEOUT,4,4
	.comm	RMPP_STATE_COMPLETE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
