	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_tipc_send                      ## -- Begin function tipc_send
	.p2align	4, 0x90
_tipc_send:                             ## @tipc_send
	.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	%rdx, %r14
	movl	%esi, %r15d
	callq	_tipc_port_deref
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	%rax, %r12
	cmpl	$0, 4(%rax)
	je	LBB0_2
## %bb.3:
	movl	$1, (%r12)
	movq	%r12, %rdi
	callq	_tipc_port_congested
	testl	%eax, %eax
	je	LBB0_4
LBB0_9:
	movq	%r12, %rdi
	callq	_port_unreliable
	testq	%rax, %rax
	je	LBB0_10
## %bb.13:
	movl	$0, (%r12)
	movq	%r14, %rdi
	movl	%r15d, %esi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_msg_calc_data_size             ## TAILCALL
LBB0_2:
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_11:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_12:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movq	%r12, %rdi
	callq	_port_peernode
	movq	%rax, %rbx
	movq	_tipc_own_addr@GOTPCREL(%rip), %rax
	xorl	%edi, %edi
	cmpq	(%rax), %rbx
	setne	%dil
	callq	_likely
	movq	%r12, %rdi
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	movq	%r14, %rsi
	movl	%r15d, %edx
	movq	%rbx, %rcx
	callq	_tipc_link_send_sections_fast
	jmp	LBB0_7
LBB0_10:
	movq	_ELINKCONG@GOTPCREL(%rip), %rax
	jmp	LBB0_11
LBB0_6:
	movl	%r15d, %esi
	movq	%r14, %rdx
	callq	_tipc_port_recv_sections
LBB0_7:
	movl	%eax, %ebx
	movq	_ELINKCONG@GOTPCREL(%rip), %rax
	xorl	%edi, %edi
	movl	(%rax), %eax
	addl	%ebx, %eax
	setne	%dil
	callq	_likely
	testq	%rax, %rax
	je	LBB0_9
## %bb.8:
	movq	%r12, %rdi
	callq	_port_incr_out_seqno
	movl	$0, (%r12)
	incl	8(%r12)
	jmp	LBB0_12
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_tipc_own_addr,8,3              ## @tipc_own_addr
	.comm	_ELINKCONG,4,2                  ## @ELINKCONG
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_tipc_send                      ; -- Begin function tipc_send
	.p2align	2
_tipc_send:                             ; @tipc_send
	.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, x2
	mov	x20, x1
	bl	_tipc_port_deref
	cbz	x0, LBB0_5
; %bb.1:
	mov	x19, x0
	ldr	w8, [x0, #4]
	cbz	w8, LBB0_5
; %bb.2:
	mov	w8, #1
	str	w8, [x19]
	mov	x0, x19
	bl	_tipc_port_congested
	cbz	w0, LBB0_8
LBB0_3:
	mov	x0, x19
	bl	_port_unreliable
	cbz	x0, LBB0_10
; %bb.4:
	str	wzr, [x19]
	mov	x0, x21
	mov	x1, x20
	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
	b	_msg_calc_data_size
LBB0_5:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_6:
	ldr	w8, [x8]
	neg	w22, w8
LBB0_7:
	mov	x0, x22
	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
LBB0_8:
	mov	x0, x19
	bl	_port_peernode
	mov	x22, x0
Lloh2:
	adrp	x8, _tipc_own_addr@GOTPAGE
Lloh3:
	ldr	x8, [x8, _tipc_own_addr@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	cmp	x0, x8
	cset	w0, ne
	bl	_likely
	cbz	x0, LBB0_11
; %bb.9:
	mov	x0, x19
	mov	x1, x21
	mov	x2, x20
	mov	x3, x22
	bl	_tipc_link_send_sections_fast
	b	LBB0_12
LBB0_10:
Lloh5:
	adrp	x8, _ELINKCONG@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ELINKCONG@GOTPAGEOFF]
	b	LBB0_6
LBB0_11:
	mov	x0, x19
	mov	x1, x20
	mov	x2, x21
	bl	_tipc_port_recv_sections
LBB0_12:
	mov	x22, x0
Lloh7:
	adrp	x8, _ELINKCONG@GOTPAGE
Lloh8:
	ldr	x8, [x8, _ELINKCONG@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	cmn	w0, w8
	cset	w0, ne
	bl	_likely
	cbz	x0, LBB0_3
; %bb.13:
	mov	x0, x19
	bl	_port_incr_out_seqno
	str	wzr, [x19]
	ldr	w8, [x19, #8]
	add	w8, w8, #1
	str	w8, [x19, #8]
	b	LBB0_7
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_tipc_own_addr,8,3              ; @tipc_own_addr
	.comm	_ELINKCONG,4,2                  ; @ELINKCONG
.subsections_via_symbols
