	.file	"extr_port.c_tipc_connect2port.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	tipc_connect2port
	.type	tipc_connect2port, @function
tipc_connect2port:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	mov	r13, rsi
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	mov	r12d, DWORD PTR EINVAL[rip]
	neg	r12d
	call	tipc_port_lock@PLT
	test	rax, rax
	je	.L9
	cmp	QWORD PTR 16[rax], 0
	mov	rbx, rax
	jne	.L4
	mov	edx, DWORD PTR [rax]
	test	edx, edx
	jne	.L4
	mov	eax, DWORD PTR 4[r13]
	test	eax, eax
	jne	.L10
.L4:
	mov	rdi, rbx
	call	tipc_port_unlock@PLT
	mov	edi, DWORD PTR 0[r13]
	mov	rsi, rbp
	call	tipc_link_get_max_pkt@PLT
	mov	DWORD PTR 4[rbx], eax
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	eax, r12d
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L10:
	.cfi_restore_state
	lea	r12, 12[rbx]
	mov	esi, DWORD PTR 0[r13]
	mov	rdi, r12
	call	msg_set_destnode@PLT
	mov	esi, DWORD PTR 4[r13]
	mov	rdi, r12
	call	msg_set_destport@PLT
	mov	esi, DWORD PTR tipc_own_addr[rip]
	mov	rdi, r12
	call	msg_set_orignode@PLT
	mov	esi, DWORD PTR 8[rbx]
	mov	rdi, r12
	call	msg_set_origport@PLT
	mov	esi, 42
	mov	rdi, r12
	call	msg_set_transp_seqno@PLT
	mov	esi, DWORD PTR TIPC_CONN_MSG[rip]
	mov	rdi, r12
	call	msg_set_type@PLT
	mov	edi, DWORD PTR 0[r13]
	call	may_route@PLT
	test	eax, eax
	jne	.L5
	mov	esi, DWORD PTR SHORT_H_SIZE[rip]
	mov	rdi, r12
	call	msg_set_hdr_sz@PLT
.L6:
	mov	esi, DWORD PTR PROBING_INTERVAL[rip]
	mov	eax, DWORD PTR CONFIRMED[rip]
	lea	rdi, 32[rbx]
	xor	r12d, r12d
	mov	DWORD PTR [rbx], 1
	mov	DWORD PTR 28[rbx], esi
	mov	DWORD PTR 36[rbx], eax
	call	k_start_timer@PLT
	mov	esi, DWORD PTR 0[r13]
	lea	rdi, 24[rbx]
	mov	rdx, rbp
	mov	ecx, DWORD PTR port_handle_node_down[rip]
	call	tipc_nodesub_subscribe@PLT
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L9:
	mov	r12d, DWORD PTR EINVAL[rip]
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	neg	r12d
	mov	eax, r12d
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L5:
	.cfi_restore_state
	mov	esi, DWORD PTR LONG_H_SIZE[rip]
	mov	rdi, r12
	call	msg_set_hdr_sz@PLT
	jmp	.L6
	.cfi_endproc
.LFE0:
	.size	tipc_connect2port, .-tipc_connect2port
	.comm	tipc_own_addr,4,4
	.comm	port_handle_node_down,8,8
	.comm	TIPC_CONN_MSG,4,4
	.comm	SHORT_H_SIZE,4,4
	.comm	PROBING_INTERVAL,4,4
	.comm	LONG_H_SIZE,4,4
	.comm	EINVAL,4,4
	.comm	CONFIRMED,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_port.c_tipc_connect2port.c"
	.text
	.align	2
	.global	tipc_connect2port
	.syntax unified
	.arm
	.fpu softvfp
	.type	tipc_connect2port, %function
tipc_connect2port:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	ldr	r7, .L14
	mov	r5, r1
	mov	r8, r0
	ldr	r6, [r7]
	bl	tipc_port_lock
	subs	r4, r0, #0
	beq	.L12
	ldr	r3, [r4, #16]
	rsb	r6, r6, #0
	cmp	r3, #0
	bne	.L4
	ldr	r3, [r4]
	cmp	r3, #0
	bne	.L4
	ldr	r3, [r5, #4]
	cmp	r3, #0
	bne	.L13
.L4:
	mov	r0, r4
	bl	tipc_port_unlock
	mov	r1, r8
	ldr	r0, [r5]
	bl	tipc_link_get_max_pkt
	str	r0, [r4, #4]
	mov	r0, r6
	pop	{r4, r5, r6, r7, r8, pc}
.L13:
	add	r6, r4, #12
	mov	r0, r6
	ldr	r1, [r5]
	bl	msg_set_destnode
	mov	r0, r6
	ldr	r1, [r5, #4]
	bl	msg_set_destport
	ldr	r3, .L14+4
	mov	r0, r6
	ldr	r1, [r3]
	bl	msg_set_orignode
	mov	r0, r6
	ldr	r1, [r4, #8]
	bl	msg_set_origport
	mov	r0, r6
	mov	r1, #42
	bl	msg_set_transp_seqno
	ldr	r3, .L14+8
	mov	r0, r6
	ldr	r1, [r3]
	bl	msg_set_type
	ldr	r0, [r5]
	bl	may_route
	cmp	r0, #0
	ldreq	r3, .L14+12
	ldrne	r3, .L14+16
	mov	r0, r6
	ldr	r1, [r3]
	bl	msg_set_hdr_sz
	mov	r3, #1
	mov	r0, r4
	ldr	r1, .L14+20
	ldr	r2, .L14+24
	ldr	r1, [r1]
	ldr	r2, [r2]
	str	r1, [r4, #24]
	str	r2, [r4, #32]
	str	r3, [r0], #28
	bl	k_start_timer
	ldr	r3, .L14+28
	mov	r2, r8
	ldr	r3, [r3]
	ldr	r1, [r5]
	add	r0, r4, #20
	bl	tipc_nodesub_subscribe
	mov	r6, #0
	b	.L4
.L12:
	ldr	r6, [r7]
	rsb	r6, r6, #0
	mov	r0, r6
	pop	{r4, r5, r6, r7, r8, pc}
.L15:
	.align	2
.L14:
	.word	EINVAL
	.word	tipc_own_addr
	.word	TIPC_CONN_MSG
	.word	SHORT_H_SIZE
	.word	LONG_H_SIZE
	.word	PROBING_INTERVAL
	.word	CONFIRMED
	.word	port_handle_node_down
	.size	tipc_connect2port, .-tipc_connect2port
	.comm	tipc_own_addr,4,4
	.comm	port_handle_node_down,4,4
	.comm	TIPC_CONN_MSG,4,4
	.comm	SHORT_H_SIZE,4,4
	.comm	PROBING_INTERVAL,4,4
	.comm	LONG_H_SIZE,4,4
	.comm	EINVAL,4,4
	.comm	CONFIRMED,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
