	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ksz9031_of_load_skew_values
_ksz9031_of_load_skew_values:           ## @ksz9031_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	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movaps	L___const.ksz9031_of_load_skew_values.val(%rip), %xmm0
	movaps	%xmm0, -64(%rbp)
	testl	%r9d, %r9d
	jle	LBB0_7
## %bb.1:
	movq	%r8, %rbx
	movq	%rsi, %r14
	movq	%rcx, -88(%rbp)                 ## 8-byte Spill
	movq	%rdi, -96(%rbp)                 ## 8-byte Spill
	movq	%rdx, -104(%rbp)                ## 8-byte Spill
	movl	%r9d, -68(%rbp)                 ## 4-byte Spill
	movl	%r9d, %eax
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	leaq	(,%rax,4), %r13
	xorl	%r15d, %r15d
	xorl	%r12d, %r12d
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%rbx,%r15,2), %rsi
	leaq	(%r15,%rbp), %rdx
	addq	$-64, %rdx
	movq	%r14, %rdi
	callq	_of_property_read_u32
	cmpl	$1, %eax
	adcl	$0, %r12d
	addq	$4, %r15
	cmpq	%r15, %r13
	jne	LBB0_2
## %bb.3:
	testl	%r12d, %r12d
	je	LBB0_7
## %bb.4:
	cmpl	-68(%rbp), %r12d                ## 4-byte Folded Reload
	jge	LBB0_8
## %bb.5:
	movq	-96(%rbp), %r15                 ## 8-byte Reload
	movq	%r15, %rdi
	movl	$2, %esi
	movq	-104(%rbp), %r14                ## 8-byte Reload
	movq	%r14, %rdx
	callq	_phy_read_mmd
	jmp	LBB0_9
LBB0_7:
	xorl	%eax, %eax
	jmp	LBB0_14
LBB0_8:
	xorl	%eax, %eax
	movq	-104(%rbp), %r14                ## 8-byte Reload
	movq	-96(%rbp), %r15                 ## 8-byte Reload
LBB0_9:
	movq	-88(%rbp), %r10                 ## 8-byte Reload
	movq	-80(%rbp), %r11                 ## 8-byte Reload
	xorl	%r9d, %r9d
	cmpq	$4, %r10
	setne	%r9b
	shlq	$4, %r9
	orq	$15, %r9
	movq	_KSZ9031_PS_TO_REG@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r8d
	movl	$-1, %ebx
	xorl	%ecx, %ecx
	xorl	%edi, %edi
	jmp	LBB0_11
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_11 Depth=1
	decl	%ebx
	addq	%r10, %rcx
	cmpq	%rdi, %r11
	je	LBB0_13
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	movl	-64(%rbp,%rdi,4), %edx
	incq	%rdi
	cmpl	%edx, %ebx
	je	LBB0_10
## %bb.12:                              ##   in Loop: Header=BB0_11 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_10
LBB0_13:
	movq	%r15, %rdi
	movl	$2, %esi
	movq	%r14, %rdx
	movq	%rax, %rcx
	callq	_phy_write_mmd
LBB0_14:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_16
## %bb.15:
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_16:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## @__const.ksz9031_of_load_skew_values.val
L___const.ksz9031_of_load_skew_values.val:
	.long	4294967295                      ## 0xffffffff
	.long	4294967294                      ## 0xfffffffe
	.long	4294967293                      ## 0xfffffffd
	.long	4294967292                      ## 0xfffffffc

	.comm	_KSZ9031_PS_TO_REG,4,2          ## @KSZ9031_PS_TO_REG
	.no_dead_strip	_ksz9031_of_load_skew_values
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ksz9031_of_load_skew_values
_ksz9031_of_load_skew_values:           ; @ksz9031_of_load_skew_values
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #24]
Lloh3:
	adrp	x8, l___const.ksz9031_of_load_skew_values.val@PAGE
Lloh4:
	add	x8, x8, l___const.ksz9031_of_load_skew_values.val@PAGEOFF
Lloh5:
	ldr	q0, [x8]
	str	q0, [sp]
	cmp	w5, #1
	b.lt	LBB0_6
; %bb.1:
	mov	x22, x5
	mov	x23, x4
	mov	x21, x3
	mov	x19, x2
	mov	x24, x1
	mov	x20, x0
	mov	w27, #0
	mov	w26, w5
	mov	x25, sp
	mov	x28, x26
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x1, [x23], #8
	mov	x0, x24
	mov	x2, x25
	bl	_of_property_read_u32
	cmp	w0, #0
	cinc	w27, w27, eq
	add	x25, x25, #4
	subs	x28, x28, #1
	b.ne	LBB0_2
; %bb.3:
	cbz	w27, LBB0_6
; %bb.4:
	cmp	w27, w22
	b.ge	LBB0_7
; %bb.5:
	mov	x0, x20
	mov	w1, #2
	mov	x2, x19
	bl	_phy_read_mmd
	mov	x3, x0
	b	LBB0_8
LBB0_6:
	mov	w0, #0
	b	LBB0_13
LBB0_7:
	mov	x3, #0
LBB0_8:
	mov	x8, #0
	mov	w9, #31
	mov	w10, #15
	cmp	x21, #4
	csel	x9, x10, x9, eq
Lloh6:
	adrp	x10, _KSZ9031_PS_TO_REG@GOTPAGE
Lloh7:
	ldr	x10, [x10, _KSZ9031_PS_TO_REG@GOTPAGEOFF]
Lloh8:
	ldr	w10, [x10]
	mov	w11, #-1
	mov	x12, sp
	b	LBB0_10
LBB0_9:                                 ;   in Loop: Header=BB0_10 Depth=1
	sub	w11, w11, #1
	add	x8, x8, x21
	add	x12, x12, #4
	subs	x26, x26, #1
	b.eq	LBB0_12
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	ldr	w13, [x12]
	cmp	w11, w13
	b.eq	LBB0_9
; %bb.11:                               ;   in Loop: Header=BB0_10 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_9
LBB0_12:
	mov	x0, x20
	mov	w1, #2
	mov	x2, x19
	bl	_phy_write_mmd
LBB0_13:
	ldr	x8, [sp, #24]
Lloh9:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh10:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_15
; %bb.14:
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
LBB0_15:
	bl	___stack_chk_fail
	.loh AdrpAddLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__literal16,16byte_literals
	.p2align	2                               ; @__const.ksz9031_of_load_skew_values.val
l___const.ksz9031_of_load_skew_values.val:
	.long	4294967295                      ; 0xffffffff
	.long	4294967294                      ; 0xfffffffe
	.long	4294967293                      ; 0xfffffffd
	.long	4294967292                      ; 0xfffffffc

	.comm	_KSZ9031_PS_TO_REG,4,2          ; @KSZ9031_PS_TO_REG
	.no_dead_strip	_ksz9031_of_load_skew_values
.subsections_via_symbols
