	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function lan9303_separate_ports
_lan9303_separate_ports:                ## @lan9303_separate_ports
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	movq	_eth_stp_addr@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%edx, %edx
	callq	_lan9303_alr_del_port
	movq	_LAN9303_SWE_PORT_MIRROR_SNIFFER_PORT0@GOTPCREL(%rip), %rax
	movq	_LAN9303_SWE_PORT_MIRROR_MIRRORED_PORT1@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	orl	(%rax), %edx
	movq	_LAN9303_SWE_PORT_MIRROR_MIRRORED_PORT2@GOTPCREL(%rip), %rax
	orl	(%rax), %edx
	movq	_LAN9303_SWE_PORT_MIRROR@GOTPCREL(%rip), %rax
	movq	_LAN9303_SWE_PORT_MIRROR_ENABLE_RX_MIRRORING@GOTPCREL(%rip), %rcx
	orl	(%rcx), %edx
	movl	(%rax), %esi
	movq	_LAN9303_SWE_PORT_MIRROR_SNIFF_ALL@GOTPCREL(%rip), %rax
	orl	(%rax), %edx
	movq	%rbx, %rdi
	callq	_lan9303_write_switch_reg
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_2:
	movq	_LAN9303_SWE_PORT_STATE@GOTPCREL(%rip), %rax
	movq	_LAN9303_SWE_PORT_STATE_FORWARDING_PORT0@GOTPCREL(%rip), %rcx
	movq	_LAN9303_SWE_PORT_STATE_BLOCKING_PORT1@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	orl	(%rcx), %edx
	movl	(%rax), %esi
	movq	_LAN9303_SWE_PORT_STATE_BLOCKING_PORT2@GOTPCREL(%rip), %rax
	orl	(%rax), %edx
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_lan9303_write_switch_reg       ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_eth_stp_addr,4,2               ## @eth_stp_addr
	.comm	_LAN9303_SWE_PORT_MIRROR,4,2    ## @LAN9303_SWE_PORT_MIRROR
	.comm	_LAN9303_SWE_PORT_MIRROR_SNIFFER_PORT0,4,2 ## @LAN9303_SWE_PORT_MIRROR_SNIFFER_PORT0
	.comm	_LAN9303_SWE_PORT_MIRROR_MIRRORED_PORT1,4,2 ## @LAN9303_SWE_PORT_MIRROR_MIRRORED_PORT1
	.comm	_LAN9303_SWE_PORT_MIRROR_MIRRORED_PORT2,4,2 ## @LAN9303_SWE_PORT_MIRROR_MIRRORED_PORT2
	.comm	_LAN9303_SWE_PORT_MIRROR_ENABLE_RX_MIRRORING,4,2 ## @LAN9303_SWE_PORT_MIRROR_ENABLE_RX_MIRRORING
	.comm	_LAN9303_SWE_PORT_MIRROR_SNIFF_ALL,4,2 ## @LAN9303_SWE_PORT_MIRROR_SNIFF_ALL
	.comm	_LAN9303_SWE_PORT_STATE,4,2     ## @LAN9303_SWE_PORT_STATE
	.comm	_LAN9303_SWE_PORT_STATE_FORWARDING_PORT0,4,2 ## @LAN9303_SWE_PORT_STATE_FORWARDING_PORT0
	.comm	_LAN9303_SWE_PORT_STATE_BLOCKING_PORT1,4,2 ## @LAN9303_SWE_PORT_STATE_BLOCKING_PORT1
	.comm	_LAN9303_SWE_PORT_STATE_BLOCKING_PORT2,4,2 ## @LAN9303_SWE_PORT_STATE_BLOCKING_PORT2
	.no_dead_strip	_lan9303_separate_ports
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function lan9303_separate_ports
_lan9303_separate_ports:                ; @lan9303_separate_ports
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
Lloh0:
	adrp	x8, _eth_stp_addr@GOTPAGE
Lloh1:
	ldr	x8, [x8, _eth_stp_addr@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	w2, #0
	bl	_lan9303_alr_del_port
Lloh3:
	adrp	x8, _LAN9303_SWE_PORT_MIRROR@GOTPAGE
Lloh4:
	ldr	x8, [x8, _LAN9303_SWE_PORT_MIRROR@GOTPAGEOFF]
Lloh5:
	adrp	x9, _LAN9303_SWE_PORT_MIRROR_SNIFFER_PORT0@GOTPAGE
Lloh6:
	ldr	x9, [x9, _LAN9303_SWE_PORT_MIRROR_SNIFFER_PORT0@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
Lloh8:
	ldr	w8, [x9]
Lloh9:
	adrp	x9, _LAN9303_SWE_PORT_MIRROR_MIRRORED_PORT1@GOTPAGE
Lloh10:
	ldr	x9, [x9, _LAN9303_SWE_PORT_MIRROR_MIRRORED_PORT1@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh12:
	adrp	x9, _LAN9303_SWE_PORT_MIRROR_MIRRORED_PORT2@GOTPAGE
Lloh13:
	ldr	x9, [x9, _LAN9303_SWE_PORT_MIRROR_MIRRORED_PORT2@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh15:
	adrp	x9, _LAN9303_SWE_PORT_MIRROR_ENABLE_RX_MIRRORING@GOTPAGE
Lloh16:
	ldr	x9, [x9, _LAN9303_SWE_PORT_MIRROR_ENABLE_RX_MIRRORING@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh18:
	adrp	x9, _LAN9303_SWE_PORT_MIRROR_SNIFF_ALL@GOTPAGE
Lloh19:
	ldr	x9, [x9, _LAN9303_SWE_PORT_MIRROR_SNIFF_ALL@GOTPAGEOFF]
Lloh20:
	ldr	w9, [x9]
	orr	w2, w8, w9
	mov	x0, x19
	bl	_lan9303_write_switch_reg
	cbz	w0, LBB0_2
; %bb.1:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_2:
Lloh21:
	adrp	x8, _LAN9303_SWE_PORT_STATE@GOTPAGE
Lloh22:
	ldr	x8, [x8, _LAN9303_SWE_PORT_STATE@GOTPAGEOFF]
Lloh23:
	ldr	w1, [x8]
Lloh24:
	adrp	x8, _LAN9303_SWE_PORT_STATE_FORWARDING_PORT0@GOTPAGE
Lloh25:
	ldr	x8, [x8, _LAN9303_SWE_PORT_STATE_FORWARDING_PORT0@GOTPAGEOFF]
Lloh26:
	ldr	w8, [x8]
Lloh27:
	adrp	x9, _LAN9303_SWE_PORT_STATE_BLOCKING_PORT1@GOTPAGE
Lloh28:
	ldr	x9, [x9, _LAN9303_SWE_PORT_STATE_BLOCKING_PORT1@GOTPAGEOFF]
Lloh29:
	ldr	w9, [x9]
Lloh30:
	adrp	x10, _LAN9303_SWE_PORT_STATE_BLOCKING_PORT2@GOTPAGE
Lloh31:
	ldr	x10, [x10, _LAN9303_SWE_PORT_STATE_BLOCKING_PORT2@GOTPAGEOFF]
	orr	w8, w9, w8
Lloh32:
	ldr	w9, [x10]
	orr	w2, w8, w9
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_lan9303_write_switch_reg
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh7
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.comm	_eth_stp_addr,4,2               ; @eth_stp_addr
	.comm	_LAN9303_SWE_PORT_MIRROR,4,2    ; @LAN9303_SWE_PORT_MIRROR
	.comm	_LAN9303_SWE_PORT_MIRROR_SNIFFER_PORT0,4,2 ; @LAN9303_SWE_PORT_MIRROR_SNIFFER_PORT0
	.comm	_LAN9303_SWE_PORT_MIRROR_MIRRORED_PORT1,4,2 ; @LAN9303_SWE_PORT_MIRROR_MIRRORED_PORT1
	.comm	_LAN9303_SWE_PORT_MIRROR_MIRRORED_PORT2,4,2 ; @LAN9303_SWE_PORT_MIRROR_MIRRORED_PORT2
	.comm	_LAN9303_SWE_PORT_MIRROR_ENABLE_RX_MIRRORING,4,2 ; @LAN9303_SWE_PORT_MIRROR_ENABLE_RX_MIRRORING
	.comm	_LAN9303_SWE_PORT_MIRROR_SNIFF_ALL,4,2 ; @LAN9303_SWE_PORT_MIRROR_SNIFF_ALL
	.comm	_LAN9303_SWE_PORT_STATE,4,2     ; @LAN9303_SWE_PORT_STATE
	.comm	_LAN9303_SWE_PORT_STATE_FORWARDING_PORT0,4,2 ; @LAN9303_SWE_PORT_STATE_FORWARDING_PORT0
	.comm	_LAN9303_SWE_PORT_STATE_BLOCKING_PORT1,4,2 ; @LAN9303_SWE_PORT_STATE_BLOCKING_PORT1
	.comm	_LAN9303_SWE_PORT_STATE_BLOCKING_PORT2,4,2 ; @LAN9303_SWE_PORT_STATE_BLOCKING_PORT2
	.no_dead_strip	_lan9303_separate_ports
.subsections_via_symbols
