	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dmfe_parse_srom
_dmfe_parse_srom:                       ## @dmfe_parse_srom
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	(%rdi), %r15
	leaq	L_.str(%rip), %rsi
	xorl	%edi, %edi
	xorl	%edx, %edx
	callq	_DMFE_DBUG
	movq	_CR15_DEFAULT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%rbx)
	movzbl	18(%r15), %eax
	movq	_SROM_V41_CODE@GOTPCREL(%rip), %rcx
	cmpl	%eax, (%rcx)
	jne	LBB0_21
## %bb.1:
	leaq	34(%r15), %r14
	movq	%r14, %rdi
	callq	_le16_to_cpup
	movl	%eax, 12(%rbx)
	movl	%eax, %ecx
	shll	$5, %ecx
	testb	$14, %al
	movl	$32, %eax
	movl	$480, %edx                      ## imm = 0x1E0
	cmovel	%eax, %edx
	andl	%ecx, %edx
	movl	%edx, 16(%rbx)
	movq	%r14, %rdi
	callq	_le32_to_cpup
	movl	%eax, %r14d
	leaq	36(%r15), %rdi
	callq	_le32_to_cpup
	andl	%r14d, %eax
	cmpl	$7, %eax
	jle	LBB0_2
## %bb.5:
	cmpl	$8, %eax
	je	LBB0_10
## %bb.6:
	cmpl	$256, %eax                      ## imm = 0x100
	je	LBB0_8
## %bb.7:
	cmpl	$512, %eax                      ## imm = 0x200
	jne	LBB0_12
LBB0_8:
	movq	_DMFE_1M_HPNA@GOTPCREL(%rip), %rax
	jmp	LBB0_11
LBB0_2:
	cmpl	$2, %eax
	je	LBB0_9
## %bb.3:
	cmpl	$4, %eax
	jne	LBB0_12
## %bb.4:
	movq	_DMFE_100MHF@GOTPCREL(%rip), %rax
	jmp	LBB0_11
LBB0_10:
	movq	_DMFE_100MFD@GOTPCREL(%rip), %rax
	jmp	LBB0_11
LBB0_9:
	movq	_DMFE_10MFD@GOTPCREL(%rip), %rax
LBB0_11:
	movl	(%rax), %eax
	movq	_dmfe_media_mode@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
LBB0_12:
	movq	_SF_mode@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testb	$1, %al
	jne	LBB0_14
## %bb.13:
	cmpb	$0, 43(%r15)
	js	LBB0_14
## %bb.15:
	testb	$2, %al
	je	LBB0_16
	jmp	LBB0_17
LBB0_14:
	orb	$64, 8(%rbx)
	testb	$2, %al
	jne	LBB0_17
LBB0_16:
	testb	$1, 40(%r15)
	je	LBB0_18
LBB0_17:
	orb	$4, 9(%rbx)
LBB0_18:
	testb	$4, %al
	jne	LBB0_20
## %bb.19:
	testb	$14, 40(%r15)
	je	LBB0_21
LBB0_20:
	orb	$-104, 9(%rbx)
LBB0_21:
	movq	_HPNA_rx_cmd@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	cmpq	$0, (%rcx)
	sete	%al
	shll	$15, %eax
	orl	$1, %eax
	movl	%eax, 20(%rbx)
	movq	_HPNA_tx_cmd@GOTPCREL(%rip), %rcx
	cmpl	$1, (%rcx)
	movq	_HPNA_mode@GOTPCREL(%rip), %rcx
	movslq	(%rcx), %rcx
	jne	LBB0_24
## %bb.22:
	cmpl	$4, %ecx
	jae	LBB0_31
## %bb.23:
	leaq	L_switch.table.dmfe_parse_srom(%rip), %rdx
	movl	(%rdx,%rcx,4), %ecx
	jmp	LBB0_30
LBB0_24:
	testl	%ecx, %ecx
	je	LBB0_25
## %bb.26:
	cmpl	$3, %ecx
	je	LBB0_29
## %bb.27:
	cmpl	$2, %ecx
	jne	LBB0_31
## %bb.28:
	movl	$6, %ecx
	jmp	LBB0_30
LBB0_29:
	movl	$2, %ecx
	jmp	LBB0_30
LBB0_25:
	movl	$4, %ecx
LBB0_30:
	orl	%ecx, %eax
	movl	%eax, 20(%rbx)
LBB0_31:
	movl	$0, 24(%rbx)
	movl	$262144, %edi                   ## imm = 0x40000
	orl	28(%rbx), %edi
	movl	44(%rbx), %esi
	callq	_update_cr6
	movl	44(%rbx), %edi
	movl	36(%rbx), %ecx
	movl	40(%rbx), %esi
	movl	$3, %edx
	callq	_phy_read
	movl	%eax, %r14d
	andl	$65520, %eax                    ## imm = 0xFFF0
	cmpl	$47360, %eax                    ## imm = 0xB900
	jne	LBB0_34
## %bb.32:
	movl	$8, 32(%rbx)
	movl	44(%rbx), %edi
	movl	36(%rbx), %ecx
	movl	40(%rbx), %esi
	movl	$31, %edx
	callq	_phy_read
	cmpl	$17412, %eax                    ## imm = 0x4404
	jne	LBB0_33
## %bb.35:
	movl	$1, 24(%rbx)
	movq	%rbx, %rdi
	movl	%r14d, %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_dmfe_program_DM9801            ## TAILCALL
LBB0_34:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_33:
	movl	$2, 24(%rbx)
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_dmfe_program_DM9802            ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"dmfe_parse_srom() "

	.comm	_CR15_DEFAULT,4,2               ## @CR15_DEFAULT
	.comm	_SROM_V41_CODE,4,2              ## @SROM_V41_CODE
	.comm	_DMFE_100MHF,4,2                ## @DMFE_100MHF
	.comm	_dmfe_media_mode,4,2            ## @dmfe_media_mode
	.comm	_DMFE_10MFD,4,2                 ## @DMFE_10MFD
	.comm	_DMFE_100MFD,4,2                ## @DMFE_100MFD
	.comm	_DMFE_1M_HPNA,4,2               ## @DMFE_1M_HPNA
	.comm	_SF_mode,4,2                    ## @SF_mode
	.comm	_HPNA_rx_cmd,8,3                ## @HPNA_rx_cmd
	.comm	_HPNA_tx_cmd,4,2                ## @HPNA_tx_cmd
	.comm	_HPNA_mode,4,2                  ## @HPNA_mode
	.no_dead_strip	_dmfe_parse_srom
	.section	__TEXT,__literal16,16byte_literals
	.p2align	2                               ## @switch.table.dmfe_parse_srom
L_switch.table.dmfe_parse_srom:
	.long	2308                            ## 0x904
	.long	2560                            ## 0xa00
	.long	1286                            ## 0x506
	.long	1538                            ## 0x602

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dmfe_parse_srom
_dmfe_parse_srom:                       ; @dmfe_parse_srom
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x19, x0
	ldr	x21, [x0]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #0
	mov	w2, #0
	bl	_DMFE_DBUG
Lloh2:
	adrp	x8, _CR15_DEFAULT@GOTPAGE
Lloh3:
	ldr	x8, [x8, _CR15_DEFAULT@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	str	w8, [x19, #8]
	ldrb	w8, [x21, #18]
Lloh5:
	adrp	x9, _SROM_V41_CODE@GOTPAGE
Lloh6:
	ldr	x9, [x9, _SROM_V41_CODE@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	cmp	w9, w8
	b.ne	LBB0_21
; %bb.1:
	add	x20, x21, #34
	mov	x0, x20
	bl	_le16_to_cpup
	tst	w0, #0xe
	mov	w8, #480
	mov	w9, #32
	csel	w8, w9, w8, eq
	and	w8, w8, w0, lsl #5
	stp	w0, w8, [x19, #12]
	mov	x0, x20
	bl	_le32_to_cpup
	mov	x20, x0
	add	x0, x21, #36
	bl	_le32_to_cpup
	and	w8, w0, w20
	cmp	w8, #7
	b.le	LBB0_6
; %bb.2:
	cmp	w8, #8
	b.eq	LBB0_9
; %bb.3:
	cmp	w8, #256
	b.eq	LBB0_5
; %bb.4:
	cmp	w8, #512
	b.ne	LBB0_12
LBB0_5:
Lloh8:
	adrp	x8, _DMFE_1M_HPNA@GOTPAGE
Lloh9:
	ldr	x8, [x8, _DMFE_1M_HPNA@GOTPAGEOFF]
	b	LBB0_11
LBB0_6:
	cmp	w8, #2
	b.eq	LBB0_10
; %bb.7:
	cmp	w8, #4
	b.ne	LBB0_12
; %bb.8:
Lloh10:
	adrp	x8, _DMFE_100MHF@GOTPAGE
Lloh11:
	ldr	x8, [x8, _DMFE_100MHF@GOTPAGEOFF]
	b	LBB0_11
LBB0_9:
Lloh12:
	adrp	x8, _DMFE_100MFD@GOTPAGE
Lloh13:
	ldr	x8, [x8, _DMFE_100MFD@GOTPAGEOFF]
	b	LBB0_11
LBB0_10:
Lloh14:
	adrp	x8, _DMFE_10MFD@GOTPAGE
Lloh15:
	ldr	x8, [x8, _DMFE_10MFD@GOTPAGEOFF]
LBB0_11:
	ldr	w8, [x8]
Lloh16:
	adrp	x9, _dmfe_media_mode@GOTPAGE
Lloh17:
	ldr	x9, [x9, _dmfe_media_mode@GOTPAGEOFF]
Lloh18:
	str	w8, [x9]
LBB0_12:
Lloh19:
	adrp	x8, _SF_mode@GOTPAGE
Lloh20:
	ldr	x8, [x8, _SF_mode@GOTPAGEOFF]
Lloh21:
	ldr	w8, [x8]
	tbnz	w8, #0, LBB0_15
; %bb.13:
	ldrsb	w9, [x21, #43]
	tbnz	w9, #31, LBB0_15
; %bb.14:
	tbz	w8, #1, LBB0_16
	b	LBB0_17
LBB0_15:
	ldr	w9, [x19, #8]
	orr	w9, w9, #0x40
	str	w9, [x19, #8]
	tbnz	w8, #1, LBB0_17
LBB0_16:
	ldrb	w9, [x21, #40]
	tbz	w9, #0, LBB0_18
LBB0_17:
	ldr	w9, [x19, #8]
	orr	w9, w9, #0x400
	str	w9, [x19, #8]
LBB0_18:
	tbnz	w8, #2, LBB0_20
; %bb.19:
	ldrb	w8, [x21, #40]
	tst	w8, #0xe
	b.eq	LBB0_21
LBB0_20:
	ldr	w8, [x19, #8]
	mov	w9, #38912
	orr	w8, w8, w9
	str	w8, [x19, #8]
LBB0_21:
Lloh22:
	adrp	x8, _HPNA_rx_cmd@GOTPAGE
Lloh23:
	ldr	x8, [x8, _HPNA_rx_cmd@GOTPAGEOFF]
Lloh24:
	ldr	x8, [x8]
	cmp	x8, #0
	mov	w8, #32769
	csinc	w8, w8, wzr, eq
Lloh25:
	adrp	x9, _HPNA_tx_cmd@GOTPAGE
Lloh26:
	ldr	x9, [x9, _HPNA_tx_cmd@GOTPAGEOFF]
	str	w8, [x19, #20]
Lloh27:
	ldr	w10, [x9]
Lloh28:
	adrp	x9, _HPNA_mode@GOTPAGE
Lloh29:
	ldr	x9, [x9, _HPNA_mode@GOTPAGEOFF]
Lloh30:
	ldrsw	x9, [x9]
	cmp	w10, #1
	b.ne	LBB0_24
; %bb.22:
	cmp	w9, #4
	b.hs	LBB0_31
; %bb.23:
Lloh31:
	adrp	x10, l_switch.table.dmfe_parse_srom@PAGE
Lloh32:
	add	x10, x10, l_switch.table.dmfe_parse_srom@PAGEOFF
	ldr	w9, [x10, x9, lsl #2]
	b	LBB0_30
LBB0_24:
	cbz	w9, LBB0_29
; %bb.25:
	cmp	w9, #3
	b.eq	LBB0_28
; %bb.26:
	cmp	w9, #2
	b.ne	LBB0_31
; %bb.27:
	mov	w9, #6
	b	LBB0_30
LBB0_28:
	mov	w9, #2
	b	LBB0_30
LBB0_29:
	mov	w9, #4
LBB0_30:
	orr	w8, w8, w9
	str	w8, [x19, #20]
LBB0_31:
	str	wzr, [x19, #24]
	ldr	w8, [x19, #28]
	orr	w0, w8, #0x40000
	ldr	w1, [x19, #44]
	bl	_update_cr6
	ldp	w1, w0, [x19, #40]
	ldr	w3, [x19, #36]
	mov	w2, #3
	bl	_phy_read
	and	w8, w0, #0xfff0
	mov	w9, #47360
	cmp	w8, w9
	b.ne	LBB0_34
; %bb.32:
	mov	x20, x0
	mov	w8, #8
	str	w8, [x19, #32]
	ldp	w1, w0, [x19, #40]
	ldr	w3, [x19, #36]
	mov	w2, #31
	bl	_phy_read
	mov	w8, #17412
	cmp	w0, w8
	b.ne	LBB0_35
; %bb.33:
	mov	w8, #1
	str	w8, [x19, #24]
	mov	x0, x19
	mov	x1, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_dmfe_program_DM9801
LBB0_34:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_35:
	mov	w8, #2
	str	w8, [x19, #24]
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_dmfe_program_DM9802
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotStr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpAdd	Lloh31, Lloh32
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"dmfe_parse_srom() "

	.comm	_CR15_DEFAULT,4,2               ; @CR15_DEFAULT
	.comm	_SROM_V41_CODE,4,2              ; @SROM_V41_CODE
	.comm	_DMFE_100MHF,4,2                ; @DMFE_100MHF
	.comm	_dmfe_media_mode,4,2            ; @dmfe_media_mode
	.comm	_DMFE_10MFD,4,2                 ; @DMFE_10MFD
	.comm	_DMFE_100MFD,4,2                ; @DMFE_100MFD
	.comm	_DMFE_1M_HPNA,4,2               ; @DMFE_1M_HPNA
	.comm	_SF_mode,4,2                    ; @SF_mode
	.comm	_HPNA_rx_cmd,8,3                ; @HPNA_rx_cmd
	.comm	_HPNA_tx_cmd,4,2                ; @HPNA_tx_cmd
	.comm	_HPNA_mode,4,2                  ; @HPNA_mode
	.no_dead_strip	_dmfe_parse_srom
	.section	__TEXT,__literal16,16byte_literals
	.p2align	2                               ; @switch.table.dmfe_parse_srom
l_switch.table.dmfe_parse_srom:
	.long	2308                            ; 0x904
	.long	2560                            ; 0xa00
	.long	1286                            ; 0x506
	.long	1538                            ; 0x602

.subsections_via_symbols
