	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function et131x_set_packet_filter
_et131x_set_packet_filter:              ## @et131x_set_packet_filter
	.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
	movl	(%rdi), %r13d
	movq	8(%rdi), %rdi
	callq	_readl
	movl	%eax, %r14d
	movq	8(%r12), %rdi
	addq	$4, %rdi
	callq	_readl
	testl	%r13d, %r13d
	je	LBB0_8
## %bb.1:
	movl	%eax, %r15d
	movq	_ET131X_PACKET_TYPE_PROMISCUOUS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	%r13d, %eax
	jne	LBB0_8
## %bb.2:
	movq	_ET131X_PACKET_TYPE_ALL_MULTICAST@GOTPCREL(%rip), %rax
	testl	%r13d, (%rax)
	je	LBB0_4
## %bb.3:
	orl	$4, %r14d
	andl	$-3, %r15d
	jmp	LBB0_5
LBB0_4:
	movq	%r12, %rdi
	callq	_et1310_setup_device_for_multicast
	orl	$2, %r15d
	andl	$-5, %r14d
LBB0_5:
	movq	_ET131X_PACKET_TYPE_DIRECTED@GOTPCREL(%rip), %rax
	testl	%r13d, (%rax)
	je	LBB0_7
## %bb.6:
	movq	%r12, %rdi
	callq	_et1310_setup_device_for_unicast
	orl	$4, %r15d
	andl	$-5, %r14d
LBB0_7:
	movq	_ET131X_PACKET_TYPE_BROADCAST@GOTPCREL(%rip), %rax
	andl	(%rax), %r13d
	movl	%r14d, %ebx
	andl	$-5, %ebx
	andl	$-2, %r15d
	xorl	%edi, %edi
	testl	%r13d, %r13d
	cmovel	%r14d, %ebx
	setne	%dil
	orl	%r15d, %edi
	movq	8(%r12), %rsi
	addq	$4, %rsi
	callq	_writel
	movq	8(%r12), %rsi
	movl	%ebx, %edi
	callq	_writel
LBB0_8:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ET131X_PACKET_TYPE_PROMISCUOUS,4,2 ## @ET131X_PACKET_TYPE_PROMISCUOUS
	.comm	_ET131X_PACKET_TYPE_ALL_MULTICAST,4,2 ## @ET131X_PACKET_TYPE_ALL_MULTICAST
	.comm	_ET131X_PACKET_TYPE_DIRECTED,4,2 ## @ET131X_PACKET_TYPE_DIRECTED
	.comm	_ET131X_PACKET_TYPE_BROADCAST,4,2 ## @ET131X_PACKET_TYPE_BROADCAST
	.no_dead_strip	_et131x_set_packet_filter
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function et131x_set_packet_filter
_et131x_set_packet_filter:              ; @et131x_set_packet_filter
	.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	x19, x0
	ldr	w22, [x0]
	ldr	x0, [x0, #8]
	bl	_readl
	mov	x20, x0
	ldr	x8, [x19, #8]
	add	x0, x8, #4
	bl	_readl
Lloh0:
	adrp	x8, _ET131X_PACKET_TYPE_PROMISCUOUS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ET131X_PACKET_TYPE_PROMISCUOUS@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	and	w8, w8, w22
	cmp	w22, #0
	ccmp	w8, #0, #0, ne
	b.ne	LBB0_7
; %bb.1:
	mov	x21, x0
Lloh3:
	adrp	x8, _ET131X_PACKET_TYPE_ALL_MULTICAST@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ET131X_PACKET_TYPE_ALL_MULTICAST@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	tst	w8, w22
	b.eq	LBB0_3
; %bb.2:
	orr	w20, w20, #0x4
	and	w21, w21, #0xfffffffd
	b	LBB0_4
LBB0_3:
	mov	x0, x19
	bl	_et1310_setup_device_for_multicast
	orr	w21, w21, #0x2
	and	w20, w20, #0xfffffffb
LBB0_4:
Lloh6:
	adrp	x8, _ET131X_PACKET_TYPE_DIRECTED@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ET131X_PACKET_TYPE_DIRECTED@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	tst	w8, w22
	b.eq	LBB0_6
; %bb.5:
	mov	x0, x19
	bl	_et1310_setup_device_for_unicast
	orr	w21, w21, #0x4
	and	w20, w20, #0xfffffffb
LBB0_6:
Lloh9:
	adrp	x8, _ET131X_PACKET_TYPE_BROADCAST@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ET131X_PACKET_TYPE_BROADCAST@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	tst	w8, w22
	cset	w8, ne
	and	w9, w20, #0xfffffffb
	and	w10, w21, #0xfffffffe
	csel	w20, w20, w9, eq
	orr	w0, w10, w8
	ldr	x8, [x19, #8]
	add	x1, x8, #4
	bl	_writel
	ldr	x1, [x19, #8]
	mov	x0, x20
	bl	_writel
LBB0_7:
	mov	w0, #0
	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
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_ET131X_PACKET_TYPE_PROMISCUOUS,4,2 ; @ET131X_PACKET_TYPE_PROMISCUOUS
	.comm	_ET131X_PACKET_TYPE_ALL_MULTICAST,4,2 ; @ET131X_PACKET_TYPE_ALL_MULTICAST
	.comm	_ET131X_PACKET_TYPE_DIRECTED,4,2 ; @ET131X_PACKET_TYPE_DIRECTED
	.comm	_ET131X_PACKET_TYPE_BROADCAST,4,2 ; @ET131X_PACKET_TYPE_BROADCAST
	.no_dead_strip	_et131x_set_packet_filter
.subsections_via_symbols
