	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nix_setup_mcast
_nix_setup_mcast:                       ## @nix_setup_mcast
	.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
	movl	%edx, %r15d
	movq	%rsi, %r14
	movq	%rdi, %r13
	movq	8(%rdi), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	_NIX_AF_CONST3@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	%r15d, %esi
	callq	_rvu_read64
	shrl	$16, %eax
	andb	$15, %al
	movl	$1, %ebx
	movl	%eax, %ecx
	shll	%cl, %ebx
	movl	(%r13), %edi
	leaq	16(%r14), %rsi
	movq	_MC_TBL_SIZE@GOTPCREL(%rip), %r12
	movb	(%r12), %cl
	movl	$256, %edx                      ## imm = 0x100
	shlq	%cl, %rdx
	movl	%ebx, %ecx
	callq	_qmem_alloc
	testl	%eax, %eax
	jne	LBB0_2
## %bb.1:
	movq	_NIX_AF_RX_MCAST_BASE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	16(%r14), %rax
	movl	(%rax), %ecx
	movq	%r13, %rdi
	movl	%r15d, %esi
	callq	_rvu_write64
	movq	_NIX_AF_RX_MCAST_CFG@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movl	$36, %edi
	callq	_BIT_ULL
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movl	(%rcx), %ecx
	shll	$4, %ecx
	orl	%eax, %ecx
	orl	(%r12), %ecx
	movq	%r13, %rdi
	movl	%r15d, %esi
	movl	%ebx, %edx
	callq	_rvu_write64
	movq	_NIX_AF_MC_MIRROR_CONST@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r13, %rdi
	movl	%r15d, %esi
	callq	_rvu_read64
	movzwl	%ax, %eax
	movl	(%r13), %edi
	leaq	8(%r14), %rsi
	movq	_MC_BUF_CNT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	movl	$8, %edx
	shlq	%cl, %rdx
	movl	%eax, %ecx
	callq	_qmem_alloc
	testl	%eax, %eax
	je	LBB0_3
LBB0_2:
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	movq	_NIX_AF_RX_MCAST_BUF_BASE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	8(%r14), %rax
	movl	(%rax), %ecx
	movq	%r13, %rdi
	movl	%r15d, %esi
	callq	_rvu_write64
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	addq	$4, %rdi
	callq	_rvu_alloc_rsrc
	movl	%eax, (%r14)
	movq	_NIX_AF_RX_MCAST_BUF_CFG@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movl	$63, %edi
	callq	_BIT_ULL
	movl	%eax, %ebx
	movl	(%r14), %r12d
	shll	$24, %r12d
	movl	$20, %edi
	callq	_BIT_ULL
	orl	%eax, %ebx
	orl	%r12d, %ebx
	movq	_MC_BUF_CNT@GOTPCREL(%rip), %rax
	orl	(%rax), %ebx
	movq	%r13, %rdi
	movl	%r15d, %esi
	movl	-48(%rbp), %edx                 ## 4-byte Reload
	movl	%ebx, %ecx
	callq	_rvu_write64
	leaq	4(%r14), %rdi
	callq	_mutex_init
	movq	%r13, %rdi
	movq	%r14, %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_nix_setup_bcast_tables         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_NIX_AF_CONST3,4,2              ## @NIX_AF_CONST3
	.comm	_MC_TBL_SIZE,8,3                ## @MC_TBL_SIZE
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_NIX_AF_RX_MCAST_BASE,4,2       ## @NIX_AF_RX_MCAST_BASE
	.comm	_NIX_AF_RX_MCAST_CFG,4,2        ## @NIX_AF_RX_MCAST_CFG
	.comm	_NIX_AF_MC_MIRROR_CONST,4,2     ## @NIX_AF_MC_MIRROR_CONST
	.comm	_MC_BUF_CNT,8,3                 ## @MC_BUF_CNT
	.comm	_NIX_AF_RX_MCAST_BUF_BASE,4,2   ## @NIX_AF_RX_MCAST_BUF_BASE
	.comm	_NIX_AF_RX_MCAST_BUF_CFG,4,2    ## @NIX_AF_RX_MCAST_BUF_CFG
	.no_dead_strip	_nix_setup_mcast
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nix_setup_mcast
_nix_setup_mcast:                       ; @nix_setup_mcast
	.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	x21, x2
	mov	x19, x1
	mov	x20, x0
	ldr	x23, [x0, #8]
Lloh0:
	adrp	x8, _NIX_AF_CONST3@GOTPAGE
Lloh1:
	ldr	x8, [x8, _NIX_AF_CONST3@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	x1, x21
	bl	_rvu_read64
	ubfx	w8, w0, #16, #4
	mov	w9, #1
	lsl	w3, w9, w8
	ldr	w0, [x20]
	add	x1, x19, #16
Lloh3:
	adrp	x24, _MC_TBL_SIZE@GOTPAGE
Lloh4:
	ldr	x24, [x24, _MC_TBL_SIZE@GOTPAGEOFF]
	ldr	x8, [x24]
	mov	w9, #256
	lsl	x2, x9, x8
	bl	_qmem_alloc
	cbnz	w0, LBB0_2
; %bb.1:
Lloh5:
	adrp	x8, _NIX_AF_RX_MCAST_BASE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _NIX_AF_RX_MCAST_BASE@GOTPAGEOFF]
Lloh7:
	ldr	w2, [x8]
	ldr	x8, [x19, #16]
	ldr	w3, [x8]
	mov	x0, x20
	mov	x1, x21
	bl	_rvu_write64
Lloh8:
	adrp	x8, _NIX_AF_RX_MCAST_CFG@GOTPAGE
Lloh9:
	ldr	x8, [x8, _NIX_AF_RX_MCAST_CFG@GOTPAGEOFF]
Lloh10:
	ldr	w22, [x8]
	mov	w0, #36
	bl	_BIT_ULL
	ldr	w8, [x23]
	orr	w8, w0, w8, lsl #4
	ldr	w9, [x24]
	orr	w3, w8, w9
	mov	x0, x20
	mov	x1, x21
	mov	x2, x22
	bl	_rvu_write64
Lloh11:
	adrp	x8, _NIX_AF_MC_MIRROR_CONST@GOTPAGE
Lloh12:
	ldr	x8, [x8, _NIX_AF_MC_MIRROR_CONST@GOTPAGEOFF]
Lloh13:
	ldr	w2, [x8]
	mov	x0, x20
	mov	x1, x21
	bl	_rvu_read64
	and	w3, w0, #0xffff
	ldr	w0, [x20]
	add	x1, x19, #8
Lloh14:
	adrp	x24, _MC_BUF_CNT@GOTPAGE
Lloh15:
	ldr	x24, [x24, _MC_BUF_CNT@GOTPAGEOFF]
	ldr	x8, [x24]
	mov	w9, #8
	lsl	x2, x9, x8
	bl	_qmem_alloc
	cbz	w0, LBB0_3
LBB0_2:
Lloh16:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh17:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
	neg	w0, w8
	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
LBB0_3:
Lloh19:
	adrp	x8, _NIX_AF_RX_MCAST_BUF_BASE@GOTPAGE
Lloh20:
	ldr	x8, [x8, _NIX_AF_RX_MCAST_BUF_BASE@GOTPAGEOFF]
Lloh21:
	ldr	w2, [x8]
	ldr	x8, [x19, #8]
	ldr	w3, [x8]
	mov	x0, x20
	mov	x1, x21
	bl	_rvu_write64
	add	x0, x23, #4
	bl	_rvu_alloc_rsrc
	str	w0, [x19]
Lloh22:
	adrp	x8, _NIX_AF_RX_MCAST_BUF_CFG@GOTPAGE
Lloh23:
	ldr	x8, [x8, _NIX_AF_RX_MCAST_BUF_CFG@GOTPAGEOFF]
Lloh24:
	ldr	w22, [x8]
	mov	w0, #63
	bl	_BIT_ULL
	ldr	w8, [x19]
	orr	w23, w0, w8, lsl #24
	mov	w0, #20
	bl	_BIT_ULL
	orr	w8, w23, w0
	ldr	w9, [x24]
	orr	w3, w8, w9
	mov	x0, x20
	mov	x1, x21
	mov	x2, x22
	bl	_rvu_write64
	add	x0, x19, #4
	bl	_mutex_init
	mov	x0, x20
	mov	x1, x19
	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
	b	_nix_setup_bcast_tables
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_NIX_AF_CONST3,4,2              ; @NIX_AF_CONST3
	.comm	_MC_TBL_SIZE,8,3                ; @MC_TBL_SIZE
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_NIX_AF_RX_MCAST_BASE,4,2       ; @NIX_AF_RX_MCAST_BASE
	.comm	_NIX_AF_RX_MCAST_CFG,4,2        ; @NIX_AF_RX_MCAST_CFG
	.comm	_NIX_AF_MC_MIRROR_CONST,4,2     ; @NIX_AF_MC_MIRROR_CONST
	.comm	_MC_BUF_CNT,8,3                 ; @MC_BUF_CNT
	.comm	_NIX_AF_RX_MCAST_BUF_BASE,4,2   ; @NIX_AF_RX_MCAST_BUF_BASE
	.comm	_NIX_AF_RX_MCAST_BUF_CFG,4,2    ; @NIX_AF_RX_MCAST_BUF_CFG
	.no_dead_strip	_nix_setup_mcast
.subsections_via_symbols
