	.file	"extr_aw_mmc.c_aw_mmc_init.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	aw_mmc_init, @function
aw_mmc_init:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	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
	call	aw_mmc_reset@PLT
	mov	r12d, eax
	test	eax, eax
	jne	.L1
	mov	edi, DWORD PTR AW_MMC_TMOR_DTO_LMT_MASK[rip]
	call	AW_MMC_TMOR_DTO_LMT_SHIFT@PLT
	mov	edi, DWORD PTR AW_MMC_TMOR_RTO_LMT_MASK[rip]
	mov	ebx, eax
	call	AW_MMC_TMOR_RTO_LMT_SHIFT@PLT
	mov	esi, DWORD PTR AW_MMC_TMOR[rip]
	mov	rdi, rbp
	or	ebx, eax
	mov	edx, ebx
	call	AW_MMC_WRITE_4@PLT
	mov	esi, DWORD PTR AW_MMC_IMKR[rip]
	xor	edx, edx
	mov	rdi, rbp
	call	AW_MMC_WRITE_4@PLT
	mov	esi, DWORD PTR AW_MMC_RISR[rip]
	mov	edx, -1
	mov	rdi, rbp
	call	AW_MMC_WRITE_4@PLT
	mov	esi, DWORD PTR AW_MMC_DBGC[rip]
	mov	edx, 3563
	mov	rdi, rbp
	call	AW_MMC_WRITE_4@PLT
	mov	esi, DWORD PTR AW_MMC_FUNS[rip]
	mov	edx, -827719680
	mov	rdi, rbp
	call	AW_MMC_WRITE_4@PLT
	mov	esi, DWORD PTR AW_MMC_IDST[rip]
	mov	edx, -1
	mov	rdi, rbp
	call	AW_MMC_WRITE_4@PLT
	mov	esi, DWORD PTR AW_MMC_GCTL[rip]
	mov	rdi, rbp
	call	AW_MMC_READ_4@PLT
	mov	edx, DWORD PTR AW_MMC_GCTL_FIFO_AC_MOD[rip]
	or	edx, DWORD PTR AW_MMC_GCTL_WAIT_MEM_ACCESS[rip]
	mov	rdi, rbp
	or	eax, DWORD PTR AW_MMC_GCTL_INT_ENB[rip]
	not	edx
	mov	esi, DWORD PTR AW_MMC_GCTL[rip]
	and	edx, eax
	call	AW_MMC_WRITE_4@PLT
.L1:
	mov	eax, r12d
	pop	rbx
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	aw_mmc_init, .-aw_mmc_init
	.comm	AW_MMC_TMOR_RTO_LMT_MASK,4,4
	.comm	AW_MMC_TMOR_DTO_LMT_MASK,4,4
	.comm	AW_MMC_TMOR,4,4
	.comm	AW_MMC_RISR,4,4
	.comm	AW_MMC_IMKR,4,4
	.comm	AW_MMC_IDST,4,4
	.comm	AW_MMC_GCTL_WAIT_MEM_ACCESS,4,4
	.comm	AW_MMC_GCTL_INT_ENB,4,4
	.comm	AW_MMC_GCTL_FIFO_AC_MOD,4,4
	.comm	AW_MMC_GCTL,4,4
	.comm	AW_MMC_FUNS,4,4
	.comm	AW_MMC_DBGC,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_aw_mmc.c_aw_mmc_init.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	aw_mmc_init, %function
aw_mmc_init:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r4, r0
	bl	aw_mmc_reset
	subs	r5, r0, #0
	bne	.L1
	ldr	r2, .L5
	ldr	r3, .L5+4
	ldr	r0, [r2]
	ldr	r7, [r3]
	bl	AW_MMC_TMOR_DTO_LMT_SHIFT
	ldr	r3, .L5+8
	mov	r6, r0
	ldr	r0, [r3]
	bl	AW_MMC_TMOR_RTO_LMT_SHIFT
	mov	r1, r7
	orr	r2, r6, r0
	mov	r0, r4
	bl	AW_MMC_WRITE_4
	ldr	r3, .L5+12
	mov	r2, r5
	ldr	r1, [r3]
	mov	r0, r4
	bl	AW_MMC_WRITE_4
	ldr	r3, .L5+16
	mvn	r2, #0
	ldr	r1, [r3]
	mov	r0, r4
	bl	AW_MMC_WRITE_4
	ldr	r3, .L5+20
	ldr	r2, .L5+24
	ldr	r1, [r3]
	mov	r0, r4
	bl	AW_MMC_WRITE_4
	ldr	r3, .L5+28
	ldr	r2, .L5+32
	ldr	r1, [r3]
	mov	r0, r4
	bl	AW_MMC_WRITE_4
	ldr	r3, .L5+36
	ldr	r6, .L5+40
	ldr	r1, [r3]
	mvn	r2, #0
	mov	r0, r4
	bl	AW_MMC_WRITE_4
	ldr	r1, [r6]
	mov	r0, r4
	bl	AW_MMC_READ_4
	ldr	r3, .L5+44
	ldr	r2, .L5+48
	ldr	r1, .L5+52
	ldr	r3, [r3]
	ldr	r1, [r1]
	ldr	r2, [r2]
	orr	r3, r0, r3
	orr	r2, r2, r1
	mov	r0, r4
	ldr	r1, [r6]
	bic	r2, r3, r2
	bl	AW_MMC_WRITE_4
.L1:
	mov	r0, r5
	pop	{r4, r5, r6, r7, r8, pc}
.L6:
	.align	2
.L5:
	.word	AW_MMC_TMOR_DTO_LMT_MASK
	.word	AW_MMC_TMOR
	.word	AW_MMC_TMOR_RTO_LMT_MASK
	.word	AW_MMC_IMKR
	.word	AW_MMC_RISR
	.word	AW_MMC_DBGC
	.word	3563
	.word	AW_MMC_FUNS
	.word	-827719680
	.word	AW_MMC_IDST
	.word	AW_MMC_GCTL
	.word	AW_MMC_GCTL_INT_ENB
	.word	AW_MMC_GCTL_FIFO_AC_MOD
	.word	AW_MMC_GCTL_WAIT_MEM_ACCESS
	.size	aw_mmc_init, .-aw_mmc_init
	.comm	AW_MMC_TMOR_RTO_LMT_MASK,4,4
	.comm	AW_MMC_TMOR_DTO_LMT_MASK,4,4
	.comm	AW_MMC_TMOR,4,4
	.comm	AW_MMC_RISR,4,4
	.comm	AW_MMC_IMKR,4,4
	.comm	AW_MMC_IDST,4,4
	.comm	AW_MMC_GCTL_WAIT_MEM_ACCESS,4,4
	.comm	AW_MMC_GCTL_INT_ENB,4,4
	.comm	AW_MMC_GCTL_FIFO_AC_MOD,4,4
	.comm	AW_MMC_GCTL,4,4
	.comm	AW_MMC_FUNS,4,4
	.comm	AW_MMC_DBGC,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
