	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function catc_set_multicast_list
_catc_set_multicast_list:               ## @catc_set_multicast_list
	.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
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	callq	_netdev_priv
	movq	_RxEnable@GOTPCREL(%rip), %rcx
	movq	_RxPolarity@GOTPCREL(%rip), %rdx
	movl	(%rdx), %r14d
	orl	(%rcx), %r14d
	movq	%rax, %r13
	movq	_RxMultiCast@GOTPCREL(%rip), %rax
	orl	(%rax), %r14d
	leaq	-80(%rbp), %r12
	movq	%r12, %rdi
	movl	$255, %esi
	movl	$6, %edx
	callq	_memset
	movq	(%r13), %rdi
	xorl	%esi, %esi
	movl	$64, %edx
	callq	_memset
	movq	(%r13), %rsi
	movq	%r12, %rdi
	callq	_catc_multicast
	movq	(%r15), %rdi
	movq	(%r13), %rsi
	callq	_catc_multicast
	movl	8(%r15), %eax
	movq	_IFF_PROMISC@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_5
## %bb.1:
	movq	(%r13), %rdi
	movl	$255, %esi
	movl	$64, %edx
	callq	_memset
	cmpl	$0, 16(%r13)
	jne	LBB0_2
## %bb.3:
	movq	_RxPromisc@GOTPCREL(%rip), %rax
	jmp	LBB0_4
LBB0_2:
	movq	_AltRxPromisc@GOTPCREL(%rip), %rax
LBB0_4:
	orl	(%rax), %r14d
	movl	8(%r15), %eax
LBB0_5:
	movq	_IFF_ALLMULTI@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_7
## %bb.6:
	movq	(%r13), %rdi
	movl	$255, %esi
	movl	$64, %edx
	callq	_memset
LBB0_14:
	cmpl	$0, 16(%r13)
	je	LBB0_15
## %bb.16:
	movq	(%r13), %rsi
	movq	%r13, %rdi
	callq	_f5u011_mchash_async
	movq	8(%r13), %rax
	cmpl	%r14d, (%rax)
	je	LBB0_18
## %bb.17:
	movl	%r14d, (%rax)
	movl	4(%rax), %edx
	leaq	L_.str(%rip), %rdi
	movl	%r14d, %esi
	callq	_dbg
	movq	8(%r13), %rsi
	movq	%r13, %rdi
	callq	_f5u011_rxmode_async
	jmp	LBB0_18
LBB0_7:
	movq	16(%r15), %rbx
	testq	%rbx, %rbx
	je	LBB0_14
## %bb.8:
	movl	$-1, %r12d
	jmp	LBB0_9
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_9 Depth=1
	movl	%eax, %ecx
	shrl	$26, %ecx
	sarl	$29, %eax
	movl	$7, %edx
	subl	%eax, %edx
	movl	%ecx, %eax
LBB0_13:                                ##   in Loop: Header=BB0_9 Depth=1
	andb	$7, %al
	movl	$1, %esi
	movl	%eax, %ecx
	shll	%cl, %esi
	movq	(%r13), %rax
	movl	%edx, %ecx
	orl	%esi, (%rax,%rcx,4)
	movq	8(%rbx), %rbx
	testq	%rbx, %rbx
	je	LBB0_14
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	incl	%r12d
	cmpl	12(%r15), %r12d
	jge	LBB0_14
## %bb.10:                              ##   in Loop: Header=BB0_9 Depth=1
	movl	(%rbx), %esi
	movl	$6, %edi
	callq	_ether_crc_le
	cmpl	$0, 16(%r13)
	jne	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_9 Depth=1
	movl	%eax, %edx
	shrl	$3, %edx
	andl	$63, %edx
	jmp	LBB0_13
LBB0_15:
	movq	_RxUnit@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	movl	%r14d, %edx
	callq	_catc_set_reg_async
	movq	(%r13), %rdx
	movq	%r13, %rdi
	movl	$64128, %esi                    ## imm = 0xFA80
	movl	$64, %ecx
	callq	_catc_write_mem_async
LBB0_18:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_20
## %bb.19:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_20:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_RxEnable,4,2                   ## @RxEnable
	.comm	_RxPolarity,4,2                 ## @RxPolarity
	.comm	_RxMultiCast,4,2                ## @RxMultiCast
	.comm	_IFF_PROMISC,4,2                ## @IFF_PROMISC
	.comm	_RxPromisc,4,2                  ## @RxPromisc
	.comm	_AltRxPromisc,4,2               ## @AltRxPromisc
	.comm	_IFF_ALLMULTI,4,2               ## @IFF_ALLMULTI
	.comm	_RxUnit,4,2                     ## @RxUnit
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Setting RX mode to %2.2X %2.2X"

	.no_dead_strip	_catc_set_multicast_list
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function catc_set_multicast_list
_catc_set_multicast_list:               ; @catc_set_multicast_list
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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	x21, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #24]
	bl	_netdev_priv
	mov	x19, x0
Lloh3:
	adrp	x8, _RxEnable@GOTPAGE
Lloh4:
	ldr	x8, [x8, _RxEnable@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
Lloh6:
	adrp	x9, _RxPolarity@GOTPAGE
Lloh7:
	ldr	x9, [x9, _RxPolarity@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh9:
	adrp	x9, _RxMultiCast@GOTPAGE
Lloh10:
	ldr	x9, [x9, _RxMultiCast@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	orr	w20, w8, w9
	mov	x0, sp
	mov	w1, #255
	mov	w2, #6
	bl	_memset
	ldr	x0, [x19]
	mov	w1, #0
	mov	w2, #64
	bl	_memset
	ldr	x1, [x19]
	mov	x0, sp
	bl	_catc_multicast
	ldr	x0, [x21]
	ldr	x1, [x19]
	bl	_catc_multicast
	ldr	w8, [x21, #8]
Lloh12:
	adrp	x9, _IFF_PROMISC@GOTPAGE
Lloh13:
	ldr	x9, [x9, _IFF_PROMISC@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_2
; %bb.1:
	ldr	x0, [x19]
	mov	w1, #255
	mov	w2, #64
	bl	_memset
Lloh15:
	adrp	x8, _RxPromisc@GOTPAGE
Lloh16:
	ldr	x8, [x8, _RxPromisc@GOTPAGEOFF]
Lloh17:
	adrp	x9, _AltRxPromisc@GOTPAGE
Lloh18:
	ldr	x9, [x9, _AltRxPromisc@GOTPAGEOFF]
	ldr	w10, [x19, #16]
	cmp	w10, #0
	csel	x8, x8, x9, eq
	ldr	w8, [x8]
	orr	w20, w8, w20
	ldr	w8, [x21, #8]
LBB0_2:
Lloh19:
	adrp	x9, _IFF_ALLMULTI@GOTPAGE
Lloh20:
	ldr	x9, [x9, _IFF_ALLMULTI@GOTPAGEOFF]
Lloh21:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_7
; %bb.3:
	ldr	x0, [x19]
	mov	w1, #255
	mov	w2, #64
	bl	_memset
LBB0_4:
	ldr	w8, [x19, #16]
	cbz	w8, LBB0_11
; %bb.5:
	ldr	x1, [x19]
	mov	x0, x19
	bl	_f5u011_mchash_async
	ldr	x8, [x19, #8]
	ldr	w9, [x8]
	cmp	w9, w20
	b.eq	LBB0_12
; %bb.6:
	str	w20, [x8]
	ldr	w2, [x8, #4]
Lloh22:
	adrp	x0, l_.str@PAGE
Lloh23:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x20
	bl	_dbg
	ldr	x1, [x19, #8]
	mov	x0, x19
	bl	_f5u011_rxmode_async
	b	LBB0_12
LBB0_7:
	ldr	x22, [x21, #16]
	cbz	x22, LBB0_4
; %bb.8:
	mov	w23, #-1
	mov	w24, #7
	mov	w25, #1
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x21, #12]
	add	w23, w23, #1
	cmp	w23, w8
	b.ge	LBB0_4
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=1
	ldr	w1, [x22]
	mov	w0, #6
	bl	_ether_crc_le
	ldr	w8, [x19, #16]
	lsr	w9, w0, #26
	sub	w10, w24, w0, asr #29
	ubfx	w11, w0, #3, #6
	cmp	w8, #0
	csel	w8, w10, w11, ne
	csel	w9, w9, w0, ne
	and	w9, w9, #0x7
	lsl	w9, w25, w9
	ldr	x10, [x19]
	lsl	x8, x8, #2
	ldr	w11, [x10, x8]
	orr	w9, w11, w9
	str	w9, [x10, x8]
	ldr	x22, [x22, #8]
	cbnz	x22, LBB0_9
	b	LBB0_4
LBB0_11:
Lloh24:
	adrp	x8, _RxUnit@GOTPAGE
Lloh25:
	ldr	x8, [x8, _RxUnit@GOTPAGEOFF]
Lloh26:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, x20
	bl	_catc_set_reg_async
	ldr	x2, [x19]
	mov	x0, x19
	mov	w1, #64128
	mov	w3, #64
	bl	_catc_write_mem_async
LBB0_12:
	ldr	x8, [sp, #24]
Lloh27:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh28:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh29:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_14
; %bb.13:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_14:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.cfi_endproc
                                        ; -- End function
	.comm	_RxEnable,4,2                   ; @RxEnable
	.comm	_RxPolarity,4,2                 ; @RxPolarity
	.comm	_RxMultiCast,4,2                ; @RxMultiCast
	.comm	_IFF_PROMISC,4,2                ; @IFF_PROMISC
	.comm	_RxPromisc,4,2                  ; @RxPromisc
	.comm	_AltRxPromisc,4,2               ; @AltRxPromisc
	.comm	_IFF_ALLMULTI,4,2               ; @IFF_ALLMULTI
	.comm	_RxUnit,4,2                     ; @RxUnit
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Setting RX mode to %2.2X %2.2X"

	.no_dead_strip	_catc_set_multicast_list
.subsections_via_symbols
