	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function updn_lid_matrices
_updn_lid_matrices:                     ## @updn_lid_matrices
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movq	8(%rdi), %rdi
	addq	$4, %rdi
	callq	_OSM_LOG_ENTER
	movq	8(%r15), %rdi
	addq	$16, %rdi
	callq	_cl_qmap_head
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rax, %rbx
	movq	8(%r15), %rdi
	addq	$16, %rdi
	callq	_cl_qmap_end
	cmpq	%rax, %rbx
	je	LBB0_5
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	%rbx, %rdi
	callq	_create_updn_node
	movl	%eax, (%rbx)
	testl	%eax, %eax
	je	LBB0_3
## %bb.4:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	%rbx, %rdi
	callq	_cl_qmap_next
	jmp	LBB0_1
LBB0_5:
	movl	$0, (%r15)
	movq	8(%r15), %rdi
	movq	40(%rdi), %rcx
	testq	%rcx, %rcx
	je	LBB0_8
## %bb.6:
	addq	$4, %rdi
	movq	_OSM_LOG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.1(%rip), %rdx
	xorl	%eax, %eax
	callq	_OSM_LOG
	movq	8(%r15), %rax
	movq	40(%rax), %rdi
	movq	_rank_root_node@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdx
	callq	_parse_node_map
	movq	8(%r15), %rdi
	testl	%eax, %eax
	je	LBB0_9
## %bb.7:
	movq	_OSM_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	40(%rdi), %rcx
	addq	$4, %rdi
	leaq	L_.str.2(%rip), %rdx
	xorl	%eax, %eax
	callq	_OSM_LOG
	movq	8(%r15), %rdi
LBB0_8:
	addq	$48, %rdi
	callq	_osm_ucast_mgr_build_lid_matrices
	movq	%r15, %rdi
	callq	_updn_find_root_nodes_by_min_hop
LBB0_12:
	movq	8(%r15), %rdi
	movq	24(%rdi), %rcx
	testq	%rcx, %rcx
	je	LBB0_15
## %bb.13:
	addq	$4, %rdi
	movq	_OSM_LOG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.3(%rip), %rdx
	xorl	%eax, %eax
	callq	_OSM_LOG
	movq	8(%r15), %rdx
	movq	24(%rdx), %rdi
	movq	_update_id@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_parse_node_map
	testl	%eax, %eax
	je	LBB0_15
## %bb.14:
	movq	8(%r15), %rdi
	movq	_OSM_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	24(%rdi), %rcx
	addq	$4, %rdi
	leaq	L_.str.4(%rip), %rdx
	xorl	%eax, %eax
	callq	_OSM_LOG
LBB0_15:
	movq	8(%r15), %rdi
	addq	$4, %rdi
	cmpl	$0, (%r15)
	je	LBB0_17
## %bb.16:
	movq	_OSM_LOG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.5(%rip), %rdx
	xorl	%eax, %eax
	callq	_OSM_LOG
	movq	%r15, %rdi
	callq	_updn_build_lid_matrices
	movl	%eax, %r14d
	jmp	LBB0_18
LBB0_3:
	movq	8(%r15), %rdi
	addq	$4, %rdi
	movq	_OSM_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	xorl	%eax, %eax
	callq	_OSM_LOG
	movl	$-1, %r14d
LBB0_23:
	movq	8(%r15), %rdi
	addq	$4, %rdi
	callq	_OSM_LOG_EXIT
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_17:
	movq	_OSM_LOG_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.6(%rip), %rdx
	xorl	%eax, %eax
	callq	_OSM_LOG
	movl	$-1, %r14d
LBB0_18:
	movq	8(%r15), %rdi
	addq	$4, %rdi
	movq	_OSM_LOG_ROUTING@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_OSM_LOG_IS_ACTIVE_V2
	testq	%rax, %rax
	je	LBB0_20
## %bb.19:
	movq	8(%r15), %rdi
	leaq	16(%rdi), %rdx
	movq	_dump_roots@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	L_.str.7(%rip), %rsi
	xorl	%r8d, %r8d
	callq	_osm_dump_qmap_to_file
LBB0_20:
	movq	8(%r15), %rdi
	addq	$16, %rdi
	callq	_cl_qmap_head
	.p2align	4, 0x90
LBB0_22:                                ## =>This Inner Loop Header: Depth=1
	movq	%rax, %rbx
	movq	8(%r15), %rdi
	addq	$16, %rdi
	callq	_cl_qmap_end
	cmpq	%rax, %rbx
	je	LBB0_23
## %bb.21:                              ##   in Loop: Header=BB0_22 Depth=1
	movl	(%rbx), %edi
	callq	_delete_updn_node
	movq	%rbx, %rdi
	callq	_cl_qmap_next
	jmp	LBB0_22
LBB0_9:
	cmpq	$0, 32(%rdi)
	je	LBB0_12
## %bb.10:
	cmpl	$2, (%r15)
	jl	LBB0_12
## %bb.11:
	addq	$48, %rdi
	callq	_osm_ucast_mgr_build_lid_matrices
	jmp	LBB0_12
	.cfi_endproc
                                        ## -- End function
	.comm	_OSM_LOG_ERROR,4,2              ## @OSM_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"ERR AA0C: cannot create updn node\n"

	.comm	_OSM_LOG_DEBUG,4,2              ## @OSM_LOG_DEBUG
L_.str.1:                               ## @.str.1
	.asciz	"UPDN - Fetching root nodes from file '%s'\n"

	.comm	_rank_root_node,4,2             ## @rank_root_node
L_.str.2:                               ## @.str.2
	.asciz	"ERR AA02: cannot parse root guids file '%s'\n"

L_.str.3:                               ## @.str.3
	.asciz	"UPDN - update node ids from file '%s'\n"

	.comm	_update_id,4,2                  ## @update_id
L_.str.4:                               ## @.str.4
	.asciz	"ERR AA03: cannot parse node ids file '%s'\n"

L_.str.5:                               ## @.str.5
	.asciz	"activating UPDN algorithm\n"

	.comm	_OSM_LOG_INFO,4,2               ## @OSM_LOG_INFO
L_.str.6:                               ## @.str.6
	.asciz	"disabling UPDN algorithm, no root nodes were found\n"

	.comm	_OSM_LOG_ROUTING,4,2            ## @OSM_LOG_ROUTING
L_.str.7:                               ## @.str.7
	.asciz	"opensm-updn-roots.dump"

	.comm	_dump_roots,4,2                 ## @dump_roots
	.no_dead_strip	_updn_lid_matrices
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function updn_lid_matrices
_updn_lid_matrices:                     ; @updn_lid_matrices
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x19, x0
	ldr	x8, [x0, #8]
	add	x0, x8, #4
	bl	_OSM_LOG_ENTER
	ldr	x8, [x19, #8]
	add	x0, x8, #16
	bl	_cl_qmap_head
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	mov	x20, x0
	ldr	x8, [x19, #8]
	add	x0, x8, #16
	bl	_cl_qmap_end
	cmp	x20, x0
	b.eq	LBB0_4
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	mov	x0, x20
	bl	_create_updn_node
	str	w0, [x20]
	cbz	w0, LBB0_7
; %bb.3:                                ;   in Loop: Header=BB0_1 Depth=1
	mov	x0, x20
	bl	_cl_qmap_next
	b	LBB0_1
LBB0_4:
	str	wzr, [x19]
	ldr	x9, [x19, #8]
	ldr	x8, [x9, #40]
Lloh0:
	adrp	x20, _OSM_LOG_DEBUG@GOTPAGE
Lloh1:
	ldr	x20, [x20, _OSM_LOG_DEBUG@GOTPAGEOFF]
	cbz	x8, LBB0_9
; %bb.5:
	add	x0, x9, #4
	ldr	w1, [x20]
	str	x8, [sp]
Lloh2:
	adrp	x2, l_.str.1@PAGE
Lloh3:
	add	x2, x2, l_.str.1@PAGEOFF
	bl	_OSM_LOG
	ldr	x8, [x19, #8]
	ldr	x0, [x8, #40]
Lloh4:
	adrp	x8, _rank_root_node@GOTPAGE
Lloh5:
	ldr	x8, [x8, _rank_root_node@GOTPAGEOFF]
Lloh6:
	ldr	w1, [x8]
	mov	x2, x19
	bl	_parse_node_map
	ldr	x8, [x19, #8]
	cbz	w0, LBB0_22
; %bb.6:
	add	x0, x8, #4
Lloh7:
	adrp	x9, _OSM_LOG_ERROR@GOTPAGE
Lloh8:
	ldr	x9, [x9, _OSM_LOG_ERROR@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x9]
	ldr	x8, [x8, #40]
	str	x8, [sp]
Lloh10:
	adrp	x2, l_.str.2@PAGE
Lloh11:
	add	x2, x2, l_.str.2@PAGEOFF
	bl	_OSM_LOG
	ldr	x8, [x19, #8]
	add	x0, x8, #48
	b	LBB0_10
LBB0_7:
	ldr	x8, [x19, #8]
	add	x0, x8, #4
Lloh12:
	adrp	x8, _OSM_LOG_ERROR@GOTPAGE
Lloh13:
	ldr	x8, [x8, _OSM_LOG_ERROR@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
Lloh15:
	adrp	x2, l_.str@PAGE
Lloh16:
	add	x2, x2, l_.str@PAGEOFF
	bl	_OSM_LOG
	mov	w20, #-1
LBB0_8:
	ldr	x8, [x19, #8]
	add	x0, x8, #4
	bl	_OSM_LOG_EXIT
	mov	x0, x20
	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
	add	sp, sp, #64
	ret
LBB0_9:
	add	x0, x9, #48
LBB0_10:
	bl	_osm_ucast_mgr_build_lid_matrices
	mov	x0, x19
	bl	_updn_find_root_nodes_by_min_hop
LBB0_11:
	ldr	x9, [x19, #8]
	ldr	x8, [x9, #24]
	cbz	x8, LBB0_14
; %bb.12:
	add	x0, x9, #4
	ldr	w1, [x20]
	str	x8, [sp]
Lloh17:
	adrp	x2, l_.str.3@PAGE
Lloh18:
	add	x2, x2, l_.str.3@PAGEOFF
	bl	_OSM_LOG
	ldr	x2, [x19, #8]
	ldr	x0, [x2, #24]
Lloh19:
	adrp	x8, _update_id@GOTPAGE
Lloh20:
	ldr	x8, [x8, _update_id@GOTPAGEOFF]
Lloh21:
	ldr	w1, [x8]
	bl	_parse_node_map
	cbz	w0, LBB0_14
; %bb.13:
	ldr	x8, [x19, #8]
	add	x0, x8, #4
Lloh22:
	adrp	x9, _OSM_LOG_ERROR@GOTPAGE
Lloh23:
	ldr	x9, [x9, _OSM_LOG_ERROR@GOTPAGEOFF]
Lloh24:
	ldr	w1, [x9]
	ldr	x8, [x8, #24]
	str	x8, [sp]
Lloh25:
	adrp	x2, l_.str.4@PAGE
Lloh26:
	add	x2, x2, l_.str.4@PAGEOFF
	bl	_OSM_LOG
LBB0_14:
	ldr	w8, [x19]
	ldr	x9, [x19, #8]
	add	x0, x9, #4
	cbz	w8, LBB0_16
; %bb.15:
	ldr	w1, [x20]
Lloh27:
	adrp	x2, l_.str.5@PAGE
Lloh28:
	add	x2, x2, l_.str.5@PAGEOFF
	bl	_OSM_LOG
	mov	x0, x19
	bl	_updn_build_lid_matrices
	mov	x20, x0
	b	LBB0_17
LBB0_16:
Lloh29:
	adrp	x8, _OSM_LOG_INFO@GOTPAGE
Lloh30:
	ldr	x8, [x8, _OSM_LOG_INFO@GOTPAGEOFF]
Lloh31:
	ldr	w1, [x8]
Lloh32:
	adrp	x2, l_.str.6@PAGE
Lloh33:
	add	x2, x2, l_.str.6@PAGEOFF
	bl	_OSM_LOG
	mov	w20, #-1
LBB0_17:
	ldr	x8, [x19, #8]
	add	x0, x8, #4
Lloh34:
	adrp	x8, _OSM_LOG_ROUTING@GOTPAGE
Lloh35:
	ldr	x8, [x8, _OSM_LOG_ROUTING@GOTPAGEOFF]
Lloh36:
	ldr	w1, [x8]
	bl	_OSM_LOG_IS_ACTIVE_V2
	cbz	x0, LBB0_19
; %bb.18:
	ldr	x0, [x19, #8]
	add	x2, x0, #16
Lloh37:
	adrp	x8, _dump_roots@GOTPAGE
Lloh38:
	ldr	x8, [x8, _dump_roots@GOTPAGEOFF]
Lloh39:
	ldr	w3, [x8]
Lloh40:
	adrp	x1, l_.str.7@PAGE
Lloh41:
	add	x1, x1, l_.str.7@PAGEOFF
	mov	x4, #0
	bl	_osm_dump_qmap_to_file
LBB0_19:
	ldr	x8, [x19, #8]
	add	x0, x8, #16
	bl	_cl_qmap_head
LBB0_20:                                ; =>This Inner Loop Header: Depth=1
	mov	x21, x0
	ldr	x8, [x19, #8]
	add	x0, x8, #16
	bl	_cl_qmap_end
	cmp	x21, x0
	b.eq	LBB0_8
; %bb.21:                               ;   in Loop: Header=BB0_20 Depth=1
	ldr	w0, [x21]
	bl	_delete_updn_node
	mov	x0, x21
	bl	_cl_qmap_next
	b	LBB0_20
LBB0_22:
	ldr	x9, [x8, #32]
	cbz	x9, LBB0_11
; %bb.23:
	ldr	w9, [x19]
	cmp	w9, #2
	b.lt	LBB0_11
; %bb.24:
	add	x0, x8, #48
	bl	_osm_ucast_mgr_build_lid_matrices
	b	LBB0_11
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpAdd	Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpAdd	Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.cfi_endproc
                                        ; -- End function
	.comm	_OSM_LOG_ERROR,4,2              ; @OSM_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ERR AA0C: cannot create updn node\n"

	.comm	_OSM_LOG_DEBUG,4,2              ; @OSM_LOG_DEBUG
l_.str.1:                               ; @.str.1
	.asciz	"UPDN - Fetching root nodes from file '%s'\n"

	.comm	_rank_root_node,4,2             ; @rank_root_node
l_.str.2:                               ; @.str.2
	.asciz	"ERR AA02: cannot parse root guids file '%s'\n"

l_.str.3:                               ; @.str.3
	.asciz	"UPDN - update node ids from file '%s'\n"

	.comm	_update_id,4,2                  ; @update_id
l_.str.4:                               ; @.str.4
	.asciz	"ERR AA03: cannot parse node ids file '%s'\n"

l_.str.5:                               ; @.str.5
	.asciz	"activating UPDN algorithm\n"

	.comm	_OSM_LOG_INFO,4,2               ; @OSM_LOG_INFO
l_.str.6:                               ; @.str.6
	.asciz	"disabling UPDN algorithm, no root nodes were found\n"

	.comm	_OSM_LOG_ROUTING,4,2            ; @OSM_LOG_ROUTING
l_.str.7:                               ; @.str.7
	.asciz	"opensm-updn-roots.dump"

	.comm	_dump_roots,4,2                 ; @dump_roots
	.no_dead_strip	_updn_lid_matrices
.subsections_via_symbols
