	.file	"extr_33971.c_avp3_recv.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	avp3_recv
	.type	avp3_recv, @function
avp3_recv:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	mov	r14, rdx
	mov	edx, 8
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	mov	r12, rsi
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	mov	ebp, edi
	sub	rsp, 72
	.cfi_def_cfa_offset 112
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 56[rsp], rax
	xor	eax, eax
	lea	r13, 16[rsp]
	mov	rsi, r13
	call	tcp_recv@PLT
	test	rax, rax
	js	.L5
	test	r12, r12
	je	.L4
	mov	edx, 16
	mov	rsi, r12
	mov	rdi, r13
	call	getxx@PLT
.L4:
	lea	rsi, 8[rsp]
	lea	rdi, 24[rsp]
	mov	edx, 16
	call	getxx@PLT
	mov	edx, 32
	lea	rsi, 12[rsp]
	lea	rdi, 32[rsp]
	call	getxx@PLT
	mov	edx, DWORD PTR 8[rsp]
	cmp	edx, DWORD PTR BUFFSZ[rip]
	jg	.L5
	mov	rsi, r14
	mov	edi, ebp
	call	tcp_recv@PLT
	test	rax, rax
	js	.L5
	mov	eax, DWORD PTR 8[rsp]
.L1:
	mov	rcx, QWORD PTR 56[rsp]
	xor	rcx, QWORD PTR fs:40
	jne	.L12
	add	rsp, 72
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L5:
	.cfi_restore_state
	mov	eax, -1
	jmp	.L1
.L12:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	avp3_recv, .-avp3_recv
	.comm	BUFFSZ,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_33971.c_avp3_recv.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	avp3_recv
	.syntax unified
	.arm
	.fpu softvfp
	.type	avp3_recv, %function
avp3_recv:
	@ args = 0, pretend = 0, frame = 48
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	ldr	r3, .L13
	sub	sp, sp, #48
	mov	r4, r1
	mov	r6, r2
	add	r1, sp, #12
	mov	r2, #8
	ldr	r3, [r3]
	str	r3, [sp, #44]
	mov	r3,#0
	mov	r5, r0
	bl	tcp_recv
	cmp	r0, #0
	blt	.L5
	cmp	r4, #0
	beq	.L4
	mov	r1, r4
	mov	r2, #16
	add	r0, sp, #12
	bl	getxx
.L4:
	mov	r2, #16
	add	r1, sp, #4
	add	r0, sp, #20
	bl	getxx
	mov	r2, #32
	add	r1, sp, #8
	add	r0, sp, #28
	bl	getxx
	ldr	r3, .L13+4
	ldr	r2, [sp, #4]
	ldr	r3, [r3]
	cmp	r2, r3
	bgt	.L5
	mov	r1, r6
	mov	r0, r5
	bl	tcp_recv
	cmp	r0, #0
	blt	.L5
	ldr	r0, [sp, #4]
.L1:
	ldr	r3, .L13
	ldr	r2, [r3]
	ldr	r3, [sp, #44]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L12
	add	sp, sp, #48
	@ sp needed
	pop	{r4, r5, r6, pc}
.L5:
	mvn	r0, #0
	b	.L1
.L12:
	bl	__stack_chk_fail
.L14:
	.align	2
.L13:
	.word	.LC0
	.word	BUFFSZ
	.size	avp3_recv, .-avp3_recv
	.comm	BUFFSZ,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
