	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function jme_phy_calibration
_jme_phy_calibration:                   ## @jme_phy_calibration
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	callq	_jme_phy_off
	movq	%rbx, %rdi
	callq	_jme_phy_on
	movl	(%rbx), %esi
	movl	4(%rbx), %edi
	movq	_MII_CTRL1000@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rax, %r14
	callq	_jme_mdio_read
	movq	_PHY_GAD_TEST_MODE_MSK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	notl	%ecx
	andl	%eax, %ecx
	movq	_PHY_GAD_TEST_MODE_1@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movl	(%rbx), %esi
	movl	4(%rbx), %edi
	movl	(%r14), %edx
	callq	_jme_mdio_write
	movq	_JM_PHY_EXT_COMM_2_REG@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movq	%rbx, %rdi
	callq	_jme_phy_specreg_read
	movq	_JM_PHY_EXT_COMM_2_CALI_MODE_0@GOTPCREL(%rip), %r13
	movl	(%r13), %edx
	notl	%edx
	andl	%eax, %edx
	movq	_JM_PHY_EXT_COMM_2_CALI_LATCH@GOTPCREL(%rip), %r15
	orl	(%r15), %edx
	movq	_JM_PHY_EXT_COMM_2_CALI_ENABLE@GOTPCREL(%rip), %r14
	orl	(%r14), %edx
	movl	(%r12), %esi
	movq	%rbx, %rdi
	callq	_jme_phy_specreg_write
	movl	$20, %edi
	callq	_msleep
	movl	(%r12), %esi
	movq	%rbx, %rdi
	callq	_jme_phy_specreg_read
	movl	(%r13), %edx
	orl	(%r14), %edx
	orl	(%r15), %edx
	notl	%edx
	andl	%eax, %edx
	movl	(%r12), %esi
	movq	%rbx, %rdi
	callq	_jme_phy_specreg_write
	movl	(%rbx), %esi
	movl	4(%rbx), %edi
	movq	_MII_CTRL1000@GOTPCREL(%rip), %r14
	movl	(%r14), %edx
	callq	_jme_mdio_read
	movq	_PHY_GAD_TEST_MODE_MSK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	notl	%ecx
	andl	%eax, %ecx
	movl	(%rbx), %esi
	movl	4(%rbx), %edi
	movl	(%r14), %edx
	callq	_jme_mdio_write
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MII_CTRL1000,4,2               ## @MII_CTRL1000
	.comm	_PHY_GAD_TEST_MODE_MSK,4,2      ## @PHY_GAD_TEST_MODE_MSK
	.comm	_PHY_GAD_TEST_MODE_1,4,2        ## @PHY_GAD_TEST_MODE_1
	.comm	_JM_PHY_EXT_COMM_2_REG,4,2      ## @JM_PHY_EXT_COMM_2_REG
	.comm	_JM_PHY_EXT_COMM_2_CALI_MODE_0,4,2 ## @JM_PHY_EXT_COMM_2_CALI_MODE_0
	.comm	_JM_PHY_EXT_COMM_2_CALI_LATCH,4,2 ## @JM_PHY_EXT_COMM_2_CALI_LATCH
	.comm	_JM_PHY_EXT_COMM_2_CALI_ENABLE,4,2 ## @JM_PHY_EXT_COMM_2_CALI_ENABLE
	.no_dead_strip	_jme_phy_calibration
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function jme_phy_calibration
_jme_phy_calibration:                   ; @jme_phy_calibration
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x19, x0
	bl	_jme_phy_off
	mov	x0, x19
	bl	_jme_phy_on
	ldp	w1, w0, [x19]
Lloh0:
	adrp	x20, _MII_CTRL1000@GOTPAGE
Lloh1:
	ldr	x20, [x20, _MII_CTRL1000@GOTPAGEOFF]
	ldr	w2, [x20]
	bl	_jme_mdio_read
Lloh2:
	adrp	x21, _PHY_GAD_TEST_MODE_MSK@GOTPAGE
Lloh3:
	ldr	x21, [x21, _PHY_GAD_TEST_MODE_MSK@GOTPAGEOFF]
	ldr	w8, [x21]
Lloh4:
	adrp	x9, _PHY_GAD_TEST_MODE_1@GOTPAGE
Lloh5:
	ldr	x9, [x9, _PHY_GAD_TEST_MODE_1@GOTPAGEOFF]
	bic	w8, w0, w8
Lloh6:
	ldr	w9, [x9]
	orr	w3, w8, w9
	ldp	w1, w0, [x19]
	ldr	w2, [x20]
	bl	_jme_mdio_write
Lloh7:
	adrp	x22, _JM_PHY_EXT_COMM_2_REG@GOTPAGE
Lloh8:
	ldr	x22, [x22, _JM_PHY_EXT_COMM_2_REG@GOTPAGEOFF]
	ldr	w1, [x22]
	mov	x0, x19
	bl	_jme_phy_specreg_read
Lloh9:
	adrp	x23, _JM_PHY_EXT_COMM_2_CALI_MODE_0@GOTPAGE
Lloh10:
	ldr	x23, [x23, _JM_PHY_EXT_COMM_2_CALI_MODE_0@GOTPAGEOFF]
	ldr	w8, [x23]
	bic	w8, w0, w8
Lloh11:
	adrp	x24, _JM_PHY_EXT_COMM_2_CALI_LATCH@GOTPAGE
Lloh12:
	ldr	x24, [x24, _JM_PHY_EXT_COMM_2_CALI_LATCH@GOTPAGEOFF]
	ldr	w9, [x24]
Lloh13:
	adrp	x25, _JM_PHY_EXT_COMM_2_CALI_ENABLE@GOTPAGE
Lloh14:
	ldr	x25, [x25, _JM_PHY_EXT_COMM_2_CALI_ENABLE@GOTPAGEOFF]
	ldr	w10, [x25]
	orr	w8, w8, w9
	orr	w2, w8, w10
	ldr	w1, [x22]
	mov	x0, x19
	bl	_jme_phy_specreg_write
	mov	w0, #20
	bl	_msleep
	ldr	w1, [x22]
	mov	x0, x19
	bl	_jme_phy_specreg_read
	ldr	w8, [x25]
	ldr	w9, [x23]
	orr	w8, w9, w8
	ldr	w9, [x24]
	orr	w8, w8, w9
	bic	w2, w0, w8
	ldr	w1, [x22]
	mov	x0, x19
	bl	_jme_phy_specreg_write
	ldp	w1, w0, [x19]
	ldr	w2, [x20]
	bl	_jme_mdio_read
	ldr	w8, [x21]
	bic	w3, w0, w8
	ldp	w1, w0, [x19]
	ldr	w2, [x20]
	bl	_jme_mdio_write
	mov	w0, #0
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_MII_CTRL1000,4,2               ; @MII_CTRL1000
	.comm	_PHY_GAD_TEST_MODE_MSK,4,2      ; @PHY_GAD_TEST_MODE_MSK
	.comm	_PHY_GAD_TEST_MODE_1,4,2        ; @PHY_GAD_TEST_MODE_1
	.comm	_JM_PHY_EXT_COMM_2_REG,4,2      ; @JM_PHY_EXT_COMM_2_REG
	.comm	_JM_PHY_EXT_COMM_2_CALI_MODE_0,4,2 ; @JM_PHY_EXT_COMM_2_CALI_MODE_0
	.comm	_JM_PHY_EXT_COMM_2_CALI_LATCH,4,2 ; @JM_PHY_EXT_COMM_2_CALI_LATCH
	.comm	_JM_PHY_EXT_COMM_2_CALI_ENABLE,4,2 ; @JM_PHY_EXT_COMM_2_CALI_ENABLE
	.no_dead_strip	_jme_phy_calibration
.subsections_via_symbols
