	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function ksz9131_of_load_skew_values
LCPI0_0:
	.space	4
	.long	4294967294                      ## 0xfffffffe
	.long	4294967293                      ## 0xfffffffd
	.long	4294967292                      ## 0xfffffffc
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_ksz9131_of_load_skew_values:           ## @ksz9131_of_load_skew_values
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, %rbx
	movq	%rsi, %r14
	movq	_KSZ9131_OFFSET@GOTPCREL(%rip), %rax
	movd	(%rax), %xmm0                   ## xmm0 = mem[0],zero,zero,zero
	pshufd	$0, %xmm0, %xmm1                ## xmm1 = xmm0[0,0,0,0]
	pcmpeqd	%xmm2, %xmm2
	pxor	%xmm0, %xmm2
	movdqa	LCPI0_0(%rip), %xmm0            ## xmm0 = <u,4294967294,4294967293,4294967292>
	psubd	%xmm1, %xmm0
	pblendw	$3, %xmm2, %xmm0                ## xmm0 = xmm2[0,1],xmm0[2,3,4,5,6,7]
	movdqa	%xmm0, -96(%rbp)
	cmpq	$5, %rcx
	jne	LBB0_3
## %bb.1:
	movq	_KSZ9131_SKEW_5BIT_MAX@GOTPCREL(%rip), %rax
	testl	%r9d, %r9d
	jg	LBB0_4
	jmp	LBB0_2
LBB0_3:
	movq	_KSZ9131_SKEW_4BIT_MAX@GOTPCREL(%rip), %rax
	testl	%r9d, %r9d
	jle	LBB0_2
LBB0_4:
	movq	%rcx, -64(%rbp)                 ## 8-byte Spill
	movq	%rdi, -72(%rbp)                 ## 8-byte Spill
	movq	%rdx, -80(%rbp)                 ## 8-byte Spill
	movl	(%rax), %eax
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movl	%r9d, -52(%rbp)                 ## 4-byte Spill
	movl	%r9d, %r12d
	xorl	%r15d, %r15d
	xorl	%r13d, %r13d
	jmp	LBB0_8
LBB0_5:                                 ##   in Loop: Header=BB0_8 Depth=1
	movl	%edx, -44(%rbp)
	movl	%edx, %ecx
LBB0_6:                                 ##   in Loop: Header=BB0_8 Depth=1
	addl	%eax, %ecx
	movl	%ecx, -96(%rbp,%r15,4)
	incl	%r13d
LBB0_7:                                 ##   in Loop: Header=BB0_8 Depth=1
	incq	%r15
	cmpq	%r15, %r12
	je	LBB0_12
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%rbx,%r15,8), %rsi
	movq	%r14, %rdi
	leaq	-44(%rbp), %rdx
	callq	_of_property_read_s32
	testl	%eax, %eax
	jne	LBB0_7
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=1
	movl	-44(%rbp), %ecx
	movq	_KSZ9131_OFFSET@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, %edx
	negl	%edx
	cmpl	%edx, %ecx
	jl	LBB0_5
## %bb.10:                              ##   in Loop: Header=BB0_8 Depth=1
	cmpl	-48(%rbp), %ecx                 ## 4-byte Folded Reload
	jle	LBB0_6
## %bb.11:                              ##   in Loop: Header=BB0_8 Depth=1
	movl	-48(%rbp), %ecx                 ## 4-byte Reload
	movl	%ecx, -44(%rbp)
	jmp	LBB0_6
LBB0_12:
	testl	%r13d, %r13d
	je	LBB0_2
## %bb.13:
	cmpl	-52(%rbp), %r13d                ## 4-byte Folded Reload
	movq	-80(%rbp), %r14                 ## 8-byte Reload
	movq	-72(%rbp), %r15                 ## 8-byte Reload
	movq	-64(%rbp), %r13                 ## 8-byte Reload
	jge	LBB0_16
## %bb.14:
	movq	%r15, %rdi
	movl	$2, %esi
	movq	%r14, %rdx
	callq	_phy_read_mmd
	jmp	LBB0_17
LBB0_2:
	xorl	%eax, %eax
	jmp	LBB0_22
LBB0_16:
	xorl	%eax, %eax
LBB0_17:
	xorl	%r9d, %r9d
	cmpq	$4, %r13
	setne	%r9b
	shlq	$4, %r9
	orq	$15, %r9
	movq	_KSZ9131_OFFSET@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	movq	_KSZ9131_STEP@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r8d
	notl	%edi
	xorl	%ecx, %ecx
	xorl	%ebx, %ebx
	jmp	LBB0_19
	.p2align	4, 0x90
LBB0_18:                                ##   in Loop: Header=BB0_19 Depth=1
	decl	%edi
	addq	%r13, %rcx
	cmpq	%rbx, %r12
	je	LBB0_21
LBB0_19:                                ## =>This Inner Loop Header: Depth=1
	movl	-96(%rbp,%rbx,4), %edx
	incq	%rbx
	cmpl	%edx, %edi
	je	LBB0_18
## %bb.20:                              ##   in Loop: Header=BB0_19 Depth=1
	movq	%r9, %rsi
	shlq	%cl, %rsi
	xorq	$65535, %rsi                    ## imm = 0xFFFF
	andq	%rax, %rsi
	movl	%edx, %eax
	cltd
	idivl	%r8d
                                        ## kill: def $eax killed $eax def $rax
	andl	%r9d, %eax
	shlq	%cl, %rax
	orq	%rsi, %rax
	jmp	LBB0_18
LBB0_21:
	movq	%r15, %rdi
	movl	$2, %esi
	movq	%r14, %rdx
	movq	%rax, %rcx
	callq	_phy_write_mmd
LBB0_22:
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_KSZ9131_OFFSET,4,2             ## @KSZ9131_OFFSET
	.comm	_KSZ9131_SKEW_5BIT_MAX,4,2      ## @KSZ9131_SKEW_5BIT_MAX
	.comm	_KSZ9131_SKEW_4BIT_MAX,4,2      ## @KSZ9131_SKEW_4BIT_MAX
	.comm	_KSZ9131_STEP,4,2               ## @KSZ9131_STEP
	.no_dead_strip	_ksz9131_of_load_skew_values
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ; -- Begin function ksz9131_of_load_skew_values
lCPI0_0:
	.space	4
	.long	4294967294                      ; 0xfffffffe
	.long	4294967293                      ; 0xfffffffd
	.long	4294967292                      ; 0xfffffffc
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_ksz9131_of_load_skew_values:           ; @ksz9131_of_load_skew_values
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x28, x27, [sp, #48]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #64]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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
Lloh0:
	adrp	x26, _KSZ9131_OFFSET@GOTPAGE
Lloh1:
	ldr	x26, [x26, _KSZ9131_OFFSET@GOTPAGEOFF]
	ldr	w8, [x26]
	dup.4s	v0, w8
	fmov	s1, w8
	mvn.16b	v1, v1
Lloh2:
	adrp	x8, lCPI0_0@PAGE
Lloh3:
	ldr	q2, [x8, lCPI0_0@PAGEOFF]
	sub.4s	v0, v2, v0
	mov.s	v0[0], v1[0]
Lloh4:
	adrp	x8, _KSZ9131_SKEW_5BIT_MAX@GOTPAGE
Lloh5:
	ldr	x8, [x8, _KSZ9131_SKEW_5BIT_MAX@GOTPAGEOFF]
	str	q0, [sp, #32]
Lloh6:
	adrp	x9, _KSZ9131_SKEW_4BIT_MAX@GOTPAGE
Lloh7:
	ldr	x9, [x9, _KSZ9131_SKEW_4BIT_MAX@GOTPAGEOFF]
	cmp	x3, #5
	csel	x8, x8, x9, eq
	cmp	w5, #1
	b.lt	LBB0_12
; %bb.1:
	mov	x22, x5
	mov	x23, x4
	mov	x21, x3
	mov	x24, x1
	stp	x0, x2, [sp, #8]                ; 16-byte Folded Spill
	mov	w27, #0
	ldr	w28, [x8]
	mov	w20, w5
	add	x19, sp, #32
	mov	x25, x20
	b	LBB0_5
LBB0_2:                                 ;   in Loop: Header=BB0_5 Depth=1
	str	w10, [sp, #28]
	mov	x9, x10
LBB0_3:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	w8, w9, w8
	str	w8, [x19]
	add	w27, w27, #1
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	x19, x19, #4
	add	x23, x23, #8
	subs	x25, x25, #1
	b.eq	LBB0_9
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x1, [x23]
	add	x2, sp, #28
	mov	x0, x24
	bl	_of_property_read_s32
	cbnz	w0, LBB0_4
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w9, [sp, #28]
	ldr	w8, [x26]
	neg	w10, w8
	cmp	w9, w10
	b.lt	LBB0_2
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	cmp	w9, w28
	b.le	LBB0_3
; %bb.8:                                ;   in Loop: Header=BB0_5 Depth=1
	str	w28, [sp, #28]
	mov	x9, x28
	b	LBB0_3
LBB0_9:
	cbz	w27, LBB0_12
; %bb.10:
	cmp	w27, w22
	ldp	x22, x19, [sp, #8]              ; 16-byte Folded Reload
	b.ge	LBB0_13
; %bb.11:
	mov	x0, x22
	mov	w1, #2
	mov	x2, x19
	bl	_phy_read_mmd
	mov	x3, x0
	b	LBB0_14
LBB0_12:
	mov	w0, #0
	b	LBB0_19
LBB0_13:
	mov	x3, #0
LBB0_14:
	mov	x8, #0
	mov	w9, #31
	mov	w10, #15
	cmp	x21, #4
	csel	x9, x10, x9, eq
	ldr	w11, [x26]
Lloh8:
	adrp	x10, _KSZ9131_STEP@GOTPAGE
Lloh9:
	ldr	x10, [x10, _KSZ9131_STEP@GOTPAGEOFF]
Lloh10:
	ldr	w10, [x10]
	mvn	w11, w11
	add	x12, sp, #32
	b	LBB0_16
LBB0_15:                                ;   in Loop: Header=BB0_16 Depth=1
	add	x12, x12, #4
	sub	w11, w11, #1
	add	x8, x8, x21
	subs	x20, x20, #1
	b.eq	LBB0_18
LBB0_16:                                ; =>This Inner Loop Header: Depth=1
	ldr	w13, [x12]
	cmp	w11, w13
	b.eq	LBB0_15
; %bb.17:                               ;   in Loop: Header=BB0_16 Depth=1
	lsl	x14, x9, x8
	eor	x14, x14, #0xffff
	and	x14, x14, x3
	sdiv	w13, w13, w10
	and	x13, x9, x13
	lsl	x13, x13, x8
	orr	x3, x13, x14
	b	LBB0_15
LBB0_18:
	mov	x0, x22
	mov	w1, #2
	mov	x2, x19
	bl	_phy_write_mmd
LBB0_19:
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpAdrp	Lloh2, Lloh4
	.loh AdrpLdr	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_KSZ9131_OFFSET,4,2             ; @KSZ9131_OFFSET
	.comm	_KSZ9131_SKEW_5BIT_MAX,4,2      ; @KSZ9131_SKEW_5BIT_MAX
	.comm	_KSZ9131_SKEW_4BIT_MAX,4,2      ; @KSZ9131_SKEW_4BIT_MAX
	.comm	_KSZ9131_STEP,4,2               ; @KSZ9131_STEP
	.no_dead_strip	_ksz9131_of_load_skew_values
.subsections_via_symbols
