	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_tipc_forward_buf2name          ## -- Begin function tipc_forward_buf2name
	.p2align	4, 0x90
_tipc_forward_buf2name:                 ## @tipc_forward_buf2name
	.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	%r9, %r15
	movl	%r8d, %ebx
	movq	%rcx, -64(%rbp)                 ## 8-byte Spill
	movq	%rdx, %r14
	movq	%rsi, %r13
	movq	%rdx, -56(%rbp)
	callq	_tipc_ref_deref
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	%rax, %r12
	cmpq	$0, 16(%rax)
	je	LBB0_4
LBB0_2:
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_3:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_16:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movl	%ebx, -44(%rbp)                 ## 4-byte Spill
	movl	16(%rbp), %esi
	movq	%r12, %rbx
	addq	$8, %rbx
	movq	_TIPC_CRITICAL_IMPORTANCE@GOTPCREL(%rip), %rax
	cmpl	%esi, (%rax)
	jb	LBB0_6
## %bb.5:
	movq	%rbx, %rdi
	callq	_msg_set_importance
LBB0_6:
	movq	_TIPC_NAMED_MSG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_msg_set_type
	movl	4(%r15), %esi
	movq	%rbx, %rdi
	callq	_msg_set_orignode
	movl	(%r15), %esi
	movq	%rbx, %rdi
	callq	_msg_set_origport
	movl	4(%r13), %esi
	movq	%rbx, %rdi
	callq	_msg_set_nametype
	movl	(%r13), %esi
	movq	%rbx, %rdi
	callq	_msg_set_nameinst
	movq	%r14, %rdi
	callq	_addr_scope
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_msg_set_lookup_scope
	movq	_LONG_H_SIZE@GOTPCREL(%rip), %r15
	movq	(%r15), %rsi
	movq	%rbx, %rdi
	callq	_msg_set_hdr_sz
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	addq	(%r15), %rsi
	movq	%rbx, %rdi
	callq	_msg_set_size
	movl	(%r13), %esi
	movl	4(%r13), %edi
	leaq	-56(%rbp), %rdx
	callq	_tipc_nametbl_translate
	movq	%rax, %r14
	movq	-56(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_msg_set_destnode
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_msg_set_destport
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	callq	_msg_dbg
	movq	(%r15), %rsi
	movq	-64(%rbp), %r13                 ## 8-byte Reload
	movq	%r13, %rdi
	callq	_skb_cow
	testq	%rax, %rax
	je	LBB0_8
## %bb.7:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_8:
	movq	(%r15), %rsi
	movq	%r13, %rdi
	callq	_skb_push
	movq	(%r15), %rdx
	movq	%r13, %rdi
	movq	%rbx, %rsi
	callq	_skb_copy_to_linear_data
	movq	%r13, %rdi
	callq	_buf_msg
	leaq	L_.str.1(%rip), %rsi
	movq	%rax, %rdi
	callq	_msg_dbg
	xorl	%edi, %edi
	orq	-56(%rbp), %r14
	setne	%dil
	callq	_likely
	testq	%rax, %rax
	je	LBB0_14
## %bb.9:
	incl	(%r12)
	movq	-56(%rbp), %rsi
	movq	_tipc_own_addr@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rsi
	jne	LBB0_11
## %bb.10:
	movq	%r13, %rdi
	callq	_tipc_port_recv_msg
	jmp	LBB0_15
LBB0_14:
	movq	_TIPC_ERR_NO_NAME@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	callq	_tipc_reject_msg
LBB0_15:
	movl	%eax, %ebx
	jmp	LBB0_16
LBB0_11:
	movq	%r13, %rdi
	callq	_tipc_send_buf_fast
	movl	%eax, %ebx
	movq	_ELINKCONG@GOTPCREL(%rip), %r14
	xorl	%edi, %edi
	addl	(%r14), %eax
	setne	%dil
	callq	_likely
	testq	%rax, %rax
	jne	LBB0_16
## %bb.12:
	movq	%r12, %rdi
	callq	_port_unreliable
	movl	-44(%rbp), %ebx                 ## 4-byte Reload
	testq	%rax, %rax
	jne	LBB0_16
## %bb.13:
	xorl	%ebx, %ebx
	subl	(%r14), %ebx
	jmp	LBB0_16
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_TIPC_CRITICAL_IMPORTANCE,4,2   ## @TIPC_CRITICAL_IMPORTANCE
	.comm	_TIPC_NAMED_MSG,4,2             ## @TIPC_NAMED_MSG
	.comm	_LONG_H_SIZE,8,3                ## @LONG_H_SIZE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"forw2name ==> "

	.comm	_ENOMEM,4,2                     ## @ENOMEM
L_.str.1:                               ## @.str.1
	.asciz	"PREP:"

	.comm	_tipc_own_addr,8,3              ## @tipc_own_addr
	.comm	_ELINKCONG,4,2                  ## @ELINKCONG
	.comm	_TIPC_ERR_NO_NAME,4,2           ## @TIPC_ERR_NO_NAME
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_tipc_forward_buf2name          ; -- Begin function tipc_forward_buf2name
	.p2align	2
_tipc_forward_buf2name:                 ; @tipc_forward_buf2name
	.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	x26, x6
	mov	x25, x5
	mov	x19, x4
	mov	x21, x3
	mov	x24, x2
	mov	x23, x1
	str	x2, [sp, #8]
	bl	_tipc_ref_deref
	cbz	x0, LBB0_2
; %bb.1:
	mov	x20, x0
	ldr	x8, [x0, #16]
	cbz	x8, LBB0_6
LBB0_2:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_3:
	ldr	w8, [x8]
LBB0_4:
	neg	w21, w8
LBB0_5:
	mov	x0, x21
	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_6:
	add	x22, x20, #8
Lloh2:
	adrp	x8, _TIPC_CRITICAL_IMPORTANCE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _TIPC_CRITICAL_IMPORTANCE@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	cmp	w8, w26
	b.lo	LBB0_8
; %bb.7:
	mov	x0, x22
	mov	x1, x26
	bl	_msg_set_importance
LBB0_8:
Lloh5:
	adrp	x8, _TIPC_NAMED_MSG@GOTPAGE
Lloh6:
	ldr	x8, [x8, _TIPC_NAMED_MSG@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	mov	x0, x22
	bl	_msg_set_type
	ldr	w1, [x25, #4]
	mov	x0, x22
	bl	_msg_set_orignode
	ldr	w1, [x25]
	mov	x0, x22
	bl	_msg_set_origport
	ldr	w1, [x23, #4]
	mov	x0, x22
	bl	_msg_set_nametype
	ldr	w1, [x23]
	mov	x0, x22
	bl	_msg_set_nameinst
	mov	x0, x24
	bl	_addr_scope
	mov	x1, x0
	mov	x0, x22
	bl	_msg_set_lookup_scope
Lloh8:
	adrp	x24, _LONG_H_SIZE@GOTPAGE
Lloh9:
	ldr	x24, [x24, _LONG_H_SIZE@GOTPAGEOFF]
	ldr	x1, [x24]
	mov	x0, x22
	bl	_msg_set_hdr_sz
	ldr	x8, [x24]
	add	x1, x8, w19, uxtw
	mov	x0, x22
	bl	_msg_set_size
	ldp	w1, w0, [x23]
	add	x2, sp, #8
	bl	_tipc_nametbl_translate
	mov	x23, x0
	ldr	x1, [sp, #8]
	mov	x0, x22
	bl	_msg_set_destnode
	mov	x0, x22
	mov	x1, x23
	bl	_msg_set_destport
Lloh10:
	adrp	x1, l_.str@PAGE
Lloh11:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x22
	bl	_msg_dbg
	ldr	x1, [x24]
	mov	x0, x21
	bl	_skb_cow
	cbz	x0, LBB0_10
; %bb.9:
Lloh12:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_3
LBB0_10:
	ldr	x1, [x24]
	mov	x0, x21
	bl	_skb_push
	ldr	x2, [x24]
	mov	x0, x21
	mov	x1, x22
	bl	_skb_copy_to_linear_data
	mov	x0, x21
	bl	_buf_msg
Lloh14:
	adrp	x1, l_.str.1@PAGE
Lloh15:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_msg_dbg
	ldr	x8, [sp, #8]
	orr	x8, x23, x8
	cmp	x8, #0
	cset	w0, ne
	bl	_likely
	cbz	x0, LBB0_13
; %bb.11:
	ldr	w8, [x20]
	add	w8, w8, #1
	str	w8, [x20]
	ldr	x1, [sp, #8]
Lloh16:
	adrp	x8, _tipc_own_addr@GOTPAGE
Lloh17:
	ldr	x8, [x8, _tipc_own_addr@GOTPAGEOFF]
Lloh18:
	ldr	x8, [x8]
	mov	x0, x21
	cmp	x1, x8
	b.ne	LBB0_15
; %bb.12:
	bl	_tipc_port_recv_msg
	b	LBB0_14
LBB0_13:
Lloh19:
	adrp	x8, _TIPC_ERR_NO_NAME@GOTPAGE
Lloh20:
	ldr	x8, [x8, _TIPC_ERR_NO_NAME@GOTPAGEOFF]
Lloh21:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_tipc_reject_msg
LBB0_14:
	mov	x21, x0
	b	LBB0_5
LBB0_15:
	bl	_tipc_send_buf_fast
	mov	x21, x0
Lloh22:
	adrp	x22, _ELINKCONG@GOTPAGE
Lloh23:
	ldr	x22, [x22, _ELINKCONG@GOTPAGEOFF]
	ldr	w8, [x22]
	cmn	w0, w8
	cset	w0, ne
	bl	_likely
	cbnz	x0, LBB0_5
; %bb.16:
	mov	x0, x20
	bl	_port_unreliable
	mov	x21, x19
	cbnz	x0, LBB0_5
; %bb.17:
	ldr	w8, [x22]
	b	LBB0_4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_TIPC_CRITICAL_IMPORTANCE,4,2   ; @TIPC_CRITICAL_IMPORTANCE
	.comm	_TIPC_NAMED_MSG,4,2             ; @TIPC_NAMED_MSG
	.comm	_LONG_H_SIZE,8,3                ; @LONG_H_SIZE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"forw2name ==> "

	.comm	_ENOMEM,4,2                     ; @ENOMEM
l_.str.1:                               ; @.str.1
	.asciz	"PREP:"

	.comm	_tipc_own_addr,8,3              ; @tipc_own_addr
	.comm	_ELINKCONG,4,2                  ; @ELINKCONG
	.comm	_TIPC_ERR_NO_NAME,4,2           ; @TIPC_ERR_NO_NAME
.subsections_via_symbols
