	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ksz9021_load_values_from_of
_ksz9021_load_values_from_of:           ## @ksz9021_load_values_from_of
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, %r13
	movq	%r8, %r14
	movl	%edx, -60(%rbp)                 ## 4-byte Spill
	movq	%rsi, %r15
	movq	%rdi, -72(%rbp)                 ## 8-byte Spill
	movl	$-1, -56(%rbp)
	movl	$-2, -52(%rbp)
	movl	$-3, -48(%rbp)
	movl	$-4, -44(%rbp)
	leaq	-56(%rbp), %rdx
	movq	%rsi, %rdi
	movq	%rcx, %rsi
	callq	_of_property_read_u32
	xorl	%r12d, %r12d
	testl	%eax, %eax
	sete	%r12b
	leaq	-52(%rbp), %rdx
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_of_property_read_u32
	leal	1(%r12), %ebx
	testl	%eax, %eax
	cmovnel	%r12d, %ebx
	leaq	-48(%rbp), %rdx
	movq	%r15, %rdi
	movq	%r13, %rsi
	callq	_of_property_read_u32
	cmpl	$1, %eax
	adcl	$0, %ebx
	leaq	-44(%rbp), %rdx
	movq	%r15, %rdi
	movq	16(%rbp), %rsi
	callq	_of_property_read_u32
	xorl	%edx, %edx
	testl	%eax, %eax
	sete	%dl
	addl	%ebx, %edx
	je	LBB0_1
## %bb.2:
	xorl	%ecx, %ecx
	cmpl	$3, %edx
	movl	-60(%rbp), %r14d                ## 4-byte Reload
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	ja	LBB0_4
## %bb.3:
	movq	%rbx, %rdi
	movl	%r14d, %esi
	callq	_kszphy_extended_read
	movl	%eax, %ecx
LBB0_4:
	movl	-56(%rbp), %eax
	cmpl	$-1, %eax
	je	LBB0_6
## %bb.5:
	andl	$65520, %ecx                    ## imm = 0xFFF0
	movq	_PS_TO_REG@GOTPCREL(%rip), %rsi
	cltd
	idivl	(%rsi)
	andl	$15, %eax
	orl	%eax, %ecx
LBB0_6:
	movl	-52(%rbp), %eax
	cmpl	$-2, %eax
	je	LBB0_8
## %bb.7:
	movq	_PS_TO_REG@GOTPCREL(%rip), %rsi
	cltd
	idivl	(%rsi)
	andl	$65295, %ecx                    ## imm = 0xFF0F
	shll	$4, %eax
	movzbl	%al, %eax
	orl	%eax, %ecx
LBB0_8:
	movl	-48(%rbp), %eax
	cmpl	$-3, %eax
	je	LBB0_10
## %bb.9:
	movq	_PS_TO_REG@GOTPCREL(%rip), %rsi
	cltd
	idivl	(%rsi)
	andl	$61695, %ecx                    ## imm = 0xF0FF
	andl	$15, %eax
	shll	$8, %eax
	orl	%eax, %ecx
LBB0_10:
	movl	-44(%rbp), %eax
	cmpl	$-4, %eax
	je	LBB0_12
## %bb.11:
	movq	_PS_TO_REG@GOTPCREL(%rip), %rsi
	cltd
	idivl	(%rsi)
	andl	$4095, %ecx                     ## imm = 0xFFF
	shll	$12, %eax
	movzwl	%ax, %eax
	orl	%eax, %ecx
LBB0_12:
	movq	%rbx, %rdi
	movl	%r14d, %esi
	movl	%ecx, %edx
	callq	_kszphy_extended_write
	jmp	LBB0_13
LBB0_1:
	xorl	%eax, %eax
LBB0_13:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PS_TO_REG,4,2                  ## @PS_TO_REG
	.no_dead_strip	_ksz9021_load_values_from_of
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ksz9021_load_values_from_of
_ksz9021_load_values_from_of:           ; @ksz9021_load_values_from_of
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	mov	x21, x6
	mov	x22, x5
	mov	x23, x4
	mov	x19, x2
	mov	x24, x1
	mov	x20, x0
	mov	w9, #-1
	mov	w8, #-2
	stp	w8, w9, [sp, #8]
	mov	w9, #-3
	mov	w8, #-4
	stp	w8, w9, [sp]
	add	x2, sp, #12
	mov	x0, x1
	mov	x1, x3
	bl	_of_property_read_u32
	mov	x25, x0
	add	x2, sp, #8
	mov	x0, x24
	mov	x1, x23
	bl	_of_property_read_u32
	cmp	w25, #0
	cset	w8, eq
	mov	w9, #1
	cinc	w9, w9, eq
	cmp	w0, #0
	csel	w23, w9, w8, eq
	add	x2, sp, #4
	mov	x0, x24
	mov	x1, x22
	bl	_of_property_read_u32
	cmp	w0, #0
	cinc	w22, w23, eq
	mov	x2, sp
	mov	x0, x24
	mov	x1, x21
	bl	_of_property_read_u32
	cmp	w0, #0
	cinc	w8, w22, eq
	cbz	w8, LBB0_3
; %bb.1:
	cmp	w8, #3
	b.hi	LBB0_4
; %bb.2:
	mov	x0, x20
	mov	x1, x19
	bl	_kszphy_extended_read
	mov	x2, x0
	b	LBB0_5
LBB0_3:
	mov	w0, #0
	b	LBB0_14
LBB0_4:
	mov	w2, #0
LBB0_5:
	ldr	w9, [sp, #12]
Lloh0:
	adrp	x8, _PS_TO_REG@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PS_TO_REG@GOTPAGEOFF]
	cmn	w9, #1
	b.eq	LBB0_7
; %bb.6:
	and	w2, w2, #0xfff0
	ldr	w10, [x8]
	sdiv	w9, w9, w10
	bfxil	w2, w9, #0, #4
LBB0_7:
	ldr	w9, [sp, #8]
	cmn	w9, #2
	b.eq	LBB0_9
; %bb.8:
	mov	w10, #65295
	and	w2, w2, w10
	ldr	w10, [x8]
	sdiv	w9, w9, w10
	bfi	w2, w9, #4, #4
LBB0_9:
	ldr	w9, [sp, #4]
	cmn	w9, #3
	b.eq	LBB0_11
; %bb.10:
	mov	w10, #61695
	and	w2, w2, w10
	ldr	w10, [x8]
	sdiv	w9, w9, w10
	bfi	w2, w9, #8, #4
LBB0_11:
	ldr	w9, [sp]
	cmn	w9, #4
	b.eq	LBB0_13
; %bb.12:
	and	w2, w2, #0xfff
	ldr	w8, [x8]
	sdiv	w8, w9, w8
	bfi	w2, w8, #12, #4
LBB0_13:
	mov	x0, x20
	mov	x1, x19
	bl	_kszphy_extended_write
LBB0_14:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_PS_TO_REG,4,2                  ; @PS_TO_REG
	.no_dead_strip	_ksz9021_load_values_from_of
.subsections_via_symbols
