	.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
	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, %r14
	movq	_VMXNET3_RXM_UCAST@GOTPCREL(%rip), %rcx
	movl	(%r12), %eax
	movq	_IFF_PROMISC@GOTPCREL(%rip), %rdx
	movl	(%rdx), %ebx
	andl	%eax, %ebx
	je	LBB0_2
## %bb.1:
	movq	_VMXNET3_RXM_PROMISC@GOTPCREL(%rip), %rdx
	movl	(%rdx), %ebx
LBB0_2:
	orl	(%rcx), %ebx
	movq	_IFF_BROADCAST@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	andl	%eax, %ecx
	je	LBB0_4
## %bb.3:
	movq	_VMXNET3_RXM_BCAST@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
LBB0_4:
	orl	%ecx, %ebx
	movq	8(%r14), %r13
	movq	_IFF_ALLMULTI@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_5
LBB0_9:
	movq	_VMXNET3_RXM_ALL_MULTI@GOTPCREL(%rip), %rax
	orl	(%rax), %ebx
	jmp	LBB0_10
LBB0_5:
	movq	%r12, %rdi
	callq	_netdev_mc_empty
	testl	%eax, %eax
	je	LBB0_6
LBB0_10:
	xorl	%r15d, %r15d
LBB0_11:
	movq	_VMXNET3_RXM_MCAST@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	jne	LBB0_13
## %bb.12:
	xorps	%xmm0, %xmm0
	movups	%xmm0, 8(%r13)
LBB0_13:
	movq	%r14, %rdi
	callq	_spin_lock_irqsave
	cmpl	(%r13), %ebx
	je	LBB0_15
## %bb.14:
	movl	%ebx, %edi
	callq	_cpu_to_le32
	movl	%eax, (%r13)
	movq	_VMXNET3_REG_CMD@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_VMXNET3_CMD_UPDATE_RX_MODE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	callq	_VMXNET3_WRITE_BAR1_REG
LBB0_15:
	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	%r14, %rdi
	callq	_spin_unlock_irqrestore
	movq	%r15, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_kfree                          ## TAILCALL
LBB0_6:
	movq	%r12, %rdi
	callq	_vmxnet3_copy_mc
	testq	%rax, %rax
	je	LBB0_8
## %bb.7:
	movq	%rax, %r15
	movq	_VMXNET3_RXM_MCAST@GOTPCREL(%rip), %rax
	orl	(%rax), %ebx
	movq	%r12, %rdi
	callq	_netdev_mc_count
	movq	_ETH_ALEN@GOTPCREL(%rip), %rcx
	imull	(%rcx), %eax
	movl	%eax, %edi
	callq	_cpu_to_le16
	movq	%rax, 16(%r13)
	movq	%r15, %rdi
	callq	_virt_to_phys
	movl	%eax, %edi
	callq	_cpu_to_le64
	movq	%rax, 8(%r13)
	jmp	LBB0_11
LBB0_8:
	leaq	L_.str(%rip), %rsi
	movq	%r12, %rdi
	callq	_netdev_info
	jmp	LBB0_9
	.cfi_endproc
                                        ## -- End function
	.comm	_VMXNET3_RXM_UCAST,4,2          ## @VMXNET3_RXM_UCAST
	.comm	_IFF_PROMISC,4,2                ## @IFF_PROMISC
	.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	_VMXNET3_RXM_MCAST,4,2          ## @VMXNET3_RXM_MCAST
	.comm	_ETH_ALEN,4,2                   ## @ETH_ALEN
	.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_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	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x22, x0
	bl	_netdev_priv
	mov	x19, x0
	ldr	x23, [x0, #8]
Lloh0:
	adrp	x8, _VMXNET3_RXM_UCAST@GOTPAGE
Lloh1:
	ldr	x8, [x8, _VMXNET3_RXM_UCAST@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	ldr	w9, [x22]
Lloh3:
	adrp	x10, _IFF_PROMISC@GOTPAGE
Lloh4:
	ldr	x10, [x10, _IFF_PROMISC@GOTPAGEOFF]
Lloh5:
	ldr	w10, [x10]
Lloh6:
	adrp	x11, _VMXNET3_RXM_PROMISC@GOTPAGE
Lloh7:
	ldr	x11, [x11, _VMXNET3_RXM_PROMISC@GOTPAGEOFF]
Lloh8:
	ldr	w11, [x11]
	tst	w10, w9
	csel	w10, wzr, w11, eq
	orr	w8, w10, w8
Lloh9:
	adrp	x10, _IFF_BROADCAST@GOTPAGE
Lloh10:
	ldr	x10, [x10, _IFF_BROADCAST@GOTPAGEOFF]
Lloh11:
	ldr	w10, [x10]
Lloh12:
	adrp	x11, _VMXNET3_RXM_BCAST@GOTPAGE
Lloh13:
	ldr	x11, [x11, _VMXNET3_RXM_BCAST@GOTPAGEOFF]
Lloh14:
	ldr	w11, [x11]
	tst	w10, w9
	csel	w10, wzr, w11, eq
	orr	w20, w8, w10
Lloh15:
	adrp	x8, _IFF_ALLMULTI@GOTPAGE
Lloh16:
	ldr	x8, [x8, _IFF_ALLMULTI@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
Lloh18:
	adrp	x24, _VMXNET3_RXM_MCAST@GOTPAGE
Lloh19:
	ldr	x24, [x24, _VMXNET3_RXM_MCAST@GOTPAGEOFF]
	tst	w8, w9
	b.eq	LBB0_3
; %bb.1:
	mov	x21, #0
LBB0_2:
Lloh20:
	adrp	x8, _VMXNET3_RXM_ALL_MULTI@GOTPAGE
Lloh21:
	ldr	x8, [x8, _VMXNET3_RXM_ALL_MULTI@GOTPAGEOFF]
Lloh22:
	ldr	w8, [x8]
	orr	w20, w8, w20
	b	LBB0_7
LBB0_3:
	mov	x0, x22
	bl	_netdev_mc_empty
	cbz	w0, LBB0_5
; %bb.4:
	mov	x21, #0
	b	LBB0_7
LBB0_5:
	mov	x0, x22
	bl	_vmxnet3_copy_mc
	mov	x21, x0
	cbz	x0, LBB0_12
; %bb.6:
	ldr	w8, [x24]
	orr	w20, w8, w20
	mov	x0, x22
	bl	_netdev_mc_count
Lloh23:
	adrp	x8, _ETH_ALEN@GOTPAGE
Lloh24:
	ldr	x8, [x8, _ETH_ALEN@GOTPAGEOFF]
Lloh25:
	ldr	w8, [x8]
	mul	w0, w8, w0
	bl	_cpu_to_le16
	str	x0, [x23, #16]
	mov	x0, x21
	bl	_virt_to_phys
	bl	_cpu_to_le64
	str	x0, [x23, #8]
LBB0_7:
	ldr	w8, [x24]
	tst	w8, w20
	b.ne	LBB0_9
; %bb.8:
	stp	xzr, xzr, [x23, #8]
LBB0_9:
	mov	x0, x19
	bl	_spin_lock_irqsave
	ldr	w8, [x23]
Lloh26:
	adrp	x22, _VMXNET3_REG_CMD@GOTPAGE
Lloh27:
	ldr	x22, [x22, _VMXNET3_REG_CMD@GOTPAGEOFF]
	cmp	w20, w8
	b.eq	LBB0_11
; %bb.10:
	mov	x0, x20
	bl	_cpu_to_le32
	str	w0, [x23]
	ldr	w1, [x22]
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
LBB0_11:
	ldr	w1, [x22]
Lloh31:
	adrp	x8, _VMXNET3_CMD_UPDATE_MAC_FILTERS@GOTPAGE
Lloh32:
	ldr	x8, [x8, _VMXNET3_CMD_UPDATE_MAC_FILTERS@GOTPAGEOFF]
Lloh33:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_VMXNET3_WRITE_BAR1_REG
	mov	x0, x19
	bl	_spin_unlock_irqrestore
	mov	x0, x21
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_kfree
LBB0_12:
Lloh34:
	adrp	x1, l_.str@PAGE
Lloh35:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x22
	bl	_netdev_info
	b	LBB0_2
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.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 AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpAdd	Lloh34, Lloh35
	.cfi_endproc
                                        ; -- End function
	.comm	_VMXNET3_RXM_UCAST,4,2          ; @VMXNET3_RXM_UCAST
	.comm	_IFF_PROMISC,4,2                ; @IFF_PROMISC
	.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	_VMXNET3_RXM_MCAST,4,2          ; @VMXNET3_RXM_MCAST
	.comm	_ETH_ALEN,4,2                   ; @ETH_ALEN
	.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_MAC_FILTERS,4,2 ; @VMXNET3_CMD_UPDATE_MAC_FILTERS
	.no_dead_strip	_vmxnet3_set_mc
.subsections_via_symbols
