	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_igb_get_cable_length_m88       ## -- Begin function igb_get_cable_length_m88
	.p2align	4, 0x90
_igb_get_cable_length_m88:              ## @igb_get_cable_length_m88
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	_M88E1000_PHY_SPEC_STATUS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-28(%rbp), %rdx
	callq	*16(%rdi)
	testl	%eax, %eax
	jne	LBB0_4
## %bb.1:
	movq	_M88E1000_PSSR_CABLE_LENGTH@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	andl	-28(%rbp), %ebx
	movq	_M88E1000_PSSR_CABLE_LENGTH_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	sarl	%cl, %ebx
	movq	_e1000_m88_cable_length_table@GOTPCREL(%rip), %r15
	movq	(%r15), %rdi
	callq	_ARRAY_SIZE
	decl	%eax
	cmpl	%eax, %ebx
	jge	LBB0_2
## %bb.3:
	movq	(%r15), %rax
	movslq	%ebx, %rcx
	movl	(%rax,%rcx,8), %edx
	movl	%edx, (%r14)
	movl	8(%rax,%rcx,8), %eax
	movl	%eax, 4(%r14)
	addl	%edx, %eax
	movl	%eax, %ecx
	shrl	$31, %ecx
	addl	%eax, %ecx
	sarl	%ecx
	movl	%ecx, 8(%r14)
	xorl	%eax, %eax
	jmp	LBB0_4
LBB0_2:
	movq	_E1000_ERR_PHY@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_4:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_M88E1000_PHY_SPEC_STATUS,4,2   ## @M88E1000_PHY_SPEC_STATUS
	.comm	_M88E1000_PSSR_CABLE_LENGTH,4,2 ## @M88E1000_PSSR_CABLE_LENGTH
	.comm	_M88E1000_PSSR_CABLE_LENGTH_SHIFT,4,2 ## @M88E1000_PSSR_CABLE_LENGTH_SHIFT
	.comm	_e1000_m88_cable_length_table,8,3 ## @e1000_m88_cable_length_table
	.comm	_E1000_ERR_PHY,4,2              ## @E1000_ERR_PHY
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_igb_get_cable_length_m88       ; -- Begin function igb_get_cable_length_m88
	.p2align	2
_igb_get_cable_length_m88:              ; @igb_get_cable_length_m88
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x19, x0
	ldr	x8, [x0, #16]
Lloh0:
	adrp	x9, _M88E1000_PHY_SPEC_STATUS@GOTPAGE
Lloh1:
	ldr	x9, [x9, _M88E1000_PHY_SPEC_STATUS@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x9]
	add	x2, sp, #12
	blr	x8
	cbnz	w0, LBB0_4
; %bb.1:
	ldr	w8, [sp, #12]
Lloh3:
	adrp	x9, _M88E1000_PSSR_CABLE_LENGTH@GOTPAGE
Lloh4:
	ldr	x9, [x9, _M88E1000_PSSR_CABLE_LENGTH@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
Lloh6:
	adrp	x10, _M88E1000_PSSR_CABLE_LENGTH_SHIFT@GOTPAGE
Lloh7:
	ldr	x10, [x10, _M88E1000_PSSR_CABLE_LENGTH_SHIFT@GOTPAGEOFF]
	and	w8, w9, w8
Lloh8:
	ldr	w9, [x10]
	asr	w20, w8, w9
Lloh9:
	adrp	x21, _e1000_m88_cable_length_table@GOTPAGE
Lloh10:
	ldr	x21, [x21, _e1000_m88_cable_length_table@GOTPAGEOFF]
	ldr	x0, [x21]
	bl	_ARRAY_SIZE
	sub	w8, w0, #1
	cmp	w20, w8
	b.ge	LBB0_3
; %bb.2:
	mov	w0, #0
	ldr	x8, [x21]
	add	x8, x8, w20, sxtw #3
	ldr	x9, [x8]
	ldr	w8, [x8, #8]
	stp	w9, w8, [x19]
	add	w8, w8, w9
	cmp	w8, #0
	cinc	w8, w8, lt
	asr	w8, w8, #1
	str	w8, [x19, #8]
	b	LBB0_4
LBB0_3:
Lloh11:
	adrp	x8, _E1000_ERR_PHY@GOTPAGE
Lloh12:
	ldr	x8, [x8, _E1000_ERR_PHY@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_4:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_M88E1000_PHY_SPEC_STATUS,4,2   ; @M88E1000_PHY_SPEC_STATUS
	.comm	_M88E1000_PSSR_CABLE_LENGTH,4,2 ; @M88E1000_PSSR_CABLE_LENGTH
	.comm	_M88E1000_PSSR_CABLE_LENGTH_SHIFT,4,2 ; @M88E1000_PSSR_CABLE_LENGTH_SHIFT
	.comm	_e1000_m88_cable_length_table,8,3 ; @e1000_m88_cable_length_table
	.comm	_E1000_ERR_PHY,4,2              ; @E1000_ERR_PHY
.subsections_via_symbols
