	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function smsc75xx_enter_suspend3
_smsc75xx_enter_suspend3:               ## @smsc75xx_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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	8(%rdi), %rax
	movq	(%rax), %r15
	movq	_FCT_RX_CTL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-44(%rbp), %rdx
	callq	_smsc75xx_read_reg_nopm
	testl	%eax, %eax
	js	LBB0_3
## %bb.1:
	movq	_FCT_RX_CTL_RXUSED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, -44(%rbp)
	je	LBB0_6
## %bb.2:
	movl	(%r14), %edi
	leaq	L_.str.1(%rip), %rsi
	callq	_netdev_dbg
	movq	_EBUSY@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_5
LBB0_3:
	movl	%eax, %ebx
	movl	(%r14), %edi
	leaq	L_.str(%rip), %rsi
LBB0_4:
	callq	_netdev_warn
LBB0_5:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	movq	_PMT_CTL@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	leaq	-44(%rbp), %rdx
	movq	%r14, %rdi
	callq	_smsc75xx_read_reg_nopm
	testl	%eax, %eax
	js	LBB0_10
## %bb.7:
	movq	_PMT_CTL_SUS_MODE@GOTPCREL(%rip), %rax
	movq	_PMT_CTL_WUPS@GOTPCREL(%rip), %r13
	movl	(%r13), %edx
	orl	(%rax), %edx
	movq	_PMT_CTL_PHY_RST@GOTPCREL(%rip), %rax
	orl	(%rax), %edx
	notl	%edx
	andl	-44(%rbp), %edx
	movq	_PMT_CTL_SUS_MODE_3@GOTPCREL(%rip), %rax
	movq	_PMT_CTL_RES_CLR_WKP_EN@GOTPCREL(%rip), %rcx
	orl	(%rax), %edx
	orl	(%rcx), %edx
	movl	%edx, -44(%rbp)
	movl	(%r12), %esi
	movq	%r14, %rdi
	callq	_smsc75xx_write_reg_nopm
	testl	%eax, %eax
	js	LBB0_11
## %bb.8:
	movl	(%r13), %edx
	notl	%edx
	andl	-44(%rbp), %edx
	movq	_PMT_CTL_WUPS_WOL@GOTPCREL(%rip), %rax
	orl	(%rax), %edx
	movl	%edx, -44(%rbp)
	movl	(%r12), %esi
	movq	%r14, %rdi
	callq	_smsc75xx_write_reg_nopm
	testl	%eax, %eax
	js	LBB0_11
## %bb.9:
	movq	_SUSPEND_SUSPEND3@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, (%r15)
	xorl	%ebx, %ebx
	jmp	LBB0_5
LBB0_10:
	movl	%eax, %ebx
	movl	(%r14), %edi
	leaq	L_.str.2(%rip), %rsi
	jmp	LBB0_4
LBB0_11:
	movl	%eax, %ebx
	movl	(%r14), %edi
	leaq	L_.str.3(%rip), %rsi
	jmp	LBB0_4
	.cfi_endproc
                                        ## -- End function
	.comm	_FCT_RX_CTL,4,2                 ## @FCT_RX_CTL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Error reading FCT_RX_CTL\n"

	.comm	_FCT_RX_CTL_RXUSED,4,2          ## @FCT_RX_CTL_RXUSED
L_.str.1:                               ## @.str.1
	.asciz	"rx fifo not empty in autosuspend\n"

	.comm	_EBUSY,4,2                      ## @EBUSY
	.comm	_PMT_CTL,4,2                    ## @PMT_CTL
L_.str.2:                               ## @.str.2
	.asciz	"Error reading PMT_CTL\n"

	.comm	_PMT_CTL_SUS_MODE,4,2           ## @PMT_CTL_SUS_MODE
	.comm	_PMT_CTL_WUPS,4,2               ## @PMT_CTL_WUPS
	.comm	_PMT_CTL_PHY_RST,4,2            ## @PMT_CTL_PHY_RST
	.comm	_PMT_CTL_SUS_MODE_3,4,2         ## @PMT_CTL_SUS_MODE_3
	.comm	_PMT_CTL_RES_CLR_WKP_EN,4,2     ## @PMT_CTL_RES_CLR_WKP_EN
L_.str.3:                               ## @.str.3
	.asciz	"Error writing PMT_CTL\n"

	.comm	_PMT_CTL_WUPS_WOL,4,2           ## @PMT_CTL_WUPS_WOL
	.comm	_SUSPEND_SUSPEND3,4,2           ## @SUSPEND_SUSPEND3
	.no_dead_strip	_smsc75xx_enter_suspend3
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function smsc75xx_enter_suspend3
_smsc75xx_enter_suspend3:               ; @smsc75xx_enter_suspend3
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x19, x0
	ldr	x8, [x0, #8]
	ldr	x21, [x8]
Lloh0:
	adrp	x8, _FCT_RX_CTL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _FCT_RX_CTL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	add	x2, sp, #12
	bl	_smsc75xx_read_reg_nopm
	tbnz	w0, #31, LBB0_3
; %bb.1:
	ldr	w8, [sp, #12]
Lloh3:
	adrp	x9, _FCT_RX_CTL_RXUSED@GOTPAGE
Lloh4:
	ldr	x9, [x9, _FCT_RX_CTL_RXUSED@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_6
; %bb.2:
	ldr	w0, [x19]
Lloh6:
	adrp	x1, l_.str.1@PAGE
Lloh7:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_netdev_dbg
Lloh8:
	adrp	x8, _EBUSY@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	neg	w20, w8
	b	LBB0_5
LBB0_3:
	mov	x20, x0
	ldr	w0, [x19]
Lloh11:
	adrp	x1, l_.str@PAGE
Lloh12:
	add	x1, x1, l_.str@PAGEOFF
LBB0_4:
	bl	_netdev_warn
LBB0_5:
	mov	x0, x20
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_6:
Lloh13:
	adrp	x22, _PMT_CTL@GOTPAGE
Lloh14:
	ldr	x22, [x22, _PMT_CTL@GOTPAGEOFF]
	ldr	w1, [x22]
	add	x2, sp, #12
	mov	x0, x19
	bl	_smsc75xx_read_reg_nopm
	tbnz	w0, #31, LBB0_10
; %bb.7:
Lloh15:
	adrp	x8, _PMT_CTL_SUS_MODE@GOTPAGE
Lloh16:
	ldr	x8, [x8, _PMT_CTL_SUS_MODE@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
Lloh18:
	adrp	x23, _PMT_CTL_WUPS@GOTPAGE
Lloh19:
	ldr	x23, [x23, _PMT_CTL_WUPS@GOTPAGEOFF]
	ldr	w9, [x23]
	orr	w8, w9, w8
Lloh20:
	adrp	x9, _PMT_CTL_PHY_RST@GOTPAGE
Lloh21:
	ldr	x9, [x9, _PMT_CTL_PHY_RST@GOTPAGEOFF]
Lloh22:
	ldr	w9, [x9]
	orr	w8, w8, w9
	ldr	w9, [sp, #12]
	bic	w8, w9, w8
Lloh23:
	adrp	x9, _PMT_CTL_SUS_MODE_3@GOTPAGE
Lloh24:
	ldr	x9, [x9, _PMT_CTL_SUS_MODE_3@GOTPAGEOFF]
Lloh25:
	adrp	x10, _PMT_CTL_RES_CLR_WKP_EN@GOTPAGE
Lloh26:
	ldr	x10, [x10, _PMT_CTL_RES_CLR_WKP_EN@GOTPAGEOFF]
Lloh27:
	ldr	w9, [x9]
Lloh28:
	ldr	w10, [x10]
	orr	w8, w9, w8
	orr	w2, w8, w10
	str	w2, [sp, #12]
	ldr	w1, [x22]
	mov	x0, x19
	bl	_smsc75xx_write_reg_nopm
	tbnz	w0, #31, LBB0_11
; %bb.8:
	ldr	w8, [x23]
	ldr	w9, [sp, #12]
	bic	w8, w9, w8
Lloh29:
	adrp	x9, _PMT_CTL_WUPS_WOL@GOTPAGE
Lloh30:
	ldr	x9, [x9, _PMT_CTL_WUPS_WOL@GOTPAGEOFF]
Lloh31:
	ldr	w9, [x9]
	orr	w2, w9, w8
	str	w2, [sp, #12]
	ldr	w1, [x22]
	mov	x0, x19
	bl	_smsc75xx_write_reg_nopm
	tbnz	w0, #31, LBB0_11
; %bb.9:
	mov	w20, #0
Lloh32:
	adrp	x8, _SUSPEND_SUSPEND3@GOTPAGE
Lloh33:
	ldr	x8, [x8, _SUSPEND_SUSPEND3@GOTPAGEOFF]
Lloh34:
	ldr	w8, [x8]
	ldr	w9, [x21]
	orr	w8, w9, w8
	str	w8, [x21]
	b	LBB0_5
LBB0_10:
	mov	x20, x0
	ldr	w0, [x19]
Lloh35:
	adrp	x1, l_.str.2@PAGE
Lloh36:
	add	x1, x1, l_.str.2@PAGEOFF
	b	LBB0_4
LBB0_11:
	mov	x20, x0
	ldr	w0, [x19]
Lloh37:
	adrp	x1, l_.str.3@PAGE
Lloh38:
	add	x1, x1, l_.str.3@PAGEOFF
	b	LBB0_4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh27
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpAdd	Lloh35, Lloh36
	.loh AdrpAdd	Lloh37, Lloh38
	.cfi_endproc
                                        ; -- End function
	.comm	_FCT_RX_CTL,4,2                 ; @FCT_RX_CTL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Error reading FCT_RX_CTL\n"

	.comm	_FCT_RX_CTL_RXUSED,4,2          ; @FCT_RX_CTL_RXUSED
l_.str.1:                               ; @.str.1
	.asciz	"rx fifo not empty in autosuspend\n"

	.comm	_EBUSY,4,2                      ; @EBUSY
	.comm	_PMT_CTL,4,2                    ; @PMT_CTL
l_.str.2:                               ; @.str.2
	.asciz	"Error reading PMT_CTL\n"

	.comm	_PMT_CTL_SUS_MODE,4,2           ; @PMT_CTL_SUS_MODE
	.comm	_PMT_CTL_WUPS,4,2               ; @PMT_CTL_WUPS
	.comm	_PMT_CTL_PHY_RST,4,2            ; @PMT_CTL_PHY_RST
	.comm	_PMT_CTL_SUS_MODE_3,4,2         ; @PMT_CTL_SUS_MODE_3
	.comm	_PMT_CTL_RES_CLR_WKP_EN,4,2     ; @PMT_CTL_RES_CLR_WKP_EN
l_.str.3:                               ; @.str.3
	.asciz	"Error writing PMT_CTL\n"

	.comm	_PMT_CTL_WUPS_WOL,4,2           ; @PMT_CTL_WUPS_WOL
	.comm	_SUSPEND_SUSPEND3,4,2           ; @SUSPEND_SUSPEND3
	.no_dead_strip	_smsc75xx_enter_suspend3
.subsections_via_symbols
