	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ucast_mgr_route
_ucast_mgr_route:                       ## @ucast_mgr_route
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	%rdi, %r12
	leaq	16(%rsi), %r14
	movq	_OSM_LOG_VERBOSE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	16(%rdi), %ecx
	leaq	L_.str(%rip), %rdx
	movq	%r14, %rdi
	callq	_OSM_LOG
	movq	24(%r15), %rdi
	testq	%rdi, %rdi
	je	LBB0_2
## %bb.1:
	callq	_srandom
LBB0_2:
	movq	(%r12), %rax
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movl	20(%r12), %edi
	callq	*%rax
	testl	%eax, %eax
	jle	LBB0_5
LBB0_4:
	movq	%r15, %rdi
	callq	_osm_ucast_mgr_build_lid_matrices
LBB0_5:
	movl	%eax, %ebx
	testl	%eax, %eax
	js	LBB0_6
## %bb.8:
	movq	8(%r12), %rax
	testq	%rax, %rax
	je	LBB0_10
## %bb.9:
	movl	20(%r12), %edi
	callq	*%rax
	testl	%eax, %eax
	jle	LBB0_11
LBB0_10:
	movq	%r15, %rdi
	callq	_ucast_mgr_build_lfts
LBB0_11:
	movl	%eax, %ebx
	testl	%eax, %eax
	js	LBB0_12
## %bb.13:
	movq	%r12, 8(%r15)
	movq	%r15, %rdi
	callq	_osm_ucast_mgr_set_fwd_tables
	xorl	%ebx, %ebx
	jmp	LBB0_14
LBB0_6:
	movq	_OSM_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	16(%r12), %ecx
	leaq	L_.str.1(%rip), %rdx
	jmp	LBB0_7
LBB0_12:
	movq	_OSM_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	16(%r12), %ecx
	leaq	L_.str.2(%rip), %rdx
LBB0_7:
	movq	%r14, %rdi
	callq	_OSM_LOG
LBB0_14:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_OSM_LOG_VERBOSE,4,2            ## @OSM_LOG_VERBOSE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"building routing with '%s' routing algorithm...\n"

	.comm	_OSM_LOG_ERROR,4,2              ## @OSM_LOG_ERROR
L_.str.1:                               ## @.str.1
	.asciz	"%s: cannot build lid matrices\n"

L_.str.2:                               ## @.str.2
	.asciz	"%s: cannot build fwd tables\n"

	.no_dead_strip	_ucast_mgr_route
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ucast_mgr_route
_ucast_mgr_route:                       ; @ucast_mgr_route
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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	x21, x1
	mov	x20, x0
	add	x19, x1, #16
Lloh0:
	adrp	x8, _OSM_LOG_VERBOSE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _OSM_LOG_VERBOSE@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	ldr	w3, [x0, #16]
Lloh3:
	adrp	x2, l_.str@PAGE
Lloh4:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x19
	bl	_OSM_LOG
	ldr	x0, [x21, #24]
	cbz	x0, LBB0_2
; %bb.1:
	bl	_srandom
LBB0_2:
	ldr	x8, [x20]
	cbz	x8, LBB0_4
; %bb.3:
	ldr	w0, [x20, #20]
	blr	x8
	cmp	w0, #1
	b.lt	LBB0_5
LBB0_4:
	mov	x0, x21
	bl	_osm_ucast_mgr_build_lid_matrices
LBB0_5:
	mov	x22, x0
	tbnz	w0, #31, LBB0_11
; %bb.6:
	ldr	x8, [x20, #8]
	cbz	x8, LBB0_8
; %bb.7:
	ldr	w0, [x20, #20]
	blr	x8
	cmp	w0, #1
	b.lt	LBB0_9
LBB0_8:
	mov	x0, x21
	bl	_ucast_mgr_build_lfts
LBB0_9:
	mov	x22, x0
	tbnz	w0, #31, LBB0_12
; %bb.10:
	str	x20, [x21, #8]
	mov	x0, x21
	bl	_osm_ucast_mgr_set_fwd_tables
	mov	w22, #0
	b	LBB0_14
LBB0_11:
Lloh5:
	adrp	x8, _OSM_LOG_ERROR@GOTPAGE
Lloh6:
	ldr	x8, [x8, _OSM_LOG_ERROR@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	ldr	w3, [x20, #16]
Lloh8:
	adrp	x2, l_.str.1@PAGE
Lloh9:
	add	x2, x2, l_.str.1@PAGEOFF
	b	LBB0_13
LBB0_12:
Lloh10:
	adrp	x8, _OSM_LOG_ERROR@GOTPAGE
Lloh11:
	ldr	x8, [x8, _OSM_LOG_ERROR@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
	ldr	w3, [x20, #16]
Lloh13:
	adrp	x2, l_.str.2@PAGE
Lloh14:
	add	x2, x2, l_.str.2@PAGEOFF
LBB0_13:
	mov	x0, x19
	bl	_OSM_LOG
LBB0_14:
	mov	x0, x22
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_OSM_LOG_VERBOSE,4,2            ; @OSM_LOG_VERBOSE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"building routing with '%s' routing algorithm...\n"

	.comm	_OSM_LOG_ERROR,4,2              ; @OSM_LOG_ERROR
l_.str.1:                               ; @.str.1
	.asciz	"%s: cannot build lid matrices\n"

l_.str.2:                               ; @.str.2
	.asciz	"%s: cannot build fwd tables\n"

	.no_dead_strip	_ucast_mgr_route
.subsections_via_symbols
