	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_tipc_node_create               ## -- Begin function tipc_node_create
	.p2align	4, 0x90
_tipc_node_create:                      ## @tipc_node_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
	movq	%rdi, %r14
	movq	_node_create_lock@GOTPCREL(%rip), %rdi
	callq	_spin_lock_bh
	movq	_tipc_nodes@GOTPCREL(%rip), %r12
	movq	(%r12), %rbx
	testq	%rbx, %rbx
	je	LBB0_5
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	%r14, (%rbx)
	jg	LBB0_5
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	je	LBB0_19
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	16(%rbx), %rbx
	testq	%rbx, %rbx
	jne	LBB0_2
LBB0_5:
	movq	_GFP_ATOMIC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$40, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_6
## %bb.7:
	movq	%rax, %rbx
	movq	%r14, %rdi
	callq	_tipc_cltr_find
	movq	%rax, %r15
	testq	%rax, %rax
	jne	LBB0_10
## %bb.8:
	movq	%r14, %rdi
	callq	_tipc_cltr_create
	movq	%rax, %r15
	testq	%rax, %rax
	je	LBB0_9
LBB0_10:
	movq	%r14, (%rbx)
	leaq	36(%rbx), %rdi
	callq	_spin_lock_init
	movq	%rbx, %rdi
	addq	$32, %rdi
	callq	_INIT_LIST_HEAD
	movq	%r15, 24(%rbx)
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_tipc_cltr_attach_node
	movl	$-1, 8(%rbx)
	movq	(%r12), %rax
	testq	%rax, %rax
	je	LBB0_18
## %bb.11:
	cmpq	%r14, (%rax)
	jle	LBB0_16
## %bb.12:
	movq	_tipc_nodes@GOTPCREL(%rip), %r12
	movq	%rax, 16(%rbx)
	jmp	LBB0_18
	.p2align	4, 0x90
LBB0_16:                                ## =>This Inner Loop Header: Depth=1
	movq	%rax, %r12
	movq	16(%rax), %rax
	testq	%rax, %rax
	je	LBB0_17
## %bb.13:                              ##   in Loop: Header=BB0_16 Depth=1
	cmpq	%r14, (%rax)
	jle	LBB0_16
## %bb.14:
	addq	$16, %r12
	movq	%rax, 16(%rbx)
	jmp	LBB0_18
LBB0_6:
	movq	_node_create_lock@GOTPCREL(%rip), %rdi
	callq	_spin_unlock_bh
	leaq	L_.str(%rip), %rdi
	callq	_warn
	xorl	%ebx, %ebx
	jmp	LBB0_20
LBB0_9:
	movq	_node_create_lock@GOTPCREL(%rip), %rdi
	callq	_spin_unlock_bh
	movq	%rbx, %rdi
	callq	_kfree
	xorl	%ebx, %ebx
	jmp	LBB0_20
LBB0_17:
	addq	$16, %r12
LBB0_18:
	movq	%rbx, (%r12)
LBB0_19:
	movq	_node_create_lock@GOTPCREL(%rip), %rdi
	callq	_spin_unlock_bh
LBB0_20:
	movq	%rbx, %rax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_node_create_lock,4,2           ## @node_create_lock
	.comm	_tipc_nodes,8,3                 ## @tipc_nodes
	.comm	_GFP_ATOMIC,4,2                 ## @GFP_ATOMIC
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Node creation failed, no memory\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_tipc_node_create               ; -- Begin function tipc_node_create
	.p2align	2
_tipc_node_create:                      ; @tipc_node_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	x0, _node_create_lock@GOTPAGE
Lloh1:
	ldr	x0, [x0, _node_create_lock@GOTPAGEOFF]
	bl	_spin_lock_bh
Lloh2:
	adrp	x22, _tipc_nodes@GOTPAGE
Lloh3:
	ldr	x22, [x22, _tipc_nodes@GOTPAGEOFF]
	ldr	x19, [x22]
	cbz	x19, LBB0_4
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19]
	cmp	x8, x20
	b.gt	LBB0_4
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	b.eq	LBB0_17
; %bb.3:                                ;   in Loop: Header=BB0_1 Depth=1
	ldr	x19, [x19, #16]
	cbnz	x19, LBB0_1
LBB0_4:
Lloh4:
	adrp	x8, _GFP_ATOMIC@GOTPAGE
Lloh5:
	ldr	x8, [x8, _GFP_ATOMIC@GOTPAGEOFF]
Lloh6:
	ldr	w1, [x8]
	mov	w0, #40
	bl	_kzalloc
	mov	x19, x0
	cbz	x0, LBB0_13
; %bb.5:
	mov	x0, x20
	bl	_tipc_cltr_find
	mov	x21, x0
	cbnz	x0, LBB0_7
; %bb.6:
	mov	x0, x20
	bl	_tipc_cltr_create
	mov	x21, x0
	cbz	x0, LBB0_14
LBB0_7:
	str	x20, [x19]
	add	x0, x19, #36
	bl	_spin_lock_init
	add	x0, x19, #32
	bl	_INIT_LIST_HEAD
	str	x21, [x19, #24]
	mov	x0, x21
	mov	x1, x19
	bl	_tipc_cltr_attach_node
	mov	w8, #-1
	str	w8, [x19, #8]
	ldr	x8, [x22]
	cbz	x8, LBB0_16
; %bb.8:
	ldr	x9, [x8]
	cmp	x9, x20
	b.le	LBB0_10
; %bb.9:
Lloh7:
	adrp	x22, _tipc_nodes@GOTPAGE
Lloh8:
	ldr	x22, [x22, _tipc_nodes@GOTPAGEOFF]
	str	x8, [x19, #16]
	b	LBB0_16
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	mov	x9, x8
	ldr	x8, [x8, #16]
	cbz	x8, LBB0_15
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=1
	ldr	x10, [x8]
	cmp	x10, x20
	b.le	LBB0_10
; %bb.12:
	add	x22, x9, #16
	str	x8, [x19, #16]
	b	LBB0_16
LBB0_13:
Lloh9:
	adrp	x0, _node_create_lock@GOTPAGE
Lloh10:
	ldr	x0, [x0, _node_create_lock@GOTPAGEOFF]
	bl	_spin_unlock_bh
Lloh11:
	adrp	x0, l_.str@PAGE
Lloh12:
	add	x0, x0, l_.str@PAGEOFF
	bl	_warn
	b	LBB0_18
LBB0_14:
Lloh13:
	adrp	x0, _node_create_lock@GOTPAGE
Lloh14:
	ldr	x0, [x0, _node_create_lock@GOTPAGEOFF]
	bl	_spin_unlock_bh
	mov	x0, x19
	bl	_kfree
	mov	x19, #0
	b	LBB0_18
LBB0_15:
	add	x22, x9, #16
LBB0_16:
	str	x19, [x22]
LBB0_17:
Lloh15:
	adrp	x0, _node_create_lock@GOTPAGE
Lloh16:
	ldr	x0, [x0, _node_create_lock@GOTPAGEOFF]
	bl	_spin_unlock_bh
LBB0_18:
	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	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_node_create_lock,4,2           ; @node_create_lock
	.comm	_tipc_nodes,8,3                 ; @tipc_nodes
	.comm	_GFP_ATOMIC,4,2                 ; @GFP_ATOMIC
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Node creation failed, no memory\n"

.subsections_via_symbols
