	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function e82545_read_mdi
_e82545_read_mdi:                       ## @e82545_read_mdi
	.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
                                        ## kill: def $esi killed $esi def $rsi
	xorl	%ebx, %ebx
	leal	-128(%rsi), %eax
	cmpl	$5, %eax
	ja	LBB0_3
## %bb.1:
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_2:
	movq	_MII_SR_LINK_STATUS@GOTPCREL(%rip), %rax
	movq	_MII_SR_AUTONEG_CAPS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
	orl	(%rax), %ebx
	movq	_MII_SR_AUTONEG_COMPLETE@GOTPCREL(%rip), %rax
	jmp	LBB0_8
LBB0_3:
	leaq	L_.str(%rip), %rdi
                                        ## kill: def $esi killed $esi killed $rsi
	callq	_DPRINTF
	jmp	LBB0_9
LBB0_4:
	movq	_M88E1011_I_PHY_ID@GOTPCREL(%rip), %rax
	movzwl	(%rax), %eax
	movq	_E82545_REVISION_4@GOTPCREL(%rip), %rcx
	movzwl	(%rcx), %ebx
	orl	%eax, %ebx
	jmp	LBB0_9
LBB0_5:
	movq	_M88E1011_I_PHY_ID@GOTPCREL(%rip), %rax
	movzwl	2(%rax), %ebx
	jmp	LBB0_9
LBB0_6:
	movq	_NWAY_AR_SELECTOR_FIELD@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	jmp	LBB0_9
LBB0_7:
	movq	_SR_1000T_LP_FD_CAPS@GOTPCREL(%rip), %rax
	movq	_SR_1000T_REMOTE_RX_STATUS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
	orl	(%rax), %ebx
	movq	_SR_1000T_LOCAL_RX_STATUS@GOTPCREL(%rip), %rax
LBB0_8:
	orl	(%rax), %ebx
LBB0_9:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_2, LBB0_2-LJTI0_0
.set L0_0_set_9, LBB0_9-LJTI0_0
.set L0_0_set_4, LBB0_4-LJTI0_0
.set L0_0_set_5, LBB0_5-LJTI0_0
.set L0_0_set_6, LBB0_6-LJTI0_0
.set L0_0_set_7, LBB0_7-LJTI0_0
LJTI0_0:
	.long	L0_0_set_2
	.long	L0_0_set_9
	.long	L0_0_set_4
	.long	L0_0_set_5
	.long	L0_0_set_6
	.long	L0_0_set_7
	.end_data_region
                                        ## -- End function
	.comm	_MII_SR_LINK_STATUS,4,2         ## @MII_SR_LINK_STATUS
	.comm	_MII_SR_AUTONEG_CAPS,4,2        ## @MII_SR_AUTONEG_CAPS
	.comm	_MII_SR_AUTONEG_COMPLETE,4,2    ## @MII_SR_AUTONEG_COMPLETE
	.comm	_NWAY_AR_SELECTOR_FIELD,4,2     ## @NWAY_AR_SELECTOR_FIELD
	.comm	_SR_1000T_LP_FD_CAPS,4,2        ## @SR_1000T_LP_FD_CAPS
	.comm	_SR_1000T_REMOTE_RX_STATUS,4,2  ## @SR_1000T_REMOTE_RX_STATUS
	.comm	_SR_1000T_LOCAL_RX_STATUS,4,2   ## @SR_1000T_LOCAL_RX_STATUS
	.comm	_M88E1011_I_PHY_ID,4,2          ## @M88E1011_I_PHY_ID
	.comm	_E82545_REVISION_4,4,2          ## @E82545_REVISION_4
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Unknown mdi read reg:0x%x phy:0x%x\r\n"

	.no_dead_strip	_e82545_read_mdi
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function e82545_read_mdi
_e82545_read_mdi:                       ; @e82545_read_mdi
	.cfi_startproc
; %bb.0:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	sub	w8, w1, #128
	cmp	w8, #5
	b.hi	LBB0_3
; %bb.1:
	mov	w0, #0
Lloh0:
	adrp	x9, lJTI0_0@PAGE
Lloh1:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_2
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_2:
Lloh2:
	adrp	x8, _MII_SR_LINK_STATUS@GOTPAGE
Lloh3:
	ldr	x8, [x8, _MII_SR_LINK_STATUS@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
Lloh5:
	adrp	x9, _MII_SR_AUTONEG_CAPS@GOTPAGE
Lloh6:
	ldr	x9, [x9, _MII_SR_AUTONEG_CAPS@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh8:
	adrp	x9, _MII_SR_AUTONEG_COMPLETE@GOTPAGE
Lloh9:
	ldr	x9, [x9, _MII_SR_AUTONEG_COMPLETE@GOTPAGEOFF]
	b	LBB0_9
LBB0_3:
Lloh10:
	adrp	x0, l_.str@PAGE
Lloh11:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DPRINTF
	mov	w0, #0
LBB0_4:
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
LBB0_5:
Lloh12:
	adrp	x8, _M88E1011_I_PHY_ID@GOTPAGE
Lloh13:
	ldr	x8, [x8, _M88E1011_I_PHY_ID@GOTPAGEOFF]
	ldrh	w8, [x8]
Lloh14:
	adrp	x9, _E82545_REVISION_4@GOTPAGE
Lloh15:
	ldr	x9, [x9, _E82545_REVISION_4@GOTPAGEOFF]
	ldrh	w9, [x9]
	orr	w0, w9, w8
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
LBB0_6:
Lloh16:
	adrp	x8, _M88E1011_I_PHY_ID@GOTPAGE
Lloh17:
	ldr	x8, [x8, _M88E1011_I_PHY_ID@GOTPAGEOFF]
	ldrh	w0, [x8, #2]
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
LBB0_7:
Lloh18:
	adrp	x8, _NWAY_AR_SELECTOR_FIELD@GOTPAGE
Lloh19:
	ldr	x8, [x8, _NWAY_AR_SELECTOR_FIELD@GOTPAGEOFF]
Lloh20:
	ldr	w0, [x8]
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
LBB0_8:
Lloh21:
	adrp	x8, _SR_1000T_LP_FD_CAPS@GOTPAGE
Lloh22:
	ldr	x8, [x8, _SR_1000T_LP_FD_CAPS@GOTPAGEOFF]
Lloh23:
	ldr	w8, [x8]
Lloh24:
	adrp	x9, _SR_1000T_REMOTE_RX_STATUS@GOTPAGE
Lloh25:
	ldr	x9, [x9, _SR_1000T_REMOTE_RX_STATUS@GOTPAGEOFF]
Lloh26:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh27:
	adrp	x9, _SR_1000T_LOCAL_RX_STATUS@GOTPAGE
Lloh28:
	ldr	x9, [x9, _SR_1000T_LOCAL_RX_STATUS@GOTPAGEOFF]
LBB0_9:
	ldr	w9, [x9]
	orr	w0, w8, w9
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_4-LBB0_2)>>2
	.byte	(LBB0_5-LBB0_2)>>2
	.byte	(LBB0_6-LBB0_2)>>2
	.byte	(LBB0_7-LBB0_2)>>2
	.byte	(LBB0_8-LBB0_2)>>2
                                        ; -- End function
	.comm	_MII_SR_LINK_STATUS,4,2         ; @MII_SR_LINK_STATUS
	.comm	_MII_SR_AUTONEG_CAPS,4,2        ; @MII_SR_AUTONEG_CAPS
	.comm	_MII_SR_AUTONEG_COMPLETE,4,2    ; @MII_SR_AUTONEG_COMPLETE
	.comm	_NWAY_AR_SELECTOR_FIELD,4,2     ; @NWAY_AR_SELECTOR_FIELD
	.comm	_SR_1000T_LP_FD_CAPS,4,2        ; @SR_1000T_LP_FD_CAPS
	.comm	_SR_1000T_REMOTE_RX_STATUS,4,2  ; @SR_1000T_REMOTE_RX_STATUS
	.comm	_SR_1000T_LOCAL_RX_STATUS,4,2   ; @SR_1000T_LOCAL_RX_STATUS
	.comm	_M88E1011_I_PHY_ID,4,2          ; @M88E1011_I_PHY_ID
	.comm	_E82545_REVISION_4,4,2          ; @E82545_REVISION_4
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Unknown mdi read reg:0x%x phy:0x%x\r\n"

	.no_dead_strip	_e82545_read_mdi
.subsections_via_symbols
