	.file	"extr_budget-core.c_ttpci_budget_debiread_nolock.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	ttpci_budget_debiread_nolock, @function
ttpci_budget_debiread_nolock:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	mov	r14d, r8d
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	mov	r13d, esi
	mov	esi, r8d
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	mov	r12d, edx
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	mov	rbp, QWORD PTR [rdi]
	mov	ebx, ecx
	mov	rdi, rbp
	call	saa7146_wait_for_debi_done@PLT
	test	eax, eax
	js	.L1
	mov	edx, ebx
	movzx	r12d, r12w
	mov	esi, DWORD PTR DEBI_COMMAND[rip]
	mov	rdi, rbp
	sal	edx, 17
	or	edx, r12d
	or	edx, 65536
	call	saa7146_write@PLT
	mov	esi, DWORD PTR DEBI_CONFIG[rip]
	mov	edx, r13d
	mov	rdi, rbp
	call	saa7146_write@PLT
	mov	esi, DWORD PTR DEBI_PAGE[rip]
	xor	edx, edx
	mov	rdi, rbp
	call	saa7146_write@PLT
	mov	esi, DWORD PTR MC2[rip]
	mov	rdi, rbp
	mov	edx, 131074
	call	saa7146_write@PLT
	mov	esi, r14d
	mov	rdi, rbp
	call	saa7146_wait_for_debi_done@PLT
	test	eax, eax
	js	.L1
	mov	esi, DWORD PTR DEBI_AD[rip]
	mov	rdi, rbp
	call	saa7146_read@PLT
	mov	ecx, 4
	mov	edx, 4294967295
	sub	ecx, ebx
	sal	ecx, 3
	shr	rdx, cl
	and	eax, edx
.L1:
	pop	rbx
	.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
	.cfi_endproc
.LFE0:
	.size	ttpci_budget_debiread_nolock, .-ttpci_budget_debiread_nolock
	.comm	MC2,4,4
	.comm	DEBI_PAGE,4,4
	.comm	DEBI_CONFIG,4,4
	.comm	DEBI_COMMAND,4,4
	.comm	DEBI_AD,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_budget-core.c_ttpci_budget_debiread_nolock.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	ttpci_budget_debiread_nolock, %function
ttpci_budget_debiread_nolock:
	@ args = 4, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	ldr	r7, [sp, #24]
	ldr	r5, [r0]
	mov	r6, r1
	mov	r0, r5
	mov	r1, r7
	mov	r8, r2
	mov	r4, r3
	bl	saa7146_wait_for_debi_done
	cmp	r0, #0
	poplt	{r4, r5, r6, r7, r8, pc}
	lsl	r2, r8, #16
	ldr	r3, .L5
	lsr	r2, r2, #16
	orr	r2, r2, r4, lsl #17
	ldr	r1, [r3]
	orr	r2, r2, #65536
	mov	r0, r5
	bl	saa7146_write
	ldr	r3, .L5+4
	mov	r2, r6
	ldr	r1, [r3]
	mov	r0, r5
	bl	saa7146_write
	ldr	r3, .L5+8
	mov	r2, #0
	ldr	r1, [r3]
	mov	r0, r5
	bl	saa7146_write
	ldr	r3, .L5+12
	ldr	r2, .L5+16
	ldr	r1, [r3]
	mov	r0, r5
	bl	saa7146_write
	mov	r1, r7
	mov	r0, r5
	bl	saa7146_wait_for_debi_done
	cmp	r0, #0
	poplt	{r4, r5, r6, r7, r8, pc}
	ldr	r3, .L5+20
	mov	r0, r5
	ldr	r1, [r3]
	bl	saa7146_read
	mvn	r3, #0
	rsb	r4, r4, #4
	lsl	r4, r4, #3
	and	r0, r0, r3, lsr r4
	pop	{r4, r5, r6, r7, r8, pc}
.L6:
	.align	2
.L5:
	.word	DEBI_COMMAND
	.word	DEBI_CONFIG
	.word	DEBI_PAGE
	.word	MC2
	.word	131074
	.word	DEBI_AD
	.size	ttpci_budget_debiread_nolock, .-ttpci_budget_debiread_nolock
	.comm	MC2,4,4
	.comm	DEBI_PAGE,4,4
	.comm	DEBI_CONFIG,4,4
	.comm	DEBI_COMMAND,4,4
	.comm	DEBI_AD,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
