	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sxgbe_clk_csr_set
_sxgbe_clk_csr_set:                     ## @sxgbe_clk_csr_set
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	movl	4(%rdi), %edi
	callq	_clk_get_rate
	movq	_SXGBE_CSR_F_150M@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jge	LBB0_2
## %bb.1:
	movq	_SXGBE_CSR_100_150M@GOTPCREL(%rip), %rax
	jmp	LBB0_12
LBB0_2:
	movq	_SXGBE_CSR_F_250M@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jle	LBB0_3
## %bb.4:
	movq	_SXGBE_CSR_F_300M@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jle	LBB0_5
## %bb.6:
	movq	_SXGBE_CSR_F_350M@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jle	LBB0_7
## %bb.8:
	movq	_SXGBE_CSR_F_400M@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jle	LBB0_9
## %bb.10:
	movq	_SXGBE_CSR_F_500M@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jg	LBB0_13
## %bb.11:
	movq	_SXGBE_CSR_400_500M@GOTPCREL(%rip), %rax
	jmp	LBB0_12
LBB0_3:
	movq	_SXGBE_CSR_150_250M@GOTPCREL(%rip), %rax
	jmp	LBB0_12
LBB0_5:
	movq	_SXGBE_CSR_250_300M@GOTPCREL(%rip), %rax
	jmp	LBB0_12
LBB0_7:
	movq	_SXGBE_CSR_300_350M@GOTPCREL(%rip), %rax
	jmp	LBB0_12
LBB0_9:
	movq	_SXGBE_CSR_350_400M@GOTPCREL(%rip), %rax
LBB0_12:
	movl	(%rax), %eax
	movl	%eax, (%rbx)
LBB0_13:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SXGBE_CSR_F_150M,8,3           ## @SXGBE_CSR_F_150M
	.comm	_SXGBE_CSR_100_150M,4,2         ## @SXGBE_CSR_100_150M
	.comm	_SXGBE_CSR_F_250M,8,3           ## @SXGBE_CSR_F_250M
	.comm	_SXGBE_CSR_150_250M,4,2         ## @SXGBE_CSR_150_250M
	.comm	_SXGBE_CSR_F_300M,8,3           ## @SXGBE_CSR_F_300M
	.comm	_SXGBE_CSR_250_300M,4,2         ## @SXGBE_CSR_250_300M
	.comm	_SXGBE_CSR_F_350M,8,3           ## @SXGBE_CSR_F_350M
	.comm	_SXGBE_CSR_300_350M,4,2         ## @SXGBE_CSR_300_350M
	.comm	_SXGBE_CSR_F_400M,8,3           ## @SXGBE_CSR_F_400M
	.comm	_SXGBE_CSR_350_400M,4,2         ## @SXGBE_CSR_350_400M
	.comm	_SXGBE_CSR_F_500M,8,3           ## @SXGBE_CSR_F_500M
	.comm	_SXGBE_CSR_400_500M,4,2         ## @SXGBE_CSR_400_500M
	.no_dead_strip	_sxgbe_clk_csr_set
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sxgbe_clk_csr_set
_sxgbe_clk_csr_set:                     ; @sxgbe_clk_csr_set
	.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	x19, x0
	ldr	w0, [x0, #4]
	bl	_clk_get_rate
Lloh0:
	adrp	x8, _SXGBE_CSR_F_150M@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SXGBE_CSR_F_150M@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ge	LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _SXGBE_CSR_100_150M@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SXGBE_CSR_100_150M@GOTPAGEOFF]
	b	LBB0_12
LBB0_2:
Lloh5:
	adrp	x8, _SXGBE_CSR_F_250M@GOTPAGE
Lloh6:
	ldr	x8, [x8, _SXGBE_CSR_F_250M@GOTPAGEOFF]
Lloh7:
	ldr	x8, [x8]
	cmp	x0, x8
	b.le	LBB0_8
; %bb.3:
Lloh8:
	adrp	x8, _SXGBE_CSR_F_300M@GOTPAGE
Lloh9:
	ldr	x8, [x8, _SXGBE_CSR_F_300M@GOTPAGEOFF]
Lloh10:
	ldr	x8, [x8]
	cmp	x0, x8
	b.le	LBB0_9
; %bb.4:
Lloh11:
	adrp	x8, _SXGBE_CSR_F_350M@GOTPAGE
Lloh12:
	ldr	x8, [x8, _SXGBE_CSR_F_350M@GOTPAGEOFF]
Lloh13:
	ldr	x8, [x8]
	cmp	x0, x8
	b.le	LBB0_10
; %bb.5:
Lloh14:
	adrp	x8, _SXGBE_CSR_F_400M@GOTPAGE
Lloh15:
	ldr	x8, [x8, _SXGBE_CSR_F_400M@GOTPAGEOFF]
Lloh16:
	ldr	x8, [x8]
	cmp	x0, x8
	b.le	LBB0_11
; %bb.6:
Lloh17:
	adrp	x8, _SXGBE_CSR_F_500M@GOTPAGE
Lloh18:
	ldr	x8, [x8, _SXGBE_CSR_F_500M@GOTPAGEOFF]
Lloh19:
	ldr	x8, [x8]
	cmp	x0, x8
	b.gt	LBB0_13
; %bb.7:
Lloh20:
	adrp	x8, _SXGBE_CSR_400_500M@GOTPAGE
Lloh21:
	ldr	x8, [x8, _SXGBE_CSR_400_500M@GOTPAGEOFF]
	b	LBB0_12
LBB0_8:
Lloh22:
	adrp	x8, _SXGBE_CSR_150_250M@GOTPAGE
Lloh23:
	ldr	x8, [x8, _SXGBE_CSR_150_250M@GOTPAGEOFF]
	b	LBB0_12
LBB0_9:
Lloh24:
	adrp	x8, _SXGBE_CSR_250_300M@GOTPAGE
Lloh25:
	ldr	x8, [x8, _SXGBE_CSR_250_300M@GOTPAGEOFF]
	b	LBB0_12
LBB0_10:
Lloh26:
	adrp	x8, _SXGBE_CSR_300_350M@GOTPAGE
Lloh27:
	ldr	x8, [x8, _SXGBE_CSR_300_350M@GOTPAGEOFF]
	b	LBB0_12
LBB0_11:
Lloh28:
	adrp	x8, _SXGBE_CSR_350_400M@GOTPAGE
Lloh29:
	ldr	x8, [x8, _SXGBE_CSR_350_400M@GOTPAGEOFF]
LBB0_12:
	ldr	w8, [x8]
	str	w8, [x19]
LBB0_13:
	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 AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh28, Lloh29
	.cfi_endproc
                                        ; -- End function
	.comm	_SXGBE_CSR_F_150M,8,3           ; @SXGBE_CSR_F_150M
	.comm	_SXGBE_CSR_100_150M,4,2         ; @SXGBE_CSR_100_150M
	.comm	_SXGBE_CSR_F_250M,8,3           ; @SXGBE_CSR_F_250M
	.comm	_SXGBE_CSR_150_250M,4,2         ; @SXGBE_CSR_150_250M
	.comm	_SXGBE_CSR_F_300M,8,3           ; @SXGBE_CSR_F_300M
	.comm	_SXGBE_CSR_250_300M,4,2         ; @SXGBE_CSR_250_300M
	.comm	_SXGBE_CSR_F_350M,8,3           ; @SXGBE_CSR_F_350M
	.comm	_SXGBE_CSR_300_350M,4,2         ; @SXGBE_CSR_300_350M
	.comm	_SXGBE_CSR_F_400M,8,3           ; @SXGBE_CSR_F_400M
	.comm	_SXGBE_CSR_350_400M,4,2         ; @SXGBE_CSR_350_400M
	.comm	_SXGBE_CSR_F_500M,8,3           ; @SXGBE_CSR_F_500M
	.comm	_SXGBE_CSR_400_500M,4,2         ; @SXGBE_CSR_400_500M
	.no_dead_strip	_sxgbe_clk_csr_set
.subsections_via_symbols
