	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function get_lash_sl
_get_lash_sl:                           ## @get_lash_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	(%rdi), %rbx
	movq	8(%rbx), %rax
	movq	_OSM_DEFAULT_SL@GOTPCREL(%rip), %r12
	testq	%rax, %rax
	je	LBB0_11
## %bb.1:
	movl	%ecx, %r15d
	movq	(%rax), %rax
	movq	_OSM_ROUTING_ENGINE_TYPE_LASH@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_11
## %bb.2:
	movq	%rbx, %rdi
	movl	%edx, %esi
	callq	_osm_get_port_by_lid
	testq	%rax, %rax
	je	LBB0_11
## %bb.3:
	movq	%rax, %r14
	movq	%rbx, %rdi
	movl	%r15d, %esi
	callq	_osm_get_port_by_lid
	testq	%rax, %rax
	je	LBB0_11
## %bb.4:
	movq	%rax, %rdi
	callq	_get_osm_switch_from_port
	testq	%rax, %rax
	je	LBB0_11
## %bb.5:
	cmpq	$0, (%rax)
	je	LBB0_11
## %bb.6:
	movq	%rax, %rdi
	callq	_get_lash_id
	movl	%eax, %r15d
	movq	%r14, %rdi
	callq	_get_osm_switch_from_port
	testq	%rax, %rax
	je	LBB0_11
## %bb.7:
	movq	%rax, %r14
	cmpq	$0, (%rax)
	je	LBB0_11
## %bb.8:
	movq	%r14, %rdi
	callq	_get_lash_id
	cmpl	%r15d, %eax
	jne	LBB0_10
## %bb.9:
	movq	%rbx, %r12
	jmp	LBB0_11
LBB0_10:
	movq	(%r14), %rax
	movl	%r15d, %r12d
	shlq	$2, %r12
	addq	(%rax), %r12
LBB0_11:
	movl	(%r12), %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_OSM_ROUTING_ENGINE_TYPE_LASH,8,3 ## @OSM_ROUTING_ENGINE_TYPE_LASH
	.comm	_OSM_DEFAULT_SL,4,2             ## @OSM_DEFAULT_SL
	.no_dead_strip	_get_lash_sl
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function get_lash_sl
_get_lash_sl:                           ; @get_lash_sl
	.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
	ldr	x19, [x0]
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_10
; %bb.1:
	ldr	x8, [x8]
Lloh0:
	adrp	x9, _OSM_ROUTING_ENGINE_TYPE_LASH@GOTPAGE
Lloh1:
	ldr	x9, [x9, _OSM_ROUTING_ENGINE_TYPE_LASH@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_10
; %bb.2:
	mov	x21, x3
	mov	x0, x19
	mov	x1, x2
	bl	_osm_get_port_by_lid
	cbz	x0, LBB0_10
; %bb.3:
	mov	x20, x0
	mov	x0, x19
	mov	x1, x21
	bl	_osm_get_port_by_lid
	cbz	x0, LBB0_10
; %bb.4:
	bl	_get_osm_switch_from_port
	cbz	x0, LBB0_10
; %bb.5:
	ldr	x8, [x0]
	cbz	x8, LBB0_10
; %bb.6:
	bl	_get_lash_id
	mov	x21, x0
	mov	x0, x20
	bl	_get_osm_switch_from_port
	cbz	x0, LBB0_10
; %bb.7:
	mov	x20, x0
	ldr	x8, [x0]
	cbz	x8, LBB0_10
; %bb.8:
	mov	x0, x20
	bl	_get_lash_id
	cmp	w0, w21
	b.eq	LBB0_11
; %bb.9:
	ldr	x8, [x20]
	ldr	x8, [x8]
	add	x19, x8, w21, uxtw #2
	b	LBB0_11
LBB0_10:
Lloh3:
	adrp	x19, _OSM_DEFAULT_SL@GOTPAGE
Lloh4:
	ldr	x19, [x19, _OSM_DEFAULT_SL@GOTPAGEOFF]
LBB0_11:
	ldr	w0, [x19]
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_OSM_ROUTING_ENGINE_TYPE_LASH,8,3 ; @OSM_ROUTING_ENGINE_TYPE_LASH
	.comm	_OSM_DEFAULT_SL,4,2             ; @OSM_DEFAULT_SL
	.no_dead_strip	_get_lash_sl
.subsections_via_symbols
