	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_NewClientConnectionEx          ## -- Begin function NewClientConnectionEx
	.p2align	4, 0x90
_NewClientConnectionEx:                 ## @NewClientConnectionEx
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r12
	movq	%rdx, %r13
	movq	%rsi, %r15
	movq	%rdi, %r14
	movl	$152, %edi
	callq	_ZeroMalloc
	movq	%rax, %rbx
	xorl	%eax, %eax
	callq	_Tick64
	movq	%rax, 144(%rbx)
	xorl	%eax, %eax
	callq	_NewLock
	movl	%eax, 140(%rbx)
	xorl	%eax, %eax
	callq	_NewRef
	movl	%eax, 136(%rbx)
	movq	16(%r14), %rax
	movq	%rax, 128(%rbx)
	movl	16(%rax), %edi
	callq	_AddRef
	movq	_CONNECTION_TCP@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 120(%rbx)
	movl	$4, %edi
	callq	_ZeroMalloc
	movq	%rax, 112(%rbx)
	xorl	%edi, %edi
	callq	_NewList
	movq	112(%rbx), %rcx
	movq	%rax, (%rcx)
	movl	$0, (%rbx)
	movq	_CONNECTION_STATUS_CONNECTING@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 108(%rbx)
	leaq	L_.str(%rip), %rdi
	callq	_CopyStr
	movl	%eax, 104(%rbx)
	movq	%r14, 64(%rbx)
	xorl	%eax, %eax
	callq	_NewCounter
	movl	%eax, 88(%rbx)
	xorl	%eax, %eax
	callq	_Tick64
	movq	%rax, 96(%rbx)
	movl	88(%rbx), %edi
	callq	_Inc
	xorl	%edi, %edi
	callq	_NewList
	movq	%rax, 80(%rbx)
	xorl	%edi, %edi
	callq	_NewList
	movq	%rax, 72(%rbx)
	testq	%r15, %r15
	je	LBB0_1
## %bb.7:
	movq	%r13, 56(%rbx)
	movq	%r12, 48(%rbx)
	movl	40(%rbx), %edi
	movl	$4, %esi
	movq	%r15, %rdx
	jmp	LBB0_8
LBB0_1:
	movq	16(%r14), %rax
	movups	(%rax), %xmm0
	movups	%xmm0, 48(%rbx)
	movq	64(%rbx), %rax
	cmpl	$0, (%rax)
	je	LBB0_2
## %bb.6:
	movl	40(%rbx), %edi
	movq	_CEDAR_ROUTER_STR@GOTPCREL(%rip), %rax
	jmp	LBB0_4
LBB0_2:
	cmpl	$0, 4(%rax)
	movl	40(%rbx), %edi
	je	LBB0_3
## %bb.5:
	movq	_CEDAR_SERVER_LINK_STR@GOTPCREL(%rip), %rax
	jmp	LBB0_4
LBB0_3:
	movq	_CEDAR_CLIENT_STR@GOTPCREL(%rip), %rax
LBB0_4:
	movq	(%rax), %rdx
	movl	$4, %esi
LBB0_8:
	callq	_StrCpy
	movl	36(%rbx), %edi
	movq	8(%r14), %rax
	movq	(%rax), %rdx
	movl	$4, %esi
	callq	_StrCpy
	movq	8(%r14), %rax
	movl	8(%rax), %eax
	movl	%eax, 32(%rbx)
	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)
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CONNECTION_TCP,4,2             ## @CONNECTION_TCP
	.comm	_CONNECTION_STATUS_CONNECTING,4,2 ## @CONNECTION_STATUS_CONNECTING
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"CLIENT_CONNECTION"

	.comm	_CEDAR_CLIENT_STR,8,3           ## @CEDAR_CLIENT_STR
	.comm	_CEDAR_SERVER_LINK_STR,8,3      ## @CEDAR_SERVER_LINK_STR
	.comm	_CEDAR_ROUTER_STR,8,3           ## @CEDAR_ROUTER_STR
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_NewClientConnectionEx          ; -- Begin function NewClientConnectionEx
	.p2align	2
_NewClientConnectionEx:                 ; @NewClientConnectionEx
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x22, x3
	mov	x23, x2
	mov	x21, x1
	mov	x20, x0
	mov	w0, #152
	bl	_ZeroMalloc
	mov	x19, x0
	bl	_Tick64
	str	x0, [x19, #144]
	bl	_NewLock
	str	w0, [x19, #140]
	bl	_NewRef
	str	w0, [x19, #136]
	ldr	x8, [x20, #16]
	str	x8, [x19, #128]
	ldr	w0, [x8, #16]
	bl	_AddRef
Lloh0:
	adrp	x8, _CONNECTION_TCP@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CONNECTION_TCP@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [x19, #120]
	mov	w0, #4
	bl	_ZeroMalloc
	str	x0, [x19, #112]
	mov	x0, #0
	bl	_NewList
	ldr	x8, [x19, #112]
	str	x0, [x8]
	str	wzr, [x19]
Lloh3:
	adrp	x8, _CONNECTION_STATUS_CONNECTING@GOTPAGE
Lloh4:
	ldr	x8, [x8, _CONNECTION_STATUS_CONNECTING@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	str	w8, [x19, #108]
Lloh6:
	adrp	x0, l_.str@PAGE
Lloh7:
	add	x0, x0, l_.str@PAGEOFF
	bl	_CopyStr
	str	w0, [x19, #104]
	str	x20, [x19, #64]
	bl	_NewCounter
	str	w0, [x19, #88]
	bl	_Tick64
	str	x0, [x19, #96]
	ldr	w0, [x19, #88]
	bl	_Inc
	mov	x0, #0
	bl	_NewList
	str	x0, [x19, #80]
	mov	x0, #0
	bl	_NewList
	str	x0, [x19, #72]
	cbz	x21, LBB0_2
; %bb.1:
	stp	x22, x23, [x19, #48]
	ldr	w0, [x19, #40]
	mov	w1, #4
	mov	x2, x21
	b	LBB0_8
LBB0_2:
	ldr	x8, [x20, #16]
	ldp	x8, x9, [x8]
	stp	x8, x9, [x19, #48]
	ldr	x8, [x19, #64]
	ldr	w9, [x8]
	cbz	w9, LBB0_4
; %bb.3:
	ldr	w0, [x19, #40]
Lloh8:
	adrp	x8, _CEDAR_ROUTER_STR@GOTPAGE
Lloh9:
	ldr	x8, [x8, _CEDAR_ROUTER_STR@GOTPAGEOFF]
	b	LBB0_7
LBB0_4:
	ldr	w8, [x8, #4]
	ldr	w0, [x19, #40]
	cbz	w8, LBB0_6
; %bb.5:
Lloh10:
	adrp	x8, _CEDAR_SERVER_LINK_STR@GOTPAGE
Lloh11:
	ldr	x8, [x8, _CEDAR_SERVER_LINK_STR@GOTPAGEOFF]
	b	LBB0_7
LBB0_6:
Lloh12:
	adrp	x8, _CEDAR_CLIENT_STR@GOTPAGE
Lloh13:
	ldr	x8, [x8, _CEDAR_CLIENT_STR@GOTPAGEOFF]
LBB0_7:
	ldr	x2, [x8]
	mov	w1, #4
LBB0_8:
	bl	_StrCpy
	ldr	w0, [x19, #36]
	ldr	x8, [x20, #8]
	ldr	x2, [x8]
	mov	w1, #4
	bl	_StrCpy
	ldr	x8, [x20, #8]
	ldr	w8, [x8, #8]
	str	w8, [x19, #32]
	bl	_NewQueue
	str	x0, [x19, #24]
	bl	_NewQueue
	str	x0, [x19, #16]
	bl	_NewQueue
	str	x0, [x19, #8]
	mov	x0, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_CONNECTION_TCP,4,2             ; @CONNECTION_TCP
	.comm	_CONNECTION_STATUS_CONNECTING,4,2 ; @CONNECTION_STATUS_CONNECTING
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"CLIENT_CONNECTION"

	.comm	_CEDAR_CLIENT_STR,8,3           ; @CEDAR_CLIENT_STR
	.comm	_CEDAR_SERVER_LINK_STR,8,3      ; @CEDAR_SERVER_LINK_STR
	.comm	_CEDAR_ROUTER_STR,8,3           ; @CEDAR_ROUTER_STR
.subsections_via_symbols
