	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_tipc_nametbl_publish           ## -- Begin function tipc_nametbl_publish
	.p2align	4, 0x90
_tipc_nametbl_publish:                  ## @tipc_nametbl_publish
	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r12
	movq	_table@GOTPCREL(%rip), %r14
	movq	_tipc_max_publications@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	cmpq	%rsi, (%r14)
	jge	LBB0_1
## %bb.2:
	movq	%r9, %rbx
	movq	%rcx, %r15
	movq	%rdi, %r13
	movq	%r8, -56(%rbp)                  ## 8-byte Spill
	movq	%rdx, -48(%rbp)                 ## 8-byte Spill
	movq	_TIPC_RESERVED_TYPES@GOTPCREL(%rip), %rax
	cmpq	%rdi, (%rax)
	jle	LBB0_5
## %bb.3:
	movq	_rsv_publ_ok@GOTPCREL(%rip), %rdi
	callq	_atomic_read
	testl	%eax, %eax
	je	LBB0_4
LBB0_5:
	movq	_tipc_nametbl_lock@GOTPCREL(%rip), %rdi
	callq	_write_lock_bh
	incq	(%r14)
	movq	_tipc_own_addr@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	%rbx, (%rsp)
	movq	%r13, %rdi
	movq	%r12, %rsi
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	movq	%r15, %rcx
	movq	-56(%rbp), %r9                  ## 8-byte Reload
	callq	_tipc_nametbl_insert_publ
	movq	%rax, %rbx
	testq	%rax, %rax
	je	LBB0_8
## %bb.6:
	movq	_TIPC_NODE_SCOPE@GOTPCREL(%rip), %rax
	cmpq	%r15, (%rax)
	je	LBB0_8
## %bb.7:
	movq	%rbx, %rdi
	callq	_tipc_named_publish
LBB0_8:
	movq	_tipc_nametbl_lock@GOTPCREL(%rip), %rdi
	callq	_write_unlock_bh
	jmp	LBB0_9
LBB0_1:
	leaq	L_.str(%rip), %rdi
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_warn
LBB0_9:
	movq	%rbx, %rax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	leaq	L_.str.1(%rip), %rdi
	xorl	%ebx, %ebx
	movq	%r13, %rsi
	movq	%r12, %rdx
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	xorl	%eax, %eax
	callq	_warn
	jmp	LBB0_9
	.cfi_endproc
                                        ## -- End function
	.comm	_table,8,3                      ## @table
	.comm	_tipc_max_publications,8,3      ## @tipc_max_publications
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Publication failed, local publication limit reached (%u)\n"

	.comm	_TIPC_RESERVED_TYPES,8,3        ## @TIPC_RESERVED_TYPES
	.comm	_rsv_publ_ok,4,2                ## @rsv_publ_ok
L_.str.1:                               ## @.str.1
	.asciz	"Publication failed, reserved name {%u,%u,%u}\n"

	.comm	_tipc_nametbl_lock,4,2          ## @tipc_nametbl_lock
	.comm	_tipc_own_addr,4,2              ## @tipc_own_addr
	.comm	_TIPC_NODE_SCOPE,8,3            ## @TIPC_NODE_SCOPE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_tipc_nametbl_publish           ; -- Begin function tipc_nametbl_publish
	.p2align	2
_tipc_nametbl_publish:                  ; @tipc_nametbl_publish
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x24, x1
Lloh0:
	adrp	x25, _table@GOTPAGE
Lloh1:
	ldr	x25, [x25, _table@GOTPAGEOFF]
	ldr	x8, [x25]
Lloh2:
	adrp	x9, _tipc_max_publications@GOTPAGE
Lloh3:
	ldr	x9, [x9, _tipc_max_publications@GOTPAGEOFF]
Lloh4:
	ldr	x1, [x9]
	cmp	x8, x1
	b.ge	LBB0_6
; %bb.1:
	mov	x20, x5
	mov	x21, x4
	mov	x19, x3
	mov	x23, x2
	mov	x22, x0
Lloh5:
	adrp	x8, _TIPC_RESERVED_TYPES@GOTPAGE
Lloh6:
	ldr	x8, [x8, _TIPC_RESERVED_TYPES@GOTPAGEOFF]
Lloh7:
	ldr	x8, [x8]
	cmp	x8, x0
	b.le	LBB0_3
; %bb.2:
Lloh8:
	adrp	x0, _rsv_publ_ok@GOTPAGE
Lloh9:
	ldr	x0, [x0, _rsv_publ_ok@GOTPAGEOFF]
	bl	_atomic_read
	cbz	w0, LBB0_9
LBB0_3:
Lloh10:
	adrp	x0, _tipc_nametbl_lock@GOTPAGE
Lloh11:
	ldr	x0, [x0, _tipc_nametbl_lock@GOTPAGEOFF]
	bl	_write_lock_bh
	ldr	x8, [x25]
	add	x8, x8, #1
	str	x8, [x25]
Lloh12:
	adrp	x8, _tipc_own_addr@GOTPAGE
Lloh13:
	ldr	x8, [x8, _tipc_own_addr@GOTPAGEOFF]
Lloh14:
	ldr	w4, [x8]
	mov	x0, x22
	mov	x1, x24
	mov	x2, x23
	mov	x3, x19
	mov	x5, x21
	mov	x6, x20
	bl	_tipc_nametbl_insert_publ
	mov	x20, x0
Lloh15:
	adrp	x8, _TIPC_NODE_SCOPE@GOTPAGE
Lloh16:
	ldr	x8, [x8, _TIPC_NODE_SCOPE@GOTPAGEOFF]
Lloh17:
	ldr	x8, [x8]
	cmp	x0, #0
	ccmp	x8, x19, #4, ne
	b.eq	LBB0_5
; %bb.4:
	mov	x0, x20
	bl	_tipc_named_publish
LBB0_5:
Lloh18:
	adrp	x0, _tipc_nametbl_lock@GOTPAGE
Lloh19:
	ldr	x0, [x0, _tipc_nametbl_lock@GOTPAGEOFF]
	bl	_write_unlock_bh
	b	LBB0_8
LBB0_6:
Lloh20:
	adrp	x0, l_.str@PAGE
Lloh21:
	add	x0, x0, l_.str@PAGEOFF
LBB0_7:
	bl	_warn
	mov	x20, #0
LBB0_8:
	mov	x0, x20
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_9:
	stp	x24, x23, [sp]
Lloh22:
	adrp	x0, l_.str.1@PAGE
Lloh23:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x22
	b	LBB0_7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpAdd	Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.comm	_table,8,3                      ; @table
	.comm	_tipc_max_publications,8,3      ; @tipc_max_publications
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Publication failed, local publication limit reached (%u)\n"

	.comm	_TIPC_RESERVED_TYPES,8,3        ; @TIPC_RESERVED_TYPES
	.comm	_rsv_publ_ok,4,2                ; @rsv_publ_ok
l_.str.1:                               ; @.str.1
	.asciz	"Publication failed, reserved name {%u,%u,%u}\n"

	.comm	_tipc_nametbl_lock,4,2          ; @tipc_nametbl_lock
	.comm	_tipc_own_addr,4,2              ; @tipc_own_addr
	.comm	_TIPC_NODE_SCOPE,8,3            ; @TIPC_NODE_SCOPE
.subsections_via_symbols
