	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function _rtl92de_read_macphymode_from_prom
__rtl92de_read_macphymode_from_prom:    ## @_rtl92de_read_macphymode_from_prom
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	%rdi, %rbx
	callq	_rtl_priv
	movq	%rax, %r14
	movq	%rbx, %rdi
	callq	_rtl_priv
	movq	%rax, %rdi
	callq	_rtl_hal
	movq	%rax, %r12
	movq	_EEPROM_MAC_FUNCTION@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%r15,%rax,4), %ebx
	movl	$3, %edi
	callq	_BIT
	testl	%ebx, %eax
	leaq	L_.str.1(%rip), %rax
	leaq	L_.str(%rip), %rcx
	movq	_SINGLEMAC_SINGLEPHY@GOTPCREL(%rip), %rdx
	cmoveq	_DUALMAC_DUALPHY@GOTPCREL(%rip), %rdx
	cmoveq	%rax, %rcx
	movl	(%rdx), %eax
	movl	%eax, (%r12)
	movq	_COMP_INIT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_DBG_LOUD@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_RT_TRACE                       ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_EEPROM_MAC_FUNCTION,8,3        ## @EEPROM_MAC_FUNCTION
	.comm	_SINGLEMAC_SINGLEPHY,4,2        ## @SINGLEMAC_SINGLEPHY
	.comm	_COMP_INIT,4,2                  ## @COMP_INIT
	.comm	_DBG_LOUD,4,2                   ## @DBG_LOUD
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"MacPhyMode SINGLEMAC_SINGLEPHY\n"

	.comm	_DUALMAC_DUALPHY,4,2            ## @DUALMAC_DUALPHY
L_.str.1:                               ## @.str.1
	.asciz	"MacPhyMode DUALMAC_DUALPHY\n"

	.no_dead_strip	__rtl92de_read_macphymode_from_prom
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function _rtl92de_read_macphymode_from_prom
__rtl92de_read_macphymode_from_prom:    ; @_rtl92de_read_macphymode_from_prom
	.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, x1
	mov	x20, x0
	bl	_rtl_priv
	mov	x21, x0
	mov	x0, x20
	bl	_rtl_priv
	bl	_rtl_hal
	mov	x20, x0
Lloh0:
	adrp	x8, _EEPROM_MAC_FUNCTION@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EEPROM_MAC_FUNCTION@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	ldr	w19, [x19, x8, lsl #2]
	mov	w0, #3
	bl	_BIT
Lloh3:
	adrp	x8, l_.str@PAGE
Lloh4:
	add	x8, x8, l_.str@PAGEOFF
Lloh5:
	adrp	x9, l_.str.1@PAGE
Lloh6:
	add	x9, x9, l_.str.1@PAGEOFF
	tst	w0, w19
	csel	x3, x9, x8, eq
Lloh7:
	adrp	x8, _DUALMAC_DUALPHY@GOTPAGE
Lloh8:
	ldr	x8, [x8, _DUALMAC_DUALPHY@GOTPAGEOFF]
Lloh9:
	adrp	x9, _SINGLEMAC_SINGLEPHY@GOTPAGE
Lloh10:
	ldr	x9, [x9, _SINGLEMAC_SINGLEPHY@GOTPAGEOFF]
	csel	x8, x8, x9, eq
	ldr	w8, [x8]
	str	w8, [x20]
Lloh11:
	adrp	x8, _COMP_INIT@GOTPAGE
Lloh12:
	ldr	x8, [x8, _COMP_INIT@GOTPAGEOFF]
Lloh13:
	adrp	x9, _DBG_LOUD@GOTPAGE
Lloh14:
	ldr	x9, [x9, _DBG_LOUD@GOTPAGEOFF]
Lloh15:
	ldr	w1, [x8]
Lloh16:
	ldr	w2, [x9]
	mov	x0, x21
	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	_RT_TRACE
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh15
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_EEPROM_MAC_FUNCTION,8,3        ; @EEPROM_MAC_FUNCTION
	.comm	_SINGLEMAC_SINGLEPHY,4,2        ; @SINGLEMAC_SINGLEPHY
	.comm	_COMP_INIT,4,2                  ; @COMP_INIT
	.comm	_DBG_LOUD,4,2                   ; @DBG_LOUD
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"MacPhyMode SINGLEMAC_SINGLEPHY\n"

	.comm	_DUALMAC_DUALPHY,4,2            ; @DUALMAC_DUALPHY
l_.str.1:                               ; @.str.1
	.asciz	"MacPhyMode DUALMAC_DUALPHY\n"

	.no_dead_strip	__rtl92de_read_macphymode_from_prom
.subsections_via_symbols
