	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function adin_set_edpd
_adin_set_edpd:                         ## @adin_set_edpd
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	_ETHTOOL_PHY_EDPD_DISABLE@GOTPCREL(%rip), %rax
	cmpl	%esi, (%rax)
	jne	LBB0_1
## %bb.8:
	movq	_ADIN1300_PHY_CTRL_STATUS2@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_ADIN1300_NRG_PD_EN@GOTPCREL(%rip), %rax
	movq	_ADIN1300_NRG_PD_TX_EN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	orl	(%rax), %edx
	popq	%rbp
	jmp	_phy_clear_bits                 ## TAILCALL
LBB0_1:
	movq	_ADIN1300_NRG_PD_EN@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	cmpl	$1000, %esi                     ## imm = 0x3E8
	je	LBB0_6
## %bb.2:
	cmpl	$129, %esi
	je	LBB0_6
## %bb.3:
	cmpl	$128, %esi
	jne	LBB0_5
## %bb.4:
	movq	_ADIN1300_NRG_PD_TX_EN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	orl	%ecx, %edx
	jmp	LBB0_7
LBB0_6:
	movq	_ADIN1300_NRG_PD_TX_EN@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movl	%ecx, %edx
LBB0_7:
	movq	_ADIN1300_PHY_CTRL_STATUS2@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	popq	%rbp
	jmp	_phy_modify                     ## TAILCALL
LBB0_5:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ETHTOOL_PHY_EDPD_DISABLE,4,2   ## @ETHTOOL_PHY_EDPD_DISABLE
	.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	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_adin_set_edpd
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function adin_set_edpd
_adin_set_edpd:                         ; @adin_set_edpd
	.cfi_startproc
; %bb.0:
Lloh0:
	adrp	x8, _ETHTOOL_PHY_EDPD_DISABLE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ETHTOOL_PHY_EDPD_DISABLE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, w1
	b.ne	LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _ADIN1300_PHY_CTRL_STATUS2@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ADIN1300_PHY_CTRL_STATUS2@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
Lloh6:
	adrp	x8, _ADIN1300_NRG_PD_EN@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ADIN1300_NRG_PD_EN@GOTPAGEOFF]
Lloh8:
	adrp	x9, _ADIN1300_NRG_PD_TX_EN@GOTPAGE
Lloh9:
	ldr	x9, [x9, _ADIN1300_NRG_PD_TX_EN@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
Lloh11:
	ldr	w9, [x9]
	orr	w2, w9, w8
	b	_phy_clear_bits
LBB0_2:
Lloh12:
	adrp	x8, _ADIN1300_NRG_PD_EN@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ADIN1300_NRG_PD_EN@GOTPAGEOFF]
Lloh14:
	ldr	w3, [x8]
	cmp	w1, #1000
	b.eq	LBB0_6
; %bb.3:
	cmp	w1, #129
	b.eq	LBB0_6
; %bb.4:
	cmp	w1, #128
	b.ne	LBB0_8
; %bb.5:
Lloh15:
	adrp	x8, _ADIN1300_NRG_PD_TX_EN@GOTPAGE
Lloh16:
	ldr	x8, [x8, _ADIN1300_NRG_PD_TX_EN@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	orr	w2, w8, w3
	b	LBB0_7
LBB0_6:
Lloh18:
	adrp	x8, _ADIN1300_NRG_PD_TX_EN@GOTPAGE
Lloh19:
	ldr	x8, [x8, _ADIN1300_NRG_PD_TX_EN@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	orr	w2, w8, w3
	mov	x3, x2
LBB0_7:
Lloh21:
	adrp	x8, _ADIN1300_PHY_CTRL_STATUS2@GOTPAGE
Lloh22:
	ldr	x8, [x8, _ADIN1300_PHY_CTRL_STATUS2@GOTPAGEOFF]
Lloh23:
	ldr	w1, [x8]
	b	_phy_modify
LBB0_8:
Lloh24:
	adrp	x8, _EINVAL@GOTPAGE
Lloh25:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh26:
	ldr	w8, [x8]
	neg	w0, w8
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh10
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.cfi_endproc
                                        ; -- End function
	.comm	_ETHTOOL_PHY_EDPD_DISABLE,4,2   ; @ETHTOOL_PHY_EDPD_DISABLE
	.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	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_adin_set_edpd
.subsections_via_symbols
