	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ksz9477_port_init_cnt
_ksz9477_port_init_cnt:                 ## @ksz9477_port_init_cnt
	.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	%rdi, %rbx
	movq	8(%rdi), %r12
	movslq	%esi, %r15
	leaq	(%r15,%r15,2), %r13
	leaq	(%r12,%r13,8), %r14
	addq	$16, %r14
	movq	%r14, %rdi
	callq	_mutex_lock
	movq	_REG_PORT_MIB_CTRL_STAT__4@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_MIB_COUNTER_FLUSH_FREEZE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%rbx, %rdi
	movl	%r15d, %esi
	callq	_ksz_pwrite32
	movq	_REG_SW_MAC_CTRL_6@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_SW_MIB_COUNTER_FLUSH@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	callq	_ksz_write8
	movq	_REG_PORT_MIB_CTRL_STAT__4@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	movl	%r15d, %esi
	xorl	%ecx, %ecx
	callq	_ksz_pwrite32
	movq	%r14, %rdi
	callq	_mutex_unlock
	movq	$0, 8(%r12,%r13,8)
	movl	(%r12,%r13,8), %edi
	movl	(%rbx), %edx
	shll	$2, %edx
	xorl	%esi, %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_memset                         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_REG_PORT_MIB_CTRL_STAT__4,4,2  ## @REG_PORT_MIB_CTRL_STAT__4
	.comm	_MIB_COUNTER_FLUSH_FREEZE,4,2   ## @MIB_COUNTER_FLUSH_FREEZE
	.comm	_REG_SW_MAC_CTRL_6,4,2          ## @REG_SW_MAC_CTRL_6
	.comm	_SW_MIB_COUNTER_FLUSH,4,2       ## @SW_MIB_COUNTER_FLUSH
	.no_dead_strip	_ksz9477_port_init_cnt
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ksz9477_port_init_cnt
_ksz9477_port_init_cnt:                 ; @ksz9477_port_init_cnt
	.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, x1
	mov	x20, x0
	ldr	x8, [x0, #8]
	mov	w9, #24
	smaddl	x22, w1, w9, x8
	add	x21, x22, #16
	mov	x0, x21
	bl	_mutex_lock
Lloh0:
	adrp	x23, _REG_PORT_MIB_CTRL_STAT__4@GOTPAGE
Lloh1:
	ldr	x23, [x23, _REG_PORT_MIB_CTRL_STAT__4@GOTPAGEOFF]
	ldr	w2, [x23]
Lloh2:
	adrp	x8, _MIB_COUNTER_FLUSH_FREEZE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _MIB_COUNTER_FLUSH_FREEZE@GOTPAGEOFF]
Lloh4:
	ldr	w3, [x8]
	mov	x0, x20
	mov	x1, x19
	bl	_ksz_pwrite32
Lloh5:
	adrp	x8, _REG_SW_MAC_CTRL_6@GOTPAGE
Lloh6:
	ldr	x8, [x8, _REG_SW_MAC_CTRL_6@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
Lloh8:
	adrp	x8, _SW_MIB_COUNTER_FLUSH@GOTPAGE
Lloh9:
	ldr	x8, [x8, _SW_MIB_COUNTER_FLUSH@GOTPAGEOFF]
Lloh10:
	ldr	w2, [x8]
	mov	x0, x20
	bl	_ksz_write8
	ldr	w2, [x23]
	mov	x0, x20
	mov	x1, x19
	mov	w3, #0
	bl	_ksz_pwrite32
	mov	x0, x21
	bl	_mutex_unlock
	str	xzr, [x22, #8]
	ldr	w0, [x22]
	ldr	w8, [x20]
	lsl	w2, w8, #2
	mov	w1, #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
	b	_memset
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_REG_PORT_MIB_CTRL_STAT__4,4,2  ; @REG_PORT_MIB_CTRL_STAT__4
	.comm	_MIB_COUNTER_FLUSH_FREEZE,4,2   ; @MIB_COUNTER_FLUSH_FREEZE
	.comm	_REG_SW_MAC_CTRL_6,4,2          ; @REG_SW_MAC_CTRL_6
	.comm	_SW_MIB_COUNTER_FLUSH,4,2       ; @SW_MIB_COUNTER_FLUSH
	.no_dead_strip	_ksz9477_port_init_cnt
.subsections_via_symbols
