	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_NewServerConnection            ## -- Begin function NewServerConnection
	.p2align	4, 0x90
_NewServerConnection:                   ## @NewServerConnection
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	testq	%rdi, %rdi
	je	LBB0_1
## %bb.2:
	movq	%rdx, %r12
	movq	%rsi, %r14
	movq	%rdi, %r15
	movl	$128, %edi
	callq	_ZeroMalloc
	movq	%rax, %rbx
	xorl	%eax, %eax
	callq	_Tick64
	movl	%eax, 120(%rbx)
	xorl	%eax, %eax
	callq	_NewLock
	movl	%eax, 116(%rbx)
	xorl	%eax, %eax
	callq	_NewRef
	movl	%eax, 112(%rbx)
	movq	%r15, 104(%rbx)
	movl	16(%r15), %edi
	callq	_AddRef
	movq	_CONNECTION_TCP@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 100(%rbx)
	movq	_CONNECTION_TYPE_INIT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 96(%rbx)
	movq	%r14, 88(%rbx)
	testq	%r14, %r14
	je	LBB0_4
## %bb.3:
	movl	24(%r14), %edi
	callq	_AddRef
	movq	%rbx, %rdi
	addq	$84, %rdi
	leaq	20(%r14), %rsi
	movl	$4, %edx
	callq	_Copy
	movl	80(%rbx), %edi
	movl	16(%r14), %edx
	movl	$4, %esi
	callq	_StrCpy
LBB0_4:
	movl	$4, %edi
	callq	_ZeroMalloc
	movq	%rax, 72(%rbx)
	xorl	%edi, %edi
	callq	_NewList
	movq	72(%rbx), %rcx
	movl	%eax, (%rcx)
	movl	$1, (%rbx)
	movq	_CONNECTION_STATUS_ACCEPTED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 68(%rbx)
	leaq	L_.str(%rip), %rdi
	callq	_CopyStr
	movl	%eax, 64(%rbx)
	movq	%r12, 56(%rbx)
	movl	(%r12), %edi
	callq	_AddRef
	xorl	%eax, %eax
	callq	_NewCounter
	movl	%eax, 48(%rbx)
	movl	%eax, %edi
	callq	_Inc
	movl	12(%r15), %eax
	movl	%eax, 44(%rbx)
	movl	8(%r15), %eax
	movl	%eax, 40(%rbx)
	movl	36(%rbx), %edi
	movl	4(%r15), %edx
	movl	$4, %esi
	callq	_StrCpy
	movl	(%r15), %edi
	movl	36(%rbx), %esi
	movl	$4, %edx
	callq	_GetServerProductName
	testq	%r14, %r14
	je	LBB0_9
## %bb.5:
	movq	8(%r14), %rdi
	testq	%rdi, %rdi
	je	LBB0_7
## %bb.6:
	callq	_CloneX
	movl	%eax, 32(%rbx)
LBB0_7:
	movq	(%r14), %rax
	movq	_SOCK_INPROC@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_9
## %bb.8:
	movl	$1, 4(%rbx)
LBB0_9:
	xorl	%eax, %eax
	callq	_NewQueue
	movq	%rax, 24(%rbx)
	xorl	%eax, %eax
	callq	_NewQueue
	movq	%rax, 16(%rbx)
	xorl	%eax, %eax
	callq	_NewQueue
	movq	%rax, 8(%rbx)
	jmp	LBB0_10
LBB0_1:
	xorl	%ebx, %ebx
LBB0_10:
	movq	%rbx, %rax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CONNECTION_TCP,4,2             ## @CONNECTION_TCP
	.comm	_CONNECTION_TYPE_INIT,4,2       ## @CONNECTION_TYPE_INIT
	.comm	_CONNECTION_STATUS_ACCEPTED,4,2 ## @CONNECTION_STATUS_ACCEPTED
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"INITING"

	.comm	_SOCK_INPROC,8,3                ## @SOCK_INPROC
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_NewServerConnection            ; -- Begin function NewServerConnection
	.p2align	2
_NewServerConnection:                   ; @NewServerConnection
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	cbz	x0, LBB0_9
; %bb.1:
	mov	x22, x2
	mov	x20, x1
	mov	x21, x0
	mov	w0, #128
	bl	_ZeroMalloc
	mov	x19, x0
	bl	_Tick64
	str	w0, [x19, #120]
	bl	_NewLock
	str	w0, [x19, #116]
	bl	_NewRef
	str	w0, [x19, #112]
	str	x21, [x19, #104]
	ldr	w0, [x21, #16]
	bl	_AddRef
Lloh0:
	adrp	x8, _CONNECTION_TCP@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CONNECTION_TCP@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _CONNECTION_TYPE_INIT@GOTPAGE
Lloh4:
	ldr	x9, [x9, _CONNECTION_TYPE_INIT@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	stp	w9, w8, [x19, #96]
	str	x20, [x19, #88]
	cbz	x20, LBB0_3
; %bb.2:
	ldr	w0, [x20, #24]
	bl	_AddRef
	add	x0, x19, #84
	add	x1, x20, #20
	mov	w2, #4
	bl	_Copy
	ldr	w0, [x19, #80]
	ldr	w2, [x20, #16]
	mov	w1, #4
	bl	_StrCpy
LBB0_3:
	mov	w0, #4
	bl	_ZeroMalloc
	str	x0, [x19, #72]
	mov	x0, #0
	bl	_NewList
	ldr	x8, [x19, #72]
	str	w0, [x8]
	mov	w8, #1
	str	w8, [x19]
Lloh6:
	adrp	x8, _CONNECTION_STATUS_ACCEPTED@GOTPAGE
Lloh7:
	ldr	x8, [x8, _CONNECTION_STATUS_ACCEPTED@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	str	w8, [x19, #68]
Lloh9:
	adrp	x0, l_.str@PAGE
Lloh10:
	add	x0, x0, l_.str@PAGEOFF
	bl	_CopyStr
	str	w0, [x19, #64]
	str	x22, [x19, #56]
	ldr	w0, [x22]
	bl	_AddRef
	bl	_NewCounter
	str	w0, [x19, #48]
	bl	_Inc
	ldr	d0, [x21, #8]
	str	d0, [x19, #40]
	ldr	w0, [x19, #36]
	ldr	w2, [x21, #4]
	mov	w1, #4
	bl	_StrCpy
	ldr	w0, [x21]
	ldr	w1, [x19, #36]
	mov	w2, #4
	bl	_GetServerProductName
	cbz	x20, LBB0_8
; %bb.4:
	ldr	x0, [x20, #8]
	cbz	x0, LBB0_6
; %bb.5:
	bl	_CloneX
	str	w0, [x19, #32]
LBB0_6:
	ldr	x8, [x20]
Lloh11:
	adrp	x9, _SOCK_INPROC@GOTPAGE
Lloh12:
	ldr	x9, [x9, _SOCK_INPROC@GOTPAGEOFF]
Lloh13:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_8
; %bb.7:
	mov	w8, #1
	str	w8, [x19, #4]
LBB0_8:
	bl	_NewQueue
	str	x0, [x19, #24]
	bl	_NewQueue
	str	x0, [x19, #16]
	bl	_NewQueue
	str	x0, [x19, #8]
	b	LBB0_10
LBB0_9:
	mov	x19, #0
LBB0_10:
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_CONNECTION_TCP,4,2             ; @CONNECTION_TCP
	.comm	_CONNECTION_TYPE_INIT,4,2       ; @CONNECTION_TYPE_INIT
	.comm	_CONNECTION_STATUS_ACCEPTED,4,2 ; @CONNECTION_STATUS_ACCEPTED
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"INITING"

	.comm	_SOCK_INPROC,8,3                ; @SOCK_INPROC
.subsections_via_symbols
