	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ksz9477_flush_dyn_mac_table
_ksz9477_flush_dyn_mac_table:           ## @ksz9477_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r14d
	movq	%rdi, %rbx
	movq	8(%rdi), %rax
	movl	(%rax), %edi
	movq	_REG_SW_LUE_CTRL_2@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_SW_FLUSH_OPTION_M@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_SW_FLUSH_OPTION_S@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	shll	%cl, %edx
	movq	_SW_FLUSH_OPTION_DYN_MAC@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	shll	%cl, %eax
	movl	%eax, %ecx
	callq	_regmap_update_bits
	cmpl	%r14d, (%rbx)
	jle	LBB0_4
## %bb.1:
	movq	_P_STP_CTRL@GOTPCREL(%rip), %r15
	movl	(%r15), %edx
	leaq	-28(%rbp), %rcx
	movq	%rbx, %rdi
	movl	%r14d, %esi
	callq	_ksz_pread8
	movl	-28(%rbp), %eax
	movq	_PORT_LEARN_DISABLE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%eax, %ecx
	jne	LBB0_3
## %bb.2:
	movl	(%r15), %edx
	orl	%eax, %ecx
	movq	%rbx, %rdi
	movl	%r14d, %esi
	callq	_ksz_pwrite8
LBB0_3:
	movq	_S_FLUSH_TABLE_CTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_SW_FLUSH_DYN_MAC_TABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	movl	$1, %ecx
	callq	_ksz_cfg
	movl	(%r15), %edx
	movl	-28(%rbp), %ecx
	movq	%rbx, %rdi
	movl	%r14d, %esi
	callq	_ksz_pwrite8
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movq	_S_FLUSH_TABLE_CTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_SW_FLUSH_STP_TABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	movl	$1, %ecx
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ksz_cfg                        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_REG_SW_LUE_CTRL_2,4,2          ## @REG_SW_LUE_CTRL_2
	.comm	_SW_FLUSH_OPTION_M,4,2          ## @SW_FLUSH_OPTION_M
	.comm	_SW_FLUSH_OPTION_S,4,2          ## @SW_FLUSH_OPTION_S
	.comm	_SW_FLUSH_OPTION_DYN_MAC,4,2    ## @SW_FLUSH_OPTION_DYN_MAC
	.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
	.comm	_SW_FLUSH_STP_TABLE,4,2         ## @SW_FLUSH_STP_TABLE
	.no_dead_strip	_ksz9477_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 ksz9477_flush_dyn_mac_table
_ksz9477_flush_dyn_mac_table:           ; @ksz9477_flush_dyn_mac_table
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x20, x1
	mov	x19, x0
	ldr	x8, [x0, #8]
	ldr	w0, [x8]
Lloh0:
	adrp	x8, _REG_SW_LUE_CTRL_2@GOTPAGE
Lloh1:
	ldr	x8, [x8, _REG_SW_LUE_CTRL_2@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x8, _SW_FLUSH_OPTION_M@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SW_FLUSH_OPTION_M@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
Lloh6:
	adrp	x9, _SW_FLUSH_OPTION_S@GOTPAGE
Lloh7:
	ldr	x9, [x9, _SW_FLUSH_OPTION_S@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	lsl	w2, w8, w9
Lloh9:
	adrp	x8, _SW_FLUSH_OPTION_DYN_MAC@GOTPAGE
Lloh10:
	ldr	x8, [x8, _SW_FLUSH_OPTION_DYN_MAC@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	lsl	w3, w8, w9
	bl	_regmap_update_bits
	ldr	w8, [x19]
	cmp	w8, w20
	b.le	LBB0_4
; %bb.1:
Lloh12:
	adrp	x21, _P_STP_CTRL@GOTPAGE
Lloh13:
	ldr	x21, [x21, _P_STP_CTRL@GOTPAGEOFF]
	ldr	w2, [x21]
	add	x3, sp, #12
	mov	x0, x19
	mov	x1, x20
	bl	_ksz_pread8
	ldr	w8, [sp, #12]
Lloh14:
	adrp	x9, _PORT_LEARN_DISABLE@GOTPAGE
Lloh15:
	ldr	x9, [x9, _PORT_LEARN_DISABLE@GOTPAGEOFF]
Lloh16:
	ldr	w9, [x9]
	tst	w9, w8
	b.ne	LBB0_3
; %bb.2:
	ldr	w2, [x21]
	orr	w3, w9, w8
	mov	x0, x19
	mov	x1, x20
	bl	_ksz_pwrite8
LBB0_3:
Lloh17:
	adrp	x8, _S_FLUSH_TABLE_CTRL@GOTPAGE
Lloh18:
	ldr	x8, [x8, _S_FLUSH_TABLE_CTRL@GOTPAGEOFF]
Lloh19:
	ldr	w1, [x8]
Lloh20:
	adrp	x8, _SW_FLUSH_DYN_MAC_TABLE@GOTPAGE
Lloh21:
	ldr	x8, [x8, _SW_FLUSH_DYN_MAC_TABLE@GOTPAGEOFF]
Lloh22:
	ldr	w2, [x8]
	mov	x0, x19
	mov	w3, #1
	bl	_ksz_cfg
	ldr	w2, [x21]
	ldr	w3, [sp, #12]
	mov	x0, x19
	mov	x1, x20
	bl	_ksz_pwrite8
	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
	add	sp, sp, #64
	ret
LBB0_4:
Lloh23:
	adrp	x8, _S_FLUSH_TABLE_CTRL@GOTPAGE
Lloh24:
	ldr	x8, [x8, _S_FLUSH_TABLE_CTRL@GOTPAGEOFF]
Lloh25:
	adrp	x9, _SW_FLUSH_STP_TABLE@GOTPAGE
Lloh26:
	ldr	x9, [x9, _SW_FLUSH_STP_TABLE@GOTPAGEOFF]
Lloh27:
	ldr	w1, [x8]
Lloh28:
	ldr	w2, [x9]
	mov	x0, x19
	mov	w3, #1
	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
	add	sp, sp, #64
	b	_ksz_cfg
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh27
	.cfi_endproc
                                        ; -- End function
	.comm	_REG_SW_LUE_CTRL_2,4,2          ; @REG_SW_LUE_CTRL_2
	.comm	_SW_FLUSH_OPTION_M,4,2          ; @SW_FLUSH_OPTION_M
	.comm	_SW_FLUSH_OPTION_S,4,2          ; @SW_FLUSH_OPTION_S
	.comm	_SW_FLUSH_OPTION_DYN_MAC,4,2    ; @SW_FLUSH_OPTION_DYN_MAC
	.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
	.comm	_SW_FLUSH_STP_TABLE,4,2         ; @SW_FLUSH_STP_TABLE
	.no_dead_strip	_ksz9477_flush_dyn_mac_table
.subsections_via_symbols
