	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_tipc_send_buf                  ## -- Begin function tipc_send_buf
	.p2align	4, 0x90
_tipc_send_buf:                         ## @tipc_send_buf
	.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
	movl	%edx, %r13d
	movq	%rsi, %r14
	callq	_tipc_port_deref
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	%rax, %rbx
	cmpl	$0, 8(%rax)
	je	LBB0_2
## %bb.3:
	movq	%rbx, %r15
	addq	$4, %r15
	movq	%r15, %rdi
	callq	_msg_hdr_sz
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movq	%rax, %rbx
	movl	%r13d, %r12d
	addq	%rax, %r12
	movq	%r15, %rdi
	movq	%r12, %rsi
	callq	_msg_set_size
	movq	%r14, -48(%rbp)                 ## 8-byte Spill
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_skb_cow
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	jmp	LBB0_14
LBB0_2:
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_14:
	xorl	%r13d, %r13d
	subl	(%rax), %r13d
LBB0_15:
	movl	%r13d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_skb_push
	movq	%r14, %rdi
	movq	%r15, %rsi
	movq	%rbx, %rdx
	callq	_skb_copy_to_linear_data
	movq	%r15, %rdi
	callq	_msg_destnode
	movq	%rax, %r14
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movl	$1, (%rbx)
	movq	%rbx, %rdi
	callq	_tipc_port_congested
	testl	%eax, %eax
	je	LBB0_6
LBB0_11:
	movq	%rbx, %rdi
	callq	_port_unreliable
	testq	%rax, %rax
	je	LBB0_13
## %bb.12:
	movl	$0, (%rbx)
	jmp	LBB0_15
LBB0_6:
	movq	-48(%rbp), %r15                 ## 8-byte Reload
	movq	_tipc_own_addr@GOTPCREL(%rip), %rax
	xorl	%edi, %edi
	cmpq	(%rax), %r14
	setne	%dil
	callq	_likely
	movq	%r15, %rdi
	testq	%rax, %rax
	je	LBB0_8
## %bb.7:
	movq	%r14, %rsi
	callq	_tipc_send_buf_fast
	jmp	LBB0_9
LBB0_13:
	movq	_ELINKCONG@GOTPCREL(%rip), %rax
	jmp	LBB0_14
LBB0_8:
	callq	_tipc_port_recv_msg
	movq	%r12, %rax
LBB0_9:
	movq	_ELINKCONG@GOTPCREL(%rip), %rcx
	xorl	%edi, %edi
	movq	(%rcx), %rcx
	movq	%rax, %r14
	addq	%rax, %rcx
	setne	%dil
	callq	_likely
	testq	%rax, %rax
	je	LBB0_11
## %bb.10:
	movq	%rbx, %rdi
	callq	_port_incr_out_seqno
	incl	12(%rbx)
	movl	$0, (%rbx)
	movl	%r14d, %r13d
	jmp	LBB0_15
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_tipc_own_addr,8,3              ## @tipc_own_addr
	.comm	_ELINKCONG,8,3                  ## @ELINKCONG
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_tipc_send_buf                  ; -- Begin function tipc_send_buf
	.p2align	2
_tipc_send_buf:                         ; @tipc_send_buf
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x19, x2
	mov	x22, x1
	bl	_tipc_port_deref
	cbz	x0, LBB0_4
; %bb.1:
	mov	x20, x0
	ldr	w8, [x0, #8]
	cbz	w8, LBB0_4
; %bb.2:
	add	x23, x20, #4
	mov	x0, x23
	bl	_msg_hdr_sz
	mov	x24, x0
	add	x21, x0, w19, uxtw
	mov	x0, x23
	mov	x1, x21
	bl	_msg_set_size
	mov	x0, x22
	mov	x1, x24
	bl	_skb_cow
	cbz	x0, LBB0_7
; %bb.3:
Lloh0:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_5
LBB0_4:
Lloh2:
	adrp	x8, _EINVAL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_5:
	ldr	w8, [x8]
	neg	w19, w8
LBB0_6:
	mov	x0, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_7:
	mov	x0, x22
	mov	x1, x24
	bl	_skb_push
	mov	x0, x22
	mov	x1, x23
	mov	x2, x24
	bl	_skb_copy_to_linear_data
	mov	x0, x23
	bl	_msg_destnode
	mov	x23, x0
	mov	w8, #1
	str	w8, [x20]
	mov	x0, x20
	bl	_tipc_port_congested
	cbz	w0, LBB0_10
LBB0_8:
	mov	x0, x20
	bl	_port_unreliable
	cbz	x0, LBB0_12
; %bb.9:
	str	wzr, [x20]
	b	LBB0_6
LBB0_10:
Lloh4:
	adrp	x8, _tipc_own_addr@GOTPAGE
Lloh5:
	ldr	x8, [x8, _tipc_own_addr@GOTPAGEOFF]
Lloh6:
	ldr	x8, [x8]
	cmp	x23, x8
	cset	w0, ne
	bl	_likely
	cbz	x0, LBB0_13
; %bb.11:
	mov	x0, x22
	mov	x1, x23
	bl	_tipc_send_buf_fast
	mov	x21, x0
	b	LBB0_14
LBB0_12:
Lloh7:
	adrp	x8, _ELINKCONG@GOTPAGE
Lloh8:
	ldr	x8, [x8, _ELINKCONG@GOTPAGEOFF]
	b	LBB0_5
LBB0_13:
	mov	x0, x22
	bl	_tipc_port_recv_msg
LBB0_14:
Lloh9:
	adrp	x8, _ELINKCONG@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ELINKCONG@GOTPAGEOFF]
Lloh11:
	ldr	x8, [x8]
	cmn	x21, x8
	cset	w0, ne
	bl	_likely
	cbz	x0, LBB0_8
; %bb.15:
	mov	x0, x20
	bl	_port_incr_out_seqno
	ldr	w8, [x20, #12]
	add	w8, w8, #1
	str	w8, [x20, #12]
	str	wzr, [x20]
	mov	x19, x21
	b	LBB0_6
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_tipc_own_addr,8,3              ; @tipc_own_addr
	.comm	_ELINKCONG,8,3                  ; @ELINKCONG
.subsections_via_symbols
