	.file	"extr_pcmciamtd.c_pcmciamtd_set_vpp.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"dev = %p on = %d vpp = %d\n\n"
	.text
	.p2align 4
	.type	pcmciamtd_set_vpp, @function
pcmciamtd_set_vpp:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	mov	edx, esi
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	mov	rbp, QWORD PTR [rdi]
	mov	ebx, esi
	lea	rdi, .LC0[rip]
	mov	ecx, DWORD PTR 0[rbp]
	mov	rsi, rbp
	mov	r12, QWORD PTR 8[rbp]
	call	pr_debug@PLT
	xor	esi, esi
	lea	rdi, pcmcia_vpp_lock[rip]
	call	spin_lock_irqsave@PLT
	mov	eax, DWORD PTR pcmcia_vpp_refcnt[rip]
	test	ebx, ebx
	je	.L2
	add	eax, 1
	mov	DWORD PTR pcmcia_vpp_refcnt[rip], eax
	cmp	eax, 1
	je	.L8
.L4:
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	xor	esi, esi
	lea	rdi, pcmcia_vpp_lock[rip]
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	jmp	spin_unlock_irqrestore@PLT
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	sub	eax, 1
	mov	DWORD PTR pcmcia_vpp_refcnt[rip], eax
	jne	.L4
	xor	esi, esi
	mov	rdi, r12
	call	pcmcia_fixup_vpp@PLT
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L8:
	mov	esi, DWORD PTR 0[rbp]
	mov	rdi, r12
	call	pcmcia_fixup_vpp@PLT
	jmp	.L4
	.cfi_endproc
.LFE0:
	.size	pcmciamtd_set_vpp, .-pcmciamtd_set_vpp
	.comm	pcmcia_vpp_refcnt,4,4
	.comm	pcmcia_vpp_lock,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_pcmciamtd.c_pcmciamtd_set_vpp.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"dev = %p on = %d vpp = %d\012\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	pcmciamtd_set_vpp, %function
pcmciamtd_set_vpp:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r4, r1
	ldr	r5, [r0]
	mov	r2, r1
	ldr	r3, [r5]
	mov	r1, r5
	ldr	r0, .L9
	ldr	r6, [r5, #4]
	bl	pr_debug
	mov	r1, #0
	ldr	r0, .L9+4
	bl	spin_lock_irqsave
	cmp	r4, #0
	beq	.L2
	ldr	r2, .L9+8
	ldr	r3, [r2]
	add	r3, r3, #1
	cmp	r3, #1
	str	r3, [r2]
	beq	.L8
.L4:
	pop	{r4, r5, r6, lr}
	mov	r1, #0
	ldr	r0, .L9+4
	b	spin_unlock_irqrestore
.L2:
	ldr	r3, .L9+8
	ldr	r1, [r3]
	sub	r1, r1, #1
	cmp	r1, #0
	str	r1, [r3]
	bne	.L4
	mov	r0, r6
	bl	pcmcia_fixup_vpp
	pop	{r4, r5, r6, lr}
	mov	r1, #0
	ldr	r0, .L9+4
	b	spin_unlock_irqrestore
.L8:
	ldr	r1, [r5]
	mov	r0, r6
	bl	pcmcia_fixup_vpp
	pop	{r4, r5, r6, lr}
	mov	r1, #0
	ldr	r0, .L9+4
	b	spin_unlock_irqrestore
.L10:
	.align	2
.L9:
	.word	.LC0
	.word	pcmcia_vpp_lock
	.word	pcmcia_vpp_refcnt
	.size	pcmciamtd_set_vpp, .-pcmciamtd_set_vpp
	.comm	pcmcia_vpp_refcnt,4,4
	.comm	pcmcia_vpp_lock,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
