	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_tipc_connect2port              ## -- Begin function tipc_connect2port
	.p2align	4, 0x90
_tipc_connect2port:                     ## @tipc_connect2port
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	_EINVAL@GOTPCREL(%rip), %r13
	xorl	%r12d, %r12d
	xorl	%ebx, %ebx
	subl	(%r13), %ebx
	movq	%rdi, %r14
	callq	_tipc_port_lock
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	cmpq	$0, 16(%rax)
	jne	LBB0_9
## %bb.3:
	cmpl	$0, (%rax)
	jne	LBB0_9
## %bb.4:
	cmpl	$0, 4(%r15)
	je	LBB0_9
## %bb.5:
	leaq	12(%rax), %r12
	movl	(%r15), %esi
	movq	%r12, %rdi
	movq	%rax, %rbx
	callq	_msg_set_destnode
	movl	4(%r15), %esi
	movq	%r12, %rdi
	callq	_msg_set_destport
	movq	_tipc_own_addr@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_msg_set_orignode
	movq	%rbx, %r13
	movl	8(%rbx), %esi
	movq	%r12, %rdi
	callq	_msg_set_origport
	movq	%r12, %rdi
	movl	$42, %esi
	callq	_msg_set_transp_seqno
	movq	_TIPC_CONN_MSG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_msg_set_type
	movl	(%r15), %edi
	callq	_may_route
	testl	%eax, %eax
	jne	LBB0_6
## %bb.7:
	movq	_SHORT_H_SIZE@GOTPCREL(%rip), %rax
	jmp	LBB0_8
LBB0_1:
	subl	(%r13), %r12d
	movl	%r12d, %ebx
	jmp	LBB0_10
LBB0_6:
	movq	_LONG_H_SIZE@GOTPCREL(%rip), %rax
LBB0_8:
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_msg_set_hdr_sz
	movq	_PROBING_INTERVAL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rbx
	movl	%esi, 28(%r13)
	movq	_CONFIRMED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 36(%r13)
	movl	$1, (%r13)
	leaq	32(%r13), %rdi
	callq	_k_start_timer
	movq	%r13, %rdi
	addq	$24, %rdi
	movl	(%r15), %esi
	movq	_port_handle_node_down@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r14, %rdx
	callq	_tipc_nodesub_subscribe
	movq	%r13, %rax
	xorl	%ebx, %ebx
LBB0_9:
	movq	%rax, %rdi
	movq	%rax, %r12
	callq	_tipc_port_unlock
	movl	(%r15), %edi
	movq	%r14, %rsi
	callq	_tipc_link_get_max_pkt
	movl	%eax, 4(%r12)
LBB0_10:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_tipc_own_addr,4,2              ## @tipc_own_addr
	.comm	_TIPC_CONN_MSG,4,2              ## @TIPC_CONN_MSG
	.comm	_SHORT_H_SIZE,4,2               ## @SHORT_H_SIZE
	.comm	_LONG_H_SIZE,4,2                ## @LONG_H_SIZE
	.comm	_PROBING_INTERVAL,4,2           ## @PROBING_INTERVAL
	.comm	_CONFIRMED,4,2                  ## @CONFIRMED
	.comm	_port_handle_node_down,8,3      ## @port_handle_node_down
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_tipc_connect2port              ; -- Begin function tipc_connect2port
	.p2align	2
_tipc_connect2port:                     ; @tipc_connect2port
	.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	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x22, _EINVAL@GOTPAGE
Lloh1:
	ldr	x22, [x22, _EINVAL@GOTPAGEOFF]
	ldr	w23, [x22]
	bl	_tipc_port_lock
	cbz	x0, LBB0_6
; %bb.1:
	mov	x21, x0
	neg	w22, w23
	ldr	x8, [x0, #16]
	cbnz	x8, LBB0_5
; %bb.2:
	ldr	w8, [x21]
	cbnz	w8, LBB0_5
; %bb.3:
	ldr	w8, [x20, #4]
	cbz	w8, LBB0_5
; %bb.4:
	add	x22, x21, #12
	ldr	w1, [x20]
	mov	x0, x22
	bl	_msg_set_destnode
	ldr	w1, [x20, #4]
	mov	x0, x22
	bl	_msg_set_destport
Lloh2:
	adrp	x8, _tipc_own_addr@GOTPAGE
Lloh3:
	ldr	x8, [x8, _tipc_own_addr@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	mov	x0, x22
	bl	_msg_set_orignode
	ldr	w1, [x21, #8]
	mov	x0, x22
	bl	_msg_set_origport
	mov	x0, x22
	mov	w1, #42
	bl	_msg_set_transp_seqno
Lloh5:
	adrp	x8, _TIPC_CONN_MSG@GOTPAGE
Lloh6:
	ldr	x8, [x8, _TIPC_CONN_MSG@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	mov	x0, x22
	bl	_msg_set_type
	ldr	w0, [x20]
	bl	_may_route
Lloh8:
	adrp	x8, _SHORT_H_SIZE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _SHORT_H_SIZE@GOTPAGEOFF]
Lloh10:
	adrp	x9, _LONG_H_SIZE@GOTPAGE
Lloh11:
	ldr	x9, [x9, _LONG_H_SIZE@GOTPAGEOFF]
	cmp	w0, #0
	csel	x8, x8, x9, eq
	ldr	w1, [x8]
	mov	x0, x22
	bl	_msg_set_hdr_sz
Lloh12:
	adrp	x8, _PROBING_INTERVAL@GOTPAGE
Lloh13:
	ldr	x8, [x8, _PROBING_INTERVAL@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
Lloh15:
	adrp	x8, _CONFIRMED@GOTPAGE
Lloh16:
	ldr	x8, [x8, _CONFIRMED@GOTPAGEOFF]
	str	w1, [x21, #28]
Lloh17:
	ldr	w8, [x8]
	str	w8, [x21, #36]
	mov	w8, #1
	str	w8, [x21]
	add	x0, x21, #32
	bl	_k_start_timer
	add	x0, x21, #24
	ldr	w1, [x20]
Lloh18:
	adrp	x8, _port_handle_node_down@GOTPAGE
Lloh19:
	ldr	x8, [x8, _port_handle_node_down@GOTPAGEOFF]
Lloh20:
	ldr	w3, [x8]
	mov	x2, x19
	bl	_tipc_nodesub_subscribe
	mov	w22, #0
LBB0_5:
	mov	x0, x21
	bl	_tipc_port_unlock
	ldr	w0, [x20]
	mov	x1, x19
	bl	_tipc_link_get_max_pkt
	str	w0, [x21, #4]
	b	LBB0_7
LBB0_6:
	ldr	w8, [x22]
	neg	w22, w8
LBB0_7:
	mov	x0, x22
	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
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_tipc_own_addr,4,2              ; @tipc_own_addr
	.comm	_TIPC_CONN_MSG,4,2              ; @TIPC_CONN_MSG
	.comm	_SHORT_H_SIZE,4,2               ; @SHORT_H_SIZE
	.comm	_LONG_H_SIZE,4,2                ; @LONG_H_SIZE
	.comm	_PROBING_INTERVAL,4,2           ; @PROBING_INTERVAL
	.comm	_CONFIRMED,4,2                  ; @CONFIRMED
	.comm	_port_handle_node_down,8,3      ; @port_handle_node_down
.subsections_via_symbols
