	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_tipc_cltr_attach_node          ## -- Begin function tipc_cltr_attach_node
	.p2align	4, 0x90
_tipc_cltr_attach_node:                 ## @tipc_cltr_attach_node
	.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
	movq	%rsi, %r14
	movq	%rdi, %r15
	movl	(%rsi), %edi
	callq	_tipc_node
	movq	%rax, %rbx
	movq	_tipc_max_nodes@GOTPCREL(%rip), %rax
	movq	(%rax), %r12
	movl	(%r14), %edi
	callq	_in_own_cluster
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	_tipc_highest_allowed_slave@GOTPCREL(%rip), %rax
	movq	(%rax), %r12
LBB0_2:
	xorl	%edi, %edi
	testq	%rbx, %rbx
	setne	%dil
	callq	_assert
	xorl	%edi, %edi
	cmpq	%r12, %rbx
	setbe	%dil
	callq	_assert
	movq	8(%r15), %rax
	xorl	%edi, %edi
	cmpq	$0, (%rax,%rbx,8)
	sete	%dil
	callq	_assert
	movq	8(%r15), %rax
	movq	%r14, (%rax,%rbx,8)
	cmpq	(%r15), %rbx
	jbe	LBB0_4
## %bb.3:
	movq	%rbx, (%r15)
LBB0_4:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_tipc_max_nodes,8,3             ## @tipc_max_nodes
	.comm	_tipc_highest_allowed_slave,8,3 ## @tipc_highest_allowed_slave
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_tipc_cltr_attach_node          ; -- Begin function tipc_cltr_attach_node
	.p2align	2
_tipc_cltr_attach_node:                 ; @tipc_cltr_attach_node
	.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	x19, x0
	ldr	w0, [x1]
	bl	_tipc_node
	mov	x20, x0
Lloh0:
	adrp	x8, _tipc_max_nodes@GOTPAGE
Lloh1:
	ldr	x8, [x8, _tipc_max_nodes@GOTPAGEOFF]
Lloh2:
	ldr	x22, [x8]
	ldr	w0, [x21]
	bl	_in_own_cluster
Lloh3:
	adrp	x8, _tipc_highest_allowed_slave@GOTPAGE
Lloh4:
	ldr	x8, [x8, _tipc_highest_allowed_slave@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	cmp	x0, #0
	csel	x22, x22, x8, eq
	cmp	x20, #0
	cset	w0, ne
	bl	_assert
	cmp	x20, x22
	cset	w0, ls
	bl	_assert
	ldr	x8, [x19, #8]
	lsl	x22, x20, #3
	ldr	x8, [x8, x22]
	cmp	x8, #0
	cset	w0, eq
	bl	_assert
	ldp	x9, x8, [x19]
	str	x21, [x8, x22]
	cmp	x20, x9
	b.ls	LBB0_2
; %bb.1:
	str	x20, [x19]
LBB0_2:
	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
	.cfi_endproc
                                        ; -- End function
	.comm	_tipc_max_nodes,8,3             ; @tipc_max_nodes
	.comm	_tipc_highest_allowed_slave,8,3 ; @tipc_highest_allowed_slave
.subsections_via_symbols
