	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pm3393_set_rx_mode
_pm3393_set_rx_mode:                    ## @pm3393_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	%rsi, %rbx
	movq	%rdi, %r15
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	(%rdi), %rax
	movl	(%rax), %ecx
	movq	_MAC_DIRECTION_RX@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movl	%ecx, -72(%rbp)                 ## 4-byte Spill
	testl	%ecx, %r14d
	je	LBB0_2
## %bb.1:
	movq	%r15, %rdi
	movl	%r14d, %esi
	callq	_pm3393_disable
LBB0_2:
	movq	_SUNI1x10GEXP_REG_RXXG_ADDRESS_FILTER_CONTROL_2@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	leaq	-68(%rbp), %rdx
	movq	%r15, %rdi
	callq	_pmread
	movq	_SUNI1x10GEXP_BITMSK_RXXG_PMODE@GOTPCREL(%rip), %r13
	movq	_SUNI1x10GEXP_BITMSK_RXXG_MHASH_EN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	orl	(%r13), %edx
	notl	%edx
	andl	-68(%rbp), %edx
	movl	%edx, -68(%rbp)
	movl	(%r12), %esi
	movq	%r15, %rdi
	callq	_pmwrite
	movq	%rbx, %rdi
	callq	_t1_rx_mode_promisc
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movl	(%r13), %eax
	orl	%eax, -68(%rbp)
LBB0_4:
	movq	%rbx, %rdi
	callq	_t1_rx_mode_allmulti
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	movq	_SUNI1x10GEXP_REG_RXXG_MULTICAST_HASH_LOW@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	movl	$65535, %edx                    ## imm = 0xFFFF
	callq	_pmwrite
	movq	_SUNI1x10GEXP_REG_RXXG_MULTICAST_HASH_MIDLOW@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	movl	$65535, %edx                    ## imm = 0xFFFF
	callq	_pmwrite
	movq	_SUNI1x10GEXP_REG_RXXG_MULTICAST_HASH_MIDHIGH@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	movl	$65535, %edx                    ## imm = 0xFFFF
	callq	_pmwrite
	movq	_SUNI1x10GEXP_REG_RXXG_MULTICAST_HASH_HIGH@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	movl	$65535, %edx                    ## imm = 0xFFFF
	jmp	LBB0_14
LBB0_6:
	movq	%rbx, %rdi
	callq	_t1_rx_mode_mc_cnt
	testq	%rax, %rax
	je	LBB0_7
## %bb.8:
	xorps	%xmm0, %xmm0
	movaps	%xmm0, -64(%rbp)
	movq	%rbx, %rdi
	callq	_t1_get_next_mcaddr
	testq	%rax, %rax
	je	LBB0_9
## %bb.10:
	movq	_ETH_ALEN@GOTPCREL(%rip), %r13
	.p2align	4, 0x90
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	movl	(%r13), %edi
	movq	%rax, %rsi
	callq	_ether_crc
                                        ## kill: def $eax killed $eax def $rax
	movl	%eax, %ecx
	shrl	$23, %ecx
	andb	$15, %cl
	movl	$1, %edx
                                        ## kill: def $cl killed $cl killed $ecx
	shll	%cl, %edx
	shrl	$27, %eax
	andl	$3, %eax
	orl	%edx, -64(%rbp,%rax,4)
	movq	%rbx, %rdi
	callq	_t1_get_next_mcaddr
	testq	%rax, %rax
	jne	LBB0_11
## %bb.12:
	movl	-64(%rbp), %edx
	movl	-60(%rbp), %ebx
	movl	-56(%rbp), %r13d
	movl	-52(%rbp), %r12d
	jmp	LBB0_13
LBB0_7:
	movl	-68(%rbp), %edx
	jmp	LBB0_15
LBB0_9:
	xorl	%r12d, %r12d
	xorl	%r13d, %r13d
	xorl	%ebx, %ebx
	xorl	%edx, %edx
LBB0_13:
	movq	_SUNI1x10GEXP_REG_RXXG_MULTICAST_HASH_LOW@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_pmwrite
	movq	_SUNI1x10GEXP_REG_RXXG_MULTICAST_HASH_MIDLOW@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	movl	%ebx, %edx
	callq	_pmwrite
	movq	_SUNI1x10GEXP_REG_RXXG_MULTICAST_HASH_MIDHIGH@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	movl	%r13d, %edx
	callq	_pmwrite
	movq	_SUNI1x10GEXP_REG_RXXG_MULTICAST_HASH_HIGH@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	movl	%r12d, %edx
LBB0_14:
	callq	_pmwrite
	movl	-68(%rbp), %edx
	movq	_SUNI1x10GEXP_BITMSK_RXXG_MHASH_EN@GOTPCREL(%rip), %rax
	orl	(%rax), %edx
	movl	%edx, -68(%rbp)
LBB0_15:
	movq	_SUNI1x10GEXP_REG_RXXG_ADDRESS_FILTER_CONTROL_2@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_pmwrite
	testl	%r14d, -72(%rbp)                ## 4-byte Folded Reload
	je	LBB0_17
## %bb.16:
	movq	_MAC_DIRECTION_RX@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_pm3393_enable
LBB0_17:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_19
## %bb.18:
	xorl	%eax, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_19:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_MAC_DIRECTION_RX,4,2           ## @MAC_DIRECTION_RX
	.comm	_SUNI1x10GEXP_REG_RXXG_ADDRESS_FILTER_CONTROL_2,4,2 ## @SUNI1x10GEXP_REG_RXXG_ADDRESS_FILTER_CONTROL_2
	.comm	_SUNI1x10GEXP_BITMSK_RXXG_PMODE,4,2 ## @SUNI1x10GEXP_BITMSK_RXXG_PMODE
	.comm	_SUNI1x10GEXP_BITMSK_RXXG_MHASH_EN,4,2 ## @SUNI1x10GEXP_BITMSK_RXXG_MHASH_EN
	.comm	_SUNI1x10GEXP_REG_RXXG_MULTICAST_HASH_LOW,4,2 ## @SUNI1x10GEXP_REG_RXXG_MULTICAST_HASH_LOW
	.comm	_SUNI1x10GEXP_REG_RXXG_MULTICAST_HASH_MIDLOW,4,2 ## @SUNI1x10GEXP_REG_RXXG_MULTICAST_HASH_MIDLOW
	.comm	_SUNI1x10GEXP_REG_RXXG_MULTICAST_HASH_MIDHIGH,4,2 ## @SUNI1x10GEXP_REG_RXXG_MULTICAST_HASH_MIDHIGH
	.comm	_SUNI1x10GEXP_REG_RXXG_MULTICAST_HASH_HIGH,4,2 ## @SUNI1x10GEXP_REG_RXXG_MULTICAST_HASH_HIGH
	.comm	_ETH_ALEN,4,2                   ## @ETH_ALEN
	.no_dead_strip	_pm3393_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 pm3393_set_rx_mode
_pm3393_set_rx_mode:                    ; @pm3393_set_rx_mode
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #24]
	ldr	x8, [x0]
	ldr	w8, [x8]
Lloh3:
	adrp	x23, _MAC_DIRECTION_RX@GOTPAGE
Lloh4:
	ldr	x23, [x23, _MAC_DIRECTION_RX@GOTPAGEOFF]
	ldr	w1, [x23]
	ands	w24, w1, w8
	b.eq	LBB0_2
; %bb.1:
	mov	x0, x19
	bl	_pm3393_disable
LBB0_2:
Lloh5:
	adrp	x25, _SUNI1x10GEXP_REG_RXXG_ADDRESS_FILTER_CONTROL_2@GOTPAGE
Lloh6:
	ldr	x25, [x25, _SUNI1x10GEXP_REG_RXXG_ADDRESS_FILTER_CONTROL_2@GOTPAGEOFF]
	ldr	w1, [x25]
	add	x2, sp, #4
	mov	x0, x19
	bl	_pmread
Lloh7:
	adrp	x21, _SUNI1x10GEXP_BITMSK_RXXG_PMODE@GOTPAGE
Lloh8:
	ldr	x21, [x21, _SUNI1x10GEXP_BITMSK_RXXG_PMODE@GOTPAGEOFF]
	ldr	w8, [x21]
Lloh9:
	adrp	x26, _SUNI1x10GEXP_BITMSK_RXXG_MHASH_EN@GOTPAGE
Lloh10:
	ldr	x26, [x26, _SUNI1x10GEXP_BITMSK_RXXG_MHASH_EN@GOTPAGEOFF]
	ldr	w9, [x26]
	orr	w8, w9, w8
	ldr	w9, [sp, #4]
	bic	w2, w9, w8
	str	w2, [sp, #4]
	ldr	w1, [x25]
	mov	x0, x19
	bl	_pmwrite
	mov	x0, x20
	bl	_t1_rx_mode_promisc
	cbz	x0, LBB0_4
; %bb.3:
	ldr	w8, [x21]
	ldr	w9, [sp, #4]
	orr	w8, w9, w8
	str	w8, [sp, #4]
LBB0_4:
	mov	x0, x20
	bl	_t1_rx_mode_allmulti
	cbz	x0, LBB0_6
; %bb.5:
Lloh11:
	adrp	x8, _SUNI1x10GEXP_REG_RXXG_MULTICAST_HASH_LOW@GOTPAGE
Lloh12:
	ldr	x8, [x8, _SUNI1x10GEXP_REG_RXXG_MULTICAST_HASH_LOW@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #65535
	bl	_pmwrite
Lloh14:
	adrp	x8, _SUNI1x10GEXP_REG_RXXG_MULTICAST_HASH_MIDLOW@GOTPAGE
Lloh15:
	ldr	x8, [x8, _SUNI1x10GEXP_REG_RXXG_MULTICAST_HASH_MIDLOW@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #65535
	bl	_pmwrite
Lloh17:
	adrp	x8, _SUNI1x10GEXP_REG_RXXG_MULTICAST_HASH_MIDHIGH@GOTPAGE
Lloh18:
	ldr	x8, [x8, _SUNI1x10GEXP_REG_RXXG_MULTICAST_HASH_MIDHIGH@GOTPAGEOFF]
Lloh19:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #65535
	bl	_pmwrite
Lloh20:
	adrp	x8, _SUNI1x10GEXP_REG_RXXG_MULTICAST_HASH_HIGH@GOTPAGE
Lloh21:
	ldr	x8, [x8, _SUNI1x10GEXP_REG_RXXG_MULTICAST_HASH_HIGH@GOTPAGEOFF]
Lloh22:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #65535
	b	LBB0_14
LBB0_6:
	mov	x0, x20
	bl	_t1_rx_mode_mc_cnt
	cbz	x0, LBB0_11
; %bb.7:
	stp	xzr, xzr, [sp, #8]
	mov	x0, x20
	bl	_t1_get_next_mcaddr
	cbz	x0, LBB0_12
; %bb.8:
	mov	x1, x0
Lloh23:
	adrp	x21, _ETH_ALEN@GOTPAGE
Lloh24:
	ldr	x21, [x21, _ETH_ALEN@GOTPAGEOFF]
	mov	w22, #1
	add	x27, sp, #8
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x21]
	bl	_ether_crc
	ubfx	w8, w0, #23, #4
	lsl	w8, w22, w8
	ubfx	w9, w0, #27, #2
	lsl	x9, x9, #2
	ldr	w10, [x27, x9]
	orr	w8, w8, w10
	str	w8, [x27, x9]
	mov	x0, x20
	bl	_t1_get_next_mcaddr
	mov	x1, x0
	cbnz	x0, LBB0_9
; %bb.10:
	ldp	w2, w22, [sp, #8]
	ldp	w21, w20, [sp, #16]
	b	LBB0_13
LBB0_11:
	ldr	w2, [sp, #4]
	b	LBB0_15
LBB0_12:
	mov	w20, #0
	mov	w21, #0
	mov	w22, #0
	mov	w2, #0
LBB0_13:
Lloh25:
	adrp	x8, _SUNI1x10GEXP_REG_RXXG_MULTICAST_HASH_LOW@GOTPAGE
Lloh26:
	ldr	x8, [x8, _SUNI1x10GEXP_REG_RXXG_MULTICAST_HASH_LOW@GOTPAGEOFF]
Lloh27:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_pmwrite
Lloh28:
	adrp	x8, _SUNI1x10GEXP_REG_RXXG_MULTICAST_HASH_MIDLOW@GOTPAGE
Lloh29:
	ldr	x8, [x8, _SUNI1x10GEXP_REG_RXXG_MULTICAST_HASH_MIDLOW@GOTPAGEOFF]
Lloh30:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, x22
	bl	_pmwrite
Lloh31:
	adrp	x8, _SUNI1x10GEXP_REG_RXXG_MULTICAST_HASH_MIDHIGH@GOTPAGE
Lloh32:
	ldr	x8, [x8, _SUNI1x10GEXP_REG_RXXG_MULTICAST_HASH_MIDHIGH@GOTPAGEOFF]
Lloh33:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, x21
	bl	_pmwrite
Lloh34:
	adrp	x8, _SUNI1x10GEXP_REG_RXXG_MULTICAST_HASH_HIGH@GOTPAGE
Lloh35:
	ldr	x8, [x8, _SUNI1x10GEXP_REG_RXXG_MULTICAST_HASH_HIGH@GOTPAGEOFF]
Lloh36:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, x20
LBB0_14:
	bl	_pmwrite
	ldr	w8, [x26]
	ldr	w9, [sp, #4]
	orr	w2, w9, w8
	str	w2, [sp, #4]
LBB0_15:
	ldr	w1, [x25]
	mov	x0, x19
	bl	_pmwrite
	cbz	w24, LBB0_17
; %bb.16:
	ldr	w1, [x23]
	mov	x0, x19
	bl	_pm3393_enable
LBB0_17:
	ldr	x8, [sp, #24]
Lloh37:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh38:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh39:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_19
; %bb.18:
	mov	w0, #0
	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
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
LBB0_19:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.cfi_endproc
                                        ; -- End function
	.comm	_MAC_DIRECTION_RX,4,2           ; @MAC_DIRECTION_RX
	.comm	_SUNI1x10GEXP_REG_RXXG_ADDRESS_FILTER_CONTROL_2,4,2 ; @SUNI1x10GEXP_REG_RXXG_ADDRESS_FILTER_CONTROL_2
	.comm	_SUNI1x10GEXP_BITMSK_RXXG_PMODE,4,2 ; @SUNI1x10GEXP_BITMSK_RXXG_PMODE
	.comm	_SUNI1x10GEXP_BITMSK_RXXG_MHASH_EN,4,2 ; @SUNI1x10GEXP_BITMSK_RXXG_MHASH_EN
	.comm	_SUNI1x10GEXP_REG_RXXG_MULTICAST_HASH_LOW,4,2 ; @SUNI1x10GEXP_REG_RXXG_MULTICAST_HASH_LOW
	.comm	_SUNI1x10GEXP_REG_RXXG_MULTICAST_HASH_MIDLOW,4,2 ; @SUNI1x10GEXP_REG_RXXG_MULTICAST_HASH_MIDLOW
	.comm	_SUNI1x10GEXP_REG_RXXG_MULTICAST_HASH_MIDHIGH,4,2 ; @SUNI1x10GEXP_REG_RXXG_MULTICAST_HASH_MIDHIGH
	.comm	_SUNI1x10GEXP_REG_RXXG_MULTICAST_HASH_HIGH,4,2 ; @SUNI1x10GEXP_REG_RXXG_MULTICAST_HASH_HIGH
	.comm	_ETH_ALEN,4,2                   ; @ETH_ALEN
	.no_dead_strip	_pm3393_set_rx_mode
.subsections_via_symbols
