	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	(%rdi), %eax
	addl	$-128, %eax
	cmpl	$4, %eax
	ja	LBB0_16
## %bb.1:
	movq	%rdi, %rbx
	cmpl	$2, %eax
	je	LBB0_10
## %bb.2:
	movq	_I347AT4_PAGE_SELECT@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	leaq	-56(%rbp), %rdx
	movq	%rbx, %rdi
	callq	*40(%rbx)
	testl	%eax, %eax
	jne	LBB0_17
## %bb.3:
	movl	(%r12), %esi
	movq	%rbx, %rdi
	movl	$7, %edx
	callq	*32(%rbx)
	testl	%eax, %eax
	jne	LBB0_17
## %bb.4:
	movq	_I347AT4_PCDC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-64(%rbp), %rdx
	movq	%rbx, %rdi
	callq	*40(%rbx)
	testl	%eax, %eax
	jne	LBB0_17
## %bb.5:
	movl	-64(%rbp), %r14d
	movq	_I347AT4_PCDC_CABLE_LENGTH_UNIT@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movq	_I347AT4_PCDL0@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-44(%rbp), %rdx
	movq	%rbx, %rdi
	callq	*40(%rbx)
	testl	%eax, %eax
	jne	LBB0_17
## %bb.6:
	testl	%r14d, %r15d
	movl	-44(%rbp), %eax
	movl	$100, %ecx
	movl	$1, %r13d
	cmovel	%ecx, %r13d
	cltd
	idivl	%r13d
	movl	%eax, %r15d
	movq	8(%rbx), %rax
	movl	%r15d, (%rax)
	movq	_I347AT4_PCDL1@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-44(%rbp), %rdx
	movq	%rbx, %rdi
	callq	*40(%rbx)
	testl	%eax, %eax
	jne	LBB0_17
## %bb.7:
	movl	-44(%rbp), %eax
	cltd
	idivl	%r13d
	movl	%eax, %r14d
	movq	8(%rbx), %rax
	movl	%r14d, 4(%rax)
	movl	%r15d, %edi
	movl	%r14d, %esi
	callq	_min
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movq	8(%rbx), %rax
	movl	4(%rax), %esi
	movl	%r15d, %edi
	callq	_max
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	movq	_I347AT4_PCDL2@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-44(%rbp), %rdx
	movq	%rbx, %rdi
	callq	*40(%rbx)
	testl	%eax, %eax
	jne	LBB0_17
## %bb.8:
	movl	-44(%rbp), %eax
	cltd
	idivl	%r13d
	movl	%eax, %esi
	movq	8(%rbx), %rax
	movl	%esi, 8(%rax)
	movl	-48(%rbp), %edi                 ## 4-byte Reload
	movl	%esi, -60(%rbp)                 ## 4-byte Spill
	callq	_min
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movq	8(%rbx), %rax
	movl	8(%rax), %esi
	movl	-52(%rbp), %edi                 ## 4-byte Reload
	callq	_max
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	movq	_I347AT4_PCDL3@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-44(%rbp), %rdx
	movq	%rbx, %rdi
	callq	*40(%rbx)
	testl	%eax, %eax
	jne	LBB0_17
## %bb.9:
	addl	%r15d, %r14d
	addl	-60(%rbp), %r14d                ## 4-byte Folded Reload
	movl	-44(%rbp), %eax
	cltd
	idivl	%r13d
	movl	%eax, %r15d
	movq	8(%rbx), %rax
	movl	%r15d, 12(%rax)
	leal	(%r14,%r15), %r13d
	movl	-48(%rbp), %edi                 ## 4-byte Reload
	movl	%r15d, %esi
	callq	_min
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movq	8(%rbx), %rax
	movl	12(%rax), %esi
	movl	-52(%rbp), %edi                 ## 4-byte Reload
	callq	_max
	movl	-48(%rbp), %ecx                 ## 4-byte Reload
	movl	%ecx, 16(%rbx)
	movl	%eax, 20(%rbx)
	leal	(%r15,%r14), %eax
	addl	$3, %eax
	testl	%r13d, %r13d
	cmovnsl	%r13d, %eax
	sarl	$2, %eax
	movl	%eax, 24(%rbx)
	movl	(%r12), %esi
	jmp	LBB0_15
LBB0_10:
	movq	_I347AT4_PAGE_SELECT@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	leaq	-56(%rbp), %rdx
	movq	%rbx, %rdi
	callq	*40(%rbx)
	testl	%eax, %eax
	jne	LBB0_17
## %bb.11:
	movl	(%r14), %esi
	movq	%rbx, %rdi
	movl	$5, %edx
	callq	*32(%rbx)
	testl	%eax, %eax
	jne	LBB0_17
## %bb.12:
	movq	_M88E1112_VCT_DSP_DISTANCE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-44(%rbp), %rdx
	movq	%rbx, %rdi
	callq	*40(%rbx)
	testl	%eax, %eax
	jne	LBB0_17
## %bb.13:
	movq	_M88E1000_PSSR_CABLE_LENGTH@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	andl	-44(%rbp), %r15d
	movq	_M88E1000_PSSR_CABLE_LENGTH_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	sarl	%cl, %r15d
	movq	_e1000_m88_cable_length_table@GOTPCREL(%rip), %r12
	movq	(%r12), %rdi
	callq	_ARRAY_SIZE
	decl	%eax
	cmpl	%eax, %r15d
	jge	LBB0_16
## %bb.14:
	movq	(%r12), %rax
	movslq	%r15d, %rcx
	movl	(%rax,%rcx,8), %edx
	movl	%edx, 16(%rbx)
	movl	8(%rax,%rcx,8), %eax
	movl	%eax, 20(%rbx)
	addl	%edx, %eax
	movl	%eax, %ecx
	shrl	$31, %ecx
	addl	%eax, %ecx
	sarl	%ecx
	movl	%ecx, 24(%rbx)
	movl	(%r14), %esi
LBB0_15:
	movl	-56(%rbp), %edx
	movq	%rbx, %rdi
	callq	*32(%rbx)
	jmp	LBB0_17
LBB0_16:
	movq	_E1000_ERR_PHY@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_17:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_I347AT4_PAGE_SELECT,4,2        ## @I347AT4_PAGE_SELECT
	.comm	_I347AT4_PCDC,4,2               ## @I347AT4_PCDC
	.comm	_I347AT4_PCDC_CABLE_LENGTH_UNIT,4,2 ## @I347AT4_PCDC_CABLE_LENGTH_UNIT
	.comm	_I347AT4_PCDL0,4,2              ## @I347AT4_PCDL0
	.comm	_I347AT4_PCDL1,4,2              ## @I347AT4_PCDL1
	.comm	_I347AT4_PCDL2,4,2              ## @I347AT4_PCDL2
	.comm	_I347AT4_PCDL3,4,2              ## @I347AT4_PCDL3
	.comm	_M88E1112_VCT_DSP_DISTANCE,4,2  ## @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	_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_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, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	ldr	w8, [x0]
	sub	w8, w8, #128
	cmp	w8, #4
	b.hi	LBB0_16
; %bb.1:
	mov	x19, x0
	cmp	w8, #2
	b.eq	LBB0_10
; %bb.2:
	ldr	x8, [x19, #40]
Lloh0:
	adrp	x25, _I347AT4_PAGE_SELECT@GOTPAGE
Lloh1:
	ldr	x25, [x25, _I347AT4_PAGE_SELECT@GOTPAGEOFF]
	ldr	w1, [x25]
	add	x2, sp, #4
	mov	x0, x19
	blr	x8
	cbnz	w0, LBB0_17
; %bb.3:
	ldr	x8, [x19, #32]
	ldr	w1, [x25]
	mov	x0, x19
	mov	w2, #7
	blr	x8
	cbnz	w0, LBB0_17
; %bb.4:
	ldr	x8, [x19, #40]
Lloh2:
	adrp	x9, _I347AT4_PCDC@GOTPAGE
Lloh3:
	ldr	x9, [x9, _I347AT4_PCDC@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x9]
	add	x2, sp, #8
	mov	x0, x19
	blr	x8
	cbnz	w0, LBB0_17
; %bb.5:
Lloh5:
	adrp	x8, _I347AT4_PCDC_CABLE_LENGTH_UNIT@GOTPAGE
Lloh6:
	ldr	x8, [x8, _I347AT4_PCDC_CABLE_LENGTH_UNIT@GOTPAGEOFF]
	ldr	w20, [sp, #8]
Lloh7:
	ldr	w21, [x8]
	ldr	x8, [x19, #40]
Lloh8:
	adrp	x9, _I347AT4_PCDL0@GOTPAGE
Lloh9:
	ldr	x9, [x9, _I347AT4_PCDL0@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x9]
	add	x2, sp, #12
	mov	x0, x19
	blr	x8
	cbnz	w0, LBB0_17
; %bb.6:
	ldr	w8, [sp, #12]
	tst	w21, w20
	mov	w9, #100
	csinc	w26, w9, wzr, eq
	sdiv	w20, w8, w26
	ldr	x8, [x19, #8]
	str	w20, [x8]
	ldr	x8, [x19, #40]
Lloh11:
	adrp	x9, _I347AT4_PCDL1@GOTPAGE
Lloh12:
	ldr	x9, [x9, _I347AT4_PCDL1@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x9]
	add	x2, sp, #12
	mov	x0, x19
	blr	x8
	cbnz	w0, LBB0_17
; %bb.7:
	ldr	w8, [sp, #12]
	sdiv	w21, w8, w26
	ldr	x8, [x19, #8]
	str	w21, [x8, #4]
	mov	x0, x20
	mov	x1, x21
	bl	_min
	mov	x23, x0
	ldr	x8, [x19, #8]
	ldr	w1, [x8, #4]
	mov	x0, x20
	bl	_max
	mov	x24, x0
	ldr	x8, [x19, #40]
Lloh14:
	adrp	x9, _I347AT4_PCDL2@GOTPAGE
Lloh15:
	ldr	x9, [x9, _I347AT4_PCDL2@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x9]
	add	x2, sp, #12
	mov	x0, x19
	blr	x8
	cbnz	w0, LBB0_17
; %bb.8:
	ldr	w8, [sp, #12]
	sdiv	w22, w8, w26
	ldr	x8, [x19, #8]
	str	w22, [x8, #8]
	mov	x0, x23
	mov	x1, x22
	bl	_min
	mov	x23, x0
	ldr	x8, [x19, #8]
	ldr	w1, [x8, #8]
	mov	x0, x24
	bl	_max
	mov	x24, x0
	ldr	x8, [x19, #40]
Lloh17:
	adrp	x9, _I347AT4_PCDL3@GOTPAGE
Lloh18:
	ldr	x9, [x9, _I347AT4_PCDL3@GOTPAGEOFF]
Lloh19:
	ldr	w1, [x9]
	add	x2, sp, #12
	mov	x0, x19
	blr	x8
	cbnz	w0, LBB0_17
; %bb.9:
	add	w8, w21, w20
	add	w8, w8, w22
	ldr	w9, [sp, #12]
	sdiv	w1, w9, w26
	ldr	x9, [x19, #8]
	str	w1, [x9, #12]
	add	w21, w8, w1
	mov	x0, x23
	bl	_min
	mov	x20, x0
	ldr	x8, [x19, #8]
	ldr	w1, [x8, #12]
	mov	x0, x24
	bl	_max
	stp	w20, w0, [x19, #16]
	add	w8, w21, #3
	cmp	w21, #0
	csel	w8, w8, w21, lt
	asr	w8, w8, #2
	str	w8, [x19, #24]
	ldr	x8, [x19, #32]
	ldr	w1, [x25]
	b	LBB0_15
LBB0_10:
	ldr	x8, [x19, #40]
Lloh20:
	adrp	x20, _I347AT4_PAGE_SELECT@GOTPAGE
Lloh21:
	ldr	x20, [x20, _I347AT4_PAGE_SELECT@GOTPAGEOFF]
	ldr	w1, [x20]
	add	x2, sp, #4
	mov	x0, x19
	blr	x8
	cbnz	w0, LBB0_17
; %bb.11:
	ldr	x8, [x19, #32]
	ldr	w1, [x20]
	mov	x0, x19
	mov	w2, #5
	blr	x8
	cbnz	w0, LBB0_17
; %bb.12:
	ldr	x8, [x19, #40]
Lloh22:
	adrp	x9, _M88E1112_VCT_DSP_DISTANCE@GOTPAGE
Lloh23:
	ldr	x9, [x9, _M88E1112_VCT_DSP_DISTANCE@GOTPAGEOFF]
Lloh24:
	ldr	w1, [x9]
	add	x2, sp, #12
	mov	x0, x19
	blr	x8
	cbnz	w0, LBB0_17
; %bb.13:
	ldr	w8, [sp, #12]
Lloh25:
	adrp	x9, _M88E1000_PSSR_CABLE_LENGTH@GOTPAGE
Lloh26:
	ldr	x9, [x9, _M88E1000_PSSR_CABLE_LENGTH@GOTPAGEOFF]
Lloh27:
	ldr	w9, [x9]
Lloh28:
	adrp	x10, _M88E1000_PSSR_CABLE_LENGTH_SHIFT@GOTPAGE
Lloh29:
	ldr	x10, [x10, _M88E1000_PSSR_CABLE_LENGTH_SHIFT@GOTPAGEOFF]
	and	w8, w9, w8
Lloh30:
	ldr	w9, [x10]
	asr	w21, w8, w9
Lloh31:
	adrp	x22, _e1000_m88_cable_length_table@GOTPAGE
Lloh32:
	ldr	x22, [x22, _e1000_m88_cable_length_table@GOTPAGEOFF]
	ldr	x0, [x22]
	bl	_ARRAY_SIZE
	sub	w8, w0, #1
	cmp	w21, w8
	b.ge	LBB0_16
; %bb.14:
	ldr	x8, [x22]
	add	x8, x8, w21, sxtw #3
	ldr	x9, [x8]
	ldr	w8, [x8, #8]
	stp	w9, w8, [x19, #16]
	add	w8, w8, w9
	cmp	w8, #0
	cinc	w8, w8, lt
	asr	w8, w8, #1
	str	w8, [x19, #24]
	ldr	x8, [x19, #32]
	ldr	w1, [x20]
LBB0_15:
	ldr	w2, [sp, #4]
	mov	x0, x19
	blr	x8
	b	LBB0_17
LBB0_16:
Lloh33:
	adrp	x8, _E1000_ERR_PHY@GOTPAGE
Lloh34:
	ldr	x8, [x8, _E1000_ERR_PHY@GOTPAGEOFF]
Lloh35:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_17:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.cfi_endproc
                                        ; -- End function
	.comm	_I347AT4_PAGE_SELECT,4,2        ; @I347AT4_PAGE_SELECT
	.comm	_I347AT4_PCDC,4,2               ; @I347AT4_PCDC
	.comm	_I347AT4_PCDC_CABLE_LENGTH_UNIT,4,2 ; @I347AT4_PCDC_CABLE_LENGTH_UNIT
	.comm	_I347AT4_PCDL0,4,2              ; @I347AT4_PCDL0
	.comm	_I347AT4_PCDL1,4,2              ; @I347AT4_PCDL1
	.comm	_I347AT4_PCDL2,4,2              ; @I347AT4_PCDL2
	.comm	_I347AT4_PCDL3,4,2              ; @I347AT4_PCDL3
	.comm	_M88E1112_VCT_DSP_DISTANCE,4,2  ; @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	_e1000_m88_cable_length_table,8,3 ; @e1000_m88_cable_length_table
	.comm	_E1000_ERR_PHY,4,2              ; @E1000_ERR_PHY
.subsections_via_symbols
