	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ksz9477_port_mirror_del
_ksz9477_port_mirror_del:               ## @ksz9477_port_mirror_del
	.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, %ebx
	cmpq	$0, 8(%rdx)
	movq	(%rdi), %r15
	movq	_P_MIRROR_CTRL@GOTPCREL(%rip), %r12
	movl	(%r12), %edx
	movq	_PORT_MIRROR_TX@GOTPCREL(%rip), %r13
	movq	_PORT_MIRROR_RX@GOTPCREL(%rip), %rax
	cmoveq	%r13, %rax
	movl	(%rax), %ecx
	movq	%r15, %rdi
	xorl	%r8d, %r8d
	callq	_ksz_port_cfg
	movl	(%r12), %edx
	leaq	-44(%rbp), %rcx
	movq	%r15, %rdi
	movl	%ebx, %esi
	callq	_ksz_pread8
	movl	(%r13), %eax
	movq	_PORT_MIRROR_RX@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	testl	%eax, -44(%rbp)
	jne	LBB0_2
## %bb.1:
	movl	(%r14), %esi
	movq	_P_MIRROR_CTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_PORT_MIRROR_SNIFFER@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r15, %rdi
	xorl	%r8d, %r8d
	callq	_ksz_port_cfg
LBB0_2:
	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
	.no_dead_strip	_ksz9477_port_mirror_del
.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_del
_ksz9477_port_mirror_del:               ; @ksz9477_port_mirror_del
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x20, x2
	mov	x21, x1
	ldr	x19, [x0]
	ldr	x8, [x2, #8]
Lloh0:
	adrp	x22, _P_MIRROR_CTRL@GOTPAGE
Lloh1:
	ldr	x22, [x22, _P_MIRROR_CTRL@GOTPAGEOFF]
Lloh2:
	adrp	x23, _PORT_MIRROR_TX@GOTPAGE
Lloh3:
	ldr	x23, [x23, _PORT_MIRROR_TX@GOTPAGEOFF]
	ldr	w2, [x22]
Lloh4:
	adrp	x24, _PORT_MIRROR_RX@GOTPAGE
Lloh5:
	ldr	x24, [x24, _PORT_MIRROR_RX@GOTPAGEOFF]
	cmp	x8, #0
	csel	x8, x23, x24, eq
	ldr	w3, [x8]
	mov	x0, x19
	mov	w4, #0
	bl	_ksz_port_cfg
	ldr	w2, [x22]
	add	x3, sp, #12
	mov	x0, x19
	mov	x1, x21
	bl	_ksz_pread8
	ldr	w8, [sp, #12]
	ldr	w9, [x24]
	ldr	w10, [x23]
	orr	w9, w10, w9
	tst	w9, w8
	b.ne	LBB0_2
; %bb.1:
	ldr	w1, [x20]
	ldr	w2, [x22]
Lloh6:
	adrp	x8, _PORT_MIRROR_SNIFFER@GOTPAGE
Lloh7:
	ldr	x8, [x8, _PORT_MIRROR_SNIFFER@GOTPAGEOFF]
Lloh8:
	ldr	w3, [x8]
	mov	x0, x19
	mov	w4, #0
	bl	_ksz_port_cfg
LBB0_2:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.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
	.no_dead_strip	_ksz9477_port_mirror_del
.subsections_via_symbols
