	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function smsc95xx_enter_suspend3
_smsc95xx_enter_suspend3:               ## @smsc95xx_enter_suspend3
	.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	_RX_FIFO_INF@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-36(%rbp), %rdx
	callq	_smsc95xx_read_reg_nopm
	testl	%eax, %eax
	js	LBB0_7
## %bb.1:
	movq	_RX_FIFO_INF_USED_@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, -36(%rbp)
	je	LBB0_3
## %bb.2:
	movl	(%rbx), %edi
	leaq	L_.str(%rip), %rsi
	callq	_netdev_info
	movq	_EBUSY@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_7:
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	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_3@GOTPCREL(%rip), %rax
	movq	_PM_CTL_RES_CLR_WKP_STS@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.5:
	movl	(%r12), %edx
	notl	%edx
	andl	-36(%rbp), %edx
	movq	_PM_CTL_WUPS_WOL_@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.6:
	movq	_SUSPEND_SUSPEND3@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, (%r14)
	xorl	%eax, %eax
	jmp	LBB0_7
	.cfi_endproc
                                        ## -- End function
	.comm	_RX_FIFO_INF,4,2                ## @RX_FIFO_INF
	.comm	_RX_FIFO_INF_USED_,4,2          ## @RX_FIFO_INF_USED_
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"rx fifo not empty in autosuspend\n"

	.comm	_EBUSY,4,2                      ## @EBUSY
	.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_3,4,2          ## @PM_CTL_SUS_MODE_3
	.comm	_PM_CTL_RES_CLR_WKP_STS,4,2     ## @PM_CTL_RES_CLR_WKP_STS
	.comm	_PM_CTL_WUPS_WOL_,4,2           ## @PM_CTL_WUPS_WOL_
	.comm	_SUSPEND_SUSPEND3,4,2           ## @SUSPEND_SUSPEND3
	.no_dead_strip	_smsc95xx_enter_suspend3
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function smsc95xx_enter_suspend3
_smsc95xx_enter_suspend3:               ; @smsc95xx_enter_suspend3
	.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]
Lloh0:
	adrp	x8, _RX_FIFO_INF@GOTPAGE
Lloh1:
	ldr	x8, [x8, _RX_FIFO_INF@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	add	x2, sp, #12
	bl	_smsc95xx_read_reg_nopm
	tbnz	w0, #31, LBB0_3
; %bb.1:
	ldr	w8, [sp, #12]
Lloh3:
	adrp	x9, _RX_FIFO_INF_USED_@GOTPAGE
Lloh4:
	ldr	x9, [x9, _RX_FIFO_INF_USED_@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_4
; %bb.2:
	ldr	w0, [x19]
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	bl	_netdev_info
Lloh8:
	adrp	x8, _EBUSY@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_3:
	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
LBB0_4:
Lloh11:
	adrp	x21, _PM_CTRL@GOTPAGE
Lloh12:
	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_3
; %bb.5:
Lloh13:
	adrp	x8, _PM_CTL_SUS_MODE_@GOTPAGE
Lloh14:
	ldr	x8, [x8, _PM_CTL_SUS_MODE_@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
Lloh16:
	adrp	x22, _PM_CTL_WUPS_@GOTPAGE
Lloh17:
	ldr	x22, [x22, _PM_CTL_WUPS_@GOTPAGEOFF]
	ldr	w9, [x22]
	orr	w8, w9, w8
Lloh18:
	adrp	x9, _PM_CTL_PHY_RST_@GOTPAGE
Lloh19:
	ldr	x9, [x9, _PM_CTL_PHY_RST_@GOTPAGEOFF]
Lloh20:
	ldr	w9, [x9]
	orr	w8, w8, w9
	ldr	w9, [sp, #12]
	bic	w8, w9, w8
Lloh21:
	adrp	x9, _PM_CTL_SUS_MODE_3@GOTPAGE
Lloh22:
	ldr	x9, [x9, _PM_CTL_SUS_MODE_3@GOTPAGEOFF]
Lloh23:
	adrp	x10, _PM_CTL_RES_CLR_WKP_STS@GOTPAGE
Lloh24:
	ldr	x10, [x10, _PM_CTL_RES_CLR_WKP_STS@GOTPAGEOFF]
Lloh25:
	ldr	w9, [x9]
Lloh26:
	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_3
; %bb.6:
	ldr	w8, [x22]
	ldr	w9, [sp, #12]
	bic	w8, w9, w8
Lloh27:
	adrp	x9, _PM_CTL_WUPS_WOL_@GOTPAGE
Lloh28:
	ldr	x9, [x9, _PM_CTL_WUPS_WOL_@GOTPAGEOFF]
Lloh29:
	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_3
; %bb.7:
	mov	w0, #0
Lloh30:
	adrp	x8, _SUSPEND_SUSPEND3@GOTPAGE
Lloh31:
	ldr	x8, [x8, _SUSPEND_SUSPEND3@GOTPAGEOFF]
Lloh32:
	ldr	w8, [x8]
	ldr	w9, [x20]
	orr	w8, w9, w8
	str	w8, [x20]
	b	LBB0_3
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh25
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.cfi_endproc
                                        ; -- End function
	.comm	_RX_FIFO_INF,4,2                ; @RX_FIFO_INF
	.comm	_RX_FIFO_INF_USED_,4,2          ; @RX_FIFO_INF_USED_
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"rx fifo not empty in autosuspend\n"

	.comm	_EBUSY,4,2                      ; @EBUSY
	.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_3,4,2          ; @PM_CTL_SUS_MODE_3
	.comm	_PM_CTL_RES_CLR_WKP_STS,4,2     ; @PM_CTL_RES_CLR_WKP_STS
	.comm	_PM_CTL_WUPS_WOL_,4,2           ; @PM_CTL_WUPS_WOL_
	.comm	_SUSPEND_SUSPEND3,4,2           ; @SUSPEND_SUSPEND3
	.no_dead_strip	_smsc95xx_enter_suspend3
.subsections_via_symbols
