	.file	"extr_smsc75xx.c_smsc75xx_enter_suspend3.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"Error reading FCT_RX_CTL\n"
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC1:
	.string	"rx fifo not empty in autosuspend\n"
	.section	.rodata.str1.1
.LC2:
	.string	"Error reading PMT_CTL\n"
.LC3:
	.string	"Error writing PMT_CTL\n"
	.text
	.p2align 4
	.type	smsc75xx_enter_suspend3, @function
smsc75xx_enter_suspend3:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	mov	rbx, rdi
	sub	rsp, 24
	.cfi_def_cfa_offset 64
	mov	esi, DWORD PTR FCT_RX_CTL[rip]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	lea	r13, 4[rsp]
	mov	rax, QWORD PTR 8[rdi]
	mov	rdx, r13
	mov	rbp, QWORD PTR [rax]
	call	smsc75xx_read_reg_nopm@PLT
	test	eax, eax
	js	.L12
	mov	r12d, DWORD PTR 4[rsp]
	and	r12d, DWORD PTR FCT_RX_CTL_RXUSED[rip]
	jne	.L13
	mov	esi, DWORD PTR PMT_CTL[rip]
	mov	rdx, r13
	mov	rdi, rbx
	call	smsc75xx_read_reg_nopm@PLT
	mov	r13d, eax
	test	eax, eax
	js	.L14
	mov	edx, DWORD PTR PMT_CTL_SUS_MODE[rip]
	or	edx, DWORD PTR PMT_CTL_WUPS[rip]
	mov	rdi, rbx
	or	edx, DWORD PTR PMT_CTL_PHY_RST[rip]
	mov	eax, DWORD PTR PMT_CTL_SUS_MODE_3[rip]
	mov	esi, DWORD PTR PMT_CTL[rip]
	or	eax, DWORD PTR PMT_CTL_RES_CLR_WKP_EN[rip]
	not	edx
	and	edx, DWORD PTR 4[rsp]
	or	edx, eax
	mov	DWORD PTR 4[rsp], edx
	call	smsc75xx_write_reg_nopm@PLT
	mov	r13d, eax
	test	eax, eax
	js	.L10
	mov	edx, DWORD PTR PMT_CTL_WUPS[rip]
	mov	esi, DWORD PTR PMT_CTL[rip]
	mov	rdi, rbx
	not	edx
	and	edx, DWORD PTR 4[rsp]
	or	edx, DWORD PTR PMT_CTL_WUPS_WOL[rip]
	mov	DWORD PTR 4[rsp], edx
	call	smsc75xx_write_reg_nopm@PLT
	mov	r13d, eax
	test	eax, eax
	js	.L10
	mov	eax, DWORD PTR SUSPEND_SUSPEND3[rip]
	or	DWORD PTR 0[rbp], eax
.L1:
	mov	rax, QWORD PTR 8[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L15
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	eax, r12d
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L13:
	.cfi_restore_state
	mov	edi, DWORD PTR [rbx]
	lea	rsi, .LC1[rip]
	call	netdev_dbg@PLT
	mov	r12d, DWORD PTR EBUSY[rip]
	neg	r12d
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L14:
	mov	edi, DWORD PTR [rbx]
	lea	rsi, .LC2[rip]
	mov	r12d, r13d
	call	netdev_warn@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L10:
	mov	edi, DWORD PTR [rbx]
	lea	rsi, .LC3[rip]
	mov	r12d, r13d
	call	netdev_warn@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L12:
	mov	edi, DWORD PTR [rbx]
	lea	rsi, .LC0[rip]
	mov	r12d, eax
	call	netdev_warn@PLT
	jmp	.L1
.L15:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	smsc75xx_enter_suspend3, .-smsc75xx_enter_suspend3
	.comm	SUSPEND_SUSPEND3,4,4
	.comm	PMT_CTL_WUPS_WOL,4,4
	.comm	PMT_CTL_WUPS,4,4
	.comm	PMT_CTL_SUS_MODE_3,4,4
	.comm	PMT_CTL_SUS_MODE,4,4
	.comm	PMT_CTL_RES_CLR_WKP_EN,4,4
	.comm	PMT_CTL_PHY_RST,4,4
	.comm	PMT_CTL,4,4
	.comm	FCT_RX_CTL_RXUSED,4,4
	.comm	FCT_RX_CTL,4,4
	.comm	EBUSY,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_smsc75xx.c_smsc75xx_enter_suspend3.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Error reading FCT_RX_CTL\012\000"
	.align	2
.LC1:
	.ascii	"rx fifo not empty in autosuspend\012\000"
	.align	2
.LC2:
	.ascii	"Error reading PMT_CTL\012\000"
	.align	2
.LC3:
	.ascii	"Error writing PMT_CTL\012\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC4:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	smsc75xx_enter_suspend3, %function
smsc75xx_enter_suspend3:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	ldr	r2, .L16
	sub	sp, sp, #8
	ldr	r3, [r0, #4]
	ldr	ip, .L16+4
	ldr	r1, [r2]
	mov	r2, sp
	mov	r6, r0
	ldr	ip, [ip]
	str	ip, [sp, #4]
	mov	ip,#0
	ldr	r5, [r3]
	bl	smsc75xx_read_reg_nopm
	subs	r4, r0, #0
	blt	.L12
	ldr	r3, .L16+8
	ldr	r4, [sp]
	ldr	r3, [r3]
	ands	r4, r4, r3
	bne	.L13
	ldr	r7, .L16+12
	mov	r2, sp
	mov	r0, r6
	ldr	r1, [r7]
	bl	smsc75xx_read_reg_nopm
	subs	r3, r0, #0
	blt	.L14
	ldr	r2, .L16+16
	ldr	r8, .L16+20
	ldr	r2, [r2]
	ldr	r0, [r8]
	ldr	r3, .L16+24
	orr	r2, r2, r0
	ldr	r3, [r3]
	ldr	r1, .L16+28
	ldr	r0, .L16+32
	orr	r3, r2, r3
	ldr	r0, [r0]
	ldr	r2, [sp]
	ldr	r1, [r1]
	bic	r2, r2, r3
	orr	r1, r1, r0
	orr	r2, r2, r1
	mov	r0, r6
	ldr	r1, [r7]
	str	r2, [sp]
	bl	smsc75xx_write_reg_nopm
	subs	r3, r0, #0
	blt	.L10
	ldr	r3, .L16+36
	ldr	r1, [r8]
	ldr	r2, [sp]
	ldr	r3, [r3]
	bic	r2, r2, r1
	orr	r2, r2, r3
	mov	r0, r6
	ldr	r1, [r7]
	str	r2, [sp]
	bl	smsc75xx_write_reg_nopm
	subs	r3, r0, #0
	blt	.L10
	ldr	r2, .L16+40
	ldr	r3, [r5]
	ldr	r2, [r2]
	orr	r3, r3, r2
	str	r3, [r5]
.L1:
	ldr	r3, .L16+4
	ldr	r2, [r3]
	ldr	r3, [sp, #4]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L15
	mov	r0, r4
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, r7, r8, pc}
.L13:
	ldr	r0, [r6]
	ldr	r1, .L16+44
	bl	netdev_dbg
	ldr	r3, .L16+48
	ldr	r4, [r3]
	rsb	r4, r4, #0
	b	.L1
.L14:
	ldr	r0, [r6]
	ldr	r1, .L16+52
	mov	r4, r3
	bl	netdev_warn
	b	.L1
.L10:
	ldr	r0, [r6]
	ldr	r1, .L16+56
	mov	r4, r3
	bl	netdev_warn
	b	.L1
.L12:
	ldr	r0, [r6]
	ldr	r1, .L16+60
	bl	netdev_warn
	b	.L1
.L15:
	bl	__stack_chk_fail
.L17:
	.align	2
.L16:
	.word	FCT_RX_CTL
	.word	.LC4
	.word	FCT_RX_CTL_RXUSED
	.word	PMT_CTL
	.word	PMT_CTL_SUS_MODE
	.word	PMT_CTL_WUPS
	.word	PMT_CTL_PHY_RST
	.word	PMT_CTL_SUS_MODE_3
	.word	PMT_CTL_RES_CLR_WKP_EN
	.word	PMT_CTL_WUPS_WOL
	.word	SUSPEND_SUSPEND3
	.word	.LC1
	.word	EBUSY
	.word	.LC2
	.word	.LC3
	.word	.LC0
	.size	smsc75xx_enter_suspend3, .-smsc75xx_enter_suspend3
	.comm	SUSPEND_SUSPEND3,4,4
	.comm	PMT_CTL_WUPS_WOL,4,4
	.comm	PMT_CTL_WUPS,4,4
	.comm	PMT_CTL_SUS_MODE_3,4,4
	.comm	PMT_CTL_SUS_MODE,4,4
	.comm	PMT_CTL_RES_CLR_WKP_EN,4,4
	.comm	PMT_CTL_PHY_RST,4,4
	.comm	PMT_CTL,4,4
	.comm	FCT_RX_CTL_RXUSED,4,4
	.comm	FCT_RX_CTL,4,4
	.comm	EBUSY,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
