	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_tipc_node_attach_link          ## -- Begin function tipc_node_attach_link
	.p2align	4, 0x90
_tipc_node_attach_link:                 ## @tipc_node_attach_link
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -32(%rbp)
	movl	(%rdi), %edi
	callq	_tipc_node_find
	movq	%rax, %rbx
	testq	%rax, %rax
	jne	LBB0_3
## %bb.1:
	movl	(%r14), %edi
	callq	_tipc_node_create
	movq	%rax, %rbx
	testq	%rax, %rax
	je	LBB0_2
LBB0_3:
	cmpl	$2, (%rbx)
	jl	LBB0_5
## %bb.4:
	movl	16(%rbx), %esi
	leaq	-48(%rbp), %rdi
	callq	_addr_string_fill
	leaq	L_.str(%rip), %rdi
	xorl	%ebx, %ebx
	movl	%eax, %esi
	xorl	%eax, %eax
	callq	_err
	jmp	LBB0_8
LBB0_5:
	movq	8(%r14), %rax
	movq	(%rax), %rcx
	movq	8(%rbx), %rdx
	cmpq	$0, (%rdx,%rcx,8)
	je	LBB0_6
## %bb.7:
	movl	8(%rax), %r15d
	movl	(%r14), %esi
	leaq	-48(%rbp), %rdi
	callq	_addr_string_fill
	leaq	L_.str.1(%rip), %rdi
	xorl	%ebx, %ebx
	movl	%r15d, %esi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_err
	jmp	LBB0_8
LBB0_6:
	movq	%r14, (%rdx,%rcx,8)
	movq	_tipc_net@GOTPCREL(%rip), %rax
	movq	(%rax), %r15
	movl	(%r14), %edi
	callq	_tipc_zone
	movq	(%r15,%rax,8), %rax
	incl	(%rax)
	incl	(%rbx)
	jmp	LBB0_8
LBB0_2:
	xorl	%ebx, %ebx
LBB0_8:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-32(%rbp), %rax
	jne	LBB0_10
## %bb.9:
	movq	%rbx, %rax
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Attempt to create third link to %s\n"

	.comm	_tipc_net,8,3                   ## @tipc_net
L_.str.1:                               ## @.str.1
	.asciz	"Attempt to establish second link on <%s> to %s \n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_tipc_node_attach_link          ; -- Begin function tipc_node_attach_link
	.p2align	2
_tipc_node_attach_link:                 ; @tipc_node_attach_link
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	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
	mov	x20, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #24]
	ldr	w0, [x0]
	bl	_tipc_node_find
	mov	x19, x0
	cbnz	x0, LBB0_2
; %bb.1:
	ldr	w0, [x20]
	bl	_tipc_node_create
	mov	x19, x0
	cbz	x0, LBB0_7
LBB0_2:
	ldr	w8, [x19]
	cmp	w8, #2
	b.lt	LBB0_4
; %bb.3:
	ldr	w1, [x19, #16]
	add	x0, sp, #8
	bl	_addr_string_fill
	mov	x1, x0
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	b	LBB0_6
LBB0_4:
	ldr	x8, [x20, #8]
	ldr	x9, [x8]
	ldr	x10, [x19, #8]
	ldr	x11, [x10, x9, lsl #3]
	cbz	x11, LBB0_9
; %bb.5:
	ldr	w19, [x8, #8]
	ldr	w1, [x20]
	add	x0, sp, #8
	bl	_addr_string_fill
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
Lloh5:
	adrp	x0, l_.str.1@PAGE
Lloh6:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x19
LBB0_6:
	bl	_err
	mov	x19, #0
LBB0_7:
	ldr	x8, [sp, #24]
Lloh7:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh8:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh9:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_10
; %bb.8:
	mov	x0, x19
	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
	add	sp, sp, #80
	ret
LBB0_9:
	str	x20, [x10, x9, lsl #3]
Lloh10:
	adrp	x8, _tipc_net@GOTPAGE
Lloh11:
	ldr	x8, [x8, _tipc_net@GOTPAGEOFF]
Lloh12:
	ldr	x21, [x8]
	ldr	w0, [x20]
	bl	_tipc_zone
	ldr	x8, [x21, x0, lsl #3]
	ldr	w9, [x8]
	add	w9, w9, #1
	str	w9, [x8]
	ldr	w8, [x19]
	add	w8, w8, #1
	str	w8, [x19]
	b	LBB0_7
LBB0_10:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Attempt to create third link to %s\n"

	.comm	_tipc_net,8,3                   ; @tipc_net
l_.str.1:                               ; @.str.1
	.asciz	"Attempt to establish second link on <%s> to %s \n"

.subsections_via_symbols
