	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function typhoon_set_rx_mode
_typhoon_set_rx_mode:                   ## @typhoon_set_rx_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	%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, %r12
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	callq	_netdev_priv
	movq	%rax, %r14
	movq	_TYPHOON_RX_FILTER_DIRECTED@GOTPCREL(%rip), %rax
	movq	_TYPHOON_RX_FILTER_BROADCAST@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r15d
	orl	(%rax), %r15d
	movl	(%r12), %eax
	movq	_IFF_PROMISC@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_2
## %bb.1:
	movq	_TYPHOON_RX_FILTER_PROMISCOUS@GOTPCREL(%rip), %rax
	jmp	LBB0_11
LBB0_2:
	movq	8(%r12), %rcx
	movq	_multicast_filter_limit@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jg	LBB0_4
## %bb.3:
	movq	_IFF_ALLMULTI@GOTPCREL(%rip), %rdx
	testl	%eax, (%rdx)
	je	LBB0_5
LBB0_4:
	movq	_TYPHOON_RX_FILTER_ALL_MCAST@GOTPCREL(%rip), %rax
LBB0_11:
	orl	(%rax), %r15d
LBB0_12:
	movq	_TYPHOON_CMD_SET_RX_FILTER@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-80(%rbp), %rbx
	movq	%rbx, %rdi
	callq	_INIT_COMMAND_NO_RESPONSE
	movl	%r15d, -80(%rbp)
	movq	%r14, %rdi
	movl	$1, %esi
	movq	%rbx, %rdx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	callq	_typhoon_issue_command
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_14
## %bb.13:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	testq	%rcx, %rcx
	je	LBB0_12
## %bb.6:
	leaq	-56(%rbp), %rdi
	xorl	%esi, %esi
	movl	$8, %edx
	callq	_memset
	movq	16(%r12), %rbx
	testq	%rbx, %rbx
	je	LBB0_10
## %bb.7:
	movq	$-1, %r13
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	incq	%r13
	cmpq	%r13, 8(%r12)
	jle	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=1
	movq	_ETH_ALEN@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%rbx), %esi
	callq	_ether_crc
                                        ## kill: def $eax killed $eax def $rax
	movl	$1, %edx
	movl	%eax, %ecx
	shll	%cl, %edx
	shrl	$5, %eax
	andl	$1, %eax
	orl	%edx, -56(%rbp,%rax,4)
	movq	8(%rbx), %rbx
	testq	%rbx, %rbx
	jne	LBB0_8
LBB0_10:
	movq	_TYPHOON_CMD_SET_MULTICAST_HASH@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-80(%rbp), %rbx
	movq	%rbx, %rdi
	callq	_INIT_COMMAND_NO_RESPONSE
	movq	_TYPHOON_MCAST_HASH_SET@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -80(%rbp)
	movl	-56(%rbp), %edi
	callq	_cpu_to_le32
	movq	%rax, -64(%rbp)
	movl	-52(%rbp), %edi
	callq	_cpu_to_le32
	movq	%rax, -72(%rbp)
	movq	%r14, %rdi
	movl	$1, %esi
	movq	%rbx, %rdx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	callq	_typhoon_issue_command
	movq	_TYPHOON_RX_FILTER_MCAST_HASH@GOTPCREL(%rip), %rax
	jmp	LBB0_11
LBB0_14:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_TYPHOON_RX_FILTER_DIRECTED,4,2 ## @TYPHOON_RX_FILTER_DIRECTED
	.comm	_TYPHOON_RX_FILTER_BROADCAST,4,2 ## @TYPHOON_RX_FILTER_BROADCAST
	.comm	_IFF_PROMISC,4,2                ## @IFF_PROMISC
	.comm	_TYPHOON_RX_FILTER_PROMISCOUS,4,2 ## @TYPHOON_RX_FILTER_PROMISCOUS
	.comm	_multicast_filter_limit,8,3     ## @multicast_filter_limit
	.comm	_IFF_ALLMULTI,4,2               ## @IFF_ALLMULTI
	.comm	_TYPHOON_RX_FILTER_ALL_MCAST,4,2 ## @TYPHOON_RX_FILTER_ALL_MCAST
	.comm	_ETH_ALEN,4,2                   ## @ETH_ALEN
	.comm	_TYPHOON_CMD_SET_MULTICAST_HASH,4,2 ## @TYPHOON_CMD_SET_MULTICAST_HASH
	.comm	_TYPHOON_MCAST_HASH_SET,4,2     ## @TYPHOON_MCAST_HASH_SET
	.comm	_TYPHOON_RX_FILTER_MCAST_HASH,4,2 ## @TYPHOON_RX_FILTER_MCAST_HASH
	.comm	_TYPHOON_CMD_SET_RX_FILTER,4,2  ## @TYPHOON_CMD_SET_RX_FILTER
	.no_dead_strip	_typhoon_set_rx_mode
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function typhoon_set_rx_mode
_typhoon_set_rx_mode:                   ; @typhoon_set_rx_mode
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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	x20, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #40]
	bl	_netdev_priv
	mov	x19, x0
Lloh3:
	adrp	x8, _TYPHOON_RX_FILTER_DIRECTED@GOTPAGE
Lloh4:
	ldr	x8, [x8, _TYPHOON_RX_FILTER_DIRECTED@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
Lloh6:
	adrp	x9, _TYPHOON_RX_FILTER_BROADCAST@GOTPAGE
Lloh7:
	ldr	x9, [x9, _TYPHOON_RX_FILTER_BROADCAST@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	orr	w21, w9, w8
	ldr	w8, [x20]
Lloh9:
	adrp	x9, _IFF_PROMISC@GOTPAGE
Lloh10:
	ldr	x9, [x9, _IFF_PROMISC@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_2
; %bb.1:
Lloh12:
	adrp	x8, _TYPHOON_RX_FILTER_PROMISCOUS@GOTPAGE
Lloh13:
	ldr	x8, [x8, _TYPHOON_RX_FILTER_PROMISCOUS@GOTPAGEOFF]
	b	LBB0_5
LBB0_2:
	ldr	x9, [x20, #8]
Lloh14:
	adrp	x10, _multicast_filter_limit@GOTPAGE
Lloh15:
	ldr	x10, [x10, _multicast_filter_limit@GOTPAGEOFF]
Lloh16:
	ldr	x10, [x10]
	cmp	x9, x10
	b.gt	LBB0_4
; %bb.3:
Lloh17:
	adrp	x10, _IFF_ALLMULTI@GOTPAGE
Lloh18:
	ldr	x10, [x10, _IFF_ALLMULTI@GOTPAGEOFF]
Lloh19:
	ldr	w10, [x10]
	tst	w10, w8
	b.eq	LBB0_8
LBB0_4:
Lloh20:
	adrp	x8, _TYPHOON_RX_FILTER_ALL_MCAST@GOTPAGE
Lloh21:
	ldr	x8, [x8, _TYPHOON_RX_FILTER_ALL_MCAST@GOTPAGEOFF]
LBB0_5:
	ldr	w8, [x8]
	orr	w21, w8, w21
LBB0_6:
Lloh22:
	adrp	x8, _TYPHOON_CMD_SET_RX_FILTER@GOTPAGE
Lloh23:
	ldr	x8, [x8, _TYPHOON_CMD_SET_RX_FILTER@GOTPAGEOFF]
Lloh24:
	ldr	w1, [x8]
	add	x0, sp, #8
	bl	_INIT_COMMAND_NO_RESPONSE
	str	w21, [sp, #8]
	add	x2, sp, #8
	mov	x0, x19
	mov	w1, #1
	mov	w3, #0
	mov	x4, #0
	bl	_typhoon_issue_command
	ldr	x8, [sp, #40]
Lloh25:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh26:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh27:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_14
; %bb.7:
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
LBB0_8:
	cbz	x9, LBB0_6
; %bb.9:
	add	x22, sp, #32
	add	x0, sp, #32
	mov	w1, #0
	mov	w2, #8
	bl	_memset
	ldr	x23, [x20, #16]
	cbz	x23, LBB0_13
; %bb.10:
	mov	x24, #-1
Lloh28:
	adrp	x25, _ETH_ALEN@GOTPAGE
Lloh29:
	ldr	x25, [x25, _ETH_ALEN@GOTPAGEOFF]
	mov	w26, #1
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x20, #8]
	add	x24, x24, #1
	cmp	x8, x24
	b.le	LBB0_13
; %bb.12:                               ;   in Loop: Header=BB0_11 Depth=1
	ldr	w0, [x25]
	ldr	w1, [x23]
	bl	_ether_crc
	lsl	w8, w26, w0
	ubfx	w9, w0, #5, #1
	lsl	x9, x9, #2
	ldr	w10, [x22, x9]
	orr	w8, w8, w10
	str	w8, [x22, x9]
	ldr	x23, [x23, #8]
	cbnz	x23, LBB0_11
LBB0_13:
Lloh30:
	adrp	x8, _TYPHOON_CMD_SET_MULTICAST_HASH@GOTPAGE
Lloh31:
	ldr	x8, [x8, _TYPHOON_CMD_SET_MULTICAST_HASH@GOTPAGEOFF]
Lloh32:
	ldr	w1, [x8]
	add	x0, sp, #8
	bl	_INIT_COMMAND_NO_RESPONSE
Lloh33:
	adrp	x8, _TYPHOON_MCAST_HASH_SET@GOTPAGE
Lloh34:
	ldr	x8, [x8, _TYPHOON_MCAST_HASH_SET@GOTPAGEOFF]
Lloh35:
	ldr	w8, [x8]
	str	w8, [sp, #8]
	ldr	w0, [sp, #32]
	bl	_cpu_to_le32
	str	x0, [sp, #24]
	ldr	w0, [sp, #36]
	bl	_cpu_to_le32
	str	x0, [sp, #16]
	add	x2, sp, #8
	mov	x0, x19
	mov	w1, #1
	mov	w3, #0
	mov	x4, #0
	bl	_typhoon_issue_command
Lloh36:
	adrp	x8, _TYPHOON_RX_FILTER_MCAST_HASH@GOTPAGE
Lloh37:
	ldr	x8, [x8, _TYPHOON_RX_FILTER_MCAST_HASH@GOTPAGEOFF]
	b	LBB0_5
LBB0_14:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh28, Lloh29
	.loh AdrpLdrGot	Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.cfi_endproc
                                        ; -- End function
	.comm	_TYPHOON_RX_FILTER_DIRECTED,4,2 ; @TYPHOON_RX_FILTER_DIRECTED
	.comm	_TYPHOON_RX_FILTER_BROADCAST,4,2 ; @TYPHOON_RX_FILTER_BROADCAST
	.comm	_IFF_PROMISC,4,2                ; @IFF_PROMISC
	.comm	_TYPHOON_RX_FILTER_PROMISCOUS,4,2 ; @TYPHOON_RX_FILTER_PROMISCOUS
	.comm	_multicast_filter_limit,8,3     ; @multicast_filter_limit
	.comm	_IFF_ALLMULTI,4,2               ; @IFF_ALLMULTI
	.comm	_TYPHOON_RX_FILTER_ALL_MCAST,4,2 ; @TYPHOON_RX_FILTER_ALL_MCAST
	.comm	_ETH_ALEN,4,2                   ; @ETH_ALEN
	.comm	_TYPHOON_CMD_SET_MULTICAST_HASH,4,2 ; @TYPHOON_CMD_SET_MULTICAST_HASH
	.comm	_TYPHOON_MCAST_HASH_SET,4,2     ; @TYPHOON_MCAST_HASH_SET
	.comm	_TYPHOON_RX_FILTER_MCAST_HASH,4,2 ; @TYPHOON_RX_FILTER_MCAST_HASH
	.comm	_TYPHOON_CMD_SET_RX_FILTER,4,2  ; @TYPHOON_CMD_SET_RX_FILTER
	.no_dead_strip	_typhoon_set_rx_mode
.subsections_via_symbols
