	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ksz9477_phy_read16
_ksz9477_phy_read16:                    ## @ksz9477_phy_read16
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	subq	$16, %rsp
                                        ## kill: def $edx killed $edx def $rdx
	movq	(%rdi), %rdi
	movl	$65535, -4(%rbp)                ## imm = 0xFFFF
	cmpl	%esi, (%rdi)
	jle	LBB0_1
## %bb.12:
	addl	%edx, %edx
	addl	$256, %edx                      ## imm = 0x100
	leaq	-4(%rbp), %rcx
	callq	_ksz_pread16
	movl	-4(%rbp), %eax
LBB0_13:
	addq	$16, %rsp
	popq	%rbp
	retq
LBB0_1:
	addl	$-128, %edx
	cmpl	$7, %edx
	ja	LBB0_2
## %bb.3:
	leaq	LJTI0_0(%rip), %rax
	movslq	(%rax,%rdx,4), %rcx
	addq	%rax, %rcx
	jmpq	*%rcx
LBB0_11:
	movq	8(%rdi), %rax
	movslq	%esi, %rcx
	movl	(%rax,%rcx,4), %eax
	movq	_SPEED_1000@GOTPCREL(%rip), %rcx
	xorl	%edx, %edx
	cmpl	(%rcx), %eax
	movl	$14336, %eax                    ## imm = 0x3800
	cmovnel	%edx, %eax
	jmp	LBB0_13
LBB0_2:
	movl	$65535, %eax                    ## imm = 0xFFFF
	jmp	LBB0_13
LBB0_7:
	movl	$5681, %eax                     ## imm = 0x1631
	jmp	LBB0_13
LBB0_6:
	movl	$34, %eax
	jmp	LBB0_13
LBB0_9:
	movl	$50657, %eax                    ## imm = 0xC5E1
	jmp	LBB0_13
LBB0_10:
	movl	$1792, %eax                     ## imm = 0x700
	jmp	LBB0_13
LBB0_5:
	movl	$31085, %eax                    ## imm = 0x796D
	jmp	LBB0_13
LBB0_4:
	movl	$4416, %eax                     ## imm = 0x1140
	jmp	LBB0_13
LBB0_8:
	movl	$1505, %eax                     ## imm = 0x5E1
	jmp	LBB0_13
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_11, LBB0_11-LJTI0_0
.set L0_0_set_7, LBB0_7-LJTI0_0
.set L0_0_set_6, LBB0_6-LJTI0_0
.set L0_0_set_9, LBB0_9-LJTI0_0
.set L0_0_set_10, LBB0_10-LJTI0_0
.set L0_0_set_5, LBB0_5-LJTI0_0
.set L0_0_set_4, LBB0_4-LJTI0_0
.set L0_0_set_8, LBB0_8-LJTI0_0
LJTI0_0:
	.long	L0_0_set_11
	.long	L0_0_set_7
	.long	L0_0_set_6
	.long	L0_0_set_9
	.long	L0_0_set_10
	.long	L0_0_set_5
	.long	L0_0_set_4
	.long	L0_0_set_8
	.end_data_region
                                        ## -- End function
	.comm	_SPEED_1000,4,2                 ## @SPEED_1000
	.no_dead_strip	_ksz9477_phy_read16
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ksz9477_phy_read16
_ksz9477_phy_read16:                    ; @ksz9477_phy_read16
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #32
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	ldr	x0, [x0]
	mov	w8, #65535
	stur	w8, [x29, #-4]
	ldr	w8, [x0]
	cmp	w8, w1
	b.le	LBB0_3
; %bb.1:
	lsl	w8, w2, #1
	add	w2, w8, #256
	sub	x3, x29, #4
	bl	_ksz_pread16
	ldur	w0, [x29, #-4]
LBB0_2:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #32
	ret
LBB0_3:
	sub	w8, w2, #128
	cmp	w8, #7
	b.hi	LBB0_6
; %bb.4:
Lloh0:
	adrp	x9, lJTI0_0@PAGE
Lloh1:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_5
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_5:
	ldr	x8, [x0, #8]
	ldr	w8, [x8, w1, sxtw #2]
Lloh2:
	adrp	x9, _SPEED_1000@GOTPAGE
Lloh3:
	ldr	x9, [x9, _SPEED_1000@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x9]
	mov	w10, #14336
	cmp	w8, w9
	csel	w0, w10, wzr, eq
	b	LBB0_2
LBB0_6:
	mov	w0, #65535
	b	LBB0_2
LBB0_7:
	mov	w0, #5681
	b	LBB0_2
LBB0_8:
	mov	w0, #34
	b	LBB0_2
LBB0_9:
	mov	w0, #50657
	b	LBB0_2
LBB0_10:
	mov	w0, #1792
	b	LBB0_2
LBB0_11:
	mov	w0, #31085
	b	LBB0_2
LBB0_12:
	mov	w0, #4416
	b	LBB0_2
LBB0_13:
	mov	w0, #1505
	b	LBB0_2
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_5-LBB0_5)>>2
	.byte	(LBB0_7-LBB0_5)>>2
	.byte	(LBB0_8-LBB0_5)>>2
	.byte	(LBB0_9-LBB0_5)>>2
	.byte	(LBB0_10-LBB0_5)>>2
	.byte	(LBB0_11-LBB0_5)>>2
	.byte	(LBB0_12-LBB0_5)>>2
	.byte	(LBB0_13-LBB0_5)>>2
                                        ; -- End function
	.comm	_SPEED_1000,4,2                 ; @SPEED_1000
	.no_dead_strip	_ksz9477_phy_read16
.subsections_via_symbols
