	.file	"extr_Messenger.c_file_data.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	file_data
	.type	file_data, @function
file_data:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	mov	r15, r8
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	mov	r14, rdx
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13, rsi
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12, rdi
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	rbp, r9
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 24
	.cfi_def_cfa_offset 80
	mov	QWORD PTR 8[rsp], rcx
	call	friend_not_valid@PLT
	test	rax, rax
	jne	.L9
	mov	rcx, QWORD PTR [r12]
	lea	rax, 0[r13+r13*2]
	lea	rcx, [rcx+rax*8]
	mov	rax, QWORD PTR FRIEND_ONLINE[rip]
	cmp	QWORD PTR [rcx], rax
	jne	.L10
	cmp	QWORD PTR MAX_CONCURRENT_FILE_PIPES[rip], r14
	jbe	.L11
	lea	rbx, [r14+r14*2]
	mov	rax, QWORD PTR FILESTATUS_TRANSFERRING[rip]
	sal	rbx, 4
	add	rbx, QWORD PTR 16[rcx]
	cmp	QWORD PTR [rbx], rax
	jne	.L12
	mov	rdi, QWORD PTR MAX_FILE_DATA_SIZE[rip]
	cmp	rdi, rbp
	jl	.L15
	mov	rsi, QWORD PTR 8[rbx]
	mov	rax, QWORD PTR 16[rbx]
	mov	r8, rsi
	sub	r8, rax
	cmp	r8, rbp
	jl	.L15
	cmp	QWORD PTR UINT64_MAX[rip], rsi
	je	.L3
	cmp	rdi, rbp
	je	.L3
	lea	rdi, [rax+rbp]
	cmp	rsi, rdi
	jne	.L15
.L3:
	cmp	rax, QWORD PTR 8[rsp]
	jne	.L17
	cmp	QWORD PTR 24[rbx], rax
	jg	.L19
	test	rsi, rsi
	jne	.L17
.L19:
	mov	esi, DWORD PTR 8[rcx]
	mov	edi, DWORD PTR 8[r12]
	call	friend_connection_crypt_connection_id@PLT
	mov	edi, DWORD PTR 12[r12]
	mov	esi, eax
	call	crypto_num_free_sendqueue_slots@PLT
	cmp	rax, QWORD PTR MIN_SLOTS_FREE[rip]
	jl	.L6
	mov	r8, rbp
	mov	rcx, r15
	mov	rdx, r14
	mov	rsi, r13
	mov	rdi, r12
	call	send_file_data_packet@PLT
	cmp	eax, -1
	je	.L6
	mov	rcx, QWORD PTR 16[rbx]
	mov	rdx, QWORD PTR 40[rbx]
	add	rcx, rbp
	mov	QWORD PTR 16[rbx], rcx
	test	rdx, rdx
	jne	.L37
	cmp	QWORD PTR MAX_FILE_DATA_SIZE[rip], rbp
	je	.L38
.L8:
	mov	rdx, QWORD PTR FILESTATUS_FINISHED[rip]
	mov	DWORD PTR 32[rbx], eax
	xor	r8d, r8d
	mov	QWORD PTR [rbx], rdx
.L1:
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	eax, r8d
	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
.L37:
	.cfi_restore_state
	sub	rdx, 1
	cmp	QWORD PTR MAX_FILE_DATA_SIZE[rip], rbp
	mov	QWORD PTR 40[rbx], rdx
	jne	.L8
.L38:
	xor	r8d, r8d
	cmp	rcx, QWORD PTR 8[rbx]
	jne	.L1
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L15:
	mov	r8d, -5
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L17:
	mov	r8d, -7
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L6:
	mov	r8d, -6
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L10:
	mov	r8d, -2
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L12:
	mov	r8d, -4
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L9:
	mov	r8d, -1
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L11:
	mov	r8d, -3
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	file_data, .-file_data
	.comm	UINT64_MAX,8,8
	.comm	MIN_SLOTS_FREE,8,8
	.comm	MAX_FILE_DATA_SIZE,8,8
	.comm	MAX_CONCURRENT_FILE_PIPES,8,8
	.comm	FRIEND_ONLINE,8,8
	.comm	FILESTATUS_TRANSFERRING,8,8
	.comm	FILESTATUS_FINISHED,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_Messenger.c_file_data.c"
	.text
	.align	2
	.global	file_data
	.syntax unified
	.arm
	.fpu softvfp
	.type	file_data, %function
file_data:
	@ args = 8, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	sub	sp, sp, #20
	mov	r6, r2
	mov	r7, r0
	mov	r10, r1
	ldr	r5, [sp, #60]
	str	r3, [sp, #12]
	bl	friend_not_valid
	subs	r8, r0, #0
	bne	.L8
	ldr	r2, [r7]
	ldr	r0, .L31
	add	r1, r10, r10, lsl #1
	ldr	ip, [r2, r1, lsl #2]
	ldr	r0, [r0]
	add	r2, r2, r1, lsl #2
	cmp	ip, r0
	bne	.L9
	ldr	r1, .L31+4
	ldr	r1, [r1]
	cmp	r1, r6
	bls	.L10
	ldr	r9, [r2, #8]
	add	r4, r6, r6, lsl #1
	ldr	r1, .L31+8
	lsl	fp, r4, #3
	ldr	r0, [r9, fp]
	ldr	r1, [r1]
	add	r4, r9, r4, lsl #3
	cmp	r0, r1
	bne	.L11
	ldr	r3, .L31+12
	ldr	ip, [r3]
	cmp	ip, r5
	blt	.L14
	ldr	r1, [r4, #4]
	ldr	r0, [r4, #8]
	sub	lr, r1, r0
	cmp	lr, r5
	blt	.L14
	ldr	lr, .L31+16
	ldr	lr, [lr]
	cmp	lr, r1
	cmpne	ip, r5
	bne	.L29
.L3:
	ldr	r3, [sp, #12]
	cmp	r0, r3
	bne	.L16
	ldr	ip, [r4, #12]
	cmp	ip, r0
	movgt	r0, #0
	movle	r0, #1
	cmp	r1, #0
	moveq	r0, #0
	cmp	r0, #0
	bne	.L16
	ldr	r1, [r2, #4]
	ldr	r2, [r7, #8]
	ldr	r0, [r7, #4]
	str	r2, [sp, #12]
	bl	friend_connection_crypt_connection_id
	ldr	r2, [sp, #12]
	mov	r1, r0
	mov	r0, r2
	bl	crypto_num_free_sendqueue_slots
	ldr	r2, .L31+20
	ldr	r2, [r2]
	cmp	r0, r2
	blt	.L5
	mov	r2, r6
	mov	r1, r10
	mov	r0, r7
	ldr	r3, [sp, #56]
	str	r5, [sp]
	bl	send_file_data_packet
	cmn	r0, #1
	beq	.L5
	ldr	r2, [r4, #20]
	ldr	r3, [r4, #8]
	cmp	r2, #0
	subne	r2, r2, #1
	strne	r2, [r4, #20]
	ldr	r2, .L31+12
	add	r3, r5, r3
	ldr	r2, [r2]
	str	r3, [r4, #8]
	cmp	r2, r5
	beq	.L30
.L7:
	ldr	r3, .L31+24
	ldr	r3, [r3]
	str	r3, [r9, fp]
	str	r0, [r4, #16]
.L1:
	mov	r0, r8
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L29:
	add	ip, r0, r5
	cmp	r1, ip
	beq	.L3
.L14:
	mvn	r8, #4
	b	.L1
.L30:
	ldr	r2, [r4, #4]
	cmp	r3, r2
	beq	.L7
	mov	r0, r8
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L5:
	mvn	r8, #5
	b	.L1
.L16:
	mvn	r8, #6
	b	.L1
.L9:
	mvn	r8, #1
	b	.L1
.L11:
	mvn	r8, #3
	b	.L1
.L8:
	mvn	r8, #0
	b	.L1
.L10:
	mvn	r8, #2
	b	.L1
.L32:
	.align	2
.L31:
	.word	FRIEND_ONLINE
	.word	MAX_CONCURRENT_FILE_PIPES
	.word	FILESTATUS_TRANSFERRING
	.word	MAX_FILE_DATA_SIZE
	.word	UINT64_MAX
	.word	MIN_SLOTS_FREE
	.word	FILESTATUS_FINISHED
	.size	file_data, .-file_data
	.comm	UINT64_MAX,4,4
	.comm	MIN_SLOTS_FREE,4,4
	.comm	MAX_FILE_DATA_SIZE,4,4
	.comm	MAX_CONCURRENT_FILE_PIPES,4,4
	.comm	FRIEND_ONLINE,4,4
	.comm	FILESTATUS_TRANSFERRING,4,4
	.comm	FILESTATUS_FINISHED,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
