	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_genphy_c45_read_pma            ## -- Begin function genphy_c45_read_pma
	.p2align	4, 0x90
_genphy_c45_read_pma:                   ## @genphy_c45_read_pma
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	movl	8(%rdi), %edi
	callq	_linkmode_zero
	movq	_MDIO_MMD_PMAPMD@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_MDIO_CTRL1@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	callq	_phy_read_mmd
	testl	%eax, %eax
	js	LBB0_12
## %bb.1:
	movq	_MDIO_CTRL1_SPEEDSEL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	andl	%eax, %ecx
	leal	-128(%rcx), %eax
	cmpl	$4, %eax
	ja	LBB0_2
## %bb.4:
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_6:
	movq	_SPEED_1000@GOTPCREL(%rip), %rax
	jmp	LBB0_11
LBB0_2:
	testl	%ecx, %ecx
	jne	LBB0_10
## %bb.3:
	movq	_SPEED_10@GOTPCREL(%rip), %rax
	jmp	LBB0_11
LBB0_5:
	movq	_SPEED_100@GOTPCREL(%rip), %rax
	jmp	LBB0_11
LBB0_8:
	movq	_SPEED_5000@GOTPCREL(%rip), %rax
	jmp	LBB0_11
LBB0_7:
	movq	_SPEED_2500@GOTPCREL(%rip), %rax
	jmp	LBB0_11
LBB0_9:
	movq	_SPEED_10000@GOTPCREL(%rip), %rax
	jmp	LBB0_11
LBB0_10:
	movq	_SPEED_UNKNOWN@GOTPCREL(%rip), %rax
LBB0_11:
	movl	(%rax), %eax
	movl	%eax, 4(%rbx)
	movq	_DUPLEX_FULL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%rbx)
	xorl	%eax, %eax
LBB0_12:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_6, LBB0_6-LJTI0_0
.set L0_0_set_5, LBB0_5-LJTI0_0
.set L0_0_set_8, LBB0_8-LJTI0_0
.set L0_0_set_7, LBB0_7-LJTI0_0
.set L0_0_set_9, LBB0_9-LJTI0_0
LJTI0_0:
	.long	L0_0_set_6
	.long	L0_0_set_5
	.long	L0_0_set_8
	.long	L0_0_set_7
	.long	L0_0_set_9
	.end_data_region
                                        ## -- End function
	.comm	_MDIO_MMD_PMAPMD,4,2            ## @MDIO_MMD_PMAPMD
	.comm	_MDIO_CTRL1,4,2                 ## @MDIO_CTRL1
	.comm	_MDIO_CTRL1_SPEEDSEL,4,2        ## @MDIO_CTRL1_SPEEDSEL
	.comm	_SPEED_10,4,2                   ## @SPEED_10
	.comm	_SPEED_100,4,2                  ## @SPEED_100
	.comm	_SPEED_1000,4,2                 ## @SPEED_1000
	.comm	_SPEED_2500,4,2                 ## @SPEED_2500
	.comm	_SPEED_5000,4,2                 ## @SPEED_5000
	.comm	_SPEED_10000,4,2                ## @SPEED_10000
	.comm	_SPEED_UNKNOWN,4,2              ## @SPEED_UNKNOWN
	.comm	_DUPLEX_FULL,4,2                ## @DUPLEX_FULL
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_genphy_c45_read_pma            ; -- Begin function genphy_c45_read_pma
	.p2align	2
_genphy_c45_read_pma:                   ; @genphy_c45_read_pma
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	ldr	w0, [x0, #8]
	bl	_linkmode_zero
Lloh0:
	adrp	x8, _MDIO_MMD_PMAPMD@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MDIO_MMD_PMAPMD@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x8, _MDIO_CTRL1@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MDIO_CTRL1@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_phy_read_mmd
	tbnz	w0, #31, LBB0_10
; %bb.1:
Lloh6:
	adrp	x8, _MDIO_CTRL1_SPEEDSEL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _MDIO_CTRL1_SPEEDSEL@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	and	w8, w8, w0
	sub	w9, w8, #128
	cmp	w9, #4
	b.hi	LBB0_4
; %bb.2:
Lloh9:
	adrp	x8, lJTI0_0@PAGE
Lloh10:
	add	x8, x8, lJTI0_0@PAGEOFF
	adr	x10, LBB0_3
	ldrb	w11, [x8, x9]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_3:
Lloh11:
	adrp	x8, _SPEED_1000@GOTPAGE
Lloh12:
	ldr	x8, [x8, _SPEED_1000@GOTPAGEOFF]
	b	LBB0_9
LBB0_4:
Lloh13:
	adrp	x9, _SPEED_10@GOTPAGE
Lloh14:
	ldr	x9, [x9, _SPEED_10@GOTPAGEOFF]
Lloh15:
	adrp	x10, _SPEED_UNKNOWN@GOTPAGE
Lloh16:
	ldr	x10, [x10, _SPEED_UNKNOWN@GOTPAGEOFF]
	cmp	w8, #0
	csel	x8, x9, x10, eq
	b	LBB0_9
LBB0_5:
Lloh17:
	adrp	x8, _SPEED_100@GOTPAGE
Lloh18:
	ldr	x8, [x8, _SPEED_100@GOTPAGEOFF]
	b	LBB0_9
LBB0_6:
Lloh19:
	adrp	x8, _SPEED_5000@GOTPAGE
Lloh20:
	ldr	x8, [x8, _SPEED_5000@GOTPAGEOFF]
	b	LBB0_9
LBB0_7:
Lloh21:
	adrp	x8, _SPEED_2500@GOTPAGE
Lloh22:
	ldr	x8, [x8, _SPEED_2500@GOTPAGEOFF]
	b	LBB0_9
LBB0_8:
Lloh23:
	adrp	x8, _SPEED_10000@GOTPAGE
Lloh24:
	ldr	x8, [x8, _SPEED_10000@GOTPAGEOFF]
LBB0_9:
	mov	w0, #0
	ldr	w8, [x8]
Lloh25:
	adrp	x9, _DUPLEX_FULL@GOTPAGE
Lloh26:
	ldr	x9, [x9, _DUPLEX_FULL@GOTPAGEOFF]
Lloh27:
	ldr	w9, [x9]
	stp	w9, w8, [x19]
LBB0_10:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_3-LBB0_3)>>2
	.byte	(LBB0_5-LBB0_3)>>2
	.byte	(LBB0_6-LBB0_3)>>2
	.byte	(LBB0_7-LBB0_3)>>2
	.byte	(LBB0_8-LBB0_3)>>2
                                        ; -- End function
	.comm	_MDIO_MMD_PMAPMD,4,2            ; @MDIO_MMD_PMAPMD
	.comm	_MDIO_CTRL1,4,2                 ; @MDIO_CTRL1
	.comm	_MDIO_CTRL1_SPEEDSEL,4,2        ; @MDIO_CTRL1_SPEEDSEL
	.comm	_SPEED_10,4,2                   ; @SPEED_10
	.comm	_SPEED_100,4,2                  ; @SPEED_100
	.comm	_SPEED_1000,4,2                 ; @SPEED_1000
	.comm	_SPEED_2500,4,2                 ; @SPEED_2500
	.comm	_SPEED_5000,4,2                 ; @SPEED_5000
	.comm	_SPEED_10000,4,2                ; @SPEED_10000
	.comm	_SPEED_UNKNOWN,4,2              ; @SPEED_UNKNOWN
	.comm	_DUPLEX_FULL,4,2                ; @DUPLEX_FULL
.subsections_via_symbols
