	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function r8169_mdio_read
_r8169_mdio_read:                       ## @r8169_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
	movl	%esi, %edx
	movq	%rdi, %rbx
	movq	_PHYAR@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	andl	$31, %edx
	shll	$16, %edx
	callq	_RTL_W32
	movq	_rtl_phyar_cond@GOTPCREL(%rip), %rsi
	movq	%rbx, %rdi
	movl	$25, %edx
	movl	$20, %ecx
	callq	_rtl_udelay_loop_wait_high
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movl	(%r14), %esi
	movq	%rbx, %rdi
	callq	_RTL_R32
	movzwl	%ax, %ebx
	jmp	LBB0_3
LBB0_2:
	movq	_ETIMEDOUT@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_3:
	movl	$20, %edi
	callq	_udelay
	movl	%ebx, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PHYAR,4,2                      ## @PHYAR
	.comm	_rtl_phyar_cond,4,2             ## @rtl_phyar_cond
	.comm	_ETIMEDOUT,4,2                  ## @ETIMEDOUT
	.no_dead_strip	_r8169_mdio_read
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function r8169_mdio_read
_r8169_mdio_read:                       ; @r8169_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	x20, _PHYAR@GOTPAGE
Lloh1:
	ldr	x20, [x20, _PHYAR@GOTPAGEOFF]
	ldr	w8, [x20]
	ubfiz	w2, w1, #16, #5
	mov	x1, x8
	bl	_RTL_W32
Lloh2:
	adrp	x1, _rtl_phyar_cond@GOTPAGE
Lloh3:
	ldr	x1, [x1, _rtl_phyar_cond@GOTPAGEOFF]
	mov	x0, x19
	mov	w2, #25
	mov	w3, #20
	bl	_rtl_udelay_loop_wait_high
	cbz	x0, LBB0_2
; %bb.1:
	ldr	w1, [x20]
	mov	x0, x19
	bl	_RTL_R32
	and	w19, w0, #0xffff
	b	LBB0_3
LBB0_2:
Lloh4:
	adrp	x8, _ETIMEDOUT@GOTPAGE
Lloh5:
	ldr	x8, [x8, _ETIMEDOUT@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	neg	w19, w8
LBB0_3:
	mov	w0, #20
	bl	_udelay
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_PHYAR,4,2                      ; @PHYAR
	.comm	_rtl_phyar_cond,4,2             ; @rtl_phyar_cond
	.comm	_ETIMEDOUT,4,2                  ; @ETIMEDOUT
	.no_dead_strip	_r8169_mdio_read
.subsections_via_symbols
