	.file	"extr_atmel-mci.c_atmci_prepare_command.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	atmci_prepare_command, @function
atmci_prepare_command:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	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
	mov	eax, DWORD PTR EINPROGRESS[rip]
	mov	rdi, QWORD PTR [rsi]
	neg	eax
	mov	DWORD PTR 24[rsi], eax
	call	ATMCI_CMDR_CMDNB@PLT
	mov	edx, DWORD PTR 8[rbx]
	test	DWORD PTR MMC_RSP_PRESENT[rip], edx
	je	.L2
	test	DWORD PTR MMC_RSP_136[rip], edx
	je	.L3
	or	eax, DWORD PTR ATMCI_CMDR_RSPTYP_136BIT[rip]
.L2:
	mov	rcx, QWORD PTR MMC_BUSMODE_OPENDRAIN[rip]
	or	eax, DWORD PTR ATMCI_CMDR_MAXLAT_64CYC[rip]
	cmp	QWORD PTR 0[rbp], rcx
	jne	.L4
	or	eax, DWORD PTR ATMCI_CMDR_OPDCMD[rip]
.L4:
	mov	rdx, QWORD PTR 16[rbx]
	test	rdx, rdx
	je	.L1
	mov	rcx, QWORD PTR SD_IO_RW_EXTENDED[rip]
	or	eax, DWORD PTR ATMCI_CMDR_START_XFER[rip]
	cmp	QWORD PTR [rbx], rcx
	je	.L20
	cmp	DWORD PTR [rdx], 1
	jle	.L8
	or	eax, DWORD PTR ATMCI_CMDR_MULTI_BLOCK[rip]
.L7:
	mov	edx, DWORD PTR 4[rdx]
	test	DWORD PTR MMC_DATA_READ[rip], edx
	je	.L1
	or	eax, DWORD PTR ATMCI_CMDR_TRDIR_READ[rip]
.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
	or	eax, DWORD PTR ATMCI_CMDR_RSPTYP_48BIT[rip]
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L20:
	or	eax, DWORD PTR ATMCI_CMDR_SDIO_BLOCK[rip]
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L8:
	or	eax, DWORD PTR ATMCI_CMDR_BLOCK[rip]
	jmp	.L7
	.cfi_endproc
.LFE0:
	.size	atmci_prepare_command, .-atmci_prepare_command
	.comm	SD_IO_RW_EXTENDED,8,8
	.comm	MMC_RSP_PRESENT,4,4
	.comm	MMC_RSP_136,4,4
	.comm	MMC_DATA_READ,4,4
	.comm	MMC_BUSMODE_OPENDRAIN,8,8
	.comm	EINPROGRESS,4,4
	.comm	ATMCI_CMDR_TRDIR_READ,4,4
	.comm	ATMCI_CMDR_START_XFER,4,4
	.comm	ATMCI_CMDR_SDIO_BLOCK,4,4
	.comm	ATMCI_CMDR_RSPTYP_48BIT,4,4
	.comm	ATMCI_CMDR_RSPTYP_136BIT,4,4
	.comm	ATMCI_CMDR_OPDCMD,4,4
	.comm	ATMCI_CMDR_MULTI_BLOCK,4,4
	.comm	ATMCI_CMDR_MAXLAT_64CYC,4,4
	.comm	ATMCI_CMDR_BLOCK,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_atmel-mci.c_atmci_prepare_command.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	atmci_prepare_command, %function
atmci_prepare_command:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r4, r1
	ldr	r3, .L21
	mov	r5, r0
	ldr	r3, [r3]
	ldr	r0, [r1]
	rsb	r3, r3, #0
	str	r3, [r1, #12]
	bl	ATMCI_CMDR_CMDNB
	ldr	r2, .L21+4
	ldr	r3, [r4, #4]
	ldr	r2, [r2]
	tst	r3, r2
	beq	.L2
	ldr	r2, .L21+8
	ldr	r2, [r2]
	tst	r3, r2
	ldrne	r3, .L21+12
	ldreq	r3, .L21+16
	ldr	r3, [r3]
	orr	r0, r0, r3
.L2:
	ldr	r2, .L21+20
	ldr	r3, .L21+24
	ldr	r1, [r5]
	ldr	r2, [r2]
	ldr	r3, [r3]
	cmp	r1, r2
	orr	r0, r0, r3
	ldreq	r3, .L21+28
	ldreq	r3, [r3]
	orreq	r0, r0, r3
	ldr	r3, [r4, #8]
	cmp	r3, #0
	popeq	{r4, r5, r6, pc}
	ldr	r1, .L21+32
	ldr	r2, .L21+36
	ldr	ip, [r4]
	ldr	r1, [r1]
	ldr	r2, [r2]
	cmp	ip, r1
	orr	r0, r0, r2
	beq	.L20
	ldr	r2, [r3]
	cmp	r2, #1
	ldrgt	r2, .L21+40
	ldrle	r2, .L21+44
	ldr	r2, [r2]
	orr	r0, r0, r2
.L7:
	ldr	r1, .L21+48
	ldr	r2, [r3, #4]
	ldr	r3, [r1]
	tst	r2, r3
	ldrne	r3, .L21+52
	ldrne	r3, [r3]
	orrne	r0, r0, r3
	pop	{r4, r5, r6, pc}
.L20:
	ldr	r2, .L21+56
	ldr	r2, [r2]
	orr	r0, r0, r2
	b	.L7
.L22:
	.align	2
.L21:
	.word	EINPROGRESS
	.word	MMC_RSP_PRESENT
	.word	MMC_RSP_136
	.word	ATMCI_CMDR_RSPTYP_136BIT
	.word	ATMCI_CMDR_RSPTYP_48BIT
	.word	MMC_BUSMODE_OPENDRAIN
	.word	ATMCI_CMDR_MAXLAT_64CYC
	.word	ATMCI_CMDR_OPDCMD
	.word	SD_IO_RW_EXTENDED
	.word	ATMCI_CMDR_START_XFER
	.word	ATMCI_CMDR_MULTI_BLOCK
	.word	ATMCI_CMDR_BLOCK
	.word	MMC_DATA_READ
	.word	ATMCI_CMDR_TRDIR_READ
	.word	ATMCI_CMDR_SDIO_BLOCK
	.size	atmci_prepare_command, .-atmci_prepare_command
	.comm	SD_IO_RW_EXTENDED,4,4
	.comm	MMC_RSP_PRESENT,4,4
	.comm	MMC_RSP_136,4,4
	.comm	MMC_DATA_READ,4,4
	.comm	MMC_BUSMODE_OPENDRAIN,4,4
	.comm	EINPROGRESS,4,4
	.comm	ATMCI_CMDR_TRDIR_READ,4,4
	.comm	ATMCI_CMDR_START_XFER,4,4
	.comm	ATMCI_CMDR_SDIO_BLOCK,4,4
	.comm	ATMCI_CMDR_RSPTYP_48BIT,4,4
	.comm	ATMCI_CMDR_RSPTYP_136BIT,4,4
	.comm	ATMCI_CMDR_OPDCMD,4,4
	.comm	ATMCI_CMDR_MULTI_BLOCK,4,4
	.comm	ATMCI_CMDR_MAXLAT_64CYC,4,4
	.comm	ATMCI_CMDR_BLOCK,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
