	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_atl1c_power_saving             ## -- Begin function atl1c_power_saving
	.p2align	4, 0x90
_atl1c_power_saving:                    ## @atl1c_power_saving
	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r15d
	movq	%rdi, %rbx
	movq	24(%rdi), %r13
	movq	(%r13), %rax
	movq	_SPEED_1000@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_1
## %bb.2:
	movq	_MAC_CTRL_SPEED_1000@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_1:
	movq	_MAC_CTRL_SPEED_10_100@GOTPCREL(%rip), %rax
LBB0_3:
	movq	16(%r13), %rcx
	movq	%rcx, -64(%rbp)                 ## 8-byte Spill
	movl	(%rax), %r12d
	movq	_REG_MASTER_CTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-52(%rbp), %rdx
	movq	%rbx, %rdi
	callq	_AT_READ_REG
	movq	_REG_MAC_CTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-44(%rbp), %rdx
	movq	%rbx, %rdi
	callq	_AT_READ_REG
	movq	_REG_GPHY_CTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-48(%rbp), %rdx
	movq	%rbx, %rdi
	callq	_AT_READ_REG
	movq	_MASTER_CTRL_CLK_SEL_DIS@GOTPCREL(%rip), %r14
	movl	(%r14), %eax
	notl	%eax
	andl	%eax, -52(%rbp)
	movl	-44(%rbp), %edi
	movq	_MAC_CTRL_SPEED@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r12d, %edx
	callq	_FIELD_SETX
	movq	_MAC_CTRL_DUPLX@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	_MAC_CTRL_RX_EN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, %edx
	orl	%esi, %edx
	movq	_MAC_CTRL_TX_EN@GOTPCREL(%rip), %rdi
	orl	(%rdi), %edx
	notl	%edx
	andl	%eax, %edx
	movl	%edx, -44(%rbp)
	movq	8(%r13), %rax
	movq	_FULL_DUPLEX@GOTPCREL(%rip), %rdi
	cmpq	(%rdi), %rax
	jne	LBB0_5
## %bb.4:
	orl	%esi, %edx
	movl	%edx, -44(%rbp)
LBB0_5:
	movq	_REG_MASTER_CTRL@GOTPCREL(%rip), %r13
	movq	_GPHY_CTRL_EXT_RESET@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_GPHY_CTRL_CLS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%esi, %eax
	notl	%eax
	andl	-48(%rbp), %eax
	movq	_GPHY_CTRL_SEL_ANA_RST@GOTPCREL(%rip), %rdi
	movq	_GPHY_CTRL_HIB_PULSE@GOTPCREL(%rip), %r8
	orl	(%rdi), %eax
	orl	(%r8), %eax
	movq	_GPHY_CTRL_HIB_EN@GOTPCREL(%rip), %rdi
	orl	(%rdi), %eax
	testl	%r15d, %r15d
	je	LBB0_6
## %bb.7:
	orl	%esi, %eax
	movl	%eax, -48(%rbp)
	movq	_AT_WUFC_MAG@GOTPCREL(%rip), %rax
	testl	%r15d, (%rax)
	je	LBB0_8
## %bb.9:
	movq	_MAC_CTRL_BC_EN@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	orl	%edx, %ecx
	movl	%ecx, -44(%rbp)
	movq	_WOL_MAGIC_EN@GOTPCREL(%rip), %rax
	movq	_WOL_MAGIC_PME_EN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r12d
	orl	(%rax), %r12d
	movq	8(%rbx), %rax
	movq	_athr_l2c_b@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_12
## %bb.10:
	movq	16(%rbx), %rax
	movq	_L2CB_V11@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_12
## %bb.11:
	movq	_WOL_PATTERN_EN@GOTPCREL(%rip), %rax
	movq	_WOL_PATTERN_PME_EN@GOTPCREL(%rip), %rcx
	orl	(%rax), %r12d
	orl	(%rcx), %r12d
	jmp	LBB0_12
LBB0_6:
	movl	-52(%rbp), %edx
	orl	(%r14), %edx
	movl	%edx, -52(%rbp)
	movq	_GPHY_CTRL_PHY_IDDQ@GOTPCREL(%rip), %rcx
	movq	_GPHY_CTRL_PWDOWN_HW@GOTPCREL(%rip), %rsi
	orl	(%rcx), %eax
	orl	(%rsi), %eax
	movl	%eax, -48(%rbp)
	movl	(%r13), %esi
	movq	%rbx, %rdi
	callq	_AT_WRITE_REG
	movq	_REG_MAC_CTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	-44(%rbp), %edx
	movq	%rbx, %rdi
	callq	_AT_WRITE_REG
	movq	_REG_GPHY_CTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	-48(%rbp), %edx
	movq	%rbx, %rdi
	callq	_AT_WRITE_REG
	movq	_REG_WOL_CTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_AT_WRITE_REG
	movl	$0, (%rbx)
	jmp	LBB0_17
LBB0_8:
	xorl	%r12d, %r12d
LBB0_12:
	movq	_AT_WUFC_LNKC@GOTPCREL(%rip), %rax
	testl	%r15d, (%rax)
	je	LBB0_13
## %bb.14:
	movq	_WOL_LINK_CHG_EN@GOTPCREL(%rip), %rax
	movq	_WOL_LINK_CHG_PME_EN@GOTPCREL(%rip), %rcx
	orl	(%rax), %r12d
	orl	(%rcx), %r12d
	movq	_MII_IER@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_IER_LINK_UP@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	callq	_atl1c_write_phy_reg
	testq	%rax, %rax
	je	LBB0_13
## %bb.15:
	movq	_atl1c_driver_name@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str(%rip), %rsi
	movq	-64(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_dev_dbg
	movq	_REG_MAC_CTRL@GOTPCREL(%rip), %r15
	jmp	LBB0_16
LBB0_13:
	movq	_REG_MAC_CTRL@GOTPCREL(%rip), %r15
	movq	-64(%rbp), %r14                 ## 8-byte Reload
LBB0_16:
	movq	_MII_ISR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-68(%rbp), %rdx
	movq	%rbx, %rdi
	callq	_atl1c_read_phy_reg
	movq	_atl1c_driver_name@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	-44(%rbp), %ecx
	movl	-52(%rbp), %r8d
	movl	-48(%rbp), %r9d
	movl	%r12d, (%rsp)
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_dev_dbg
	movl	(%r13), %esi
	movl	-52(%rbp), %edx
	movq	%rbx, %rdi
	callq	_AT_WRITE_REG
	movl	(%r15), %esi
	movl	-44(%rbp), %edx
	movq	%rbx, %rdi
	callq	_AT_WRITE_REG
	movq	_REG_GPHY_CTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	-48(%rbp), %edx
	movq	%rbx, %rdi
	callq	_AT_WRITE_REG
	movq	_REG_WOL_CTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	%r12d, %edx
	callq	_AT_WRITE_REG
LBB0_17:
	xorl	%eax, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SPEED_1000,8,3                 ## @SPEED_1000
	.comm	_MAC_CTRL_SPEED_1000,4,2        ## @MAC_CTRL_SPEED_1000
	.comm	_MAC_CTRL_SPEED_10_100,4,2      ## @MAC_CTRL_SPEED_10_100
	.comm	_REG_MASTER_CTRL,4,2            ## @REG_MASTER_CTRL
	.comm	_REG_MAC_CTRL,4,2               ## @REG_MAC_CTRL
	.comm	_REG_GPHY_CTRL,4,2              ## @REG_GPHY_CTRL
	.comm	_MASTER_CTRL_CLK_SEL_DIS,4,2    ## @MASTER_CTRL_CLK_SEL_DIS
	.comm	_MAC_CTRL_SPEED,4,2             ## @MAC_CTRL_SPEED
	.comm	_MAC_CTRL_DUPLX,4,2             ## @MAC_CTRL_DUPLX
	.comm	_MAC_CTRL_RX_EN,4,2             ## @MAC_CTRL_RX_EN
	.comm	_MAC_CTRL_TX_EN,4,2             ## @MAC_CTRL_TX_EN
	.comm	_FULL_DUPLEX,8,3                ## @FULL_DUPLEX
	.comm	_GPHY_CTRL_EXT_RESET,4,2        ## @GPHY_CTRL_EXT_RESET
	.comm	_GPHY_CTRL_CLS,4,2              ## @GPHY_CTRL_CLS
	.comm	_GPHY_CTRL_SEL_ANA_RST,4,2      ## @GPHY_CTRL_SEL_ANA_RST
	.comm	_GPHY_CTRL_HIB_PULSE,4,2        ## @GPHY_CTRL_HIB_PULSE
	.comm	_GPHY_CTRL_HIB_EN,4,2           ## @GPHY_CTRL_HIB_EN
	.comm	_GPHY_CTRL_PHY_IDDQ,4,2         ## @GPHY_CTRL_PHY_IDDQ
	.comm	_GPHY_CTRL_PWDOWN_HW,4,2        ## @GPHY_CTRL_PWDOWN_HW
	.comm	_REG_WOL_CTRL,4,2               ## @REG_WOL_CTRL
	.comm	_AT_WUFC_MAG,4,2                ## @AT_WUFC_MAG
	.comm	_MAC_CTRL_BC_EN,4,2             ## @MAC_CTRL_BC_EN
	.comm	_WOL_MAGIC_EN,4,2               ## @WOL_MAGIC_EN
	.comm	_WOL_MAGIC_PME_EN,4,2           ## @WOL_MAGIC_PME_EN
	.comm	_athr_l2c_b,8,3                 ## @athr_l2c_b
	.comm	_L2CB_V11,8,3                   ## @L2CB_V11
	.comm	_WOL_PATTERN_EN,4,2             ## @WOL_PATTERN_EN
	.comm	_WOL_PATTERN_PME_EN,4,2         ## @WOL_PATTERN_PME_EN
	.comm	_AT_WUFC_LNKC,4,2               ## @AT_WUFC_LNKC
	.comm	_WOL_LINK_CHG_EN,4,2            ## @WOL_LINK_CHG_EN
	.comm	_WOL_LINK_CHG_PME_EN,4,2        ## @WOL_LINK_CHG_PME_EN
	.comm	_MII_IER,4,2                    ## @MII_IER
	.comm	_IER_LINK_UP,4,2                ## @IER_LINK_UP
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s: write phy MII_IER faild.\n"

	.comm	_atl1c_driver_name,4,2          ## @atl1c_driver_name
	.comm	_MII_ISR,4,2                    ## @MII_ISR
L_.str.1:                               ## @.str.1
	.asciz	"%s: suspend MAC=%x,MASTER=%x,PHY=0x%x,WOL=%x\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_atl1c_power_saving             ; -- Begin function atl1c_power_saving
	.p2align	2
_atl1c_power_saving:                    ; @atl1c_power_saving
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x28, x27, [sp, #48]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #64]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x21, x1
	mov	x19, x0
	ldr	x26, [x0, #24]
	ldr	x20, [x26, #16]
Lloh0:
	adrp	x8, _SPEED_1000@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SPEED_1000@GOTPAGEOFF]
	ldr	x9, [x26]
Lloh2:
	ldr	x8, [x8]
Lloh3:
	adrp	x10, _MAC_CTRL_SPEED_1000@GOTPAGE
Lloh4:
	ldr	x10, [x10, _MAC_CTRL_SPEED_1000@GOTPAGEOFF]
Lloh5:
	adrp	x11, _MAC_CTRL_SPEED_10_100@GOTPAGE
Lloh6:
	ldr	x11, [x11, _MAC_CTRL_SPEED_10_100@GOTPAGEOFF]
	cmp	x9, x8
	csel	x8, x10, x11, eq
	ldr	w22, [x8]
Lloh7:
	adrp	x25, _REG_MASTER_CTRL@GOTPAGE
Lloh8:
	ldr	x25, [x25, _REG_MASTER_CTRL@GOTPAGEOFF]
	ldr	w1, [x25]
	add	x2, sp, #44
	bl	_AT_READ_REG
Lloh9:
	adrp	x24, _REG_MAC_CTRL@GOTPAGE
Lloh10:
	ldr	x24, [x24, _REG_MAC_CTRL@GOTPAGEOFF]
	ldr	w1, [x24]
	add	x2, sp, #40
	mov	x0, x19
	bl	_AT_READ_REG
Lloh11:
	adrp	x23, _REG_GPHY_CTRL@GOTPAGE
Lloh12:
	ldr	x23, [x23, _REG_GPHY_CTRL@GOTPAGEOFF]
	ldr	w1, [x23]
	add	x2, sp, #36
	mov	x0, x19
	bl	_AT_READ_REG
Lloh13:
	adrp	x27, _MASTER_CTRL_CLK_SEL_DIS@GOTPAGE
Lloh14:
	ldr	x27, [x27, _MASTER_CTRL_CLK_SEL_DIS@GOTPAGEOFF]
	ldr	w8, [x27]
	ldp	w0, w9, [sp, #40]
	bic	w8, w9, w8
	str	w8, [sp, #44]
Lloh15:
	adrp	x8, _MAC_CTRL_SPEED@GOTPAGE
Lloh16:
	ldr	x8, [x8, _MAC_CTRL_SPEED@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
	mov	x2, x22
	bl	_FIELD_SETX
Lloh18:
	adrp	x8, _MAC_CTRL_DUPLX@GOTPAGE
Lloh19:
	ldr	x8, [x8, _MAC_CTRL_DUPLX@GOTPAGEOFF]
Lloh20:
	ldr	w10, [x8]
Lloh21:
	adrp	x8, _MAC_CTRL_RX_EN@GOTPAGE
Lloh22:
	ldr	x8, [x8, _MAC_CTRL_RX_EN@GOTPAGEOFF]
Lloh23:
	ldr	w8, [x8]
	orr	w9, w8, w10
Lloh24:
	adrp	x11, _MAC_CTRL_TX_EN@GOTPAGE
Lloh25:
	ldr	x11, [x11, _MAC_CTRL_TX_EN@GOTPAGEOFF]
Lloh26:
	ldr	w11, [x11]
	orr	w9, w9, w11
	bic	w9, w0, w9
	str	w9, [sp, #40]
	ldr	x11, [x26, #8]
Lloh27:
	adrp	x12, _FULL_DUPLEX@GOTPAGE
Lloh28:
	ldr	x12, [x12, _FULL_DUPLEX@GOTPAGEOFF]
Lloh29:
	ldr	x12, [x12]
	cmp	x11, x12
	b.ne	LBB0_2
; %bb.1:
	orr	w9, w9, w10
	str	w9, [sp, #40]
LBB0_2:
Lloh30:
	adrp	x10, _GPHY_CTRL_EXT_RESET@GOTPAGE
Lloh31:
	ldr	x10, [x10, _GPHY_CTRL_EXT_RESET@GOTPAGEOFF]
Lloh32:
	ldr	w10, [x10]
Lloh33:
	adrp	x11, _GPHY_CTRL_CLS@GOTPAGE
Lloh34:
	ldr	x11, [x11, _GPHY_CTRL_CLS@GOTPAGEOFF]
Lloh35:
	ldr	w11, [x11]
	orr	w11, w11, w10
	ldr	w12, [sp, #36]
	bic	w11, w12, w11
Lloh36:
	adrp	x12, _GPHY_CTRL_SEL_ANA_RST@GOTPAGE
Lloh37:
	ldr	x12, [x12, _GPHY_CTRL_SEL_ANA_RST@GOTPAGEOFF]
Lloh38:
	ldr	w12, [x12]
Lloh39:
	adrp	x13, _GPHY_CTRL_HIB_PULSE@GOTPAGE
Lloh40:
	ldr	x13, [x13, _GPHY_CTRL_HIB_PULSE@GOTPAGEOFF]
Lloh41:
	ldr	w13, [x13]
Lloh42:
	adrp	x14, _GPHY_CTRL_HIB_EN@GOTPAGE
Lloh43:
	ldr	x14, [x14, _GPHY_CTRL_HIB_EN@GOTPAGEOFF]
Lloh44:
	ldr	w14, [x14]
	orr	w11, w12, w11
	orr	w11, w11, w13
	orr	w11, w11, w14
	cbz	w21, LBB0_7
; %bb.3:
	orr	w10, w11, w10
	str	w10, [sp, #36]
Lloh45:
	adrp	x10, _AT_WUFC_MAG@GOTPAGE
Lloh46:
	ldr	x10, [x10, _AT_WUFC_MAG@GOTPAGEOFF]
Lloh47:
	ldr	w10, [x10]
	tst	w10, w21
	b.eq	LBB0_8
; %bb.4:
Lloh48:
	adrp	x10, _MAC_CTRL_BC_EN@GOTPAGE
Lloh49:
	ldr	x10, [x10, _MAC_CTRL_BC_EN@GOTPAGEOFF]
Lloh50:
	ldr	w10, [x10]
	orr	w8, w10, w8
	orr	w8, w8, w9
	str	w8, [sp, #40]
Lloh51:
	adrp	x8, _WOL_MAGIC_EN@GOTPAGE
Lloh52:
	ldr	x8, [x8, _WOL_MAGIC_EN@GOTPAGEOFF]
Lloh53:
	ldr	w8, [x8]
Lloh54:
	adrp	x9, _WOL_MAGIC_PME_EN@GOTPAGE
Lloh55:
	ldr	x9, [x9, _WOL_MAGIC_PME_EN@GOTPAGEOFF]
Lloh56:
	ldr	w9, [x9]
	orr	w22, w9, w8
	ldr	x8, [x19, #8]
Lloh57:
	adrp	x9, _athr_l2c_b@GOTPAGE
Lloh58:
	ldr	x9, [x9, _athr_l2c_b@GOTPAGEOFF]
Lloh59:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_9
; %bb.5:
	ldr	x8, [x19, #16]
Lloh60:
	adrp	x9, _L2CB_V11@GOTPAGE
Lloh61:
	ldr	x9, [x9, _L2CB_V11@GOTPAGEOFF]
Lloh62:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_9
; %bb.6:
Lloh63:
	adrp	x8, _WOL_PATTERN_EN@GOTPAGE
Lloh64:
	ldr	x8, [x8, _WOL_PATTERN_EN@GOTPAGEOFF]
Lloh65:
	ldr	w8, [x8]
Lloh66:
	adrp	x9, _WOL_PATTERN_PME_EN@GOTPAGE
Lloh67:
	ldr	x9, [x9, _WOL_PATTERN_PME_EN@GOTPAGEOFF]
Lloh68:
	ldr	w9, [x9]
	orr	w8, w8, w22
	orr	w22, w8, w9
	b	LBB0_9
LBB0_7:
	ldr	w8, [x27]
	ldr	w9, [sp, #44]
	orr	w2, w9, w8
	str	w2, [sp, #44]
Lloh69:
	adrp	x8, _GPHY_CTRL_PHY_IDDQ@GOTPAGE
Lloh70:
	ldr	x8, [x8, _GPHY_CTRL_PHY_IDDQ@GOTPAGEOFF]
Lloh71:
	adrp	x9, _GPHY_CTRL_PWDOWN_HW@GOTPAGE
Lloh72:
	ldr	x9, [x9, _GPHY_CTRL_PWDOWN_HW@GOTPAGEOFF]
Lloh73:
	ldr	w8, [x8]
Lloh74:
	ldr	w9, [x9]
	orr	w8, w8, w11
	orr	w8, w8, w9
	str	w8, [sp, #36]
	ldr	w1, [x25]
	mov	x0, x19
	bl	_AT_WRITE_REG
	ldr	w1, [x24]
	ldr	w2, [sp, #40]
	mov	x0, x19
	bl	_AT_WRITE_REG
	ldr	w1, [x23]
	ldr	w2, [sp, #36]
	mov	x0, x19
	bl	_AT_WRITE_REG
Lloh75:
	adrp	x8, _REG_WOL_CTRL@GOTPAGE
Lloh76:
	ldr	x8, [x8, _REG_WOL_CTRL@GOTPAGEOFF]
Lloh77:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
	bl	_AT_WRITE_REG
	str	wzr, [x19]
	b	LBB0_13
LBB0_8:
	mov	w22, #0
LBB0_9:
Lloh78:
	adrp	x8, _AT_WUFC_LNKC@GOTPAGE
Lloh79:
	ldr	x8, [x8, _AT_WUFC_LNKC@GOTPAGEOFF]
Lloh80:
	ldr	w8, [x8]
Lloh81:
	adrp	x26, _atl1c_driver_name@GOTPAGE
Lloh82:
	ldr	x26, [x26, _atl1c_driver_name@GOTPAGEOFF]
	tst	w8, w21
	b.eq	LBB0_12
; %bb.10:
Lloh83:
	adrp	x8, _WOL_LINK_CHG_EN@GOTPAGE
Lloh84:
	ldr	x8, [x8, _WOL_LINK_CHG_EN@GOTPAGEOFF]
Lloh85:
	ldr	w8, [x8]
Lloh86:
	adrp	x9, _WOL_LINK_CHG_PME_EN@GOTPAGE
Lloh87:
	ldr	x9, [x9, _WOL_LINK_CHG_PME_EN@GOTPAGEOFF]
Lloh88:
	ldr	w9, [x9]
	orr	w8, w8, w22
	orr	w22, w8, w9
Lloh89:
	adrp	x8, _MII_IER@GOTPAGE
Lloh90:
	ldr	x8, [x8, _MII_IER@GOTPAGEOFF]
Lloh91:
	ldr	w1, [x8]
Lloh92:
	adrp	x8, _IER_LINK_UP@GOTPAGE
Lloh93:
	ldr	x8, [x8, _IER_LINK_UP@GOTPAGEOFF]
Lloh94:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_atl1c_write_phy_reg
	cbz	x0, LBB0_12
; %bb.11:
	ldr	w2, [x26]
Lloh95:
	adrp	x1, l_.str@PAGE
Lloh96:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_dev_dbg
LBB0_12:
Lloh97:
	adrp	x8, _MII_ISR@GOTPAGE
Lloh98:
	ldr	x8, [x8, _MII_ISR@GOTPAGEOFF]
Lloh99:
	ldr	w1, [x8]
	add	x2, sp, #32
	mov	x0, x19
	bl	_atl1c_read_phy_reg
	ldr	w2, [x26]
	ldp	w8, w9, [sp, #40]
	ldr	w10, [sp, #36]
	stp	x10, x22, [sp, #16]
	stp	x8, x9, [sp]
Lloh100:
	adrp	x1, l_.str.1@PAGE
Lloh101:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	bl	_dev_dbg
	ldr	w1, [x25]
	ldr	w2, [sp, #44]
	mov	x0, x19
	bl	_AT_WRITE_REG
	ldr	w1, [x24]
	ldr	w2, [sp, #40]
	mov	x0, x19
	bl	_AT_WRITE_REG
	ldr	w1, [x23]
	ldr	w2, [sp, #36]
	mov	x0, x19
	bl	_AT_WRITE_REG
Lloh102:
	adrp	x8, _REG_WOL_CTRL@GOTPAGE
Lloh103:
	ldr	x8, [x8, _REG_WOL_CTRL@GOTPAGEOFF]
Lloh104:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, x22
	bl	_AT_WRITE_REG
LBB0_13:
	mov	w0, #0
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh45, Lloh46, Lloh47
	.loh AdrpLdrGotLdr	Lloh57, Lloh58, Lloh59
	.loh AdrpLdrGotLdr	Lloh54, Lloh55, Lloh56
	.loh AdrpLdrGotLdr	Lloh51, Lloh52, Lloh53
	.loh AdrpLdrGotLdr	Lloh48, Lloh49, Lloh50
	.loh AdrpLdrGotLdr	Lloh60, Lloh61, Lloh62
	.loh AdrpLdrGotLdr	Lloh66, Lloh67, Lloh68
	.loh AdrpLdrGotLdr	Lloh63, Lloh64, Lloh65
	.loh AdrpLdrGotLdr	Lloh75, Lloh76, Lloh77
	.loh AdrpLdrGotLdr	Lloh71, Lloh72, Lloh74
	.loh AdrpLdrGotLdr	Lloh69, Lloh70, Lloh73
	.loh AdrpLdrGot	Lloh81, Lloh82
	.loh AdrpLdrGotLdr	Lloh78, Lloh79, Lloh80
	.loh AdrpLdrGotLdr	Lloh92, Lloh93, Lloh94
	.loh AdrpLdrGotLdr	Lloh89, Lloh90, Lloh91
	.loh AdrpLdrGotLdr	Lloh86, Lloh87, Lloh88
	.loh AdrpLdrGotLdr	Lloh83, Lloh84, Lloh85
	.loh AdrpAdd	Lloh95, Lloh96
	.loh AdrpLdrGotLdr	Lloh102, Lloh103, Lloh104
	.loh AdrpAdd	Lloh100, Lloh101
	.loh AdrpLdrGotLdr	Lloh97, Lloh98, Lloh99
	.cfi_endproc
                                        ; -- End function
	.comm	_SPEED_1000,8,3                 ; @SPEED_1000
	.comm	_MAC_CTRL_SPEED_1000,4,2        ; @MAC_CTRL_SPEED_1000
	.comm	_MAC_CTRL_SPEED_10_100,4,2      ; @MAC_CTRL_SPEED_10_100
	.comm	_REG_MASTER_CTRL,4,2            ; @REG_MASTER_CTRL
	.comm	_REG_MAC_CTRL,4,2               ; @REG_MAC_CTRL
	.comm	_REG_GPHY_CTRL,4,2              ; @REG_GPHY_CTRL
	.comm	_MASTER_CTRL_CLK_SEL_DIS,4,2    ; @MASTER_CTRL_CLK_SEL_DIS
	.comm	_MAC_CTRL_SPEED,4,2             ; @MAC_CTRL_SPEED
	.comm	_MAC_CTRL_DUPLX,4,2             ; @MAC_CTRL_DUPLX
	.comm	_MAC_CTRL_RX_EN,4,2             ; @MAC_CTRL_RX_EN
	.comm	_MAC_CTRL_TX_EN,4,2             ; @MAC_CTRL_TX_EN
	.comm	_FULL_DUPLEX,8,3                ; @FULL_DUPLEX
	.comm	_GPHY_CTRL_EXT_RESET,4,2        ; @GPHY_CTRL_EXT_RESET
	.comm	_GPHY_CTRL_CLS,4,2              ; @GPHY_CTRL_CLS
	.comm	_GPHY_CTRL_SEL_ANA_RST,4,2      ; @GPHY_CTRL_SEL_ANA_RST
	.comm	_GPHY_CTRL_HIB_PULSE,4,2        ; @GPHY_CTRL_HIB_PULSE
	.comm	_GPHY_CTRL_HIB_EN,4,2           ; @GPHY_CTRL_HIB_EN
	.comm	_GPHY_CTRL_PHY_IDDQ,4,2         ; @GPHY_CTRL_PHY_IDDQ
	.comm	_GPHY_CTRL_PWDOWN_HW,4,2        ; @GPHY_CTRL_PWDOWN_HW
	.comm	_REG_WOL_CTRL,4,2               ; @REG_WOL_CTRL
	.comm	_AT_WUFC_MAG,4,2                ; @AT_WUFC_MAG
	.comm	_MAC_CTRL_BC_EN,4,2             ; @MAC_CTRL_BC_EN
	.comm	_WOL_MAGIC_EN,4,2               ; @WOL_MAGIC_EN
	.comm	_WOL_MAGIC_PME_EN,4,2           ; @WOL_MAGIC_PME_EN
	.comm	_athr_l2c_b,8,3                 ; @athr_l2c_b
	.comm	_L2CB_V11,8,3                   ; @L2CB_V11
	.comm	_WOL_PATTERN_EN,4,2             ; @WOL_PATTERN_EN
	.comm	_WOL_PATTERN_PME_EN,4,2         ; @WOL_PATTERN_PME_EN
	.comm	_AT_WUFC_LNKC,4,2               ; @AT_WUFC_LNKC
	.comm	_WOL_LINK_CHG_EN,4,2            ; @WOL_LINK_CHG_EN
	.comm	_WOL_LINK_CHG_PME_EN,4,2        ; @WOL_LINK_CHG_PME_EN
	.comm	_MII_IER,4,2                    ; @MII_IER
	.comm	_IER_LINK_UP,4,2                ; @IER_LINK_UP
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s: write phy MII_IER faild.\n"

	.comm	_atl1c_driver_name,4,2          ; @atl1c_driver_name
	.comm	_MII_ISR,4,2                    ; @MII_ISR
l_.str.1:                               ; @.str.1
	.asciz	"%s: suspend MAC=%x,MASTER=%x,PHY=0x%x,WOL=%x\n"

.subsections_via_symbols
