	.file	"extr_tegra210-adma.c_tegra_adma_init.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	tegra_adma_init, @function
tegra_adma_init:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	mov	edx, 1
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	mov	rbp, rdi
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	mov	rax, QWORD PTR [rdi]
	mov	rsi, QWORD PTR 8[rax]
	call	tdma_write@PLT
	mov	rsi, QWORD PTR ADMA_GLOBAL_SOFT_RESET[rip]
	mov	edx, 1
	mov	rdi, rbp
	call	tdma_write@PLT
	mov	rax, QWORD PTR 0[rbp]
	mov	rsi, QWORD PTR 8[rbp]
	xor	edx, edx
	mov	edi, DWORD PTR readl[rip]
	mov	r9d, 10000
	mov	r8d, 20
	mov	ecx, 1
	add	rsi, QWORD PTR [rax]
	add	rsi, QWORD PTR ADMA_GLOBAL_SOFT_RESET[rip]
	call	readx_poll_timeout@PLT
	mov	r12d, eax
	test	eax, eax
	jne	.L1
	mov	rsi, QWORD PTR ADMA_GLOBAL_CMD[rip]
	mov	edx, 1
	mov	rdi, rbp
	call	tdma_write@PLT
.L1:
	add	rsp, 8
	.cfi_def_cfa_offset 24
	mov	eax, r12d
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	tegra_adma_init, .-tegra_adma_init
	.comm	readl,4,4
	.comm	ADMA_GLOBAL_SOFT_RESET,8,8
	.comm	ADMA_GLOBAL_CMD,8,8
	.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_tegra210-adma.c_tegra_adma_init.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	tegra_adma_init, %function
tegra_adma_init:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, lr}
	mov	r4, r0
	ldr	r3, [r0]
	ldr	r5, .L5
	sub	sp, sp, #12
	ldr	r1, [r3, #4]
	mov	r2, #1
	bl	tdma_write
	ldr	r1, [r5]
	mov	r2, #1
	mov	r0, r4
	bl	tdma_write
	mov	ip, #20
	ldr	r3, [r4]
	ldr	r2, [r4, #4]
	ldr	r3, [r3]
	ldr	r1, [r5]
	add	r3, r3, r2
	ldr	r0, .L5+4
	ldr	r2, .L5+8
	str	ip, [sp]
	ldr	r0, [r0]
	add	r1, r3, r1
	str	r2, [sp, #4]
	mov	r3, #1
	mov	r2, #0
	bl	readx_poll_timeout
	subs	r5, r0, #0
	bne	.L1
	ldr	r3, .L5+12
	mov	r0, r4
	mov	r2, #1
	ldr	r1, [r3]
	bl	tdma_write
.L1:
	mov	r0, r5
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, pc}
.L6:
	.align	2
.L5:
	.word	ADMA_GLOBAL_SOFT_RESET
	.word	readl
	.word	10000
	.word	ADMA_GLOBAL_CMD
	.size	tegra_adma_init, .-tegra_adma_init
	.comm	readl,4,4
	.comm	ADMA_GLOBAL_SOFT_RESET,4,4
	.comm	ADMA_GLOBAL_CMD,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
