	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function NewLink
LCPI0_0:
	.long	1                               ## 0x1
	.long	0                               ## 0x0
	.long	10                              ## 0xa
	.long	1                               ## 0x1
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_NewLink
	.p2align	4, 0x90
_NewLink:                               ## @NewLink
	.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
	xorl	%ebx, %ebx
	testq	%rdi, %rdi
	je	LBB0_11
## %bb.1:
	movq	%rsi, %r12
	testq	%rsi, %rsi
	je	LBB0_11
## %bb.2:
	movq	%rdx, %r14
	testq	%rdx, %rdx
	je	LBB0_11
## %bb.3:
	movq	%rcx, %r13
	testq	%rcx, %rcx
	je	LBB0_11
## %bb.4:
	testq	%r8, %r8
	je	LBB0_11
## %bb.5:
	cmpq	$0, 8(%r12)
	jne	LBB0_10
## %bb.7:
	movq	%rdi, %r15
	movq	%r8, -56(%rbp)                  ## 8-byte Spill
	movl	(%r12), %edi
	callq	_LIST_NUM
	movq	_MAX_HUB_LINKS@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jge	LBB0_10
## %bb.8:
	movl	24(%r14), %edi
	callq	_UniIsEmptyStr
	testq	%rax, %rax
	jne	LBB0_10
## %bb.12:
	movq	(%r13), %rax
	movq	_CLIENT_AUTHTYPE_ANONYMOUS@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_17
## %bb.13:
	movq	_CLIENT_AUTHTYPE_PASSWORD@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_17
## %bb.14:
	movq	_CLIENT_AUTHTYPE_PLAIN_PASSWORD@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_17
## %bb.15:
	movq	_CLIENT_AUTHTYPE_CERT@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_17
LBB0_10:
	xorl	%ebx, %ebx
LBB0_11:
	movq	%rbx, %rax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_17:
	movl	$28, %edi
	callq	_ZeroMalloc
	movq	%rax, %rbx
	movq	%rax, %rdi
	movq	%r14, %rsi
	movl	$28, %edx
	callq	_Copy
	movl	20(%rbx), %edi
	movq	_LINK_DEVICE_NAME@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$4, %esi
	callq	_StrCpy
	movaps	LCPI0_0(%rip), %xmm0            ## xmm0 = [1,0,10,1]
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	movups	%xmm0, (%rbx)
	movq	_INFINITE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%rbx)
	movq	%r13, %rdi
	callq	_CopyClientAuth
	movq	%rax, %r14
	xorps	%xmm0, %xmm0
	movups	%xmm0, 8(%rax)
	movl	$64, %edi
	callq	_ZeroMalloc
	movq	%rax, %rbx
	leaq	4(%r12), %rax
	movq	%rax, 56(%rbx)
	xorl	%eax, %eax
	callq	_NewLock
	movl	%eax, 48(%rbx)
	xorl	%eax, %eax
	callq	_NewRef
	movl	%eax, (%rbx)
	movq	%r15, 40(%rbx)
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, 32(%rbx)
	movq	%r14, 24(%rbx)
	movq	%r12, 16(%rbx)
	movl	$28, %edi
	callq	_ZeroMalloc
	movq	%rax, 8(%rbx)
	movq	%rax, %rdi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	movl	$28, %edx
	callq	_Copy
	movq	8(%rbx), %rdi
	callq	_NormalizeLinkPolicy
	movl	(%r12), %edi
	callq	_LockList
	movl	(%r12), %edi
	movq	%rbx, %rsi
	callq	_Add
	movl	(%rbx), %edi
	callq	_AddRef
	movl	(%r12), %edi
	callq	_UnlockList
	jmp	LBB0_11
	.cfi_endproc
                                        ## -- End function
	.comm	_MAX_HUB_LINKS,8,3              ## @MAX_HUB_LINKS
	.comm	_CLIENT_AUTHTYPE_ANONYMOUS,8,3  ## @CLIENT_AUTHTYPE_ANONYMOUS
	.comm	_CLIENT_AUTHTYPE_PASSWORD,8,3   ## @CLIENT_AUTHTYPE_PASSWORD
	.comm	_CLIENT_AUTHTYPE_PLAIN_PASSWORD,8,3 ## @CLIENT_AUTHTYPE_PLAIN_PASSWORD
	.comm	_CLIENT_AUTHTYPE_CERT,8,3       ## @CLIENT_AUTHTYPE_CERT
	.comm	_LINK_DEVICE_NAME,4,2           ## @LINK_DEVICE_NAME
	.comm	_INFINITE,4,2                   ## @INFINITE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ; -- Begin function NewLink
lCPI0_0:
	.long	1                               ; 0x1
	.long	0                               ; 0x0
	.long	10                              ; 0xa
	.long	1                               ; 0x1
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_NewLink
	.p2align	2
_NewLink:                               ; @NewLink
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x23, #0
	cbz	x0, LBB0_13
; %bb.1:
	mov	x19, x1
	cbz	x1, LBB0_13
; %bb.2:
	mov	x24, x2
	cbz	x2, LBB0_13
; %bb.3:
	mov	x22, x3
	cbz	x3, LBB0_13
; %bb.4:
	mov	x20, x4
	cbz	x4, LBB0_13
; %bb.5:
	ldr	x8, [x19, #8]
	cbnz	x8, LBB0_12
; %bb.6:
	mov	x21, x0
	ldr	w0, [x19]
	bl	_LIST_NUM
Lloh0:
	adrp	x8, _MAX_HUB_LINKS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MAX_HUB_LINKS@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ge	LBB0_12
; %bb.7:
	ldr	w0, [x24, #24]
	bl	_UniIsEmptyStr
	cbnz	x0, LBB0_12
; %bb.8:
	ldr	x8, [x22]
Lloh3:
	adrp	x9, _CLIENT_AUTHTYPE_ANONYMOUS@GOTPAGE
Lloh4:
	ldr	x9, [x9, _CLIENT_AUTHTYPE_ANONYMOUS@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_14
; %bb.9:
Lloh6:
	adrp	x9, _CLIENT_AUTHTYPE_PASSWORD@GOTPAGE
Lloh7:
	ldr	x9, [x9, _CLIENT_AUTHTYPE_PASSWORD@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_14
; %bb.10:
Lloh9:
	adrp	x9, _CLIENT_AUTHTYPE_PLAIN_PASSWORD@GOTPAGE
Lloh10:
	ldr	x9, [x9, _CLIENT_AUTHTYPE_PLAIN_PASSWORD@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_14
; %bb.11:
Lloh12:
	adrp	x9, _CLIENT_AUTHTYPE_CERT@GOTPAGE
Lloh13:
	ldr	x9, [x9, _CLIENT_AUTHTYPE_CERT@GOTPAGEOFF]
Lloh14:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_14
LBB0_12:
	mov	x23, #0
LBB0_13:
	mov	x0, x23
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_14:
	mov	w0, #28
	bl	_ZeroMalloc
	mov	x25, x0
	mov	x1, x24
	mov	w2, #28
	bl	_Copy
	ldr	w0, [x25, #20]
Lloh15:
	adrp	x8, _LINK_DEVICE_NAME@GOTPAGE
Lloh16:
	ldr	x8, [x8, _LINK_DEVICE_NAME@GOTPAGEOFF]
Lloh17:
	ldr	w2, [x8]
	mov	w1, #4
	bl	_StrCpy
Lloh18:
	adrp	x8, lCPI0_0@PAGE
Lloh19:
	ldr	q0, [x8, lCPI0_0@PAGEOFF]
	str	q0, [x25]
Lloh20:
	adrp	x8, _INFINITE@GOTPAGE
Lloh21:
	ldr	x8, [x8, _INFINITE@GOTPAGEOFF]
Lloh22:
	ldr	w8, [x8]
	str	w8, [x25, #16]
	mov	x0, x22
	bl	_CopyClientAuth
	mov	x22, x0
	stp	xzr, xzr, [x0, #8]
	mov	w0, #64
	bl	_ZeroMalloc
	mov	x23, x0
	add	x8, x19, #4
	str	x8, [x0, #56]
	bl	_NewLock
	str	w0, [x23, #48]
	bl	_NewRef
	str	w0, [x23]
	stp	x25, x21, [x23, #32]
	stp	x19, x22, [x23, #16]
	mov	w0, #28
	bl	_ZeroMalloc
	str	x0, [x23, #8]
	mov	x1, x20
	mov	w2, #28
	bl	_Copy
	ldr	x0, [x23, #8]
	bl	_NormalizeLinkPolicy
	ldr	w0, [x19]
	bl	_LockList
	ldr	w0, [x19]
	mov	x1, x23
	bl	_Add
	ldr	w0, [x23]
	bl	_AddRef
	ldr	w0, [x19]
	bl	_UnlockList
	b	LBB0_13
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpAdrp	Lloh18, Lloh20
	.loh AdrpLdr	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_MAX_HUB_LINKS,8,3              ; @MAX_HUB_LINKS
	.comm	_CLIENT_AUTHTYPE_ANONYMOUS,8,3  ; @CLIENT_AUTHTYPE_ANONYMOUS
	.comm	_CLIENT_AUTHTYPE_PASSWORD,8,3   ; @CLIENT_AUTHTYPE_PASSWORD
	.comm	_CLIENT_AUTHTYPE_PLAIN_PASSWORD,8,3 ; @CLIENT_AUTHTYPE_PLAIN_PASSWORD
	.comm	_CLIENT_AUTHTYPE_CERT,8,3       ; @CLIENT_AUTHTYPE_CERT
	.comm	_LINK_DEVICE_NAME,4,2           ; @LINK_DEVICE_NAME
	.comm	_INFINITE,4,2                   ; @INFINITE
.subsections_via_symbols
