	.file	"extr_meson-gx-mmc.c_meson_mmc_pre_req.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"dma_map_sg failed"
	.text
	.p2align 4
	.type	meson_mmc_pre_req, @function
meson_mmc_pre_req:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	mov	rbx, QWORD PTR [rsi]
	test	rbx, rbx
	je	.L1
	mov	rbp, rdi
	call	meson_mmc_get_transfer_mode@PLT
	mov	eax, DWORD PTR SD_EMMC_PRE_REQ_DONE[rip]
	or	DWORD PTR 12[rbx], eax
	mov	rdi, rbx
	call	meson_mmc_desc_chain_mode@PLT
	test	eax, eax
	jne	.L10
.L1:
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L10:
	.cfi_restore_state
	mov	rdi, rbx
	call	mmc_get_dma_dir@PLT
	mov	r14d, DWORD PTR 4[rbx]
	mov	r13d, DWORD PTR 8[rbx]
	mov	rdi, rbp
	mov	r12d, eax
	call	mmc_dev@PLT
	mov	ecx, r12d
	mov	edx, r14d
	mov	esi, r13d
	mov	edi, eax
	call	dma_map_sg@PLT
	mov	DWORD PTR [rbx], eax
	test	eax, eax
	jne	.L1
	mov	rdi, rbp
	call	mmc_dev@PLT
	pop	rbx
	.cfi_def_cfa_offset 40
	lea	rsi, .LC0[rip]
	pop	rbp
	.cfi_def_cfa_offset 32
	mov	edi, eax
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	jmp	dev_err@PLT
	.cfi_endproc
.LFE0:
	.size	meson_mmc_pre_req, .-meson_mmc_pre_req
	.comm	SD_EMMC_PRE_REQ_DONE,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_meson-gx-mmc.c_meson_mmc_pre_req.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"dma_map_sg failed\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	meson_mmc_pre_req, %function
meson_mmc_pre_req:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	ldr	r4, [r1]
	cmp	r4, #0
	popeq	{r4, r5, r6, r7, r8, pc}
	mov	r5, r0
	bl	meson_mmc_get_transfer_mode
	ldr	r2, .L10
	ldr	r3, [r4, #12]
	ldr	r2, [r2]
	mov	r0, r4
	orr	r3, r3, r2
	str	r3, [r4, #12]
	bl	meson_mmc_desc_chain_mode
	cmp	r0, #0
	popeq	{r4, r5, r6, r7, r8, pc}
	mov	r0, r5
	bl	mmc_dev
	mov	r6, r0
	mov	r0, r4
	ldr	r7, [r4, #8]
	ldr	r8, [r4, #4]
	bl	mmc_get_dma_dir
	mov	r2, r8
	mov	r3, r0
	mov	r1, r7
	mov	r0, r6
	bl	dma_map_sg
	cmp	r0, #0
	str	r0, [r4]
	popne	{r4, r5, r6, r7, r8, pc}
	mov	r0, r5
	bl	mmc_dev
	pop	{r4, r5, r6, r7, r8, lr}
	ldr	r1, .L10+4
	b	dev_err
.L11:
	.align	2
.L10:
	.word	SD_EMMC_PRE_REQ_DONE
	.word	.LC0
	.size	meson_mmc_pre_req, .-meson_mmc_pre_req
	.comm	SD_EMMC_PRE_REQ_DONE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
