	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function smc911x_ethtool_getregslen
_smc911x_ethtool_getregslen:            ## @smc911x_ethtool_getregslen
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	_E2P_CMD@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_ID_REV@GOTPCREL(%rip), %rcx
	subl	(%rcx), %eax
	leal	3(%rax), %ecx
	testl	%eax, %eax
	cmovnsl	%eax, %ecx
	shrl	$2, %ecx
	movq	_WUCSR@GOTPCREL(%rip), %rax
	addl	(%rax), %ecx
	movq	_MAC_CR@GOTPCREL(%rip), %rax
	subl	(%rax), %ecx
	leal	136(,%rcx,4), %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_E2P_CMD,4,2                    ## @E2P_CMD
	.comm	_ID_REV,4,2                     ## @ID_REV
	.comm	_WUCSR,4,2                      ## @WUCSR
	.comm	_MAC_CR,4,2                     ## @MAC_CR
	.no_dead_strip	_smc911x_ethtool_getregslen
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function smc911x_ethtool_getregslen
_smc911x_ethtool_getregslen:            ; @smc911x_ethtool_getregslen
	.cfi_startproc
; %bb.0:
Lloh0:
	adrp	x8, _E2P_CMD@GOTPAGE
Lloh1:
	ldr	x8, [x8, _E2P_CMD@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _ID_REV@GOTPAGE
Lloh4:
	ldr	x9, [x9, _ID_REV@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	sub	w8, w8, w9
	add	w9, w8, #3
	cmp	w8, #0
	csel	w8, w9, w8, lt
Lloh6:
	adrp	x9, _WUCSR@GOTPAGE
Lloh7:
	ldr	x9, [x9, _WUCSR@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
Lloh9:
	adrp	x10, _MAC_CR@GOTPAGE
Lloh10:
	ldr	x10, [x10, _MAC_CR@GOTPAGEOFF]
Lloh11:
	ldr	w10, [x10]
	add	w8, w9, w8, lsr #2
	sub	w8, w8, w10
	lsl	w8, w8, #2
	add	w0, w8, #136
	ret
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_E2P_CMD,4,2                    ; @E2P_CMD
	.comm	_ID_REV,4,2                     ; @ID_REV
	.comm	_WUCSR,4,2                      ; @WUCSR
	.comm	_MAC_CR,4,2                     ; @MAC_CR
	.no_dead_strip	_smc911x_ethtool_getregslen
.subsections_via_symbols
