	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cas_set_multicast
_cas_set_multicast:                     ## @cas_set_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	%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
	callq	_netdev_priv
	cmpl	$0, 16(%rax)
	je	LBB0_12
## %bb.1:
	movq	%rax, %rbx
	movq	_STOP_TRIES@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	movq	%rbx, %rdi
	addq	$4, %rdi
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	callq	_spin_lock_irqsave
	movq	_REG_MAC_RX_CFG@GOTPCREL(%rip), %r12
	movq	(%r12), %rdi
	addq	8(%rbx), %rdi
	callq	_readl
	movl	%eax, %r15d
	movq	_MAC_RX_CFG_EN@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	notl	%edi
	andl	%eax, %edi
	movq	(%r12), %rsi
	addq	8(%rbx), %rsi
	callq	_writel
	movq	(%r12), %rdi
	addq	8(%rbx), %rdi
	callq	_readl
	movl	(%r14), %edi
	testl	%eax, %edi
	je	LBB0_6
## %bb.2:
	testl	%r13d, %r13d
	je	LBB0_6
## %bb.3:
	decl	%r13d
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movl	$10, %edi
	callq	_udelay
	movq	(%r12), %rdi
	addq	8(%rbx), %rdi
	callq	_readl
	movl	(%r14), %edi
	subl	$1, %r13d
	setb	%cl
	testl	%eax, %edi
	je	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	testb	%cl, %cl
	je	LBB0_4
LBB0_6:
	movq	_MAC_RX_CFG_PROMISC_EN@GOTPCREL(%rip), %rax
	movq	_MAC_RX_CFG_HASH_FILTER_EN@GOTPCREL(%rip), %r13
	movl	(%r13), %ecx
	orl	(%rax), %ecx
	movq	_STOP_TRIES@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	notl	%ecx
	andl	%ecx, %r15d
	notl	%edi
	andl	%r15d, %edi
	movq	(%r12), %rsi
	addq	8(%rbx), %rsi
	callq	_writel
	movq	(%r12), %rdi
	addq	8(%rbx), %rdi
	callq	_readl
	testl	%eax, (%r13)
	je	LBB0_11
## %bb.7:
	testl	%r14d, %r14d
	je	LBB0_11
## %bb.8:
	decl	%r14d
	.p2align	4, 0x90
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movl	$10, %edi
	callq	_udelay
	movq	(%r12), %rdi
	addq	8(%rbx), %rdi
	callq	_readl
	subl	$1, %r14d
	setb	%cl
	testl	%eax, (%r13)
	je	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_9 Depth=1
	testb	%cl, %cl
	je	LBB0_9
LBB0_11:
	movq	%rbx, %rdi
	callq	_cas_setup_multicast
	movl	%eax, (%rbx)
	orl	%eax, %r15d
	movq	(%r12), %rsi
	addq	8(%rbx), %rsi
	movl	%r15d, %edi
	callq	_writel
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_spin_unlock_irqrestore         ## TAILCALL
LBB0_12:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_STOP_TRIES,4,2                 ## @STOP_TRIES
	.comm	_REG_MAC_RX_CFG,8,3             ## @REG_MAC_RX_CFG
	.comm	_MAC_RX_CFG_EN,4,2              ## @MAC_RX_CFG_EN
	.comm	_MAC_RX_CFG_PROMISC_EN,4,2      ## @MAC_RX_CFG_PROMISC_EN
	.comm	_MAC_RX_CFG_HASH_FILTER_EN,4,2  ## @MAC_RX_CFG_HASH_FILTER_EN
	.no_dead_strip	_cas_set_multicast
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cas_set_multicast
_cas_set_multicast:                     ; @cas_set_multicast
	.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
	bl	_netdev_priv
	ldr	w8, [x0, #16]
	cbz	w8, LBB0_8
; %bb.1:
	mov	x19, x0
Lloh0:
	adrp	x23, _STOP_TRIES@GOTPAGE
Lloh1:
	ldr	x23, [x23, _STOP_TRIES@GOTPAGEOFF]
	ldr	w25, [x23]
	add	x20, x0, #4
	mov	x0, x20
	bl	_spin_lock_irqsave
	ldr	x8, [x19, #8]
Lloh2:
	adrp	x22, _REG_MAC_RX_CFG@GOTPAGE
Lloh3:
	ldr	x22, [x22, _REG_MAC_RX_CFG@GOTPAGEOFF]
	ldr	x9, [x22]
	add	x0, x9, x8
	bl	_readl
	mov	x21, x0
Lloh4:
	adrp	x24, _MAC_RX_CFG_EN@GOTPAGE
Lloh5:
	ldr	x24, [x24, _MAC_RX_CFG_EN@GOTPAGEOFF]
	ldr	w8, [x24]
	bic	w0, w0, w8
	ldr	x8, [x19, #8]
	ldr	x9, [x22]
	add	x1, x9, x8
	bl	_writel
	ldr	x8, [x19, #8]
	ldr	x9, [x22]
	add	x0, x9, x8
	bl	_readl
	ldr	w8, [x24]
	and	w9, w8, w0
	cmp	w9, #0
	ccmp	w25, #0, #4, ne
	b.eq	LBB0_4
; %bb.2:
	sub	w25, w25, #1
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	mov	w0, #10
	bl	_udelay
	ldr	x8, [x19, #8]
	ldr	x9, [x22]
	add	x0, x9, x8
	bl	_readl
	ldr	w8, [x24]
	and	w9, w8, w0
	cmp	w9, #0
	ccmp	w25, #0, #4, ne
	sub	w25, w25, #1
	b.ne	LBB0_3
LBB0_4:
	ldr	w24, [x23]
Lloh6:
	adrp	x9, _MAC_RX_CFG_PROMISC_EN@GOTPAGE
Lloh7:
	ldr	x9, [x9, _MAC_RX_CFG_PROMISC_EN@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
Lloh9:
	adrp	x23, _MAC_RX_CFG_HASH_FILTER_EN@GOTPAGE
Lloh10:
	ldr	x23, [x23, _MAC_RX_CFG_HASH_FILTER_EN@GOTPAGEOFF]
	ldr	w10, [x23]
	orr	w9, w10, w9
	bic	w21, w21, w9
	bic	w0, w21, w8
	ldr	x8, [x19, #8]
	ldr	x9, [x22]
	add	x1, x9, x8
	bl	_writel
	ldr	x8, [x19, #8]
	ldr	x9, [x22]
	add	x0, x9, x8
	bl	_readl
	ldr	w8, [x23]
	and	w8, w8, w0
	cmp	w8, #0
	ccmp	w24, #0, #4, ne
	b.eq	LBB0_7
; %bb.5:
	sub	w24, w24, #1
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	mov	w0, #10
	bl	_udelay
	ldr	x8, [x19, #8]
	ldr	x9, [x22]
	add	x0, x9, x8
	bl	_readl
	ldr	w8, [x23]
	and	w8, w8, w0
	cmp	w8, #0
	ccmp	w24, #0, #4, ne
	sub	w24, w24, #1
	b.ne	LBB0_6
LBB0_7:
	mov	x0, x19
	bl	_cas_setup_multicast
	str	w0, [x19]
	orr	w0, w0, w21
	ldr	x8, [x19, #8]
	ldr	x9, [x22]
	add	x1, x9, x8
	bl	_writel
	mov	x0, x20
	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
	b	_spin_unlock_irqrestore
LBB0_8:
	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
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_STOP_TRIES,4,2                 ; @STOP_TRIES
	.comm	_REG_MAC_RX_CFG,8,3             ; @REG_MAC_RX_CFG
	.comm	_MAC_RX_CFG_EN,4,2              ; @MAC_RX_CFG_EN
	.comm	_MAC_RX_CFG_PROMISC_EN,4,2      ; @MAC_RX_CFG_PROMISC_EN
	.comm	_MAC_RX_CFG_HASH_FILTER_EN,4,2  ; @MAC_RX_CFG_HASH_FILTER_EN
	.no_dead_strip	_cas_set_multicast
.subsections_via_symbols
