	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function r8168dp_1_mdio_read
_r8168dp_1_mdio_read:                   ## @r8168dp_1_mdio_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %r14
	movq	_OCPDR_READ_CMD@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_r8168dp_1_mdio_access
	movl	$1, %edi
	callq	_mdelay
	movq	_OCPAR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_OCPAR_GPHY_READ_CMD@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	callq	_RTL_W32
	movq	_EPHY_RXER_NUM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%ebx, %ebx
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	_RTL_W32
	movq	_rtl_ocpar_cond@GOTPCREL(%rip), %rsi
	movq	%r14, %rdi
	movl	$1000, %edx                     ## imm = 0x3E8
	movl	$100, %ecx
	callq	_rtl_udelay_loop_wait_high
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	_OCPDR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_RTL_R32
	movl	%eax, %ebx
	movq	_OCPDR_DATA_MASK@GOTPCREL(%rip), %rax
	andl	(%rax), %ebx
	jmp	LBB0_3
LBB0_2:
	movq	_ETIMEDOUT@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
LBB0_3:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_OCPDR_READ_CMD,4,2             ## @OCPDR_READ_CMD
	.comm	_OCPAR,4,2                      ## @OCPAR
	.comm	_OCPAR_GPHY_READ_CMD,4,2        ## @OCPAR_GPHY_READ_CMD
	.comm	_EPHY_RXER_NUM,4,2              ## @EPHY_RXER_NUM
	.comm	_rtl_ocpar_cond,4,2             ## @rtl_ocpar_cond
	.comm	_OCPDR,4,2                      ## @OCPDR
	.comm	_OCPDR_DATA_MASK,4,2            ## @OCPDR_DATA_MASK
	.comm	_ETIMEDOUT,4,2                  ## @ETIMEDOUT
	.no_dead_strip	_r8168dp_1_mdio_read
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function r8168dp_1_mdio_read
_r8168dp_1_mdio_read:                   ; @r8168dp_1_mdio_read
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
Lloh0:
	adrp	x8, _OCPDR_READ_CMD@GOTPAGE
Lloh1:
	ldr	x8, [x8, _OCPDR_READ_CMD@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	bl	_r8168dp_1_mdio_access
	mov	w0, #1
	bl	_mdelay
Lloh3:
	adrp	x8, _OCPAR@GOTPAGE
Lloh4:
	ldr	x8, [x8, _OCPAR@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
Lloh6:
	adrp	x8, _OCPAR_GPHY_READ_CMD@GOTPAGE
Lloh7:
	ldr	x8, [x8, _OCPAR_GPHY_READ_CMD@GOTPAGEOFF]
Lloh8:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_RTL_W32
Lloh9:
	adrp	x8, _EPHY_RXER_NUM@GOTPAGE
Lloh10:
	ldr	x8, [x8, _EPHY_RXER_NUM@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
	bl	_RTL_W32
Lloh12:
	adrp	x1, _rtl_ocpar_cond@GOTPAGE
Lloh13:
	ldr	x1, [x1, _rtl_ocpar_cond@GOTPAGEOFF]
	mov	x0, x19
	mov	w2, #1000
	mov	w3, #100
	bl	_rtl_udelay_loop_wait_high
	cbz	x0, LBB0_2
; %bb.1:
Lloh14:
	adrp	x8, _OCPDR@GOTPAGE
Lloh15:
	ldr	x8, [x8, _OCPDR@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_RTL_R32
Lloh17:
	adrp	x8, _OCPDR_DATA_MASK@GOTPAGE
Lloh18:
	ldr	x8, [x8, _OCPDR_DATA_MASK@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	and	w0, w8, w0
	b	LBB0_3
LBB0_2:
Lloh20:
	adrp	x8, _ETIMEDOUT@GOTPAGE
Lloh21:
	ldr	x8, [x8, _ETIMEDOUT@GOTPAGEOFF]
Lloh22:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_3:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_OCPDR_READ_CMD,4,2             ; @OCPDR_READ_CMD
	.comm	_OCPAR,4,2                      ; @OCPAR
	.comm	_OCPAR_GPHY_READ_CMD,4,2        ; @OCPAR_GPHY_READ_CMD
	.comm	_EPHY_RXER_NUM,4,2              ; @EPHY_RXER_NUM
	.comm	_rtl_ocpar_cond,4,2             ; @rtl_ocpar_cond
	.comm	_OCPDR,4,2                      ; @OCPDR
	.comm	_OCPDR_DATA_MASK,4,2            ; @OCPDR_DATA_MASK
	.comm	_ETIMEDOUT,4,2                  ; @ETIMEDOUT
	.no_dead_strip	_r8168dp_1_mdio_read
.subsections_via_symbols
