	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_osm_mgrp_cleanup               ## -- Begin function osm_mgrp_cleanup
	.p2align	4, 0x90
_osm_mgrp_cleanup:                      ## @osm_mgrp_cleanup
	.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
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	cmpq	$0, 32(%rsi)
	jne	LBB0_11
## %bb.1:
	movq	%rsi, %r15
	movq	%rdi, %r14
	leaq	28(%rsi), %rbx
	movq	%rbx, %rdi
	callq	_cl_qmap_count
	testq	%rax, %rax
	je	LBB0_4
## %bb.2:
	leaq	-40(%rbp), %r12
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rdi
	callq	_cl_qmap_head
	movq	%rax, -40(%rbp)
	movq	%rbx, %rdi
	movq	%rax, %rsi
	callq	_cl_qmap_remove_item
	movq	%r12, %rdi
	callq	_osm_mcm_alias_guid_delete
	movq	%rbx, %rdi
	callq	_cl_qmap_count
	testq	%rax, %rax
	jne	LBB0_3
LBB0_4:
	leaq	24(%r15), %r12
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r12, %rdi
	callq	_cl_qmap_count
	testq	%rax, %rax
	je	LBB0_7
## %bb.5:                               ##   in Loop: Header=BB0_6 Depth=1
	movq	%r12, %rdi
	callq	_cl_qmap_head
	movq	%rax, %rbx
	leaq	16(%rax), %rsi
	movq	%r12, %rdi
	callq	_cl_qmap_remove_item
	movq	8(%rbx), %rdi
	movq	%rbx, %rsi
	callq	_cl_qlist_remove_item
	movq	%rbx, %rdi
	callq	_osm_mcm_port_delete
	jmp	LBB0_6
LBB0_7:
	cmpq	$0, 16(%r15)
	jne	LBB0_11
## %bb.8:
	leaq	16(%r14), %rdi
	leaq	8(%r15), %rsi
	callq	_cl_fmap_remove_item
	movl	(%r15), %esi
	movq	%r14, %rdi
	callq	_osm_get_mbox_by_mlid
	movq	%rax, %rbx
	leaq	4(%r15), %rsi
	movq	%rax, %rdi
	callq	_cl_qlist_remove_item
	movq	%rbx, %rdi
	callq	_cl_is_qlist_empty
	testq	%rax, %rax
	je	LBB0_10
## %bb.9:
	movq	8(%r14), %r12
	movl	(%r15), %edi
	callq	_cl_ntoh16
	movq	_IB_LID_MCAST_START_HO@GOTPCREL(%rip), %rcx
	subq	(%rcx), %rax
	movq	$0, (%r12,%rax,8)
	movq	%rbx, %rdi
	callq	_mgrp_box_delete
LBB0_10:
	movq	%r15, %rdi
	callq	_free
	movq	_TRUE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	(%r14), %rcx
	movl	%eax, (%rcx)
LBB0_11:
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IB_LID_MCAST_START_HO,8,3      ## @IB_LID_MCAST_START_HO
	.comm	_TRUE,4,2                       ## @TRUE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_osm_mgrp_cleanup               ; -- Begin function osm_mgrp_cleanup
	.p2align	2
_osm_mgrp_cleanup:                      ; @osm_mgrp_cleanup
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	ldr	x8, [x1, #32]
	cbnz	x8, LBB0_11
; %bb.1:
	mov	x20, x1
	mov	x19, x0
	add	x21, x1, #28
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x21
	bl	_cl_qmap_count
	cbz	x0, LBB0_4
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x0, x21
	bl	_cl_qmap_head
	mov	x1, x0
	str	x0, [sp, #8]
	mov	x0, x21
	bl	_cl_qmap_remove_item
	add	x0, sp, #8
	bl	_osm_mcm_alias_guid_delete
	b	LBB0_2
LBB0_4:
	add	x21, x20, #24
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x21
	bl	_cl_qmap_count
	cbz	x0, LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x21
	bl	_cl_qmap_head
	mov	x22, x0
	add	x1, x0, #16
	mov	x0, x21
	bl	_cl_qmap_remove_item
	ldr	x0, [x22, #8]
	mov	x1, x22
	bl	_cl_qlist_remove_item
	mov	x0, x22
	bl	_osm_mcm_port_delete
	b	LBB0_5
LBB0_7:
	ldr	x8, [x20, #16]
	cbnz	x8, LBB0_11
; %bb.8:
	add	x0, x19, #16
	add	x1, x20, #8
	bl	_cl_fmap_remove_item
	mov	x22, x20
	ldr	w1, [x22], #4
	mov	x0, x19
	bl	_osm_get_mbox_by_mlid
	mov	x21, x0
	mov	x1, x22
	bl	_cl_qlist_remove_item
	mov	x0, x21
	bl	_cl_is_qlist_empty
	cbz	x0, LBB0_10
; %bb.9:
	ldr	x22, [x19, #8]
	ldr	w0, [x20]
	bl	_cl_ntoh16
Lloh0:
	adrp	x8, _IB_LID_MCAST_START_HO@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IB_LID_MCAST_START_HO@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	sub	x8, x0, x8
	str	xzr, [x22, x8, lsl #3]
	mov	x0, x21
	bl	_mgrp_box_delete
LBB0_10:
	mov	x0, x20
	bl	_free
Lloh3:
	adrp	x8, _TRUE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _TRUE@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	ldr	x9, [x19]
	str	w8, [x9]
LBB0_11:
	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
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_IB_LID_MCAST_START_HO,8,3      ; @IB_LID_MCAST_START_HO
	.comm	_TRUE,4,2                       ; @TRUE
.subsections_via_symbols
