	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_tipc_port_recv_proto_msg       ## -- Begin function tipc_port_recv_proto_msg
	.p2align	4, 0x90
_tipc_port_recv_proto_msg:              ## @tipc_port_recv_proto_msg
	.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, -48(%rbp)                 ## 8-byte Spill
	callq	_buf_msg
	movq	%rax, %r12
	movq	%rax, %rdi
	callq	_msg_destport
	movl	%eax, %edi
	callq	_tipc_port_lock
	movq	%rax, %r14
	movq	_TIPC_OK@GOTPCREL(%rip), %rbx
	movq	(%rbx), %r13
	leaq	L_.str(%rip), %rsi
	movq	%r12, %rdi
	callq	_msg_dbg
	testq	%r14, %r14
	je	LBB0_13
## %bb.1:
	leaq	16(%r14), %rax
	cmpq	$0, 32(%r14)
	je	LBB0_12
## %bb.2:
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	%r14, %rdi
	callq	_port_peernode
	movq	%rax, %r15
	movq	%r12, %rdi
	callq	_msg_orignode
	movq	%r14, %rdi
	movq	_TIPC_ERR_NO_PORT@GOTPCREL(%rip), %rbx
	cmpq	%rax, %r15
	je	LBB0_4
## %bb.3:
	movq	(%rbx), %r13
LBB0_4:
	movq	%rdi, %r14
	callq	_port_peerport
	movq	%rax, %r15
	movq	%r12, %rdi
	callq	_msg_origport
	cmpq	%rax, %r15
	je	LBB0_6
## %bb.5:
	movq	(%rbx), %r13
LBB0_6:
	testq	%r13, %r13
	je	LBB0_22
## %bb.7:
	xorl	%r15d, %r15d
LBB0_8:
	movq	%r12, %rdi
	callq	_msg_type
	movq	_CONN_ACK@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_15
## %bb.9:
	movq	%r14, %rdi
	callq	_tipc_port_congested
	testq	%rax, %rax
	movq	%r15, -72(%rbp)                 ## 8-byte Spill
	je	LBB0_25
## %bb.10:
	cmpq	$0, 24(%r14)
	je	LBB0_25
## %bb.11:
	cmpq	$0, 40(%r14)
	movq	%r14, %r13
	setne	%r14b
	jmp	LBB0_26
LBB0_12:
	cmpq	$0, (%rax)
	je	LBB0_14
LBB0_13:
	movq	_TIPC_ERR_NO_PORT@GOTPCREL(%rip), %rax
	movq	(%rax), %r13
LBB0_14:
	xorl	%r15d, %r15d
	jmp	LBB0_16
LBB0_15:
	movq	_TIPC_OK@GOTPCREL(%rip), %rbx
LBB0_16:
	testq	%r13, %r13
	movq	%r15, -72(%rbp)                 ## 8-byte Spill
	movq	%r12, %rdi
	je	LBB0_18
## %bb.17:
	callq	_msg_origport
	movq	%rax, %r15
	movq	%r12, %rdi
	callq	_msg_orignode
	movq	%r14, %rbx
	movq	%rax, %r14
	movq	%r12, %rdi
	callq	_msg_destport
	movq	_tipc_own_addr@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	_TIPC_HIGH_IMPORTANCE@GOTPCREL(%rip), %rdx
	movl	(%rdx), %r8d
	movq	_TIPC_CONN_MSG@GOTPCREL(%rip), %rdx
	movl	(%rdx), %r9d
	subq	$8, %rsp
	movq	%r15, %rdi
	movq	%r14, %rsi
	movq	%rbx, %r14
	movl	%eax, %edx
	pushq	$0
	pushq	$0
	pushq	%r13
	callq	_port_build_proto_msg
	addq	$32, %rsp
	movq	%rax, %rbx
	movq	-48(%rbp), %r15                 ## 8-byte Reload
	testq	%r14, %r14
	jne	LBB0_32
	jmp	LBB0_33
LBB0_18:
	callq	_msg_type
	movq	_CONN_PROBE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_20
## %bb.19:
	movq	%r12, %rdi
	callq	_msg_origport
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	%r12, %rdi
	callq	_msg_orignode
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	movq	%r12, %rdi
	callq	_msg_destport
	movl	%eax, -60(%rbp)                 ## 4-byte Spill
	movq	_tipc_own_addr@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movq	_CONN_MANAGER@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	movq	_CONN_PROBE_REPLY@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movq	(%rbx), %rbx
	movq	%r14, %rdi
	callq	_port_out_seqno
                                        ## kill: def $eax killed $eax def $rax
	subq	$8, %rsp
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	-80(%rbp), %rsi                 ## 8-byte Reload
	movl	-60(%rbp), %edx                 ## 4-byte Reload
	movl	%r12d, %ecx
	movl	%r13d, %r8d
	movl	%r15d, %r9d
	pushq	$0
	pushq	%rax
	pushq	%rbx
	callq	_port_build_proto_msg
	addq	$32, %rsp
	movq	%rax, %rbx
	jmp	LBB0_21
LBB0_20:
	xorl	%ebx, %ebx
LBB0_21:
	movq	-48(%rbp), %r15                 ## 8-byte Reload
	movq	_CONFIRMED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%r14)
	movq	%r14, %rdi
	callq	_port_incr_out_seqno
	testq	%r14, %r14
	jne	LBB0_32
	jmp	LBB0_33
LBB0_22:
	movq	%r12, %rdi
	callq	_msg_routed
	testq	%rax, %rax
	je	LBB0_30
## %bb.23:
	movq	%r12, %rdi
	callq	_msg_transp_seqno
	movq	%r14, %rdx
	movq	(%r14), %rcx
	incq	%rcx
	movq	%rcx, (%r14)
	xorl	%r15d, %r15d
	movl	$0, %r13d
	cmpq	%rcx, %rax
	je	LBB0_8
## %bb.24:
	movq	(%rbx), %r13
	movq	%r14, %rdi
	movq	%r13, %rsi
	callq	_port_build_self_abort_msg
	movq	%rax, %r15
	jmp	LBB0_8
LBB0_25:
	movq	%r14, %r13
	xorl	%r14d, %r14d
LBB0_26:
	movq	-48(%rbp), %r15                 ## 8-byte Reload
	movq	%r12, %rdi
	callq	_msg_msgcnt
	addl	%eax, 48(%r13)
	movq	%r13, %rdi
	callq	_tipc_port_congested
	testq	%rax, %rax
	je	LBB0_28
## %bb.27:
	xorl	%ebx, %ebx
	movq	%r13, %r14
	jmp	LBB0_32
LBB0_28:
	movq	$0, 24(%r13)
	testb	%r14b, %r14b
	movq	%r13, %r14
	je	LBB0_31
## %bb.29:
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	*40(%r14)
LBB0_31:
	xorl	%ebx, %ebx
LBB0_32:
	movq	%r14, %rdi
	callq	_tipc_port_unlock
LBB0_33:
	movq	%rbx, %rdi
	callq	_tipc_net_route_msg
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	callq	_tipc_net_route_msg
	movq	%r15, %rdi
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_buf_discard                    ## TAILCALL
LBB0_30:
	xorl	%r15d, %r15d
	xorl	%r13d, %r13d
	jmp	LBB0_8
	.cfi_endproc
                                        ## -- End function
	.comm	_TIPC_OK,8,3                    ## @TIPC_OK
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"PORT<RECV<:"

	.comm	_TIPC_ERR_NO_PORT,8,3           ## @TIPC_ERR_NO_PORT
	.comm	_CONN_ACK,8,3                   ## @CONN_ACK
	.comm	_tipc_own_addr,4,2              ## @tipc_own_addr
	.comm	_TIPC_HIGH_IMPORTANCE,4,2       ## @TIPC_HIGH_IMPORTANCE
	.comm	_TIPC_CONN_MSG,4,2              ## @TIPC_CONN_MSG
	.comm	_CONN_PROBE,8,3                 ## @CONN_PROBE
	.comm	_CONN_MANAGER,4,2               ## @CONN_MANAGER
	.comm	_CONN_PROBE_REPLY,4,2           ## @CONN_PROBE_REPLY
	.comm	_CONFIRMED,4,2                  ## @CONFIRMED
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_tipc_port_recv_proto_msg       ; -- Begin function tipc_port_recv_proto_msg
	.p2align	2
_tipc_port_recv_proto_msg:              ; @tipc_port_recv_proto_msg
	.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	x19, x0
	bl	_buf_msg
	mov	x22, x0
	bl	_msg_destport
	bl	_tipc_port_lock
	mov	x20, x0
Lloh0:
	adrp	x28, _TIPC_OK@GOTPAGE
Lloh1:
	ldr	x28, [x28, _TIPC_OK@GOTPAGEOFF]
	ldr	x24, [x28]
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x22
	bl	_msg_dbg
	cbz	x20, LBB0_4
; %bb.1:
	add	x23, x20, #16
	ldr	x8, [x20, #32]
	cbz	x8, LBB0_5
; %bb.2:
	mov	x0, x20
	bl	_port_peernode
	mov	x21, x0
	mov	x0, x22
	bl	_msg_orignode
Lloh4:
	adrp	x25, _TIPC_ERR_NO_PORT@GOTPAGE
Lloh5:
	ldr	x25, [x25, _TIPC_ERR_NO_PORT@GOTPAGEOFF]
	ldr	x8, [x25]
	cmp	x21, x0
	csel	x24, x24, x8, eq
	mov	x0, x20
	bl	_port_peerport
	mov	x21, x0
	mov	x0, x22
	bl	_msg_origport
	ldr	x8, [x25]
	cmp	x21, x0
	csel	x24, x24, x8, eq
	cbz	x24, LBB0_6
; %bb.3:
	mov	x21, #0
	b	LBB0_10
LBB0_4:
	mov	x21, #0
Lloh6:
	adrp	x8, _TIPC_ERR_NO_PORT@GOTPAGE
Lloh7:
	ldr	x8, [x8, _TIPC_ERR_NO_PORT@GOTPAGEOFF]
Lloh8:
	ldr	x24, [x8]
	b	LBB0_14
LBB0_5:
	mov	x21, #0
	ldr	x8, [x23]
Lloh9:
	adrp	x9, _TIPC_ERR_NO_PORT@GOTPAGE
Lloh10:
	ldr	x9, [x9, _TIPC_ERR_NO_PORT@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
	cmp	x8, #0
	csel	x24, x24, x9, eq
	b	LBB0_14
LBB0_6:
	mov	x0, x22
	bl	_msg_routed
	cbz	x0, LBB0_8
; %bb.7:
	mov	x0, x22
	bl	_msg_transp_seqno
	ldr	x8, [x20]
	add	x8, x8, #1
	str	x8, [x20]
	cmp	x0, x8
	b.ne	LBB0_9
LBB0_8:
	mov	x21, #0
	mov	x24, #0
	b	LBB0_10
LBB0_9:
	ldr	x24, [x25]
	mov	x0, x20
	mov	x1, x24
	bl	_port_build_self_abort_msg
	mov	x21, x0
LBB0_10:
	mov	x0, x22
	bl	_msg_type
Lloh12:
	adrp	x8, _CONN_ACK@GOTPAGE
Lloh13:
	ldr	x8, [x8, _CONN_ACK@GOTPAGEOFF]
Lloh14:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_14
; %bb.11:
	mov	x0, x20
	bl	_tipc_port_congested
	cbz	x0, LBB0_20
; %bb.12:
	ldr	x8, [x20, #24]
	cbz	x8, LBB0_20
; %bb.13:
	ldr	x8, [x20, #40]
	cmp	x8, #0
	cset	w24, ne
	b	LBB0_21
LBB0_14:
	mov	x0, x22
	cbz	x24, LBB0_16
; %bb.15:
	bl	_msg_origport
	mov	x23, x0
	mov	x0, x22
	bl	_msg_orignode
	mov	x25, x0
	mov	x0, x22
	bl	_msg_destport
	mov	x2, x0
Lloh15:
	adrp	x8, _tipc_own_addr@GOTPAGE
Lloh16:
	ldr	x8, [x8, _tipc_own_addr@GOTPAGEOFF]
Lloh17:
	ldr	w3, [x8]
Lloh18:
	adrp	x8, _TIPC_HIGH_IMPORTANCE@GOTPAGE
Lloh19:
	ldr	x8, [x8, _TIPC_HIGH_IMPORTANCE@GOTPAGEOFF]
Lloh20:
	ldr	w4, [x8]
Lloh21:
	adrp	x8, _TIPC_CONN_MSG@GOTPAGE
Lloh22:
	ldr	x8, [x8, _TIPC_CONN_MSG@GOTPAGEOFF]
Lloh23:
	ldr	w5, [x8]
	str	wzr, [sp]
	mov	x0, x23
	mov	x1, x25
	mov	x6, x24
	mov	w7, #0
	bl	_port_build_proto_msg
	mov	x22, x0
	cbnz	x20, LBB0_25
	b	LBB0_26
LBB0_16:
	bl	_msg_type
Lloh24:
	adrp	x8, _CONN_PROBE@GOTPAGE
Lloh25:
	ldr	x8, [x8, _CONN_PROBE@GOTPAGEOFF]
Lloh26:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_18
; %bb.17:
	mov	x0, x22
	bl	_msg_origport
	mov	x23, x0
	mov	x0, x22
	bl	_msg_orignode
	mov	x24, x0
	mov	x0, x22
	bl	_msg_destport
	mov	x22, x0
Lloh27:
	adrp	x8, _tipc_own_addr@GOTPAGE
Lloh28:
	ldr	x8, [x8, _tipc_own_addr@GOTPAGEOFF]
Lloh29:
	adrp	x9, _CONN_MANAGER@GOTPAGE
Lloh30:
	ldr	x9, [x9, _CONN_MANAGER@GOTPAGEOFF]
Lloh31:
	ldr	w25, [x8]
Lloh32:
	ldr	w26, [x9]
Lloh33:
	adrp	x8, _CONN_PROBE_REPLY@GOTPAGE
Lloh34:
	ldr	x8, [x8, _CONN_PROBE_REPLY@GOTPAGEOFF]
Lloh35:
	ldr	w27, [x8]
	ldr	x28, [x28]
	mov	x0, x20
	bl	_port_out_seqno
	mov	x7, x0
	str	wzr, [sp]
	mov	x0, x23
	mov	x1, x24
	mov	x2, x22
	mov	x3, x25
	mov	x4, x26
	mov	x5, x27
	mov	x6, x28
	bl	_port_build_proto_msg
	mov	x22, x0
	b	LBB0_19
LBB0_18:
	mov	x22, #0
LBB0_19:
Lloh36:
	adrp	x8, _CONFIRMED@GOTPAGE
Lloh37:
	ldr	x8, [x8, _CONFIRMED@GOTPAGEOFF]
Lloh38:
	ldr	w8, [x8]
	str	w8, [x20, #8]
	mov	x0, x20
	bl	_port_incr_out_seqno
	cbnz	x20, LBB0_25
	b	LBB0_26
LBB0_20:
	mov	w24, #0
LBB0_21:
	mov	x0, x22
	bl	_msg_msgcnt
	ldr	w8, [x20, #48]
	add	w8, w8, w0
	str	w8, [x20, #48]
	mov	x0, x20
	bl	_tipc_port_congested
	cbnz	x0, LBB0_24
; %bb.22:
	str	xzr, [x20, #24]
	cbz	w24, LBB0_24
; %bb.23:
	ldr	x8, [x20, #40]
	mov	x0, x23
	blr	x8
LBB0_24:
	mov	x22, #0
LBB0_25:
	mov	x0, x20
	bl	_tipc_port_unlock
LBB0_26:
	mov	x0, x22
	bl	_tipc_net_route_msg
	mov	x0, x21
	bl	_tipc_net_route_msg
	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
	b	_buf_discard
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh32
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh31
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.cfi_endproc
                                        ; -- End function
	.comm	_TIPC_OK,8,3                    ; @TIPC_OK
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"PORT<RECV<:"

	.comm	_TIPC_ERR_NO_PORT,8,3           ; @TIPC_ERR_NO_PORT
	.comm	_CONN_ACK,8,3                   ; @CONN_ACK
	.comm	_tipc_own_addr,4,2              ; @tipc_own_addr
	.comm	_TIPC_HIGH_IMPORTANCE,4,2       ; @TIPC_HIGH_IMPORTANCE
	.comm	_TIPC_CONN_MSG,4,2              ; @TIPC_CONN_MSG
	.comm	_CONN_PROBE,8,3                 ; @CONN_PROBE
	.comm	_CONN_MANAGER,4,2               ; @CONN_MANAGER
	.comm	_CONN_PROBE_REPLY,4,2           ; @CONN_PROBE_REPLY
	.comm	_CONFIRMED,4,2                  ; @CONFIRMED
.subsections_via_symbols
