	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dm9601_set_multicast
_dm9601_set_multicast:                  ## @dm9601_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, %r15
	callq	_netdev_priv
	movq	%rax, %r13
	movq	_DM_MCAST_SIZE@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edx
	movq	%rax, %rdi
	xorl	%esi, %esi
	callq	_memset
	movslq	(%rbx), %rax
	orl	$128, -4(%r13,%rax,4)
	movl	(%r15), %eax
	movq	_IFF_PROMISC@GOTPCREL(%rip), %rcx
	movl	$51, %r14d
	testl	%eax, (%rcx)
	jne	LBB0_7
## %bb.1:
	movq	_IFF_ALLMULTI@GOTPCREL(%rip), %rcx
	movl	$53, %r14d
	testl	%eax, (%rcx)
	jne	LBB0_7
## %bb.2:
	movq	8(%r15), %rax
	movq	_DM_MAX_MCAST@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jg	LBB0_7
## %bb.3:
	movl	$49, %r14d
	testq	%rax, %rax
	jle	LBB0_7
## %bb.4:
	leaq	16(%r15), %rbx
	xorl	%r12d, %r12d
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%rbx), %rbx
	movq	_ETH_ALEN@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%rbx), %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
	sarl	$29, %eax
	cltq
	orl	%edx, (%r13,%rax,4)
	incq	%r12
	addq	$8, %rbx
	cmpq	%r12, 8(%r15)
	jg	LBB0_5
## %bb.6:
	movq	_DM_MCAST_SIZE@GOTPCREL(%rip), %rbx
LBB0_7:
	movq	_DM_MCAST_ADDR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%rbx), %edx
	movq	%r13, %rdi
	movq	%r13, %rcx
	callq	_dm_write_async
	movq	_DM_RX_CTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	movl	%r14d, %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_dm_write_reg_async             ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_DM_MCAST_SIZE,4,2              ## @DM_MCAST_SIZE
	.comm	_IFF_PROMISC,4,2                ## @IFF_PROMISC
	.comm	_IFF_ALLMULTI,4,2               ## @IFF_ALLMULTI
	.comm	_DM_MAX_MCAST,8,3               ## @DM_MAX_MCAST
	.comm	_ETH_ALEN,4,2                   ## @ETH_ALEN
	.comm	_DM_MCAST_ADDR,4,2              ## @DM_MCAST_ADDR
	.comm	_DM_RX_CTRL,4,2                 ## @DM_RX_CTRL
	.no_dead_strip	_dm9601_set_multicast
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dm9601_set_multicast
_dm9601_set_multicast:                  ; @dm9601_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
	mov	x20, x0
	bl	_netdev_priv
	mov	x19, x0
Lloh0:
	adrp	x21, _DM_MCAST_SIZE@GOTPAGE
Lloh1:
	ldr	x21, [x21, _DM_MCAST_SIZE@GOTPAGEOFF]
	ldr	w2, [x21]
	mov	w1, #0
	bl	_memset
	ldrsw	x8, [x21]
	add	x8, x19, x8, lsl #2
	ldur	w9, [x8, #-4]
	orr	w9, w9, #0x80
	stur	w9, [x8, #-4]
	ldr	w8, [x20]
Lloh2:
	adrp	x9, _IFF_PROMISC@GOTPAGE
Lloh3:
	ldr	x9, [x9, _IFF_PROMISC@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_2
; %bb.1:
	mov	w20, #51
	b	LBB0_5
LBB0_2:
Lloh5:
	adrp	x9, _IFF_ALLMULTI@GOTPAGE
Lloh6:
	ldr	x9, [x9, _IFF_ALLMULTI@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	tst	w9, w8
	b.ne	LBB0_4
; %bb.3:
	ldr	x8, [x20, #8]
Lloh8:
	adrp	x9, _DM_MAX_MCAST@GOTPAGE
Lloh9:
	ldr	x9, [x9, _DM_MAX_MCAST@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
	cmp	x8, x9
	b.le	LBB0_6
LBB0_4:
	mov	w20, #53
LBB0_5:
Lloh11:
	adrp	x8, _DM_MCAST_ADDR@GOTPAGE
Lloh12:
	ldr	x8, [x8, _DM_MCAST_ADDR@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	ldr	w2, [x21]
	mov	x0, x19
	mov	x3, x19
	bl	_dm_write_async
Lloh14:
	adrp	x8, _DM_RX_CTRL@GOTPAGE
Lloh15:
	ldr	x8, [x8, _DM_RX_CTRL@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, 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	_dm_write_reg_async
LBB0_6:
	cmp	x8, #1
	b.lt	LBB0_9
; %bb.7:
	mov	x22, #0
	add	x23, x20, #16
Lloh17:
	adrp	x24, _ETH_ALEN@GOTPAGE
Lloh18:
	ldr	x24, [x24, _ETH_ALEN@GOTPAGEOFF]
	mov	w25, #1
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x23, [x23]
	ldr	w0, [x24]
	ldr	w1, [x23], #8
	bl	_ether_crc
	ubfx	w8, w0, #26, #3
	lsl	w8, w25, w8
	asr	w9, w0, #29
	sbfiz	x9, x9, #2, #32
	ldr	w10, [x19, x9]
	orr	w8, w8, w10
	str	w8, [x19, x9]
	add	x22, x22, #1
	ldr	x8, [x20, #8]
	cmp	x8, x22
	b.gt	LBB0_8
LBB0_9:
	mov	w20, #49
	b	LBB0_5
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_DM_MCAST_SIZE,4,2              ; @DM_MCAST_SIZE
	.comm	_IFF_PROMISC,4,2                ; @IFF_PROMISC
	.comm	_IFF_ALLMULTI,4,2               ; @IFF_ALLMULTI
	.comm	_DM_MAX_MCAST,8,3               ; @DM_MAX_MCAST
	.comm	_ETH_ALEN,4,2                   ; @ETH_ALEN
	.comm	_DM_MCAST_ADDR,4,2              ; @DM_MCAST_ADDR
	.comm	_DM_RX_CTRL,4,2                 ; @DM_RX_CTRL
	.no_dead_strip	_dm9601_set_multicast
.subsections_via_symbols
