	.file	"extr_rdp.c_rdp_recv.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	rdp_recv, @function
rdp_recv:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	mov	rbx, rsi
	sub	rsp, 24
	.cfi_def_cfa_offset 48
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	mov	rax, QWORD PTR rdp_s.1951[rip]
	test	rax, rax
	je	.L2
	mov	rdx, QWORD PTR [rdi]
	cmp	rdx, QWORD PTR 8[rax]
	jnb	.L2
	test	rdx, rdx
	je	.L2
	mov	QWORD PTR [rax], rdx
.L10:
	xor	esi, esi
	mov	rdi, rax
	xor	ebp, ebp
	call	in_uint16_le@PLT
	mov	rdi, QWORD PTR rdp_s.1951[rip]
	mov	esi, ebp
	and	ebp, 15
	call	in_uint16_le@PLT
	mov	rdi, QWORD PTR rdp_s.1951[rip]
	mov	esi, 2
	call	in_uint8s@PLT
	mov	DWORD PTR [rbx], ebp
	mov	rax, QWORD PTR rdp_s.1951[rip]
.L1:
	mov	rcx, QWORD PTR 8[rsp]
	xor	rcx, QWORD PTR fs:40
	jne	.L21
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	lea	rsi, 4[rsp]
	mov	rdi, rbp
	call	sec_recv@PLT
	mov	QWORD PTR rdp_s.1951[rip], rax
	test	rax, rax
	je	.L9
	mov	edx, DWORD PTR 4[rsp]
	cmp	edx, 255
	je	.L22
	cmp	edx, 3
	jne	.L23
	mov	rdx, QWORD PTR [rax]
	mov	QWORD PTR 0[rbp], rdx
	jmp	.L10
	.p2align 4,,10
	.p2align 3
.L23:
	mov	rsi, rax
	mov	rdi, rbp
	call	rdp5_process@PLT
	test	eax, eax
	je	.L9
	mov	DWORD PTR [rbx], 0
	mov	rax, QWORD PTR rdp_s.1951[rip]
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L9:
	xor	eax, eax
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L22:
	mov	rdx, QWORD PTR 8[rax]
	mov	QWORD PTR 0[rbp], rdx
	mov	DWORD PTR [rbx], 0
	jmp	.L1
.L21:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	rdp_recv, .-rdp_recv
	.local	rdp_s.1951
	.comm	rdp_s.1951,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_rdp.c_rdp_recv.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	rdp_recv, %function
rdp_recv:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	ldr	r5, .L23
	mov	r4, r0
	ldr	r0, [r5]
	ldr	r3, .L23+4
	sub	sp, sp, #8
	cmp	r0, #0
	mov	r6, r1
	ldr	r3, [r3]
	str	r3, [sp, #4]
	mov	r3,#0
	beq	.L2
	ldr	r3, [r4]
	ldr	r2, [r0, #4]
	cmp	r3, #0
	cmpne	r3, r2
	bcc	.L3
.L2:
	mov	r1, sp
	mov	r0, r4
	bl	sec_recv
	cmp	r0, #0
	str	r0, [r5]
	beq	.L8
	ldr	r3, [sp]
	cmp	r3, #255
	beq	.L20
	cmp	r3, #3
	bne	.L21
	ldr	r3, [r0]
	str	r3, [r4]
.L9:
	mov	r4, #0
	mov	r1, r4
	bl	in_uint16_le
	mov	r1, r4
	ldr	r0, [r5]
	bl	in_uint16_le
	mov	r1, #2
	ldr	r0, [r5]
	bl	in_uint8s
	and	r4, r4, #15
	ldr	r0, [r5]
	str	r4, [r6]
.L1:
	ldr	r3, .L23+4
	ldr	r2, [r3]
	ldr	r3, [sp, #4]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L22
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, pc}
.L21:
	mov	r1, r0
	mov	r0, r4
	bl	rdp5_process
	cmp	r0, #0
	beq	.L8
	mov	r3, #0
	ldr	r0, [r5]
	str	r3, [r6]
	b	.L1
.L3:
	str	r3, [r0]
	b	.L9
.L8:
	mov	r0, #0
	b	.L1
.L20:
	mov	r3, #0
	ldr	r2, [r0, #4]
	str	r2, [r4]
	str	r3, [r6]
	b	.L1
.L22:
	bl	__stack_chk_fail
.L24:
	.align	2
.L23:
	.word	.LANCHOR0
	.word	.LC0
	.size	rdp_recv, .-rdp_recv
	.bss
	.align	2
	.set	.LANCHOR0,. + 0
	.type	rdp_s.4235, %object
	.size	rdp_s.4235, 4
rdp_s.4235:
	.space	4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
