	.file	"extr_Messenger.c_file_get_id.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	file_get_id
	.type	file_get_id, @function
file_get_id:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	mov	r13, rcx
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	mov	r12, rdi
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	rbp, rsi
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	movsx	rbx, edx
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	call	friend_not_valid@PLT
	test	rax, rax
	jne	.L7
	mov	rax, QWORD PTR [r12]
	lea	rdx, 0[rbp+rbp*2]
	mov	rcx, QWORD PTR FRIEND_ONLINE[rip]
	lea	rax, [rax+rdx*8]
	cmp	QWORD PTR [rax], rcx
	jne	.L11
	mov	edx, DWORD PTR MAX_CONCURRENT_FILE_PIPES[rip]
	cmp	ebx, 65535
	jg	.L16
	cmp	ebx, edx
	jge	.L11
	sal	rbx, 4
	add	rbx, QWORD PTR 8[rax]
.L6:
	mov	rax, QWORD PTR FILESTATUS_NONE[rip]
	cmp	QWORD PTR [rbx], rax
	je	.L11
	mov	esi, DWORD PTR 8[rbx]
	mov	edx, DWORD PTR FILE_ID_LENGTH[rip]
	mov	rdi, r13
	call	memcpy@PLT
	xor	eax, eax
.L1:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L16:
	.cfi_restore_state
	sar	ebx, 16
	sub	ebx, 1
	cmp	ebx, edx
	jge	.L11
	movsx	rbx, ebx
	sal	rbx, 4
	add	rbx, QWORD PTR 16[rax]
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L11:
	mov	eax, -2
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L7:
	mov	eax, -1
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	file_get_id, .-file_get_id
	.comm	MAX_CONCURRENT_FILE_PIPES,4,4
	.comm	FRIEND_ONLINE,8,8
	.comm	FILE_ID_LENGTH,4,4
	.comm	FILESTATUS_NONE,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_get_id.c"
	.text
	.align	2
	.global	file_get_id
	.syntax unified
	.arm
	.fpu softvfp
	.type	file_get_id, %function
file_get_id:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r5, r2
	mov	r7, r3
	mov	r8, r0
	mov	r4, r1
	bl	friend_not_valid
	subs	r6, r0, #0
	bne	.L7
	ldr	r1, [r8]
	ldr	r3, .L17
	add	r4, r4, r4, lsl #1
	ldr	r2, [r1, r4, lsl #2]
	ldr	r3, [r3]
	add	r4, r1, r4, lsl #2
	cmp	r2, r3
	bne	.L11
	ldr	r3, .L17+4
	cmp	r5, #65536
	ldr	r3, [r3]
	bge	.L16
	cmp	r5, r3
	ldrlt	r2, [r4, #4]
	addlt	r5, r2, r5, lsl #3
	bge	.L11
.L6:
	ldr	r3, .L17+8
	ldr	r2, [r5]
	ldr	r3, [r3]
	cmp	r2, r3
	beq	.L11
	ldr	r3, .L17+12
	mov	r0, r7
	ldr	r1, [r5, #4]
	ldr	r2, [r3]
	bl	memcpy
.L1:
	mov	r0, r6
	pop	{r4, r5, r6, r7, r8, pc}
.L16:
	asr	r5, r5, #16
	sub	r2, r5, #1
	cmp	r2, r3
	ldrlt	r5, [r4, #8]
	addlt	r5, r5, r2, lsl #3
	blt	.L6
.L11:
	mvn	r6, #1
	b	.L1
.L7:
	mvn	r6, #0
	b	.L1
.L18:
	.align	2
.L17:
	.word	FRIEND_ONLINE
	.word	MAX_CONCURRENT_FILE_PIPES
	.word	FILESTATUS_NONE
	.word	FILE_ID_LENGTH
	.size	file_get_id, .-file_get_id
	.comm	MAX_CONCURRENT_FILE_PIPES,4,4
	.comm	FRIEND_ONLINE,4,4
	.comm	FILE_ID_LENGTH,4,4
	.comm	FILESTATUS_NONE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
