	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function do_set_multicast_list
_do_set_multicast_list:                 ## @do_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
	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
	movq	(%rdi), %r15
	callq	_netdev_priv
	movq	_IFF_PROMISC@GOTPCREL(%rip), %rdx
	movq	_IFF_ALLMULTI@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rdx), %ecx
	movq	%rax, %rbx
	movq	(%rax), %rdi
	testl	%ecx, 8(%r14)
	je	LBB0_1
## %bb.3:
	movl	$255, %esi
	movl	$8, %edx
	callq	_memset
	jmp	LBB0_4
LBB0_1:
	xorl	%esi, %esi
	movl	$8, %edx
	callq	_memset
	cmpq	$0, 16(%r14)
	je	LBB0_4
## %bb.2:
	movq	(%rbx), %rdi
	movq	%r14, %rsi
	callq	_make_mc_bits
LBB0_4:
	movq	_E8390_NODMA@GOTPCREL(%rip), %rcx
	movq	_E8390_PAGE1@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	addl	(%rcx), %edi
	movq	_E8390_CMD@GOTPCREL(%rip), %r13
	movq	(%r13), %rsi
	addq	%r15, %rsi
	callq	_outb_p
	movq	(%rbx), %rax
	movl	(%rax), %r12d
	xorl	%edi, %edi
	callq	_EN1_MULT_SHIFT
	leaq	(%rax,%r15), %rsi
	movl	%r12d, %edi
	callq	_outb_p
	movq	(%rbx), %rax
	movl	4(%rax), %r12d
	movl	$1, %edi
	callq	_EN1_MULT_SHIFT
	leaq	(%rax,%r15), %rsi
	movl	%r12d, %edi
	callq	_outb_p
	movq	(%rbx), %rax
	movl	8(%rax), %r12d
	movl	$2, %edi
	callq	_EN1_MULT_SHIFT
	leaq	(%rax,%r15), %rsi
	movl	%r12d, %edi
	callq	_outb_p
	movq	(%rbx), %rax
	movl	12(%rax), %r12d
	movl	$3, %edi
	callq	_EN1_MULT_SHIFT
	leaq	(%rax,%r15), %rsi
	movl	%r12d, %edi
	callq	_outb_p
	movq	(%rbx), %rax
	movl	16(%rax), %r12d
	movl	$4, %edi
	callq	_EN1_MULT_SHIFT
	leaq	(%rax,%r15), %rsi
	movl	%r12d, %edi
	callq	_outb_p
	movq	(%rbx), %rax
	movl	20(%rax), %r12d
	movl	$5, %edi
	callq	_EN1_MULT_SHIFT
	leaq	(%rax,%r15), %rsi
	movl	%r12d, %edi
	callq	_outb_p
	movq	(%rbx), %rax
	movl	24(%rax), %r12d
	movl	$6, %edi
	callq	_EN1_MULT_SHIFT
	leaq	(%rax,%r15), %rsi
	movl	%r12d, %edi
	movq	_E8390_NODMA@GOTPCREL(%rip), %r12
	callq	_outb_p
	movq	(%rbx), %rax
	movl	28(%rax), %ebx
	movl	$7, %edi
	callq	_EN1_MULT_SHIFT
	leaq	(%rax,%r15), %rsi
	movl	%ebx, %edi
	callq	_outb_p
	movq	_E8390_PAGE0@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	addl	(%r12), %edi
	movq	(%r13), %rsi
	addq	%r15, %rsi
	callq	_outb_p
	movl	8(%r14), %eax
	movl	$88, %edi
	movq	_IFF_PROMISC@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	jne	LBB0_7
## %bb.5:
	movl	$72, %edi
	movq	_IFF_ALLMULTI@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	jne	LBB0_7
## %bb.6:
	xorl	%eax, %eax
	cmpq	$0, 16(%r14)
	setne	%al
	leal	64(,%rax,8), %edi
LBB0_7:
	movq	_E8390_RXCONFIG@GOTPCREL(%rip), %rax
	orl	(%rax), %edi
	movq	_EN0_RXCR@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	%r15, %rsi
	callq	_outb_p
	movl	(%rbx), %edi
	addl	(%r12), %edi
	movq	_E8390_START@GOTPCREL(%rip), %rax
	addl	(%rax), %edi
	addq	(%r13), %r15
	movq	%r15, %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_outb_p                         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_IFF_PROMISC,4,2                ## @IFF_PROMISC
	.comm	_IFF_ALLMULTI,4,2               ## @IFF_ALLMULTI
	.comm	_E8390_NODMA,4,2                ## @E8390_NODMA
	.comm	_E8390_PAGE1,4,2                ## @E8390_PAGE1
	.comm	_E8390_CMD,8,3                  ## @E8390_CMD
	.comm	_E8390_PAGE0,4,2                ## @E8390_PAGE0
	.comm	_E8390_RXCONFIG,4,2             ## @E8390_RXCONFIG
	.comm	_EN0_RXCR,8,3                   ## @EN0_RXCR
	.comm	_E8390_START,4,2                ## @E8390_START
	.no_dead_strip	_do_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 do_set_multicast_list
_do_set_multicast_list:                 ; @do_set_multicast_list
	.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	x19, x0
	ldr	x22, [x0]
	bl	_netdev_priv
	mov	x20, x0
	ldr	w8, [x19, #8]
Lloh0:
	adrp	x24, _IFF_PROMISC@GOTPAGE
Lloh1:
	ldr	x24, [x24, _IFF_PROMISC@GOTPAGEOFF]
	ldr	w9, [x24]
Lloh2:
	adrp	x23, _IFF_ALLMULTI@GOTPAGE
Lloh3:
	ldr	x23, [x23, _IFF_ALLMULTI@GOTPAGEOFF]
	ldr	w10, [x23]
	orr	w9, w10, w9
	ldr	x0, [x0]
	tst	w9, w8
	b.eq	LBB0_2
; %bb.1:
	mov	w1, #255
	mov	w2, #8
	bl	_memset
	b	LBB0_4
LBB0_2:
	mov	w1, #0
	mov	w2, #8
	bl	_memset
	ldr	x8, [x19, #16]
	cbz	x8, LBB0_4
; %bb.3:
	ldr	x0, [x20]
	mov	x1, x19
	bl	_make_mc_bits
LBB0_4:
Lloh4:
	adrp	x26, _E8390_NODMA@GOTPAGE
Lloh5:
	ldr	x26, [x26, _E8390_NODMA@GOTPAGEOFF]
	ldr	w8, [x26]
Lloh6:
	adrp	x9, _E8390_PAGE1@GOTPAGE
Lloh7:
	ldr	x9, [x9, _E8390_PAGE1@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	add	w0, w9, w8
Lloh9:
	adrp	x25, _E8390_CMD@GOTPAGE
Lloh10:
	ldr	x25, [x25, _E8390_CMD@GOTPAGEOFF]
	ldr	x8, [x25]
	add	x1, x8, x22
	bl	_outb_p
	ldr	x8, [x20]
	ldr	w21, [x8]
	mov	w0, #0
	bl	_EN1_MULT_SHIFT
	add	x1, x0, x22
	mov	x0, x21
	bl	_outb_p
	ldr	x8, [x20]
	ldr	w21, [x8, #4]
	mov	w0, #1
	bl	_EN1_MULT_SHIFT
	add	x1, x0, x22
	mov	x0, x21
	bl	_outb_p
	ldr	x8, [x20]
	ldr	w21, [x8, #8]
	mov	w0, #2
	bl	_EN1_MULT_SHIFT
	add	x1, x0, x22
	mov	x0, x21
	bl	_outb_p
	ldr	x8, [x20]
	ldr	w21, [x8, #12]
	mov	w0, #3
	bl	_EN1_MULT_SHIFT
	add	x1, x0, x22
	mov	x0, x21
	bl	_outb_p
	ldr	x8, [x20]
	ldr	w21, [x8, #16]
	mov	w0, #4
	bl	_EN1_MULT_SHIFT
	add	x1, x0, x22
	mov	x0, x21
	bl	_outb_p
	ldr	x8, [x20]
	ldr	w21, [x8, #20]
	mov	w0, #5
	bl	_EN1_MULT_SHIFT
	add	x1, x0, x22
	mov	x0, x21
	bl	_outb_p
	ldr	x8, [x20]
	ldr	w21, [x8, #24]
	mov	w0, #6
	bl	_EN1_MULT_SHIFT
	add	x1, x0, x22
	mov	x0, x21
	bl	_outb_p
	ldr	x8, [x20]
	ldr	w20, [x8, #28]
	mov	w0, #7
	bl	_EN1_MULT_SHIFT
	add	x1, x0, x22
	mov	x0, x20
	bl	_outb_p
	ldr	w8, [x26]
Lloh11:
	adrp	x20, _E8390_PAGE0@GOTPAGE
Lloh12:
	ldr	x20, [x20, _E8390_PAGE0@GOTPAGEOFF]
	ldr	w9, [x20]
	add	w0, w9, w8
	ldr	x8, [x25]
	add	x1, x8, x22
	bl	_outb_p
	ldr	w9, [x19, #8]
	ldr	w8, [x24]
	tst	w8, w9
	b.eq	LBB0_6
; %bb.5:
	mov	w8, #88
	b	LBB0_8
LBB0_6:
	ldr	w10, [x23]
	mov	w8, #72
	tst	w10, w9
	b.ne	LBB0_8
; %bb.7:
	ldr	x9, [x19, #16]
	cmp	x9, #0
	mov	w9, #64
	csel	w8, w9, w8, eq
LBB0_8:
Lloh13:
	adrp	x9, _E8390_RXCONFIG@GOTPAGE
Lloh14:
	ldr	x9, [x9, _E8390_RXCONFIG@GOTPAGEOFF]
Lloh15:
	ldr	w9, [x9]
	orr	w0, w9, w8
Lloh16:
	adrp	x8, _EN0_RXCR@GOTPAGE
Lloh17:
	ldr	x8, [x8, _EN0_RXCR@GOTPAGEOFF]
Lloh18:
	ldr	x8, [x8]
	add	x1, x8, x22
	bl	_outb_p
	ldr	w8, [x26]
	ldr	w9, [x20]
Lloh19:
	adrp	x10, _E8390_START@GOTPAGE
Lloh20:
	ldr	x10, [x10, _E8390_START@GOTPAGEOFF]
Lloh21:
	ldr	w10, [x10]
	add	w8, w9, w8
	add	w0, w8, w10
	ldr	x8, [x25]
	add	x1, x8, x22
	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	_outb_p
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_IFF_PROMISC,4,2                ; @IFF_PROMISC
	.comm	_IFF_ALLMULTI,4,2               ; @IFF_ALLMULTI
	.comm	_E8390_NODMA,4,2                ; @E8390_NODMA
	.comm	_E8390_PAGE1,4,2                ; @E8390_PAGE1
	.comm	_E8390_CMD,8,3                  ; @E8390_CMD
	.comm	_E8390_PAGE0,4,2                ; @E8390_PAGE0
	.comm	_E8390_RXCONFIG,4,2             ; @E8390_RXCONFIG
	.comm	_EN0_RXCR,8,3                   ; @EN0_RXCR
	.comm	_E8390_START,4,2                ; @E8390_START
	.no_dead_strip	_do_set_multicast_list
.subsections_via_symbols
