	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dmfe_sense_speed
_dmfe_sense_speed:                      ## @dmfe_sense_speed
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	movl	$-262145, %edi                  ## imm = 0xFFFBFFFF
	andl	(%rbx), %edi
	movl	28(%rbx), %esi
	callq	_update_cr6
	movl	28(%rbx), %edi
	movl	24(%rbx), %esi
	movq	8(%rbx), %rcx
	movl	$1, %r14d
	movl	$1, %edx
	callq	_phy_read
	movl	28(%rbx), %edi
	movl	24(%rbx), %esi
	movq	8(%rbx), %rcx
	movl	$1, %edx
	callq	_phy_read
	movl	%eax, %ecx
	notl	%ecx
	testb	$36, %cl
	jne	LBB0_9
## %bb.1:
	movq	8(%rbx), %rcx
	movq	_PCI_DM9132_ID@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rcx
	movl	28(%rbx), %edi
	movl	24(%rbx), %esi
	movl	$7, %eax
	movl	$17, %edx
	cmovel	%eax, %edx
	callq	_phy_read
                                        ## kill: def $eax killed $eax def $rax
	andl	$61440, %eax                    ## imm = 0xF000
	addl	$-4096, %eax                    ## imm = 0xF000
	shrl	$12, %eax
	cmpl	$7, %eax
	ja	LBB0_8
## %bb.2:
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_3:
	movq	_DMFE_10MHF@GOTPCREL(%rip), %rax
	jmp	LBB0_4
LBB0_9:
	movq	_DMFE_10MHF@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	%rcx, 16(%rbx)
	leaq	L_.str(%rip), %rsi
	xorl	%edi, %edi
	movl	%eax, %edx
	callq	_DMFE_DBUG
	jmp	LBB0_10
LBB0_5:
	movq	_DMFE_10MFD@GOTPCREL(%rip), %rax
	jmp	LBB0_4
LBB0_8:
	movq	_DMFE_10MHF@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 16(%rbx)
	jmp	LBB0_10
LBB0_6:
	movq	_DMFE_100MHF@GOTPCREL(%rip), %rax
	jmp	LBB0_4
LBB0_7:
	movq	_DMFE_100MFD@GOTPCREL(%rip), %rax
LBB0_4:
	movq	(%rax), %rax
	movq	%rax, 16(%rbx)
	xorl	%r14d, %r14d
LBB0_10:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_3, LBB0_3-LJTI0_0
.set L0_0_set_5, LBB0_5-LJTI0_0
.set L0_0_set_8, LBB0_8-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_3
	.long	L0_0_set_5
	.long	L0_0_set_8
	.long	L0_0_set_6
	.long	L0_0_set_8
	.long	L0_0_set_8
	.long	L0_0_set_8
	.long	L0_0_set_7
	.end_data_region
                                        ## -- End function
	.comm	_PCI_DM9132_ID,8,3              ## @PCI_DM9132_ID
	.comm	_DMFE_10MHF,8,3                 ## @DMFE_10MHF
	.comm	_DMFE_10MFD,8,3                 ## @DMFE_10MFD
	.comm	_DMFE_100MHF,8,3                ## @DMFE_100MHF
	.comm	_DMFE_100MFD,8,3                ## @DMFE_100MFD
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Link Failed :"

	.no_dead_strip	_dmfe_sense_speed
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dmfe_sense_speed
_dmfe_sense_speed:                      ; @dmfe_sense_speed
	.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	w8, [x0]
	and	w0, w8, #0xfffbffff
	ldr	w1, [x19, #28]
	bl	_update_cr6
	ldp	w1, w0, [x19, #24]
	ldr	x3, [x19, #8]
	mov	w2, #1
	bl	_phy_read
	ldp	w1, w0, [x19, #24]
	ldr	x3, [x19, #8]
	mov	w2, #1
	bl	_phy_read
	mov	w8, #36
	bics	wzr, w8, w0
	b.ne	LBB0_4
; %bb.1:
	ldr	x3, [x19, #8]
Lloh0:
	adrp	x8, _PCI_DM9132_ID@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PCI_DM9132_ID@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	ldp	w1, w0, [x19, #24]
	cmp	x3, x8
	mov	w8, #17
	mov	w9, #7
	csel	w2, w9, w8, eq
	bl	_phy_read
	and	w8, w0, #0xf000
	sub	w8, w8, #1, lsl #12             ; =4096
	lsr	w8, w8, #12
	cmp	w8, #7
	b.hi	LBB0_7
; %bb.2:
Lloh3:
	adrp	x9, lJTI0_0@PAGE
Lloh4:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_3
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_3:
	mov	w0, #0
Lloh5:
	adrp	x8, _DMFE_10MHF@GOTPAGE
Lloh6:
	ldr	x8, [x8, _DMFE_10MHF@GOTPAGEOFF]
	b	LBB0_10
LBB0_4:
	mov	x2, x0
Lloh7:
	adrp	x8, _DMFE_10MHF@GOTPAGE
Lloh8:
	ldr	x8, [x8, _DMFE_10MHF@GOTPAGEOFF]
Lloh9:
	ldr	x8, [x8]
	str	x8, [x19, #16]
Lloh10:
	adrp	x1, l_.str@PAGE
Lloh11:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #0
	bl	_DMFE_DBUG
LBB0_5:
	mov	w0, #1
	b	LBB0_11
LBB0_6:
	mov	w0, #0
Lloh12:
	adrp	x8, _DMFE_10MFD@GOTPAGE
Lloh13:
	ldr	x8, [x8, _DMFE_10MFD@GOTPAGEOFF]
	b	LBB0_10
LBB0_7:
Lloh14:
	adrp	x8, _DMFE_10MHF@GOTPAGE
Lloh15:
	ldr	x8, [x8, _DMFE_10MHF@GOTPAGEOFF]
Lloh16:
	ldr	x8, [x8]
	str	x8, [x19, #16]
	b	LBB0_5
LBB0_8:
	mov	w0, #0
Lloh17:
	adrp	x8, _DMFE_100MHF@GOTPAGE
Lloh18:
	ldr	x8, [x8, _DMFE_100MHF@GOTPAGEOFF]
	b	LBB0_10
LBB0_9:
	mov	w0, #0
Lloh19:
	adrp	x8, _DMFE_100MFD@GOTPAGE
Lloh20:
	ldr	x8, [x8, _DMFE_100MFD@GOTPAGEOFF]
LBB0_10:
	ldr	x8, [x8]
	str	x8, [x19, #16]
LBB0_11:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh19, Lloh20
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_3-LBB0_3)>>2
	.byte	(LBB0_6-LBB0_3)>>2
	.byte	(LBB0_7-LBB0_3)>>2
	.byte	(LBB0_8-LBB0_3)>>2
	.byte	(LBB0_7-LBB0_3)>>2
	.byte	(LBB0_7-LBB0_3)>>2
	.byte	(LBB0_7-LBB0_3)>>2
	.byte	(LBB0_9-LBB0_3)>>2
                                        ; -- End function
	.comm	_PCI_DM9132_ID,8,3              ; @PCI_DM9132_ID
	.comm	_DMFE_10MHF,8,3                 ; @DMFE_10MHF
	.comm	_DMFE_10MFD,8,3                 ; @DMFE_10MFD
	.comm	_DMFE_100MHF,8,3                ; @DMFE_100MHF
	.comm	_DMFE_100MFD,8,3                ; @DMFE_100MFD
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Link Failed :"

	.no_dead_strip	_dmfe_sense_speed
.subsections_via_symbols
