	.file	"extr_mmc.c_mmc_send_op_cond.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	mmc_send_op_cond, @function
mmc_send_op_cond:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	mov	r15, rdx
	mov	edx, 32
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13, rdi
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	ebp, esi
	xor	esi, esi
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	ebx, 1000
	sub	rsp, 56
	.cfi_def_cfa_offset 112
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 40[rsp], rax
	xor	eax, eax
	mov	r14, rsp
	mov	rdi, r14
	call	memset@PLT
	mov	eax, DWORD PTR MMC_SEND_OP_COND[rip]
	mov	DWORD PTR [rsp], ebp
	mov	QWORD PTR 16[rsp], 0
	mov	DWORD PTR 24[rsp], eax
	mov	eax, DWORD PTR MMC_RSP_R3[rip]
	or	eax, DWORD PTR MMC_CMD_BCR[rip]
	mov	DWORD PTR 4[rsp], eax
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L17:
	mov	rax, QWORD PTR 8[rsp]
	mov	eax, DWORD PTR [rax]
	test	DWORD PTR MMC_OCR_CARD_BUSY[rip], eax
	jne	.L3
	test	DWORD PTR MMC_OCR_VOLTAGE[rip], ebp
	je	.L3
	mov	edi, 10
	mov	r12d, DWORD PTR MMC_ERR_TIMEOUT[rip]
	call	mmc_ms_delay@PLT
	sub	ebx, 1
	je	.L16
.L4:
	mov	edi, DWORD PTR 0[r13]
	mov	ecx, DWORD PTR CMD_RETRIES[rip]
	mov	rdx, r14
	mov	esi, edi
	call	mmc_wait_for_cmd@PLT
	cmp	DWORD PTR MMC_ERR_NONE[rip], eax
	mov	r12d, eax
	je	.L17
.L1:
	mov	rax, QWORD PTR 40[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L18
	add	rsp, 56
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	eax, r12d
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L3:
	.cfi_restore_state
	test	r15, r15
	je	.L1
.L5:
	mov	DWORD PTR [r15], eax
	jmp	.L1
.L16:
	test	r15, r15
	je	.L1
	cmp	DWORD PTR MMC_ERR_NONE[rip], r12d
	jne	.L1
	mov	rax, QWORD PTR 8[rsp]
	mov	eax, DWORD PTR [rax]
	jmp	.L5
.L18:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	mmc_send_op_cond, .-mmc_send_op_cond
	.comm	MMC_SEND_OP_COND,4,4
	.comm	MMC_RSP_R3,4,4
	.comm	MMC_OCR_VOLTAGE,4,4
	.comm	MMC_OCR_CARD_BUSY,4,4
	.comm	MMC_ERR_TIMEOUT,4,4
	.comm	MMC_ERR_NONE,4,4
	.comm	MMC_CMD_BCR,4,4
	.comm	CMD_RETRIES,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_mmc.c_mmc_send_op_cond.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	mmc_send_op_cond, %function
mmc_send_op_cond:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mov	r5, r1
	mov	r1, #0
	sub	sp, sp, #36
	ldr	r3, .L20
	str	r2, [sp, #4]
	ldr	r3, [r3]
	str	r3, [sp, #28]
	mov	r3,#0
	mov	r6, r0
	ldr	r3, .L20+4
	ldr	r0, .L20+8
	ldr	r2, .L20+12
	ldr	r3, [r3]
	ldr	r0, [r0]
	ldr	r2, [r2]
	orr	r3, r3, r0
	mov	r4, #1000
	ldr	r8, .L20+16
	ldr	r7, .L20+20
	ldr	r9, .L20+24
	ldr	r10, .L20+28
	str	r5, [sp, #8]
	str	r3, [sp, #12]
	str	r2, [sp, #24]
	str	r1, [sp, #16]
	str	r1, [sp, #20]
	b	.L4
.L18:
	ldr	r2, [sp, #16]
	ldr	r3, [r9]
	ldr	r2, [r2]
	tst	r2, r3
	bne	.L3
	ldr	r3, [r10]
	tst	r5, r3
	beq	.L3
	ldr	r3, .L20+32
	mov	r0, #10
	ldr	fp, [r3]
	bl	mmc_ms_delay
	subs	r4, r4, #1
	beq	.L17
.L4:
	ldr	r1, [r6]
	ldr	r3, [r8]
	mov	r0, r1
	add	r2, sp, #8
	bl	mmc_wait_for_cmd
	ldr	r3, [r7]
	mov	fp, r0
	cmp	r3, r0
	beq	.L18
.L1:
	ldr	r3, .L20
	ldr	r2, [r3]
	ldr	r3, [sp, #28]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L19
	mov	r0, fp
	add	sp, sp, #36
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L3:
	ldr	r3, [sp, #4]
	cmp	r3, #0
	beq	.L1
.L5:
	ldr	r3, [sp, #4]
	str	r2, [r3]
	b	.L1
.L17:
	ldr	r3, [sp, #4]
	cmp	r3, #0
	beq	.L1
	ldr	r2, [r7]
	cmp	r2, fp
	bne	.L1
	ldr	r2, [sp, #16]
	ldr	r2, [r2]
	b	.L5
.L19:
	bl	__stack_chk_fail
.L21:
	.align	2
.L20:
	.word	.LC0
	.word	MMC_RSP_R3
	.word	MMC_CMD_BCR
	.word	MMC_SEND_OP_COND
	.word	CMD_RETRIES
	.word	MMC_ERR_NONE
	.word	MMC_OCR_CARD_BUSY
	.word	MMC_OCR_VOLTAGE
	.word	MMC_ERR_TIMEOUT
	.size	mmc_send_op_cond, .-mmc_send_op_cond
	.comm	MMC_SEND_OP_COND,4,4
	.comm	MMC_RSP_R3,4,4
	.comm	MMC_OCR_VOLTAGE,4,4
	.comm	MMC_OCR_CARD_BUSY,4,4
	.comm	MMC_ERR_TIMEOUT,4,4
	.comm	MMC_ERR_NONE,4,4
	.comm	MMC_CMD_BCR,4,4
	.comm	CMD_RETRIES,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
