	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function get_dfsssp_sl
_get_dfsssp_sl:                         ## @get_dfsssp_sl
	.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
	movl	%esi, %ebx
	testq	%rdi, %rdi
	je	LBB0_8
## %bb.1:
	movl	%ecx, %r14d
	movq	(%rdi), %rax
	movq	_OSM_ROUTING_ENGINE_TYPE_DFSSSP@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_8
## %bb.2:
	movl	%edx, %r15d
	movq	24(%rdi), %r13
	movq	8(%rdi), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	16(%rdi), %r12
	movl	(%r13), %edi
	movl	%edx, %esi
	callq	_osm_get_port_by_lid
	testq	%rax, %rax
	je	LBB0_8
## %bb.3:
	movl	(%r13), %edi
	movl	%r14d, %esi
	callq	_osm_get_port_by_lid
	testq	%rax, %rax
	je	LBB0_8
## %bb.4:
	testq	%r12, %r12
	je	LBB0_8
## %bb.5:
	movq	%r12, %rdi
	movl	%r15d, %esi
	movl	%r14d, %edx
	callq	_vltable_get_vl
	testl	%eax, %eax
	js	LBB0_8
## %bb.6:
	movl	%eax, %r14d
	movl	%eax, %r15d
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	cmpl	$2, (%rax,%r15,4)
	movl	%r14d, %ebx
	jl	LBB0_8
## %bb.7:
	xorl	%eax, %eax
	callq	_rand
	cltd
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	idivl	(%rcx,%r15,4)
	movl	%edx, %ebx
	addl	%r14d, %ebx
LBB0_8:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_OSM_ROUTING_ENGINE_TYPE_DFSSSP,8,3 ## @OSM_ROUTING_ENGINE_TYPE_DFSSSP
	.no_dead_strip	_get_dfsssp_sl
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function get_dfsssp_sl
_get_dfsssp_sl:                         ; @get_dfsssp_sl
	.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	x19, x1
	cbz	x0, LBB0_7
; %bb.1:
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _OSM_ROUTING_ENGINE_TYPE_DFSSSP@GOTPAGE
Lloh1:
	ldr	x9, [x9, _OSM_ROUTING_ENGINE_TYPE_DFSSSP@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_7
; %bb.2:
	mov	x20, x3
	mov	x21, x2
	ldp	x22, x24, [x0, #16]
	ldr	x23, [x0, #8]
	ldr	w0, [x24]
	mov	x1, x2
	bl	_osm_get_port_by_lid
	cbz	x0, LBB0_7
; %bb.3:
	ldr	w0, [x24]
	mov	x1, x20
	bl	_osm_get_port_by_lid
	cmp	x0, #0
	ccmp	x22, #0, #4, ne
	b.eq	LBB0_7
; %bb.4:
	mov	x0, x22
	mov	x1, x21
	mov	x2, x20
	bl	_vltable_get_vl
	tbnz	w0, #31, LBB0_7
; %bb.5:
	mov	x20, x0
	ldr	w8, [x23, w0, uxtw #2]
	mov	x19, x0
	cmp	w8, #2
	b.lt	LBB0_7
; %bb.6:
	mov	w19, w20
	bl	_rand
	ldr	w8, [x23, x19, lsl #2]
	sdiv	w9, w0, w8
	msub	w8, w9, w8, w0
	add	w19, w8, w20
LBB0_7:
	mov	x0, x19
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_OSM_ROUTING_ENGINE_TYPE_DFSSSP,8,3 ; @OSM_ROUTING_ENGINE_TYPE_DFSSSP
	.no_dead_strip	_get_dfsssp_sl
.subsections_via_symbols
