	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ksz8795_flush_dyn_mac_table
_ksz8795_flush_dyn_mac_table:           ## @ksz8795_flush_dyn_mac_table
	.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
	movl	%esi, %r15d
	movq	%rdi, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_TOTAL_PORT_NUM@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	%rbx, %rax
	shlq	$2, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, -72(%rbp)                 ## 8-byte Spill
	cmpl	%r15d, %ebx
	jle	LBB0_2
## %bb.1:
	movl	%r15d, %esi
	movslq	%r15d, %r12
	incl	%esi
	movq	%r14, %rdi
	jmp	LBB0_4
LBB0_2:
	movl	(%r14), %esi
	testl	%esi, %esi
	movq	%r14, %rdi
	jle	LBB0_16
## %bb.3:
	xorl	%r12d, %r12d
LBB0_4:
	leaq	(,%r12,4), %r15
	movq	_PORT_LEARN_DISABLE@GOTPCREL(%rip), %r13
	movl	%r12d, %ebx
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	movl	%esi, -60(%rbp)                 ## 4-byte Spill
	movq	-72(%rbp), %r14                 ## 8-byte Reload
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_5 Depth=1
	incl	%ebx
	addq	$4, %r15
	cmpl	%ebx, %esi
	je	LBB0_9
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%rdi), %rax
	cmpl	$0, (%rax,%r15)
	je	LBB0_8
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	_P_STP_CTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	(%r14,%r15), %rcx
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movl	%ebx, %esi
	callq	_ksz_pread8
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movl	-60(%rbp), %esi                 ## 4-byte Reload
	movl	(%r14,%r15), %eax
	movl	(%r13), %ecx
	testl	%eax, %ecx
	jne	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	_P_STP_CTRL@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	orl	%eax, %ecx
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movl	%ebx, %esi
	callq	_ksz_pwrite8
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movl	-60(%rbp), %esi                 ## 4-byte Reload
	jmp	LBB0_8
LBB0_9:
	movq	_S_FLUSH_TABLE_CTRL@GOTPCREL(%rip), %rax
	movl	%esi, %ebx
	movl	(%rax), %esi
	movq	_SW_FLUSH_DYN_MAC_TABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movl	$1, %ecx
	callq	_ksz_cfg
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	movl	%ebx, %ebx
	jmp	LBB0_10
	.p2align	4, 0x90
LBB0_13:                                ##   in Loop: Header=BB0_10 Depth=1
	incq	%r12
	cmpl	%r12d, %ebx
	je	LBB0_14
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	movq	8(%rdx), %rax
	cmpl	$0, (%rax,%r12,4)
	je	LBB0_13
## %bb.11:                              ##   in Loop: Header=BB0_10 Depth=1
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax,%r12,4), %ecx
	testl	%ecx, (%r13)
	jne	LBB0_13
## %bb.12:                              ##   in Loop: Header=BB0_10 Depth=1
	movq	_P_STP_CTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movl	%r12d, %esi
	callq	_ksz_pwrite8
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	jmp	LBB0_13
LBB0_16:
	movq	_S_FLUSH_TABLE_CTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_SW_FLUSH_DYN_MAC_TABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$1, %ecx
	callq	_ksz_cfg
LBB0_14:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_17
## %bb.15:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_17:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_TOTAL_PORT_NUM,4,2             ## @TOTAL_PORT_NUM
	.comm	_P_STP_CTRL,4,2                 ## @P_STP_CTRL
	.comm	_PORT_LEARN_DISABLE,4,2         ## @PORT_LEARN_DISABLE
	.comm	_S_FLUSH_TABLE_CTRL,4,2         ## @S_FLUSH_TABLE_CTRL
	.comm	_SW_FLUSH_DYN_MAC_TABLE,4,2     ## @SW_FLUSH_DYN_MAC_TABLE
	.no_dead_strip	_ksz8795_flush_dyn_mac_table
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ksz8795_flush_dyn_mac_table
_ksz8795_flush_dyn_mac_table:           ; @ksz8795_flush_dyn_mac_table
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	sub	sp, sp, #16
                                        ; kill: def $w1 killed $w1 def $x1
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-88]
Lloh3:
	adrp	x8, _TOTAL_PORT_NUM@GOTPAGE
Lloh4:
	ldr	x8, [x8, _TOTAL_PORT_NUM@GOTPAGEOFF]
Lloh5:
	ldr	w12, [x8]
	lsl	x8, x12, #2
	mov	x9, x8
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x7fffffff0
	sub	x23, x9, x8
	mov	sp, x23
	cmp	w12, w1
	b.le	LBB0_2
; %bb.1:
	add	w26, w1, #1
	sxtw	x20, w1
	b	LBB0_4
LBB0_2:
	ldr	w26, [x19]
	cmp	w26, #0
	b.le	LBB0_14
; %bb.3:
	mov	x20, #0
LBB0_4:
	lsl	x27, x20, #2
Lloh8:
	adrp	x24, _P_STP_CTRL@GOTPAGE
Lloh9:
	ldr	x24, [x24, _P_STP_CTRL@GOTPAGEOFF]
Lloh10:
	adrp	x25, _PORT_LEARN_DISABLE@GOTPAGE
Lloh11:
	ldr	x25, [x25, _PORT_LEARN_DISABLE@GOTPAGEOFF]
	mov	x21, x20
	b	LBB0_6
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	add	w21, w21, #1
	add	x27, x27, #4
	cmp	w26, w21
	b.eq	LBB0_9
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #8]
	ldr	w8, [x8, x27]
	cbz	w8, LBB0_5
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	w2, [x24]
	add	x22, x23, x27
	mov	x0, x19
	mov	x1, x21
	mov	x3, x22
	bl	_ksz_pread8
	ldr	w8, [x22]
	ldr	w9, [x25]
	tst	w9, w8
	b.ne	LBB0_5
; %bb.8:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	w2, [x24]
	orr	w3, w9, w8
	mov	x0, x19
	mov	x1, x21
	bl	_ksz_pwrite8
	b	LBB0_5
LBB0_9:
Lloh12:
	adrp	x8, _S_FLUSH_TABLE_CTRL@GOTPAGE
Lloh13:
	ldr	x8, [x8, _S_FLUSH_TABLE_CTRL@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
Lloh15:
	adrp	x8, _SW_FLUSH_DYN_MAC_TABLE@GOTPAGE
Lloh16:
	ldr	x8, [x8, _SW_FLUSH_DYN_MAC_TABLE@GOTPAGEOFF]
Lloh17:
	ldr	w2, [x8]
	mov	x0, x19
	mov	w3, #1
	bl	_ksz_cfg
	mov	w21, w26
	b	LBB0_11
LBB0_10:                                ;   in Loop: Header=BB0_11 Depth=1
	add	x20, x20, #1
	cmp	w21, w20
	b.eq	LBB0_15
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #8]
	ldr	w8, [x8, x20, lsl #2]
	cbz	w8, LBB0_10
; %bb.12:                               ;   in Loop: Header=BB0_11 Depth=1
	ldr	w3, [x23, x20, lsl #2]
	ldr	w8, [x25]
	tst	w8, w3
	b.ne	LBB0_10
; %bb.13:                               ;   in Loop: Header=BB0_11 Depth=1
	ldr	w2, [x24]
	mov	x0, x19
	mov	x1, x20
	bl	_ksz_pwrite8
	b	LBB0_10
LBB0_14:
Lloh18:
	adrp	x8, _S_FLUSH_TABLE_CTRL@GOTPAGE
Lloh19:
	ldr	x8, [x8, _S_FLUSH_TABLE_CTRL@GOTPAGEOFF]
Lloh20:
	ldr	w1, [x8]
Lloh21:
	adrp	x8, _SW_FLUSH_DYN_MAC_TABLE@GOTPAGE
Lloh22:
	ldr	x8, [x8, _SW_FLUSH_DYN_MAC_TABLE@GOTPAGEOFF]
Lloh23:
	ldr	w2, [x8]
	mov	x0, x19
	mov	w3, #1
	bl	_ksz_cfg
LBB0_15:
	ldur	x8, [x29, #-88]
Lloh24:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh25:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh26:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_17
; %bb.16:
	sub	sp, x29, #80
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_17:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.cfi_endproc
                                        ; -- End function
	.comm	_TOTAL_PORT_NUM,4,2             ; @TOTAL_PORT_NUM
	.comm	_P_STP_CTRL,4,2                 ; @P_STP_CTRL
	.comm	_PORT_LEARN_DISABLE,4,2         ; @PORT_LEARN_DISABLE
	.comm	_S_FLUSH_TABLE_CTRL,4,2         ; @S_FLUSH_TABLE_CTRL
	.comm	_SW_FLUSH_DYN_MAC_TABLE,4,2     ; @SW_FLUSH_DYN_MAC_TABLE
	.no_dead_strip	_ksz8795_flush_dyn_mac_table
.subsections_via_symbols
