	.file	"extr_pciehp_ctrl.c_pciehp_sysfs_disable_slot.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"Slot %s is already in powering off state\n"
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC1:
	.string	"Already disabled on slot %s\n"
.LC2:
	.string	"Not a valid state on slot %s\n"
	.text
	.p2align 4
	.globl	pciehp_sysfs_disable_slot
	.type	pciehp_sysfs_disable_slot, @function
pciehp_sysfs_disable_slot:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	lea	r14, 4[rdi]
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	mov	rbp, rdi
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	mov	r13, QWORD PTR 16[rdi]
	mov	rdi, r14
	mov	r12d, DWORD PTR ENODEV[rip]
	call	mutex_lock@PLT
	mov	eax, DWORD PTR 0[rbp]
	neg	r12d
	add	eax, -128
	cmp	eax, 4
	ja	.L2
	lea	rdx, .L4[rip]
	movsx	rax, DWORD PTR [rdx+rax*4]
	add	rax, rdx
	notrack jmp	rax
	.section	.rodata
	.align 4
	.align 4
.L4:
	.long	.L7-.L4
	.long	.L5-.L4
	.long	.L6-.L4
	.long	.L5-.L4
	.long	.L3-.L4
	.text
	.p2align 4,,10
	.p2align 3
.L3:
	lea	rdi, 8[rbp]
	call	cancel_delayed_work@PLT
.L7:
	mov	DWORD PTR 0[rbp], 130
	mov	rdi, r14
	call	mutex_unlock@PLT
	mov	rdi, rbp
	call	pciehp_disable_slot@PLT
	mov	rdi, r14
	mov	r12d, eax
	call	mutex_lock@PLT
	mov	DWORD PTR 0[rbp], 128
.L8:
	mov	rdi, r14
	call	mutex_unlock@PLT
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	eax, r12d
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L5:
	.cfi_restore_state
	mov	rdi, rbp
	call	slot_name@PLT
	lea	rsi, .LC1[rip]
	mov	rdi, r13
	mov	edx, eax
	call	ctrl_info@PLT
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L6:
	mov	rdi, rbp
	call	slot_name@PLT
	lea	rsi, .LC0[rip]
	mov	rdi, r13
	mov	edx, eax
	call	ctrl_info@PLT
	jmp	.L8
.L2:
	mov	rdi, rbp
	call	slot_name@PLT
	lea	rsi, .LC2[rip]
	mov	rdi, r13
	mov	edx, eax
	call	ctrl_err@PLT
	jmp	.L8
	.cfi_endproc
.LFE0:
	.size	pciehp_sysfs_disable_slot, .-pciehp_sysfs_disable_slot
	.comm	ENODEV,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_pciehp_ctrl.c_pciehp_sysfs_disable_slot.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Slot %s is already in powering off state\012\000"
	.align	2
.LC1:
	.ascii	"Already disabled on slot %s\012\000"
	.align	2
.LC2:
	.ascii	"Not a valid state on slot %s\012\000"
	.text
	.align	2
	.global	pciehp_sysfs_disable_slot
	.syntax unified
	.arm
	.fpu softvfp
	.type	pciehp_sysfs_disable_slot, %function
pciehp_sysfs_disable_slot:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r4, r0
	ldr	r3, .L11
	add	r6, r0, #4
	mov	r0, r6
	ldr	r5, [r3]
	ldr	r7, [r4, #12]
	bl	mutex_lock
	ldr	r3, [r4]
	rsb	r5, r5, #0
	sub	r3, r3, #128
	cmp	r3, #4
	ldrls	pc, [pc, r3, asl #2]
	b	.L2
.L4:
	.word	.L7
	.word	.L5
	.word	.L6
	.word	.L5
	.word	.L3
.L3:
	add	r0, r4, #8
	bl	cancel_delayed_work
.L7:
	mov	r3, #130
	mov	r0, r6
	str	r3, [r4]
	bl	mutex_unlock
	mov	r0, r4
	bl	pciehp_disable_slot
	mov	r5, r0
	mov	r0, r6
	bl	mutex_lock
	mov	r3, #128
	str	r3, [r4]
.L8:
	mov	r0, r6
	bl	mutex_unlock
	mov	r0, r5
	pop	{r4, r5, r6, r7, r8, pc}
.L5:
	mov	r0, r4
	bl	slot_name
	ldr	r1, .L11+4
	mov	r2, r0
	mov	r0, r7
	bl	ctrl_info
	b	.L8
.L6:
	mov	r0, r4
	bl	slot_name
	ldr	r1, .L11+8
	mov	r2, r0
	mov	r0, r7
	bl	ctrl_info
	b	.L8
.L2:
	mov	r0, r4
	bl	slot_name
	ldr	r1, .L11+12
	mov	r2, r0
	mov	r0, r7
	bl	ctrl_err
	b	.L8
.L12:
	.align	2
.L11:
	.word	ENODEV
	.word	.LC1
	.word	.LC0
	.word	.LC2
	.size	pciehp_sysfs_disable_slot, .-pciehp_sysfs_disable_slot
	.comm	ENODEV,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
