	.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, %r12
	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
	movq	%r14, %rdi
	callq	_netdev_mc_empty
	testl	%eax, %eax
	jne	LBB0_4
## %bb.2:
	movq	(%r12), %rdi
	movq	%r14, %rsi
	callq	_make_mc_bits
LBB0_4:
	movq	%r14, %rdi
	callq	_netif_running
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	movq	_E8390_RXCONFIG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_EN0_RXCR@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	%r15, %rsi
	callq	_ei_outb_p
LBB0_6:
	movq	_E8390_NODMA@GOTPCREL(%rip), %rcx
	movq	_E8390_PAGE1@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	addl	(%rcx), %edi
	movq	_E8390_CMD@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	%r15, %rsi
	callq	_ei_outb_p
	xorl	%ebx, %ebx
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_7 Depth=1
	incq	%rbx
	cmpq	$8, %rbx
	je	LBB0_10
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r12), %rax
	movl	(%rax,%rbx,4), %r13d
	movl	%ebx, %edi
	callq	_EN1_MULT_SHIFT
	leaq	(%rax,%r15), %rsi
	movl	%r13d, %edi
	callq	_ei_outb_p
	movl	%ebx, %edi
	callq	_EN1_MULT_SHIFT
	leaq	(%rax,%r15), %rdi
	callq	_ei_inb_p
	movq	(%r12), %rcx
	movslq	(%rcx,%rbx,4), %rcx
	cmpq	%rcx, %rax
	je	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=1
	movq	%r14, %rdi
	leaq	L_.str(%rip), %rsi
	movl	%ebx, %edx
	callq	_netdev_err
	jmp	LBB0_9
LBB0_10:
	movq	_E8390_PAGE0@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_E8390_NODMA@GOTPCREL(%rip), %rax
	addl	(%rax), %edi
	movq	_E8390_CMD@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	%r15, %rsi
	callq	_ei_outb_p
	movl	8(%r14), %eax
	movq	_IFF_PROMISC@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_12
## %bb.11:
	movq	_E8390_RXCONFIG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	orl	$24, %edi
	jmp	LBB0_16
LBB0_12:
	movq	_IFF_ALLMULTI@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_13
LBB0_14:
	movq	_E8390_RXCONFIG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	orl	$8, %edi
	jmp	LBB0_16
LBB0_13:
	movq	%r14, %rdi
	callq	_netdev_mc_empty
	testl	%eax, %eax
	je	LBB0_14
## %bb.15:
	movq	_E8390_RXCONFIG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
LBB0_16:
	movq	_EN0_RXCR@GOTPCREL(%rip), %rax
	addq	(%rax), %r15
	movq	%r15, %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ei_outb_p                      ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_IFF_PROMISC,4,2                ## @IFF_PROMISC
	.comm	_IFF_ALLMULTI,4,2               ## @IFF_ALLMULTI
	.comm	_E8390_RXCONFIG,4,2             ## @E8390_RXCONFIG
	.comm	_EN0_RXCR,8,3                   ## @EN0_RXCR
	.comm	_E8390_NODMA,4,2                ## @E8390_NODMA
	.comm	_E8390_PAGE1,4,2                ## @E8390_PAGE1
	.comm	_E8390_CMD,8,3                  ## @E8390_CMD
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Multicast filter read/write mismap %d\n"

	.comm	_E8390_PAGE0,4,2                ## @E8390_PAGE0
	.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	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x0
	ldr	x24, [x0]
	bl	_netdev_priv
	mov	x20, x0
	ldr	w8, [x19, #8]
Lloh0:
	adrp	x28, _IFF_PROMISC@GOTPAGE
Lloh1:
	ldr	x28, [x28, _IFF_PROMISC@GOTPAGEOFF]
	ldr	w9, [x28]
Lloh2:
	adrp	x10, _IFF_ALLMULTI@GOTPAGE
Lloh3:
	ldr	x10, [x10, _IFF_ALLMULTI@GOTPAGEOFF]
Lloh4:
	ldr	w10, [x10]
	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
	mov	x0, x19
	bl	_netdev_mc_empty
	cbnz	w0, LBB0_4
; %bb.3:
	ldr	x0, [x20]
	mov	x1, x19
	bl	_make_mc_bits
LBB0_4:
	mov	x0, x19
	bl	_netif_running
Lloh5:
	adrp	x9, _E8390_RXCONFIG@GOTPAGE
Lloh6:
	ldr	x9, [x9, _E8390_RXCONFIG@GOTPAGEOFF]
Lloh7:
	adrp	x8, _EN0_RXCR@GOTPAGE
Lloh8:
	ldr	x8, [x8, _EN0_RXCR@GOTPAGEOFF]
	cbz	x0, LBB0_6
; %bb.5:
	ldr	w0, [x9]
	ldr	x8, [x8]
	add	x1, x8, x24
	bl	_ei_outb_p
LBB0_6:
Lloh9:
	adrp	x25, _E8390_NODMA@GOTPAGE
Lloh10:
	ldr	x25, [x25, _E8390_NODMA@GOTPAGEOFF]
	ldr	w8, [x25]
Lloh11:
	adrp	x9, _E8390_PAGE1@GOTPAGE
Lloh12:
	ldr	x9, [x9, _E8390_PAGE1@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
	add	w0, w9, w8
Lloh14:
	adrp	x27, _E8390_CMD@GOTPAGE
Lloh15:
	ldr	x27, [x27, _E8390_CMD@GOTPAGEOFF]
	ldr	x8, [x27]
	add	x1, x8, x24
	bl	_ei_outb_p
	mov	x21, #0
Lloh16:
	adrp	x22, l_.str@PAGE
Lloh17:
	add	x22, x22, l_.str@PAGEOFF
	b	LBB0_8
LBB0_7:                                 ;   in Loop: Header=BB0_8 Depth=1
	add	x21, x21, #1
	cmp	x21, #8
	b.eq	LBB0_10
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x20]
	lsl	x26, x21, #2
	ldr	w23, [x8, x26]
	mov	x0, x21
	bl	_EN1_MULT_SHIFT
	add	x1, x0, x24
	mov	x0, x23
	bl	_ei_outb_p
	mov	x0, x21
	bl	_EN1_MULT_SHIFT
	add	x0, x0, x24
	bl	_ei_inb_p
	ldr	x8, [x20]
	ldrsw	x8, [x8, x26]
	cmp	x0, x8
	b.eq	LBB0_7
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	mov	x0, x19
	mov	x1, x22
	mov	x2, x21
	bl	_netdev_err
	b	LBB0_7
LBB0_10:
	ldr	w8, [x25]
Lloh18:
	adrp	x9, _E8390_PAGE0@GOTPAGE
Lloh19:
	ldr	x9, [x9, _E8390_PAGE0@GOTPAGEOFF]
Lloh20:
	ldr	w9, [x9]
	add	w0, w9, w8
	ldr	x8, [x27]
	add	x1, x8, x24
	bl	_ei_outb_p
	ldr	w8, [x19, #8]
	ldr	w9, [x28]
	tst	w9, w8
	b.eq	LBB0_12
; %bb.11:
Lloh21:
	adrp	x8, _E8390_RXCONFIG@GOTPAGE
Lloh22:
	ldr	x8, [x8, _E8390_RXCONFIG@GOTPAGEOFF]
Lloh23:
	ldr	w8, [x8]
	orr	w0, w8, #0x18
	b	LBB0_16
LBB0_12:
Lloh24:
	adrp	x9, _IFF_ALLMULTI@GOTPAGE
Lloh25:
	ldr	x9, [x9, _IFF_ALLMULTI@GOTPAGEOFF]
Lloh26:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_14
LBB0_13:
Lloh27:
	adrp	x8, _E8390_RXCONFIG@GOTPAGE
Lloh28:
	ldr	x8, [x8, _E8390_RXCONFIG@GOTPAGEOFF]
Lloh29:
	ldr	w8, [x8]
	orr	w0, w8, #0x8
	b	LBB0_16
LBB0_14:
	mov	x0, x19
	bl	_netdev_mc_empty
	cbz	w0, LBB0_13
; %bb.15:
Lloh30:
	adrp	x8, _E8390_RXCONFIG@GOTPAGE
Lloh31:
	ldr	x8, [x8, _E8390_RXCONFIG@GOTPAGEOFF]
Lloh32:
	ldr	w0, [x8]
LBB0_16:
Lloh33:
	adrp	x8, _EN0_RXCR@GOTPAGE
Lloh34:
	ldr	x8, [x8, _EN0_RXCR@GOTPAGEOFF]
Lloh35:
	ldr	x8, [x8]
	add	x1, x8, x24
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	b	_ei_outb_p
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.cfi_endproc
                                        ; -- End function
	.comm	_IFF_PROMISC,4,2                ; @IFF_PROMISC
	.comm	_IFF_ALLMULTI,4,2               ; @IFF_ALLMULTI
	.comm	_E8390_RXCONFIG,4,2             ; @E8390_RXCONFIG
	.comm	_EN0_RXCR,8,3                   ; @EN0_RXCR
	.comm	_E8390_NODMA,4,2                ; @E8390_NODMA
	.comm	_E8390_PAGE1,4,2                ; @E8390_PAGE1
	.comm	_E8390_CMD,8,3                  ; @E8390_CMD
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Multicast filter read/write mismap %d\n"

	.comm	_E8390_PAGE0,4,2                ; @E8390_PAGE0
	.no_dead_strip	_do_set_multicast_list
.subsections_via_symbols
