	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dmfe_process_mode
_dmfe_process_mode:                     ## @dmfe_process_mode
	.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	(%rdi), %edi
	movq	_CR6_FDM@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testb	$4, %dil
	jne	LBB0_1
## %bb.2:
	notl	%eax
	andl	4(%rbx), %eax
	jmp	LBB0_3
LBB0_1:
	orl	4(%rbx), %eax
LBB0_3:
	andl	$-262145, %eax                  ## imm = 0xFFFBFFFF
	andl	$16, %edi
	shll	$14, %edi
	orl	%eax, %edi
	movl	%edi, 4(%rbx)
	movl	20(%rbx), %esi
	callq	_update_cr6
	testb	$24, 8(%rbx)
	jne	LBB0_11
## %bb.4:
	movl	20(%rbx), %edi
	movl	12(%rbx), %ecx
	movl	16(%rbx), %esi
	movl	$6, %edx
	callq	_phy_read
	testb	$1, %al
	jne	LBB0_11
## %bb.5:
	movl	$-129, %eax
	addl	(%rbx), %eax
	xorl	%r14d, %r14d
	cmpl	$2, %eax
	ja	LBB0_7
## %bb.6:
	cltq
	leaq	l_switch.table.dmfe_process_mode(%rip), %rcx
	movl	(%rcx,%rax,4), %r14d
LBB0_7:
	movl	20(%rbx), %edi
	movl	12(%rbx), %r8d
	movl	16(%rbx), %esi
	xorl	%edx, %edx
	movl	%r14d, %ecx
	callq	_phy_write
	cmpq	$0, 24(%rbx)
	je	LBB0_10
## %bb.8:
	movl	12(%rbx), %eax
	movq	_PCI_DM9102_ID@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_10
## %bb.9:
	movl	$20, %edi
	callq	_mdelay
LBB0_10:
	movl	20(%rbx), %edi
	movl	12(%rbx), %r8d
	movl	16(%rbx), %esi
	xorl	%edx, %edx
	movl	%r14d, %ecx
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_phy_write                      ## TAILCALL
LBB0_11:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CR6_FDM,4,2                    ## @CR6_FDM
	.comm	_PCI_DM9102_ID,4,2              ## @PCI_DM9102_ID
	.no_dead_strip	_dmfe_process_mode
	.section	__TEXT,__const
	.p2align	2                               ## @switch.table.dmfe_process_mode
l_switch.table.dmfe_process_mode:
	.long	256                             ## 0x100
	.long	8192                            ## 0x2000
	.long	8448                            ## 0x2100

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dmfe_process_mode
_dmfe_process_mode:                     ; @dmfe_process_mode
	.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]
Lloh0:
	adrp	x9, _CR6_FDM@GOTPAGE
Lloh1:
	ldr	x9, [x9, _CR6_FDM@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tbnz	w8, #2, LBB0_2
; %bb.1:
	ldr	w10, [x19, #4]
	bic	w0, w10, w9
	b	LBB0_3
LBB0_2:
	ldr	w10, [x19, #4]
	orr	w0, w10, w9
LBB0_3:
	lsr	w8, w8, #4
	bfi	w0, w8, #18, #1
	str	w0, [x19, #4]
	ldr	w1, [x19, #20]
	bl	_update_cr6
	ldrb	w8, [x19, #8]
	tst	w8, #0x18
	b.ne	LBB0_7
; %bb.4:
	ldp	w1, w0, [x19, #16]
	ldr	w3, [x19, #12]
	mov	w2, #6
	bl	_phy_read
	tbnz	w0, #0, LBB0_7
; %bb.5:
	ldr	w8, [x19]
	sub	w8, w8, #129
	cmp	w8, #2
	b.hi	LBB0_8
; %bb.6:
Lloh3:
	adrp	x9, l_switch.table.dmfe_process_mode@PAGE
Lloh4:
	add	x9, x9, l_switch.table.dmfe_process_mode@PAGEOFF
	ldr	w20, [x9, w8, sxtw #2]
	b	LBB0_9
LBB0_7:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_8:
	mov	w20, #0
LBB0_9:
	ldp	w1, w0, [x19, #16]
	ldr	w4, [x19, #12]
	mov	w2, #0
	mov	x3, x20
	bl	_phy_write
	ldr	x8, [x19, #24]
	cbz	x8, LBB0_12
; %bb.10:
	ldr	w8, [x19, #12]
Lloh5:
	adrp	x9, _PCI_DM9102_ID@GOTPAGE
Lloh6:
	ldr	x9, [x9, _PCI_DM9102_ID@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_12
; %bb.11:
	mov	w0, #20
	bl	_mdelay
LBB0_12:
	ldp	w1, w0, [x19, #16]
	ldr	w4, [x19, #12]
	mov	w2, #0
	mov	x3, x20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_phy_write
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_CR6_FDM,4,2                    ; @CR6_FDM
	.comm	_PCI_DM9102_ID,4,2              ; @PCI_DM9102_ID
	.no_dead_strip	_dmfe_process_mode
	.section	__TEXT,__const
	.p2align	2                               ; @switch.table.dmfe_process_mode
l_switch.table.dmfe_process_mode:
	.long	256                             ; 0x100
	.long	8192                            ; 0x2000
	.long	8448                            ; 0x2100

.subsections_via_symbols
