	.file	"extr_omap.c_mmc_omap_release_slot.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	mmc_omap_release_slot, @function
mmc_omap_release_slot:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	mov	r12d, esi
	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, QWORD PTR 16[rdi]
	xor	edi, edi
	cmp	QWORD PTR 16[rbx], 0
	sete	dil
	call	BUG_ON@PLT
	lea	rdi, 56[rbx]
	test	r12d, r12d
	je	.L2
	movsx	rsi, DWORD PTR HZ[rip]
	mov	rax, rsi
	imul	rsi, rsi, 1717986919
	sar	eax, 31
	sar	rsi, 34
	sub	esi, eax
	movsx	rsi, esi
	add	rsi, QWORD PTR jiffies[rip]
	call	mod_timer@PLT
.L3:
	lea	r12, 4[rbx]
	xor	esi, esi
	mov	rdi, r12
	call	spin_lock_irqsave@PLT
	mov	eax, DWORD PTR [rbx]
	test	eax, eax
	jle	.L4
	sub	eax, 1
	mov	rdx, QWORD PTR 48[rbx]
	xor	ebp, ebp
	lea	rcx, 8[0+rax*8]
.L7:
	mov	rax, QWORD PTR [rdx+rbp]
	test	rax, rax
	je	.L5
	cmp	QWORD PTR 8[rax], 0
	je	.L5
	xor	edi, edi
	cmp	QWORD PTR 32[rbx], 0
	setne	dil
	call	BUG_ON@PLT
	mov	rax, QWORD PTR 48[rbx]
	xor	edi, edi
	mov	rbp, QWORD PTR [rax+rbp]
	cmp	QWORD PTR 40[rbx], rbp
	sete	dil
	call	BUG_ON@PLT
	mov	rax, QWORD PTR 0[rbp]
	mov	QWORD PTR 32[rbx], rbp
	mov	rdi, r12
	xor	esi, esi
	mov	QWORD PTR 16[rbx], rax
	call	spin_unlock_irqrestore@PLT
	mov	edi, DWORD PTR 28[rbx]
	lea	rsi, 24[rbx]
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	jmp	queue_work@PLT
	.p2align 4,,10
	.p2align 3
.L5:
	.cfi_restore_state
	add	rbp, 8
	cmp	rbp, rcx
	jne	.L7
.L4:
	mov	QWORD PTR 16[rbx], 0
	lea	rdi, 8[rbx]
	call	wake_up@PLT
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	mov	rdi, r12
	pop	rbp
	.cfi_def_cfa_offset 16
	xor	esi, esi
	pop	r12
	.cfi_def_cfa_offset 8
	jmp	spin_unlock_irqrestore@PLT
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	call	del_timer@PLT
	mov	rdi, rbp
	call	mmc_omap_fclk_offdelay@PLT
	xor	esi, esi
	mov	rdi, rbx
	call	mmc_omap_fclk_enable@PLT
	jmp	.L3
	.cfi_endproc
.LFE0:
	.size	mmc_omap_release_slot, .-mmc_omap_release_slot
	.comm	jiffies,8,8
	.comm	HZ,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_omap.c_mmc_omap_release_slot.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	mmc_omap_release_slot, %function
mmc_omap_release_slot:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	ldr	r4, [r0, #8]
	mov	r6, r0
	ldr	r0, [r4, #12]
	mov	r5, r1
	clz	r0, r0
	lsr	r0, r0, #5
	bl	BUG_ON
	cmp	r5, #0
	add	r0, r4, #36
	beq	.L2
	ldr	r3, .L14
	ldr	r2, .L14+4
	ldr	r3, [r3]
	ldr	r1, .L14+8
	smull	ip, r2, r3, r2
	ldr	r1, [r1]
	asr	r3, r3, #31
	rsb	r3, r3, r2, asr #2
	add	r1, r3, r1
	bl	mod_timer
.L3:
	add	r6, r4, #4
	mov	r0, r6
	mov	r1, #0
	bl	spin_lock_irqsave
	ldr	r0, [r4]
	cmp	r0, #0
	ble	.L4
	mov	r3, #0
	ldr	r2, [r4, #32]
	sub	r2, r2, #4
.L7:
	ldr	r1, [r2, #4]!
	lsl	r5, r3, #2
	cmp	r1, #0
	add	r3, r3, #1
	beq	.L5
	ldr	r1, [r1, #4]
	cmp	r1, #0
	beq	.L5
	ldr	r0, [r4, #24]
	subs	r0, r0, #0
	movne	r0, #1
	bl	BUG_ON
	ldr	r3, [r4, #32]
	ldr	r0, [r4, #28]
	ldr	r5, [r3, r5]
	sub	r0, r0, r5
	clz	r0, r0
	lsr	r0, r0, #5
	bl	BUG_ON
	ldr	r3, [r5]
	mov	r0, r6
	mov	r1, #0
	str	r5, [r4, #24]
	str	r3, [r4, #12]
	bl	spin_unlock_irqrestore
	ldr	r0, [r4, #20]
	add	r1, r4, #16
	pop	{r4, r5, r6, lr}
	b	queue_work
.L5:
	cmp	r3, r0
	bne	.L7
.L4:
	mov	r3, #0
	add	r0, r4, #8
	str	r3, [r4, #12]
	bl	wake_up
	mov	r0, r6
	pop	{r4, r5, r6, lr}
	mov	r1, #0
	b	spin_unlock_irqrestore
.L2:
	bl	del_timer
	mov	r0, r6
	bl	mmc_omap_fclk_offdelay
	mov	r1, r5
	mov	r0, r4
	bl	mmc_omap_fclk_enable
	b	.L3
.L15:
	.align	2
.L14:
	.word	HZ
	.word	1717986919
	.word	jiffies
	.size	mmc_omap_release_slot, .-mmc_omap_release_slot
	.comm	jiffies,4,4
	.comm	HZ,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
