	.file	"extr_cpci_hotplug_pci.c_cpci_led_on.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"Could not set LOO for slot %s"
	.text
	.p2align 4
	.globl	cpci_led_on
	.type	cpci_led_on, @function
cpci_led_on:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	mov	rbx, rdi
	sub	rsp, 24
	.cfi_def_cfa_offset 48
	mov	esi, DWORD PTR 4[rdi]
	mov	edx, DWORD PTR PCI_CAP_ID_CHSWP[rip]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	mov	edi, DWORD PTR 8[rdi]
	call	pci_bus_find_capability@PLT
	test	eax, eax
	jne	.L2
.L12:
	mov	eax, DWORD PTR ENODEV[rip]
	neg	eax
.L1:
	mov	rdx, QWORD PTR 8[rsp]
	xor	rdx, QWORD PTR fs:40
	jne	.L14
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	lea	r12d, 2[rax]
	mov	esi, DWORD PTR 4[rbx]
	mov	edi, DWORD PTR 8[rbx]
	lea	rcx, 4[rsp]
	mov	edx, r12d
	call	pci_bus_read_config_word@PLT
	test	rax, rax
	jne	.L12
	mov	ecx, DWORD PTR 4[rsp]
	mov	eax, DWORD PTR HS_CSR_LOO[rip]
	mov	edx, ecx
	and	edx, eax
	cmp	eax, edx
	jne	.L5
.L6:
	xor	eax, eax
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L5:
	mov	esi, DWORD PTR 4[rbx]
	mov	edi, DWORD PTR 8[rbx]
	or	ecx, eax
	mov	edx, r12d
	mov	DWORD PTR 4[rsp], ecx
	call	pci_bus_write_config_word@PLT
	test	rax, rax
	je	.L6
	mov	edi, DWORD PTR [rbx]
	call	hotplug_slot_name@PLT
	lea	rdi, .LC0[rip]
	mov	esi, eax
	call	err@PLT
	jmp	.L12
.L14:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	cpci_led_on, .-cpci_led_on
	.comm	PCI_CAP_ID_CHSWP,4,4
	.comm	HS_CSR_LOO,4,4
	.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_cpci_hotplug_pci.c_cpci_led_on.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Could not set LOO for slot %s\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC1:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	cpci_led_on
	.syntax unified
	.arm
	.fpu softvfp
	.type	cpci_led_on, %function
cpci_led_on:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	ldr	r3, .L15
	ldr	r1, [r0, #4]
	ldr	r2, [r3]
	ldr	r3, .L15+4
	sub	sp, sp, #8
	mov	r4, r0
	ldr	r0, [r0, #8]
	ldr	r3, [r3]
	str	r3, [sp, #4]
	mov	r3,#0
	bl	pci_bus_find_capability
	cmp	r0, #0
	bne	.L2
.L12:
	ldr	r3, .L15+8
	ldr	r6, [r3]
	rsb	r6, r6, #0
.L1:
	ldr	r3, .L15+4
	ldr	r2, [r3]
	ldr	r3, [sp, #4]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L14
	mov	r0, r6
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, pc}
.L2:
	add	r5, r0, #2
	mov	r2, r5
	mov	r3, sp
	ldr	r1, [r4, #4]
	ldr	r0, [r4, #8]
	bl	pci_bus_read_config_word
	subs	r6, r0, #0
	bne	.L12
	ldr	r2, .L15+12
	ldr	r3, [sp]
	ldr	r2, [r2]
	bics	r1, r2, r3
	beq	.L1
	orr	r3, r3, r2
	ldr	r1, [r4, #4]
	mov	r2, r5
	ldr	r0, [r4, #8]
	str	r3, [sp]
	bl	pci_bus_write_config_word
	cmp	r0, #0
	beq	.L1
	ldr	r0, [r4]
	bl	hotplug_slot_name
	mov	r1, r0
	ldr	r0, .L15+16
	bl	err
	b	.L12
.L14:
	bl	__stack_chk_fail
.L16:
	.align	2
.L15:
	.word	PCI_CAP_ID_CHSWP
	.word	.LC1
	.word	ENODEV
	.word	HS_CSR_LOO
	.word	.LC0
	.size	cpci_led_on, .-cpci_led_on
	.comm	PCI_CAP_ID_CHSWP,4,4
	.comm	HS_CSR_LOO,4,4
	.comm	ENODEV,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
