	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cas_setup_multicast
_cas_setup_multicast:                   ## @cas_setup_multicast
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	8(%rdi), %rax
	movl	(%rax), %eax
	movq	_IFF_PROMISC@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_2
## %bb.1:
	movq	_MAC_RX_CFG_PROMISC_EN@GOTPCREL(%rip), %rax
	jmp	LBB0_6
LBB0_2:
	movq	%rdi, %r14
	movq	_IFF_ALLMULTI@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_4
## %bb.3:
	movq	(%r14), %rbx
	xorl	%edi, %edi
	callq	_REG_MAC_HASH_TABLEN
	addq	%rax, %rbx
	movl	$65535, %edi                    ## imm = 0xFFFF
	movq	%rbx, %rsi
	callq	_writel
	movq	(%r14), %rbx
	movl	$1, %edi
	callq	_REG_MAC_HASH_TABLEN
	addq	%rax, %rbx
	movl	$65535, %edi                    ## imm = 0xFFFF
	movq	%rbx, %rsi
	callq	_writel
	movq	(%r14), %rbx
	movl	$2, %edi
	callq	_REG_MAC_HASH_TABLEN
	addq	%rax, %rbx
	movl	$65535, %edi                    ## imm = 0xFFFF
	movq	%rbx, %rsi
	callq	_writel
	movq	(%r14), %rbx
	movl	$3, %edi
	callq	_REG_MAC_HASH_TABLEN
	addq	%rax, %rbx
	movl	$65535, %edi                    ## imm = 0xFFFF
	movq	%rbx, %rsi
	callq	_writel
	movq	(%r14), %rbx
	movl	$4, %edi
	callq	_REG_MAC_HASH_TABLEN
	addq	%rax, %rbx
	movl	$65535, %edi                    ## imm = 0xFFFF
	movq	%rbx, %rsi
	callq	_writel
	movq	(%r14), %rbx
	movl	$5, %edi
	callq	_REG_MAC_HASH_TABLEN
	addq	%rax, %rbx
	movl	$65535, %edi                    ## imm = 0xFFFF
	movq	%rbx, %rsi
	callq	_writel
	movq	(%r14), %rbx
	movl	$6, %edi
	callq	_REG_MAC_HASH_TABLEN
	addq	%rax, %rbx
	movl	$65535, %edi                    ## imm = 0xFFFF
	movq	%rbx, %rsi
	callq	_writel
	movq	(%r14), %rbx
	movl	$7, %edi
	callq	_REG_MAC_HASH_TABLEN
	addq	%rax, %rbx
	movl	$65535, %edi                    ## imm = 0xFFFF
	movq	%rbx, %rsi
	callq	_writel
	movq	(%r14), %rbx
	movl	$8, %edi
	callq	_REG_MAC_HASH_TABLEN
	addq	%rax, %rbx
	movl	$65535, %edi                    ## imm = 0xFFFF
	movq	%rbx, %rsi
	callq	_writel
	movq	(%r14), %rbx
	movl	$9, %edi
	callq	_REG_MAC_HASH_TABLEN
	addq	%rax, %rbx
	movl	$65535, %edi                    ## imm = 0xFFFF
	movq	%rbx, %rsi
	callq	_writel
	movq	(%r14), %rbx
	movl	$10, %edi
	callq	_REG_MAC_HASH_TABLEN
	addq	%rax, %rbx
	movl	$65535, %edi                    ## imm = 0xFFFF
	movq	%rbx, %rsi
	callq	_writel
	movq	(%r14), %rbx
	movl	$11, %edi
	callq	_REG_MAC_HASH_TABLEN
	addq	%rax, %rbx
	movl	$65535, %edi                    ## imm = 0xFFFF
	movq	%rbx, %rsi
	callq	_writel
	movq	(%r14), %rbx
	movl	$12, %edi
	callq	_REG_MAC_HASH_TABLEN
	addq	%rax, %rbx
	movl	$65535, %edi                    ## imm = 0xFFFF
	movq	%rbx, %rsi
	callq	_writel
	movq	(%r14), %rbx
	movl	$13, %edi
	callq	_REG_MAC_HASH_TABLEN
	addq	%rax, %rbx
	movl	$65535, %edi                    ## imm = 0xFFFF
	movq	%rbx, %rsi
	callq	_writel
	movq	(%r14), %rbx
	movl	$14, %edi
	callq	_REG_MAC_HASH_TABLEN
	addq	%rax, %rbx
	movl	$65535, %edi                    ## imm = 0xFFFF
	movq	%rbx, %rsi
	callq	_writel
	movq	(%r14), %rbx
	movl	$15, %edi
	callq	_REG_MAC_HASH_TABLEN
	addq	%rax, %rbx
	movl	$65535, %edi                    ## imm = 0xFFFF
	movq	%rbx, %rsi
	callq	_writel
	jmp	LBB0_5
LBB0_4:
	movq	%r14, %rdi
	callq	_cas_process_mc_list
LBB0_5:
	movq	_MAC_RX_CFG_HASH_FILTER_EN@GOTPCREL(%rip), %rax
LBB0_6:
	movl	(%rax), %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IFF_PROMISC,4,2                ## @IFF_PROMISC
	.comm	_MAC_RX_CFG_PROMISC_EN,4,2      ## @MAC_RX_CFG_PROMISC_EN
	.comm	_IFF_ALLMULTI,4,2               ## @IFF_ALLMULTI
	.comm	_MAC_RX_CFG_HASH_FILTER_EN,4,2  ## @MAC_RX_CFG_HASH_FILTER_EN
	.no_dead_strip	_cas_setup_multicast
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cas_setup_multicast
_cas_setup_multicast:                   ; @cas_setup_multicast
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	ldr	x8, [x0, #8]
	ldr	w8, [x8]
Lloh0:
	adrp	x9, _IFF_PROMISC@GOTPAGE
Lloh1:
	ldr	x9, [x9, _IFF_PROMISC@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _MAC_RX_CFG_PROMISC_EN@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MAC_RX_CFG_PROMISC_EN@GOTPAGEOFF]
	b	LBB0_6
LBB0_2:
	mov	x19, x0
Lloh5:
	adrp	x9, _IFF_ALLMULTI@GOTPAGE
Lloh6:
	ldr	x9, [x9, _IFF_ALLMULTI@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_4
; %bb.3:
	ldr	x20, [x19]
	mov	w0, #0
	bl	_REG_MAC_HASH_TABLEN
	add	x1, x0, x20
	mov	w0, #65535
	bl	_writel
	ldr	x20, [x19]
	mov	w0, #1
	bl	_REG_MAC_HASH_TABLEN
	add	x1, x0, x20
	mov	w0, #65535
	bl	_writel
	ldr	x20, [x19]
	mov	w0, #2
	bl	_REG_MAC_HASH_TABLEN
	add	x1, x0, x20
	mov	w0, #65535
	bl	_writel
	ldr	x20, [x19]
	mov	w0, #3
	bl	_REG_MAC_HASH_TABLEN
	add	x1, x0, x20
	mov	w0, #65535
	bl	_writel
	ldr	x20, [x19]
	mov	w0, #4
	bl	_REG_MAC_HASH_TABLEN
	add	x1, x0, x20
	mov	w0, #65535
	bl	_writel
	ldr	x20, [x19]
	mov	w0, #5
	bl	_REG_MAC_HASH_TABLEN
	add	x1, x0, x20
	mov	w0, #65535
	bl	_writel
	ldr	x20, [x19]
	mov	w0, #6
	bl	_REG_MAC_HASH_TABLEN
	add	x1, x0, x20
	mov	w0, #65535
	bl	_writel
	ldr	x20, [x19]
	mov	w0, #7
	bl	_REG_MAC_HASH_TABLEN
	add	x1, x0, x20
	mov	w0, #65535
	bl	_writel
	ldr	x20, [x19]
	mov	w0, #8
	bl	_REG_MAC_HASH_TABLEN
	add	x1, x0, x20
	mov	w0, #65535
	bl	_writel
	ldr	x20, [x19]
	mov	w0, #9
	bl	_REG_MAC_HASH_TABLEN
	add	x1, x0, x20
	mov	w0, #65535
	bl	_writel
	ldr	x20, [x19]
	mov	w0, #10
	bl	_REG_MAC_HASH_TABLEN
	add	x1, x0, x20
	mov	w0, #65535
	bl	_writel
	ldr	x20, [x19]
	mov	w0, #11
	bl	_REG_MAC_HASH_TABLEN
	add	x1, x0, x20
	mov	w0, #65535
	bl	_writel
	ldr	x20, [x19]
	mov	w0, #12
	bl	_REG_MAC_HASH_TABLEN
	add	x1, x0, x20
	mov	w0, #65535
	bl	_writel
	ldr	x20, [x19]
	mov	w0, #13
	bl	_REG_MAC_HASH_TABLEN
	add	x1, x0, x20
	mov	w0, #65535
	bl	_writel
	ldr	x20, [x19]
	mov	w0, #14
	bl	_REG_MAC_HASH_TABLEN
	add	x1, x0, x20
	mov	w0, #65535
	bl	_writel
	ldr	x19, [x19]
	mov	w0, #15
	bl	_REG_MAC_HASH_TABLEN
	add	x1, x0, x19
	mov	w0, #65535
	bl	_writel
	b	LBB0_5
LBB0_4:
	mov	x0, x19
	bl	_cas_process_mc_list
LBB0_5:
Lloh8:
	adrp	x8, _MAC_RX_CFG_HASH_FILTER_EN@GOTPAGE
Lloh9:
	ldr	x8, [x8, _MAC_RX_CFG_HASH_FILTER_EN@GOTPAGEOFF]
LBB0_6:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_IFF_PROMISC,4,2                ; @IFF_PROMISC
	.comm	_MAC_RX_CFG_PROMISC_EN,4,2      ; @MAC_RX_CFG_PROMISC_EN
	.comm	_IFF_ALLMULTI,4,2               ; @IFF_ALLMULTI
	.comm	_MAC_RX_CFG_HASH_FILTER_EN,4,2  ; @MAC_RX_CFG_HASH_FILTER_EN
	.no_dead_strip	_cas_setup_multicast
.subsections_via_symbols
