	.file	"extr_pcmcia_ioctl.c_pccard_get_status.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	pccard_get_status, @function
pccard_get_status:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	mov	r12, rsi
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	mov	rbx, rdx
	sub	rsp, 16
	.cfi_def_cfa_offset 48
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	mov	rax, QWORD PTR 8[rdi]
	mov	rsi, rsp
	call	[QWORD PTR [rax]]
	mov	edx, DWORD PTR [rsp]
	mov	eax, 0
	test	DWORD PTR SS_DETECT[rip], edx
	mov	QWORD PTR 8[rbx], 0
	cmovne	rax, QWORD PTR CS_EVENT_CARD_DETECT[rip]
	test	DWORD PTR SS_CARDBUS[rip], edx
	je	.L3
	or	rax, QWORD PTR CS_EVENT_CB_DETECT[rip]
.L3:
	test	DWORD PTR SS_3VCARD[rip], edx
	je	.L4
	or	rax, QWORD PTR CS_EVENT_3VCARD[rip]
.L4:
	test	DWORD PTR SS_XVCARD[rip], edx
	je	.L5
	or	rax, QWORD PTR CS_EVENT_XVCARD[rip]
.L5:
	mov	QWORD PTR [rbx], rax
	mov	ecx, DWORD PTR 0[rbp]
	test	DWORD PTR SOCKET_SUSPEND[rip], ecx
	je	.L6
	or	rax, QWORD PTR CS_EVENT_PM_SUSPEND[rip]
	mov	QWORD PTR [rbx], rax
.L6:
	mov	eax, DWORD PTR ENODEV[rip]
	neg	eax
	test	DWORD PTR SOCKET_PRESENT[rip], ecx
	je	.L1
	test	r12, r12
	je	.L9
	mov	r12, QWORD PTR [r12]
	test	r12, r12
	je	.L9
	mov	eax, DWORD PTR [r12]
	test	DWORD PTR CONFIG_LOCKED[rip], eax
	je	.L9
	mov	eax, DWORD PTR INT_MEMORY_AND_IO[rip]
	or	eax, DWORD PTR INT_ZOOMED_VIDEO[rip]
	test	DWORD PTR 4[r12], eax
	je	.L9
	mov	eax, DWORD PTR 8[r12]
	test	DWORD PTR PRESENT_PIN_REPLACE[rip], eax
	jne	.L81
	mov	rdx, QWORD PTR CS_EVENT_READY_CHANGE[rip]
	or	QWORD PTR [rbx], rdx
.L15:
	test	DWORD PTR PRESENT_EXT_STATUS[rip], eax
	je	.L79
	mov	edx, DWORD PTR CISREG_ESR[rip]
	add	edx, DWORD PTR 12[r12]
	lea	r8, 4[rsp]
	mov	rdi, rbp
	sar	edx
	mov	ecx, 1
	mov	esi, 1
	call	pcmcia_read_cis_mem@PLT
	mov	rax, QWORD PTR [rbx]
	mov	edx, DWORD PTR 4[rsp]
	test	DWORD PTR ESR_REQ_ATTN[rip], edx
	je	.L21
	or	rax, QWORD PTR CS_EVENT_REQUEST_ATTENTION[rip]
	.p2align 4,,10
	.p2align 3
.L21:
	mov	QWORD PTR [rbx], rax
.L79:
	xor	eax, eax
.L1:
	mov	rcx, QWORD PTR 8[rsp]
	xor	rcx, QWORD PTR fs:40
	jne	.L82
	add	rsp, 16
	.cfi_remember_state
	.cfi_def_cfa_offset 32
	pop	rbx
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L9:
	.cfi_restore_state
	mov	rax, QWORD PTR [rbx]
	test	DWORD PTR SS_WRPROT[rip], edx
	je	.L18
	or	rax, QWORD PTR CS_EVENT_WRITE_PROTECT[rip]
.L18:
	test	DWORD PTR SS_BATDEAD[rip], edx
	je	.L19
	or	rax, QWORD PTR CS_EVENT_BATTERY_DEAD[rip]
.L19:
	test	DWORD PTR SS_BATWARN[rip], edx
	je	.L20
	or	rax, QWORD PTR CS_EVENT_BATTERY_LOW[rip]
.L20:
	test	DWORD PTR SS_READY[rip], edx
	je	.L21
	or	rax, QWORD PTR CS_EVENT_READY_CHANGE[rip]
	mov	QWORD PTR [rbx], rax
	jmp	.L79
	.p2align 4,,10
	.p2align 3
.L81:
	mov	edx, DWORD PTR CISREG_PRR[rip]
	add	edx, DWORD PTR 12[r12]
	lea	r8, 4[rsp]
	mov	rdi, rbp
	sar	edx
	mov	ecx, 1
	mov	esi, 1
	call	pcmcia_read_cis_mem@PLT
	mov	rax, QWORD PTR [rbx]
	mov	edx, DWORD PTR 4[rsp]
	test	DWORD PTR PRR_WP_STATUS[rip], edx
	je	.L11
	or	rax, QWORD PTR CS_EVENT_WRITE_PROTECT[rip]
.L11:
	test	DWORD PTR PRR_READY_STATUS[rip], edx
	je	.L12
	or	rax, QWORD PTR CS_EVENT_READY_CHANGE[rip]
.L12:
	test	DWORD PTR PRR_BVD2_STATUS[rip], edx
	je	.L13
	or	rax, QWORD PTR CS_EVENT_BATTERY_LOW[rip]
.L13:
	test	DWORD PTR PRR_BVD1_STATUS[rip], edx
	je	.L14
	or	rax, QWORD PTR CS_EVENT_BATTERY_DEAD[rip]
.L14:
	mov	QWORD PTR [rbx], rax
	mov	eax, DWORD PTR 8[r12]
	jmp	.L15
.L82:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	pccard_get_status, .-pccard_get_status
	.comm	SS_XVCARD,4,4
	.comm	SS_WRPROT,4,4
	.comm	SS_READY,4,4
	.comm	SS_DETECT,4,4
	.comm	SS_CARDBUS,4,4
	.comm	SS_BATWARN,4,4
	.comm	SS_BATDEAD,4,4
	.comm	SS_3VCARD,4,4
	.comm	SOCKET_SUSPEND,4,4
	.comm	SOCKET_PRESENT,4,4
	.comm	PRR_WP_STATUS,4,4
	.comm	PRR_READY_STATUS,4,4
	.comm	PRR_BVD2_STATUS,4,4
	.comm	PRR_BVD1_STATUS,4,4
	.comm	PRESENT_PIN_REPLACE,4,4
	.comm	PRESENT_EXT_STATUS,4,4
	.comm	INT_ZOOMED_VIDEO,4,4
	.comm	INT_MEMORY_AND_IO,4,4
	.comm	ESR_REQ_ATTN,4,4
	.comm	ENODEV,4,4
	.comm	CS_EVENT_XVCARD,8,8
	.comm	CS_EVENT_WRITE_PROTECT,8,8
	.comm	CS_EVENT_REQUEST_ATTENTION,8,8
	.comm	CS_EVENT_READY_CHANGE,8,8
	.comm	CS_EVENT_PM_SUSPEND,8,8
	.comm	CS_EVENT_CB_DETECT,8,8
	.comm	CS_EVENT_CARD_DETECT,8,8
	.comm	CS_EVENT_BATTERY_LOW,8,8
	.comm	CS_EVENT_BATTERY_DEAD,8,8
	.comm	CS_EVENT_3VCARD,8,8
	.comm	CONFIG_LOCKED,4,4
	.comm	CISREG_PRR,4,4
	.comm	CISREG_ESR,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_pcmcia_ioctl.c_pccard_get_status.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	pccard_get_status, %function
pccard_get_status:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	ldr	r3, [r0, #4]
	mov	r4, r2
	sub	sp, sp, #24
	ldr	r2, .L87
	ldr	r3, [r3]
	mov	r6, r1
	add	r1, sp, #12
	mov	r5, r0
	ldr	r2, [r2]
	str	r2, [sp, #20]
	mov	r2,#0
	blx	r3
	mov	r2, #0
	ldr	r3, .L87+4
	ldr	lr, [sp, #12]
	ldr	r3, [r3]
	str	r2, [r4, #4]
	ldr	r2, .L87+8
	ands	r3, lr, r3
	ldrne	r3, .L87+12
	ldr	r2, [r2]
	ldrne	r3, [r3]
	tst	lr, r2
	ldrne	r2, .L87+16
	ldr	ip, [r5]
	ldrne	r2, [r2]
	orrne	r3, r3, r2
	ldr	r2, .L87+20
	ldr	r2, [r2]
	tst	lr, r2
	ldrne	r2, .L87+24
	ldrne	r2, [r2]
	orrne	r3, r3, r2
	ldr	r2, .L87+28
	ldr	r2, [r2]
	tst	lr, r2
	ldrne	r2, .L87+32
	ldrne	r2, [r2]
	orrne	r3, r3, r2
	ldr	r2, .L87+36
	ldr	r2, [r2]
	str	r3, [r4]
	tst	ip, r2
	ldrne	r2, .L87+40
	ldrne	r2, [r2]
	orrne	r3, r2, r3
	strne	r3, [r4]
	ldr	r3, .L87+44
	ldr	r3, [r3]
	tst	ip, r3
	beq	.L82
	cmp	r6, #0
	beq	.L9
	ldr	r6, [r6]
	cmp	r6, #0
	beq	.L9
	ldr	r3, .L87+48
	ldr	r2, [r6]
	ldr	r3, [r3]
	tst	r2, r3
	bne	.L83
.L9:
	ldr	r2, .L87+52
	mov	r0, #0
	ldr	r2, [r2]
	ldr	r3, [r4]
	tst	lr, r2
	ldrne	r2, .L87+56
	ldrne	r2, [r2]
	orrne	r3, r3, r2
	ldr	r2, .L87+60
	ldr	r2, [r2]
	tst	lr, r2
	ldrne	r2, .L87+64
	ldrne	r2, [r2]
	orrne	r3, r3, r2
	ldr	r2, .L87+68
	ldr	r2, [r2]
	tst	lr, r2
	ldrne	r2, .L87+72
	ldrne	r2, [r2]
	orrne	r3, r3, r2
	ldr	r2, .L87+76
	ldr	r2, [r2]
	tst	lr, r2
	ldrne	r2, .L87+80
	ldrne	r2, [r2]
	orrne	r3, r3, r2
	str	r3, [r4]
.L1:
	ldr	r3, .L87
	ldr	r2, [r3]
	ldr	r3, [sp, #20]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L84
	add	sp, sp, #24
	@ sp needed
	pop	{r4, r5, r6, pc}
.L82:
	ldr	r3, .L87+84
	ldr	r0, [r3]
	rsb	r0, r0, #0
	b	.L1
.L83:
	ldr	r2, .L87+88
	ldr	r3, .L87+92
	ldr	r1, [r2]
	ldr	r3, [r3]
	ldr	r2, [r6, #4]
	orr	r3, r3, r1
	tst	r3, r2
	beq	.L9
	ldr	r2, .L87+96
	ldr	r3, [r6, #8]
	ldr	r2, [r2]
	tst	r3, r2
	bne	.L85
	ldr	r1, .L87+80
	ldr	r2, [r4]
	ldr	r1, [r1]
	orr	r2, r2, r1
	str	r2, [r4]
.L15:
	ldr	r2, .L87+100
	ldr	r2, [r2]
	tst	r3, r2
	bne	.L86
.L16:
	mov	r0, #0
	b	.L1
.L85:
	mov	r3, #1
	ldr	r1, .L87+104
	ldr	r2, [r6, #12]
	ldr	r1, [r1]
	add	r0, sp, #16
	add	r2, r2, r1
	asr	r2, r2, r3
	mov	r1, r3
	str	r0, [sp]
	mov	r0, r5
	bl	pcmcia_read_cis_mem
	ldr	r3, .L87+108
	ldr	r2, [sp, #16]
	ldr	r1, [r3]
	ldr	r3, [r4]
	tst	r2, r1
	ldrne	r1, .L87+56
	ldrne	r1, [r1]
	orrne	r3, r3, r1
	ldr	r1, .L87+112
	ldr	r1, [r1]
	tst	r2, r1
	ldrne	r1, .L87+80
	ldrne	r1, [r1]
	orrne	r3, r3, r1
	ldr	r1, .L87+116
	ldr	r1, [r1]
	tst	r2, r1
	ldrne	r1, .L87+72
	ldrne	r1, [r1]
	orrne	r3, r3, r1
	ldr	r1, .L87+120
	ldr	r1, [r1]
	tst	r2, r1
	ldrne	r2, .L87+64
	ldrne	r2, [r2]
	orrne	r3, r3, r2
	str	r3, [r4]
	ldr	r3, [r6, #8]
	b	.L15
.L86:
	mov	r3, #1
	ldr	r1, .L87+124
	ldr	r2, [r6, #12]
	ldr	r1, [r1]
	add	ip, sp, #16
	add	r2, r2, r1
	asr	r2, r2, r3
	mov	r1, r3
	mov	r0, r5
	str	ip, [sp]
	bl	pcmcia_read_cis_mem
	ldr	r3, .L87+128
	ldr	r1, [sp, #16]
	ldr	r2, [r3]
	ldr	r3, [r4]
	tst	r1, r2
	ldrne	r2, .L87+132
	ldrne	r2, [r2]
	orrne	r3, r3, r2
	str	r3, [r4]
	b	.L16
.L84:
	bl	__stack_chk_fail
.L88:
	.align	2
.L87:
	.word	.LC0
	.word	SS_DETECT
	.word	SS_CARDBUS
	.word	CS_EVENT_CARD_DETECT
	.word	CS_EVENT_CB_DETECT
	.word	SS_3VCARD
	.word	CS_EVENT_3VCARD
	.word	SS_XVCARD
	.word	CS_EVENT_XVCARD
	.word	SOCKET_SUSPEND
	.word	CS_EVENT_PM_SUSPEND
	.word	SOCKET_PRESENT
	.word	CONFIG_LOCKED
	.word	SS_WRPROT
	.word	CS_EVENT_WRITE_PROTECT
	.word	SS_BATDEAD
	.word	CS_EVENT_BATTERY_DEAD
	.word	SS_BATWARN
	.word	CS_EVENT_BATTERY_LOW
	.word	SS_READY
	.word	CS_EVENT_READY_CHANGE
	.word	ENODEV
	.word	INT_ZOOMED_VIDEO
	.word	INT_MEMORY_AND_IO
	.word	PRESENT_PIN_REPLACE
	.word	PRESENT_EXT_STATUS
	.word	CISREG_PRR
	.word	PRR_WP_STATUS
	.word	PRR_READY_STATUS
	.word	PRR_BVD2_STATUS
	.word	PRR_BVD1_STATUS
	.word	CISREG_ESR
	.word	ESR_REQ_ATTN
	.word	CS_EVENT_REQUEST_ATTENTION
	.size	pccard_get_status, .-pccard_get_status
	.comm	SS_XVCARD,4,4
	.comm	SS_WRPROT,4,4
	.comm	SS_READY,4,4
	.comm	SS_DETECT,4,4
	.comm	SS_CARDBUS,4,4
	.comm	SS_BATWARN,4,4
	.comm	SS_BATDEAD,4,4
	.comm	SS_3VCARD,4,4
	.comm	SOCKET_SUSPEND,4,4
	.comm	SOCKET_PRESENT,4,4
	.comm	PRR_WP_STATUS,4,4
	.comm	PRR_READY_STATUS,4,4
	.comm	PRR_BVD2_STATUS,4,4
	.comm	PRR_BVD1_STATUS,4,4
	.comm	PRESENT_PIN_REPLACE,4,4
	.comm	PRESENT_EXT_STATUS,4,4
	.comm	INT_ZOOMED_VIDEO,4,4
	.comm	INT_MEMORY_AND_IO,4,4
	.comm	ESR_REQ_ATTN,4,4
	.comm	ENODEV,4,4
	.comm	CS_EVENT_XVCARD,4,4
	.comm	CS_EVENT_WRITE_PROTECT,4,4
	.comm	CS_EVENT_REQUEST_ATTENTION,4,4
	.comm	CS_EVENT_READY_CHANGE,4,4
	.comm	CS_EVENT_PM_SUSPEND,4,4
	.comm	CS_EVENT_CB_DETECT,4,4
	.comm	CS_EVENT_CARD_DETECT,4,4
	.comm	CS_EVENT_BATTERY_LOW,4,4
	.comm	CS_EVENT_BATTERY_DEAD,4,4
	.comm	CS_EVENT_3VCARD,4,4
	.comm	CONFIG_LOCKED,4,4
	.comm	CISREG_PRR,4,4
	.comm	CISREG_ESR,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
