	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_osm_sm_reroute_mlid            ## -- Begin function osm_sm_reroute_mlid
	.p2align	4, 0x90
_osm_sm_reroute_mlid:                   ## @osm_sm_reroute_mlid
	.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, %r14
	movq	%rsi, %rdi
	callq	_cl_ntoh16
	movq	%rax, %rbx
	movq	_IB_LID_MCAST_START_HO@GOTPCREL(%rip), %r15
	subq	(%r15), %rbx
	movq	(%r14), %rax
	movl	$1, (%rax,%rbx,4)
	cmpq	%rbx, 8(%r14)
	jae	LBB0_2
## %bb.1:
	movq	%rbx, 8(%r14)
LBB0_2:
	movq	_OSM_SIGNAL_IDLE_TIME_PROCESS_REQUEST@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_osm_sm_signal
	movl	16(%r14), %edi
	movq	_OSM_LOG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	addq	(%r15), %rbx
	leaq	L_.str(%rip), %rdx
	movq	%rbx, %rcx
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_OSM_LOG                        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_IB_LID_MCAST_START_HO,8,3      ## @IB_LID_MCAST_START_HO
	.comm	_OSM_SIGNAL_IDLE_TIME_PROCESS_REQUEST,4,2 ## @OSM_SIGNAL_IDLE_TIME_PROCESS_REQUEST
	.comm	_OSM_LOG_DEBUG,4,2              ## @OSM_LOG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"rerouting requested for MLID 0x%x\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_osm_sm_reroute_mlid            ; -- Begin function osm_sm_reroute_mlid
	.p2align	2
_osm_sm_reroute_mlid:                   ; @osm_sm_reroute_mlid
	.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	x19, x0
	mov	x0, x1
	bl	_cl_ntoh16
Lloh0:
	adrp	x20, _IB_LID_MCAST_START_HO@GOTPAGE
Lloh1:
	ldr	x20, [x20, _IB_LID_MCAST_START_HO@GOTPAGEOFF]
	ldr	x8, [x20]
	mov	w9, #1
	ldp	x10, x11, [x19]
	sub	x21, x0, x8
	cmp	x11, x21
	str	w9, [x10, x21, lsl #2]
	b.hs	LBB0_2
; %bb.1:
	str	x21, [x19, #8]
LBB0_2:
Lloh2:
	adrp	x8, _OSM_SIGNAL_IDLE_TIME_PROCESS_REQUEST@GOTPAGE
Lloh3:
	ldr	x8, [x8, _OSM_SIGNAL_IDLE_TIME_PROCESS_REQUEST@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_osm_sm_signal
	ldr	w0, [x19, #16]
Lloh5:
	adrp	x8, _OSM_LOG_DEBUG@GOTPAGE
Lloh6:
	ldr	x8, [x8, _OSM_LOG_DEBUG@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	ldr	x8, [x20]
	add	x3, x8, x21
Lloh8:
	adrp	x2, l_.str@PAGE
Lloh9:
	add	x2, x2, l_.str@PAGEOFF
	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
	b	_OSM_LOG
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_IB_LID_MCAST_START_HO,8,3      ; @IB_LID_MCAST_START_HO
	.comm	_OSM_SIGNAL_IDLE_TIME_PROCESS_REQUEST,4,2 ; @OSM_SIGNAL_IDLE_TIME_PROCESS_REQUEST
	.comm	_OSM_LOG_DEBUG,4,2              ; @OSM_LOG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"rerouting requested for MLID 0x%x\n"

.subsections_via_symbols
