	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function falcon_mdio_read
_falcon_mdio_read:                      ## @falcon_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
                                        ## kill: def $ecx killed $ecx def $rcx
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	movl	%edx, %r15d
	movl	%esi, %r12d
	callq	_netdev_priv
	movq	%rax, %rbx
	movq	8(%rax), %r13
	movq	%r13, %rdi
	callq	_mutex_lock
	movq	%rbx, %rdi
	callq	_falcon_gmii_wait
	movl	%eax, %r14d
	testl	%eax, %eax
	jne	LBB0_5
## %bb.1:
	movq	_FRF_AB_MD_PHY_ADR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_EF4_POPULATE_OWORD_1
	movq	_FR_AB_MD_PHY_ADR@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-44(%rbp), %r14
	movq	%rbx, %rdi
	movq	%r14, %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	%r12d, %edx
	movl	%r15d, %r8d
	callq	_EF4_POPULATE_OWORD_2
	movq	_FR_AB_MD_ID@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_ef4_writeo
	movl	-44(%rbp), %edi
	movq	_FRF_AB_MD_RDC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_FRF_AB_MD_GC@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	$1, %edx
	xorl	%r8d, %r8d
	callq	_EF4_POPULATE_OWORD_2
	movq	_FR_AB_MD_CS@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_ef4_writeo
	movq	%rbx, %rdi
	callq	_falcon_gmii_wait
	testl	%eax, %eax
	je	LBB0_2
## %bb.3:
	movl	%eax, %r14d
	movl	-44(%rbp), %edi
	movq	_FRF_AB_MD_RIC@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
	movq	_FR_AB_MD_CS@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-44(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_ef4_writeo
	movq	_hw@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%rbx), %edx
	leaq	L_.str.1(%rip), %rcx
	movq	%rbx, %rdi
	movl	%r12d, %r8d
	movl	%r15d, %r9d
	pushq	%r14
	pushq	-56(%rbp)                       ## 8-byte Folded Reload
	callq	_netif_dbg
	jmp	LBB0_4
LBB0_2:
	movq	_FR_AB_MD_RXD@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-44(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_ef4_reado
	movl	-44(%rbp), %edi
	movq	_FRF_AB_MD_RXD@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_EF4_OWORD_FIELD
	movl	%eax, %r14d
	movq	_hw@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%rbx), %edx
	leaq	L_.str(%rip), %rcx
	movq	%rbx, %rdi
	movl	%r12d, %r8d
	movl	%r15d, %r9d
	pushq	%r14
	pushq	-56(%rbp)                       ## 8-byte Folded Reload
	callq	_netif_vdbg
LBB0_4:
	addq	$16, %rsp
LBB0_5:
	movq	%r13, %rdi
	callq	_mutex_unlock
	movl	%r14d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.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_RDC,4,2              ## @FRF_AB_MD_RDC
	.comm	_FRF_AB_MD_GC,4,2               ## @FRF_AB_MD_GC
	.comm	_FR_AB_MD_CS,4,2                ## @FR_AB_MD_CS
	.comm	_FR_AB_MD_RXD,4,2               ## @FR_AB_MD_RXD
	.comm	_FRF_AB_MD_RXD,4,2              ## @FRF_AB_MD_RXD
	.comm	_hw,4,2                         ## @hw
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"read from MDIO %d register %d.%d, got %04x\n"

	.comm	_FRF_AB_MD_RIC,4,2              ## @FRF_AB_MD_RIC
L_.str.1:                               ## @.str.1
	.asciz	"read from MDIO %d register %d.%d, got error %d\n"

	.no_dead_strip	_falcon_mdio_read
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function falcon_mdio_read
_falcon_mdio_read:                      ; @falcon_mdio_read
	.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	x20, x3
	mov	x21, x2
	mov	x22, x1
	bl	_netdev_priv
	mov	x23, x0
	ldr	x19, [x0, #8]
	mov	x0, x19
	bl	_mutex_lock
	mov	x0, x23
	bl	_falcon_gmii_wait
	mov	x24, x0
	cbnz	w0, LBB0_4
; %bb.1:
Lloh0:
	adrp	x8, _FRF_AB_MD_PHY_ADR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _FRF_AB_MD_PHY_ADR@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x2, x20
	bl	_EF4_POPULATE_OWORD_1
Lloh3:
	adrp	x8, _FR_AB_MD_PHY_ADR@GOTPAGE
Lloh4:
	ldr	x8, [x8, _FR_AB_MD_PHY_ADR@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	add	x1, sp, #12
	mov	x0, x23
	bl	_ef4_writeo
	ldr	w0, [sp, #12]
Lloh6:
	adrp	x8, _FRF_AB_MD_PRT_ADR@GOTPAGE
Lloh7:
	ldr	x8, [x8, _FRF_AB_MD_PRT_ADR@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
Lloh9:
	adrp	x8, _FRF_AB_MD_DEV_ADR@GOTPAGE
Lloh10:
	ldr	x8, [x8, _FRF_AB_MD_DEV_ADR@GOTPAGEOFF]
Lloh11:
	ldr	w3, [x8]
	mov	x2, x22
	mov	x4, x21
	bl	_EF4_POPULATE_OWORD_2
Lloh12:
	adrp	x8, _FR_AB_MD_ID@GOTPAGE
Lloh13:
	ldr	x8, [x8, _FR_AB_MD_ID@GOTPAGEOFF]
Lloh14:
	ldr	w2, [x8]
	add	x1, sp, #12
	mov	x0, x23
	bl	_ef4_writeo
	ldr	w0, [sp, #12]
Lloh15:
	adrp	x8, _FRF_AB_MD_RDC@GOTPAGE
Lloh16:
	ldr	x8, [x8, _FRF_AB_MD_RDC@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
Lloh18:
	adrp	x25, _FRF_AB_MD_GC@GOTPAGE
Lloh19:
	ldr	x25, [x25, _FRF_AB_MD_GC@GOTPAGEOFF]
	ldr	w3, [x25]
	mov	w2, #1
	mov	w4, #0
	bl	_EF4_POPULATE_OWORD_2
Lloh20:
	adrp	x26, _FR_AB_MD_CS@GOTPAGE
Lloh21:
	ldr	x26, [x26, _FR_AB_MD_CS@GOTPAGEOFF]
	ldr	w2, [x26]
	add	x1, sp, #12
	mov	x0, x23
	bl	_ef4_writeo
	mov	x0, x23
	bl	_falcon_gmii_wait
	cbz	w0, LBB0_3
; %bb.2:
	mov	x24, x0
	ldr	w0, [sp, #12]
Lloh22:
	adrp	x8, _FRF_AB_MD_RIC@GOTPAGE
Lloh23:
	ldr	x8, [x8, _FRF_AB_MD_RIC@GOTPAGEOFF]
Lloh24:
	ldr	w1, [x8]
	ldr	w3, [x25]
	mov	w2, #0
	mov	w4, #1
	bl	_EF4_POPULATE_OWORD_2
	ldr	w2, [x26]
	add	x1, sp, #12
	mov	x0, x23
	bl	_ef4_writeo
Lloh25:
	adrp	x8, _hw@GOTPAGE
Lloh26:
	ldr	x8, [x8, _hw@GOTPAGEOFF]
Lloh27:
	ldr	w1, [x8]
	ldr	w2, [x23]
Lloh28:
	adrp	x3, l_.str.1@PAGE
Lloh29:
	add	x3, x3, l_.str.1@PAGEOFF
	mov	x0, x23
	mov	x4, x22
	mov	x5, x21
	mov	x6, x20
	mov	x7, x24
	bl	_netif_dbg
	b	LBB0_4
LBB0_3:
Lloh30:
	adrp	x8, _FR_AB_MD_RXD@GOTPAGE
Lloh31:
	ldr	x8, [x8, _FR_AB_MD_RXD@GOTPAGEOFF]
Lloh32:
	ldr	w2, [x8]
	add	x1, sp, #12
	mov	x0, x23
	bl	_ef4_reado
	ldr	w0, [sp, #12]
Lloh33:
	adrp	x8, _FRF_AB_MD_RXD@GOTPAGE
Lloh34:
	ldr	x8, [x8, _FRF_AB_MD_RXD@GOTPAGEOFF]
Lloh35:
	ldr	w1, [x8]
	bl	_EF4_OWORD_FIELD
	mov	x24, x0
Lloh36:
	adrp	x8, _hw@GOTPAGE
Lloh37:
	ldr	x8, [x8, _hw@GOTPAGEOFF]
Lloh38:
	ldr	w1, [x8]
	ldr	w2, [x23]
Lloh39:
	adrp	x3, l_.str@PAGE
Lloh40:
	add	x3, x3, l_.str@PAGEOFF
	mov	x0, x23
	mov	x4, x22
	mov	x5, x21
	mov	x6, x20
	mov	x7, x24
	bl	_netif_vdbg
LBB0_4:
	mov	x0, x19
	bl	_mutex_unlock
	mov	x0, x24
	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 AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpAdd	Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.cfi_endproc
                                        ; -- End function
	.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_RDC,4,2              ; @FRF_AB_MD_RDC
	.comm	_FRF_AB_MD_GC,4,2               ; @FRF_AB_MD_GC
	.comm	_FR_AB_MD_CS,4,2                ; @FR_AB_MD_CS
	.comm	_FR_AB_MD_RXD,4,2               ; @FR_AB_MD_RXD
	.comm	_FRF_AB_MD_RXD,4,2              ; @FRF_AB_MD_RXD
	.comm	_hw,4,2                         ; @hw
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"read from MDIO %d register %d.%d, got %04x\n"

	.comm	_FRF_AB_MD_RIC,4,2              ; @FRF_AB_MD_RIC
l_.str.1:                               ; @.str.1
	.asciz	"read from MDIO %d register %d.%d, got error %d\n"

	.no_dead_strip	_falcon_mdio_read
.subsections_via_symbols
