	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function stmmac_mdio_read
_stmmac_mdio_read:                      ## @stmmac_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, %r15d
	movl	%esi, %r12d
	movq	(%rdi), %rbx
	movq	%rbx, %rdi
	callq	_netdev_priv
	movq	(%rbx), %r14
	movq	(%rax), %rax
	movl	(%rax), %ebx
	movl	4(%rax), %eax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	shll	$11, %r12d
	andl	$31, %r15d
	shll	$6, %r15d
	movq	_MII_BUSY@GOTPCREL(%rip), %r13
	movl	(%r13), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	addq	%r14, %rbx
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rdi
	callq	_readl
	andl	(%r13), %eax
	cmpl	$1, %eax
	je	LBB0_1
## %bb.2:
	andl	$63488, %r12d                   ## imm = 0xF800
	orl	%r12d, %r15d
	orl	-44(%rbp), %r15d                ## 4-byte Folded Reload
	movl	%r15d, %edi
	movq	%rbx, %rsi
	callq	_writel
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rdi
	callq	_readl
	andl	(%r13), %eax
	cmpl	$1, %eax
	je	LBB0_3
## %bb.4:
	addq	-56(%rbp), %r14                 ## 8-byte Folded Reload
	movq	%r14, %rdi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_readl                          ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_MII_BUSY,4,2                   ## @MII_BUSY
	.no_dead_strip	_stmmac_mdio_read
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function stmmac_mdio_read
_stmmac_mdio_read:                      ; @stmmac_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	x19, x2
	mov	x20, x1
	ldr	x21, [x0]
	mov	x0, x21
	bl	_netdev_priv
	ldr	x21, [x21]
	ldr	x8, [x0]
	ldp	w9, w22, [x8]
	lsl	w23, w20, #11
	ubfiz	w24, w19, #6, #5
Lloh0:
	adrp	x20, _MII_BUSY@GOTPAGE
Lloh1:
	ldr	x20, [x20, _MII_BUSY@GOTPAGEOFF]
	ldr	w25, [x20]
	add	x19, x21, x9
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	bl	_readl
	ldr	w8, [x20]
	and	w8, w8, w0
	cmp	w8, #1
	b.eq	LBB0_1
; %bb.2:
	and	w8, w23, #0xf800
	orr	w8, w24, w8
	orr	w0, w8, w25
	mov	x1, x19
	bl	_writel
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	bl	_readl
	ldr	w8, [x20]
	and	w8, w8, w0
	cmp	w8, #1
	b.eq	LBB0_3
; %bb.4:
	add	x0, x21, x22
	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
	.cfi_endproc
                                        ; -- End function
	.comm	_MII_BUSY,4,2                   ; @MII_BUSY
	.no_dead_strip	_stmmac_mdio_read
.subsections_via_symbols
