	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function alloc_mfts
_alloc_mfts:                            ## @alloc_mfts
	.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, %r15
	movq	(%rdi), %rdi
	movl	(%rdi), %ebx
	movq	_IB_LID_MCAST_START_HO@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %ebx
	js	LBB0_8
## %bb.1:
	movq	8(%rdi), %rax
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	%ebx, %ecx
	cmpq	$0, (%rax,%rcx,8)
	jne	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	leal	-1(%rbx), %ecx
	testl	%ebx, %ebx
	movl	%ecx, %ebx
	jg	LBB0_2
	jmp	LBB0_8
LBB0_4:
	addq	$4, %rdi
	callq	_cl_qmap_head
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rax, %r12
	movq	(%r15), %rdi
	addq	$4, %rdi
	callq	_cl_qmap_end
	cmpq	%rax, %r12
	je	LBB0_8
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	%r12, %rdi
	movl	%ebx, %esi
	callq	_osm_mcast_tbl_realloc
	testq	%rax, %rax
	jne	LBB0_7
## %bb.9:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	%r12, %rdi
	callq	_cl_qmap_next
	jmp	LBB0_5
LBB0_7:
	movl	$-1, %r14d
LBB0_8:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IB_LID_MCAST_START_HO,4,2      ## @IB_LID_MCAST_START_HO
	.no_dead_strip	_alloc_mfts
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function alloc_mfts
_alloc_mfts:                            ; @alloc_mfts
	.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	x8, [x0]
	ldr	w9, [x8]
Lloh0:
	adrp	x10, _IB_LID_MCAST_START_HO@GOTPAGE
Lloh1:
	ldr	x10, [x10, _IB_LID_MCAST_START_HO@GOTPAGEOFF]
Lloh2:
	ldr	w10, [x10]
	subs	w20, w9, w10
	b.mi	LBB0_4
; %bb.1:
	mov	x19, x0
	ldr	x9, [x8, #8]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x10, [x9, w20, uxtw #3]
	cbnz	x10, LBB0_6
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	sub	w10, w20, #1
	cmp	w20, #0
	mov	x20, x10
	b.gt	LBB0_2
LBB0_4:
	mov	w0, #0
LBB0_5:
	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
LBB0_6:
	add	x0, x8, #4
	bl	_cl_qmap_head
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	mov	x21, x0
	ldr	x8, [x19]
	add	x0, x8, #4
	bl	_cl_qmap_end
	cmp	x21, x0
	b.eq	LBB0_4
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	mov	x0, x21
	mov	x1, x20
	bl	_osm_mcast_tbl_realloc
	cbnz	x0, LBB0_10
; %bb.9:                                ;   in Loop: Header=BB0_7 Depth=1
	mov	x0, x21
	bl	_cl_qmap_next
	b	LBB0_7
LBB0_10:
	mov	w0, #-1
	b	LBB0_5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_IB_LID_MCAST_START_HO,4,2      ; @IB_LID_MCAST_START_HO
	.no_dead_strip	_alloc_mfts
.subsections_via_symbols
