	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ftmac100_mdio_write
_ftmac100_mdio_write:                   ## @ftmac100_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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %r12d
	movl	%edx, %r13d
	movl	%esi, %ebx
	movq	%rdi, %r14
	callq	_netdev_priv
	movq	%rax, %r15
	movl	%ebx, %edi
	callq	_FTMAC100_PHYCR_PHYAD
	movl	%eax, %ebx
	movl	%r13d, %edi
	callq	_FTMAC100_PHYCR_REGAD
	orl	%eax, %ebx
	movq	_FTMAC100_PHYCR_MIIWR@GOTPCREL(%rip), %r13
	orl	(%r13), %ebx
	movl	%r12d, %edi
	callq	_FTMAC100_PHYWDATA_MIIWDATA
	movq	_FTMAC100_OFFSET_PHYWDATA@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rsi
	addq	(%r15), %rsi
	movl	%eax, %edi
	callq	_iowrite32
	movq	_FTMAC100_OFFSET_PHYCR@GOTPCREL(%rip), %r12
	movq	(%r12), %rsi
	addq	(%r15), %rsi
	movl	%ebx, %edi
	callq	_iowrite32
	movq	(%r12), %rdi
	addq	(%r15), %rdi
	callq	_ioread32
	testl	%eax, (%r13)
	je	LBB0_10
## %bb.1:
	movl	$100, %edi
	callq	_udelay
	movq	(%r12), %rdi
	addq	(%r15), %rdi
	callq	_ioread32
	testl	%eax, (%r13)
	je	LBB0_10
## %bb.2:
	movl	$100, %edi
	callq	_udelay
	movq	(%r12), %rdi
	addq	(%r15), %rdi
	callq	_ioread32
	testl	%eax, (%r13)
	je	LBB0_10
## %bb.3:
	movl	$100, %edi
	callq	_udelay
	movq	(%r12), %rdi
	addq	(%r15), %rdi
	callq	_ioread32
	testl	%eax, (%r13)
	je	LBB0_10
## %bb.4:
	movl	$100, %edi
	callq	_udelay
	movq	(%r12), %rdi
	addq	(%r15), %rdi
	callq	_ioread32
	testl	%eax, (%r13)
	je	LBB0_10
## %bb.5:
	movl	$100, %edi
	callq	_udelay
	movq	(%r12), %rdi
	addq	(%r15), %rdi
	callq	_ioread32
	testl	%eax, (%r13)
	je	LBB0_10
## %bb.6:
	movl	$100, %edi
	callq	_udelay
	movq	(%r12), %rdi
	addq	(%r15), %rdi
	callq	_ioread32
	testl	%eax, (%r13)
	je	LBB0_10
## %bb.7:
	movl	$100, %edi
	callq	_udelay
	movq	(%r12), %rdi
	addq	(%r15), %rdi
	callq	_ioread32
	testl	%eax, (%r13)
	je	LBB0_10
## %bb.8:
	movl	$100, %edi
	callq	_udelay
	movq	(%r12), %rdi
	addq	(%r15), %rdi
	callq	_ioread32
	testl	%eax, (%r13)
	je	LBB0_10
## %bb.9:
	movl	$100, %edi
	callq	_udelay
	movq	(%r12), %rdi
	addq	(%r15), %rdi
	callq	_ioread32
	testl	%eax, (%r13)
	je	LBB0_10
## %bb.11:
	movl	$100, %edi
	callq	_udelay
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_netdev_err                     ## TAILCALL
LBB0_10:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_FTMAC100_PHYCR_MIIWR,4,2       ## @FTMAC100_PHYCR_MIIWR
	.comm	_FTMAC100_OFFSET_PHYWDATA,8,3   ## @FTMAC100_OFFSET_PHYWDATA
	.comm	_FTMAC100_OFFSET_PHYCR,8,3      ## @FTMAC100_OFFSET_PHYCR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"mdio write timed out\n"

	.no_dead_strip	_ftmac100_mdio_write
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ftmac100_mdio_write
_ftmac100_mdio_write:                   ; @ftmac100_mdio_write
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x21, x3
	mov	x22, x2
	mov	x23, x1
	mov	x19, x0
	bl	_netdev_priv
	mov	x20, x0
	mov	x0, x23
	bl	_FTMAC100_PHYCR_PHYAD
	mov	x23, x0
	mov	x0, x22
	bl	_FTMAC100_PHYCR_REGAD
	orr	w8, w0, w23
Lloh0:
	adrp	x23, _FTMAC100_PHYCR_MIIWR@GOTPAGE
Lloh1:
	ldr	x23, [x23, _FTMAC100_PHYCR_MIIWR@GOTPAGEOFF]
	ldr	w9, [x23]
	orr	w22, w8, w9
	mov	x0, x21
	bl	_FTMAC100_PHYWDATA_MIIWDATA
	ldr	x8, [x20]
Lloh2:
	adrp	x9, _FTMAC100_OFFSET_PHYWDATA@GOTPAGE
Lloh3:
	ldr	x9, [x9, _FTMAC100_OFFSET_PHYWDATA@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
	add	x1, x9, x8
	bl	_iowrite32
	ldr	x8, [x20]
Lloh5:
	adrp	x21, _FTMAC100_OFFSET_PHYCR@GOTPAGE
Lloh6:
	ldr	x21, [x21, _FTMAC100_OFFSET_PHYCR@GOTPAGEOFF]
	ldr	x9, [x21]
	add	x1, x9, x8
	mov	x0, x22
	bl	_iowrite32
	ldr	x8, [x20]
	ldr	x9, [x21]
	add	x0, x9, x8
	bl	_ioread32
	ldr	w8, [x23]
	tst	w8, w0
	b.eq	LBB0_11
; %bb.1:
	mov	w0, #100
	bl	_udelay
	ldr	x8, [x20]
	ldr	x9, [x21]
	add	x0, x9, x8
	bl	_ioread32
	ldr	w8, [x23]
	tst	w8, w0
	b.eq	LBB0_11
; %bb.2:
	mov	w0, #100
	bl	_udelay
	ldr	x8, [x20]
	ldr	x9, [x21]
	add	x0, x9, x8
	bl	_ioread32
	ldr	w8, [x23]
	tst	w8, w0
	b.eq	LBB0_11
; %bb.3:
	mov	w0, #100
	bl	_udelay
	ldr	x8, [x20]
	ldr	x9, [x21]
	add	x0, x9, x8
	bl	_ioread32
	ldr	w8, [x23]
	tst	w8, w0
	b.eq	LBB0_11
; %bb.4:
	mov	w0, #100
	bl	_udelay
	ldr	x8, [x20]
	ldr	x9, [x21]
	add	x0, x9, x8
	bl	_ioread32
	ldr	w8, [x23]
	tst	w8, w0
	b.eq	LBB0_11
; %bb.5:
	mov	w0, #100
	bl	_udelay
	ldr	x8, [x20]
	ldr	x9, [x21]
	add	x0, x9, x8
	bl	_ioread32
	ldr	w8, [x23]
	tst	w8, w0
	b.eq	LBB0_11
; %bb.6:
	mov	w0, #100
	bl	_udelay
	ldr	x8, [x20]
	ldr	x9, [x21]
	add	x0, x9, x8
	bl	_ioread32
	ldr	w8, [x23]
	tst	w8, w0
	b.eq	LBB0_11
; %bb.7:
	mov	w0, #100
	bl	_udelay
	ldr	x8, [x20]
	ldr	x9, [x21]
	add	x0, x9, x8
	bl	_ioread32
	ldr	w8, [x23]
	tst	w8, w0
	b.eq	LBB0_11
; %bb.8:
	mov	w0, #100
	bl	_udelay
	ldr	x8, [x20]
	ldr	x9, [x21]
	add	x0, x9, x8
	bl	_ioread32
	ldr	w8, [x23]
	tst	w8, w0
	b.eq	LBB0_11
; %bb.9:
	mov	w0, #100
	bl	_udelay
	ldr	x8, [x20]
	ldr	x9, [x21]
	add	x0, x9, x8
	bl	_ioread32
	ldr	w8, [x23]
	tst	w8, w0
	b.eq	LBB0_11
; %bb.10:
	mov	w0, #100
	bl	_udelay
Lloh7:
	adrp	x1, l_.str@PAGE
Lloh8:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_netdev_err
LBB0_11:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_FTMAC100_PHYCR_MIIWR,4,2       ; @FTMAC100_PHYCR_MIIWR
	.comm	_FTMAC100_OFFSET_PHYWDATA,8,3   ; @FTMAC100_OFFSET_PHYWDATA
	.comm	_FTMAC100_OFFSET_PHYCR,8,3      ; @FTMAC100_OFFSET_PHYCR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"mdio write timed out\n"

	.no_dead_strip	_ftmac100_mdio_write
.subsections_via_symbols
