	.file	"extr_osm_ucast_updn.c_updn_lid_matrices.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"ERR AA0C: cannot create updn node\n"
	.align 8
.LC1:
	.string	"UPDN - Fetching root nodes from file '%s'\n"
	.align 8
.LC2:
	.string	"ERR AA02: cannot parse root guids file '%s'\n"
	.align 8
.LC3:
	.string	"UPDN - update node ids from file '%s'\n"
	.align 8
.LC4:
	.string	"ERR AA03: cannot parse node ids file '%s'\n"
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC5:
	.string	"activating UPDN algorithm\n"
	.section	.rodata.str1.8
	.align 8
.LC6:
	.string	"disabling UPDN algorithm, no root nodes were found\n"
	.section	.rodata.str1.1
.LC7:
	.string	"opensm-updn-roots.dump"
	.text
	.p2align 4
	.type	updn_lid_matrices, @function
updn_lid_matrices:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	mov	rax, QWORD PTR 8[rdi]
	mov	rbx, rdi
	lea	rdi, 4[rax]
	call	OSM_LOG_ENTER@PLT
	mov	rax, QWORD PTR 8[rbx]
	lea	rdi, 16[rax]
	call	cl_qmap_head@PLT
	mov	rbp, rax
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L5:
	mov	rdi, rbp
	call	create_updn_node@PLT
	mov	DWORD PTR 0[rbp], eax
	test	eax, eax
	je	.L25
	mov	rdi, rbp
	call	cl_qmap_next@PLT
	mov	rbp, rax
.L2:
	mov	rax, QWORD PTR 8[rbx]
	lea	rdi, 16[rax]
	call	cl_qmap_end@PLT
	cmp	rbp, rax
	jne	.L5
	mov	rdi, QWORD PTR 8[rbx]
	mov	DWORD PTR [rbx], 0
	mov	rcx, QWORD PTR 40[rdi]
	test	rcx, rcx
	jne	.L26
	add	rdi, 48
	call	osm_ucast_mgr_build_lid_matrices@PLT
	mov	rdi, rbx
	call	updn_find_root_nodes_by_min_hop@PLT
	mov	rdi, QWORD PTR 8[rbx]
.L8:
	mov	rcx, QWORD PTR 24[rdi]
	add	rdi, 4
	test	rcx, rcx
	jne	.L27
.L9:
	mov	eax, DWORD PTR [rbx]
	test	eax, eax
	je	.L11
	mov	esi, DWORD PTR OSM_LOG_DEBUG[rip]
	lea	rdx, .LC5[rip]
	xor	eax, eax
	call	OSM_LOG@PLT
	mov	rdi, rbx
	call	updn_build_lid_matrices@PLT
	mov	r12d, eax
.L12:
	mov	rax, QWORD PTR 8[rbx]
	mov	esi, DWORD PTR OSM_LOG_ROUTING[rip]
	lea	rdi, 4[rax]
	call	OSM_LOG_IS_ACTIVE_V2@PLT
	test	rax, rax
	jne	.L28
.L13:
	mov	rax, QWORD PTR 8[rbx]
	lea	rdi, 16[rax]
	call	cl_qmap_head@PLT
	mov	rbp, rax
	jmp	.L14
	.p2align 4,,10
	.p2align 3
.L15:
	mov	edi, DWORD PTR 0[rbp]
	call	delete_updn_node@PLT
	mov	rdi, rbp
	call	cl_qmap_next@PLT
	mov	rbp, rax
.L14:
	mov	rax, QWORD PTR 8[rbx]
	lea	rdi, 16[rax]
	call	cl_qmap_end@PLT
	cmp	rbp, rax
	jne	.L15
	mov	rdi, QWORD PTR 8[rbx]
	add	rdi, 4
	call	OSM_LOG_EXIT@PLT
	mov	eax, r12d
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L26:
	.cfi_restore_state
	mov	esi, DWORD PTR OSM_LOG_DEBUG[rip]
	add	rdi, 4
	lea	rdx, .LC1[rip]
	xor	eax, eax
	call	OSM_LOG@PLT
	mov	rax, QWORD PTR 8[rbx]
	mov	esi, DWORD PTR rank_root_node[rip]
	mov	rdx, rbx
	mov	rdi, QWORD PTR 40[rax]
	call	parse_node_map@PLT
	test	eax, eax
	jne	.L29
	mov	rdi, QWORD PTR 8[rbx]
	cmp	QWORD PTR 32[rdi], 0
	je	.L8
	cmp	DWORD PTR [rbx], 1
	jle	.L8
	add	rdi, 48
	call	osm_ucast_mgr_build_lid_matrices@PLT
	mov	rdi, QWORD PTR 8[rbx]
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L25:
	mov	rax, QWORD PTR 8[rbx]
	mov	esi, DWORD PTR OSM_LOG_ERROR[rip]
	lea	rdx, .LC0[rip]
	mov	r12d, -1
	lea	rdi, 4[rax]
	xor	eax, eax
	call	OSM_LOG@PLT
	mov	rdi, QWORD PTR 8[rbx]
	add	rdi, 4
	call	OSM_LOG_EXIT@PLT
	mov	eax, r12d
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L11:
	.cfi_restore_state
	mov	esi, DWORD PTR OSM_LOG_INFO[rip]
	lea	rdx, .LC6[rip]
	xor	eax, eax
	mov	r12d, -1
	call	OSM_LOG@PLT
	jmp	.L12
.L29:
	mov	rax, QWORD PTR 8[rbx]
	mov	esi, DWORD PTR OSM_LOG_ERROR[rip]
	lea	rdx, .LC2[rip]
	mov	rcx, QWORD PTR 40[rax]
	lea	rdi, 4[rax]
	xor	eax, eax
	call	OSM_LOG@PLT
	mov	rax, QWORD PTR 8[rbx]
	lea	rdi, 48[rax]
	call	osm_ucast_mgr_build_lid_matrices@PLT
	mov	rdi, rbx
	call	updn_find_root_nodes_by_min_hop@PLT
	mov	rdi, QWORD PTR 8[rbx]
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L28:
	mov	rdi, QWORD PTR 8[rbx]
	mov	ecx, DWORD PTR dump_roots[rip]
	xor	r8d, r8d
	lea	rsi, .LC7[rip]
	lea	rdx, 16[rdi]
	call	osm_dump_qmap_to_file@PLT
	jmp	.L13
	.p2align 4,,10
	.p2align 3
.L27:
	mov	esi, DWORD PTR OSM_LOG_DEBUG[rip]
	lea	rdx, .LC3[rip]
	xor	eax, eax
	call	OSM_LOG@PLT
	mov	rdx, QWORD PTR 8[rbx]
	mov	esi, DWORD PTR update_id[rip]
	mov	rdi, QWORD PTR 24[rdx]
	call	parse_node_map@PLT
	test	eax, eax
	mov	rax, QWORD PTR 8[rbx]
	jne	.L10
.L23:
	lea	rdi, 4[rax]
	jmp	.L9
.L10:
	mov	rcx, QWORD PTR 24[rax]
	mov	esi, DWORD PTR OSM_LOG_ERROR[rip]
	lea	rdi, 4[rax]
	xor	eax, eax
	lea	rdx, .LC4[rip]
	call	OSM_LOG@PLT
	mov	rax, QWORD PTR 8[rbx]
	jmp	.L23
	.cfi_endproc
.LFE0:
	.size	updn_lid_matrices, .-updn_lid_matrices
	.comm	update_id,4,4
	.comm	rank_root_node,4,4
	.comm	dump_roots,4,4
	.comm	OSM_LOG_ROUTING,4,4
	.comm	OSM_LOG_INFO,4,4
	.comm	OSM_LOG_ERROR,4,4
	.comm	OSM_LOG_DEBUG,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_osm_ucast_updn.c_updn_lid_matrices.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"ERR AA0C: cannot create updn node\012\000"
	.align	2
.LC1:
	.ascii	"UPDN - Fetching root nodes from file '%s'\012\000"
	.align	2
.LC2:
	.ascii	"ERR AA02: cannot parse root guids file '%s'\012\000"
	.align	2
.LC3:
	.ascii	"UPDN - update node ids from file '%s'\012\000"
	.align	2
.LC4:
	.ascii	"ERR AA03: cannot parse node ids file '%s'\012\000"
	.align	2
.LC5:
	.ascii	"activating UPDN algorithm\012\000"
	.align	2
.LC6:
	.ascii	"disabling UPDN algorithm, no root nodes were found\012"
	.ascii	"\000"
	.align	2
.LC7:
	.ascii	"opensm-updn-roots.dump\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	updn_lid_matrices, %function
updn_lid_matrices:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r5, r0
	ldr	r0, [r0, #8]
	sub	sp, sp, #8
	add	r0, r0, #4
	bl	OSM_LOG_ENTER
	ldr	r0, [r5, #8]
	add	r0, r0, #12
	bl	cl_qmap_head
	mov	r4, r0
	b	.L2
.L5:
	mov	r0, r4
	bl	create_updn_node
	cmp	r0, #0
	str	r0, [r4]
	beq	.L28
	mov	r0, r4
	bl	cl_qmap_next
	mov	r4, r0
.L2:
	ldr	r0, [r5, #8]
	add	r0, r0, #12
	bl	cl_qmap_end
	cmp	r4, r0
	bne	.L5
	mov	r3, #0
	ldr	r0, [r5, #8]
	str	r3, [r5]
	ldr	r3, [r0, #24]
	cmp	r3, #0
	bne	.L29
.L6:
	add	r0, r0, #28
	bl	osm_ucast_mgr_build_lid_matrices
	mov	r0, r5
	bl	updn_find_root_nodes_by_min_hop
	ldr	r0, [r5, #8]
.L8:
	ldr	r3, [r0, #16]
	add	r0, r0, #4
	cmp	r3, #0
	bne	.L30
.L9:
	ldr	r3, [r5]
	cmp	r3, #0
	beq	.L11
	ldr	r3, .L33
	ldr	r2, .L33+4
	ldr	r1, [r3]
	bl	OSM_LOG
	mov	r0, r5
	bl	updn_build_lid_matrices
	mov	r6, r0
.L12:
	ldr	r3, .L33+8
	ldr	r0, [r5, #8]
	ldr	r1, [r3]
	add	r0, r0, #4
	bl	OSM_LOG_IS_ACTIVE_V2
	cmp	r0, #0
	bne	.L31
.L13:
	ldr	r0, [r5, #8]
	add	r0, r0, #12
	bl	cl_qmap_head
	mov	r4, r0
	b	.L14
.L15:
	ldr	r0, [r4]
	bl	delete_updn_node
	mov	r0, r4
	bl	cl_qmap_next
	mov	r4, r0
.L14:
	ldr	r0, [r5, #8]
	add	r0, r0, #12
	bl	cl_qmap_end
	cmp	r4, r0
	bne	.L15
	ldr	r0, [r5, #8]
	add	r0, r0, #4
	bl	OSM_LOG_EXIT
	mov	r0, r6
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, pc}
.L29:
	ldr	r2, .L33
	add	r0, r0, #4
	ldr	r1, [r2]
	ldr	r2, .L33+12
	bl	OSM_LOG
	ldr	r2, .L33+16
	ldr	r3, [r5, #8]
	ldr	r1, [r2]
	ldr	r0, [r3, #24]
	mov	r2, r5
	bl	parse_node_map
	cmp	r0, #0
	ldr	r0, [r5, #8]
	bne	.L32
	ldr	r3, [r0, #20]
	cmp	r3, #0
	beq	.L8
	ldr	r3, [r5]
	cmp	r3, #1
	ble	.L8
	add	r0, r0, #28
	bl	osm_ucast_mgr_build_lid_matrices
	ldr	r0, [r5, #8]
	b	.L8
.L28:
	mvn	r6, #0
	ldr	r3, .L33+20
	ldr	r0, [r5, #8]
	ldr	r1, [r3]
	ldr	r2, .L33+24
	add	r0, r0, #4
	bl	OSM_LOG
	ldr	r0, [r5, #8]
	add	r0, r0, #4
	bl	OSM_LOG_EXIT
	mov	r0, r6
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, pc}
.L11:
	ldr	r3, .L33+28
	ldr	r2, .L33+32
	ldr	r1, [r3]
	bl	OSM_LOG
	mvn	r6, #0
	b	.L12
.L32:
	ldr	r2, .L33+20
	ldr	r3, [r0, #24]
	ldr	r1, [r2]
	add	r0, r0, #4
	ldr	r2, .L33+36
	bl	OSM_LOG
	ldr	r0, [r5, #8]
	b	.L6
.L31:
	mov	r2, #0
	ldr	r0, [r5, #8]
	ldr	r3, .L33+40
	str	r2, [sp]
	ldr	r3, [r3]
	ldr	r1, .L33+44
	add	r2, r0, #12
	bl	osm_dump_qmap_to_file
	b	.L13
.L30:
	ldr	r2, .L33
	ldr	r1, [r2]
	ldr	r2, .L33+48
	bl	OSM_LOG
	ldr	r2, [r5, #8]
	ldr	r3, .L33+52
	ldr	r0, [r2, #16]
	ldr	r1, [r3]
	bl	parse_node_map
	cmp	r0, #0
	ldr	r0, [r5, #8]
	bne	.L10
.L26:
	add	r0, r0, #4
	b	.L9
.L10:
	ldr	r2, .L33+20
	ldr	r3, [r0, #16]
	ldr	r1, [r2]
	add	r0, r0, #4
	ldr	r2, .L33+56
	bl	OSM_LOG
	ldr	r0, [r5, #8]
	b	.L26
.L34:
	.align	2
.L33:
	.word	OSM_LOG_DEBUG
	.word	.LC5
	.word	OSM_LOG_ROUTING
	.word	.LC1
	.word	rank_root_node
	.word	OSM_LOG_ERROR
	.word	.LC0
	.word	OSM_LOG_INFO
	.word	.LC6
	.word	.LC2
	.word	dump_roots
	.word	.LC7
	.word	.LC3
	.word	update_id
	.word	.LC4
	.size	updn_lid_matrices, .-updn_lid_matrices
	.comm	update_id,4,4
	.comm	rank_root_node,4,4
	.comm	dump_roots,4,4
	.comm	OSM_LOG_ROUTING,4,4
	.comm	OSM_LOG_INFO,4,4
	.comm	OSM_LOG_ERROR,4,4
	.comm	OSM_LOG_DEBUG,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
