	.file	"extr_Messenger.c_send_custom_lossy_packet.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	send_custom_lossy_packet
	.type	send_custom_lossy_packet, @function
send_custom_lossy_packet:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	mov	r13, rdx
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	mov	r12, rcx
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	mov	rbx, rsi
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	call	friend_not_valid@PLT
	test	rax, rax
	jne	.L3
	test	r12, r12
	je	.L5
	cmp	QWORD PTR MAX_CRYPTO_DATA_SIZE[rip], r12
	jl	.L5
	mov	rdx, QWORD PTR 0[r13]
	mov	rax, QWORD PTR PACKET_ID_LOSSY_RANGE_START[rip]
	cmp	rdx, rax
	jl	.L7
	add	rax, QWORD PTR PACKET_ID_LOSSY_RANGE_SIZE[rip]
	cmp	rdx, rax
	jge	.L7
	sal	rbx, 4
	add	rbx, QWORD PTR 0[rbp]
	mov	rax, QWORD PTR FRIEND_ONLINE[rip]
	cmp	QWORD PTR [rbx], rax
	jne	.L8
	mov	esi, DWORD PTR 8[rbx]
	mov	edi, DWORD PTR 8[rbp]
	call	friend_connection_crypt_connection_id@PLT
	mov	edi, DWORD PTR 12[rbp]
	mov	rcx, r12
	mov	rdx, r13
	mov	esi, eax
	call	send_lossy_cryptpacket@PLT
	cmp	eax, -1
	setne	al
	movzx	eax, al
	lea	eax, -5[rax+rax*4]
.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
.L8:
	.cfi_restore_state
	mov	eax, -4
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L5:
	mov	eax, -2
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L7:
	mov	eax, -3
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L3:
	mov	eax, -1
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	send_custom_lossy_packet, .-send_custom_lossy_packet
	.comm	PACKET_ID_LOSSY_RANGE_START,8,8
	.comm	PACKET_ID_LOSSY_RANGE_SIZE,8,8
	.comm	MAX_CRYPTO_DATA_SIZE,8,8
	.comm	FRIEND_ONLINE,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_send_custom_lossy_packet.c"
	.text
	.align	2
	.global	send_custom_lossy_packet
	.syntax unified
	.arm
	.fpu softvfp
	.type	send_custom_lossy_packet, %function
send_custom_lossy_packet:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r8, r2
	mov	r5, r3
	mov	r6, r0
	mov	r7, r1
	bl	friend_not_valid
	subs	r4, r0, #0
	bne	.L3
	cmp	r5, #0
	beq	.L5
	ldr	r3, .L12
	ldr	r3, [r3]
	cmp	r3, r5
	blt	.L5
	ldr	r3, .L12+4
	ldr	r2, [r8]
	ldr	r3, [r3]
	cmp	r2, r3
	blt	.L7
	ldr	r1, .L12+8
	ldr	r1, [r1]
	add	r3, r3, r1
	cmp	r2, r3
	bge	.L7
	ldr	r1, [r6]
	ldr	r3, .L12+12
	ldr	r2, [r1, r7, lsl #3]
	ldr	r3, [r3]
	add	r1, r1, r7, lsl #3
	cmp	r2, r3
	bne	.L8
	ldmib	r6, {r0, r7}
	ldr	r1, [r1, #4]
	bl	friend_connection_crypt_connection_id
	mov	r3, r5
	mov	r1, r0
	mov	r2, r8
	mov	r0, r7
	bl	send_lossy_cryptpacket
	cmn	r0, #1
	mvneq	r4, #4
.L1:
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, pc}
.L8:
	mvn	r4, #3
	b	.L1
.L5:
	mvn	r4, #1
	b	.L1
.L7:
	mvn	r4, #2
	b	.L1
.L3:
	mvn	r4, #0
	b	.L1
.L13:
	.align	2
.L12:
	.word	MAX_CRYPTO_DATA_SIZE
	.word	PACKET_ID_LOSSY_RANGE_START
	.word	PACKET_ID_LOSSY_RANGE_SIZE
	.word	FRIEND_ONLINE
	.size	send_custom_lossy_packet, .-send_custom_lossy_packet
	.comm	PACKET_ID_LOSSY_RANGE_START,4,4
	.comm	PACKET_ID_LOSSY_RANGE_SIZE,4,4
	.comm	MAX_CRYPTO_DATA_SIZE,4,4
	.comm	FRIEND_ONLINE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
