	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function smsc95xx_enter_suspend1
_smsc95xx_enter_suspend1:               ## @smsc95xx_enter_suspend1
	.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
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	8(%rdi), %rax
	movq	(%rax), %r14
	movq	_FEATURE_PHY_NLP_CROSSOVER@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r14)
	je	LBB0_2
## %bb.1:
	movl	(%rbx), %edi
	movl	4(%rbx), %esi
	movq	_PHY_EDPD_CONFIG@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_PHY_EDPD_CONFIG_DEFAULT@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	callq	_smsc95xx_mdio_write_nopm
LBB0_2:
	movl	(%rbx), %edi
	movl	4(%rbx), %esi
	movq	_PHY_MODE_CTRL_STS@GOTPCREL(%rip), %r15
	movl	(%r15), %edx
	callq	_smsc95xx_mdio_read_nopm
	testl	%eax, %eax
	js	LBB0_7
## %bb.3:
	movq	_MODE_CTRL_STS_EDPWRDOWN_@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	%eax, %ecx
	movl	(%rbx), %edi
	movl	4(%rbx), %esi
	movl	(%r15), %edx
	callq	_smsc95xx_mdio_write_nopm
	movq	_PM_CTRL@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	leaq	-36(%rbp), %rdx
	movq	%rbx, %rdi
	callq	_smsc95xx_read_reg_nopm
	testl	%eax, %eax
	js	LBB0_7
## %bb.4:
	movq	_PM_CTL_SUS_MODE_@GOTPCREL(%rip), %rax
	movq	_PM_CTL_WUPS_@GOTPCREL(%rip), %r12
	movl	(%r12), %edx
	orl	(%rax), %edx
	movq	_PM_CTL_PHY_RST_@GOTPCREL(%rip), %rax
	orl	(%rax), %edx
	notl	%edx
	andl	-36(%rbp), %edx
	movq	_PM_CTL_SUS_MODE_1@GOTPCREL(%rip), %rax
	orl	(%rax), %edx
	movl	%edx, -36(%rbp)
	movl	(%r15), %esi
	movq	%rbx, %rdi
	callq	_smsc95xx_write_reg_nopm
	testl	%eax, %eax
	js	LBB0_7
## %bb.5:
	movl	(%r12), %edx
	notl	%edx
	andl	-36(%rbp), %edx
	movq	_PM_CTL_WUPS_ED_@GOTPCREL(%rip), %rax
	movq	_PM_CTL_ED_EN_@GOTPCREL(%rip), %rcx
	orl	(%rax), %edx
	orl	(%rcx), %edx
	movl	%edx, -36(%rbp)
	movl	(%r15), %esi
	movq	%rbx, %rdi
	callq	_smsc95xx_write_reg_nopm
	testl	%eax, %eax
	js	LBB0_7
## %bb.6:
	movq	_SUSPEND_SUSPEND1@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 4(%r14)
	xorl	%eax, %eax
LBB0_7:
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_FEATURE_PHY_NLP_CROSSOVER,4,2  ## @FEATURE_PHY_NLP_CROSSOVER
	.comm	_PHY_EDPD_CONFIG,4,2            ## @PHY_EDPD_CONFIG
	.comm	_PHY_EDPD_CONFIG_DEFAULT,4,2    ## @PHY_EDPD_CONFIG_DEFAULT
	.comm	_PHY_MODE_CTRL_STS,4,2          ## @PHY_MODE_CTRL_STS
	.comm	_MODE_CTRL_STS_EDPWRDOWN_,4,2   ## @MODE_CTRL_STS_EDPWRDOWN_
	.comm	_PM_CTRL,4,2                    ## @PM_CTRL
	.comm	_PM_CTL_SUS_MODE_,4,2           ## @PM_CTL_SUS_MODE_
	.comm	_PM_CTL_WUPS_,4,2               ## @PM_CTL_WUPS_
	.comm	_PM_CTL_PHY_RST_,4,2            ## @PM_CTL_PHY_RST_
	.comm	_PM_CTL_SUS_MODE_1,4,2          ## @PM_CTL_SUS_MODE_1
	.comm	_PM_CTL_WUPS_ED_,4,2            ## @PM_CTL_WUPS_ED_
	.comm	_PM_CTL_ED_EN_,4,2              ## @PM_CTL_ED_EN_
	.comm	_SUSPEND_SUSPEND1,4,2           ## @SUSPEND_SUSPEND1
	.no_dead_strip	_smsc95xx_enter_suspend1
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function smsc95xx_enter_suspend1
_smsc95xx_enter_suspend1:               ; @smsc95xx_enter_suspend1
	.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
	ldr	x8, [x0, #8]
	ldr	x20, [x8]
	ldr	w8, [x20]
Lloh0:
	adrp	x9, _FEATURE_PHY_NLP_CROSSOVER@GOTPAGE
Lloh1:
	ldr	x9, [x9, _FEATURE_PHY_NLP_CROSSOVER@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_2
; %bb.1:
	ldp	w0, w1, [x19]
Lloh3:
	adrp	x8, _PHY_EDPD_CONFIG@GOTPAGE
Lloh4:
	ldr	x8, [x8, _PHY_EDPD_CONFIG@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
Lloh6:
	adrp	x8, _PHY_EDPD_CONFIG_DEFAULT@GOTPAGE
Lloh7:
	ldr	x8, [x8, _PHY_EDPD_CONFIG_DEFAULT@GOTPAGEOFF]
Lloh8:
	ldr	w3, [x8]
	bl	_smsc95xx_mdio_write_nopm
LBB0_2:
	ldp	w0, w1, [x19]
Lloh9:
	adrp	x21, _PHY_MODE_CTRL_STS@GOTPAGE
Lloh10:
	ldr	x21, [x21, _PHY_MODE_CTRL_STS@GOTPAGEOFF]
	ldr	w2, [x21]
	bl	_smsc95xx_mdio_read_nopm
	tbnz	w0, #31, LBB0_7
; %bb.3:
Lloh11:
	adrp	x8, _MODE_CTRL_STS_EDPWRDOWN_@GOTPAGE
Lloh12:
	ldr	x8, [x8, _MODE_CTRL_STS_EDPWRDOWN_@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	orr	w3, w8, w0
	ldp	w0, w1, [x19]
	ldr	w2, [x21]
	bl	_smsc95xx_mdio_write_nopm
Lloh14:
	adrp	x21, _PM_CTRL@GOTPAGE
Lloh15:
	ldr	x21, [x21, _PM_CTRL@GOTPAGEOFF]
	ldr	w1, [x21]
	add	x2, sp, #12
	mov	x0, x19
	bl	_smsc95xx_read_reg_nopm
	tbnz	w0, #31, LBB0_7
; %bb.4:
Lloh16:
	adrp	x8, _PM_CTL_SUS_MODE_@GOTPAGE
Lloh17:
	ldr	x8, [x8, _PM_CTL_SUS_MODE_@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
Lloh19:
	adrp	x22, _PM_CTL_WUPS_@GOTPAGE
Lloh20:
	ldr	x22, [x22, _PM_CTL_WUPS_@GOTPAGEOFF]
	ldr	w9, [x22]
	orr	w8, w9, w8
Lloh21:
	adrp	x9, _PM_CTL_PHY_RST_@GOTPAGE
Lloh22:
	ldr	x9, [x9, _PM_CTL_PHY_RST_@GOTPAGEOFF]
Lloh23:
	ldr	w9, [x9]
	orr	w8, w8, w9
	ldr	w9, [sp, #12]
	bic	w8, w9, w8
Lloh24:
	adrp	x9, _PM_CTL_SUS_MODE_1@GOTPAGE
Lloh25:
	ldr	x9, [x9, _PM_CTL_SUS_MODE_1@GOTPAGEOFF]
Lloh26:
	ldr	w9, [x9]
	orr	w2, w9, w8
	str	w2, [sp, #12]
	ldr	w1, [x21]
	mov	x0, x19
	bl	_smsc95xx_write_reg_nopm
	tbnz	w0, #31, LBB0_7
; %bb.5:
	ldr	w8, [x22]
	ldr	w9, [sp, #12]
	bic	w8, w9, w8
Lloh27:
	adrp	x9, _PM_CTL_WUPS_ED_@GOTPAGE
Lloh28:
	ldr	x9, [x9, _PM_CTL_WUPS_ED_@GOTPAGEOFF]
Lloh29:
	adrp	x10, _PM_CTL_ED_EN_@GOTPAGE
Lloh30:
	ldr	x10, [x10, _PM_CTL_ED_EN_@GOTPAGEOFF]
Lloh31:
	ldr	w9, [x9]
Lloh32:
	ldr	w10, [x10]
	orr	w8, w9, w8
	orr	w2, w8, w10
	str	w2, [sp, #12]
	ldr	w1, [x21]
	mov	x0, x19
	bl	_smsc95xx_write_reg_nopm
	tbnz	w0, #31, LBB0_7
; %bb.6:
	mov	w0, #0
Lloh33:
	adrp	x8, _SUSPEND_SUSPEND1@GOTPAGE
Lloh34:
	ldr	x8, [x8, _SUSPEND_SUSPEND1@GOTPAGEOFF]
Lloh35:
	ldr	w8, [x8]
	ldr	w9, [x20, #4]
	orr	w8, w9, w8
	str	w8, [x20, #4]
LBB0_7:
	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	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh32
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh31
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.cfi_endproc
                                        ; -- End function
	.comm	_FEATURE_PHY_NLP_CROSSOVER,4,2  ; @FEATURE_PHY_NLP_CROSSOVER
	.comm	_PHY_EDPD_CONFIG,4,2            ; @PHY_EDPD_CONFIG
	.comm	_PHY_EDPD_CONFIG_DEFAULT,4,2    ; @PHY_EDPD_CONFIG_DEFAULT
	.comm	_PHY_MODE_CTRL_STS,4,2          ; @PHY_MODE_CTRL_STS
	.comm	_MODE_CTRL_STS_EDPWRDOWN_,4,2   ; @MODE_CTRL_STS_EDPWRDOWN_
	.comm	_PM_CTRL,4,2                    ; @PM_CTRL
	.comm	_PM_CTL_SUS_MODE_,4,2           ; @PM_CTL_SUS_MODE_
	.comm	_PM_CTL_WUPS_,4,2               ; @PM_CTL_WUPS_
	.comm	_PM_CTL_PHY_RST_,4,2            ; @PM_CTL_PHY_RST_
	.comm	_PM_CTL_SUS_MODE_1,4,2          ; @PM_CTL_SUS_MODE_1
	.comm	_PM_CTL_WUPS_ED_,4,2            ; @PM_CTL_WUPS_ED_
	.comm	_PM_CTL_ED_EN_,4,2              ; @PM_CTL_ED_EN_
	.comm	_SUSPEND_SUSPEND1,4,2           ; @SUSPEND_SUSPEND1
	.no_dead_strip	_smsc95xx_enter_suspend1
.subsections_via_symbols
