	.file	"extr_invite.c_invite_remote.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"Error on attempt to listen for caller"
	.align 8
.LC1:
	.string	"Waiting for your party to respond"
	.align 8
.LC2:
	.string	"Unable to connect with your party"
	.text
	.p2align 4
	.globl	invite_remote
	.type	invite_remote, @function
invite_remote:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	esi, 5
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	sub	rsp, 72
	.cfi_def_cfa_offset 96
	mov	edi, DWORD PTR sockt[rip]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 56[rsp], rax
	xor	eax, eax
	mov	eax, DWORD PTR RING_WAIT[rip]
	mov	QWORD PTR 16[rsp], 0
	mov	DWORD PTR 24[rsp], eax
	movdqa	xmm0, XMMWORD PTR 16[rsp]
	movaps	XMMWORD PTR 32[rsp], xmm0
	call	listen@PLT
	test	rax, rax
	je	.L4
	lea	rdi, .LC0[rip]
	call	p_error@PLT
.L4:
	mov	edi, DWORD PTR my_addr[rip]
	mov	DWORD PTR msg[rip+8], edi
	call	htons@PLT
	mov	edi, -1
	mov	DWORD PTR msg[rip+8], eax
	call	htonl@PLT
	mov	DWORD PTR invitation_waiting[rip], 1
	mov	QWORD PTR msg[rip], rax
	xor	eax, eax
	call	announce_invite@PLT
	xor	eax, eax
	call	end_msgs@PLT
	mov	edi, DWORD PTR ITIMER_REAL[rip]
	lea	rsi, 16[rsp]
	xor	edx, edx
	call	setitimer@PLT
	lea	rdi, .LC1[rip]
	call	message@PLT
	mov	esi, DWORD PTR re_invite[rip]
	mov	edi, DWORD PTR SIGALRM[rip]
	call	signal@PLT
	mov	edi, DWORD PTR invitebuf[rip]
	call	setjmp@PLT
	endbr64
	lea	rbp, .LC2[rip]
	.p2align 4,,10
	.p2align 3
.L6:
	mov	edi, DWORD PTR sockt[rip]
	xor	edx, edx
	xor	esi, esi
	call	accept@PLT
	mov	ebx, eax
	test	eax, eax
	jns	.L12
	mov	rax, QWORD PTR EINTR[rip]
	cmp	QWORD PTR errno[rip], rax
	je	.L6
	mov	rdi, rbp
	call	p_error@PLT
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L12:
	mov	edi, DWORD PTR sockt[rip]
	call	close@PLT
	lea	rax, .LC1[rip]
	mov	DWORD PTR sockt[rip], ebx
	lea	rbx, 12[rsp]
	mov	QWORD PTR current_state[rip], rax
	xor	eax, eax
	call	start_msgs@PLT
	mov	edi, DWORD PTR local_id[rip]
	call	htonl@PLT
	mov	ecx, DWORD PTR DELETE[rip]
	mov	rdx, QWORD PTR msg[rip+8]
	mov	r8, rbx
	mov	edi, DWORD PTR my_machine_addr[rip]
	mov	rsi, rax
	mov	QWORD PTR msg[rip], rax
	call	ctl_transact@PLT
	mov	edi, DWORD PTR remote_id[rip]
	call	htonl@PLT
	mov	ecx, DWORD PTR DELETE[rip]
	mov	rdx, QWORD PTR msg[rip+8]
	mov	r8, rbx
	mov	edi, DWORD PTR his_machine_addr[rip]
	mov	rsi, rax
	mov	QWORD PTR msg[rip], rax
	call	ctl_transact@PLT
	mov	DWORD PTR invitation_waiting[rip], 0
	mov	rax, QWORD PTR 56[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L13
	add	rsp, 72
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	ret
.L13:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	invite_remote, .-invite_remote
	.comm	sockt,4,4
	.comm	remote_id,4,4
	.comm	re_invite,4,4
	.comm	my_machine_addr,4,4
	.comm	my_addr,4,4
	.comm	msg,16,16
	.comm	local_id,4,4
	.comm	invitebuf,4,4
	.comm	invitation_waiting,4,4
	.comm	his_machine_addr,4,4
	.comm	errno,8,8
	.comm	current_state,8,8
	.comm	SIGALRM,4,4
	.comm	RING_WAIT,4,4
	.comm	ITIMER_REAL,4,4
	.comm	EINTR,8,8
	.comm	DELETE,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_invite.c_invite_remote.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Error on attempt to listen for caller\000"
	.align	2
.LC1:
	.ascii	"Waiting for your party to respond\000"
	.align	2
.LC2:
	.ascii	"Unable to connect with your party\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC3:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	invite_remote
	.syntax unified
	.arm
	.fpu softvfp
	.type	invite_remote, %function
invite_remote:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 0, uses_anonymous_args = 0
	mov	r2, #0
	ldr	r3, .L14
	mov	r0, r2
	ldr	r3, [r3]
	push	{r4, r5, r6, r7, r8, lr}
	mov	r1, r3
	sub	sp, sp, #32
	str	r3, [sp, #16]
	add	r3, sp, #20
	stm	r3, {r0, r1}
	str	r2, [sp, #12]
	ldr	r2, .L14+4
	ldr	r3, .L14+8
	mov	r1, #5
	ldr	r0, [r2]
	ldr	r3, [r3]
	str	r3, [sp, #28]
	mov	r3,#0
	bl	listen
	cmp	r0, #0
	beq	.L4
	ldr	r0, .L14+12
	bl	p_error
.L4:
	ldr	r3, .L14+16
	ldr	r4, .L14+20
	ldr	r0, [r3]
	str	r0, [r4, #4]
	bl	htons
	mov	r3, r0
	mvn	r0, #0
	str	r3, [r4, #4]
	bl	htonl
	mov	r2, #1
	ldr	r3, .L14+24
	str	r0, [r4]
	str	r2, [r3]
	bl	announce_invite
	bl	end_msgs
	ldr	r3, .L14+28
	add	r1, sp, #12
	mov	r2, #0
	ldr	r0, [r3]
	bl	setitimer
	ldr	r0, .L14+32
	bl	message
	ldr	r2, .L14+36
	ldr	r3, .L14+40
	ldr	r1, [r2]
	ldr	r0, [r3]
	bl	signal
	ldr	r3, .L14+44
	ldr	r0, [r3]
	bl	setjmp
	ldr	r5, .L14+4
	ldr	r7, .L14+48
	ldr	r6, .L14+52
	ldr	r8, .L14+56
.L6:
	mov	r2, #0
	ldr	r0, [r5]
	mov	r1, r2
	bl	accept
	subs	r4, r0, #0
	bge	.L12
	ldr	r2, [r7]
	ldr	r3, [r6]
	cmp	r2, r3
	beq	.L6
	mov	r0, r8
	bl	p_error
	b	.L6
.L12:
	ldr	r0, [r5]
	bl	close
	ldr	r2, .L14+32
	ldr	r3, .L14+60
	str	r4, [r5]
	str	r2, [r3]
	bl	start_msgs
	ldr	r3, .L14+64
	ldr	r4, .L14+20
	ldr	r0, [r3]
	bl	htonl
	ldr	r5, .L14+68
	ldr	ip, .L14+72
	str	r0, [r4]
	add	r6, sp, #8
	ldr	r0, [ip]
	ldm	r4, {r1, r2}
	ldr	r3, [r5]
	str	r6, [sp]
	bl	ctl_transact
	ldr	r3, .L14+76
	ldr	r0, [r3]
	bl	htonl
	ldr	ip, .L14+80
	str	r0, [r4]
	str	r6, [sp]
	ldr	r3, [r5]
	ldm	r4, {r1, r2}
	ldr	r0, [ip]
	bl	ctl_transact
	mov	r2, #0
	ldr	r3, .L14+24
	str	r2, [r3]
	ldr	r3, .L14+8
	ldr	r2, [r3]
	ldr	r3, [sp, #28]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L13
	add	sp, sp, #32
	@ sp needed
	pop	{r4, r5, r6, r7, r8, pc}
.L13:
	bl	__stack_chk_fail
.L15:
	.align	2
.L14:
	.word	RING_WAIT
	.word	sockt
	.word	.LC3
	.word	.LC0
	.word	my_addr
	.word	msg
	.word	invitation_waiting
	.word	ITIMER_REAL
	.word	.LC1
	.word	re_invite
	.word	SIGALRM
	.word	invitebuf
	.word	errno
	.word	EINTR
	.word	.LC2
	.word	current_state
	.word	local_id
	.word	DELETE
	.word	my_machine_addr
	.word	remote_id
	.word	his_machine_addr
	.size	invite_remote, .-invite_remote
	.comm	sockt,4,4
	.comm	remote_id,4,4
	.comm	re_invite,4,4
	.comm	my_machine_addr,4,4
	.comm	my_addr,4,4
	.comm	msg,8,4
	.comm	local_id,4,4
	.comm	invitebuf,4,4
	.comm	invitation_waiting,4,4
	.comm	his_machine_addr,4,4
	.comm	errno,4,4
	.comm	current_state,4,4
	.comm	SIGALRM,4,4
	.comm	RING_WAIT,4,4
	.comm	ITIMER_REAL,4,4
	.comm	EINTR,4,4
	.comm	DELETE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
