	.file	"extr_core.c___pnp_add_device.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	__pnp_add_device
	.type	__pnp_add_device, @function
__pnp_add_device:
.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
	mov	rbp, rdi
	lea	r13, 8[rbp]
	call	pnp_fixup_device@PLT
	mov	eax, DWORD PTR PNP_READY[rip]
	lea	rdi, pnp_lock[rip]
	mov	DWORD PTR 20[rbp], eax
	call	mutex_lock@PLT
	lea	rdi, 16[rbp]
	lea	rsi, pnp_global[rip]
	call	list_add_tail@PLT
	mov	rax, QWORD PTR 0[rbp]
	lea	rdi, 12[rbp]
	lea	rsi, 8[rax]
	call	list_add_tail@PLT
	lea	rdi, pnp_lock[rip]
	call	mutex_unlock@PLT
	mov	rdi, r13
	call	device_register@PLT
	mov	r12d, eax
	test	eax, eax
	jne	.L9
	mov	rax, QWORD PTR 0[rbp]
	mov	rax, QWORD PTR [rax]
	test	rax, rax
	je	.L1
	mov	rdi, rbp
	call	rax
	mov	rdi, r13
	mov	esi, eax
	call	device_set_wakeup_capable@PLT
.L1:
	mov	eax, r12d
	pop	rbp
	.cfi_remember_state
	.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
.L9:
	.cfi_restore_state
	mov	rdi, rbp
	call	pnp_delist_device@PLT
	mov	eax, r12d
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	__pnp_add_device, .-__pnp_add_device
	.comm	pnp_lock,4,4
	.comm	pnp_global,4,4
	.comm	PNP_READY,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_core.c___pnp_add_device.c"
	.text
	.align	2
	.global	__pnp_add_device
	.syntax unified
	.arm
	.fpu softvfp
	.type	__pnp_add_device, %function
__pnp_add_device:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r4, r0
	bl	pnp_fixup_device
	ldr	r3, .L10
	ldr	r0, .L10+4
	ldr	r3, [r3]
	add	r6, r4, #4
	str	r3, [r4, #16]
	bl	mutex_lock
	ldr	r1, .L10+8
	add	r0, r4, #12
	bl	list_add_tail
	mov	r0, r4
	ldr	r1, [r0], #8
	add	r1, r1, #4
	bl	list_add_tail
	ldr	r0, .L10+4
	bl	mutex_unlock
	mov	r0, r6
	bl	device_register
	subs	r5, r0, #0
	bne	.L9
	ldr	r3, [r4]
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L1
	mov	r0, r4
	blx	r3
	mov	r1, r0
	mov	r0, r6
	bl	device_set_wakeup_capable
.L1:
	mov	r0, r5
	pop	{r4, r5, r6, pc}
.L9:
	mov	r0, r4
	bl	pnp_delist_device
	mov	r0, r5
	pop	{r4, r5, r6, pc}
.L11:
	.align	2
.L10:
	.word	PNP_READY
	.word	pnp_lock
	.word	pnp_global
	.size	__pnp_add_device, .-__pnp_add_device
	.comm	pnp_lock,4,4
	.comm	pnp_global,4,4
	.comm	PNP_READY,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
