	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function iproc_mdio_read
_iproc_mdio_read:                       ## @iproc_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	%r15
	pushq	%r14
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r14d
	movl	%esi, %ebx
	movq	(%rdi), %r15
	movq	(%r15), %rdi
	callq	_iproc_mdio_wait_for_idle
	testl	%eax, %eax
	jne	LBB0_3
## %bb.1:
	movq	_MII_DATA_TA_VAL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_MII_DATA_TA_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shll	%cl, %eax
	movq	_MII_DATA_RA_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shll	%cl, %r14d
	movq	_MII_DATA_PA_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shll	%cl, %ebx
	orl	%eax, %r14d
	movq	_MII_DATA_SB_SHIFT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_BIT
	orl	%eax, %ebx
	orl	%r14d, %ebx
	movq	_MII_DATA_OP_READ@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_MII_DATA_OP_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	shll	%cl, %edi
	orl	%ebx, %edi
	movq	_MII_DATA_OFFSET@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rsi
	addq	(%r15), %rsi
	callq	_writel
	movq	(%r15), %rdi
	callq	_iproc_mdio_wait_for_idle
	testl	%eax, %eax
	jne	LBB0_3
## %bb.2:
	movq	(%rbx), %rdi
	addq	(%r15), %rdi
	callq	_readl
	movq	_MII_DATA_MASK@GOTPCREL(%rip), %rcx
	andl	(%rcx), %eax
LBB0_3:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MII_DATA_TA_VAL,4,2            ## @MII_DATA_TA_VAL
	.comm	_MII_DATA_TA_SHIFT,4,2          ## @MII_DATA_TA_SHIFT
	.comm	_MII_DATA_RA_SHIFT,4,2          ## @MII_DATA_RA_SHIFT
	.comm	_MII_DATA_PA_SHIFT,4,2          ## @MII_DATA_PA_SHIFT
	.comm	_MII_DATA_SB_SHIFT,4,2          ## @MII_DATA_SB_SHIFT
	.comm	_MII_DATA_OP_READ,4,2           ## @MII_DATA_OP_READ
	.comm	_MII_DATA_OP_SHIFT,4,2          ## @MII_DATA_OP_SHIFT
	.comm	_MII_DATA_OFFSET,8,3            ## @MII_DATA_OFFSET
	.comm	_MII_DATA_MASK,4,2              ## @MII_DATA_MASK
	.no_dead_strip	_iproc_mdio_read
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function iproc_mdio_read
_iproc_mdio_read:                       ; @iproc_mdio_read
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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, x2
	mov	x19, x1
	ldr	x21, [x0]
	ldr	x0, [x21]
	bl	_iproc_mdio_wait_for_idle
	cbnz	w0, LBB0_3
; %bb.1:
Lloh0:
	adrp	x8, _MII_DATA_TA_VAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MII_DATA_TA_VAL@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _MII_DATA_TA_SHIFT@GOTPAGE
Lloh4:
	ldr	x9, [x9, _MII_DATA_TA_SHIFT@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
Lloh6:
	adrp	x10, _MII_DATA_RA_SHIFT@GOTPAGE
Lloh7:
	ldr	x10, [x10, _MII_DATA_RA_SHIFT@GOTPAGEOFF]
	lsl	w8, w8, w9
Lloh8:
	ldr	w9, [x10]
	lsl	w9, w20, w9
	orr	w8, w9, w8
Lloh9:
	adrp	x9, _MII_DATA_PA_SHIFT@GOTPAGE
Lloh10:
	ldr	x9, [x9, _MII_DATA_PA_SHIFT@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	lsl	w9, w19, w9
	orr	w19, w8, w9
Lloh12:
	adrp	x8, _MII_DATA_SB_SHIFT@GOTPAGE
Lloh13:
	ldr	x8, [x8, _MII_DATA_SB_SHIFT@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
	bl	_BIT
Lloh15:
	adrp	x8, _MII_DATA_OP_READ@GOTPAGE
Lloh16:
	ldr	x8, [x8, _MII_DATA_OP_READ@GOTPAGEOFF]
	orr	w9, w19, w0
Lloh17:
	ldr	w8, [x8]
Lloh18:
	adrp	x10, _MII_DATA_OP_SHIFT@GOTPAGE
Lloh19:
	ldr	x10, [x10, _MII_DATA_OP_SHIFT@GOTPAGEOFF]
Lloh20:
	ldr	w10, [x10]
	lsl	w8, w8, w10
	orr	w0, w9, w8
	ldr	x8, [x21]
Lloh21:
	adrp	x19, _MII_DATA_OFFSET@GOTPAGE
Lloh22:
	ldr	x19, [x19, _MII_DATA_OFFSET@GOTPAGEOFF]
	ldr	x9, [x19]
	add	x1, x9, x8
	bl	_writel
	ldr	x0, [x21]
	bl	_iproc_mdio_wait_for_idle
	cbnz	w0, LBB0_3
; %bb.2:
	ldr	x8, [x21]
	ldr	x9, [x19]
	add	x0, x9, x8
	bl	_readl
Lloh23:
	adrp	x8, _MII_DATA_MASK@GOTPAGE
Lloh24:
	ldr	x8, [x8, _MII_DATA_MASK@GOTPAGEOFF]
Lloh25:
	ldr	w8, [x8]
	and	w0, w8, w0
LBB0_3:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.cfi_endproc
                                        ; -- End function
	.comm	_MII_DATA_TA_VAL,4,2            ; @MII_DATA_TA_VAL
	.comm	_MII_DATA_TA_SHIFT,4,2          ; @MII_DATA_TA_SHIFT
	.comm	_MII_DATA_RA_SHIFT,4,2          ; @MII_DATA_RA_SHIFT
	.comm	_MII_DATA_PA_SHIFT,4,2          ; @MII_DATA_PA_SHIFT
	.comm	_MII_DATA_SB_SHIFT,4,2          ; @MII_DATA_SB_SHIFT
	.comm	_MII_DATA_OP_READ,4,2           ; @MII_DATA_OP_READ
	.comm	_MII_DATA_OP_SHIFT,4,2          ; @MII_DATA_OP_SHIFT
	.comm	_MII_DATA_OFFSET,8,3            ; @MII_DATA_OFFSET
	.comm	_MII_DATA_MASK,4,2              ; @MII_DATA_MASK
	.no_dead_strip	_iproc_mdio_read
.subsections_via_symbols
