	.file	"extr_pxa2xx_trizeps4.c_trizeps_pcmcia_socket_state.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	trizeps_pcmcia_socket_state, @function
trizeps_pcmcia_socket_state:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	xor	eax, eax
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	mov	rbx, rsi
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	call	CFSR_readw@PLT
	mov	rdx, QWORD PTR 0[rbp]
	mov	rcx, QWORD PTR trizeps_pcmcia_status[rip]
	lea	rcx, [rcx+rdx*2]
	movzx	esi, WORD PTR [rcx]
	xor	esi, eax
	test	WORD PTR ConXS_CFSR_BVD_MASK[rip], si
	je	.L2
	mov	WORD PTR [rcx], ax
.L2:
	test	rdx, rdx
	je	.L3
	cmp	rdx, 1
	jne	.L1
	mov	QWORD PTR [rbx], 0
	mov	QWORD PTR 8[rbx], 0
	mov	QWORD PTR 16[rbx], 0
.L1:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L3:
	.cfi_restore_state
	xor	edx, edx
	test	WORD PTR ConXS_CFSR_BVD1[rip], ax
	setne	dl
	mov	DWORD PTR [rbx], edx
	xor	edx, edx
	test	WORD PTR ConXS_CFSR_BVD2[rip], ax
	setne	dl
	mov	DWORD PTR 4[rbx], edx
	xor	edx, edx
	test	WORD PTR ConXS_CFSR_VS1[rip], ax
	sete	dl
	test	WORD PTR ConXS_CFSR_VS2[rip], ax
	sete	al
	mov	DWORD PTR 8[rbx], edx
	movzx	eax, al
	mov	DWORD PTR 12[rbx], eax
	add	rsp, 8
	.cfi_def_cfa_offset 24
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	trizeps_pcmcia_socket_state, .-trizeps_pcmcia_socket_state
	.comm	trizeps_pcmcia_status,8,8
	.comm	ConXS_CFSR_VS2,2,2
	.comm	ConXS_CFSR_VS1,2,2
	.comm	ConXS_CFSR_BVD_MASK,2,2
	.comm	ConXS_CFSR_BVD2,2,2
	.comm	ConXS_CFSR_BVD1,2,2
	.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_pxa2xx_trizeps4.c_trizeps_pcmcia_socket_state.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	trizeps_pcmcia_socket_state, %function
trizeps_pcmcia_socket_state:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r5, r0
	mov	r4, r1
	bl	CFSR_readw
	ldr	r2, .L12
	ldr	r3, [r5]
	ldr	ip, [r2]
	lsl	r1, r3, #1
	ldr	lr, .L12+4
	ldrh	r2, [ip, r1]
	ldrh	lr, [lr]
	eor	r2, r2, r0
	tst	r2, lr
	strhne	r0, [ip, r1]	@ movhi
	cmp	r3, #0
	beq	.L3
	cmp	r3, #1
	popne	{r4, r5, r6, pc}
	mov	r3, #0
	str	r3, [r4, #20]
	str	r3, [r4, #16]
	str	r3, [r4]
	str	r3, [r4, #4]
	str	r3, [r4, #8]
	str	r3, [r4, #12]
	pop	{r4, r5, r6, pc}
.L3:
	ldr	r2, .L12+8
	ldr	r3, .L12+12
	ldrh	ip, [r2]
	ldr	r2, .L12+16
	ldrh	r1, [r3]
	ldr	r3, .L12+20
	ldrh	r2, [r2]
	tst	r0, ip
	ldrh	r3, [r3]
	movne	ip, #1
	moveq	ip, #0
	tst	r0, r1
	movne	r1, #1
	moveq	r1, #0
	tst	r0, r2
	moveq	r2, #1
	movne	r2, #0
	tst	r0, r3
	moveq	r3, #1
	movne	r3, #0
	str	ip, [r4]
	stmib	r4, {r1, r2, r3}
	pop	{r4, r5, r6, pc}
.L13:
	.align	2
.L12:
	.word	trizeps_pcmcia_status
	.word	ConXS_CFSR_BVD_MASK
	.word	ConXS_CFSR_BVD1
	.word	ConXS_CFSR_BVD2
	.word	ConXS_CFSR_VS1
	.word	ConXS_CFSR_VS2
	.size	trizeps_pcmcia_socket_state, .-trizeps_pcmcia_socket_state
	.comm	trizeps_pcmcia_status,4,4
	.comm	ConXS_CFSR_VS2,2,2
	.comm	ConXS_CFSR_VS1,2,2
	.comm	ConXS_CFSR_BVD_MASK,2,2
	.comm	ConXS_CFSR_BVD2,2,2
	.comm	ConXS_CFSR_BVD1,2,2
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
