	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function datalink_Clone
LCPI0_0:
	.space	16
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_datalink_Clone
	.p2align	4, 0x90
_datalink_Clone:                        ## @datalink_Clone
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	%rdi, %r14
	movl	$160, %edi
	callq	_malloc
	testq	%rax, %rax
	je	LBB0_5
## %bb.1:
	movq	%rax, %rbx
	movq	_DATALINK_DESCRIPTOR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 156(%rbx)
	movq	_datalink_UpdateSet@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 152(%rbx)
	movq	_datalink_IsSet@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 148(%rbx)
	movq	_datalink_Read@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 144(%rbx)
	movq	_datalink_Write@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 140(%rbx)
	movq	_DATALINK_CLOSED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 136(%rbx)
	leaq	128(%rbx), %rdi
	leaq	128(%r14), %rsi
	movl	$8, %edx
	callq	_memcpy
	leaq	120(%rbx), %rdi
	callq	_mp_linkInit
	movq	88(%rbx), %rax
	movb	$0, (%rax)
	xorps	%xmm0, %xmm0
	movups	%xmm0, 104(%rbx)
	leaq	L_.str(%rip), %rax
	movq	%rax, 96(%rbx)
	movl	80(%r14), %eax
	movl	%eax, 80(%rbx)
	movq	$0, 72(%rbx)
	leaq	64(%rbx), %rdi
	xorl	%esi, %esi
	movl	$4, %edx
	callq	_memset
	xorps	%xmm0, %xmm0
	movups	%xmm0, 48(%rbx)
	movq	%r15, %rdi
	callq	_strdup
	movq	%rax, (%rbx)
	leaq	44(%rbx), %rdi
	callq	_peerid_Init
	movl	40(%r14), %eax
	movl	%eax, 40(%rbx)
	leaq	32(%rbx), %rdi
	leaq	32(%r14), %rsi
	movl	$8, %edx
	callq	_memcpy
	movq	%rbx, 32(%rbx)
	movq	_PHYS_INTERACTIVE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_physical_Create
	movq	%rax, 8(%rbx)
	testq	%rax, %rax
	je	LBB0_4
## %bb.2:
	leaq	28(%rbx), %rdi
	movq	%rax, %rsi
	callq	_pap_Init
	movl	28(%r14), %eax
	movl	%eax, 28(%rbx)
	leaq	24(%rbx), %rdi
	movq	8(%rbx), %rsi
	callq	_chap_Init
	movl	24(%r14), %eax
	movl	%eax, 24(%rbx)
	movq	8(%rbx), %rdi
	addq	$24, %rdi
	movq	8(%r14), %rsi
	addq	$24, %rsi
	movl	$8, %edx
	callq	_memcpy
	movq	8(%rbx), %rdi
	addq	$16, %rdi
	movq	8(%r14), %rsi
	addq	$16, %rsi
	movl	$8, %edx
	callq	_memcpy
	movq	8(%rbx), %rdi
	addq	$8, %rdi
	movq	8(%r14), %rsi
	addq	$8, %rsi
	movl	$8, %edx
	callq	_memcpy
	movq	8(%rbx), %rdi
	movq	8(%r14), %rsi
	movl	$8, %edx
	callq	_memcpy
	leaq	20(%rbx), %rdi
	movq	8(%rbx), %rsi
	callq	_cbcp_Init
	movq	%rbx, %r14
	addq	$16, %r14
	movq	%r14, %rdi
	xorl	%esi, %esi
	movl	$4, %edx
	callq	_memset
	movq	8(%rbx), %rsi
	movq	%r14, %rdi
	callq	_chat_Init
	movq	_LogPHASE@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	(%rbx), %r15
	movq	%rbx, %rdi
	callq	_datalink_State
	leaq	L_.str.1(%rip), %rsi
	movl	%r14d, %edi
	movq	%r15, %rdx
	movl	%eax, %ecx
	callq	_log_Printf
	jmp	LBB0_6
LBB0_4:
	movq	(%rbx), %rdi
	callq	_free
	movq	%rbx, %rdi
	callq	_free
LBB0_5:
	xorl	%ebx, %ebx
LBB0_6:
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DATALINK_DESCRIPTOR,4,2        ## @DATALINK_DESCRIPTOR
	.comm	_datalink_UpdateSet,4,2         ## @datalink_UpdateSet
	.comm	_datalink_IsSet,4,2             ## @datalink_IsSet
	.comm	_datalink_Read,4,2              ## @datalink_Read
	.comm	_datalink_Write,4,2             ## @datalink_Write
	.comm	_DATALINK_CLOSED,4,2            ## @DATALINK_CLOSED
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"N/A"

	.comm	_PHYS_INTERACTIVE,4,2           ## @PHYS_INTERACTIVE
	.comm	_LogPHASE,4,2                   ## @LogPHASE
L_.str.1:                               ## @.str.1
	.asciz	"%s: Cloned in %s state\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_datalink_Clone                 ; -- Begin function datalink_Clone
	.p2align	2
_datalink_Clone:                        ; @datalink_Clone
	.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
	mov	x21, x1
	mov	x20, x0
	mov	w0, #160
	bl	_malloc
	mov	x19, x0
	cbz	x0, LBB0_4
; %bb.1:
Lloh0:
	adrp	x8, _DATALINK_DESCRIPTOR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DATALINK_DESCRIPTOR@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _datalink_UpdateSet@GOTPAGE
Lloh4:
	ldr	x9, [x9, _datalink_UpdateSet@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	stp	w9, w8, [x19, #152]
Lloh6:
	adrp	x8, _datalink_IsSet@GOTPAGE
Lloh7:
	ldr	x8, [x8, _datalink_IsSet@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
Lloh9:
	adrp	x9, _datalink_Read@GOTPAGE
Lloh10:
	ldr	x9, [x9, _datalink_Read@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	stp	w9, w8, [x19, #144]
Lloh12:
	adrp	x8, _datalink_Write@GOTPAGE
Lloh13:
	ldr	x8, [x8, _datalink_Write@GOTPAGEOFF]
Lloh14:
	adrp	x9, _DATALINK_CLOSED@GOTPAGE
Lloh15:
	ldr	x9, [x9, _DATALINK_CLOSED@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
Lloh17:
	ldr	w9, [x9]
	stp	w9, w8, [x19, #136]
	add	x0, x19, #128
	add	x1, x20, #128
	mov	w2, #8
	bl	_memcpy
	add	x0, x19, #120
	bl	_mp_linkInit
	ldr	x8, [x19, #88]
	strb	wzr, [x8]
	stp	xzr, xzr, [x19, #104]
Lloh18:
	adrp	x8, l_.str@PAGE
Lloh19:
	add	x8, x8, l_.str@PAGEOFF
	str	x8, [x19, #96]
	ldr	w8, [x20, #80]
	str	w8, [x19, #80]
	str	xzr, [x19, #72]
	add	x0, x19, #64
	mov	w1, #0
	mov	w2, #4
	bl	_memset
	stp	xzr, xzr, [x19, #48]
	mov	x0, x21
	bl	_strdup
	str	x0, [x19]
	add	x0, x19, #44
	bl	_peerid_Init
	ldr	w8, [x20, #40]
	str	w8, [x19, #40]
	add	x0, x19, #32
	add	x1, x20, #32
	mov	w2, #8
	bl	_memcpy
	str	x19, [x19, #32]
Lloh20:
	adrp	x8, _PHYS_INTERACTIVE@GOTPAGE
Lloh21:
	ldr	x8, [x8, _PHYS_INTERACTIVE@GOTPAGEOFF]
Lloh22:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_physical_Create
	str	x0, [x19, #8]
	cbz	x0, LBB0_3
; %bb.2:
	mov	x1, x0
	add	x0, x19, #28
	bl	_pap_Init
	ldr	w8, [x20, #28]
	str	w8, [x19, #28]
	add	x0, x19, #24
	ldr	x1, [x19, #8]
	bl	_chap_Init
	ldr	w8, [x20, #24]
	str	w8, [x19, #24]
	ldr	x8, [x19, #8]
	add	x0, x8, #24
	ldr	x8, [x20, #8]
	add	x1, x8, #24
	mov	w2, #8
	bl	_memcpy
	ldr	x8, [x19, #8]
	add	x0, x8, #16
	ldr	x8, [x20, #8]
	add	x1, x8, #16
	mov	w2, #8
	bl	_memcpy
	ldr	x8, [x19, #8]
	add	x0, x8, #8
	ldr	x8, [x20, #8]
	add	x1, x8, #8
	mov	w2, #8
	bl	_memcpy
	ldr	x0, [x19, #8]
	ldr	x1, [x20, #8]
	mov	w2, #8
	bl	_memcpy
	add	x0, x19, #20
	ldr	x1, [x19, #8]
	bl	_cbcp_Init
	add	x20, x19, #16
	mov	x0, x20
	mov	w1, #0
	mov	w2, #4
	bl	_memset
	ldr	x1, [x19, #8]
	mov	x0, x20
	bl	_chat_Init
Lloh23:
	adrp	x8, _LogPHASE@GOTPAGE
Lloh24:
	ldr	x8, [x8, _LogPHASE@GOTPAGEOFF]
Lloh25:
	ldr	w20, [x8]
	ldr	x21, [x19]
	mov	x0, x19
	bl	_datalink_State
	mov	x3, x0
Lloh26:
	adrp	x1, l_.str.1@PAGE
Lloh27:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	mov	x2, x21
	bl	_log_Printf
	b	LBB0_4
LBB0_3:
	ldr	x0, [x19]
	bl	_free
	mov	x0, x19
	bl	_free
	mov	x19, #0
LBB0_4:
	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	Lloh20, Lloh21, Lloh22
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh16
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.cfi_endproc
                                        ; -- End function
	.comm	_DATALINK_DESCRIPTOR,4,2        ; @DATALINK_DESCRIPTOR
	.comm	_datalink_UpdateSet,4,2         ; @datalink_UpdateSet
	.comm	_datalink_IsSet,4,2             ; @datalink_IsSet
	.comm	_datalink_Read,4,2              ; @datalink_Read
	.comm	_datalink_Write,4,2             ; @datalink_Write
	.comm	_DATALINK_CLOSED,4,2            ; @DATALINK_CLOSED
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"N/A"

	.comm	_PHYS_INTERACTIVE,4,2           ; @PHYS_INTERACTIVE
	.comm	_LogPHASE,4,2                   ; @LogPHASE
l_.str.1:                               ; @.str.1
	.asciz	"%s: Cloned in %s state\n"

.subsections_via_symbols
