	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_check_local                    ## -- Begin function check_local
	.p2align	4, 0x90
_check_local:                           ## @check_local
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_ctl_addr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_msg@GOTPCREL(%rip), %rbx
	movl	%edi, (%rbx)
	callq	_htons
	movl	%eax, (%rbx)
	leaq	-48(%rbp), %rdi
	callq	_look_for_invite
	xorl	%ebx, %ebx
	testl	%eax, %eax
	je	LBB0_10
## %bb.1:
	leaq	L_.str(%rip), %rax
	movq	_current_state@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
	movq	_AF_INET@GOTPCREL(%rip), %r14
	leaq	-64(%rbp), %rbx
	leaq	-48(%rbp), %r15
	movq	_errno@GOTPCREL(%rip), %r12
	movq	_EINTR@GOTPCREL(%rip), %r13
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	-48(%rbp), %rax
	cmpq	(%r14), %rax
	je	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	leaq	L_.str.1(%rip), %rdi
	callq	_p_error
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	%rbx, %rdi
	movq	%r15, %rsi
	movl	$16, %edx
	callq	_memcpy
	movq	-48(%rbp), %rax
	movq	%rax, -64(%rbp)
	movl	$16, -56(%rbp)
	movq	$0, (%r12)
	movq	_sockt@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%rbx, %rsi
	movl	$16, %edx
	callq	_connect
	cmpl	$-1, %eax
	jne	LBB0_5
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	(%r12), %rax
	cmpq	(%r13), %rax
	je	LBB0_2
## %bb.7:
	movq	_ECONNREFUSED@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_9
## %bb.8:
	movq	_his_machine_addr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_DELETE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_msg@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-48(%rbp), %rcx
	callq	_ctl_transact
	movq	_sockt@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_close
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_open_sockt
	jmp	LBB0_10
LBB0_5:
	movl	$1, %ebx
	jmp	LBB0_10
LBB0_9:
	leaq	L_.str.2(%rip), %rdi
	callq	_p_error
	xorl	%ebx, %ebx
LBB0_10:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_msg,4,2                        ## @msg
	.comm	_ctl_addr,4,2                   ## @ctl_addr
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Waiting to connect with caller"

	.comm	_current_state,8,3              ## @current_state
	.comm	_AF_INET,8,3                    ## @AF_INET
L_.str.1:                               ## @.str.1
	.asciz	"Response uses invalid network address"

	.comm	_errno,8,3                      ## @errno
	.comm	_sockt,4,2                      ## @sockt
	.comm	_EINTR,8,3                      ## @EINTR
	.comm	_ECONNREFUSED,8,3               ## @ECONNREFUSED
	.comm	_his_machine_addr,4,2           ## @his_machine_addr
	.comm	_DELETE,4,2                     ## @DELETE
L_.str.2:                               ## @.str.2
	.asciz	"Unable to connect with initiator"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_check_local                    ; -- Begin function check_local
	.p2align	2
_check_local:                           ; @check_local
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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	x8, _ctl_addr@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ctl_addr@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x20, _msg@GOTPAGE
Lloh4:
	ldr	x20, [x20, _msg@GOTPAGEOFF]
	str	w0, [x20]
	bl	_htons
	str	w0, [x20]
	add	x0, sp, #24
	bl	_look_for_invite
	cbz	w0, LBB0_11
; %bb.1:
Lloh5:
	adrp	x8, _current_state@GOTPAGE
Lloh6:
	ldr	x8, [x8, _current_state@GOTPAGEOFF]
Lloh7:
	adrp	x9, l_.str@PAGE
Lloh8:
	add	x9, x9, l_.str@PAGEOFF
Lloh9:
	str	x9, [x8]
Lloh10:
	adrp	x22, _AF_INET@GOTPAGE
Lloh11:
	ldr	x22, [x22, _AF_INET@GOTPAGEOFF]
	mov	w23, #16
Lloh12:
	adrp	x24, _errno@GOTPAGE
Lloh13:
	ldr	x24, [x24, _errno@GOTPAGEOFF]
Lloh14:
	adrp	x21, _sockt@GOTPAGE
Lloh15:
	ldr	x21, [x21, _sockt@GOTPAGEOFF]
Lloh16:
	adrp	x25, _EINTR@GOTPAGE
Lloh17:
	ldr	x25, [x25, _EINTR@GOTPAGEOFF]
Lloh18:
	adrp	x19, l_.str.1@PAGE
Lloh19:
	add	x19, x19, l_.str.1@PAGEOFF
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [sp, #24]
	ldr	x9, [x22]
	cmp	x8, x9
	b.eq	LBB0_4
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x0, x19
	bl	_p_error
LBB0_4:                                 ;   in Loop: Header=BB0_2 Depth=1
	add	x0, sp, #8
	add	x1, sp, #24
	mov	w2, #16
	bl	_memcpy
	ldr	x8, [sp, #24]
	str	x8, [sp, #8]
	str	w23, [sp, #16]
	str	xzr, [x24]
	ldr	w0, [x21]
	add	x1, sp, #8
	mov	w2, #16
	bl	_connect
	cmn	w0, #1
	b.ne	LBB0_8
; %bb.5:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	x8, [x24]
	ldr	x9, [x25]
	cmp	x8, x9
	b.eq	LBB0_2
; %bb.6:
Lloh20:
	adrp	x9, _ECONNREFUSED@GOTPAGE
Lloh21:
	ldr	x9, [x9, _ECONNREFUSED@GOTPAGEOFF]
Lloh22:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_9
; %bb.7:
Lloh23:
	adrp	x8, _his_machine_addr@GOTPAGE
Lloh24:
	ldr	x8, [x8, _his_machine_addr@GOTPAGEOFF]
Lloh25:
	ldr	w0, [x8]
Lloh26:
	adrp	x8, _DELETE@GOTPAGE
Lloh27:
	ldr	x8, [x8, _DELETE@GOTPAGEOFF]
Lloh28:
	ldr	w2, [x8]
	ldr	w1, [x20]
	add	x3, sp, #24
	bl	_ctl_transact
	ldr	w0, [x21]
	bl	_close
	bl	_open_sockt
	b	LBB0_10
LBB0_8:
	mov	w0, #1
	b	LBB0_11
LBB0_9:
Lloh29:
	adrp	x0, l_.str.2@PAGE
Lloh30:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_p_error
LBB0_10:
	mov	w0, #0
LBB0_11:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotStr	Lloh5, Lloh6, Lloh9
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpAdd	Lloh29, Lloh30
	.cfi_endproc
                                        ; -- End function
	.comm	_msg,4,2                        ; @msg
	.comm	_ctl_addr,4,2                   ; @ctl_addr
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Waiting to connect with caller"

	.comm	_current_state,8,3              ; @current_state
	.comm	_AF_INET,8,3                    ; @AF_INET
l_.str.1:                               ; @.str.1
	.asciz	"Response uses invalid network address"

	.comm	_errno,8,3                      ; @errno
	.comm	_sockt,4,2                      ; @sockt
	.comm	_EINTR,8,3                      ; @EINTR
	.comm	_ECONNREFUSED,8,3               ; @ECONNREFUSED
	.comm	_his_machine_addr,4,2           ; @his_machine_addr
	.comm	_DELETE,4,2                     ; @DELETE
l_.str.2:                               ; @.str.2
	.asciz	"Unable to connect with initiator"

.subsections_via_symbols
