	.file	"extr_cs.c_pccardd.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"PCMCIA: unable to register socket\n"
	.align 8
.LC1:
	.string	"err %d adding socket attributes\n"
	.text
	.p2align 4
	.type	pccardd, @function
pccardd:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	rbx, rdi
	lea	r14, 4[rbx]
	lea	rbp, 16[rbx]
	sub	rsp, 8
	.cfi_def_cfa_offset 64
	mov	rax, QWORD PTR current[rip]
	mov	QWORD PTR 24[rdi], rax
	mov	eax, DWORD PTR dead_socket[rip]
	mov	DWORD PTR 32[rdi], eax
	mov	rax, QWORD PTR 40[rdi]
	call	[QWORD PTR 8[rax]]
	mov	rax, QWORD PTR 40[rbx]
	lea	rsi, 32[rbx]
	mov	rdi, rbx
	call	[QWORD PTR [rax]]
	mov	rdi, r14
	call	device_register@PLT
	test	eax, eax
	jne	.L30
	mov	rdi, r14
	call	pccard_sysfs_add_socket@PLT
	test	eax, eax
	jne	.L31
.L4:
	mov	rdi, rbp
	lea	r13, 12[rbx]
	lea	r15, 8[rbx]
	call	complete@PLT
	xor	eax, eax
	call	set_freezable@PLT
	.p2align 4,,10
	.p2align 3
.L5:
	mov	edi, DWORD PTR TASK_INTERRUPTIBLE[rip]
	xor	ebp, ebp
	call	set_current_state@PLT
	mov	rsi, rbp
	mov	rdi, r13
	call	spin_lock_irqsave@PLT
	mov	r12d, DWORD PTR [rbx]
	mov	rsi, rbp
	mov	rdi, r13
	mov	DWORD PTR [rbx], 0
	call	spin_unlock_irqrestore@PLT
	test	r12d, r12d
	jne	.L32
	xor	eax, eax
	call	kthread_should_stop@PLT
	test	rax, rax
	jne	.L12
	call	schedule@PLT
	xor	eax, eax
	call	try_to_freeze@PLT
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L32:
	mov	rdi, r15
	call	mutex_lock@PLT
	test	DWORD PTR SS_DETECT[rip], r12d
	jne	.L33
.L7:
	test	DWORD PTR SS_BATDEAD[rip], r12d
	jne	.L34
.L8:
	test	DWORD PTR SS_BATWARN[rip], r12d
	jne	.L35
.L9:
	test	DWORD PTR SS_READY[rip], r12d
	jne	.L36
.L10:
	mov	rdi, r15
	call	mutex_unlock@PLT
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L12:
	mov	edi, DWORD PTR TASK_RUNNING[rip]
	call	set_current_state@PLT
	mov	rdi, r14
	call	pccard_sysfs_remove_socket@PLT
	mov	rdi, r14
	call	device_unregister@PLT
.L3:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	xor	eax, eax
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L31:
	.cfi_restore_state
	mov	edx, eax
	lea	rsi, .LC1[rip]
	mov	rdi, r14
	call	dev_warn@PLT
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L36:
	mov	edx, DWORD PTR CS_EVENT_PRI_LOW[rip]
	mov	esi, DWORD PTR CS_EVENT_READY_CHANGE[rip]
	mov	rdi, rbx
	call	send_event@PLT
	jmp	.L10
	.p2align 4,,10
	.p2align 3
.L35:
	mov	edx, DWORD PTR CS_EVENT_PRI_LOW[rip]
	mov	esi, DWORD PTR CS_EVENT_BATTERY_LOW[rip]
	mov	rdi, rbx
	call	send_event@PLT
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L34:
	mov	edx, DWORD PTR CS_EVENT_PRI_LOW[rip]
	mov	esi, DWORD PTR CS_EVENT_BATTERY_DEAD[rip]
	mov	rdi, rbx
	call	send_event@PLT
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L33:
	mov	rdi, rbx
	call	socket_detect_change@PLT
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L30:
	mov	edi, DWORD PTR KERN_WARNING[rip]
	lea	rdx, .LC0[rip]
	mov	rsi, r14
	call	dev_printk@PLT
	mov	QWORD PTR 24[rbx], 0
	mov	rdi, rbp
	call	complete@PLT
	jmp	.L3
	.cfi_endproc
.LFE0:
	.size	pccardd, .-pccardd
	.comm	dead_socket,4,4
	.comm	current,8,8
	.comm	TASK_RUNNING,4,4
	.comm	TASK_INTERRUPTIBLE,4,4
	.comm	SS_READY,4,4
	.comm	SS_DETECT,4,4
	.comm	SS_BATWARN,4,4
	.comm	SS_BATDEAD,4,4
	.comm	KERN_WARNING,4,4
	.comm	CS_EVENT_READY_CHANGE,4,4
	.comm	CS_EVENT_PRI_LOW,4,4
	.comm	CS_EVENT_BATTERY_LOW,4,4
	.comm	CS_EVENT_BATTERY_DEAD,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_cs.c_pccardd.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"PCMCIA: unable to register socket\012\000"
	.align	2
.LC1:
	.ascii	"err %d adding socket attributes\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	pccardd, %function
pccardd:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r3, r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mov	r4, r0
	ldr	r2, .L37
	ldr	r3, .L37+4
	ldr	r1, [r2]
	ldr	r2, [r3]
	ldr	r3, [r0, #28]
	str	r2, [r0, #24]
	ldr	r3, [r3, #4]
	str	r1, [r0, #20]
	blx	r3
	ldr	r3, [r4, #28]
	add	r1, r4, #24
	ldr	r3, [r3]
	mov	r0, r4
	add	r7, r4, #4
	blx	r3
	mov	r0, r7
	bl	device_register
	cmp	r0, #0
	add	r5, r4, #16
	bne	.L30
	mov	r0, r7
	bl	pccard_sysfs_add_socket
	subs	r2, r0, #0
	bne	.L31
.L4:
	mov	r0, r5
	bl	complete
	bl	set_freezable
	ldr	r6, .L37+8
	ldr	fp, .L37+12
	ldr	r10, .L37+16
	add	r5, r4, #12
.L5:
	mov	r8, #0
	ldr	r0, [r6]
	bl	set_current_state
	mov	r1, r8
	mov	r0, r5
	bl	spin_lock_irqsave
	ldr	r9, [r4]
	mov	r1, r8
	mov	r0, r5
	str	r8, [r4]
	bl	spin_unlock_irqrestore
	cmp	r9, r8
	bne	.L32
	bl	kthread_should_stop
	cmp	r0, #0
	bne	.L12
	bl	schedule
	bl	try_to_freeze
	b	.L5
.L32:
	add	r8, r4, #8
	mov	r0, r8
	bl	mutex_lock
	ldr	r3, [fp]
	tst	r9, r3
	bne	.L33
.L7:
	ldr	r3, [r10]
	tst	r9, r3
	bne	.L34
.L8:
	ldr	r3, .L37+20
	ldr	r3, [r3]
	tst	r9, r3
	bne	.L35
.L9:
	ldr	r3, .L37+24
	ldr	r3, [r3]
	tst	r9, r3
	bne	.L36
.L10:
	mov	r0, r8
	bl	mutex_unlock
	b	.L5
.L12:
	ldr	r3, .L37+28
	ldr	r0, [r3]
	bl	set_current_state
	mov	r0, r7
	bl	pccard_sysfs_remove_socket
	mov	r0, r7
	bl	device_unregister
	mov	r0, #0
	pop	{r3, r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L31:
	mov	r0, r7
	ldr	r1, .L37+32
	bl	dev_warn
	b	.L4
.L36:
	ldr	r3, .L37+36
	mov	r0, r4
	ldr	r2, [r3]
	ldr	r3, .L37+40
	ldr	r1, [r3]
	bl	send_event
	b	.L10
.L35:
	ldr	r3, .L37+44
	ldr	r2, .L37+36
	mov	r0, r4
	ldr	r2, [r2]
	ldr	r1, [r3]
	bl	send_event
	b	.L9
.L34:
	ldr	r3, .L37+48
	ldr	r2, .L37+36
	mov	r0, r4
	ldr	r2, [r2]
	ldr	r1, [r3]
	bl	send_event
	b	.L8
.L33:
	mov	r0, r4
	bl	socket_detect_change
	b	.L7
.L30:
	ldr	r3, .L37+52
	mov	r1, r7
	ldr	r2, .L37+56
	ldr	r0, [r3]
	bl	dev_printk
	mov	r3, #0
	mov	r0, r5
	str	r3, [r4, #20]
	bl	complete
	mov	r0, #0
	pop	{r3, r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L38:
	.align	2
.L37:
	.word	current
	.word	dead_socket
	.word	TASK_INTERRUPTIBLE
	.word	SS_DETECT
	.word	SS_BATDEAD
	.word	SS_BATWARN
	.word	SS_READY
	.word	TASK_RUNNING
	.word	.LC1
	.word	CS_EVENT_PRI_LOW
	.word	CS_EVENT_READY_CHANGE
	.word	CS_EVENT_BATTERY_LOW
	.word	CS_EVENT_BATTERY_DEAD
	.word	KERN_WARNING
	.word	.LC0
	.size	pccardd, .-pccardd
	.comm	dead_socket,4,4
	.comm	current,4,4
	.comm	TASK_RUNNING,4,4
	.comm	TASK_INTERRUPTIBLE,4,4
	.comm	SS_READY,4,4
	.comm	SS_DETECT,4,4
	.comm	SS_BATWARN,4,4
	.comm	SS_BATDEAD,4,4
	.comm	KERN_WARNING,4,4
	.comm	CS_EVENT_READY_CHANGE,4,4
	.comm	CS_EVENT_PRI_LOW,4,4
	.comm	CS_EVENT_BATTERY_LOW,4,4
	.comm	CS_EVENT_BATTERY_DEAD,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
