	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ael2005_setup_twinax_edc
_ael2005_setup_twinax_edc:              ## @ael2005_setup_twinax_edc
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r14d
	movq	%rdi, %r12
	leaq	_ael2005_setup_twinax_edc.regs(%rip), %rsi
	callq	_set_phy_regs
	testl	%eax, %eax
	je	LBB0_1
LBB0_11:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movq	_phy_modtype_twinax_long@GOTPCREL(%rip), %rax
	cmpl	%r14d, (%rax)
	jne	LBB0_3
## %bb.2:
	leaq	_ael2005_setup_twinax_edc.preemphasis(%rip), %rsi
	movq	%r12, %rdi
	callq	_set_phy_regs
	testl	%eax, %eax
	jne	LBB0_11
LBB0_3:
	movl	$50, %edi
	callq	_msleep
	movq	(%r12), %rax
	movq	_edc_twinax@GOTPCREL(%rip), %r14
	cmpq	(%r14), %rax
	je	LBB0_5
## %bb.4:
	movq	_EDC_TWX_AEL2005@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_EDC_TWX_AEL2005_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rdi
	callq	_t3_get_edc_fw
	testl	%eax, %eax
	jne	LBB0_11
LBB0_5:
	movq	_EDC_TWX_AEL2005_SIZE@GOTPCREL(%rip), %r15
	cmpl	$4, (%r15)
	jb	LBB0_10
## %bb.6:
	movl	$2, %ebx
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%r12), %rax
	movl	-8(%rax,%rbx,4), %edx
	movl	-4(%rax,%rbx,4), %ecx
	movq	%r12, %rdi
	movl	$128, %esi
	callq	_t3_mdio_write
	movslq	(%r15), %rcx
	shrq	$2, %rcx
	cmpq	%rbx, %rcx
	jbe	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=1
	addq	$2, %rbx
	testl	%eax, %eax
	je	LBB0_7
LBB0_9:
	testl	%eax, %eax
	jne	LBB0_11
LBB0_10:
	movq	(%r14), %rax
	movq	%rax, (%r12)
	xorl	%eax, %eax
	jmp	LBB0_11
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__const
	.p2align	4                               ## @ael2005_setup_twinax_edc.regs
_ael2005_setup_twinax_edc.regs:
	.long	128                             ## 0x80
	.long	49226                           ## 0xc04a
	.long	65535                           ## 0xffff
	.long	23040                           ## 0x5a00
	.space	16

	.p2align	4                               ## @ael2005_setup_twinax_edc.preemphasis
_ael2005_setup_twinax_edc.preemphasis:
	.long	128                             ## 0x80
	.long	49172                           ## 0xc014
	.long	65535                           ## 0xffff
	.long	65046                           ## 0xfe16
	.long	128                             ## 0x80
	.long	49173                           ## 0xc015
	.long	65535                           ## 0xffff
	.long	40960                           ## 0xa000
	.space	16

	.comm	_phy_modtype_twinax_long,4,2    ## @phy_modtype_twinax_long
	.comm	_edc_twinax,8,3                 ## @edc_twinax
	.comm	_EDC_TWX_AEL2005,4,2            ## @EDC_TWX_AEL2005
	.comm	_EDC_TWX_AEL2005_SIZE,4,2       ## @EDC_TWX_AEL2005_SIZE
	.no_dead_strip	_ael2005_setup_twinax_edc
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ael2005_setup_twinax_edc
_ael2005_setup_twinax_edc:              ; @ael2005_setup_twinax_edc
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x1, _ael2005_setup_twinax_edc.regs@PAGE
Lloh1:
	add	x1, x1, _ael2005_setup_twinax_edc.regs@PAGEOFF
	bl	_set_phy_regs
	cbz	w0, LBB0_2
LBB0_1:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_2:
Lloh2:
	adrp	x8, _phy_modtype_twinax_long@GOTPAGE
Lloh3:
	ldr	x8, [x8, _phy_modtype_twinax_long@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	cmp	w8, w20
	b.ne	LBB0_4
; %bb.3:
Lloh5:
	adrp	x1, _ael2005_setup_twinax_edc.preemphasis@PAGE
Lloh6:
	add	x1, x1, _ael2005_setup_twinax_edc.preemphasis@PAGEOFF
	mov	x0, x19
	bl	_set_phy_regs
	cbnz	w0, LBB0_1
LBB0_4:
	mov	w0, #50
	bl	_msleep
	ldr	x8, [x19]
Lloh7:
	adrp	x20, _edc_twinax@GOTPAGE
Lloh8:
	ldr	x20, [x20, _edc_twinax@GOTPAGEOFF]
	ldr	x9, [x20]
Lloh9:
	adrp	x21, _EDC_TWX_AEL2005_SIZE@GOTPAGE
Lloh10:
	ldr	x21, [x21, _EDC_TWX_AEL2005_SIZE@GOTPAGEOFF]
	cmp	x8, x9
	b.eq	LBB0_6
; %bb.5:
Lloh11:
	adrp	x8, _EDC_TWX_AEL2005@GOTPAGE
Lloh12:
	ldr	x8, [x8, _EDC_TWX_AEL2005@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	ldr	w2, [x21]
	mov	x0, x19
	bl	_t3_get_edc_fw
	cbnz	w0, LBB0_1
LBB0_6:
	ldr	w8, [x21]
	cmp	w8, #4
	b.lo	LBB0_10
; %bb.7:
	mov	x22, #0
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #8]
	add	x8, x8, x22, lsl #2
	ldp	w2, w3, [x8]
	mov	x0, x19
	mov	w1, #128
	bl	_t3_mdio_write
	add	x22, x22, #2
	ldrsw	x8, [x21]
	cmp	x22, x8, lsr #2
	ccmp	w0, #0, #0, lo
	b.eq	LBB0_8
; %bb.9:
	cbnz	w0, LBB0_1
LBB0_10:
	mov	w0, #0
	ldr	x8, [x20]
	str	x8, [x19]
	b	LBB0_1
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__const
	.p2align	2                               ; @ael2005_setup_twinax_edc.regs
_ael2005_setup_twinax_edc.regs:
	.long	128                             ; 0x80
	.long	49226                           ; 0xc04a
	.long	65535                           ; 0xffff
	.long	23040                           ; 0x5a00
	.space	16

	.p2align	2                               ; @ael2005_setup_twinax_edc.preemphasis
_ael2005_setup_twinax_edc.preemphasis:
	.long	128                             ; 0x80
	.long	49172                           ; 0xc014
	.long	65535                           ; 0xffff
	.long	65046                           ; 0xfe16
	.long	128                             ; 0x80
	.long	49173                           ; 0xc015
	.long	65535                           ; 0xffff
	.long	40960                           ; 0xa000
	.space	16

	.comm	_phy_modtype_twinax_long,4,2    ; @phy_modtype_twinax_long
	.comm	_edc_twinax,8,3                 ; @edc_twinax
	.comm	_EDC_TWX_AEL2005,4,2            ; @EDC_TWX_AEL2005
	.comm	_EDC_TWX_AEL2005_SIZE,4,2       ; @EDC_TWX_AEL2005_SIZE
	.no_dead_strip	_ael2005_setup_twinax_edc
.subsections_via_symbols
