	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function r8168g_mdio_read
_r8168g_mdio_read:                      ## @r8168g_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
                                        ## kill: def $esi killed $esi def $rsi
	movl	(%rdi), %ecx
	movq	_OCP_STD_PHY_BASE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	cmpl	$31, %esi
	jne	LBB0_2
## %bb.1:
	movl	%ecx, %esi
	sarl	$4, %esi
	xorl	%eax, %eax
	cmpl	%edx, %ecx
	cmovnel	%esi, %eax
	popq	%rbp
	retq
LBB0_2:
	leal	(%rsi,%rsi), %eax
	cmpl	%edx, %ecx
	leal	-32(%rsi,%rsi), %esi
	cmovel	%eax, %esi
	addl	%ecx, %esi
	popq	%rbp
	jmp	_r8168_phy_ocp_read             ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_OCP_STD_PHY_BASE,4,2           ## @OCP_STD_PHY_BASE
	.no_dead_strip	_r8168g_mdio_read
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function r8168g_mdio_read
_r8168g_mdio_read:                      ; @r8168g_mdio_read
	.cfi_startproc
; %bb.0:
	ldr	w8, [x0]
Lloh0:
	adrp	x9, _OCP_STD_PHY_BASE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _OCP_STD_PHY_BASE@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	cmp	w1, #31
	b.ne	LBB0_2
; %bb.1:
	asr	w10, w8, #4
	cmp	w8, w9
	csel	w0, wzr, w10, eq
	ret
LBB0_2:
	lsl	w10, w1, #1
	sub	w11, w10, #32
	cmp	w8, w9
	csel	w9, w10, w11, eq
	add	w1, w9, w8
	b	_r8168_phy_ocp_read
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_OCP_STD_PHY_BASE,4,2           ; @OCP_STD_PHY_BASE
	.no_dead_strip	_r8168g_mdio_read
.subsections_via_symbols
