	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function get_clk_div_sgmii
_get_clk_div_sgmii:                     ## @get_clk_div_sgmii
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movl	%esi, %edx
	leal	-128(%rdx), %eax
	cmpl	$3, %eax
	jae	LBB0_1
## %bb.2:
	cltq
	leaq	l_switch.table.get_clk_div_sgmii(%rip), %rcx
	movq	(%rcx,%rax,8), %rax
	movl	(%rax), %eax
	popq	%rbp
	retq
LBB0_1:
	movq	(%rdi), %rdi
	leaq	L_.str(%rip), %rsi
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_dev_err
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NSS_COMMON_CLK_DIV_SGMII_1000,4,2 ## @NSS_COMMON_CLK_DIV_SGMII_1000
	.comm	_NSS_COMMON_CLK_DIV_SGMII_100,4,2 ## @NSS_COMMON_CLK_DIV_SGMII_100
	.comm	_NSS_COMMON_CLK_DIV_SGMII_10,4,2 ## @NSS_COMMON_CLK_DIV_SGMII_10
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Speed %dMbps not supported in SGMII\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_get_clk_div_sgmii
	.section	__DATA,__const
	.p2align	3                               ## @switch.table.get_clk_div_sgmii
l_switch.table.get_clk_div_sgmii:
	.quad	_NSS_COMMON_CLK_DIV_SGMII_1000
	.quad	_NSS_COMMON_CLK_DIV_SGMII_100
	.quad	_NSS_COMMON_CLK_DIV_SGMII_10

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function get_clk_div_sgmii
_get_clk_div_sgmii:                     ; @get_clk_div_sgmii
	.cfi_startproc
; %bb.0:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	sub	w8, w1, #128
	cmp	w8, #3
	b.hs	LBB0_2
; %bb.1:
Lloh0:
	adrp	x9, l_switch.table.get_clk_div_sgmii@PAGE
Lloh1:
	add	x9, x9, l_switch.table.get_clk_div_sgmii@PAGEOFF
	ldr	x8, [x9, w8, sxtw #3]
	ldr	w0, [x8]
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
LBB0_2:
	mov	x2, x1
	ldr	x0, [x0]
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_err
Lloh4:
	adrp	x8, _EINVAL@GOTPAGE
Lloh5:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	neg	w0, w8
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_NSS_COMMON_CLK_DIV_SGMII_1000,4,2 ; @NSS_COMMON_CLK_DIV_SGMII_1000
	.comm	_NSS_COMMON_CLK_DIV_SGMII_100,4,2 ; @NSS_COMMON_CLK_DIV_SGMII_100
	.comm	_NSS_COMMON_CLK_DIV_SGMII_10,4,2 ; @NSS_COMMON_CLK_DIV_SGMII_10
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Speed %dMbps not supported in SGMII\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_get_clk_div_sgmii
	.section	__DATA,__const
	.p2align	3                               ; @switch.table.get_clk_div_sgmii
l_switch.table.get_clk_div_sgmii:
	.quad	_NSS_COMMON_CLK_DIV_SGMII_1000
	.quad	_NSS_COMMON_CLK_DIV_SGMII_100
	.quad	_NSS_COMMON_CLK_DIV_SGMII_10

.subsections_via_symbols
