	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_tipc_cltr_create               ## -- Begin function tipc_cltr_create
	.p2align	4, 0x90
_tipc_cltr_create:                      ## @tipc_cltr_create
	.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
	movl	%edi, %r14d
	movq	_GFP_ATOMIC@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movl	$40, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_7
## %bb.1:
	movq	%rax, %rbx
	movl	%r14d, %edi
	callq	_tipc_zone
	movl	%eax, %r15d
	movl	%r14d, %edi
	callq	_tipc_cluster
	movl	%r15d, %edi
	movl	%eax, %esi
	xorl	%edx, %edx
	callq	_tipc_addr
	movl	%eax, 32(%rbx)
	movl	%r14d, %edi
	callq	_in_own_cluster
	testq	%rax, %rax
	movq	_LOWEST_SLAVE@GOTPCREL(%rip), %r15
	movl	$1, %eax
	cmovnel	(%r15), %eax
	movq	_tipc_max_slaves@GOTPCREL(%rip), %rcx
	cmoveq	_tipc_max_nodes@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	leal	(%rcx,%rax), %edi
	incl	%edi
	movl	(%r12), %edx
	movl	$8, %esi
	callq	_kcalloc
	movq	%rax, 16(%rbx)
	testq	%rax, %rax
	je	LBB0_8
## %bb.2:
	movl	%r14d, %edi
	callq	_in_own_cluster
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movq	16(%rbx), %rax
	movq	_tipc_local_nodes@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
LBB0_4:
	movl	(%r15), %eax
	decl	%eax
	movl	%eax, (%rbx)
	movq	$0, 24(%rbx)
	movl	%r14d, %edi
	callq	_tipc_zone
	movl	%eax, %edi
	callq	_tipc_zone_find
	movq	%rax, %r15
	testq	%rax, %rax
	jne	LBB0_6
## %bb.5:
	movl	%r14d, %edi
	callq	_tipc_zone_create
	movq	%rax, %r15
	testq	%rax, %rax
	je	LBB0_9
LBB0_6:
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_tipc_zone_attach_cluster
	movq	%r15, 8(%rbx)
	jmp	LBB0_12
LBB0_7:
	leaq	L_.str(%rip), %rdi
	callq	_warn
	jmp	LBB0_11
LBB0_8:
	leaq	L_.str.1(%rip), %rdi
	callq	_warn
	jmp	LBB0_10
LBB0_9:
	movq	16(%rbx), %rdi
	callq	_kfree
LBB0_10:
	movq	%rbx, %rdi
	callq	_kfree
LBB0_11:
	xorl	%ebx, %ebx
LBB0_12:
	movq	%rbx, %rax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_ATOMIC,4,2                 ## @GFP_ATOMIC
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Cluster creation failure, no memory\n"

	.comm	_LOWEST_SLAVE,4,2               ## @LOWEST_SLAVE
	.comm	_tipc_max_slaves,4,2            ## @tipc_max_slaves
	.comm	_tipc_max_nodes,4,2             ## @tipc_max_nodes
L_.str.1:                               ## @.str.1
	.asciz	"Cluster creation failure, no memory for node area\n"

	.comm	_tipc_local_nodes,8,3           ## @tipc_local_nodes
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_tipc_cltr_create               ; -- Begin function tipc_cltr_create
	.p2align	2
_tipc_cltr_create:                      ; @tipc_cltr_create
	.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	x20, x0
Lloh0:
	adrp	x22, _GFP_ATOMIC@GOTPAGE
Lloh1:
	ldr	x22, [x22, _GFP_ATOMIC@GOTPAGEOFF]
	ldr	w1, [x22]
	mov	w0, #40
	bl	_kzalloc
	mov	x19, x0
	cbz	x0, LBB0_7
; %bb.1:
	mov	x0, x20
	bl	_tipc_zone
	mov	x21, x0
	mov	x0, x20
	bl	_tipc_cluster
	mov	x1, x0
	mov	x0, x21
	mov	w2, #0
	bl	_tipc_addr
	str	w0, [x19, #32]
	mov	x0, x20
	bl	_in_own_cluster
Lloh2:
	adrp	x21, _LOWEST_SLAVE@GOTPAGE
Lloh3:
	ldr	x21, [x21, _LOWEST_SLAVE@GOTPAGEOFF]
	ldr	w8, [x21]
Lloh4:
	adrp	x9, _tipc_max_nodes@GOTPAGE
Lloh5:
	ldr	x9, [x9, _tipc_max_nodes@GOTPAGEOFF]
Lloh6:
	adrp	x10, _tipc_max_slaves@GOTPAGE
Lloh7:
	ldr	x10, [x10, _tipc_max_slaves@GOTPAGEOFF]
	cmp	x0, #0
	csel	x9, x9, x10, eq
	csinc	w8, w8, wzr, ne
	ldr	w9, [x9]
	add	w8, w9, w8
	add	w0, w8, #1
	ldr	w2, [x22]
	mov	w1, #8
	bl	_kcalloc
	str	x0, [x19, #16]
	cbz	x0, LBB0_8
; %bb.2:
	mov	x0, x20
	bl	_in_own_cluster
	cbz	x0, LBB0_4
; %bb.3:
	ldr	x8, [x19, #16]
Lloh8:
	adrp	x9, _tipc_local_nodes@GOTPAGE
Lloh9:
	ldr	x9, [x9, _tipc_local_nodes@GOTPAGEOFF]
Lloh10:
	str	x8, [x9]
LBB0_4:
	ldr	w8, [x21]
	sub	w8, w8, #1
	str	w8, [x19]
	str	xzr, [x19, #24]
	mov	x0, x20
	bl	_tipc_zone
	bl	_tipc_zone_find
	mov	x21, x0
	cbnz	x0, LBB0_6
; %bb.5:
	mov	x0, x20
	bl	_tipc_zone_create
	mov	x21, x0
	cbz	x0, LBB0_9
LBB0_6:
	mov	x0, x21
	mov	x1, x19
	bl	_tipc_zone_attach_cluster
	str	x21, [x19, #8]
	b	LBB0_11
LBB0_7:
Lloh11:
	adrp	x0, l_.str@PAGE
Lloh12:
	add	x0, x0, l_.str@PAGEOFF
	bl	_warn
	b	LBB0_11
LBB0_8:
Lloh13:
	adrp	x0, l_.str.1@PAGE
Lloh14:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_warn
	b	LBB0_10
LBB0_9:
	ldr	x0, [x19, #16]
	bl	_kfree
LBB0_10:
	mov	x0, x19
	bl	_kfree
	mov	x19, #0
LBB0_11:
	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 AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotStr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_ATOMIC,4,2                 ; @GFP_ATOMIC
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Cluster creation failure, no memory\n"

	.comm	_LOWEST_SLAVE,4,2               ; @LOWEST_SLAVE
	.comm	_tipc_max_slaves,4,2            ; @tipc_max_slaves
	.comm	_tipc_max_nodes,4,2             ; @tipc_max_nodes
l_.str.1:                               ; @.str.1
	.asciz	"Cluster creation failure, no memory for node area\n"

	.comm	_tipc_local_nodes,8,3           ; @tipc_local_nodes
.subsections_via_symbols
