	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ksz8795_port_init_cnt
_ksz8795_port_init_cnt:                 ## @ksz8795_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
	subq	$24, %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, %r12
	movq	24(%rdi), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movslq	%esi, %r14
	movq	_REG_SW_CTRL_6@GOTPCREL(%rip), %r13
	movl	(%r13), %ebx
	movl	%r14d, %edi
	callq	_BIT
	movq	%r12, %rdi
	movl	%ebx, %esi
	movl	%eax, %edx
	movl	$1, %ecx
	callq	_ksz_cfg
	movl	(%r13), %esi
	movq	_SW_MIB_COUNTER_FLUSH@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rdi
	movl	$1, %ecx
	callq	_ksz_cfg
	movl	(%r13), %r13d
	movl	%r14d, %edi
	callq	_BIT
	xorl	%ebx, %ebx
	movq	%r12, %rdi
	movl	%r13d, %esi
	movl	%eax, %edx
	xorl	%ecx, %ecx
	callq	_ksz_cfg
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	shlq	$4, %r14
	leaq	(%rax,%r14), %r13
	movq	$0, (%rax,%r14)
	cmpq	$0, (%r12)
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	je	LBB0_3
## %bb.1:
	addq	%rax, %r14
	addq	$8, %r14
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	16(%r12), %rax
	leaq	(,%rbx,4), %rcx
	addq	(%r14), %rcx
	movq	%r12, %rdi
	movl	%r15d, %esi
	movq	%rbx, %rdx
	callq	*8(%rax)
	movq	(%r13), %rbx
	incq	%rbx
	movq	%rbx, (%r13)
	cmpq	(%r12), %rbx
	jb	LBB0_2
LBB0_3:
	movq	8(%r12), %rdx
	cmpq	%rdx, %rbx
	jae	LBB0_6
## %bb.4:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	leaq	(%rax,%rcx), %r14
	addq	$8, %r14
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	16(%r12), %rax
	leaq	(,%rbx,4), %r8
	addq	(%r14), %r8
	movq	%r12, %rdi
	movl	%r15d, %esi
	movq	%rbx, %rdx
	xorl	%ecx, %ecx
	callq	*(%rax)
	movq	(%r13), %rbx
	incq	%rbx
	movq	%rbx, (%r13)
	movq	8(%r12), %rdx
	cmpq	%rdx, %rbx
	jb	LBB0_5
LBB0_6:
	movq	$0, (%r13)
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movq	8(%rax,%rcx), %rdi
	shll	$2, %edx
	xorl	%esi, %esi
                                        ## kill: def $edx killed $edx killed $rdx
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_memset                         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_REG_SW_CTRL_6,4,2              ## @REG_SW_CTRL_6
	.comm	_SW_MIB_COUNTER_FLUSH,4,2       ## @SW_MIB_COUNTER_FLUSH
	.no_dead_strip	_ksz8795_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 ksz8795_port_init_cnt
_ksz8795_port_init_cnt:                 ; @ksz8795_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	x22, [x0, #24]
	sxtw	x23, w19
Lloh0:
	adrp	x24, _REG_SW_CTRL_6@GOTPAGE
Lloh1:
	ldr	x24, [x24, _REG_SW_CTRL_6@GOTPAGEOFF]
	ldr	w21, [x24]
	mov	x0, x1
	bl	_BIT
	mov	x2, x0
	mov	x0, x20
	mov	x1, x21
	mov	w3, #1
	bl	_ksz_cfg
	ldr	w1, [x24]
Lloh2:
	adrp	x8, _SW_MIB_COUNTER_FLUSH@GOTPAGE
Lloh3:
	ldr	x8, [x8, _SW_MIB_COUNTER_FLUSH@GOTPAGEOFF]
Lloh4:
	ldr	w2, [x8]
	mov	x0, x20
	mov	w3, #1
	bl	_ksz_cfg
	ldr	w21, [x24]
	mov	x0, x19
	bl	_BIT
	mov	x2, x0
	mov	x0, x20
	mov	x1, x21
	mov	w3, #0
	bl	_ksz_cfg
	add	x21, x22, w19, sxtw #4
	str	xzr, [x21]
	ldr	x8, [x20]
	cbz	x8, LBB0_3
; %bb.1:
	mov	x2, #0
	add	x8, x22, x23, lsl #4
	add	x24, x8, #8
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x20, #16]
	ldr	x8, [x8, #8]
	ldr	x9, [x24]
	add	x3, x9, x2, lsl #2
	mov	x0, x20
	mov	x1, x19
	blr	x8
	ldr	x8, [x21]
	add	x2, x8, #1
	str	x2, [x21]
	ldr	x8, [x20]
	cmp	x2, x8
	b.lo	LBB0_2
	b	LBB0_4
LBB0_3:
	mov	x2, #0
LBB0_4:
	ldr	x8, [x20, #8]
	cmp	x2, x8
	b.hs	LBB0_7
; %bb.5:
	add	x8, x22, x23, lsl #4
	add	x24, x8, #8
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x20, #16]
	ldr	x8, [x8]
	ldr	x9, [x24]
	add	x4, x9, x2, lsl #2
	mov	x0, x20
	mov	x1, x19
	mov	x3, #0
	blr	x8
	ldr	x8, [x21]
	add	x2, x8, #1
	str	x2, [x21]
	ldr	x8, [x20, #8]
	cmp	x2, x8
	b.lo	LBB0_6
LBB0_7:
	str	xzr, [x21]
	add	x9, x22, x23, lsl #4
	ldr	x0, [x9, #8]
	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	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_REG_SW_CTRL_6,4,2              ; @REG_SW_CTRL_6
	.comm	_SW_MIB_COUNTER_FLUSH,4,2       ; @SW_MIB_COUNTER_FLUSH
	.no_dead_strip	_ksz8795_port_init_cnt
.subsections_via_symbols
