	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ksz9477_port_mirror_add
_ksz9477_port_mirror_add:               ## @ksz9477_port_mirror_add
	.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	%rdx, %r14
	movl	%esi, %r15d
	movq	(%rdi), %rbx
	movq	_P_MIRROR_CTRL@GOTPCREL(%rip), %r12
	movl	(%r12), %edx
	testl	%ecx, %ecx
	jne	LBB0_1
## %bb.2:
	movq	_PORT_MIRROR_TX@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_1:
	movq	_PORT_MIRROR_RX@GOTPCREL(%rip), %rax
LBB0_3:
	movl	(%rax), %ecx
	movq	%rbx, %rdi
	movl	%r15d, %esi
	movl	$1, %r8d
	callq	_ksz_port_cfg
	movl	(%r12), %edx
	movq	_PORT_MIRROR_SNIFFER@GOTPCREL(%rip), %r13
	movl	(%r13), %ecx
	movq	%rbx, %rdi
	movl	%r15d, %esi
	xorl	%r8d, %r8d
	callq	_ksz_port_cfg
	movl	(%r14), %esi
	movl	(%r12), %edx
	movl	(%r13), %ecx
	movq	%rbx, %rdi
	movl	$1, %r8d
	callq	_ksz_port_cfg
	movq	_S_MIRROR_CTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_SW_MIRROR_RX_TX@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	xorl	%ecx, %ecx
	callq	_ksz_cfg
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_P_MIRROR_CTRL,4,2              ## @P_MIRROR_CTRL
	.comm	_PORT_MIRROR_RX,4,2             ## @PORT_MIRROR_RX
	.comm	_PORT_MIRROR_TX,4,2             ## @PORT_MIRROR_TX
	.comm	_PORT_MIRROR_SNIFFER,4,2        ## @PORT_MIRROR_SNIFFER
	.comm	_S_MIRROR_CTRL,4,2              ## @S_MIRROR_CTRL
	.comm	_SW_MIRROR_RX_TX,4,2            ## @SW_MIRROR_RX_TX
	.no_dead_strip	_ksz9477_port_mirror_add
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ksz9477_port_mirror_add
_ksz9477_port_mirror_add:               ; @ksz9477_port_mirror_add
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x19, x2
	mov	x20, x1
	ldr	x21, [x0]
Lloh0:
	adrp	x22, _P_MIRROR_CTRL@GOTPAGE
Lloh1:
	ldr	x22, [x22, _P_MIRROR_CTRL@GOTPAGEOFF]
Lloh2:
	adrp	x8, _PORT_MIRROR_TX@GOTPAGE
Lloh3:
	ldr	x8, [x8, _PORT_MIRROR_TX@GOTPAGEOFF]
	ldr	w2, [x22]
Lloh4:
	adrp	x9, _PORT_MIRROR_RX@GOTPAGE
Lloh5:
	ldr	x9, [x9, _PORT_MIRROR_RX@GOTPAGEOFF]
	cmp	w3, #0
	csel	x8, x8, x9, eq
	ldr	w3, [x8]
	mov	x0, x21
	mov	w4, #1
	bl	_ksz_port_cfg
	ldr	w2, [x22]
Lloh6:
	adrp	x23, _PORT_MIRROR_SNIFFER@GOTPAGE
Lloh7:
	ldr	x23, [x23, _PORT_MIRROR_SNIFFER@GOTPAGEOFF]
	ldr	w3, [x23]
	mov	x0, x21
	mov	x1, x20
	mov	w4, #0
	bl	_ksz_port_cfg
	ldr	w1, [x19]
	ldr	w2, [x22]
	ldr	w3, [x23]
	mov	x0, x21
	mov	w4, #1
	bl	_ksz_port_cfg
Lloh8:
	adrp	x8, _S_MIRROR_CTRL@GOTPAGE
Lloh9:
	ldr	x8, [x8, _S_MIRROR_CTRL@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
Lloh11:
	adrp	x8, _SW_MIRROR_RX_TX@GOTPAGE
Lloh12:
	ldr	x8, [x8, _SW_MIRROR_RX_TX@GOTPAGEOFF]
Lloh13:
	ldr	w2, [x8]
	mov	x0, x21
	mov	w3, #0
	bl	_ksz_cfg
	mov	w0, #0
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_P_MIRROR_CTRL,4,2              ; @P_MIRROR_CTRL
	.comm	_PORT_MIRROR_RX,4,2             ; @PORT_MIRROR_RX
	.comm	_PORT_MIRROR_TX,4,2             ; @PORT_MIRROR_TX
	.comm	_PORT_MIRROR_SNIFFER,4,2        ; @PORT_MIRROR_SNIFFER
	.comm	_S_MIRROR_CTRL,4,2              ; @S_MIRROR_CTRL
	.comm	_SW_MIRROR_RX_TX,4,2            ; @SW_MIRROR_RX_TX
	.no_dead_strip	_ksz9477_port_mirror_add
.subsections_via_symbols
