	.file	"extr_socket_sysfs.c_pccard_store_resource.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	pccard_store_resource, @function
pccard_store_resource:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	mov	rbx, rcx
	call	to_socket@PLT
	test	rbx, rbx
	jne	.L2
	mov	rax, QWORD PTR EINVAL[rip]
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	neg	rax
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	lea	r12, 24[rax]
	mov	rbp, rax
	xor	esi, esi
	mov	rdi, r12
	call	spin_lock_irqsave@PLT
	mov	eax, DWORD PTR 0[rbp]
	test	eax, eax
	jne	.L4
	mov	DWORD PTR 0[rbp], 1
.L4:
	mov	rdi, r12
	xor	esi, esi
	lea	r12, 8[rbp]
	call	spin_unlock_irqrestore@PLT
	mov	rdi, r12
	call	mutex_lock@PLT
	mov	rax, QWORD PTR 16[rbp]
	test	rax, rax
	je	.L6
	mov	edx, DWORD PTR 4[rbp]
	test	DWORD PTR SOCKET_PRESENT[rip], edx
	je	.L6
	test	DWORD PTR SOCKET_CARDBUS[rip], edx
	jne	.L6
	mov	edi, DWORD PTR [rax]
	call	try_module_get@PLT
	test	rax, rax
	je	.L6
	mov	rax, QWORD PTR 16[rbp]
	mov	rdi, rbp
	xor	esi, esi
	call	[QWORD PTR 8[rax]]
	mov	rax, QWORD PTR 16[rbp]
	mov	edi, DWORD PTR [rax]
	call	module_put@PLT
.L6:
	mov	rdi, r12
	call	mutex_unlock@PLT
	mov	rax, rbx
	pop	rbx
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	pccard_store_resource, .-pccard_store_resource
	.comm	SOCKET_PRESENT,4,4
	.comm	SOCKET_CARDBUS,4,4
	.comm	EINVAL,8,8
	.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_socket_sysfs.c_pccard_store_resource.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	pccard_store_resource, %function
pccard_store_resource:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r4, r3
	bl	to_socket
	cmp	r4, #0
	bne	.L2
	ldr	r3, .L16
	ldr	r0, [r3]
	rsb	r0, r0, #0
	pop	{r4, r5, r6, r7, r8, pc}
.L2:
	mov	r5, r0
	add	r6, r0, #16
	mov	r0, r6
	mov	r1, #0
	bl	spin_lock_irqsave
	ldr	r3, [r5]
	mov	r0, r6
	cmp	r3, #0
	moveq	r3, #1
	mov	r1, #0
	streq	r3, [r5]
	add	r6, r5, #8
	bl	spin_unlock_irqrestore
	mov	r0, r6
	bl	mutex_lock
	ldr	r3, [r5, #12]
	cmp	r3, #0
	beq	.L6
	ldr	r2, .L16+4
	ldr	r1, [r5, #4]
	ldr	r2, [r2]
	tst	r1, r2
	beq	.L6
	ldr	r2, .L16+8
	ldr	r7, [r2]
	ands	r7, r1, r7
	bne	.L6
	ldr	r0, [r3]
	bl	try_module_get
	cmp	r0, #0
	beq	.L6
	ldr	r3, [r5, #12]
	mov	r1, r7
	ldr	r3, [r3, #4]
	mov	r0, r5
	blx	r3
	ldr	r3, [r5, #12]
	ldr	r0, [r3]
	bl	module_put
.L6:
	mov	r0, r6
	bl	mutex_unlock
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, pc}
.L17:
	.align	2
.L16:
	.word	EINVAL
	.word	SOCKET_PRESENT
	.word	SOCKET_CARDBUS
	.size	pccard_store_resource, .-pccard_store_resource
	.comm	SOCKET_PRESENT,4,4
	.comm	SOCKET_CARDBUS,4,4
	.comm	EINVAL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
