	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function falcon_mdio_write
_falcon_mdio_write:                     ## @falcon_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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r8d, %r15d
	movl	%ecx, %r12d
	movl	%edx, %r13d
	movl	%esi, %r14d
	callq	_netdev_priv
	movq	%rax, %rdi
	movq	8(%rax), %rbx
	movq	_hw@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%rdi), %edx
	leaq	L_.str(%rip), %rcx
	movl	%r14d, -48(%rbp)                ## 4-byte Spill
	movl	%r14d, %r8d
	movq	%r12, %r14
	movq	%rdi, %r12
	movl	%r13d, -52(%rbp)                ## 4-byte Spill
	movl	%r13d, %r9d
	movq	%r15, -64(%rbp)                 ## 8-byte Spill
	pushq	%r15
	pushq	%r14
	callq	_netif_vdbg
	addq	$16, %rsp
	movq	%rbx, -72(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rdi
	callq	_mutex_lock
	movq	%r12, %rdi
	callq	_falcon_gmii_wait
	movl	%eax, %r15d
	testl	%eax, %eax
	jne	LBB0_3
## %bb.1:
	movq	_FRF_AB_MD_PHY_ADR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r14d, %edx
	callq	_EF4_POPULATE_OWORD_1
	movq	_FR_AB_MD_PHY_ADR@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-44(%rbp), %rbx
	movq	%r12, %rdi
	movq	%rbx, %rsi
	callq	_ef4_writeo
	movl	-44(%rbp), %edi
	movq	_FRF_AB_MD_PRT_ADR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_FRF_AB_MD_DEV_ADR@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	-48(%rbp), %edx                 ## 4-byte Reload
	movl	-52(%rbp), %r8d                 ## 4-byte Reload
	callq	_EF4_POPULATE_OWORD_2
	movq	_FR_AB_MD_ID@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rdi
	movq	%rbx, %rsi
	callq	_ef4_writeo
	movl	-44(%rbp), %edi
	movq	_FRF_AB_MD_TXD@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_EF4_POPULATE_OWORD_1
	movq	_FR_AB_MD_TXD@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rdi
	movq	%rbx, %rsi
	callq	_ef4_writeo
	movl	-44(%rbp), %edi
	movq	_FRF_AB_MD_WRC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_FRF_AB_MD_GC@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	xorl	%r15d, %r15d
	movl	$1, %edx
	xorl	%r8d, %r8d
	callq	_EF4_POPULATE_OWORD_2
	movq	_FR_AB_MD_CS@GOTPCREL(%rip), %r13
	movl	(%r13), %edx
	movq	%r12, %rdi
	movq	%rbx, %rsi
	callq	_ef4_writeo
	movq	%r12, %rdi
	callq	_falcon_gmii_wait
	testl	%eax, %eax
	je	LBB0_3
## %bb.2:
	movl	%eax, %r14d
	movl	-44(%rbp), %edi
	movq	_FRF_AB_MD_WRC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_FRF_AB_MD_GC@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	xorl	%edx, %edx
	movl	$1, %r8d
	callq	_EF4_POPULATE_OWORD_2
	movl	(%r13), %edx
	leaq	-44(%rbp), %rsi
	movq	%r12, %rdi
	callq	_ef4_writeo
	movl	$10, %edi
	callq	_udelay
	movl	%r14d, %r15d
LBB0_3:
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	callq	_mutex_unlock
	movl	%r15d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_hw,4,2                         ## @hw
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"writing MDIO %d register %d.%d with 0x%04x\n"

	.comm	_FRF_AB_MD_PHY_ADR,4,2          ## @FRF_AB_MD_PHY_ADR
	.comm	_FR_AB_MD_PHY_ADR,4,2           ## @FR_AB_MD_PHY_ADR
	.comm	_FRF_AB_MD_PRT_ADR,4,2          ## @FRF_AB_MD_PRT_ADR
	.comm	_FRF_AB_MD_DEV_ADR,4,2          ## @FRF_AB_MD_DEV_ADR
	.comm	_FR_AB_MD_ID,4,2                ## @FR_AB_MD_ID
	.comm	_FRF_AB_MD_TXD,4,2              ## @FRF_AB_MD_TXD
	.comm	_FR_AB_MD_TXD,4,2               ## @FR_AB_MD_TXD
	.comm	_FRF_AB_MD_WRC,4,2              ## @FRF_AB_MD_WRC
	.comm	_FRF_AB_MD_GC,4,2               ## @FRF_AB_MD_GC
	.comm	_FR_AB_MD_CS,4,2                ## @FR_AB_MD_CS
	.no_dead_strip	_falcon_mdio_write
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function falcon_mdio_write
_falcon_mdio_write:                     ; @falcon_mdio_write
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.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
	mov	x21, x4
	mov	x24, x3
	mov	x22, x2
	mov	x23, x1
	bl	_netdev_priv
	mov	x20, x0
	ldr	x19, [x0, #8]
Lloh0:
	adrp	x8, _hw@GOTPAGE
Lloh1:
	ldr	x8, [x8, _hw@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	ldr	w2, [x0]
Lloh3:
	adrp	x3, l_.str@PAGE
Lloh4:
	add	x3, x3, l_.str@PAGEOFF
	mov	x4, x23
	mov	x5, x22
	mov	x6, x24
	mov	x7, x21
	bl	_netif_vdbg
	mov	x0, x19
	bl	_mutex_lock
	mov	x0, x20
	bl	_falcon_gmii_wait
	mov	x25, x0
	cbnz	w0, LBB0_3
; %bb.1:
Lloh5:
	adrp	x8, _FRF_AB_MD_PHY_ADR@GOTPAGE
Lloh6:
	ldr	x8, [x8, _FRF_AB_MD_PHY_ADR@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	mov	x2, x24
	bl	_EF4_POPULATE_OWORD_1
Lloh8:
	adrp	x8, _FR_AB_MD_PHY_ADR@GOTPAGE
Lloh9:
	ldr	x8, [x8, _FR_AB_MD_PHY_ADR@GOTPAGEOFF]
Lloh10:
	ldr	w2, [x8]
	add	x1, sp, #12
	mov	x0, x20
	bl	_ef4_writeo
	ldr	w0, [sp, #12]
Lloh11:
	adrp	x8, _FRF_AB_MD_PRT_ADR@GOTPAGE
Lloh12:
	ldr	x8, [x8, _FRF_AB_MD_PRT_ADR@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
Lloh14:
	adrp	x8, _FRF_AB_MD_DEV_ADR@GOTPAGE
Lloh15:
	ldr	x8, [x8, _FRF_AB_MD_DEV_ADR@GOTPAGEOFF]
Lloh16:
	ldr	w3, [x8]
	mov	x2, x23
	mov	x4, x22
	bl	_EF4_POPULATE_OWORD_2
Lloh17:
	adrp	x8, _FR_AB_MD_ID@GOTPAGE
Lloh18:
	ldr	x8, [x8, _FR_AB_MD_ID@GOTPAGEOFF]
Lloh19:
	ldr	w2, [x8]
	add	x1, sp, #12
	mov	x0, x20
	bl	_ef4_writeo
	ldr	w0, [sp, #12]
Lloh20:
	adrp	x8, _FRF_AB_MD_TXD@GOTPAGE
Lloh21:
	ldr	x8, [x8, _FRF_AB_MD_TXD@GOTPAGEOFF]
Lloh22:
	ldr	w1, [x8]
	mov	x2, x21
	bl	_EF4_POPULATE_OWORD_1
Lloh23:
	adrp	x8, _FR_AB_MD_TXD@GOTPAGE
Lloh24:
	ldr	x8, [x8, _FR_AB_MD_TXD@GOTPAGEOFF]
Lloh25:
	ldr	w2, [x8]
	add	x1, sp, #12
	mov	x0, x20
	bl	_ef4_writeo
	ldr	w0, [sp, #12]
Lloh26:
	adrp	x21, _FRF_AB_MD_WRC@GOTPAGE
Lloh27:
	ldr	x21, [x21, _FRF_AB_MD_WRC@GOTPAGEOFF]
	ldr	w1, [x21]
Lloh28:
	adrp	x22, _FRF_AB_MD_GC@GOTPAGE
Lloh29:
	ldr	x22, [x22, _FRF_AB_MD_GC@GOTPAGEOFF]
	ldr	w3, [x22]
	mov	w2, #1
	mov	w4, #0
	bl	_EF4_POPULATE_OWORD_2
Lloh30:
	adrp	x23, _FR_AB_MD_CS@GOTPAGE
Lloh31:
	ldr	x23, [x23, _FR_AB_MD_CS@GOTPAGEOFF]
	ldr	w2, [x23]
	add	x1, sp, #12
	mov	x0, x20
	bl	_ef4_writeo
	mov	x0, x20
	bl	_falcon_gmii_wait
	mov	x25, x0
	cbz	w0, LBB0_3
; %bb.2:
	ldr	w0, [sp, #12]
	ldr	w1, [x21]
	ldr	w3, [x22]
	mov	w2, #0
	mov	w4, #1
	bl	_EF4_POPULATE_OWORD_2
	ldr	w2, [x23]
	add	x1, sp, #12
	mov	x0, x20
	bl	_ef4_writeo
	mov	w0, #10
	bl	_udelay
LBB0_3:
	mov	x0, x19
	bl	_mutex_unlock
	mov	x0, x25
	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
	add	sp, sp, #96
	ret
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh30, Lloh31
	.loh AdrpLdrGot	Lloh28, Lloh29
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_hw,4,2                         ; @hw
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"writing MDIO %d register %d.%d with 0x%04x\n"

	.comm	_FRF_AB_MD_PHY_ADR,4,2          ; @FRF_AB_MD_PHY_ADR
	.comm	_FR_AB_MD_PHY_ADR,4,2           ; @FR_AB_MD_PHY_ADR
	.comm	_FRF_AB_MD_PRT_ADR,4,2          ; @FRF_AB_MD_PRT_ADR
	.comm	_FRF_AB_MD_DEV_ADR,4,2          ; @FRF_AB_MD_DEV_ADR
	.comm	_FR_AB_MD_ID,4,2                ; @FR_AB_MD_ID
	.comm	_FRF_AB_MD_TXD,4,2              ; @FRF_AB_MD_TXD
	.comm	_FR_AB_MD_TXD,4,2               ; @FR_AB_MD_TXD
	.comm	_FRF_AB_MD_WRC,4,2              ; @FRF_AB_MD_WRC
	.comm	_FRF_AB_MD_GC,4,2               ; @FRF_AB_MD_GC
	.comm	_FR_AB_MD_CS,4,2                ; @FR_AB_MD_CS
	.no_dead_strip	_falcon_mdio_write
.subsections_via_symbols
