	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function mcast_mgr_set_mftables
LCPI0_0:
	.space	16
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_mcast_mgr_set_mftables:                ## @mcast_mgr_set_mftables
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	movq	(%rdi), %r13
	movq	%r13, %rdi
	callq	_cl_qmap_head
	movq	%rax, %rbx
	movq	%r13, %rdi
	callq	_cl_qmap_end
	xorl	%r15d, %r15d
	cmpq	%rax, %rbx
	je	LBB0_15
## %bb.1:
	movq	$-1, -48(%rbp)                  ## 8-byte Folded Spill
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	%rbx, %rsi
	callq	_mcast_mgr_set_mfttop
	addq	$16, %rbx
	movq	%rbx, %rdi
	callq	_cl_qmap_next
	movq	%rax, %rbx
	movq	%r13, %rdi
	callq	_cl_qmap_end
	cmpq	%rax, %rbx
	je	LBB0_5
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	xorps	%xmm0, %xmm0
	movups	%xmm0, (%rbx)
	movq	%rbx, %rdi
	callq	_osm_switch_get_mcast_tbl_ptr
	movq	%rax, %r12
	movq	%rax, %rdi
	callq	_osm_mcast_tbl_get_max_block_in_use
	cmpq	-48(%rbp), %rax                 ## 8-byte Folded Reload
	jle	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%r12, %rdi
	callq	_osm_mcast_tbl_get_max_block_in_use
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	jmp	LBB0_4
LBB0_5:
	cmpq	$0, -48(%rbp)                   ## 8-byte Folded Reload
	js	LBB0_15
## %bb.6:
	xorl	%ebx, %ebx
	xorl	%r15d, %r15d
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_8 Depth=1
	testl	%r14d, %r14d
	je	LBB0_14
LBB0_8:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_10 Depth 2
	movq	%r13, %rdi
	callq	_cl_qmap_head
	movq	%rax, %r12
	movq	%r13, %rdi
	callq	_cl_qmap_end
	cmpq	%rax, %r12
	je	LBB0_14
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=1
	xorl	%r14d, %r14d
	jmp	LBB0_10
	.p2align	4, 0x90
LBB0_13:                                ##   in Loop: Header=BB0_10 Depth=2
	addq	$16, %r12
	movq	%r12, %rdi
	callq	_cl_qmap_next
	movq	%rax, %r12
	movq	%r13, %rdi
	callq	_cl_qmap_end
	cmpq	%rax, %r12
	je	LBB0_7
LBB0_10:                                ##   Parent Loop BB0_8 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	cmpq	%rbx, (%r12)
	jne	LBB0_13
## %bb.11:                              ##   in Loop: Header=BB0_10 Depth=2
	movq	8(%r12), %rcx
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	%r12, %rsi
	movq	%rbx, %rdx
	callq	_mcast_mgr_set_mft_block
	negq	%rax
	movl	$0, %eax
	sbbl	%eax, %eax
	orl	%eax, %r15d
	movq	%r12, %rdi
	callq	_osm_switch_get_mcast_tbl_ptr
	movq	8(%r12), %rcx
	leaq	1(%rcx), %rdx
	movq	%rdx, 8(%r12)
	movl	$1, %r14d
	cmpq	(%rax), %rcx
	jl	LBB0_13
## %bb.12:                              ##   in Loop: Header=BB0_10 Depth=2
	movq	$0, 8(%r12)
	incq	(%r12)
	jmp	LBB0_13
LBB0_14:                                ##   in Loop: Header=BB0_8 Depth=1
	leaq	1(%rbx), %rax
	cmpq	-48(%rbp), %rbx                 ## 8-byte Folded Reload
	movq	%rax, %rbx
	jne	LBB0_8
LBB0_15:
	movl	%r15d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_mcast_mgr_set_mftables
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mcast_mgr_set_mftables
_mcast_mgr_set_mftables:                ; @mcast_mgr_set_mftables
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x0
	ldr	x20, [x0]
	mov	x0, x20
	bl	_cl_qmap_head
	mov	x22, x0
	mov	x0, x20
	bl	_cl_qmap_end
	cmp	x22, x0
	b.eq	LBB0_16
; %bb.1:
	mov	x21, #-1
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x19
	mov	x1, x22
	bl	_mcast_mgr_set_mfttop
	add	x0, x22, #16
	bl	_cl_qmap_next
	mov	x22, x0
	mov	x0, x20
	bl	_cl_qmap_end
	cmp	x22, x0
	b.eq	LBB0_5
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	stp	xzr, xzr, [x22]
	mov	x0, x22
	bl	_osm_switch_get_mcast_tbl_ptr
	mov	x23, x0
	bl	_osm_mcast_tbl_get_max_block_in_use
	cmp	x0, x21
	b.le	LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x23
	bl	_osm_mcast_tbl_get_max_block_in_use
	mov	x21, x0
	b	LBB0_2
LBB0_5:
	tbnz	x21, #63, LBB0_16
; %bb.6:
	mov	x23, #0
	mov	w22, #0
	b	LBB0_8
LBB0_7:                                 ;   in Loop: Header=BB0_8 Depth=1
	cbz	w25, LBB0_15
LBB0_8:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_12 Depth 2
	mov	x0, x20
	bl	_cl_qmap_head
	mov	x24, x0
	mov	x0, x20
	bl	_cl_qmap_end
	cmp	x24, x0
	b.eq	LBB0_15
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	mov	w25, #0
	b	LBB0_12
LBB0_10:                                ;   in Loop: Header=BB0_12 Depth=2
	mov	w25, #1
LBB0_11:                                ;   in Loop: Header=BB0_12 Depth=2
	add	x0, x24, #16
	bl	_cl_qmap_next
	mov	x24, x0
	mov	x0, x20
	bl	_cl_qmap_end
	cmp	x24, x0
	b.eq	LBB0_7
LBB0_12:                                ;   Parent Loop BB0_8 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x8, [x24]
	cmp	x8, x23
	b.ne	LBB0_11
; %bb.13:                               ;   in Loop: Header=BB0_12 Depth=2
	ldr	x3, [x24, #8]
	mov	x0, x19
	mov	x1, x24
	mov	x2, x23
	bl	_mcast_mgr_set_mft_block
	cmp	x0, #0
	csinv	w22, w22, wzr, eq
	mov	x0, x24
	bl	_osm_switch_get_mcast_tbl_ptr
	ldr	x8, [x24, #8]
	add	x9, x8, #1
	str	x9, [x24, #8]
	ldr	x9, [x0]
	cmp	x8, x9
	b.lt	LBB0_10
; %bb.14:                               ;   in Loop: Header=BB0_12 Depth=2
	ldr	x8, [x24]
	add	x8, x8, #1
	stp	x8, xzr, [x24]
	b	LBB0_10
LBB0_15:                                ;   in Loop: Header=BB0_8 Depth=1
	add	x8, x23, #1
	cmp	x23, x21
	mov	x23, x8
	b.ne	LBB0_8
	b	LBB0_17
LBB0_16:
	mov	w22, #0
LBB0_17:
	mov	x0, x22
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_mcast_mgr_set_mftables
.subsections_via_symbols
