	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rcsi2_set_phypll
_rcsi2_set_phypll:                      ## @rcsi2_set_phypll
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	%esi, %edx
	movq	%rdi, %rbx
	movq	8(%rdi), %rax
	movq	(%rax), %rax
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%rax), %ecx
	addq	$8, %rax
	testl	%ecx, %ecx
	je	LBB0_3
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	cmpl	%edx, %ecx
	jb	LBB0_1
LBB0_3:
	testl	%ecx, %ecx
	je	LBB0_4
## %bb.5:
	movq	_PHYPLL_REG@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r14d
	movl	-4(%rax), %edi
	callq	_PHYPLL_HSFREQRANGE
	movq	%rbx, %rdi
	movl	%r14d, %esi
	movl	%eax, %edx
	callq	_rcsi2_write
	xorl	%eax, %eax
	jmp	LBB0_6
LBB0_4:
	movl	(%rbx), %edi
	leaq	L_.str(%rip), %rsi
	callq	_dev_err
	movq	_ERANGE@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_6:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Unsupported PHY speed (%u Mbps)"

	.comm	_ERANGE,4,2                     ## @ERANGE
	.comm	_PHYPLL_REG,4,2                 ## @PHYPLL_REG
	.no_dead_strip	_rcsi2_set_phypll
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rcsi2_set_phypll
_rcsi2_set_phypll:                      ; @rcsi2_set_phypll
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x2, x1
	mov	x19, x0
	ldr	x8, [x0, #8]
	ldr	x8, [x8]
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w9, [x8], #8
	cmp	w9, #0
	ccmp	w9, w2, #2, ne
	b.lo	LBB0_1
; %bb.2:
	cbz	w9, LBB0_4
; %bb.3:
Lloh0:
	adrp	x9, _PHYPLL_REG@GOTPAGE
Lloh1:
	ldr	x9, [x9, _PHYPLL_REG@GOTPAGEOFF]
Lloh2:
	ldr	w20, [x9]
	ldur	w0, [x8, #-4]
	bl	_PHYPLL_HSFREQRANGE
	mov	x2, x0
	mov	x0, x19
	mov	x1, x20
	bl	_rcsi2_write
	mov	w0, #0
	b	LBB0_5
LBB0_4:
	ldr	w0, [x19]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_err
Lloh5:
	adrp	x8, _ERANGE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ERANGE@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_5:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Unsupported PHY speed (%u Mbps)"

	.comm	_ERANGE,4,2                     ; @ERANGE
	.comm	_PHYPLL_REG,4,2                 ; @PHYPLL_REG
	.no_dead_strip	_rcsi2_set_phypll
.subsections_via_symbols
