	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_tipc_link_send_buf             ## -- Begin function tipc_link_send_buf
	.p2align	4, 0x90
_tipc_link_send_buf:                    ## @tipc_link_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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	%rsi, -64(%rbp)                 ## 8-byte Spill
	movq	%rsi, %rdi
	callq	_buf_msg
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_msg_size
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rdi
	callq	_msg_data_sz
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	(%r14), %r12
	movq	%rbx, %rdi
	callq	_msg_tot_importance
	movq	%rax, %r15
	movq	8(%r14), %rax
	xorl	%r13d, %r13d
	cmpq	(%rax,%r15,8), %r12
	setae	%r13b
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	movq	%r14, %rdi
	callq	_link_max_pkt
	movq	%rax, %r14
	movq	_tipc_own_addr@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_msg_set_prevnode
	movl	%r13d, %edi
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_4
## %bb.1:
	movq	-72(%rbp), %r12                 ## 8-byte Reload
	movq	_TIPC_CRITICAL_IMPORTANCE@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r15
	jbe	LBB0_25
## %bb.2:
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	callq	_msg_dbg
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	callq	_buf_discard
	movq	_CONN_MANAGER@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r15
	jbe	LBB0_24
## %bb.3:
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movl	76(%rbx), %esi
	leaq	L_.str.1(%rip), %rdi
	callq	_warn
	movq	%rbx, %rdi
	callq	_tipc_link_reset
	jmp	LBB0_24
LBB0_4:
	movq	%r12, %rax
	movq	-72(%rbp), %r12                 ## 8-byte Reload
	cmpq	%r14, %r12
	jbe	LBB0_5
## %bb.26:
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_tipc_link_send_long_buf        ## TAILCALL
LBB0_25:
	movq	%rbx, %rdi
	callq	_msg_origport
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movl	%eax, %esi
	movq	%r12, %rdx
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_link_schedule_port             ## TAILCALL
LBB0_5:
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	cmpq	32(%r15), %rax
	jbe	LBB0_7
## %bb.6:
	movq	%rax, 32(%r15)
LBB0_7:
	movl	16(%r15), %edi
	movq	%r15, %rsi
	callq	_tipc_bearer_congested
	xorl	%edi, %edi
	testl	%eax, %eax
	jne	LBB0_9
## %bb.8:
	movq	%r15, %rdi
	callq	_link_congested
	xorl	%edi, %edi
	testl	%eax, %eax
	sete	%dil
LBB0_9:
	callq	_likely
	testq	%rax, %rax
	movq	-64(%rbp), %r13                 ## 8-byte Reload
	je	LBB0_13
## %bb.10:
	movq	%r15, %rdi
	movq	%r13, %rsi
	movq	%rbx, %rdx
	callq	_link_add_to_outqueue
	movl	16(%r15), %edi
	leaq	72(%r15), %rdx
	movq	%r13, %rsi
	callq	_tipc_bearer_send
	movl	%eax, %edi
	callq	_likely
	testq	%rax, %rax
	je	LBB0_12
## %bb.11:
	movq	$0, 64(%r15)
	jmp	LBB0_24
LBB0_13:
	movq	%rbx, %rdi
	callq	_msg_user
	movq	_CHANGEOVER_PROTOCOL@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_20
## %bb.14:
	movq	%rbx, %rdi
	callq	_msg_user
	movq	_MSG_FRAGMENTER@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_20
## %bb.15:
	cmpq	$0, 24(%r15)
	je	LBB0_17
## %bb.16:
	movq	56(%r15), %rsi
	movq	%r15, %rdi
	movq	%r13, %rdx
	callq	_link_bundle_buf
	testq	%rax, %rax
	jne	LBB0_23
LBB0_17:
	leaq	(%r14,%r14), %rax
	movabsq	$-6148914691236517205, %rcx     ## imm = 0xAAAAAAAAAAAAAAAB
	mulq	%rcx
	shrq	%rdx
	cmpq	%rdx, %r12
	ja	LBB0_20
## %bb.18:
	movq	%r14, %rdi
	callq	_buf_acquire
	testq	%rax, %rax
	je	LBB0_20
## %bb.19:
	movq	%rax, %r14
	movq	_MSG_BUNDLER@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_OPEN_MSG@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_INT_H_SIZE@GOTPCREL(%rip), %rbx
	movl	(%rbx), %ecx
	movl	48(%r15), %r8d
	leaq	-80(%rbp), %r15
	movq	%r15, %rdi
	callq	_msg_init
	movl	(%rbx), %edx
	movq	%r14, %rdi
	movq	%r15, %rsi
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	callq	_skb_copy_to_linear_data
	movl	(%rbx), %esi
	movq	%r14, %rdi
	callq	_skb_trim
	movq	%r15, %rdi
	movq	%r14, %rsi
	movq	%r13, %rdx
	callq	_link_bundle_buf
	movq	%r14, %rdi
	callq	_buf_msg
	movq	%rax, %rbx
	incl	40(%r15)
	movq	%r14, %r13
LBB0_20:
	cmpq	$0, 24(%r15)
	jne	LBB0_22
## %bb.21:
	movq	%r13, 24(%r15)
LBB0_22:
	movq	%r15, %rdi
	movq	%r13, %rsi
	movq	%rbx, %rdx
	callq	_link_add_to_outqueue
LBB0_23:
	movl	16(%r15), %edi
	movq	%r15, %rsi
	callq	_tipc_bearer_resolve_congestion
	jmp	LBB0_24
LBB0_12:
	movl	16(%r15), %edi
	movq	%r15, %rsi
	callq	_tipc_bearer_schedule
	incl	44(%r15)
	movq	%r13, 24(%r15)
LBB0_24:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
                                        ## kill: def $eax killed $eax killed $rax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_tipc_own_addr,4,2              ## @tipc_own_addr
	.comm	_TIPC_CRITICAL_IMPORTANCE,8,3   ## @TIPC_CRITICAL_IMPORTANCE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"TIPC: Congestion, throwing away\n"

	.comm	_CONN_MANAGER,8,3               ## @CONN_MANAGER
L_.str.1:                               ## @.str.1
	.asciz	"Resetting link <%s>, send queue full"

	.comm	_CHANGEOVER_PROTOCOL,8,3        ## @CHANGEOVER_PROTOCOL
	.comm	_MSG_FRAGMENTER,8,3             ## @MSG_FRAGMENTER
	.comm	_MSG_BUNDLER,4,2                ## @MSG_BUNDLER
	.comm	_OPEN_MSG,4,2                   ## @OPEN_MSG
	.comm	_INT_H_SIZE,4,2                 ## @INT_H_SIZE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_tipc_link_send_buf             ; -- Begin function tipc_link_send_buf
	.p2align	2
_tipc_link_send_buf:                    ; @tipc_link_send_buf
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x21, x1
	mov	x20, x0
	mov	x0, x1
	bl	_buf_msg
	mov	x22, x0
	bl	_msg_size
	mov	x23, x0
	mov	x0, x22
	bl	_msg_data_sz
	mov	x19, x0
	ldr	x26, [x20]
	mov	x0, x22
	bl	_msg_tot_importance
	mov	x25, x0
	ldr	x8, [x20, #8]
	ldr	x27, [x8, x0, lsl #3]
	mov	x0, x20
	bl	_link_max_pkt
	mov	x24, x0
Lloh0:
	adrp	x8, _tipc_own_addr@GOTPAGE
Lloh1:
	ldr	x8, [x8, _tipc_own_addr@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x22
	bl	_msg_set_prevnode
	cmp	x26, x27
	cset	w0, hs
	bl	_unlikely
	cbz	x0, LBB0_4
; %bb.1:
Lloh3:
	adrp	x8, _TIPC_CRITICAL_IMPORTANCE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _TIPC_CRITICAL_IMPORTANCE@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	cmp	x25, x8
	b.ls	LBB0_6
; %bb.2:
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x22
	bl	_msg_dbg
	mov	x0, x21
	bl	_buf_discard
Lloh8:
	adrp	x8, _CONN_MANAGER@GOTPAGE
Lloh9:
	ldr	x8, [x8, _CONN_MANAGER@GOTPAGEOFF]
Lloh10:
	ldr	x8, [x8]
	cmp	x25, x8
	b.ls	LBB0_26
; %bb.3:
	ldr	w1, [x20, #76]
Lloh11:
	adrp	x0, l_.str.1@PAGE
Lloh12:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_warn
	mov	x0, x20
	bl	_tipc_link_reset
	b	LBB0_26
LBB0_4:
	cmp	x23, x24
	b.ls	LBB0_7
; %bb.5:
	mov	x0, x20
	mov	x1, x21
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	b	_tipc_link_send_long_buf
LBB0_6:
	mov	x0, x22
	bl	_msg_origport
	mov	x1, x0
	mov	x0, x20
	mov	x2, x23
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	b	_link_schedule_port
LBB0_7:
	ldr	x8, [x20, #32]
	cmp	x26, x8
	b.ls	LBB0_9
; %bb.8:
	str	x26, [x20, #32]
LBB0_9:
	ldr	w0, [x20, #16]
	mov	x1, x20
	bl	_tipc_bearer_congested
	cbz	w0, LBB0_13
; %bb.10:
	mov	w0, #0
	bl	_likely
	cbz	x0, LBB0_14
LBB0_11:
	mov	x0, x20
	mov	x1, x21
	mov	x2, x22
	bl	_link_add_to_outqueue
	ldr	w0, [x20, #16]
	add	x2, x20, #72
	mov	x1, x21
	bl	_tipc_bearer_send
	bl	_likely
	cbz	x0, LBB0_25
; %bb.12:
	str	xzr, [x20, #64]
	b	LBB0_26
LBB0_13:
	mov	x0, x20
	bl	_link_congested
	cmp	w0, #0
	cset	w0, eq
	bl	_likely
	cbnz	x0, LBB0_11
LBB0_14:
	mov	x0, x22
	bl	_msg_user
Lloh13:
	adrp	x8, _CHANGEOVER_PROTOCOL@GOTPAGE
Lloh14:
	ldr	x8, [x8, _CHANGEOVER_PROTOCOL@GOTPAGEOFF]
Lloh15:
	ldr	x8, [x8]
	cmp	x0, x8
	b.eq	LBB0_21
; %bb.15:
	mov	x0, x22
	bl	_msg_user
Lloh16:
	adrp	x8, _MSG_FRAGMENTER@GOTPAGE
Lloh17:
	ldr	x8, [x8, _MSG_FRAGMENTER@GOTPAGEOFF]
Lloh18:
	ldr	x8, [x8]
	cmp	x0, x8
	b.eq	LBB0_21
; %bb.16:
	ldr	x8, [x20, #24]
	cbz	x8, LBB0_18
; %bb.17:
	ldr	x1, [x20, #56]
	mov	x0, x20
	mov	x2, x21
	bl	_link_bundle_buf
	cbnz	x0, LBB0_24
LBB0_18:
	lsl	x8, x24, #1
	mov	x9, #-6148914691236517206
	movk	x9, #43691
	umulh	x8, x8, x9
	cmp	x23, x8, lsr #1
	b.hi	LBB0_21
; %bb.19:
	mov	x0, x24
	bl	_buf_acquire
	cbz	x0, LBB0_21
; %bb.20:
	mov	x23, x0
Lloh19:
	adrp	x8, _MSG_BUNDLER@GOTPAGE
Lloh20:
	ldr	x8, [x8, _MSG_BUNDLER@GOTPAGEOFF]
Lloh21:
	adrp	x9, _OPEN_MSG@GOTPAGE
Lloh22:
	ldr	x9, [x9, _OPEN_MSG@GOTPAGEOFF]
Lloh23:
	ldr	w1, [x8]
Lloh24:
	ldr	w2, [x9]
Lloh25:
	adrp	x22, _INT_H_SIZE@GOTPAGE
Lloh26:
	ldr	x22, [x22, _INT_H_SIZE@GOTPAGEOFF]
	ldr	w3, [x22]
	ldr	w4, [x20, #48]
	add	x0, sp, #8
	bl	_msg_init
	ldr	w2, [x22]
	add	x1, sp, #8
	mov	x0, x23
	bl	_skb_copy_to_linear_data
	ldr	w1, [x22]
	mov	x0, x23
	bl	_skb_trim
	mov	x0, x20
	mov	x1, x23
	mov	x2, x21
	bl	_link_bundle_buf
	mov	x0, x23
	bl	_buf_msg
	mov	x22, x0
	ldr	w8, [x20, #40]
	add	w8, w8, #1
	str	w8, [x20, #40]
	mov	x21, x23
LBB0_21:
	ldr	x8, [x20, #24]
	cbnz	x8, LBB0_23
; %bb.22:
	str	x21, [x20, #24]
LBB0_23:
	mov	x0, x20
	mov	x1, x21
	mov	x2, x22
	bl	_link_add_to_outqueue
LBB0_24:
	ldr	w0, [x20, #16]
	mov	x1, x20
	bl	_tipc_bearer_resolve_congestion
	b	LBB0_26
LBB0_25:
	ldr	w0, [x20, #16]
	mov	x1, x20
	bl	_tipc_bearer_schedule
	ldr	w8, [x20, #44]
	add	w8, w8, #1
	str	w8, [x20, #44]
	str	x21, [x20, #24]
LBB0_26:
	mov	x0, x19
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh23
	.cfi_endproc
                                        ; -- End function
	.comm	_tipc_own_addr,4,2              ; @tipc_own_addr
	.comm	_TIPC_CRITICAL_IMPORTANCE,8,3   ; @TIPC_CRITICAL_IMPORTANCE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"TIPC: Congestion, throwing away\n"

	.comm	_CONN_MANAGER,8,3               ; @CONN_MANAGER
l_.str.1:                               ; @.str.1
	.asciz	"Resetting link <%s>, send queue full"

	.comm	_CHANGEOVER_PROTOCOL,8,3        ; @CHANGEOVER_PROTOCOL
	.comm	_MSG_FRAGMENTER,8,3             ; @MSG_FRAGMENTER
	.comm	_MSG_BUNDLER,4,2                ; @MSG_BUNDLER
	.comm	_OPEN_MSG,4,2                   ; @OPEN_MSG
	.comm	_INT_H_SIZE,4,2                 ; @INT_H_SIZE
.subsections_via_symbols
