	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function au1000_mdio_read
_au1000_mdio_read:                      ## @au1000_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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r13d
	movl	%esi, -44(%rbp)                 ## 4-byte Spill
	movq	%rdi, %rbx
	callq	_netdev_priv
	movq	(%rax), %r15
	leaq	4(%r15), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movl	$-20, %r12d
	movq	_MAC_MII_BUSY@GOTPCREL(%rip), %r14
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r15, %rdi
	callq	_readl
	testl	%eax, (%r14)
	je	LBB0_4
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	movl	$1, %edi
	callq	_mdelay
	incl	%r12d
	jne	LBB0_1
## %bb.3:
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	jmp	LBB0_8
LBB0_4:
	movq	%rbx, %r12
	movl	%r13d, %edi
	callq	_MAC_SET_MII_SELECT_REG
	movl	%eax, %r13d
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	callq	_MAC_SET_MII_SELECT_PHY
	orl	%eax, %r13d
	movq	_MAC_MII_READ@GOTPCREL(%rip), %rax
	orl	(%rax), %r13d
	movl	%r13d, %edi
	movq	%r15, %rsi
	callq	_writel
	movl	$-20, %ebx
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r15, %rdi
	callq	_readl
	testl	%eax, (%r14)
	je	LBB0_9
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movl	$1, %edi
	callq	_mdelay
	incl	%ebx
	jne	LBB0_5
## %bb.7:
	leaq	L_.str.1(%rip), %rsi
	movq	%r12, %rdi
LBB0_8:
	callq	_netdev_err
	movl	$-1, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_readl                          ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_MAC_MII_BUSY,4,2               ## @MAC_MII_BUSY
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"read_MII busy timeout!!\n"

	.comm	_MAC_MII_READ,4,2               ## @MAC_MII_READ
L_.str.1:                               ## @.str.1
	.asciz	"mdio_read busy timeout!!\n"

	.no_dead_strip	_au1000_mdio_read
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function au1000_mdio_read
_au1000_mdio_read:                      ; @au1000_mdio_read
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x23, x2
	mov	x22, x1
	mov	x19, x0
	bl	_netdev_priv
	ldr	x20, [x0]
	add	x21, x20, #4
	mov	w25, #-20
Lloh0:
	adrp	x24, _MAC_MII_BUSY@GOTPAGE
Lloh1:
	ldr	x24, [x24, _MAC_MII_BUSY@GOTPAGEOFF]
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	bl	_readl
	ldr	w8, [x24]
	tst	w8, w0
	b.eq	LBB0_4
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	mov	w0, #1
	bl	_mdelay
	adds	w25, w25, #1
	b.lo	LBB0_1
; %bb.3:
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_8
LBB0_4:
	mov	x0, x23
	bl	_MAC_SET_MII_SELECT_REG
	mov	x23, x0
	mov	x0, x22
	bl	_MAC_SET_MII_SELECT_PHY
	orr	w8, w0, w23
Lloh4:
	adrp	x9, _MAC_MII_READ@GOTPAGE
Lloh5:
	ldr	x9, [x9, _MAC_MII_READ@GOTPAGEOFF]
Lloh6:
	ldr	w9, [x9]
	orr	w0, w8, w9
	mov	x1, x20
	bl	_writel
	mov	w22, #-20
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	bl	_readl
	ldr	w8, [x24]
	tst	w8, w0
	b.eq	LBB0_9
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	w0, #1
	bl	_mdelay
	adds	w22, w22, #1
	b.lo	LBB0_5
; %bb.7:
Lloh7:
	adrp	x1, l_.str.1@PAGE
Lloh8:
	add	x1, x1, l_.str.1@PAGEOFF
LBB0_8:
	mov	x0, x19
	bl	_netdev_err
	mov	w0, #-1
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_9:
	mov	x0, x21
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_readl
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_MAC_MII_BUSY,4,2               ; @MAC_MII_BUSY
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"read_MII busy timeout!!\n"

	.comm	_MAC_MII_READ,4,2               ; @MAC_MII_READ
l_.str.1:                               ; @.str.1
	.asciz	"mdio_read busy timeout!!\n"

	.no_dead_strip	_au1000_mdio_read
.subsections_via_symbols
