	.file	"extr_s3cmci.c_s3cmci_send_command.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	s3cmci_send_command, @function
s3cmci_send_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	esi, DWORD PTR S3C2410_SDIIMSK_CRCSTATUS[rip]
	or	esi, DWORD PTR S3C2410_SDIIMSK_CMDTIMEOUT[rip]
	or	esi, DWORD PTR S3C2410_SDIIMSK_RESPONSEND[rip]
	or	esi, DWORD PTR S3C2410_SDIIMSK_CMDSENT[rip]
	or	esi, DWORD PTR S3C2410_SDIIMSK_RESPONSECRC[rip]
	call	enable_imask@PLT
	cmp	QWORD PTR 16[rbx], 0
	je	.L2
	mov	eax, DWORD PTR COMPLETION_XFERFINISH_RSPFIN[rip]
	mov	DWORD PTR 8[rbp], eax
.L3:
	mov	edi, DWORD PTR 4[rbx]
	mov	rsi, QWORD PTR S3C2410_SDICMDARG[rip]
	add	rsi, QWORD PTR 0[rbp]
	call	writel@PLT
	mov	edi, DWORD PTR 8[rbx]
	mov	eax, DWORD PTR S3C2410_SDICMDCON_INDEX[rip]
	and	eax, edi
	mov	edi, DWORD PTR S3C2410_SDICMDCON_SENDERHOST[rip]
	or	edi, DWORD PTR S3C2410_SDICMDCON_CMDSTART[rip]
	or	edi, eax
	mov	eax, DWORD PTR [rbx]
	test	DWORD PTR MMC_RSP_PRESENT[rip], eax
	je	.L5
	or	edi, DWORD PTR S3C2410_SDICMDCON_WAITRSP[rip]
.L5:
	test	DWORD PTR MMC_RSP_136[rip], eax
	je	.L6
	or	edi, DWORD PTR S3C2410_SDICMDCON_LONGRSP[rip]
.L6:
	mov	rsi, QWORD PTR S3C2410_SDICMDCON[rip]
	add	rsi, QWORD PTR 0[rbp]
	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
	jmp	writel@PLT
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	mov	eax, DWORD PTR [rbx]
	test	DWORD PTR MMC_RSP_PRESENT[rip], eax
	je	.L4
	mov	eax, DWORD PTR COMPLETION_RSPFIN[rip]
	mov	DWORD PTR 8[rbp], eax
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L4:
	mov	eax, DWORD PTR COMPLETION_CMDSENT[rip]
	mov	DWORD PTR 8[rbp], eax
	jmp	.L3
	.cfi_endproc
.LFE0:
	.size	s3cmci_send_command, .-s3cmci_send_command
	.comm	S3C2410_SDIIMSK_RESPONSEND,4,4
	.comm	S3C2410_SDIIMSK_RESPONSECRC,4,4
	.comm	S3C2410_SDIIMSK_CRCSTATUS,4,4
	.comm	S3C2410_SDIIMSK_CMDTIMEOUT,4,4
	.comm	S3C2410_SDIIMSK_CMDSENT,4,4
	.comm	S3C2410_SDICMDCON_WAITRSP,4,4
	.comm	S3C2410_SDICMDCON_SENDERHOST,4,4
	.comm	S3C2410_SDICMDCON_LONGRSP,4,4
	.comm	S3C2410_SDICMDCON_INDEX,4,4
	.comm	S3C2410_SDICMDCON_CMDSTART,4,4
	.comm	S3C2410_SDICMDCON,8,8
	.comm	S3C2410_SDICMDARG,8,8
	.comm	MMC_RSP_PRESENT,4,4
	.comm	MMC_RSP_136,4,4
	.comm	COMPLETION_XFERFINISH_RSPFIN,4,4
	.comm	COMPLETION_RSPFIN,4,4
	.comm	COMPLETION_CMDSENT,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_s3cmci.c_s3cmci_send_command.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	s3cmci_send_command, %function
s3cmci_send_command:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r4, r1
	ldr	r3, .L15
	ldr	r2, .L15+4
	ldr	r1, .L15+8
	ldr	r2, [r2]
	ldr	r3, [r3]
	ldr	r1, [r1]
	orr	r3, r3, r2
	ldr	r2, .L15+12
	orr	r3, r3, r1
	ldr	r1, .L15+16
	ldr	r2, [r2]
	ldr	r1, [r1]
	orr	r3, r3, r2
	orr	r1, r3, r1
	mov	r5, r0
	bl	enable_imask
	ldr	r3, [r4, #12]
	cmp	r3, #0
	beq	.L2
	ldr	r3, .L15+20
	ldr	r6, .L15+24
	ldr	r3, [r3]
	str	r3, [r5, #4]
.L3:
	ldr	r3, .L15+28
	ldr	r1, [r5]
	ldr	r3, [r3]
	ldr	r0, [r4, #4]
	add	r1, r1, r3
	bl	writel
	ldr	ip, .L15+32
	ldr	r3, .L15+36
	ldr	r1, .L15+40
	ldr	r2, [r4]
	ldr	lr, [r6]
	ldr	r0, [r4, #8]
	ldr	r1, [r1]
	ldr	ip, [ip]
	ldr	r3, [r3]
	tst	r2, lr
	orr	r3, r3, r1
	and	r0, r0, ip
	orr	r0, r3, r0
	ldrne	r3, .L15+44
	ldr	r1, [r5]
	ldrne	r3, [r3]
	pop	{r4, r5, r6, lr}
	orrne	r0, r0, r3
	ldr	r3, .L15+48
	ldr	r3, [r3]
	tst	r2, r3
	ldrne	r3, .L15+52
	ldrne	r3, [r3]
	orrne	r0, r0, r3
	ldr	r3, .L15+56
	ldr	r3, [r3]
	add	r1, r1, r3
	b	writel
.L2:
	ldr	r6, .L15+24
	ldr	r2, [r4]
	ldr	r3, [r6]
	tst	r2, r3
	ldrne	r3, .L15+60
	ldreq	r3, .L15+64
	ldr	r3, [r3]
	str	r3, [r5, #4]
	b	.L3
.L16:
	.align	2
.L15:
	.word	S3C2410_SDIIMSK_CRCSTATUS
	.word	S3C2410_SDIIMSK_CMDTIMEOUT
	.word	S3C2410_SDIIMSK_RESPONSEND
	.word	S3C2410_SDIIMSK_CMDSENT
	.word	S3C2410_SDIIMSK_RESPONSECRC
	.word	COMPLETION_XFERFINISH_RSPFIN
	.word	MMC_RSP_PRESENT
	.word	S3C2410_SDICMDARG
	.word	S3C2410_SDICMDCON_INDEX
	.word	S3C2410_SDICMDCON_SENDERHOST
	.word	S3C2410_SDICMDCON_CMDSTART
	.word	S3C2410_SDICMDCON_WAITRSP
	.word	MMC_RSP_136
	.word	S3C2410_SDICMDCON_LONGRSP
	.word	S3C2410_SDICMDCON
	.word	COMPLETION_RSPFIN
	.word	COMPLETION_CMDSENT
	.size	s3cmci_send_command, .-s3cmci_send_command
	.comm	S3C2410_SDIIMSK_RESPONSEND,4,4
	.comm	S3C2410_SDIIMSK_RESPONSECRC,4,4
	.comm	S3C2410_SDIIMSK_CRCSTATUS,4,4
	.comm	S3C2410_SDIIMSK_CMDTIMEOUT,4,4
	.comm	S3C2410_SDIIMSK_CMDSENT,4,4
	.comm	S3C2410_SDICMDCON_WAITRSP,4,4
	.comm	S3C2410_SDICMDCON_SENDERHOST,4,4
	.comm	S3C2410_SDICMDCON_LONGRSP,4,4
	.comm	S3C2410_SDICMDCON_INDEX,4,4
	.comm	S3C2410_SDICMDCON_CMDSTART,4,4
	.comm	S3C2410_SDICMDCON,4,4
	.comm	S3C2410_SDICMDARG,4,4
	.comm	MMC_RSP_PRESENT,4,4
	.comm	MMC_RSP_136,4,4
	.comm	COMPLETION_XFERFINISH_RSPFIN,4,4
	.comm	COMPLETION_RSPFIN,4,4
	.comm	COMPLETION_CMDSENT,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
