	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dmfe_set_filter_mode
_dmfe_set_filter_mode:                  ## @dmfe_set_filter_mode
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	callq	_netdev_priv
	movq	%rax, %r15
	movq	%rbx, %rdi
	callq	_netdev_mc_count
	movl	%eax, %r12d
	leaq	L_.str(%rip), %rsi
	xorl	%edi, %edi
	xorl	%edx, %edx
	callq	_DMFE_DBUG
	movq	%r15, %r14
	addq	$16, %r14
	movq	%r14, %rdi
	callq	_spin_lock_irqsave
	movl	(%rbx), %eax
	movq	_IFF_PROMISC@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_2
## %bb.1:
	leaq	L_.str.1(%rip), %rsi
	xorl	%edi, %edi
	xorl	%edx, %edx
	callq	_DMFE_DBUG
	movq	_CR6_PM@GOTPCREL(%rip), %rax
	movq	_CR6_PBF@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	orl	(%rax), %edi
	orl	(%r15), %edi
	movl	%edi, (%r15)
	movl	20(%r15), %esi
	callq	_update_cr6
	jmp	LBB0_8
LBB0_2:
	movq	_IFF_ALLMULTI@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	jne	LBB0_4
## %bb.3:
	movq	_DMFE_MAX_MULTICAST@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r12d
	jg	LBB0_4
## %bb.5:
	leaq	L_.str.3(%rip), %rsi
	xorl	%edi, %edi
	movl	%r12d, %edx
	callq	_DMFE_DBUG
	movq	8(%r15), %rax
	movq	_PCI_DM9132_ID@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_7
## %bb.6:
	movq	%rbx, %rdi
	callq	_dm9132_id_table
	jmp	LBB0_8
LBB0_4:
	leaq	L_.str.2(%rip), %rsi
	xorl	%edi, %edi
	movl	%r12d, %edx
	callq	_DMFE_DBUG
	movq	_CR6_PM@GOTPCREL(%rip), %rax
	movq	_CR6_PBF@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	notl	%ecx
	andl	(%r15), %ecx
	movl	%ecx, (%r15)
	movq	_CR6_PAM@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movl	%ecx, (%r15)
	jmp	LBB0_8
LBB0_7:
	movq	%rbx, %rdi
	callq	_send_filter_frame
LBB0_8:
	movq	%r14, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_spin_unlock_irqrestore         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"dmfe_set_filter_mode()"

	.comm	_IFF_PROMISC,4,2                ## @IFF_PROMISC
L_.str.1:                               ## @.str.1
	.asciz	"Enable PROM Mode"

	.comm	_CR6_PM,4,2                     ## @CR6_PM
	.comm	_CR6_PBF,4,2                    ## @CR6_PBF
	.comm	_IFF_ALLMULTI,4,2               ## @IFF_ALLMULTI
	.comm	_DMFE_MAX_MULTICAST,4,2         ## @DMFE_MAX_MULTICAST
L_.str.2:                               ## @.str.2
	.asciz	"Pass all multicast address"

	.comm	_CR6_PAM,4,2                    ## @CR6_PAM
L_.str.3:                               ## @.str.3
	.asciz	"Set multicast address"

	.comm	_PCI_DM9132_ID,8,3              ## @PCI_DM9132_ID
	.no_dead_strip	_dmfe_set_filter_mode
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dmfe_set_filter_mode
_dmfe_set_filter_mode:                  ; @dmfe_set_filter_mode
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x21, x0
	bl	_netdev_priv
	mov	x20, x0
	mov	x0, x21
	bl	_netdev_mc_count
	mov	x22, x0
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #0
	mov	w2, #0
	bl	_DMFE_DBUG
	add	x19, x20, #16
	mov	x0, x19
	bl	_spin_lock_irqsave
	ldr	w8, [x21]
Lloh2:
	adrp	x9, _IFF_PROMISC@GOTPAGE
Lloh3:
	ldr	x9, [x9, _IFF_PROMISC@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_2
; %bb.1:
Lloh5:
	adrp	x1, l_.str.1@PAGE
Lloh6:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	w0, #0
	mov	w2, #0
	bl	_DMFE_DBUG
Lloh7:
	adrp	x8, _CR6_PM@GOTPAGE
Lloh8:
	ldr	x8, [x8, _CR6_PM@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
Lloh10:
	adrp	x9, _CR6_PBF@GOTPAGE
Lloh11:
	ldr	x9, [x9, _CR6_PBF@GOTPAGEOFF]
Lloh12:
	ldr	w9, [x9]
	orr	w8, w9, w8
	ldr	w9, [x20]
	orr	w0, w8, w9
	str	w0, [x20]
	ldr	w1, [x20, #20]
	bl	_update_cr6
	b	LBB0_7
LBB0_2:
Lloh13:
	adrp	x9, _IFF_ALLMULTI@GOTPAGE
Lloh14:
	ldr	x9, [x9, _IFF_ALLMULTI@GOTPAGEOFF]
Lloh15:
	ldr	w9, [x9]
	and	w8, w9, w8
Lloh16:
	adrp	x9, _DMFE_MAX_MULTICAST@GOTPAGE
Lloh17:
	ldr	x9, [x9, _DMFE_MAX_MULTICAST@GOTPAGEOFF]
Lloh18:
	ldr	w9, [x9]
	cmp	w8, #0
	ccmp	w22, w9, #0, eq
	b.le	LBB0_4
; %bb.3:
Lloh19:
	adrp	x1, l_.str.2@PAGE
Lloh20:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	w0, #0
	mov	x2, x22
	bl	_DMFE_DBUG
Lloh21:
	adrp	x8, _CR6_PM@GOTPAGE
Lloh22:
	ldr	x8, [x8, _CR6_PM@GOTPAGEOFF]
Lloh23:
	ldr	w8, [x8]
Lloh24:
	adrp	x9, _CR6_PBF@GOTPAGE
Lloh25:
	ldr	x9, [x9, _CR6_PBF@GOTPAGEOFF]
Lloh26:
	ldr	w9, [x9]
	orr	w8, w9, w8
	ldr	w9, [x20]
	bic	w8, w9, w8
	str	w8, [x20]
Lloh27:
	adrp	x9, _CR6_PAM@GOTPAGE
Lloh28:
	ldr	x9, [x9, _CR6_PAM@GOTPAGEOFF]
Lloh29:
	ldr	w9, [x9]
	orr	w8, w9, w8
	str	w8, [x20]
	b	LBB0_7
LBB0_4:
Lloh30:
	adrp	x1, l_.str.3@PAGE
Lloh31:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	w0, #0
	mov	x2, x22
	bl	_DMFE_DBUG
	ldr	x8, [x20, #8]
Lloh32:
	adrp	x9, _PCI_DM9132_ID@GOTPAGE
Lloh33:
	ldr	x9, [x9, _PCI_DM9132_ID@GOTPAGEOFF]
Lloh34:
	ldr	x9, [x9]
	mov	x0, x21
	cmp	x8, x9
	b.ne	LBB0_6
; %bb.5:
	bl	_dm9132_id_table
	b	LBB0_7
LBB0_6:
	bl	_send_filter_frame
LBB0_7:
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_spin_unlock_irqrestore
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpAdd	Lloh30, Lloh31
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"dmfe_set_filter_mode()"

	.comm	_IFF_PROMISC,4,2                ; @IFF_PROMISC
l_.str.1:                               ; @.str.1
	.asciz	"Enable PROM Mode"

	.comm	_CR6_PM,4,2                     ; @CR6_PM
	.comm	_CR6_PBF,4,2                    ; @CR6_PBF
	.comm	_IFF_ALLMULTI,4,2               ; @IFF_ALLMULTI
	.comm	_DMFE_MAX_MULTICAST,4,2         ; @DMFE_MAX_MULTICAST
l_.str.2:                               ; @.str.2
	.asciz	"Pass all multicast address"

	.comm	_CR6_PAM,4,2                    ; @CR6_PAM
l_.str.3:                               ; @.str.3
	.asciz	"Set multicast address"

	.comm	_PCI_DM9132_ID,8,3              ; @PCI_DM9132_ID
	.no_dead_strip	_dmfe_set_filter_mode
.subsections_via_symbols
