	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_osm_mcast_mgr_process          ## -- Begin function osm_mcast_mgr_process
	.p2align	4, 0x90
_osm_mcast_mgr_process:                 ## @osm_mcast_mgr_process
	.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
	movq	%rsi, %r14
	movq	%rdi, %r12
	movl	4(%rdi), %edi
	callq	_OSM_LOG_ENTER
	movl	8(%r12), %edi
	callq	_CL_PLOCK_EXCL_ACQUIRE
	movq	16(%r12), %rdi
	addq	$16, %rdi
	callq	_cl_qmap_count
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%r12, %rdi
	callq	_alloc_mfts
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movl	4(%r12), %edi
	movq	_OSM_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.1(%rip), %rdx
	callq	_OSM_LOG
	movl	$-1, %r14d
	jmp	LBB0_14
LBB0_1:
	movl	4(%r12), %edi
	movq	_OSM_LOG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	callq	_OSM_LOG
	xorl	%r14d, %r14d
	jmp	LBB0_14
LBB0_4:
	testq	%r14, %r14
	je	LBB0_6
## %bb.5:
	movq	16(%r12), %rax
	movl	(%rax), %r15d
	movq	_IB_LID_MCAST_START_HO@GOTPCREL(%rip), %rax
	subl	(%rax), %r15d
	jmp	LBB0_7
LBB0_6:
	movl	(%r12), %r15d
LBB0_7:
	xorl	%ebx, %ebx
	movq	_IB_LID_MCAST_START_HO@GOTPCREL(%rip), %r13
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_8 Depth=1
	movq	$0, (%rax,%rbx,8)
	movl	(%r13), %esi
	addl	%ebx, %esi
	movq	%r12, %rdi
	callq	_mcast_mgr_process_mlid
LBB0_12:                                ##   in Loop: Header=BB0_8 Depth=1
	incl	%ebx
	cmpl	%r15d, %ebx
	ja	LBB0_13
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movq	24(%r12), %rax
	movl	%ebx, %ebx
	cmpq	$0, (%rax,%rbx,8)
	jne	LBB0_11
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=1
	testq	%r14, %r14
	je	LBB0_12
## %bb.10:                              ##   in Loop: Header=BB0_8 Depth=1
	movq	16(%r12), %rcx
	movq	8(%rcx), %rcx
	cmpq	$0, (%rcx,%rbx,8)
	jne	LBB0_11
	jmp	LBB0_12
LBB0_13:
	movl	$0, (%r12)
	movq	%r12, %rdi
	callq	_mcast_mgr_set_mftables
	movl	%eax, %r14d
	movq	16(%r12), %rax
	movl	4(%rax), %edi
	callq	_osm_dump_mcast_routes
LBB0_14:
	movl	8(%r12), %edi
	callq	_CL_PLOCK_RELEASE
	movl	4(%r12), %edi
	callq	_OSM_LOG_EXIT
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_OSM_LOG_DEBUG,4,2              ## @OSM_LOG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"No switches in subnet. Nothing to do\n"

	.comm	_OSM_LOG_ERROR,4,2              ## @OSM_LOG_ERROR
L_.str.1:                               ## @.str.1
	.asciz	"ERR 0A09: alloc_mfts failed\n"

	.comm	_IB_LID_MCAST_START_HO,4,2      ## @IB_LID_MCAST_START_HO
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_osm_mcast_mgr_process          ; -- Begin function osm_mcast_mgr_process
	.p2align	2
_osm_mcast_mgr_process:                 ; @osm_mcast_mgr_process
	.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	x20, x1
	mov	x19, x0
	ldr	w0, [x0, #4]
	bl	_OSM_LOG_ENTER
	ldr	w0, [x19, #8]
	bl	_CL_PLOCK_EXCL_ACQUIRE
	ldr	x8, [x19, #16]
	add	x0, x8, #16
	bl	_cl_qmap_count
	cbz	x0, LBB0_3
; %bb.1:
	mov	x0, x19
	bl	_alloc_mfts
	cbz	x0, LBB0_4
; %bb.2:
	ldr	w0, [x19, #4]
Lloh0:
	adrp	x8, _OSM_LOG_ERROR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _OSM_LOG_ERROR@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x2, l_.str.1@PAGE
Lloh4:
	add	x2, x2, l_.str.1@PAGEOFF
	bl	_OSM_LOG
	mov	w20, #-1
	b	LBB0_14
LBB0_3:
	ldr	w0, [x19, #4]
Lloh5:
	adrp	x8, _OSM_LOG_DEBUG@GOTPAGE
Lloh6:
	ldr	x8, [x8, _OSM_LOG_DEBUG@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
Lloh8:
	adrp	x2, l_.str@PAGE
Lloh9:
	add	x2, x2, l_.str@PAGEOFF
	bl	_OSM_LOG
	mov	w20, #0
	b	LBB0_14
LBB0_4:
Lloh10:
	adrp	x21, _IB_LID_MCAST_START_HO@GOTPAGE
Lloh11:
	ldr	x21, [x21, _IB_LID_MCAST_START_HO@GOTPAGEOFF]
	cbz	x20, LBB0_6
; %bb.5:
	ldr	x8, [x19, #16]
	ldr	w8, [x8]
	ldr	w9, [x21]
	sub	w22, w8, w9
	b	LBB0_7
LBB0_6:
	ldr	w22, [x19]
LBB0_7:
	mov	w9, #0
	b	LBB0_10
LBB0_8:                                 ;   in Loop: Header=BB0_10 Depth=1
	str	xzr, [x8, x23, lsl #3]
	ldr	w8, [x21]
	add	w1, w23, w8
	mov	x0, x19
	bl	_mcast_mgr_process_mlid
LBB0_9:                                 ;   in Loop: Header=BB0_10 Depth=1
	add	w9, w23, #1
	cmp	w9, w22
	b.hi	LBB0_13
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #24]
	mov	w23, w9
	ldr	x9, [x8, w9, uxtw #3]
	cbnz	x9, LBB0_8
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=1
	cbz	x20, LBB0_9
; %bb.12:                               ;   in Loop: Header=BB0_10 Depth=1
	ldr	x9, [x19, #16]
	ldr	x9, [x9, #8]
	ldr	x9, [x9, x23, lsl #3]
	cbnz	x9, LBB0_8
	b	LBB0_9
LBB0_13:
	str	wzr, [x19]
	mov	x0, x19
	bl	_mcast_mgr_set_mftables
	mov	x20, x0
	ldr	x8, [x19, #16]
	ldr	w0, [x8, #4]
	bl	_osm_dump_mcast_routes
LBB0_14:
	ldr	w0, [x19, #8]
	bl	_CL_PLOCK_RELEASE
	ldr	w0, [x19, #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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_OSM_LOG_DEBUG,4,2              ; @OSM_LOG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"No switches in subnet. Nothing to do\n"

	.comm	_OSM_LOG_ERROR,4,2              ; @OSM_LOG_ERROR
l_.str.1:                               ; @.str.1
	.asciz	"ERR 0A09: alloc_mfts failed\n"

	.comm	_IB_LID_MCAST_START_HO,4,2      ; @IB_LID_MCAST_START_HO
.subsections_via_symbols
