	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function lan7801_phy_init
_lan7801_phy_init:                      ## @lan7801_phy_init
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movl	$1, -40(%rbp)
	movq	_DUPLEX_FULL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -36(%rbp)
	movq	_SPEED_1000@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -32(%rbp)
	movl	16(%rdi), %edi
	callq	_phy_find_first
	testq	%rax, %rax
	je	LBB0_1
## %bb.5:
	movq	%rax, %rbx
	cmpl	$0, 4(%rax)
	je	LBB0_6
## %bb.7:
	movq	_PHY_INTERFACE_MODE_RGMII@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 8(%r14)
	movq	_PHY_KSZ9031RNX@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_ksz9031rnx_fixup@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$-16, %esi
	callq	_phy_register_fixup_for_uid
	testl	%eax, %eax
	js	LBB0_8
## %bb.9:
	movq	_PHY_LAN8835@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_lan8835_fixup@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$-16, %esi
	callq	_phy_register_fixup_for_uid
	testl	%eax, %eax
	js	LBB0_10
## %bb.11:
	movl	$0, (%rbx)
	jmp	LBB0_12
LBB0_1:
	movl	(%r14), %edi
	leaq	L_.str(%rip), %rsi
	callq	_netdev_dbg
	movq	_PHY_POLL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	-40(%rbp), %rsi
	xorl	%edx, %edx
	callq	_fixed_phy_register
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_IS_ERR
	movl	(%r14), %edi
	testq	%rax, %rax
	je	LBB0_4
## %bb.2:
	leaq	L_.str.1(%rip), %rsi
	jmp	LBB0_3
LBB0_6:
	movl	(%r14), %edi
	leaq	L_.str.3(%rip), %rsi
	jmp	LBB0_3
LBB0_8:
	movl	(%r14), %edi
	leaq	L_.str.4(%rip), %rsi
	jmp	LBB0_3
LBB0_4:
	leaq	L_.str.2(%rip), %rsi
	callq	_netdev_dbg
	movq	_PHY_INTERFACE_MODE_RGMII@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 8(%r14)
	movq	_MAC_RGMII_ID@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_MAC_RGMII_ID_TXC_DELAY_EN_@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	callq	_lan78xx_write_reg
	movq	_RGMII_TX_BYP_DLL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	movl	$15616, %edx                    ## imm = 0x3D00
	callq	_lan78xx_write_reg
	movq	_HW_CFG@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	leaq	-28(%rbp), %rdx
	movq	%r14, %rdi
	callq	_lan78xx_read_reg
	movq	_HW_CFG_CLK125_EN_@GOTPCREL(%rip), %rax
	movl	-28(%rbp), %edx
	orl	(%rax), %edx
	movq	_HW_CFG_REFCLK25_EN_@GOTPCREL(%rip), %rax
	orl	(%rax), %edx
	movl	%edx, -28(%rbp)
	movl	(%r15), %esi
	movq	%r14, %rdi
	callq	_lan78xx_write_reg
	jmp	LBB0_12
LBB0_10:
	movl	(%r14), %edi
	leaq	L_.str.5(%rip), %rsi
LBB0_3:
	callq	_netdev_err
	xorl	%ebx, %ebx
LBB0_12:
	movq	%rbx, %rax
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DUPLEX_FULL,4,2                ## @DUPLEX_FULL
	.comm	_SPEED_1000,4,2                 ## @SPEED_1000
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"PHY Not Found!! Registering Fixed PHY\n"

	.comm	_PHY_POLL,4,2                   ## @PHY_POLL
L_.str.1:                               ## @.str.1
	.asciz	"No PHY/fixed_PHY found\n"

L_.str.2:                               ## @.str.2
	.asciz	"Registered FIXED PHY\n"

	.comm	_PHY_INTERFACE_MODE_RGMII,8,3   ## @PHY_INTERFACE_MODE_RGMII
	.comm	_MAC_RGMII_ID,4,2               ## @MAC_RGMII_ID
	.comm	_MAC_RGMII_ID_TXC_DELAY_EN_,4,2 ## @MAC_RGMII_ID_TXC_DELAY_EN_
	.comm	_RGMII_TX_BYP_DLL,4,2           ## @RGMII_TX_BYP_DLL
	.comm	_HW_CFG,4,2                     ## @HW_CFG
	.comm	_HW_CFG_CLK125_EN_,4,2          ## @HW_CFG_CLK125_EN_
	.comm	_HW_CFG_REFCLK25_EN_,4,2        ## @HW_CFG_REFCLK25_EN_
L_.str.3:                               ## @.str.3
	.asciz	"no PHY driver found\n"

	.comm	_PHY_KSZ9031RNX,4,2             ## @PHY_KSZ9031RNX
	.comm	_ksz9031rnx_fixup,4,2           ## @ksz9031rnx_fixup
L_.str.4:                               ## @.str.4
	.asciz	"Failed to register fixup for PHY_KSZ9031RNX\n"

	.comm	_PHY_LAN8835,4,2                ## @PHY_LAN8835
	.comm	_lan8835_fixup,4,2              ## @lan8835_fixup
L_.str.5:                               ## @.str.5
	.asciz	"Failed to register fixup for PHY_LAN8835\n"

	.no_dead_strip	_lan7801_phy_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function lan7801_phy_init
_lan7801_phy_init:                      ; @lan7801_phy_init
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	w8, #1
Lloh0:
	adrp	x9, _DUPLEX_FULL@GOTPAGE
Lloh1:
	ldr	x9, [x9, _DUPLEX_FULL@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	stp	w8, w9, [sp]
Lloh3:
	adrp	x8, _SPEED_1000@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SPEED_1000@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	str	w8, [sp, #8]
	ldr	w0, [x0, #16]
	bl	_phy_find_first
	cbz	x0, LBB0_5
; %bb.1:
	mov	x20, x0
	ldr	w8, [x0, #4]
	cbz	w8, LBB0_7
; %bb.2:
Lloh6:
	adrp	x8, _PHY_INTERFACE_MODE_RGMII@GOTPAGE
Lloh7:
	ldr	x8, [x8, _PHY_INTERFACE_MODE_RGMII@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	str	x8, [x19, #8]
Lloh9:
	adrp	x8, _PHY_KSZ9031RNX@GOTPAGE
Lloh10:
	ldr	x8, [x8, _PHY_KSZ9031RNX@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
Lloh12:
	adrp	x8, _ksz9031rnx_fixup@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ksz9031rnx_fixup@GOTPAGEOFF]
Lloh14:
	ldr	w2, [x8]
	mov	w1, #-16
	bl	_phy_register_fixup_for_uid
	tbnz	w0, #31, LBB0_8
; %bb.3:
Lloh15:
	adrp	x8, _PHY_LAN8835@GOTPAGE
Lloh16:
	ldr	x8, [x8, _PHY_LAN8835@GOTPAGEOFF]
Lloh17:
	ldr	w0, [x8]
Lloh18:
	adrp	x8, _lan8835_fixup@GOTPAGE
Lloh19:
	ldr	x8, [x8, _lan8835_fixup@GOTPAGEOFF]
Lloh20:
	ldr	w2, [x8]
	mov	w1, #-16
	bl	_phy_register_fixup_for_uid
	tbnz	w0, #31, LBB0_10
; %bb.4:
	str	wzr, [x20]
	b	LBB0_12
LBB0_5:
	ldr	w0, [x19]
Lloh21:
	adrp	x1, l_.str@PAGE
Lloh22:
	add	x1, x1, l_.str@PAGEOFF
	bl	_netdev_dbg
Lloh23:
	adrp	x8, _PHY_POLL@GOTPAGE
Lloh24:
	ldr	x8, [x8, _PHY_POLL@GOTPAGEOFF]
Lloh25:
	ldr	w0, [x8]
	mov	x1, sp
	mov	x2, #0
	bl	_fixed_phy_register
	mov	x20, x0
	bl	_IS_ERR
	mov	x8, x0
	ldr	w0, [x19]
	cbz	x8, LBB0_9
; %bb.6:
Lloh26:
	adrp	x1, l_.str.1@PAGE
Lloh27:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_11
LBB0_7:
	ldr	w0, [x19]
Lloh28:
	adrp	x1, l_.str.3@PAGE
Lloh29:
	add	x1, x1, l_.str.3@PAGEOFF
	b	LBB0_11
LBB0_8:
	ldr	w0, [x19]
Lloh30:
	adrp	x1, l_.str.4@PAGE
Lloh31:
	add	x1, x1, l_.str.4@PAGEOFF
	b	LBB0_11
LBB0_9:
Lloh32:
	adrp	x1, l_.str.2@PAGE
Lloh33:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_netdev_dbg
Lloh34:
	adrp	x8, _PHY_INTERFACE_MODE_RGMII@GOTPAGE
Lloh35:
	ldr	x8, [x8, _PHY_INTERFACE_MODE_RGMII@GOTPAGEOFF]
Lloh36:
	ldr	x8, [x8]
	str	x8, [x19, #8]
Lloh37:
	adrp	x8, _MAC_RGMII_ID@GOTPAGE
Lloh38:
	ldr	x8, [x8, _MAC_RGMII_ID@GOTPAGEOFF]
Lloh39:
	ldr	w1, [x8]
Lloh40:
	adrp	x8, _MAC_RGMII_ID_TXC_DELAY_EN_@GOTPAGE
Lloh41:
	ldr	x8, [x8, _MAC_RGMII_ID_TXC_DELAY_EN_@GOTPAGEOFF]
Lloh42:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_lan78xx_write_reg
Lloh43:
	adrp	x8, _RGMII_TX_BYP_DLL@GOTPAGE
Lloh44:
	ldr	x8, [x8, _RGMII_TX_BYP_DLL@GOTPAGEOFF]
Lloh45:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #15616
	bl	_lan78xx_write_reg
Lloh46:
	adrp	x21, _HW_CFG@GOTPAGE
Lloh47:
	ldr	x21, [x21, _HW_CFG@GOTPAGEOFF]
	ldr	w1, [x21]
	add	x2, sp, #12
	mov	x0, x19
	bl	_lan78xx_read_reg
Lloh48:
	adrp	x8, _HW_CFG_CLK125_EN_@GOTPAGE
Lloh49:
	ldr	x8, [x8, _HW_CFG_CLK125_EN_@GOTPAGEOFF]
Lloh50:
	ldr	w8, [x8]
	ldr	w9, [sp, #12]
	orr	w8, w9, w8
Lloh51:
	adrp	x9, _HW_CFG_REFCLK25_EN_@GOTPAGE
Lloh52:
	ldr	x9, [x9, _HW_CFG_REFCLK25_EN_@GOTPAGEOFF]
Lloh53:
	ldr	w9, [x9]
	orr	w2, w9, w8
	str	w2, [sp, #12]
	ldr	w1, [x21]
	mov	x0, x19
	bl	_lan78xx_write_reg
	b	LBB0_12
LBB0_10:
	ldr	w0, [x19]
Lloh54:
	adrp	x1, l_.str.5@PAGE
Lloh55:
	add	x1, x1, l_.str.5@PAGEOFF
LBB0_11:
	bl	_netdev_err
	mov	x20, #0
LBB0_12:
	mov	x0, x20
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh51, Lloh52, Lloh53
	.loh AdrpLdrGotLdr	Lloh48, Lloh49, Lloh50
	.loh AdrpLdrGot	Lloh46, Lloh47
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpAdd	Lloh32, Lloh33
	.loh AdrpAdd	Lloh54, Lloh55
	.cfi_endproc
                                        ; -- End function
	.comm	_DUPLEX_FULL,4,2                ; @DUPLEX_FULL
	.comm	_SPEED_1000,4,2                 ; @SPEED_1000
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"PHY Not Found!! Registering Fixed PHY\n"

	.comm	_PHY_POLL,4,2                   ; @PHY_POLL
l_.str.1:                               ; @.str.1
	.asciz	"No PHY/fixed_PHY found\n"

l_.str.2:                               ; @.str.2
	.asciz	"Registered FIXED PHY\n"

	.comm	_PHY_INTERFACE_MODE_RGMII,8,3   ; @PHY_INTERFACE_MODE_RGMII
	.comm	_MAC_RGMII_ID,4,2               ; @MAC_RGMII_ID
	.comm	_MAC_RGMII_ID_TXC_DELAY_EN_,4,2 ; @MAC_RGMII_ID_TXC_DELAY_EN_
	.comm	_RGMII_TX_BYP_DLL,4,2           ; @RGMII_TX_BYP_DLL
	.comm	_HW_CFG,4,2                     ; @HW_CFG
	.comm	_HW_CFG_CLK125_EN_,4,2          ; @HW_CFG_CLK125_EN_
	.comm	_HW_CFG_REFCLK25_EN_,4,2        ; @HW_CFG_REFCLK25_EN_
l_.str.3:                               ; @.str.3
	.asciz	"no PHY driver found\n"

	.comm	_PHY_KSZ9031RNX,4,2             ; @PHY_KSZ9031RNX
	.comm	_ksz9031rnx_fixup,4,2           ; @ksz9031rnx_fixup
l_.str.4:                               ; @.str.4
	.asciz	"Failed to register fixup for PHY_KSZ9031RNX\n"

	.comm	_PHY_LAN8835,4,2                ; @PHY_LAN8835
	.comm	_lan8835_fixup,4,2              ; @lan8835_fixup
l_.str.5:                               ; @.str.5
	.asciz	"Failed to register fixup for PHY_LAN8835\n"

	.no_dead_strip	_lan7801_phy_init
.subsections_via_symbols
