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

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function stmmac_mdio_write
_stmmac_mdio_write:                     ; @stmmac_mdio_write
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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	x19, x3
	mov	x20, x2
	mov	x21, x1
	ldr	x22, [x0]
	mov	x0, x22
	bl	_netdev_priv
	ldr	x23, [x22]
	ldr	x8, [x0]
	ldp	w9, w24, [x8]
	lsl	w21, w21, #11
Lloh0:
	adrp	x8, _MII_WRITE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MII_WRITE@GOTPAGEOFF]
	ubfiz	w26, w20, #6, #5
Lloh2:
	ldr	w25, [x8]
Lloh3:
	adrp	x22, _MII_BUSY@GOTPAGE
Lloh4:
	ldr	x22, [x22, _MII_BUSY@GOTPAGEOFF]
	ldr	w27, [x22]
	add	x20, x23, x9
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	bl	_readl
	ldr	w8, [x22]
	and	w8, w8, w0
	cmp	w8, #1
	b.eq	LBB0_1
; %bb.2:
	and	w8, w21, #0xf800
	orr	w8, w26, w8
	orr	w8, w8, w25
	orr	w21, w8, w27
	add	x1, x23, x24
	mov	x0, x19
	bl	_writel
	mov	x0, x21
	mov	x1, x20
	bl	_writel
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	bl	_readl
	ldr	w8, [x22]
	and	w8, w8, w0
	cmp	w8, #1
	b.eq	LBB0_3
; %bb.4:
	mov	w0, #0
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_MII_WRITE,4,2                  ; @MII_WRITE
	.comm	_MII_BUSY,4,2                   ; @MII_BUSY
	.no_dead_strip	_stmmac_mdio_write
.subsections_via_symbols
