	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ftgmac100_mdiobus_write
_ftgmac100_mdiobus_write:               ## @ftgmac100_mdiobus_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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %r15d
	movl	%edx, %r13d
	movl	%esi, %ebx
	movq	(%rdi), %rdi
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	callq	_netdev_priv
	movq	%rax, %r12
	movq	_FTGMAC100_OFFSET_PHYCR@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	(%r12), %rdi
	callq	_ioread32
	movl	%eax, %r14d
	movq	_FTGMAC100_PHYCR_MDC_CYCTHR_MASK@GOTPCREL(%rip), %rax
	andl	(%rax), %r14d
	movl	%ebx, %edi
	callq	_FTGMAC100_PHYCR_PHYAD
	movl	%eax, %ebx
	movl	%r13d, %edi
	callq	_FTGMAC100_PHYCR_REGAD
	movq	_FTGMAC100_PHYCR_MIIWR@GOTPCREL(%rip), %r13
	orl	%eax, %ebx
	orl	%r14d, %ebx
	orl	(%r13), %ebx
	movl	%r15d, %edi
	callq	_FTGMAC100_PHYDATA_MIIWDATA
	movq	_FTGMAC100_OFFSET_PHYDATA@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rsi
	addq	(%r12), %rsi
	movl	%eax, %edi
	callq	_iowrite32
	movq	_FTGMAC100_OFFSET_PHYCR@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	(%r12), %rsi
	movl	%ebx, %edi
	movq	%rax, %rbx
	callq	_iowrite32
	movq	(%rbx), %rdi
	addq	(%r12), %rdi
	callq	_ioread32
	xorl	%r15d, %r15d
	testl	%eax, (%r13)
	je	LBB0_11
## %bb.1:
	movl	$100, %edi
	callq	_udelay
	movq	(%rbx), %rdi
	addq	(%r12), %rdi
	callq	_ioread32
	testl	%eax, (%r13)
	je	LBB0_11
## %bb.2:
	movl	$100, %edi
	callq	_udelay
	movq	(%rbx), %rdi
	addq	(%r12), %rdi
	callq	_ioread32
	testl	%eax, (%r13)
	je	LBB0_11
## %bb.3:
	movl	$100, %edi
	callq	_udelay
	movq	(%rbx), %rdi
	addq	(%r12), %rdi
	callq	_ioread32
	testl	%eax, (%r13)
	je	LBB0_11
## %bb.4:
	movl	$100, %edi
	callq	_udelay
	movq	(%rbx), %rdi
	addq	(%r12), %rdi
	callq	_ioread32
	testl	%eax, (%r13)
	je	LBB0_11
## %bb.5:
	movl	$100, %edi
	callq	_udelay
	movq	(%rbx), %rdi
	addq	(%r12), %rdi
	callq	_ioread32
	testl	%eax, (%r13)
	je	LBB0_11
## %bb.6:
	movl	$100, %edi
	callq	_udelay
	movq	(%rbx), %rdi
	addq	(%r12), %rdi
	callq	_ioread32
	testl	%eax, (%r13)
	je	LBB0_11
## %bb.7:
	movl	$100, %edi
	callq	_udelay
	movq	(%rbx), %rdi
	addq	(%r12), %rdi
	callq	_ioread32
	testl	%eax, (%r13)
	je	LBB0_11
## %bb.8:
	movl	$100, %edi
	callq	_udelay
	movq	(%rbx), %rdi
	addq	(%r12), %rdi
	callq	_ioread32
	testl	%eax, (%r13)
	je	LBB0_11
## %bb.9:
	movl	$100, %edi
	callq	_udelay
	movq	(%rbx), %rdi
	addq	(%r12), %rdi
	callq	_ioread32
	testl	%eax, (%r13)
	je	LBB0_11
## %bb.10:
	movl	$100, %edi
	callq	_udelay
	leaq	L_.str(%rip), %rsi
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_netdev_err
	movq	_EIO@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
LBB0_11:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_FTGMAC100_OFFSET_PHYCR,8,3     ## @FTGMAC100_OFFSET_PHYCR
	.comm	_FTGMAC100_PHYCR_MDC_CYCTHR_MASK,4,2 ## @FTGMAC100_PHYCR_MDC_CYCTHR_MASK
	.comm	_FTGMAC100_PHYCR_MIIWR,4,2      ## @FTGMAC100_PHYCR_MIIWR
	.comm	_FTGMAC100_OFFSET_PHYDATA,8,3   ## @FTGMAC100_OFFSET_PHYDATA
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"mdio write timed out\n"

	.comm	_EIO,4,2                        ## @EIO
	.no_dead_strip	_ftgmac100_mdiobus_write
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ftgmac100_mdiobus_write
_ftgmac100_mdiobus_write:               ; @ftgmac100_mdiobus_write
	.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	x21, x3
	mov	x22, x2
	mov	x23, x1
	ldr	x19, [x0]
	mov	x0, x19
	bl	_netdev_priv
	mov	x20, x0
	ldr	x8, [x0]
Lloh0:
	adrp	x24, _FTGMAC100_OFFSET_PHYCR@GOTPAGE
Lloh1:
	ldr	x24, [x24, _FTGMAC100_OFFSET_PHYCR@GOTPAGEOFF]
	ldr	x9, [x24]
	add	x0, x9, x8
	bl	_ioread32
Lloh2:
	adrp	x8, _FTGMAC100_PHYCR_MDC_CYCTHR_MASK@GOTPAGE
Lloh3:
	ldr	x8, [x8, _FTGMAC100_PHYCR_MDC_CYCTHR_MASK@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	and	w26, w8, w0
	mov	x0, x23
	bl	_FTGMAC100_PHYCR_PHYAD
	mov	x23, x0
	mov	x0, x22
	bl	_FTGMAC100_PHYCR_REGAD
Lloh5:
	adrp	x25, _FTGMAC100_PHYCR_MIIWR@GOTPAGE
Lloh6:
	ldr	x25, [x25, _FTGMAC100_PHYCR_MIIWR@GOTPAGEOFF]
	ldr	w8, [x25]
	orr	w9, w26, w23
	orr	w9, w9, w0
	orr	w22, w9, w8
	mov	x0, x21
	bl	_FTGMAC100_PHYDATA_MIIWDATA
	ldr	x8, [x20]
Lloh7:
	adrp	x9, _FTGMAC100_OFFSET_PHYDATA@GOTPAGE
Lloh8:
	ldr	x9, [x9, _FTGMAC100_OFFSET_PHYDATA@GOTPAGEOFF]
Lloh9:
	ldr	x9, [x9]
	add	x1, x9, x8
	bl	_iowrite32
	ldr	x8, [x20]
	ldr	x9, [x24]
	add	x1, x9, x8
	mov	x0, x22
	bl	_iowrite32
	ldr	x8, [x20]
	ldr	x9, [x24]
	add	x0, x9, x8
	bl	_ioread32
	ldr	w8, [x25]
	tst	w8, w0
	b.eq	LBB0_11
; %bb.1:
	mov	w0, #100
	bl	_udelay
	ldr	x8, [x20]
	ldr	x9, [x24]
	add	x0, x9, x8
	bl	_ioread32
	ldr	w8, [x25]
	tst	w8, w0
	b.eq	LBB0_11
; %bb.2:
	mov	w0, #100
	bl	_udelay
	ldr	x8, [x20]
	ldr	x9, [x24]
	add	x0, x9, x8
	bl	_ioread32
	ldr	w8, [x25]
	tst	w8, w0
	b.eq	LBB0_11
; %bb.3:
	mov	w0, #100
	bl	_udelay
	ldr	x8, [x20]
	ldr	x9, [x24]
	add	x0, x9, x8
	bl	_ioread32
	ldr	w8, [x25]
	tst	w8, w0
	b.eq	LBB0_11
; %bb.4:
	mov	w0, #100
	bl	_udelay
	ldr	x8, [x20]
	ldr	x9, [x24]
	add	x0, x9, x8
	bl	_ioread32
	ldr	w8, [x25]
	tst	w8, w0
	b.eq	LBB0_11
; %bb.5:
	mov	w0, #100
	bl	_udelay
	ldr	x8, [x20]
	ldr	x9, [x24]
	add	x0, x9, x8
	bl	_ioread32
	ldr	w8, [x25]
	tst	w8, w0
	b.eq	LBB0_11
; %bb.6:
	mov	w0, #100
	bl	_udelay
	ldr	x8, [x20]
	ldr	x9, [x24]
	add	x0, x9, x8
	bl	_ioread32
	ldr	w8, [x25]
	tst	w8, w0
	b.eq	LBB0_11
; %bb.7:
	mov	w0, #100
	bl	_udelay
	ldr	x8, [x20]
	ldr	x9, [x24]
	add	x0, x9, x8
	bl	_ioread32
	ldr	w8, [x25]
	tst	w8, w0
	b.eq	LBB0_11
; %bb.8:
	mov	w0, #100
	bl	_udelay
	ldr	x8, [x20]
	ldr	x9, [x24]
	add	x0, x9, x8
	bl	_ioread32
	ldr	w8, [x25]
	tst	w8, w0
	b.eq	LBB0_11
; %bb.9:
	mov	w0, #100
	bl	_udelay
	ldr	x8, [x20]
	ldr	x9, [x24]
	add	x0, x9, x8
	bl	_ioread32
	ldr	w8, [x25]
	tst	w8, w0
	b.eq	LBB0_11
; %bb.10:
	mov	w0, #100
	bl	_udelay
Lloh10:
	adrp	x1, l_.str@PAGE
Lloh11:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_netdev_err
Lloh12:
	adrp	x8, _EIO@GOTPAGE
Lloh13:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_12
LBB0_11:
	mov	w0, #0
LBB0_12:
	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
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_FTGMAC100_OFFSET_PHYCR,8,3     ; @FTGMAC100_OFFSET_PHYCR
	.comm	_FTGMAC100_PHYCR_MDC_CYCTHR_MASK,4,2 ; @FTGMAC100_PHYCR_MDC_CYCTHR_MASK
	.comm	_FTGMAC100_PHYCR_MIIWR,4,2      ; @FTGMAC100_PHYCR_MIIWR
	.comm	_FTGMAC100_OFFSET_PHYDATA,8,3   ; @FTGMAC100_OFFSET_PHYDATA
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"mdio write timed out\n"

	.comm	_EIO,4,2                        ; @EIO
	.no_dead_strip	_ftgmac100_mdiobus_write
.subsections_via_symbols
