	.file	"extr_service_harbor.c_remote_send_handle.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"Drop message to harbor %d from %x to %x (session = %d, msgsz = %d)"
	.text
	.p2align 4
	.type	remote_send_handle, @function
remote_send_handle:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	mov	r10d, edx
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	mov	r14d, esi
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12d, edx
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	ebp, r8d
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	ebx, ecx
	sub	rsp, 56
	.cfi_def_cfa_offset 112
	mov	ecx, DWORD PTR HANDLE_REMOTE_SHIFT[rip]
	mov	r15, QWORD PTR 16[rdi]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 40[rsp], rax
	xor	eax, eax
	mov	r13, QWORD PTR 112[rsp]
	sar	r10d, cl
	cmp	DWORD PTR [rdi], r10d
	je	.L14
	movsx	rax, r10d
	lea	rdx, [rax+rax*2]
	mov	rax, QWORD PTR 8[rdi]
	lea	rdx, [rax+rdx*8]
	mov	rsi, QWORD PTR [rdx]
	mov	rax, QWORD PTR 8[rdx]
	test	rsi, rsi
	je	.L4
	cmp	QWORD PTR STATUS_HANDSHAKE[rip], rax
	je	.L4
	and	r12d, DWORD PTR HANDLE_MASK[rip]
	sal	ebx, cl
	mov	rdx, r9
	mov	rcx, r13
	mov	DWORD PTR 36[rsp], r8d
	or	r12d, ebx
	lea	r8, 28[rsp]
	mov	rdi, r15
	mov	DWORD PTR 28[rsp], r14d
	mov	DWORD PTR 32[rsp], r12d
	call	send_remote@PLT
	xor	eax, eax
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L4:
	cmp	QWORD PTR STATUS_DOWN[rip], rax
	je	.L15
	mov	rdi, QWORD PTR 16[rdx]
	test	rdi, rdi
	je	.L16
.L7:
	and	r12d, DWORD PTR HANDLE_MASK[rip]
	sal	ebx, cl
	mov	rdx, r13
	mov	rsi, r9
	or	r12d, ebx
	lea	rcx, 28[rsp]
	mov	DWORD PTR 28[rsp], r14d
	mov	DWORD PTR 32[rsp], r12d
	mov	DWORD PTR 36[rsp], ebp
	call	push_queue@PLT
	mov	eax, 1
.L1:
	mov	rbx, QWORD PTR 40[rsp]
	xor	rbx, QWORD PTR fs:40
	jne	.L17
	add	rsp, 56
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	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
.L15:
	.cfi_restore_state
	mov	DWORD PTR [rsp], r10d
	sub	rsp, 8
	.cfi_def_cfa_offset 120
	xor	r9d, r9d
	xor	r8d, r8d
	push	0
	.cfi_def_cfa_offset 128
	mov	ecx, DWORD PTR PTYPE_ERROR[rip]
	mov	edx, r14d
	mov	esi, r12d
	mov	rdi, r15
	call	skynet_send@PLT
	mov	r10d, DWORD PTR 16[rsp]
	mov	r9d, ebp
	mov	r8d, r12d
	mov	ecx, r14d
	lea	rsi, .LC0[rip]
	mov	rdi, r15
	mov	DWORD PTR [rsp], r13d
	mov	edx, r10d
	call	skynet_error@PLT
	pop	rax
	.cfi_def_cfa_offset 120
	xor	eax, eax
	pop	rdx
	.cfi_def_cfa_offset 112
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L14:
	sub	rsp, 8
	.cfi_def_cfa_offset 120
	or	ebx, DWORD PTR PTYPE_TAG_DONTCOPY[rip]
	mov	rdi, r15
	push	r13
	.cfi_def_cfa_offset 128
	mov	ecx, ebx
	call	skynet_send@PLT
	pop	rcx
	.cfi_def_cfa_offset 120
	mov	eax, 1
	pop	rsi
	.cfi_def_cfa_offset 112
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L16:
	xor	eax, eax
	mov	QWORD PTR 8[rsp], r9
	mov	QWORD PTR [rsp], rdx
	call	new_queue@PLT
	mov	rdx, QWORD PTR [rsp]
	mov	ecx, DWORD PTR HANDLE_REMOTE_SHIFT[rip]
	mov	r9, QWORD PTR 8[rsp]
	mov	rdi, rax
	mov	QWORD PTR 16[rdx], rax
	jmp	.L7
.L17:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	remote_send_handle, .-remote_send_handle
	.comm	STATUS_HANDSHAKE,8,8
	.comm	STATUS_DOWN,8,8
	.comm	PTYPE_TAG_DONTCOPY,4,4
	.comm	PTYPE_ERROR,4,4
	.comm	HANDLE_REMOTE_SHIFT,4,4
	.comm	HANDLE_MASK,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_service_harbor.c_remote_send_handle.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Drop message to harbor %d from %x to %x (session = "
	.ascii	"%d, msgsz = %d)\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC1:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	remote_send_handle, %function
remote_send_handle:
	@ args = 12, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	ldr	r9, .L18
	ldr	lr, [r0]
	ldr	ip, [r9]
	mov	r6, r3
	ldr	r3, .L18+4
	sub	sp, sp, #36
	cmp	lr, r2, asr ip
	ldr	r3, [r3]
	str	r3, [sp, #28]
	mov	r3,#0
	ldr	r7, [r0, #8]
	ldr	r10, [sp, #76]
	asr	r8, r2, ip
	beq	.L14
	ldr	r3, [r0, #4]
	add	fp, r8, r8, lsl #1
	mov	r5, r1
	ldr	r1, [r3, fp, lsl #2]
	add	fp, r3, fp, lsl #2
	cmp	r1, #0
	mov	r4, r2
	ldr	r3, [fp, #4]
	beq	.L4
	ldr	r2, .L18+8
	ldr	r2, [r2]
	cmp	r2, r3
	beq	.L4
	ldr	r3, .L18+12
	mov	r2, r10
	ldr	r3, [r3]
	mov	r0, r7
	and	r4, r4, r3
	orr	r4, r4, r6, lsl ip
	add	r3, sp, #16
	ldr	ip, [sp, #72]
	str	r3, [sp]
	ldr	r3, [sp, #80]
	str	r5, [sp, #16]
	str	ip, [sp, #24]
	str	r4, [sp, #20]
	bl	send_remote
	mov	r0, #0
	b	.L1
.L4:
	ldr	r2, .L18+16
	ldr	r2, [r2]
	cmp	r2, r3
	beq	.L15
	ldr	r0, [fp, #8]
	cmp	r0, #0
	beq	.L16
.L7:
	ldr	r3, .L18+12
	mov	r1, r10
	ldr	r2, [r3]
	add	r3, sp, #16
	and	r4, r4, r2
	orr	r4, r4, r6, lsl ip
	ldr	ip, [sp, #72]
	ldr	r2, [sp, #80]
	str	r5, [sp, #16]
	str	ip, [sp, #24]
	str	r4, [sp, #20]
	bl	push_queue
	mov	r0, #1
.L1:
	ldr	r3, .L18+4
	ldr	r2, [r3]
	ldr	r3, [sp, #28]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L17
	add	sp, sp, #36
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L15:
	mov	r6, #0
	ldr	r3, .L18+20
	str	r6, [sp, #8]
	str	r6, [sp, #4]
	str	r6, [sp]
	mov	r2, r5
	mov	r1, r4
	ldr	r3, [r3]
	mov	r0, r7
	bl	skynet_send
	ldr	r3, [sp, #80]
	mov	r2, r8
	str	r3, [sp, #8]
	ldr	r3, [sp, #72]
	mov	r0, r7
	str	r3, [sp, #4]
	ldr	r1, .L18+24
	mov	r3, r5
	str	r4, [sp]
	bl	skynet_error
	mov	r0, r6
	b	.L1
.L14:
	ldr	r0, [sp, #80]
	ldr	r3, .L18+28
	str	r0, [sp, #8]
	ldr	r3, [r3]
	ldr	r0, [sp, #72]
	str	r10, [sp, #4]
	str	r0, [sp]
	orr	r3, r6, r3
	mov	r0, r7
	bl	skynet_send
	mov	r0, #1
	b	.L1
.L16:
	bl	new_queue
	ldr	ip, [r9]
	str	r0, [fp, #8]
	b	.L7
.L17:
	bl	__stack_chk_fail
.L19:
	.align	2
.L18:
	.word	HANDLE_REMOTE_SHIFT
	.word	.LC1
	.word	STATUS_HANDSHAKE
	.word	HANDLE_MASK
	.word	STATUS_DOWN
	.word	PTYPE_ERROR
	.word	.LC0
	.word	PTYPE_TAG_DONTCOPY
	.size	remote_send_handle, .-remote_send_handle
	.comm	STATUS_HANDSHAKE,4,4
	.comm	STATUS_DOWN,4,4
	.comm	PTYPE_TAG_DONTCOPY,4,4
	.comm	PTYPE_ERROR,4,4
	.comm	HANDLE_REMOTE_SHIFT,4,4
	.comm	HANDLE_MASK,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
