	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dmfe_set_phyxcer
_dmfe_set_phyxcer:                      ## @dmfe_set_phyxcer
	.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	%edi, (%rbx)
	movl	20(%rbx), %esi
	callq	_update_cr6
	movl	12(%rbx), %ecx
	movq	_PCI_DM9009_ID@GOTPCREL(%rip), %r14
	cmpl	(%r14), %ecx
	jne	LBB0_2
## %bb.1:
	movl	16(%rbx), %esi
	movl	20(%rbx), %edi
	movl	$18, %edx
	callq	_phy_read
	andl	$-4097, %eax                    ## imm = 0xEFFF
	movl	20(%rbx), %edi
	movl	12(%rbx), %r8d
	movl	16(%rbx), %esi
	movl	$18, %edx
	movl	%eax, %ecx
	callq	_phy_write
	movl	12(%rbx), %ecx
LBB0_2:
	movl	16(%rbx), %esi
	movl	20(%rbx), %edi
	movl	$4, %edx
	callq	_phy_read
	andl	$-481, %eax                     ## imm = 0xFE1F
	movl	4(%rbx), %edx
	movq	_DMFE_AUTO@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	testl	%edx, %esi
	je	LBB0_4
## %bb.3:
	orl	8(%rbx), %eax
	movl	%eax, %ecx
	testl	$480, %ecx                      ## imm = 0x1E0
	jne	LBB0_13
LBB0_12:
	orl	8(%rbx), %ecx
	orl	%edx, %esi
	movl	%esi, 4(%rbx)
LBB0_13:
	movl	20(%rbx), %edi
	movl	12(%rbx), %r8d
	movl	16(%rbx), %esi
	movl	$4, %edx
	callq	_phy_write
	cmpq	$0, 24(%rbx)
	je	LBB0_17
## %bb.14:
	movl	12(%rbx), %r8d
	movq	_PCI_DM9102_ID@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r8d
	jne	LBB0_16
## %bb.15:
	movl	16(%rbx), %esi
	movl	20(%rbx), %edi
	xorl	%edx, %edx
	movl	$6144, %ecx                     ## imm = 0x1800
	callq	_phy_write
	cmpq	$0, 24(%rbx)
	je	LBB0_17
LBB0_16:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_17:
	movl	20(%rbx), %edi
	movl	12(%rbx), %r8d
	movl	16(%rbx), %esi
	xorl	%edx, %edx
	movl	$4608, %ecx                     ## imm = 0x1200
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_phy_write                      ## TAILCALL
LBB0_4:
	leal	-128(%rdx), %ecx
	cmpl	$3, %ecx
	ja	LBB0_10
## %bb.5:
	leaq	LJTI0_0(%rip), %rdi
	movslq	(%rdi,%rcx,4), %rcx
	addq	%rdi, %rcx
	jmpq	*%rcx
LBB0_6:
	orl	$32, %eax
	jmp	LBB0_10
LBB0_7:
	orl	$64, %eax
	jmp	LBB0_10
LBB0_8:
	orl	$128, %eax
	jmp	LBB0_10
LBB0_9:
	orl	$256, %eax                      ## imm = 0x100
LBB0_10:
	movl	12(%rbx), %edi
	movl	%eax, %ecx
	andl	$97, %ecx
	cmpl	(%r14), %edi
	cmovnel	%eax, %ecx
	testl	$480, %ecx                      ## imm = 0x1E0
	jne	LBB0_13
	jmp	LBB0_12
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_6, LBB0_6-LJTI0_0
.set L0_0_set_7, LBB0_7-LJTI0_0
.set L0_0_set_8, LBB0_8-LJTI0_0
.set L0_0_set_9, LBB0_9-LJTI0_0
LJTI0_0:
	.long	L0_0_set_6
	.long	L0_0_set_7
	.long	L0_0_set_8
	.long	L0_0_set_9
	.end_data_region
                                        ## -- End function
	.comm	_PCI_DM9009_ID,4,2              ## @PCI_DM9009_ID
	.comm	_DMFE_AUTO,4,2                  ## @DMFE_AUTO
	.comm	_PCI_DM9102_ID,4,2              ## @PCI_DM9102_ID
	.no_dead_strip	_dmfe_set_phyxcer
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dmfe_set_phyxcer
_dmfe_set_phyxcer:                      ; @dmfe_set_phyxcer
	.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
	str	w0, [x19]
	ldr	w1, [x19, #20]
	bl	_update_cr6
	ldr	w3, [x19, #12]
Lloh0:
	adrp	x20, _PCI_DM9009_ID@GOTPAGE
Lloh1:
	ldr	x20, [x20, _PCI_DM9009_ID@GOTPAGEOFF]
	ldr	w8, [x20]
	cmp	w3, w8
	b.ne	LBB0_2
; %bb.1:
	ldp	w1, w0, [x19, #16]
	mov	w2, #18
	bl	_phy_read
	and	w3, w0, #0xffffefff
	ldp	w1, w0, [x19, #16]
	ldr	w4, [x19, #12]
	mov	w2, #18
	bl	_phy_write
	ldr	w3, [x19, #12]
LBB0_2:
	ldp	w1, w0, [x19, #16]
	mov	w2, #4
	bl	_phy_read
	and	w10, w0, #0xfffffe1f
	ldr	w8, [x19, #4]
Lloh2:
	adrp	x9, _DMFE_AUTO@GOTPAGE
Lloh3:
	ldr	x9, [x9, _DMFE_AUTO@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_10
; %bb.3:
	ldr	w11, [x19, #8]
	orr	w3, w11, w10
	tst	w3, #0x1e0
	b.ne	LBB0_5
LBB0_4:
	ldr	w10, [x19, #8]
	orr	w3, w10, w3
	orr	w8, w9, w8
	str	w8, [x19, #4]
LBB0_5:
	ldp	w1, w0, [x19, #16]
	ldr	w4, [x19, #12]
	mov	w2, #4
	bl	_phy_write
	ldr	x8, [x19, #24]
	cbz	x8, LBB0_9
; %bb.6:
	ldr	w4, [x19, #12]
Lloh5:
	adrp	x8, _PCI_DM9102_ID@GOTPAGE
Lloh6:
	ldr	x8, [x8, _PCI_DM9102_ID@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	cmp	w4, w8
	b.ne	LBB0_8
; %bb.7:
	ldp	w1, w0, [x19, #16]
	mov	w2, #0
	mov	w3, #6144
	bl	_phy_write
	ldr	x8, [x19, #24]
	cbz	x8, LBB0_9
LBB0_8:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_9:
	ldp	w1, w0, [x19, #16]
	ldr	w4, [x19, #12]
	mov	w2, #0
	mov	w3, #4608
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_phy_write
LBB0_10:
	sub	w11, w8, #128
	cmp	w11, #3
	b.hi	LBB0_16
; %bb.11:
Lloh8:
	adrp	x12, lJTI0_0@PAGE
Lloh9:
	add	x12, x12, lJTI0_0@PAGEOFF
	adr	x13, LBB0_12
	ldrb	w14, [x12, x11]
	add	x13, x13, x14, lsl #2
	br	x13
LBB0_12:
	orr	w10, w10, #0x20
	b	LBB0_16
LBB0_13:
	orr	w10, w10, #0x40
	b	LBB0_16
LBB0_14:
	orr	w10, w10, #0x80
	b	LBB0_16
LBB0_15:
	orr	w10, w10, #0x100
LBB0_16:
	ldr	w11, [x19, #12]
	ldr	w12, [x20]
	mov	w13, #97
	and	w13, w10, w13
	cmp	w11, w12
	csel	w3, w13, w10, eq
	tst	w3, #0x1e0
	b.ne	LBB0_5
	b	LBB0_4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_12-LBB0_12)>>2
	.byte	(LBB0_13-LBB0_12)>>2
	.byte	(LBB0_14-LBB0_12)>>2
	.byte	(LBB0_15-LBB0_12)>>2
                                        ; -- End function
	.comm	_PCI_DM9009_ID,4,2              ; @PCI_DM9009_ID
	.comm	_DMFE_AUTO,4,2                  ; @DMFE_AUTO
	.comm	_PCI_DM9102_ID,4,2              ; @PCI_DM9102_ID
	.no_dead_strip	_dmfe_set_phyxcer
.subsections_via_symbols
