	.file	"extr_tango_nand.c_tango_set_timings.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	tango_set_timings, @function
tango_set_timings:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	mov	r14d, esi
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12, rdi
	mov	rdi, rdx
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 24
	.cfi_def_cfa_offset 80
	call	nand_get_sdr_timings@PLT
	mov	edi, DWORD PTR [r12]
	mov	rbp, rax
	call	to_tango_nfc@PLT
	mov	rdi, r12
	mov	r13, rax
	call	to_tango_chip@PLT
	mov	rdi, rbp
	mov	r12d, DWORD PTR 0[r13]
	mov	rbx, rax
	call	IS_ERR@PLT
	test	rax, rax
	jne	.L7
	cmp	DWORD PTR NAND_DATA_IFACE_CHECK_ONLY[rip], r14d
	je	.L1
	mov	edi, r12d
	mov	rsi, QWORD PTR 56[rbp]
	sub	rsi, QWORD PTR 24[rbp]
	call	to_ticks@PLT
	mov	rsi, QWORD PTR 48[rbp]
	mov	edi, r12d
	mov	DWORD PTR 12[rsp], eax
	call	to_ticks@PLT
	mov	rsi, QWORD PTR 40[rbp]
	mov	edi, r12d
	mov	DWORD PTR 8[rsp], eax
	call	to_ticks@PLT
	mov	edi, r12d
	mov	rsi, QWORD PTR 40[rbp]
	sub	rsi, QWORD PTR 32[rbp]
	mov	DWORD PTR 4[rsp], eax
	call	to_ticks@PLT
	mov	rsi, QWORD PTR 24[rbp]
	mov	edi, r12d
	mov	DWORD PTR [rsp], eax
	call	to_ticks@PLT
	mov	rsi, QWORD PTR 8[rbp]
	mov	edi, r12d
	mov	r13d, eax
	call	to_ticks@PLT
	mov	edi, r12d
	mov	rsi, QWORD PTR 16[rbp]
	sub	rsi, QWORD PTR 8[rbp]
	mov	r14d, eax
	call	to_ticks@PLT
	mov	rsi, QWORD PTR 0[rbp]
	mov	edi, r12d
	mov	r15d, eax
	call	to_ticks@PLT
	mov	r9d, DWORD PTR 8[rsp]
	mov	r8d, DWORD PTR 12[rsp]
	mov	ecx, DWORD PTR [rsp]
	mov	edx, DWORD PTR 4[rsp]
	mov	r12d, eax
	mov	esi, r9d
	mov	edi, r8d
	call	TIMING@PLT
	mov	ecx, r12d
	mov	edx, r15d
	mov	esi, r14d
	mov	QWORD PTR 8[rbx], rax
	mov	edi, r13d
	call	TIMING@PLT
	mov	QWORD PTR [rbx], rax
.L1:
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	xor	eax, eax
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L7:
	.cfi_restore_state
	add	rsp, 24
	.cfi_def_cfa_offset 56
	mov	rdi, rbp
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	jmp	PTR_ERR@PLT
	.cfi_endproc
.LFE0:
	.size	tango_set_timings, .-tango_set_timings
	.comm	NAND_DATA_IFACE_CHECK_ONLY,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_tango_nand.c_tango_set_timings.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	tango_set_timings, %function
tango_set_timings:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mov	r5, r0
	sub	sp, sp, #12
	mov	r0, r2
	mov	r7, r1
	bl	nand_get_sdr_timings
	mov	r4, r0
	ldr	r0, [r5]
	bl	to_tango_nfc
	mov	r3, r0
	mov	r0, r5
	mov	r5, r3
	bl	to_tango_chip
	mov	r6, r0
	mov	r0, r4
	ldr	r5, [r5]
	bl	IS_ERR
	cmp	r0, #0
	bne	.L6
	ldr	r3, .L7
	ldr	r3, [r3]
	cmp	r3, r7
	beq	.L1
	ldr	r3, [r4, #12]
	ldr	r1, [r4, #28]
	mov	r0, r5
	sub	r1, r1, r3
	bl	to_ticks
	ldr	r1, [r4, #24]
	mov	r9, r0
	mov	r0, r5
	bl	to_ticks
	ldr	r1, [r4, #20]
	mov	r10, r0
	mov	r0, r5
	bl	to_ticks
	ldr	r3, [r4, #16]
	ldr	r1, [r4, #20]
	mov	fp, r0
	sub	r1, r1, r3
	mov	r0, r5
	bl	to_ticks
	mov	r3, r0
	ldr	r1, [r4, #12]
	mov	r0, r5
	str	r3, [sp, #4]
	bl	to_ticks
	ldr	r1, [r4, #4]
	mov	r7, r0
	mov	r0, r5
	bl	to_ticks
	ldr	r2, [r4, #4]
	ldr	r1, [r4, #8]
	mov	r8, r0
	sub	r1, r1, r2
	mov	r0, r5
	bl	to_ticks
	mov	r2, r0
	ldr	r1, [r4]
	mov	r0, r5
	mov	r4, r2
	bl	to_ticks
	mov	r2, fp
	mov	r5, r0
	mov	r1, r10
	ldr	r3, [sp, #4]
	mov	r0, r9
	bl	TIMING
	mov	ip, r0
	mov	r3, r5
	mov	r2, r4
	mov	r1, r8
	mov	r0, r7
	str	ip, [r6, #4]
	bl	TIMING
	str	r0, [r6]
.L1:
	mov	r0, #0
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L6:
	mov	r0, r4
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	b	PTR_ERR
.L8:
	.align	2
.L7:
	.word	NAND_DATA_IFACE_CHECK_ONLY
	.size	tango_set_timings, .-tango_set_timings
	.comm	NAND_DATA_IFACE_CHECK_ONLY,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
