	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mcs7830_set_multicast
_mcs7830_set_multicast:                 ## @mcs7830_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
	movq	%rdi, %r14
	callq	_netdev_priv
	movq	%rax, %r15
	movq	_HIF_REG_CONFIG_TXENABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r15)
	movq	_HIF_REG_CONFIG_ALLMULTICAST@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movl	%eax, (%r15)
	movl	(%r14), %edx
	movq	_IFF_PROMISC@GOTPCREL(%rip), %rsi
	testl	%edx, (%rsi)
	je	LBB0_2
## %bb.1:
	movq	_HIF_REG_CONFIG_PROMISCIOUS@GOTPCREL(%rip), %rcx
	jmp	LBB0_4
LBB0_2:
	movq	_IFF_ALLMULTI@GOTPCREL(%rip), %rsi
	testl	%edx, (%rsi)
	jne	LBB0_4
## %bb.3:
	movq	8(%r14), %rdx
	movq	_MCS7830_MAX_MCAST@GOTPCREL(%rip), %rsi
	cmpq	(%rsi), %rdx
	jle	LBB0_5
LBB0_4:
	orl	(%rcx), %eax
	movl	%eax, (%r15)
LBB0_10:
	movq	_HIF_REG_CONFIG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	movl	$1, %edx
	movq	%r15, %rcx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_mcs7830_set_reg_async          ## TAILCALL
LBB0_5:
	testq	%rdx, %rdx
	je	LBB0_10
## %bb.6:
	movq	16(%r14), %r12
	movq	8(%r15), %rdi
	xorl	%esi, %esi
	movl	$8, %edx
	callq	_memset
	cmpq	$0, 8(%r14)
	jle	LBB0_11
## %bb.7:
	xorl	%ebx, %ebx
	movq	_ETH_ALEN@GOTPCREL(%rip), %r13
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r13), %edi
	movl	8(%r12), %esi
	callq	_ether_crc
	movl	%eax, %ecx
	shrl	$26, %ecx
	andb	$7, %cl
	movl	$1, %edx
                                        ## kill: def $cl killed $cl killed $ecx
	shll	%cl, %edx
	movq	8(%r15), %rcx
	sarl	$29, %eax
	cltq
	orl	%edx, (%rcx,%rax,4)
	movq	(%r12), %r12
	incq	%rbx
	cmpq	%rbx, 8(%r14)
	jg	LBB0_8
	jmp	LBB0_9
LBB0_11:
	movq	8(%r15), %rcx
LBB0_9:
	movq	_HIF_REG_MULTICAST_HASH@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	movl	$8, %edx
	callq	_mcs7830_set_reg_async
	jmp	LBB0_10
	.cfi_endproc
                                        ## -- End function
	.comm	_HIF_REG_CONFIG_TXENABLE,4,2    ## @HIF_REG_CONFIG_TXENABLE
	.comm	_HIF_REG_CONFIG_ALLMULTICAST,4,2 ## @HIF_REG_CONFIG_ALLMULTICAST
	.comm	_IFF_PROMISC,4,2                ## @IFF_PROMISC
	.comm	_HIF_REG_CONFIG_PROMISCIOUS,4,2 ## @HIF_REG_CONFIG_PROMISCIOUS
	.comm	_IFF_ALLMULTI,4,2               ## @IFF_ALLMULTI
	.comm	_MCS7830_MAX_MCAST,8,3          ## @MCS7830_MAX_MCAST
	.comm	_ETH_ALEN,4,2                   ## @ETH_ALEN
	.comm	_HIF_REG_MULTICAST_HASH,4,2     ## @HIF_REG_MULTICAST_HASH
	.comm	_HIF_REG_CONFIG,4,2             ## @HIF_REG_CONFIG
	.no_dead_strip	_mcs7830_set_multicast
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mcs7830_set_multicast
_mcs7830_set_multicast:                 ; @mcs7830_set_multicast
	.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	x20, x0
	bl	_netdev_priv
	mov	x19, x0
Lloh0:
	adrp	x8, _HIF_REG_CONFIG_TXENABLE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _HIF_REG_CONFIG_TXENABLE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [x0]
Lloh3:
	adrp	x9, _HIF_REG_CONFIG_ALLMULTICAST@GOTPAGE
Lloh4:
	ldr	x9, [x9, _HIF_REG_CONFIG_ALLMULTICAST@GOTPAGEOFF]
	ldr	w10, [x9]
	orr	w8, w10, w8
	str	w8, [x0]
	ldr	w10, [x20]
Lloh5:
	adrp	x11, _IFF_PROMISC@GOTPAGE
Lloh6:
	ldr	x11, [x11, _IFF_PROMISC@GOTPAGEOFF]
Lloh7:
	ldr	w11, [x11]
	tst	w11, w10
	b.eq	LBB0_2
; %bb.1:
Lloh8:
	adrp	x9, _HIF_REG_CONFIG_PROMISCIOUS@GOTPAGE
Lloh9:
	ldr	x9, [x9, _HIF_REG_CONFIG_PROMISCIOUS@GOTPAGEOFF]
	b	LBB0_4
LBB0_2:
Lloh10:
	adrp	x11, _IFF_ALLMULTI@GOTPAGE
Lloh11:
	ldr	x11, [x11, _IFF_ALLMULTI@GOTPAGEOFF]
Lloh12:
	ldr	w11, [x11]
	tst	w11, w10
	b.ne	LBB0_4
; %bb.3:
	ldr	x10, [x20, #8]
Lloh13:
	adrp	x11, _MCS7830_MAX_MCAST@GOTPAGE
Lloh14:
	ldr	x11, [x11, _MCS7830_MAX_MCAST@GOTPAGEOFF]
Lloh15:
	ldr	x11, [x11]
	cmp	x10, x11
	b.le	LBB0_6
LBB0_4:
	ldr	w9, [x9]
	orr	w8, w9, w8
	str	w8, [x19]
LBB0_5:
Lloh16:
	adrp	x8, _HIF_REG_CONFIG@GOTPAGE
Lloh17:
	ldr	x8, [x8, _HIF_REG_CONFIG@GOTPAGEOFF]
Lloh18:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #1
	mov	x3, 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	_mcs7830_set_reg_async
LBB0_6:
	cbz	x10, LBB0_5
; %bb.7:
	ldr	x21, [x20, #16]
	ldr	x0, [x19, #8]
	mov	w1, #0
	mov	w2, #8
	bl	_memset
	ldr	x8, [x20, #8]
	cmp	x8, #1
	b.lt	LBB0_10
; %bb.8:
	mov	x22, #0
Lloh19:
	adrp	x23, _ETH_ALEN@GOTPAGE
Lloh20:
	ldr	x23, [x23, _ETH_ALEN@GOTPAGEOFF]
	mov	w24, #1
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x23]
	ldr	w1, [x21, #8]
	bl	_ether_crc
	ubfx	w8, w0, #26, #3
	lsl	w8, w24, w8
	ldr	x3, [x19, #8]
	asr	w9, w0, #29
	sbfiz	x9, x9, #2, #32
	ldr	w10, [x3, x9]
	orr	w8, w8, w10
	str	w8, [x3, x9]
	ldr	x21, [x21]
	add	x22, x22, #1
	ldr	x8, [x20, #8]
	cmp	x8, x22
	b.gt	LBB0_9
	b	LBB0_11
LBB0_10:
	ldr	x3, [x19, #8]
LBB0_11:
Lloh21:
	adrp	x8, _HIF_REG_MULTICAST_HASH@GOTPAGE
Lloh22:
	ldr	x8, [x8, _HIF_REG_MULTICAST_HASH@GOTPAGEOFF]
Lloh23:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #8
	bl	_mcs7830_set_reg_async
	b	LBB0_5
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.comm	_HIF_REG_CONFIG_TXENABLE,4,2    ; @HIF_REG_CONFIG_TXENABLE
	.comm	_HIF_REG_CONFIG_ALLMULTICAST,4,2 ; @HIF_REG_CONFIG_ALLMULTICAST
	.comm	_IFF_PROMISC,4,2                ; @IFF_PROMISC
	.comm	_HIF_REG_CONFIG_PROMISCIOUS,4,2 ; @HIF_REG_CONFIG_PROMISCIOUS
	.comm	_IFF_ALLMULTI,4,2               ; @IFF_ALLMULTI
	.comm	_MCS7830_MAX_MCAST,8,3          ; @MCS7830_MAX_MCAST
	.comm	_ETH_ALEN,4,2                   ; @ETH_ALEN
	.comm	_HIF_REG_MULTICAST_HASH,4,2     ; @HIF_REG_MULTICAST_HASH
	.comm	_HIF_REG_CONFIG,4,2             ; @HIF_REG_CONFIG
	.no_dead_strip	_mcs7830_set_multicast
.subsections_via_symbols
