	.file	"extr_pci-sysfs.c_enable_store.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	enable_store, @function
enable_store:
.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
	mov	r12, rdx
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	mov	rbx, rcx
	sub	rsp, 24
	.cfi_def_cfa_offset 64
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	call	to_pci_dev@PLT
	xor	esi, esi
	mov	rdi, r12
	mov	rdx, rsp
	mov	r13, rax
	call	kstrtoul@PLT
	mov	edi, DWORD PTR CAP_SYS_ADMIN[rip]
	call	capable@PLT
	test	eax, eax
	jne	.L2
	mov	rax, QWORD PTR EPERM[rip]
	neg	rax
.L1:
	mov	rsi, QWORD PTR 8[rsp]
	xor	rsi, QWORD PTR fs:40
	jne	.L14
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	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
.L2:
	.cfi_restore_state
	mov	rdi, rbp
	call	device_lock@PLT
	cmp	QWORD PTR 0[rbp], 0
	jne	.L5
	cmp	QWORD PTR [rsp], 0
	mov	rdi, r13
	je	.L6
	call	pci_enable_device@PLT
.L5:
	mov	rdi, rbp
	call	device_unlock@PLT
	mov	rax, rbx
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L6:
	call	pci_is_enabled@PLT
	test	rax, rax
	je	.L5
	mov	rdi, r13
	call	pci_disable_device@PLT
	jmp	.L5
.L14:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	enable_store, .-enable_store
	.comm	EPERM,8,8
	.comm	EIO,8,8
	.comm	EBUSY,8,8
	.comm	CAP_SYS_ADMIN,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-sysfs.c_enable_store.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	enable_store, %function
enable_store:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r6, r3
	ldr	r3, .L15
	sub	sp, sp, #8
	mov	r5, r2
	ldr	r3, [r3]
	str	r3, [sp, #4]
	mov	r3,#0
	mov	r4, r0
	bl	to_pci_dev
	mov	ip, r0
	mov	r2, sp
	mov	r0, r5
	mov	r1, #0
	mov	r5, ip
	bl	kstrtoul
	ldr	r2, .L15+4
	ldr	r0, [r2]
	bl	capable
	cmp	r0, #0
	bne	.L2
	ldr	r3, .L15+8
	ldr	r0, [r3]
	rsb	r0, r0, #0
.L1:
	ldr	r3, .L15
	ldr	r2, [r3]
	ldr	r3, [sp, #4]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L14
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, pc}
.L2:
	mov	r0, r4
	bl	device_lock
	ldr	r3, [r4]
	cmp	r3, #0
	bne	.L5
	ldr	r3, [sp]
	mov	r0, r5
	cmp	r3, #0
	beq	.L6
	bl	pci_enable_device
.L5:
	mov	r0, r4
	bl	device_unlock
	mov	r0, r6
	b	.L1
.L6:
	bl	pci_is_enabled
	cmp	r0, #0
	beq	.L5
	mov	r0, r5
	bl	pci_disable_device
	b	.L5
.L14:
	bl	__stack_chk_fail
.L16:
	.align	2
.L15:
	.word	.LC0
	.word	CAP_SYS_ADMIN
	.word	EPERM
	.size	enable_store, .-enable_store
	.comm	EPERM,4,4
	.comm	EIO,4,4
	.comm	EBUSY,4,4
	.comm	CAP_SYS_ADMIN,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
