	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mv643xx_eth_program_multicast_filter
_mv643xx_eth_program_multicast_filter:  ## @mv643xx_eth_program_multicast_filter
	.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, %r12
	callq	_netdev_priv
	movq	%rax, %r13
	movq	_IFF_PROMISC@GOTPCREL(%rip), %rax
	movq	_IFF_ALLMULTI@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	testl	%ecx, (%r12)
	je	LBB0_4
LBB0_1:
	movl	(%r13), %r14d
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	%r14d, %edi
	callq	_SPECIAL_MCAST_TABLE
	leaq	(%rax,%rbx), %rsi
	movq	%r13, %rdi
	movl	$16843009, %edx                 ## imm = 0x1010101
	callq	_wrl
	movl	%r14d, %edi
	callq	_OTHER_MCAST_TABLE
	leaq	(%rax,%rbx), %rsi
	movq	%r13, %rdi
	movl	$16843009, %edx                 ## imm = 0x1010101
	callq	_wrl
	leaq	4(%rbx), %rax
	cmpq	$252, %rbx
	movq	%rax, %rbx
	jb	LBB0_2
## %bb.3:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movq	_GFP_ATOMIC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$512, %edi                      ## imm = 0x200
	callq	_kmalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.5:
	movq	%rax, %r14
	movq	%rax, %r15
	addq	$256, %r15                      ## imm = 0x100
	movq	%rax, %rdi
	xorl	%esi, %esi
	movl	$256, %edx                      ## imm = 0x100
	callq	_memset
	movq	%r15, %rdi
	xorl	%esi, %esi
	movl	$256, %edx                      ## imm = 0x100
	callq	_memset
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_6 Depth=1
	movq	%rbx, %rdi
	callq	_addr_crc
                                        ## kill: def $eax killed $eax def $rax
	movq	%r15, %rdx
LBB0_13:                                ##   in Loop: Header=BB0_6 Depth=1
	leal	(,%rax,8), %ecx
	movl	$1, %esi
                                        ## kill: def $cl killed $cl killed $ecx
	shll	%cl, %esi
	sarl	$2, %eax
	cltq
	orl	%esi, (%rdx,%rax,4)
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%r12), %r12
	testq	%r12, %r12
	je	LBB0_7
## %bb.10:                              ##   in Loop: Header=BB0_6 Depth=1
	movq	(%r12), %rbx
	movq	%rbx, %rdi
	leaq	l_.str(%rip), %rsi
	movl	$5, %edx
	callq	_memcmp
	testq	%rax, %rax
	jne	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_6 Depth=1
	movl	20(%rbx), %eax
	movq	%r14, %rdx
	jmp	LBB0_13
LBB0_7:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r13), %edi
	callq	_SPECIAL_MCAST_TABLE
	leaq	(%rax,%rbx), %rsi
	movl	(%r14,%rbx), %edx
	movq	%r13, %rdi
	callq	_wrl
	movl	(%r13), %edi
	callq	_OTHER_MCAST_TABLE
	leaq	(%rax,%rbx), %rsi
	movl	256(%r14,%rbx), %edx
	movq	%r13, %rdi
	callq	_wrl
	leaq	4(%rbx), %rax
	cmpq	$252, %rbx
	movq	%rax, %rbx
	jb	LBB0_8
## %bb.9:
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_kfree                          ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_IFF_PROMISC,4,2                ## @IFF_PROMISC
	.comm	_IFF_ALLMULTI,4,2               ## @IFF_ALLMULTI
	.comm	_GFP_ATOMIC,4,2                 ## @GFP_ATOMIC
	.section	__TEXT,__const
l_.str:                                 ## @.str
	.asciz	"\001\000^\000\000"

	.no_dead_strip	_mv643xx_eth_program_multicast_filter
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mv643xx_eth_program_multicast_filter
_mv643xx_eth_program_multicast_filter:  ; @mv643xx_eth_program_multicast_filter
	.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	x22, x0
	bl	_netdev_priv
	mov	x19, x0
	ldr	w8, [x22]
Lloh0:
	adrp	x9, _IFF_PROMISC@GOTPAGE
Lloh1:
	ldr	x9, [x9, _IFF_PROMISC@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
Lloh3:
	adrp	x10, _IFF_ALLMULTI@GOTPAGE
Lloh4:
	ldr	x10, [x10, _IFF_ALLMULTI@GOTPAGEOFF]
Lloh5:
	ldr	w10, [x10]
	orr	w9, w10, w9
	tst	w9, w8
	b.eq	LBB0_4
LBB0_1:
	mov	x21, #0
	ldr	w20, [x19]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	bl	_SPECIAL_MCAST_TABLE
	add	x1, x0, x21
	mov	x0, x19
	mov	w2, #16843009
	bl	_wrl
	mov	x0, x20
	bl	_OTHER_MCAST_TABLE
	add	x1, x0, x21
	mov	x0, x19
	mov	w2, #16843009
	bl	_wrl
	add	x8, x21, #4
	cmp	x21, #252
	mov	x21, x8
	b.lo	LBB0_2
; %bb.3:
	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
LBB0_4:
Lloh6:
	adrp	x8, _GFP_ATOMIC@GOTPAGE
Lloh7:
	ldr	x8, [x8, _GFP_ATOMIC@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	w0, #512
	bl	_kmalloc
	cbz	x0, LBB0_1
; %bb.5:
	mov	x20, x0
	add	x21, x0, #256
	mov	w1, #0
	mov	w2, #256
	bl	_memset
	mov	x0, x21
	mov	w1, #0
	mov	w2, #256
	bl	_memset
	ldr	x24, [x22, #8]
	cbz	x24, LBB0_11
; %bb.6:
Lloh9:
	adrp	x22, l_.str@PAGE
Lloh10:
	add	x22, x22, l_.str@PAGEOFF
	mov	w25, #1
	b	LBB0_9
LBB0_7:                                 ;   in Loop: Header=BB0_9 Depth=1
	mov	x0, x23
	bl	_addr_crc
	mov	x8, x21
LBB0_8:                                 ;   in Loop: Header=BB0_9 Depth=1
	ubfiz	w9, w0, #3, #2
	lsl	w9, w25, w9
	asr	w10, w0, #2
	sbfiz	x10, x10, #2, #32
	ldr	w11, [x8, x10]
	orr	w9, w9, w11
	str	w9, [x8, x10]
	ldr	x24, [x24, #8]
	cbz	x24, LBB0_11
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x23, [x24]
	mov	x0, x23
	mov	x1, x22
	mov	w2, #5
	bl	_memcmp
	cbnz	x0, LBB0_7
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=1
	ldr	w0, [x23, #20]
	mov	x8, x20
	b	LBB0_8
LBB0_11:
	mov	x21, #0
LBB0_12:                                ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x19]
	bl	_SPECIAL_MCAST_TABLE
	add	x1, x0, x21
	add	x22, x20, x21
	ldr	w2, [x22]
	mov	x0, x19
	bl	_wrl
	ldr	w0, [x19]
	bl	_OTHER_MCAST_TABLE
	add	x1, x0, x21
	ldr	w2, [x22, #256]
	mov	x0, x19
	bl	_wrl
	add	x8, x21, #4
	cmp	x21, #252
	mov	x21, x8
	b.lo	LBB0_12
; %bb.13:
	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	_kfree
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_IFF_PROMISC,4,2                ; @IFF_PROMISC
	.comm	_IFF_ALLMULTI,4,2               ; @IFF_ALLMULTI
	.comm	_GFP_ATOMIC,4,2                 ; @GFP_ATOMIC
	.section	__TEXT,__const
l_.str:                                 ; @.str
	.asciz	"\001\000^\000\000"

	.no_dead_strip	_mv643xx_eth_program_multicast_filter
.subsections_via_symbols
