	.file	"extr_xxs1500_ss.c_xxs1500_pcmcia_get_status.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	xxs1500_pcmcia_get_status, @function
xxs1500_pcmcia_get_status:
.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, rsi
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	mov	edi, DWORD PTR GPIO_CDA[rip]
	call	gpio_get_value@PLT
	test	rax, rax
	je	.L2
.L4:
	xor	ebx, ebx
.L3:
	mov	edi, DWORD PTR GPIO_VSL[rip]
	call	gpio_get_value@PLT
	mov	edi, DWORD PTR GPIO_VSH[rip]
	mov	r12, rax
	call	gpio_get_value@PLT
	test	rax, rax
	je	.L5
	mov	r13d, DWORD PTR SS_XVCARD[rip]
	or	r13d, ebx
	test	r12, r12
	je	.L5
.L7:
	mov	edi, DWORD PTR GPIO_POWER[rip]
	call	gpio_get_value@PLT
	test	rax, rax
	jne	.L8
	or	r13d, DWORD PTR SS_POWERON[rip]
.L8:
	mov	edi, DWORD PTR GPIO_RESET[rip]
	call	gpio_get_value@PLT
	mov	ebx, DWORD PTR SS_RESET[rip]
	mov	edi, DWORD PTR GPIO_BATTDEAD[rip]
	test	rax, rax
	cmove	ebx, DWORD PTR SS_READY[rip]
	or	ebx, r13d
	call	gpio_get_value@PLT
	test	rax, rax
	jne	.L11
	or	ebx, DWORD PTR SS_BATDEAD[rip]
.L11:
	mov	edi, DWORD PTR GPIO_BATTWARN[rip]
	call	gpio_get_value@PLT
	test	rax, rax
	jne	.L12
	or	ebx, DWORD PTR SS_BATWARN[rip]
.L12:
	mov	DWORD PTR 0[rbp], ebx
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	xor	eax, eax
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.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
.L5:
	.cfi_restore_state
	or	ebx, DWORD PTR SS_3VCARD[rip]
	mov	r13d, ebx
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L2:
	mov	edi, DWORD PTR GPIO_CDB[rip]
	call	gpio_get_value@PLT
	test	rax, rax
	jne	.L4
	mov	ebx, DWORD PTR SS_DETECT[rip]
	jmp	.L3
	.cfi_endproc
.LFE0:
	.size	xxs1500_pcmcia_get_status, .-xxs1500_pcmcia_get_status
	.comm	SS_XVCARD,4,4
	.comm	SS_RESET,4,4
	.comm	SS_READY,4,4
	.comm	SS_POWERON,4,4
	.comm	SS_DETECT,4,4
	.comm	SS_BATWARN,4,4
	.comm	SS_BATDEAD,4,4
	.comm	SS_3VCARD,4,4
	.comm	GPIO_VSL,4,4
	.comm	GPIO_VSH,4,4
	.comm	GPIO_RESET,4,4
	.comm	GPIO_POWER,4,4
	.comm	GPIO_CDB,4,4
	.comm	GPIO_CDA,4,4
	.comm	GPIO_BATTWARN,4,4
	.comm	GPIO_BATTDEAD,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_xxs1500_ss.c_xxs1500_pcmcia_get_status.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	xxs1500_pcmcia_get_status, %function
xxs1500_pcmcia_get_status:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r3, .L18
	push	{r4, r5, r6, r7, r8, lr}
	ldr	r0, [r3]
	mov	r6, r1
	bl	gpio_get_value
	cmp	r0, #0
	beq	.L2
.L4:
	mov	r4, #0
.L3:
	ldr	r3, .L18+4
	ldr	r0, [r3]
	bl	gpio_get_value
	ldr	r3, .L18+8
	mov	r7, r0
	ldr	r0, [r3]
	bl	gpio_get_value
	cmp	r0, #0
	beq	.L5
	cmp	r7, #0
	ldrne	r3, .L18+12
	ldrne	r5, [r3]
	orrne	r5, r4, r5
	bne	.L7
.L5:
	ldr	r3, .L18+16
	ldr	r5, [r3]
	orr	r5, r4, r5
.L7:
	ldr	r3, .L18+20
	ldr	r0, [r3]
	bl	gpio_get_value
	cmp	r0, #0
	ldreq	r3, .L18+24
	ldreq	r3, [r3]
	orreq	r5, r5, r3
	ldr	r3, .L18+28
	ldr	r0, [r3]
	bl	gpio_get_value
	cmp	r0, #0
	ldrne	r3, .L18+32
	ldreq	r3, .L18+36
	ldr	r4, [r3]
	ldr	r3, .L18+40
	orr	r4, r4, r5
	ldr	r0, [r3]
	bl	gpio_get_value
	cmp	r0, #0
	ldreq	r3, .L18+44
	ldreq	r3, [r3]
	orreq	r4, r4, r3
	ldr	r3, .L18+48
	ldr	r0, [r3]
	bl	gpio_get_value
	cmp	r0, #0
	ldreq	r3, .L18+52
	mov	r0, #0
	ldreq	r3, [r3]
	orreq	r4, r4, r3
	str	r4, [r6]
	pop	{r4, r5, r6, r7, r8, pc}
.L2:
	ldr	r3, .L18+56
	ldr	r0, [r3]
	bl	gpio_get_value
	cmp	r0, #0
	bne	.L4
	ldr	r3, .L18+60
	ldr	r4, [r3]
	b	.L3
.L19:
	.align	2
.L18:
	.word	GPIO_CDA
	.word	GPIO_VSL
	.word	GPIO_VSH
	.word	SS_XVCARD
	.word	SS_3VCARD
	.word	GPIO_POWER
	.word	SS_POWERON
	.word	GPIO_RESET
	.word	SS_RESET
	.word	SS_READY
	.word	GPIO_BATTDEAD
	.word	SS_BATDEAD
	.word	GPIO_BATTWARN
	.word	SS_BATWARN
	.word	GPIO_CDB
	.word	SS_DETECT
	.size	xxs1500_pcmcia_get_status, .-xxs1500_pcmcia_get_status
	.comm	SS_XVCARD,4,4
	.comm	SS_RESET,4,4
	.comm	SS_READY,4,4
	.comm	SS_POWERON,4,4
	.comm	SS_DETECT,4,4
	.comm	SS_BATWARN,4,4
	.comm	SS_BATDEAD,4,4
	.comm	SS_3VCARD,4,4
	.comm	GPIO_VSL,4,4
	.comm	GPIO_VSH,4,4
	.comm	GPIO_RESET,4,4
	.comm	GPIO_POWER,4,4
	.comm	GPIO_CDB,4,4
	.comm	GPIO_CDA,4,4
	.comm	GPIO_BATTWARN,4,4
	.comm	GPIO_BATTDEAD,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
