	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_igb_get_cable_length_m88_gen2  ## -- Begin function igb_get_cable_length_m88_gen2
	.p2align	4, 0x90
_igb_get_cable_length_m88_gen2:         ## @igb_get_cable_length_m88_gen2
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	(%rdi), %eax
	addl	$-128, %eax
	cmpl	$3, %eax
	ja	LBB0_16
## %bb.1:
	movq	%rdi, %rbx
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_5:
	movq	_I347AT4_PAGE_SELECT@GOTPCREL(%rip), %r14
	movq	(%r14), %rsi
	leaq	-32(%rbp), %rdx
	movq	%rbx, %rdi
	callq	*24(%rbx)
	testl	%eax, %eax
	jne	LBB0_17
## %bb.6:
	movq	(%r14), %rsi
	movq	%rbx, %rdi
	movl	$7, %edx
	callq	*16(%rbx)
	testl	%eax, %eax
	jne	LBB0_17
## %bb.7:
	movq	_I347AT4_PCDL@GOTPCREL(%rip), %rax
	movq	32(%rbx), %rsi
	addq	(%rax), %rsi
	leaq	-28(%rbp), %rdx
	movq	%rbx, %rdi
	callq	*24(%rbx)
	testl	%eax, %eax
	jne	LBB0_17
## %bb.8:
	movq	_I347AT4_PCDC@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	leaq	-36(%rbp), %rdx
	movq	%rbx, %rdi
	callq	*24(%rbx)
	testl	%eax, %eax
	jne	LBB0_17
## %bb.9:
	movq	_I347AT4_PCDC_CABLE_LENGTH_UNIT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	-36(%rbp), %eax
	movl	$100, %eax
	movl	$1, %ecx
	cmovel	%eax, %ecx
	movl	-28(%rbp), %eax
	cltd
	idivl	%ecx
	movl	%eax, 4(%rbx)
	movl	%eax, 8(%rbx)
	movl	%eax, 12(%rbx)
	jmp	LBB0_10
LBB0_11:
	movq	_I347AT4_PAGE_SELECT@GOTPCREL(%rip), %r14
	movq	(%r14), %rsi
	leaq	-32(%rbp), %rdx
	movq	%rbx, %rdi
	callq	*24(%rbx)
	testl	%eax, %eax
	jne	LBB0_17
## %bb.12:
	movq	(%r14), %rsi
	movq	%rbx, %rdi
	movl	$5, %edx
	callq	*16(%rbx)
	testl	%eax, %eax
	jne	LBB0_17
## %bb.13:
	movq	_M88E1112_VCT_DSP_DISTANCE@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	leaq	-28(%rbp), %rdx
	movq	%rbx, %rdi
	callq	*24(%rbx)
	testl	%eax, %eax
	jne	LBB0_17
## %bb.14:
	movq	_M88E1000_PSSR_CABLE_LENGTH@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	-28(%rbp), %eax
	movq	_M88E1000_PSSR_CABLE_LENGTH_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	sarl	%cl, %eax
	movq	_M88E1000_CABLE_LENGTH_TABLE_SIZE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	decl	%ecx
	cmpl	%ecx, %eax
	jge	LBB0_16
## %bb.15:
	movq	_e1000_m88_cable_length_table@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cltq
	movl	(%rcx,%rax,8), %edx
	movl	%edx, 4(%rbx)
	movl	8(%rcx,%rax,8), %eax
	movl	%eax, 8(%rbx)
	addl	%edx, %eax
	movl	%eax, %ecx
	shrl	$31, %ecx
	addl	%eax, %ecx
	sarl	%ecx
	movl	%ecx, 12(%rbx)
LBB0_10:
	movq	(%r14), %rsi
	movl	-32(%rbp), %edx
	movq	%rbx, %rdi
	callq	*16(%rbx)
	jmp	LBB0_17
LBB0_16:
	movq	_E1000_ERR_PHY@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_17
LBB0_2:
	movq	_GS40G_PAGE_SHIFT@GOTPCREL(%rip), %r14
	movb	(%r14), %cl
	movl	$7, %eax
	shll	%cl, %eax
	movl	$7, %r15d
	cltq
	movq	_I347AT4_PCDL@GOTPCREL(%rip), %rcx
	movq	32(%rbx), %rsi
	addq	(%rcx), %rsi
	addq	%rax, %rsi
	leaq	-28(%rbp), %rdx
	movq	%rbx, %rdi
	callq	*24(%rbx)
	testl	%eax, %eax
	jne	LBB0_17
## %bb.3:
	movb	(%r14), %cl
	shll	%cl, %r15d
	movslq	%r15d, %rsi
	movq	_I347AT4_PCDC@GOTPCREL(%rip), %rax
	addq	(%rax), %rsi
	leaq	-36(%rbp), %rdx
	movq	%rbx, %rdi
	callq	*24(%rbx)
	testl	%eax, %eax
	jne	LBB0_17
## %bb.4:
	movq	_I347AT4_PCDC_CABLE_LENGTH_UNIT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	-36(%rbp), %eax
	movl	-28(%rbp), %eax
	movl	$100, %ecx
	movl	$1, %esi
	cmovel	%ecx, %esi
	cltd
	idivl	%esi
	movl	%eax, 4(%rbx)
	movl	%eax, 8(%rbx)
	movl	%eax, 12(%rbx)
	xorl	%eax, %eax
LBB0_17:
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_5, LBB0_5-LJTI0_0
.set L0_0_set_11, LBB0_11-LJTI0_0
.set L0_0_set_2, LBB0_2-LJTI0_0
LJTI0_0:
	.long	L0_0_set_5
	.long	L0_0_set_11
	.long	L0_0_set_5
	.long	L0_0_set_2
	.end_data_region
                                        ## -- End function
	.comm	_GS40G_PAGE_SHIFT,4,2           ## @GS40G_PAGE_SHIFT
	.comm	_I347AT4_PCDL,8,3               ## @I347AT4_PCDL
	.comm	_I347AT4_PCDC,8,3               ## @I347AT4_PCDC
	.comm	_I347AT4_PCDC_CABLE_LENGTH_UNIT,4,2 ## @I347AT4_PCDC_CABLE_LENGTH_UNIT
	.comm	_I347AT4_PAGE_SELECT,8,3        ## @I347AT4_PAGE_SELECT
	.comm	_M88E1112_VCT_DSP_DISTANCE,8,3  ## @M88E1112_VCT_DSP_DISTANCE
	.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	_M88E1000_CABLE_LENGTH_TABLE_SIZE,4,2 ## @M88E1000_CABLE_LENGTH_TABLE_SIZE
	.comm	_E1000_ERR_PHY,4,2              ## @E1000_ERR_PHY
	.comm	_e1000_m88_cable_length_table,8,3 ## @e1000_m88_cable_length_table
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_igb_get_cable_length_m88_gen2  ; -- Begin function igb_get_cable_length_m88_gen2
	.p2align	2
_igb_get_cable_length_m88_gen2:         ; @igb_get_cable_length_m88_gen2
	.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
	ldr	w8, [x0]
	sub	w8, w8, #128
	cmp	w8, #3
	b.hi	LBB0_13
; %bb.1:
	mov	x19, x0
Lloh0:
	adrp	x9, lJTI0_0@PAGE
Lloh1:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_2
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_2:
	ldr	x8, [x19, #24]
Lloh2:
	adrp	x20, _I347AT4_PAGE_SELECT@GOTPAGE
Lloh3:
	ldr	x20, [x20, _I347AT4_PAGE_SELECT@GOTPAGEOFF]
	ldr	x1, [x20]
	add	x2, sp, #4
	mov	x0, x19
	blr	x8
	cbnz	w0, LBB0_17
; %bb.3:
	ldr	x8, [x19, #16]
	ldr	x1, [x20]
	mov	x0, x19
	mov	w2, #7
	blr	x8
	cbnz	w0, LBB0_17
; %bb.4:
Lloh4:
	adrp	x8, _I347AT4_PCDL@GOTPAGE
Lloh5:
	ldr	x8, [x8, _I347AT4_PCDL@GOTPAGEOFF]
Lloh6:
	ldr	x8, [x8]
	ldp	x9, x10, [x19, #24]
	add	x1, x10, x8
	add	x2, sp, #12
	mov	x0, x19
	blr	x9
	cbnz	w0, LBB0_17
; %bb.5:
	ldr	x8, [x19, #24]
Lloh7:
	adrp	x9, _I347AT4_PCDC@GOTPAGE
Lloh8:
	ldr	x9, [x9, _I347AT4_PCDC@GOTPAGEOFF]
Lloh9:
	ldr	x1, [x9]
	add	x2, sp, #8
	mov	x0, x19
	blr	x8
	cbnz	w0, LBB0_17
; %bb.6:
	ldp	w8, w10, [sp, #8]
Lloh10:
	adrp	x9, _I347AT4_PCDC_CABLE_LENGTH_UNIT@GOTPAGE
Lloh11:
	ldr	x9, [x9, _I347AT4_PCDC_CABLE_LENGTH_UNIT@GOTPAGEOFF]
Lloh12:
	ldr	w9, [x9]
	tst	w9, w8
	mov	w8, #100
	csinc	w8, w8, wzr, eq
	sdiv	w8, w10, w8
	stp	w8, w8, [x19, #4]
	b	LBB0_12
LBB0_7:
	ldr	x8, [x19, #24]
Lloh13:
	adrp	x20, _I347AT4_PAGE_SELECT@GOTPAGE
Lloh14:
	ldr	x20, [x20, _I347AT4_PAGE_SELECT@GOTPAGEOFF]
	ldr	x1, [x20]
	add	x2, sp, #4
	mov	x0, x19
	blr	x8
	cbnz	w0, LBB0_17
; %bb.8:
	ldr	x8, [x19, #16]
	ldr	x1, [x20]
	mov	x0, x19
	mov	w2, #5
	blr	x8
	cbnz	w0, LBB0_17
; %bb.9:
	ldr	x8, [x19, #24]
Lloh15:
	adrp	x9, _M88E1112_VCT_DSP_DISTANCE@GOTPAGE
Lloh16:
	ldr	x9, [x9, _M88E1112_VCT_DSP_DISTANCE@GOTPAGEOFF]
Lloh17:
	ldr	x1, [x9]
	add	x2, sp, #12
	mov	x0, x19
	blr	x8
	cbnz	w0, LBB0_17
; %bb.10:
Lloh18:
	adrp	x8, _M88E1000_PSSR_CABLE_LENGTH@GOTPAGE
Lloh19:
	ldr	x8, [x8, _M88E1000_PSSR_CABLE_LENGTH@GOTPAGEOFF]
	ldr	w9, [sp, #12]
Lloh20:
	ldr	w8, [x8]
	and	w8, w8, w9
Lloh21:
	adrp	x9, _M88E1000_PSSR_CABLE_LENGTH_SHIFT@GOTPAGE
Lloh22:
	ldr	x9, [x9, _M88E1000_PSSR_CABLE_LENGTH_SHIFT@GOTPAGEOFF]
Lloh23:
	ldr	w9, [x9]
	asr	w8, w8, w9
Lloh24:
	adrp	x9, _M88E1000_CABLE_LENGTH_TABLE_SIZE@GOTPAGE
Lloh25:
	ldr	x9, [x9, _M88E1000_CABLE_LENGTH_TABLE_SIZE@GOTPAGEOFF]
Lloh26:
	ldr	w9, [x9]
	sub	w9, w9, #1
	cmp	w8, w9
	b.ge	LBB0_13
; %bb.11:
Lloh27:
	adrp	x9, _e1000_m88_cable_length_table@GOTPAGE
Lloh28:
	ldr	x9, [x9, _e1000_m88_cable_length_table@GOTPAGEOFF]
Lloh29:
	ldr	x9, [x9]
	add	x8, x9, w8, sxtw #3
	ldr	x9, [x8]
	ldr	w8, [x8, #8]
	stp	w9, w8, [x19, #4]
	add	w8, w8, w9
	cmp	w8, #0
	cinc	w8, w8, lt
	asr	w8, w8, #1
LBB0_12:
	str	w8, [x19, #12]
	ldr	x8, [x19, #16]
	ldr	x1, [x20]
	ldr	w2, [sp, #4]
	mov	x0, x19
	blr	x8
	b	LBB0_17
LBB0_13:
Lloh30:
	adrp	x8, _E1000_ERR_PHY@GOTPAGE
Lloh31:
	ldr	x8, [x8, _E1000_ERR_PHY@GOTPAGEOFF]
Lloh32:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_17
LBB0_14:
Lloh33:
	adrp	x20, _GS40G_PAGE_SHIFT@GOTPAGE
Lloh34:
	ldr	x20, [x20, _GS40G_PAGE_SHIFT@GOTPAGEOFF]
	ldr	w8, [x20]
	mov	w21, #7
Lloh35:
	adrp	x9, _I347AT4_PCDL@GOTPAGE
Lloh36:
	ldr	x9, [x9, _I347AT4_PCDL@GOTPAGEOFF]
	lsl	w8, w21, w8
Lloh37:
	ldr	x9, [x9]
	ldp	x10, x11, [x19, #24]
	add	x9, x11, x9
	add	x1, x9, w8, sxtw
	add	x2, sp, #12
	mov	x0, x19
	blr	x10
	cbnz	w0, LBB0_17
; %bb.15:
	ldr	x8, [x19, #24]
	ldr	w9, [x20]
	lsl	w9, w21, w9
Lloh38:
	adrp	x10, _I347AT4_PCDC@GOTPAGE
Lloh39:
	ldr	x10, [x10, _I347AT4_PCDC@GOTPAGEOFF]
Lloh40:
	ldr	x10, [x10]
	add	x1, x10, w9, sxtw
	add	x2, sp, #8
	mov	x0, x19
	blr	x8
	cbnz	w0, LBB0_17
; %bb.16:
	ldp	w8, w10, [sp, #8]
Lloh41:
	adrp	x9, _I347AT4_PCDC_CABLE_LENGTH_UNIT@GOTPAGE
Lloh42:
	ldr	x9, [x9, _I347AT4_PCDC_CABLE_LENGTH_UNIT@GOTPAGEOFF]
Lloh43:
	ldr	w9, [x9]
	tst	w9, w8
	mov	w8, #100
	csinc	w8, w8, wzr, eq
	sdiv	w8, w10, w8
	stp	w8, w8, [x19, #4]
	str	w8, [x19, #12]
LBB0_17:
	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 AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGot	Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_7-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_14-LBB0_2)>>2
                                        ; -- End function
	.comm	_GS40G_PAGE_SHIFT,4,2           ; @GS40G_PAGE_SHIFT
	.comm	_I347AT4_PCDL,8,3               ; @I347AT4_PCDL
	.comm	_I347AT4_PCDC,8,3               ; @I347AT4_PCDC
	.comm	_I347AT4_PCDC_CABLE_LENGTH_UNIT,4,2 ; @I347AT4_PCDC_CABLE_LENGTH_UNIT
	.comm	_I347AT4_PAGE_SELECT,8,3        ; @I347AT4_PAGE_SELECT
	.comm	_M88E1112_VCT_DSP_DISTANCE,8,3  ; @M88E1112_VCT_DSP_DISTANCE
	.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	_M88E1000_CABLE_LENGTH_TABLE_SIZE,4,2 ; @M88E1000_CABLE_LENGTH_TABLE_SIZE
	.comm	_E1000_ERR_PHY,4,2              ; @E1000_ERR_PHY
	.comm	_e1000_m88_cable_length_table,8,3 ; @e1000_m88_cable_length_table
.subsections_via_symbols
