	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_tipc_forward2port              ## -- Begin function tipc_forward2port
	.p2align	4, 0x90
_tipc_forward2port:                     ## @tipc_forward2port
	.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	%r9d, %r13d
	movq	%r8, %r15
	movq	%rcx, %rbx
	movl	%edx, -44(%rbp)                 ## 4-byte Spill
	movq	%rsi, %r12
	callq	_tipc_port_deref
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	%rax, %r14
	cmpq	$0, 16(%rax)
	je	LBB0_3
LBB0_2:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_9:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movq	%r14, %rbx
	addq	$8, %rbx
	movq	_TIPC_DIRECT_MSG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_msg_set_type
	movl	(%r15), %esi
	movq	%rbx, %rdi
	callq	_msg_set_orignode
	movl	4(%r15), %esi
	movq	%rbx, %rdi
	callq	_msg_set_origport
	movl	(%r12), %esi
	movq	%rbx, %rdi
	callq	_msg_set_destnode
	movl	4(%r12), %esi
	movq	%rbx, %rdi
	callq	_msg_set_destport
	movq	_DIR_MSG_H_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_msg_set_hdr_sz
	movq	_TIPC_CRITICAL_IMPORTANCE@GOTPCREL(%rip), %rax
	cmpl	%r13d, (%rax)
	jb	LBB0_5
## %bb.4:
	movq	%rbx, %rdi
	movl	%r13d, %esi
	callq	_msg_set_importance
LBB0_5:
	incl	(%r14)
	movl	(%r12), %ecx
	movq	_tipc_own_addr@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ecx
	jne	LBB0_6
## %bb.10:
	movq	%r14, %rdi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_tipc_port_recv_sections        ## TAILCALL
LBB0_6:
	movq	%r14, %rdi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	movl	-44(%rbp), %r12d                ## 4-byte Reload
	movl	%r12d, %edx
	callq	_tipc_link_send_sections_fast
	movl	%eax, %ebx
	movq	_ELINKCONG@GOTPCREL(%rip), %r15
	xorl	%edi, %edi
	addl	(%r15), %eax
	setne	%dil
	callq	_likely
	testq	%rax, %rax
	jne	LBB0_9
## %bb.7:
	movq	%r14, %rdi
	callq	_port_unreliable
	testq	%rax, %rax
	je	LBB0_8
## %bb.11:
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movl	%r12d, %esi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_msg_calc_data_size             ## TAILCALL
LBB0_8:
	xorl	%ebx, %ebx
	subl	(%r15), %ebx
	jmp	LBB0_9
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_TIPC_DIRECT_MSG,4,2            ## @TIPC_DIRECT_MSG
	.comm	_DIR_MSG_H_SIZE,4,2             ## @DIR_MSG_H_SIZE
	.comm	_TIPC_CRITICAL_IMPORTANCE,4,2   ## @TIPC_CRITICAL_IMPORTANCE
	.comm	_tipc_own_addr,4,2              ## @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_forward2port              ; -- Begin function tipc_forward2port
	.p2align	2
_tipc_forward2port:                     ; @tipc_forward2port
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x23, x5
	mov	x25, x4
	mov	x19, x3
	mov	x20, x2
	mov	x22, x1
	bl	_tipc_port_deref
	cbz	x0, LBB0_2
; %bb.1:
	mov	x21, x0
	ldr	x8, [x0, #16]
	cbz	x8, LBB0_5
LBB0_2:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
LBB0_3:
	neg	w22, w8
LBB0_4:
	mov	x0, x22
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_5:
	add	x24, x21, #8
Lloh3:
	adrp	x8, _TIPC_DIRECT_MSG@GOTPAGE
Lloh4:
	ldr	x8, [x8, _TIPC_DIRECT_MSG@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x24
	bl	_msg_set_type
	ldr	w1, [x25]
	mov	x0, x24
	bl	_msg_set_orignode
	ldr	w1, [x25, #4]
	mov	x0, x24
	bl	_msg_set_origport
	ldr	w1, [x22]
	mov	x0, x24
	bl	_msg_set_destnode
	ldr	w1, [x22, #4]
	mov	x0, x24
	bl	_msg_set_destport
Lloh6:
	adrp	x8, _DIR_MSG_H_SIZE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _DIR_MSG_H_SIZE@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x0, x24
	bl	_msg_set_hdr_sz
Lloh9:
	adrp	x8, _TIPC_CRITICAL_IMPORTANCE@GOTPAGE
Lloh10:
	ldr	x8, [x8, _TIPC_CRITICAL_IMPORTANCE@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	cmp	w8, w23
	b.lo	LBB0_7
; %bb.6:
	mov	x0, x24
	mov	x1, x23
	bl	_msg_set_importance
LBB0_7:
	ldr	w8, [x21]
	add	w8, w8, #1
	str	w8, [x21]
	ldr	w3, [x22]
Lloh12:
	adrp	x8, _tipc_own_addr@GOTPAGE
Lloh13:
	ldr	x8, [x8, _tipc_own_addr@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	cmp	w3, w8
	b.ne	LBB0_9
; %bb.8:
	mov	x0, x21
	mov	x1, x20
	mov	x2, x19
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_tipc_port_recv_sections
LBB0_9:
	mov	x0, x21
	mov	x1, x19
	mov	x2, x20
	bl	_tipc_link_send_sections_fast
	mov	x22, x0
Lloh15:
	adrp	x23, _ELINKCONG@GOTPAGE
Lloh16:
	ldr	x23, [x23, _ELINKCONG@GOTPAGEOFF]
	ldr	w8, [x23]
	cmn	w0, w8
	cset	w0, ne
	bl	_likely
	cbnz	x0, LBB0_4
; %bb.10:
	mov	x0, x21
	bl	_port_unreliable
	cbz	x0, LBB0_12
; %bb.11:
	mov	x0, x19
	mov	x1, x20
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_msg_calc_data_size
LBB0_12:
	ldr	w8, [x23]
	b	LBB0_3
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_TIPC_DIRECT_MSG,4,2            ; @TIPC_DIRECT_MSG
	.comm	_DIR_MSG_H_SIZE,4,2             ; @DIR_MSG_H_SIZE
	.comm	_TIPC_CRITICAL_IMPORTANCE,4,2   ; @TIPC_CRITICAL_IMPORTANCE
	.comm	_tipc_own_addr,4,2              ; @tipc_own_addr
	.comm	_ELINKCONG,4,2                  ; @ELINKCONG
.subsections_via_symbols
