	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function adin_get_edpd
_adin_get_edpd:                         ## @adin_get_edpd
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rsi, %rbx
	movq	_ADIN1300_PHY_CTRL_STATUS2@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_phy_read
	testl	%eax, %eax
	js	LBB0_7
## %bb.1:
	movq	_ADIN1300_NRG_PD_EN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	andl	%eax, %ecx
	movq	_ADIN1300_NRG_PD_TX_EN@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	andl	%eax, %edx
	jne	LBB0_2
## %bb.3:
	movq	_ETHTOOL_PHY_EDPD_NO_TX@GOTPCREL(%rip), %rax
	testl	%ecx, %ecx
	je	LBB0_5
	jmp	LBB0_6
LBB0_2:
	movq	_ETHTOOL_PHY_EDPD_DFLT_TX_MSECS@GOTPCREL(%rip), %rax
	testl	%ecx, %ecx
	jne	LBB0_6
LBB0_5:
	movq	_ETHTOOL_PHY_EDPD_DISABLE@GOTPCREL(%rip), %rax
LBB0_6:
	movl	(%rax), %eax
	movl	%eax, (%rbx)
	xorl	%eax, %eax
LBB0_7:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ADIN1300_PHY_CTRL_STATUS2,4,2  ## @ADIN1300_PHY_CTRL_STATUS2
	.comm	_ADIN1300_NRG_PD_EN,4,2         ## @ADIN1300_NRG_PD_EN
	.comm	_ADIN1300_NRG_PD_TX_EN,4,2      ## @ADIN1300_NRG_PD_TX_EN
	.comm	_ETHTOOL_PHY_EDPD_DFLT_TX_MSECS,4,2 ## @ETHTOOL_PHY_EDPD_DFLT_TX_MSECS
	.comm	_ETHTOOL_PHY_EDPD_NO_TX,4,2     ## @ETHTOOL_PHY_EDPD_NO_TX
	.comm	_ETHTOOL_PHY_EDPD_DISABLE,4,2   ## @ETHTOOL_PHY_EDPD_DISABLE
	.no_dead_strip	_adin_get_edpd
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function adin_get_edpd
_adin_get_edpd:                         ; @adin_get_edpd
	.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, x1
Lloh0:
	adrp	x8, _ADIN1300_PHY_CTRL_STATUS2@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ADIN1300_PHY_CTRL_STATUS2@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_phy_read
	tbnz	w0, #31, LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _ADIN1300_NRG_PD_EN@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ADIN1300_NRG_PD_EN@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
Lloh6:
	adrp	x9, _ADIN1300_NRG_PD_TX_EN@GOTPAGE
Lloh7:
	ldr	x9, [x9, _ADIN1300_NRG_PD_TX_EN@GOTPAGEOFF]
Lloh8:
	adrp	x10, _ETHTOOL_PHY_EDPD_DISABLE@GOTPAGE
Lloh9:
	ldr	x10, [x10, _ETHTOOL_PHY_EDPD_DISABLE@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
Lloh11:
	adrp	x11, _ETHTOOL_PHY_EDPD_NO_TX@GOTPAGE
Lloh12:
	ldr	x11, [x11, _ETHTOOL_PHY_EDPD_NO_TX@GOTPAGEOFF]
Lloh13:
	adrp	x12, _ETHTOOL_PHY_EDPD_DFLT_TX_MSECS@GOTPAGE
Lloh14:
	ldr	x12, [x12, _ETHTOOL_PHY_EDPD_DFLT_TX_MSECS@GOTPAGEOFF]
	tst	w9, w0
	csel	x9, x11, x12, eq
	tst	w8, w0
	csel	x8, x10, x9, eq
	ldr	w8, [x8]
	str	w8, [x19]
	mov	w0, #0
LBB0_2:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh10
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_ADIN1300_PHY_CTRL_STATUS2,4,2  ; @ADIN1300_PHY_CTRL_STATUS2
	.comm	_ADIN1300_NRG_PD_EN,4,2         ; @ADIN1300_NRG_PD_EN
	.comm	_ADIN1300_NRG_PD_TX_EN,4,2      ; @ADIN1300_NRG_PD_TX_EN
	.comm	_ETHTOOL_PHY_EDPD_DFLT_TX_MSECS,4,2 ; @ETHTOOL_PHY_EDPD_DFLT_TX_MSECS
	.comm	_ETHTOOL_PHY_EDPD_NO_TX,4,2     ; @ETHTOOL_PHY_EDPD_NO_TX
	.comm	_ETHTOOL_PHY_EDPD_DISABLE,4,2   ; @ETHTOOL_PHY_EDPD_DISABLE
	.no_dead_strip	_adin_get_edpd
.subsections_via_symbols
