	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mi1_mdio_ext_read
_mi1_mdio_ext_read:                     ## @mi1_mdio_ext_read
	.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
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %r14d
	movl	%esi, %r15d
	movq	(%rdi), %rbx
	movl	%edx, %edi
	callq	_V_MI1_REG_ADDR
	movl	%eax, %r12d
	movl	%r15d, %edi
	callq	_V_MI1_PHY_ADDR
	orl	%eax, %r12d
	movq	%rbx, %rdi
	callq	_spin_lock
	movq	_A_ELMER0_PORT0_MI1_ADDR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	%r12d, %edx
	callq	___t1_tpi_write
	movq	_A_ELMER0_PORT0_MI1_DATA@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movq	%rbx, %rdi
	movl	%r14d, %edx
	callq	___t1_tpi_write
	movq	_A_ELMER0_PORT0_MI1_OP@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	movq	_MI1_OP_INDIRECT_ADDRESS@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	callq	___t1_tpi_write
	movl	(%r14), %esi
	movq	%rbx, %rdi
	callq	_mi1_wait_until_ready
	movl	(%r14), %esi
	movq	_MI1_OP_INDIRECT_READ@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	callq	___t1_tpi_write
	movl	(%r14), %esi
	movq	%rbx, %rdi
	callq	_mi1_wait_until_ready
	movl	(%r15), %esi
	leaq	-36(%rbp), %rdx
	movq	%rbx, %rdi
	callq	___t1_tpi_read
	movq	%rbx, %rdi
	callq	_spin_unlock
	movl	-36(%rbp), %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_A_ELMER0_PORT0_MI1_ADDR,4,2    ## @A_ELMER0_PORT0_MI1_ADDR
	.comm	_A_ELMER0_PORT0_MI1_DATA,4,2    ## @A_ELMER0_PORT0_MI1_DATA
	.comm	_A_ELMER0_PORT0_MI1_OP,4,2      ## @A_ELMER0_PORT0_MI1_OP
	.comm	_MI1_OP_INDIRECT_ADDRESS,4,2    ## @MI1_OP_INDIRECT_ADDRESS
	.comm	_MI1_OP_INDIRECT_READ,4,2       ## @MI1_OP_INDIRECT_READ
	.no_dead_strip	_mi1_mdio_ext_read
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mi1_mdio_ext_read
_mi1_mdio_ext_read:                     ; @mi1_mdio_ext_read
	.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
	mov	x20, x3
	mov	x21, x1
	ldr	x19, [x0]
	mov	x0, x2
	bl	_V_MI1_REG_ADDR
	mov	x22, x0
	mov	x0, x21
	bl	_V_MI1_PHY_ADDR
	orr	w21, w0, w22
	mov	x0, x19
	bl	_spin_lock
Lloh0:
	adrp	x8, _A_ELMER0_PORT0_MI1_ADDR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _A_ELMER0_PORT0_MI1_ADDR@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, x21
	bl	___t1_tpi_write
Lloh3:
	adrp	x21, _A_ELMER0_PORT0_MI1_DATA@GOTPAGE
Lloh4:
	ldr	x21, [x21, _A_ELMER0_PORT0_MI1_DATA@GOTPAGEOFF]
	ldr	w1, [x21]
	mov	x0, x19
	mov	x2, x20
	bl	___t1_tpi_write
Lloh5:
	adrp	x20, _A_ELMER0_PORT0_MI1_OP@GOTPAGE
Lloh6:
	ldr	x20, [x20, _A_ELMER0_PORT0_MI1_OP@GOTPAGEOFF]
	ldr	w1, [x20]
Lloh7:
	adrp	x8, _MI1_OP_INDIRECT_ADDRESS@GOTPAGE
Lloh8:
	ldr	x8, [x8, _MI1_OP_INDIRECT_ADDRESS@GOTPAGEOFF]
Lloh9:
	ldr	w2, [x8]
	mov	x0, x19
	bl	___t1_tpi_write
	ldr	w1, [x20]
	mov	x0, x19
	bl	_mi1_wait_until_ready
	ldr	w1, [x20]
Lloh10:
	adrp	x8, _MI1_OP_INDIRECT_READ@GOTPAGE
Lloh11:
	ldr	x8, [x8, _MI1_OP_INDIRECT_READ@GOTPAGEOFF]
Lloh12:
	ldr	w2, [x8]
	mov	x0, x19
	bl	___t1_tpi_write
	ldr	w1, [x20]
	mov	x0, x19
	bl	_mi1_wait_until_ready
	ldr	w1, [x21]
	add	x2, sp, #12
	mov	x0, x19
	bl	___t1_tpi_read
	mov	x0, x19
	bl	_spin_unlock
	ldr	w0, [sp, #12]
	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	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_A_ELMER0_PORT0_MI1_ADDR,4,2    ; @A_ELMER0_PORT0_MI1_ADDR
	.comm	_A_ELMER0_PORT0_MI1_DATA,4,2    ; @A_ELMER0_PORT0_MI1_DATA
	.comm	_A_ELMER0_PORT0_MI1_OP,4,2      ; @A_ELMER0_PORT0_MI1_OP
	.comm	_MI1_OP_INDIRECT_ADDRESS,4,2    ; @MI1_OP_INDIRECT_ADDRESS
	.comm	_MI1_OP_INDIRECT_READ,4,2       ; @MI1_OP_INDIRECT_READ
	.no_dead_strip	_mi1_mdio_ext_read
.subsections_via_symbols
