	.file	"extr_pci.c_pci_enable_wake.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	pci_enable_wake
	.type	pci_enable_wake, @function
pci_enable_wake:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	mov	rbx, rdi
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	test	edx, edx
	jne	.L14
	mov	eax, DWORD PTR [rdi]
	test	eax, eax
	jne	.L15
.L8:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	xor	eax, eax
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L15:
	.cfi_restore_state
	mov	rdi, rbx
	xor	esi, esi
	call	platform_pci_sleep_wake@PLT
	mov	rdi, rbx
	xor	esi, esi
	call	pci_pme_active@PLT
	mov	DWORD PTR [rbx], 0
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	xor	eax, eax
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L14:
	.cfi_restore_state
	lea	rdi, 4[rdi]
	mov	ebp, esi
	call	device_may_wakeup@PLT
	test	eax, eax
	je	.L16
	mov	edx, DWORD PTR [rbx]
	test	edx, edx
	jne	.L8
	mov	esi, ebp
	mov	rdi, rbx
	call	pci_pme_capable@PLT
	mov	esi, 1
	mov	rdi, rbx
	test	rax, rax
	jne	.L17
	call	platform_pci_sleep_wake@PLT
	test	eax, eax
	je	.L6
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L17:
	.cfi_restore_state
	call	pci_pme_active@PLT
	mov	esi, 1
	mov	rdi, rbx
	call	platform_pci_sleep_wake@PLT
.L6:
	mov	DWORD PTR [rbx], 1
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	xor	eax, eax
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L16:
	.cfi_restore_state
	mov	eax, DWORD PTR EINVAL[rip]
	add	rsp, 8
	.cfi_def_cfa_offset 24
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	neg	eax
	ret
	.cfi_endproc
.LFE0:
	.size	pci_enable_wake, .-pci_enable_wake
	.comm	EINVAL,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_pci.c_pci_enable_wake.c"
	.text
	.align	2
	.global	pci_enable_wake
	.syntax unified
	.arm
	.fpu softvfp
	.type	pci_enable_wake, %function
pci_enable_wake:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	subs	r4, r2, #0
	mov	r5, r0
	bne	.L16
	ldr	r3, [r0]
	cmp	r3, #0
	bne	.L17
.L8:
	mov	r0, #0
	pop	{r4, r5, r6, pc}
.L17:
	mov	r1, r4
	bl	platform_pci_sleep_wake
	mov	r1, r4
	mov	r0, r5
	bl	pci_pme_active
	mov	r0, r4
	str	r4, [r5]
	pop	{r4, r5, r6, pc}
.L16:
	add	r0, r0, #4
	mov	r6, r1
	bl	device_may_wakeup
	cmp	r0, #0
	beq	.L18
	ldr	r3, [r5]
	cmp	r3, #0
	bne	.L8
	mov	r1, r6
	mov	r0, r5
	bl	pci_pme_capable
	cmp	r0, #0
	mov	r1, #1
	mov	r0, r5
	bne	.L19
	bl	platform_pci_sleep_wake
	cmp	r0, #0
	popne	{r4, r5, r6, pc}
	b	.L6
.L19:
	bl	pci_pme_active
	mov	r1, #1
	mov	r0, r5
	bl	platform_pci_sleep_wake
.L6:
	mov	r3, #1
	mov	r0, #0
	str	r3, [r5]
	pop	{r4, r5, r6, pc}
.L18:
	ldr	r3, .L20
	ldr	r0, [r3]
	rsb	r0, r0, #0
	pop	{r4, r5, r6, pc}
.L21:
	.align	2
.L20:
	.word	EINVAL
	.size	pci_enable_wake, .-pci_enable_wake
	.comm	EINVAL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
