	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mdio_ctrl_hw
_mdio_ctrl_hw:                          ## @mdio_ctrl_hw
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
                                        ## kill: def $r8d killed $r8d def $r8
	movq	%r8, -56(%rbp)                  ## 8-byte Spill
                                        ## kill: def $ecx killed $ecx def $rcx
	movq	%rcx, -72(%rbp)                 ## 8-byte Spill
	movl	%edx, -44(%rbp)                 ## 4-byte Spill
                                        ## kill: def $esi killed $esi def $rsi
	movq	%rsi, -64(%rbp)                 ## 8-byte Spill
	movq	%rdi, %r12
	leaq	4(%rdi), %r14
	movq	%r14, %rdi
	callq	_spin_lock_irqsave
	movl	$-100, %r15d
	movq	_mdi_ready@GOTPCREL(%rip), %r13
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%r12), %rdi
	callq	_ioread32
	movl	%eax, %ebx
	andl	(%r13), %ebx
	jne	LBB0_3
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	movl	$20, %edi
	callq	_udelay
	incl	%r15d
	jne	LBB0_1
LBB0_3:
	xorl	%edi, %edi
	testl	%ebx, %ebx
	sete	%dil
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movl	(%r12), %edi
	leaq	L_.str(%rip), %rsi
	callq	_netdev_err
	movq	%r14, %rdi
	callq	_spin_unlock_irqrestore
	xorl	%r15d, %r15d
	jmp	LBB0_9
LBB0_5:
	movq	-72(%rbp), %rax                 ## 8-byte Reload
                                        ## kill: def $eax killed $eax killed $rax
	shll	$16, %eax
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movl	%ecx, %edi
	shll	$21, %edi
	orl	-44(%rbp), %edi                 ## 4-byte Folded Reload
	orl	%eax, %edi
	orl	-56(%rbp), %edi                 ## 4-byte Folded Reload
	movq	8(%r12), %rsi
	callq	_iowrite32
	movl	$99, %ebx
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movl	$20, %edi
	callq	_udelay
	movq	8(%r12), %rdi
	callq	_ioread32
	movl	%eax, %r15d
	subl	$1, %ebx
	setb	%al
	testl	%r15d, (%r13)
	jne	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	testb	%al, %al
	je	LBB0_6
LBB0_8:
	movq	%r14, %rdi
	callq	_spin_unlock_irqrestore
	movq	_hw@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_KERN_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	(%r12), %ecx
	movq	_mdi_read@GOTPCREL(%rip), %rax
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	cmpl	%edi, (%rax)
	leaq	L_.str.2(%rip), %rax
	leaq	L_.str.3(%rip), %r9
	cmoveq	%rax, %r9
	leaq	L_.str.1(%rip), %r8
	movq	%r12, %rdi
	pushq	%r15
	pushq	-56(%rbp)                       ## 8-byte Folded Reload
	pushq	-72(%rbp)                       ## 8-byte Folded Reload
	pushq	-64(%rbp)                       ## 8-byte Folded Reload
	callq	_netif_printk
	addq	$32, %rsp
LBB0_9:
	movl	%r15d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_mdi_ready,4,2                  ## @mdi_ready
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"e100.mdio_ctrl won't go Ready\n"

	.comm	_hw,4,2                         ## @hw
	.comm	_KERN_DEBUG,4,2                 ## @KERN_DEBUG
L_.str.1:                               ## @.str.1
	.asciz	"%s:addr=%d, reg=%d, data_in=0x%04X, data_out=0x%04X\n"

	.comm	_mdi_read,4,2                   ## @mdi_read
L_.str.2:                               ## @.str.2
	.asciz	"READ"

L_.str.3:                               ## @.str.3
	.asciz	"WRITE"

	.no_dead_strip	_mdio_ctrl_hw
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mdio_ctrl_hw
_mdio_ctrl_hw:                          ; @mdio_ctrl_hw
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x21, x4
	mov	x19, x3
	mov	x23, x2
	mov	x20, x1
	mov	x22, x0
	add	x24, x0, #4
	mov	x0, x24
	bl	_spin_lock_irqsave
	mov	w25, #-100
Lloh0:
	adrp	x26, _mdi_ready@GOTPAGE
Lloh1:
	ldr	x26, [x26, _mdi_ready@GOTPAGEOFF]
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x0, [x22, #8]
	bl	_ioread32
	ldr	w8, [x26]
	ands	w27, w8, w0
	b.ne	LBB0_3
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	mov	w0, #20
	bl	_udelay
	adds	w25, w25, #1
	b.lo	LBB0_1
LBB0_3:
	cmp	w27, #0
	cset	w0, eq
	bl	_unlikely
	cbz	x0, LBB0_5
; %bb.4:
	ldr	w0, [x22]
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	bl	_netdev_err
	mov	x0, x24
	bl	_spin_unlock_irqrestore
	mov	w25, #0
	b	LBB0_8
LBB0_5:
	orr	w8, w23, w20, lsl #21
	orr	w8, w8, w19, lsl #16
	orr	w0, w8, w21
	ldr	x1, [x22, #8]
	bl	_iowrite32
	mov	w27, #99
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	mov	w0, #20
	bl	_udelay
	ldr	x0, [x22, #8]
	bl	_ioread32
	ldr	w8, [x26]
	and	w8, w8, w0
	cmp	w8, #0
	ccmp	w27, #0, #4, eq
	sub	w27, w27, #1
	b.ne	LBB0_6
; %bb.7:
	mov	x25, x0
	mov	x0, x24
	bl	_spin_unlock_irqrestore
Lloh4:
	adrp	x8, _hw@GOTPAGE
Lloh5:
	ldr	x8, [x8, _hw@GOTPAGEOFF]
Lloh6:
	adrp	x9, _KERN_DEBUG@GOTPAGE
Lloh7:
	ldr	x9, [x9, _KERN_DEBUG@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
Lloh9:
	ldr	w2, [x9]
	ldr	w3, [x22]
Lloh10:
	adrp	x8, _mdi_read@GOTPAGE
Lloh11:
	ldr	x8, [x8, _mdi_read@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
Lloh13:
	adrp	x9, l_.str.3@PAGE
Lloh14:
	add	x9, x9, l_.str.3@PAGEOFF
Lloh15:
	adrp	x10, l_.str.2@PAGE
Lloh16:
	add	x10, x10, l_.str.2@PAGEOFF
	cmp	w8, w23
	csel	x5, x10, x9, eq
	stp	w21, w25, [sp]
Lloh17:
	adrp	x4, l_.str.1@PAGE
Lloh18:
	add	x4, x4, l_.str.1@PAGEOFF
	mov	x0, x22
	mov	x6, x20
	mov	x7, x19
	bl	_netif_printk
LBB0_8:
	mov	x0, x25
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_mdi_ready,4,2                  ; @mdi_ready
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"e100.mdio_ctrl won't go Ready\n"

	.comm	_hw,4,2                         ; @hw
	.comm	_KERN_DEBUG,4,2                 ; @KERN_DEBUG
l_.str.1:                               ; @.str.1
	.asciz	"%s:addr=%d, reg=%d, data_in=0x%04X, data_out=0x%04X\n"

	.comm	_mdi_read,4,2                   ; @mdi_read
l_.str.2:                               ; @.str.2
	.asciz	"READ"

l_.str.3:                               ; @.str.3
	.asciz	"WRITE"

	.no_dead_strip	_mdio_ctrl_hw
.subsections_via_symbols
