	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vmxnet3_set_mc
_vmxnet3_set_mc:                        ## @vmxnet3_set_mc
	.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, %r13
	callq	_netdev_priv
	movq	%rax, %r12
	movq	%rax, %rdi
	movq	16(%rax), %rcx
	movq	_VMXNET3_RXM_UCAST@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	_IFF_PROMISC@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r13)
	movq	%rcx, -64(%rbp)                 ## 8-byte Spill
	je	LBB0_2
## %bb.1:
	movq	%rdi, %r15
	movq	(%rcx), %rdi
	movq	_VMXNET3_VFT_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	shll	$2, %edx
	xorl	%esi, %esi
	callq	_memset
	movq	_VMXNET3_RXM_PROMISC@GOTPCREL(%rip), %rax
	orl	(%rax), %r14d
	jmp	LBB0_3
LBB0_2:
	movq	%rdi, %r15
	callq	_vmxnet3_restore_vlan
LBB0_3:
	movl	(%r13), %eax
	movq	_IFF_BROADCAST@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
	andl	%eax, %ebx
	je	LBB0_5
## %bb.4:
	movq	_VMXNET3_RXM_BCAST@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
LBB0_5:
	orl	%r14d, %ebx
	movq	_IFF_ALLMULTI@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_7
## %bb.6:
	movq	_VMXNET3_RXM_ALL_MULTI@GOTPCREL(%rip), %rax
	orl	(%rax), %ebx
	movb	$1, %al
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	xorl	%eax, %eax
	xorl	%r13d, %r13d
	movq	%r15, %r14
	movq	-64(%rbp), %r15                 ## 8-byte Reload
	jmp	LBB0_15
LBB0_7:
	movq	%r13, %rdi
	callq	_netdev_mc_empty
	movb	$1, %cl
	movl	%ecx, -52(%rbp)                 ## 4-byte Spill
	testl	%eax, %eax
	movq	%r15, %r14
	je	LBB0_9
## %bb.8:
	xorl	%eax, %eax
	xorl	%r13d, %r13d
	movq	-64(%rbp), %r15                 ## 8-byte Reload
	jmp	LBB0_15
LBB0_9:
	movq	%r13, %rdi
	callq	_vmxnet3_copy_mc
	testq	%rax, %rax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	je	LBB0_10
## %bb.12:
	movq	%r13, %rdi
	callq	_netdev_mc_count
	movq	%rax, %rdi
	movq	_ETH_ALEN@GOTPCREL(%rip), %rax
	imulq	(%rax), %rdi
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	callq	_cpu_to_le16
	movq	-64(%rbp), %r15                 ## 8-byte Reload
	movq	%rax, 16(%r15)
	movq	(%r14), %rdi
	movq	_PCI_DMA_TODEVICE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	-72(%rbp), %rsi                 ## 8-byte Reload
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	callq	_dma_map_single
                                        ## kill: def $eax killed $eax def $rax
	movq	(%r14), %rdi
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movl	%eax, %esi
	callq	_dma_mapping_error
	testl	%eax, %eax
	jne	LBB0_11
## %bb.13:
	movq	_VMXNET3_RXM_MCAST@GOTPCREL(%rip), %rax
	orl	(%rax), %ebx
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
                                        ## kill: def $edi killed $edi killed $rdi
	callq	_cpu_to_le64
	movq	%rax, 24(%r15)
	movl	$0, -52(%rbp)                   ## 4-byte Folded Spill
	jmp	LBB0_14
LBB0_10:
	xorl	%eax, %eax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	-64(%rbp), %r15                 ## 8-byte Reload
LBB0_11:
	leaq	L_.str(%rip), %rsi
	movq	%r13, %rdi
	callq	_netdev_info
	movq	_VMXNET3_RXM_ALL_MULTI@GOTPCREL(%rip), %rax
	orl	(%rax), %ebx
LBB0_14:
	movq	-72(%rbp), %r13                 ## 8-byte Reload
	movq	-48(%rbp), %rax                 ## 8-byte Reload
LBB0_15:
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	_VMXNET3_RXM_MCAST@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	jne	LBB0_17
## %bb.16:
	xorps	%xmm0, %xmm0
	movups	%xmm0, 16(%r15)
LBB0_17:
	addq	$8, %r12
	movq	%r12, %rdi
	callq	_spin_lock_irqsave
	cmpl	8(%r15), %ebx
	je	LBB0_19
## %bb.18:
	movl	%ebx, %edi
	callq	_cpu_to_le32
	movl	%eax, 8(%r15)
	movq	_VMXNET3_REG_CMD@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movq	_VMXNET3_CMD_UPDATE_RX_MODE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	callq	_VMXNET3_WRITE_BAR1_REG
	movl	(%rbx), %esi
	movq	_VMXNET3_CMD_UPDATE_VLAN_FILTERS@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	callq	_VMXNET3_WRITE_BAR1_REG
LBB0_19:
	movq	_VMXNET3_REG_CMD@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_VMXNET3_CMD_UPDATE_MAC_FILTERS@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	callq	_VMXNET3_WRITE_BAR1_REG
	movq	%r12, %rdi
	callq	_spin_unlock_irqrestore
	cmpb	$0, -52(%rbp)                   ## 1-byte Folded Reload
	jne	LBB0_21
## %bb.20:
	movq	(%r14), %rdi
	movq	16(%r15), %rdx
	movq	_PCI_DMA_TODEVICE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
                                        ## kill: def $esi killed $esi killed $rsi
	callq	_dma_unmap_single
LBB0_21:
	movq	%r13, %rdi
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_kfree                          ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_VMXNET3_RXM_UCAST,4,2          ## @VMXNET3_RXM_UCAST
	.comm	_IFF_PROMISC,4,2                ## @IFF_PROMISC
	.comm	_VMXNET3_VFT_SIZE,4,2           ## @VMXNET3_VFT_SIZE
	.comm	_VMXNET3_RXM_PROMISC,4,2        ## @VMXNET3_RXM_PROMISC
	.comm	_IFF_BROADCAST,4,2              ## @IFF_BROADCAST
	.comm	_VMXNET3_RXM_BCAST,4,2          ## @VMXNET3_RXM_BCAST
	.comm	_IFF_ALLMULTI,4,2               ## @IFF_ALLMULTI
	.comm	_VMXNET3_RXM_ALL_MULTI,4,2      ## @VMXNET3_RXM_ALL_MULTI
	.comm	_ETH_ALEN,8,3                   ## @ETH_ALEN
	.comm	_PCI_DMA_TODEVICE,4,2           ## @PCI_DMA_TODEVICE
	.comm	_VMXNET3_RXM_MCAST,4,2          ## @VMXNET3_RXM_MCAST
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"failed to copy mcast list, setting ALL_MULTI\n"

	.comm	_VMXNET3_REG_CMD,4,2            ## @VMXNET3_REG_CMD
	.comm	_VMXNET3_CMD_UPDATE_RX_MODE,4,2 ## @VMXNET3_CMD_UPDATE_RX_MODE
	.comm	_VMXNET3_CMD_UPDATE_VLAN_FILTERS,4,2 ## @VMXNET3_CMD_UPDATE_VLAN_FILTERS
	.comm	_VMXNET3_CMD_UPDATE_MAC_FILTERS,4,2 ## @VMXNET3_CMD_UPDATE_MAC_FILTERS
	.no_dead_strip	_vmxnet3_set_mc
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vmxnet3_set_mc
_vmxnet3_set_mc:                        ; @vmxnet3_set_mc
	.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	x23, x0
	bl	_netdev_priv
	mov	x19, x0
	ldr	x24, [x0, #16]
Lloh0:
	adrp	x8, _VMXNET3_RXM_UCAST@GOTPAGE
Lloh1:
	ldr	x8, [x8, _VMXNET3_RXM_UCAST@GOTPAGEOFF]
Lloh2:
	ldr	w20, [x8]
	ldr	w8, [x23]
Lloh3:
	adrp	x9, _IFF_PROMISC@GOTPAGE
Lloh4:
	ldr	x9, [x9, _IFF_PROMISC@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_2
; %bb.1:
	ldr	x0, [x24]
Lloh6:
	adrp	x8, _VMXNET3_VFT_SIZE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _VMXNET3_VFT_SIZE@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	lsl	w2, w8, #2
	mov	w1, #0
	bl	_memset
Lloh9:
	adrp	x8, _VMXNET3_RXM_PROMISC@GOTPAGE
Lloh10:
	ldr	x8, [x8, _VMXNET3_RXM_PROMISC@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	orr	w20, w8, w20
	b	LBB0_3
LBB0_2:
	mov	x0, x19
	bl	_vmxnet3_restore_vlan
LBB0_3:
	ldr	w8, [x23]
Lloh12:
	adrp	x9, _IFF_BROADCAST@GOTPAGE
Lloh13:
	ldr	x9, [x9, _IFF_BROADCAST@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
Lloh15:
	adrp	x10, _VMXNET3_RXM_BCAST@GOTPAGE
Lloh16:
	ldr	x10, [x10, _VMXNET3_RXM_BCAST@GOTPAGEOFF]
Lloh17:
	ldr	w10, [x10]
	tst	w9, w8
	csel	w9, wzr, w10, eq
	orr	w21, w9, w20
Lloh18:
	adrp	x9, _IFF_ALLMULTI@GOTPAGE
Lloh19:
	ldr	x9, [x9, _IFF_ALLMULTI@GOTPAGEOFF]
Lloh20:
	ldr	w9, [x9]
Lloh21:
	adrp	x25, _VMXNET3_RXM_MCAST@GOTPAGE
Lloh22:
	ldr	x25, [x25, _VMXNET3_RXM_MCAST@GOTPAGEOFF]
	tst	w9, w8
	b.eq	LBB0_6
; %bb.4:
	mov	w22, #0
	mov	x20, #0
LBB0_5:
Lloh23:
	adrp	x8, _VMXNET3_RXM_ALL_MULTI@GOTPAGE
Lloh24:
	ldr	x8, [x8, _VMXNET3_RXM_ALL_MULTI@GOTPAGEOFF]
Lloh25:
	ldr	w8, [x8]
	orr	w21, w8, w21
	b	LBB0_8
LBB0_6:
	mov	x0, x23
	bl	_netdev_mc_empty
	cbz	w0, LBB0_16
; %bb.7:
	mov	w22, #0
	mov	x20, #0
LBB0_8:
	mov	w26, #1
LBB0_9:
	ldr	w8, [x25]
	tst	w8, w21
	b.ne	LBB0_11
; %bb.10:
	stp	xzr, xzr, [x24, #16]
LBB0_11:
	add	x23, x19, #8
	mov	x0, x23
	bl	_spin_lock_irqsave
	ldr	w8, [x24, #8]
Lloh26:
	adrp	x25, _VMXNET3_REG_CMD@GOTPAGE
Lloh27:
	ldr	x25, [x25, _VMXNET3_REG_CMD@GOTPAGEOFF]
	cmp	w21, w8
	b.eq	LBB0_13
; %bb.12:
	mov	x0, x21
	bl	_cpu_to_le32
	str	w0, [x24, #8]
	ldr	w1, [x25]
Lloh28:
	adrp	x8, _VMXNET3_CMD_UPDATE_RX_MODE@GOTPAGE
Lloh29:
	ldr	x8, [x8, _VMXNET3_CMD_UPDATE_RX_MODE@GOTPAGEOFF]
Lloh30:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_VMXNET3_WRITE_BAR1_REG
	ldr	w1, [x25]
Lloh31:
	adrp	x8, _VMXNET3_CMD_UPDATE_VLAN_FILTERS@GOTPAGE
Lloh32:
	ldr	x8, [x8, _VMXNET3_CMD_UPDATE_VLAN_FILTERS@GOTPAGEOFF]
Lloh33:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_VMXNET3_WRITE_BAR1_REG
LBB0_13:
	ldr	w1, [x25]
Lloh34:
	adrp	x8, _VMXNET3_CMD_UPDATE_MAC_FILTERS@GOTPAGE
Lloh35:
	ldr	x8, [x8, _VMXNET3_CMD_UPDATE_MAC_FILTERS@GOTPAGEOFF]
Lloh36:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_VMXNET3_WRITE_BAR1_REG
	mov	x0, x23
	bl	_spin_unlock_irqrestore
	tbnz	w26, #0, LBB0_15
; %bb.14:
	ldr	x0, [x19]
	ldr	x2, [x24, #16]
Lloh37:
	adrp	x8, _PCI_DMA_TODEVICE@GOTPAGE
Lloh38:
	ldr	x8, [x8, _PCI_DMA_TODEVICE@GOTPAGEOFF]
Lloh39:
	ldr	w3, [x8]
	mov	x1, x22
	bl	_dma_unmap_single
LBB0_15:
	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
LBB0_16:
	mov	x0, x23
	bl	_vmxnet3_copy_mc
	mov	x20, x0
	cbz	x0, LBB0_19
; %bb.17:
	mov	x0, x23
	bl	_netdev_mc_count
Lloh40:
	adrp	x8, _ETH_ALEN@GOTPAGE
Lloh41:
	ldr	x8, [x8, _ETH_ALEN@GOTPAGEOFF]
Lloh42:
	ldr	x8, [x8]
	mul	x22, x8, x0
	mov	x0, x22
	bl	_cpu_to_le16
	str	x0, [x24, #16]
	ldr	x0, [x19]
Lloh43:
	adrp	x8, _PCI_DMA_TODEVICE@GOTPAGE
Lloh44:
	ldr	x8, [x8, _PCI_DMA_TODEVICE@GOTPAGEOFF]
Lloh45:
	ldr	w3, [x8]
	mov	x1, x20
	mov	x2, x22
	bl	_dma_map_single
	mov	x22, x0
	ldr	x0, [x19]
	mov	x1, x22
	bl	_dma_mapping_error
	cbnz	w0, LBB0_20
; %bb.18:
	ldr	w8, [x25]
	orr	w21, w8, w21
	mov	x0, x22
	bl	_cpu_to_le64
	mov	w26, #0
	str	x0, [x24, #24]
	b	LBB0_9
LBB0_19:
	mov	w22, #0
LBB0_20:
Lloh46:
	adrp	x1, l_.str@PAGE
Lloh47:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x23
	bl	_netdev_info
	b	LBB0_5
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpAdd	Lloh46, Lloh47
	.cfi_endproc
                                        ; -- End function
	.comm	_VMXNET3_RXM_UCAST,4,2          ; @VMXNET3_RXM_UCAST
	.comm	_IFF_PROMISC,4,2                ; @IFF_PROMISC
	.comm	_VMXNET3_VFT_SIZE,4,2           ; @VMXNET3_VFT_SIZE
	.comm	_VMXNET3_RXM_PROMISC,4,2        ; @VMXNET3_RXM_PROMISC
	.comm	_IFF_BROADCAST,4,2              ; @IFF_BROADCAST
	.comm	_VMXNET3_RXM_BCAST,4,2          ; @VMXNET3_RXM_BCAST
	.comm	_IFF_ALLMULTI,4,2               ; @IFF_ALLMULTI
	.comm	_VMXNET3_RXM_ALL_MULTI,4,2      ; @VMXNET3_RXM_ALL_MULTI
	.comm	_ETH_ALEN,8,3                   ; @ETH_ALEN
	.comm	_PCI_DMA_TODEVICE,4,2           ; @PCI_DMA_TODEVICE
	.comm	_VMXNET3_RXM_MCAST,4,2          ; @VMXNET3_RXM_MCAST
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"failed to copy mcast list, setting ALL_MULTI\n"

	.comm	_VMXNET3_REG_CMD,4,2            ; @VMXNET3_REG_CMD
	.comm	_VMXNET3_CMD_UPDATE_RX_MODE,4,2 ; @VMXNET3_CMD_UPDATE_RX_MODE
	.comm	_VMXNET3_CMD_UPDATE_VLAN_FILTERS,4,2 ; @VMXNET3_CMD_UPDATE_VLAN_FILTERS
	.comm	_VMXNET3_CMD_UPDATE_MAC_FILTERS,4,2 ; @VMXNET3_CMD_UPDATE_MAC_FILTERS
	.no_dead_strip	_vmxnet3_set_mc
.subsections_via_symbols
