	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function et131x_xcvr_init
_et131x_xcvr_init:                      ## @et131x_xcvr_init
	.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), %rax
	testb	$4, 4(%rax)
	jne	LBB0_5
## %bb.1:
	movq	%rdi, %rbx
	movq	8(%rdi), %rax
	movq	(%rax), %r14
	movq	_PHY_LED_2@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	leaq	-28(%rbp), %rdx
	callq	_et131x_mii_read
	movq	_ET_LED2_LED_100TX@GOTPCREL(%rip), %rax
	movq	_ET_LED2_LED_1000T@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	orl	(%rax), %esi
	andl	-28(%rbp), %esi
	movq	_LED_VAL_LINKON_ACTIVE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_LED_LINK_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	shll	%cl, %edx
	orl	%esi, %edx
	movq	(%rbx), %rax
	testb	$8, 4(%rax)
	jne	LBB0_2
## %bb.3:
	movq	_LED_VAL_1000BT_100BTX@GOTPCREL(%rip), %rax
	jmp	LBB0_4
LBB0_2:
	movq	_LED_VAL_LINKON@GOTPCREL(%rip), %rax
LBB0_4:
	movl	(%rax), %eax
	movq	_LED_TXRX_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shll	%cl, %eax
	orl	%edx, %eax
	movl	%eax, -28(%rbp)
	movl	(%r14), %esi
	movl	(%r15), %edx
	movq	%rbx, %rdi
	movl	%eax, %ecx
	callq	_et131x_mii_write
LBB0_5:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PHY_LED_2,4,2                  ## @PHY_LED_2
	.comm	_ET_LED2_LED_100TX,4,2          ## @ET_LED2_LED_100TX
	.comm	_ET_LED2_LED_1000T,4,2          ## @ET_LED2_LED_1000T
	.comm	_LED_VAL_LINKON_ACTIVE,4,2      ## @LED_VAL_LINKON_ACTIVE
	.comm	_LED_LINK_SHIFT,4,2             ## @LED_LINK_SHIFT
	.comm	_LED_VAL_1000BT_100BTX,4,2      ## @LED_VAL_1000BT_100BTX
	.comm	_LED_TXRX_SHIFT,4,2             ## @LED_TXRX_SHIFT
	.comm	_LED_VAL_LINKON,4,2             ## @LED_VAL_LINKON
	.no_dead_strip	_et131x_xcvr_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function et131x_xcvr_init
_et131x_xcvr_init:                      ; @et131x_xcvr_init
	.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	x8, [x0]
	ldrb	w8, [x8, #4]
	tbnz	w8, #2, LBB0_2
; %bb.1:
	mov	x19, x0
	ldr	x8, [x0, #8]
	ldr	x20, [x8]
Lloh0:
	adrp	x21, _PHY_LED_2@GOTPAGE
Lloh1:
	ldr	x21, [x21, _PHY_LED_2@GOTPAGEOFF]
	ldr	w1, [x21]
	add	x2, sp, #12
	bl	_et131x_mii_read
Lloh2:
	adrp	x8, _ET_LED2_LED_100TX@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ET_LED2_LED_100TX@GOTPAGEOFF]
Lloh4:
	adrp	x9, _ET_LED2_LED_1000T@GOTPAGE
Lloh5:
	ldr	x9, [x9, _ET_LED2_LED_1000T@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
Lloh7:
	ldr	w9, [x9]
	orr	w8, w9, w8
	ldr	w9, [sp, #12]
Lloh8:
	adrp	x10, _LED_VAL_LINKON_ACTIVE@GOTPAGE
Lloh9:
	ldr	x10, [x10, _LED_VAL_LINKON_ACTIVE@GOTPAGEOFF]
	and	w8, w9, w8
Lloh10:
	ldr	w9, [x10]
Lloh11:
	adrp	x10, _LED_LINK_SHIFT@GOTPAGE
Lloh12:
	ldr	x10, [x10, _LED_LINK_SHIFT@GOTPAGEOFF]
Lloh13:
	ldr	w10, [x10]
	lsl	w9, w9, w10
	orr	w8, w9, w8
	ldr	x9, [x19]
Lloh14:
	adrp	x10, _LED_VAL_1000BT_100BTX@GOTPAGE
Lloh15:
	ldr	x10, [x10, _LED_VAL_1000BT_100BTX@GOTPAGEOFF]
Lloh16:
	adrp	x11, _LED_VAL_LINKON@GOTPAGE
Lloh17:
	ldr	x11, [x11, _LED_VAL_LINKON@GOTPAGEOFF]
	ldr	w9, [x9, #4]
	tst	w9, #0x8
	csel	x9, x10, x11, eq
	ldr	w9, [x9]
Lloh18:
	adrp	x10, _LED_TXRX_SHIFT@GOTPAGE
Lloh19:
	ldr	x10, [x10, _LED_TXRX_SHIFT@GOTPAGEOFF]
Lloh20:
	ldr	w10, [x10]
	lsl	w9, w9, w10
	orr	w3, w9, w8
	str	w3, [sp, #12]
	ldr	w1, [x20]
	ldr	w2, [x21]
	mov	x0, x19
	bl	_et131x_mii_write
LBB0_2:
	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	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh6
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_PHY_LED_2,4,2                  ; @PHY_LED_2
	.comm	_ET_LED2_LED_100TX,4,2          ; @ET_LED2_LED_100TX
	.comm	_ET_LED2_LED_1000T,4,2          ; @ET_LED2_LED_1000T
	.comm	_LED_VAL_LINKON_ACTIVE,4,2      ; @LED_VAL_LINKON_ACTIVE
	.comm	_LED_LINK_SHIFT,4,2             ; @LED_LINK_SHIFT
	.comm	_LED_VAL_1000BT_100BTX,4,2      ; @LED_VAL_1000BT_100BTX
	.comm	_LED_TXRX_SHIFT,4,2             ; @LED_TXRX_SHIFT
	.comm	_LED_VAL_LINKON,4,2             ; @LED_VAL_LINKON
	.no_dead_strip	_et131x_xcvr_init
.subsections_via_symbols
