	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_invite_remote                  ## -- Begin function invite_remote
	.p2align	4, 0x90
_invite_remote:                         ## @invite_remote
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_RING_WAIT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -64(%rbp)
	movq	$0, -72(%rbp)
	movq	-72(%rbp), %rax
	movq	%rax, -56(%rbp)
	movl	-64(%rbp), %eax
	movl	%eax, -48(%rbp)
	movl	-60(%rbp), %eax
	movl	%eax, -44(%rbp)
	movq	_sockt@GOTPCREL(%rip), %r13
	movl	(%r13), %edi
	movl	$5, %esi
	callq	_listen
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rdi
	callq	_p_error
LBB0_2:
	movq	_my_addr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_msg@GOTPCREL(%rip), %r12
	movl	%edi, 8(%r12)
	callq	_htons
	movl	%eax, 8(%r12)
	movl	$-1, %edi
	callq	_htonl
	movq	%rax, (%r12)
	movq	_invitation_waiting@GOTPCREL(%rip), %rax
	movl	$1, (%rax)
	xorl	%r15d, %r15d
	movl	%r15d, %ebx
	movl	%r15d, %eax
	callq	_announce_invite
	movl	%r15d, %eax
	callq	_end_msgs
	movq	_ITIMER_REAL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%r15d, %edx
	leaq	-72(%rbp), %rsi
	callq	_setitimer
	leaq	L_.str.1(%rip), %r14
	movq	%r14, %rdi
	callq	_message
	movq	_SIGALRM@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_re_invite@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_signal
	movq	_invitebuf@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_setjmp
	movl	(%r13), %edi
	movl	%r15d, %esi
	movl	%r15d, %edx
	callq	_accept
	movl	%eax, %ecx
	testl	%eax, %eax
	jns	LBB0_8
## %bb.3:
	movq	_errno@GOTPCREL(%rip), %r14
	movq	_EINTR@GOTPCREL(%rip), %r12
	xorl	%ebx, %ebx
	leaq	L_.str.2(%rip), %r15
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_4 Depth=1
	movl	(%r13), %edi
	movl	%ebx, %esi
	movl	%ebx, %edx
	callq	_accept
	testl	%eax, %eax
	jns	LBB0_7
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r14), %rax
	cmpq	(%r12), %rax
	je	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	%r15, %rdi
	callq	_p_error
	jmp	LBB0_6
LBB0_7:
	movl	%eax, %ecx
	movq	_msg@GOTPCREL(%rip), %r12
	leaq	L_.str.1(%rip), %r14
LBB0_8:
	movl	%ecx, %ebx
	movl	(%r13), %edi
	callq	_close
	movl	%ebx, (%r13)
	movq	_current_state@GOTPCREL(%rip), %rax
	movq	%r14, (%rax)
	xorl	%eax, %eax
                                        ## kill: def $al killed $al killed $eax
	callq	_start_msgs
	movq	_local_id@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_htonl
	movq	%rax, (%r12)
	movq	_my_machine_addr@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	movq	_DELETE@GOTPCREL(%rip), %r15
	movl	(%r15), %ecx
	movl	8(%r12), %edx
	leaq	-76(%rbp), %r14
	movq	%rax, %rsi
	movq	%r14, %r8
	callq	_ctl_transact
	movq	_remote_id@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_htonl
	movq	%rax, (%r12)
	movq	_his_machine_addr@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	movl	(%r15), %ecx
	movl	8(%r12), %edx
	movq	%rax, %rsi
	movq	%r14, %r8
	callq	_ctl_transact
	movq	_invitation_waiting@GOTPCREL(%rip), %rax
	movl	$0, (%rax)
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_RING_WAIT,4,2                  ## @RING_WAIT
	.comm	_sockt,4,2                      ## @sockt
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Error on attempt to listen for caller"

	.comm	_msg,16,3                       ## @msg
	.comm	_my_addr,4,2                    ## @my_addr
	.comm	_invitation_waiting,4,2         ## @invitation_waiting
	.comm	_ITIMER_REAL,4,2                ## @ITIMER_REAL
L_.str.1:                               ## @.str.1
	.asciz	"Waiting for your party to respond"

	.comm	_SIGALRM,4,2                    ## @SIGALRM
	.comm	_re_invite,4,2                  ## @re_invite
	.comm	_invitebuf,4,2                  ## @invitebuf
	.comm	_errno,8,3                      ## @errno
	.comm	_EINTR,8,3                      ## @EINTR
L_.str.2:                               ## @.str.2
	.asciz	"Unable to connect with your party"

	.comm	_current_state,8,3              ## @current_state
	.comm	_local_id,4,2                   ## @local_id
	.comm	_my_machine_addr,4,2            ## @my_machine_addr
	.comm	_DELETE,4,2                     ## @DELETE
	.comm	_remote_id,4,2                  ## @remote_id
	.comm	_his_machine_addr,4,2           ## @his_machine_addr
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_invite_remote                  ; -- Begin function invite_remote
	.p2align	2
_invite_remote:                         ; @invite_remote
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
Lloh0:
	adrp	x9, _RING_WAIT@GOTPAGE
Lloh1:
	ldr	x9, [x9, _RING_WAIT@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	str	w9, [sp, #24]
	str	xzr, [sp, #16]
	ldr	q0, [sp, #16]
	str	q0, [sp, #32]
Lloh3:
	adrp	x23, _sockt@GOTPAGE
Lloh4:
	ldr	x23, [x23, _sockt@GOTPAGEOFF]
	ldr	w0, [x23]
	mov	w1, #5
	bl	_listen
	cbz	x0, LBB0_2
; %bb.1:
Lloh5:
	adrp	x0, l_.str@PAGE
Lloh6:
	add	x0, x0, l_.str@PAGEOFF
	bl	_p_error
LBB0_2:
Lloh7:
	adrp	x8, _my_addr@GOTPAGE
Lloh8:
	ldr	x8, [x8, _my_addr@GOTPAGEOFF]
Lloh9:
	ldr	w0, [x8]
Lloh10:
	adrp	x21, _msg@GOTPAGE
Lloh11:
	ldr	x21, [x21, _msg@GOTPAGEOFF]
	str	w0, [x21, #8]
	bl	_htons
	str	w0, [x21, #8]
	mov	w0, #-1
	bl	_htonl
	str	x0, [x21]
Lloh12:
	adrp	x22, _invitation_waiting@GOTPAGE
Lloh13:
	ldr	x22, [x22, _invitation_waiting@GOTPAGEOFF]
	mov	w8, #1
	str	w8, [x22]
	bl	_announce_invite
	bl	_end_msgs
Lloh14:
	adrp	x8, _ITIMER_REAL@GOTPAGE
Lloh15:
	ldr	x8, [x8, _ITIMER_REAL@GOTPAGEOFF]
Lloh16:
	ldr	w0, [x8]
	mov	x2, #0
	add	x1, sp, #16
	bl	_setitimer
Lloh17:
	adrp	x19, l_.str.1@PAGE
Lloh18:
	add	x19, x19, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_message
Lloh19:
	adrp	x8, _SIGALRM@GOTPAGE
Lloh20:
	ldr	x8, [x8, _SIGALRM@GOTPAGEOFF]
Lloh21:
	ldr	w0, [x8]
Lloh22:
	adrp	x8, _re_invite@GOTPAGE
Lloh23:
	ldr	x8, [x8, _re_invite@GOTPAGEOFF]
Lloh24:
	ldr	w1, [x8]
	bl	_signal
Lloh25:
	adrp	x8, _invitebuf@GOTPAGE
Lloh26:
	ldr	x8, [x8, _invitebuf@GOTPAGEOFF]
Lloh27:
	ldr	w0, [x8]
	bl	_setjmp
	ldr	w0, [x23]
	mov	w1, #0
	mov	w2, #0
	bl	_accept
	mov	x8, x0
	tbz	w0, #31, LBB0_8
; %bb.3:
Lloh28:
	adrp	x24, _errno@GOTPAGE
Lloh29:
	ldr	x24, [x24, _errno@GOTPAGEOFF]
Lloh30:
	adrp	x25, _EINTR@GOTPAGE
Lloh31:
	ldr	x25, [x25, _EINTR@GOTPAGEOFF]
Lloh32:
	adrp	x20, l_.str.2@PAGE
Lloh33:
	add	x20, x20, l_.str.2@PAGEOFF
	b	LBB0_5
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldr	w0, [x23]
	mov	w1, #0
	mov	w2, #0
	bl	_accept
	tbz	w0, #31, LBB0_7
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x24]
	ldr	x9, [x25]
	cmp	x8, x9
	b.eq	LBB0_4
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x20
	bl	_p_error
	b	LBB0_4
LBB0_7:
	mov	x8, x0
LBB0_8:
	mov	x20, x8
	ldr	w0, [x23]
	bl	_close
	str	w20, [x23]
Lloh34:
	adrp	x8, _current_state@GOTPAGE
Lloh35:
	ldr	x8, [x8, _current_state@GOTPAGEOFF]
Lloh36:
	str	x19, [x8]
	bl	_start_msgs
Lloh37:
	adrp	x8, _local_id@GOTPAGE
Lloh38:
	ldr	x8, [x8, _local_id@GOTPAGEOFF]
Lloh39:
	ldr	w0, [x8]
	bl	_htonl
	mov	x1, x0
Lloh40:
	adrp	x8, _my_machine_addr@GOTPAGE
Lloh41:
	ldr	x8, [x8, _my_machine_addr@GOTPAGEOFF]
	str	x0, [x21]
Lloh42:
	ldr	w0, [x8]
Lloh43:
	adrp	x20, _DELETE@GOTPAGE
Lloh44:
	ldr	x20, [x20, _DELETE@GOTPAGEOFF]
	ldr	w3, [x20]
	ldr	x2, [x21, #8]
	add	x19, sp, #12
	mov	x4, x19
	bl	_ctl_transact
Lloh45:
	adrp	x8, _remote_id@GOTPAGE
Lloh46:
	ldr	x8, [x8, _remote_id@GOTPAGEOFF]
Lloh47:
	ldr	w0, [x8]
	bl	_htonl
	mov	x1, x0
	str	x0, [x21]
Lloh48:
	adrp	x8, _his_machine_addr@GOTPAGE
Lloh49:
	ldr	x8, [x8, _his_machine_addr@GOTPAGEOFF]
Lloh50:
	ldr	w0, [x8]
	ldr	w3, [x20]
	ldr	x2, [x21, #8]
	mov	x4, x19
	bl	_ctl_transact
	str	wzr, [x22]
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh32, Lloh33
	.loh AdrpLdrGot	Lloh30, Lloh31
	.loh AdrpLdrGot	Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh48, Lloh49, Lloh50
	.loh AdrpLdrGotLdr	Lloh45, Lloh46, Lloh47
	.loh AdrpLdrGot	Lloh43, Lloh44
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGotStr	Lloh34, Lloh35, Lloh36
	.cfi_endproc
                                        ; -- End function
	.comm	_RING_WAIT,4,2                  ; @RING_WAIT
	.comm	_sockt,4,2                      ; @sockt
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Error on attempt to listen for caller"

	.comm	_msg,16,3                       ; @msg
	.comm	_my_addr,4,2                    ; @my_addr
	.comm	_invitation_waiting,4,2         ; @invitation_waiting
	.comm	_ITIMER_REAL,4,2                ; @ITIMER_REAL
l_.str.1:                               ; @.str.1
	.asciz	"Waiting for your party to respond"

	.comm	_SIGALRM,4,2                    ; @SIGALRM
	.comm	_re_invite,4,2                  ; @re_invite
	.comm	_invitebuf,4,2                  ; @invitebuf
	.comm	_errno,8,3                      ; @errno
	.comm	_EINTR,8,3                      ; @EINTR
l_.str.2:                               ; @.str.2
	.asciz	"Unable to connect with your party"

	.comm	_current_state,8,3              ; @current_state
	.comm	_local_id,4,2                   ; @local_id
	.comm	_my_machine_addr,4,2            ; @my_machine_addr
	.comm	_DELETE,4,2                     ; @DELETE
	.comm	_remote_id,4,2                  ; @remote_id
	.comm	_his_machine_addr,4,2           ; @his_machine_addr
.subsections_via_symbols
